2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for dnscrypt-proxy 1.4.0.
5 @%:@ Report bugs to <http://dnscrypt.org>.
8 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in @%:@(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in @%:@(
173 set -o posix ;; @%:@(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
225 case $as_dir in @%:@(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://dnscrypt.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 @%:@ Portably unset VAR.
301 { eval $1=; unset $1;}
305 @%:@ as_fn_set_status STATUS
306 @%:@ -----------------------
307 @%:@ Set @S|@? to STATUS, without forking.
311 } @%:@ as_fn_set_status
313 @%:@ as_fn_exit STATUS
314 @%:@ -----------------
315 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 @%:@ as_fn_executable_p FILE
372 @%:@ -----------------------
373 @%:@ Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } @%:@ as_fn_executable_p
378 @%:@ as_fn_append VAR VALUE
379 @%:@ ----------------------
380 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381 @%:@ advantage of any shell optimizations that allow amortized linear growth over
382 @%:@ repeated appends, instead of the typical quadratic growth present in naive
383 @%:@ implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
396 @%:@ as_fn_arith ARG...
397 @%:@ ------------------
398 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415 @%:@ ----------------------------------------
416 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 @%:@ script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in @%:@(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
569 lt_ltdl_dir='libltdl'
571 lt_dlopen_dir="$lt_ltdl_dir"
574 test -n "$DJDIR" || exec 7<&0 </dev/null
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 ac_default_prefix=/usr/local
587 ac_config_libobj_dir=.
594 # Identity of this package.
595 PACKAGE_NAME='dnscrypt-proxy'
596 PACKAGE_TARNAME='dnscrypt-proxy'
597 PACKAGE_VERSION='1.4.0'
598 PACKAGE_STRING='dnscrypt-proxy 1.4.0'
599 PACKAGE_BUGREPORT='http://dnscrypt.org'
602 ac_unique_file="src/proxy/app.c"
603 enable_option_checking=no
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='ltdl_LTLIBOBJS
648 CONVENIENCE_LTDL_FALSE
649 CONVENIENCE_LTDL_TRUE
653 sys_symbol_underscore
708 ENABLE_PLUGINS_ROOT_FALSE
709 ENABLE_PLUGINS_ROOT_TRUE
710 RELAXED_PLUGINS_PERMISSIONS_FALSE
711 RELAXED_PLUGINS_PERMISSIONS_TRUE
721 MAINTAINER_MODE_FALSE
735 INSTALL_STRIP_PROGRAM
786 program_transform_name
799 enable_option_checking
801 enable_maintainer_mode
802 enable_dependency_tracking
808 enable_relaxed_plugins_permissions
823 ac_precious_vars='build_alias
838 ac_subdirs_all='src/libevent-modified
841 # Initialize some variables set by options.
843 ac_init_version=false
844 ac_unrecognized_opts=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name=s,x,x,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures dnscrypt-proxy 1.4.0 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 @<:@@S|@ac_default_prefix@:>@
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/dnscrypt-proxy@:>@
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of dnscrypt-proxy 1.4.0:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --disable-ssp Do not compile with -fstack-protector
1467 --disable-pie Do not produce position independent executables
1468 --enable-debug For maintainers only - please do not use
1469 --enable-plugins Enable support for plugins
1470 --enable-relaxed-plugins-permissions
1471 Allow loading plugins owned by other users
1472 --enable-plugins-root Only load plugins sitting in the default plugins
1474 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1475 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1476 --enable-fast-install@<:@=PKGS@:>@
1477 optimize for fast installation @<:@default=yes@:>@
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --disable-largefile omit support for large files
1480 --enable-ltdl-install install libltdl
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-safecode For maintainers only - please do not use
1486 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1488 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1489 --with-sysroot=DIR Search for dependent libraries within DIR
1490 (or the compiler's sysroot if not specified).
1491 --with-included-ltdl use the GNU ltdl sources included here
1492 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1493 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1495 Some influential environment variables:
1497 set to the safecode base directory
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1506 CWFLAGS define to compilation flags for generating extra warnings
1507 RONN path to the ronn text processor
1508 SIXJACK path to 6jack
1509 AR path to the ar utility
1510 DTRACE path to dtrace if you have it
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <http://dnscrypt.org>.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1578 dnscrypt-proxy configure 1.4.0
1579 generated by GNU Autoconf 2.69
1581 Copyright (C) 2012 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 @%:@ ac_fn_c_try_compile LINENO
1593 @%:@ --------------------------
1594 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } @%:@ ac_fn_c_try_compile
1630 @%:@ ac_fn_c_try_cpp LINENO
1631 @%:@ ----------------------
1632 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } > conftest.i && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } @%:@ ac_fn_c_try_cpp
1667 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 @%:@ -------------------------------------------------------
1669 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 @%:@ the include files in INCLUDES and setting the cache variable VAR
1672 ac_fn_c_check_header_mongrel ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if eval \${$3+:} false; then :
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 ac_header_compiler=yes
1696 ac_header_compiler=no
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1712 ac_header_preproc=no
1714 rm -f conftest.err conftest.i conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1718 # So? What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ( $as_echo "## ---------------------------------- ##
1738 ## Report this to http://dnscrypt.org ##
1739 ## ---------------------------------- ##"
1740 ) | sed "s/^/$as_me: WARNING: /" >&2
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 eval "$3=\$ac_header_compiler"
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } @%:@ ac_fn_c_check_header_mongrel
1758 @%:@ ac_fn_c_try_run LINENO
1759 @%:@ ----------------------
1760 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1761 @%:@ that executables *can* be run.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=$ac_status
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } @%:@ ac_fn_c_try_run
1800 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1801 @%:@ -------------------------------------------------------
1802 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1803 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1804 ac_fn_c_check_header_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } @%:@ ac_fn_c_check_header_compile
1831 @%:@ ac_fn_c_try_link LINENO
1832 @%:@ -----------------------
1833 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 test -x conftest$ac_exeext
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } @%:@ ac_fn_c_try_link
1877 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1878 @%:@ ----------------------------------
1879 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } @%:@ ac_fn_c_check_func
1944 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945 @%:@ -------------------------------------------
1946 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1947 @%:@ variable VAR accordingly.
1948 ac_fn_c_check_type ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1982 if ac_fn_c_try_compile "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } @%:@ ac_fn_c_check_type
1998 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1999 @%:@ ---------------------------------------------
2000 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2002 ac_fn_c_check_decl ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 as_decl_name=`echo $2|sed 's/ *(.*//'`
2006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2008 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2009 if eval \${$3+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2018 @%:@ifndef $as_decl_name
2019 @%:@ifdef __cplusplus
2020 (void) $as_decl_use;
2022 (void) $as_decl_name;
2030 if ac_fn_c_try_compile "$LINENO"; then :
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } @%:@ ac_fn_c_check_decl
2043 cat >config.log <<_ACEOF
2044 This file contains any messages produced by compilers while
2045 running configure, to aid debugging if configure makes a mistake.
2047 It was created by dnscrypt-proxy $as_me 1.4.0, which was
2048 generated by GNU Autoconf 2.69. Invocation command line was
2060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2069 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2070 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2073 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2074 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2075 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 $as_echo "PATH: $as_dir"
2100 # Keep a trace of the command line.
2101 # Strip out --no-create and --no-recursion so they do not pile up.
2102 # Strip out --silent because we don't want to record it for future runs.
2103 # Also quote any args containing shell meta-characters.
2104 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_must_keep_next=false
2114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116 | -silent | --silent | --silen | --sile | --sil)
2119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124 as_fn_append ac_configure_args1 " '$ac_arg'"
2125 if test $ac_must_keep_next = true; then
2126 ac_must_keep_next=false # Got value, back to normal.
2129 *=* | --config-cache | -C | -disable-* | --disable-* \
2130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132 | -with-* | --with-* | -without-* | --without-* | --x)
2133 case "$ac_configure_args0 " in
2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2137 -* ) ac_must_keep_next=true ;;
2140 as_fn_append ac_configure_args " '$ac_arg'"
2145 { ac_configure_args0=; unset ac_configure_args0;}
2146 { ac_configure_args1=; unset ac_configure_args1;}
2148 # When interrupted or exit'd, cleanup temporary files, and complete
2149 # config.log. We remove comments because anyway the quotes in there
2150 # would cause problems or look ugly.
2151 # WARNING: Use '\'' to represent an apostrophe within the trap.
2152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153 trap 'exit_status=$?
2154 # Save into config.log some information that might help in debugging.
2158 $as_echo "## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##"
2162 # The following way of writing the cache mishandles newlines in values,
2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165 eval ac_val=\$$ac_var
2169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2173 _ | IFS | as_nl) ;; #(
2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175 *) { eval $ac_var=; unset $ac_var;} ;;
2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181 *${as_nl}ac_space=\ *)
2183 "s/'\''/'\''\\\\'\'''\''/g;
2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194 $as_echo "## ----------------- ##
2195 ## Output variables. ##
2196 ## ----------------- ##"
2198 for ac_var in $ac_subst_vars
2200 eval ac_val=\$$ac_var
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 $as_echo "$ac_var='\''$ac_val'\''"
2208 if test -n "$ac_subst_files"; then
2209 $as_echo "## ------------------- ##
2210 ## File substitutions. ##
2211 ## ------------------- ##"
2213 for ac_var in $ac_subst_files
2215 eval ac_val=\$$ac_var
2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -s confdefs.h; then
2225 $as_echo "## ----------- ##
2232 test "$ac_signal" != 0 &&
2233 $as_echo "$as_me: caught signal $ac_signal"
2234 $as_echo "$as_me: exit $exit_status"
2236 rm -f core *.core core.conftest.* &&
2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2240 for ac_signal in 1 2 13 15; do
2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2246 rm -f -r conftest* confdefs.h
2248 $as_echo "/* confdefs.h */" > confdefs.h
2250 # Predefined preprocessor variables.
2252 cat >>confdefs.h <<_ACEOF
2253 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2256 cat >>confdefs.h <<_ACEOF
2257 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2260 cat >>confdefs.h <<_ACEOF
2261 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2264 cat >>confdefs.h <<_ACEOF
2265 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2268 cat >>confdefs.h <<_ACEOF
2269 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2272 cat >>confdefs.h <<_ACEOF
2273 @%:@define PACKAGE_URL "$PACKAGE_URL"
2277 # Let the site file select an alternate cache file if it wants to.
2278 # Prefer an explicitly selected file to automatically selected ones.
2281 if test -n "$CONFIG_SITE"; then
2282 # We do not want a PATH search for config.site.
2283 case $CONFIG_SITE in @%:@((
2284 -*) ac_site_file1=./$CONFIG_SITE;;
2285 */*) ac_site_file1=$CONFIG_SITE;;
2286 *) ac_site_file1=./$CONFIG_SITE;;
2288 elif test "x$prefix" != xNONE; then
2289 ac_site_file1=$prefix/share/config.site
2290 ac_site_file2=$prefix/etc/config.site
2292 ac_site_file1=$ac_default_prefix/share/config.site
2293 ac_site_file2=$ac_default_prefix/etc/config.site
2295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297 test "x$ac_site_file" = xNONE && continue
2298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301 sed 's/^/| /' "$ac_site_file" >&5
2303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 as_fn_error $? "failed to load site script $ac_site_file
2306 See \`config.log' for more details" "$LINENO" 5; }
2310 if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special files
2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 $as_echo "$as_me: loading cache $cache_file" >&6;}
2317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318 *) . "./$cache_file";;
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 $as_echo "$as_me: creating cache $cache_file" >&6;}
2327 # Check that the precious variables saved in the cache have kept the same
2329 ac_cache_corrupted=false
2330 for ac_var in $ac_precious_vars; do
2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332 eval ac_new_set=\$ac_env_${ac_var}_set
2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334 eval ac_new_val=\$ac_env_${ac_var}_value
2335 case $ac_old_set,$ac_new_set in
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343 ac_cache_corrupted=: ;;
2346 if test "x$ac_old_val" != "x$ac_new_val"; then
2347 # differences in whitespace do not lead to failure.
2348 ac_old_val_w=`echo x $ac_old_val`
2349 ac_new_val_w=`echo x $ac_new_val`
2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353 ac_cache_corrupted=:
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357 eval $ac_var=\$ac_old_val
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2360 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2362 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2365 # Pass precious variables to config.status.
2366 if test "$ac_new_set" = set; then
2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 *) ac_arg=$ac_var=$ac_new_val ;;
2371 case " $ac_configure_args " in
2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2377 if $ac_cache_corrupted; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2426 ac_config_headers="$ac_config_headers config.h"
2430 subdirs="$subdirs src/libevent-modified"
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2437 $as_echo_n "checking build system type... " >&6; }
2438 if ${ac_cv_build+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 ac_build_alias=$build_alias
2442 test "x$ac_build_alias" = x &&
2443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2444 test "x$ac_build_alias" = x &&
2445 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2446 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2451 $as_echo "$ac_cv_build" >&6; }
2452 case $ac_cv_build in
2454 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2457 ac_save_IFS=$IFS; IFS='-'
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2471 $as_echo_n "checking host system type... " >&6; }
2472 if ${ac_cv_host+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 if test "x$host_alias" = x; then
2476 ac_cv_host=$ac_cv_build
2478 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2484 $as_echo "$ac_cv_host" >&6; }
2487 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2490 ac_save_IFS=$IFS; IFS='-'
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2503 am__api_version='1.13'
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in @%:@((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 rm -rf conftest.one conftest.two conftest.dir
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2599 $as_echo_n "checking whether build environment is sane... " >&6; }
2600 # Reject unsafe characters in $srcdir or the absolute working directory
2601 # name. Accept space and tab only in the latter.
2605 *[\\\"\#\$\&\'\`$am_lf]*)
2606 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2609 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2610 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2613 # Do 'set' in a subshell so we don't clobber the current shell's
2614 # arguments. Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2620 for am_try in 1 2; do
2621 echo "timestamp, slept: $am_has_slept" > conftest.file
2622 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2623 if test "$*" = "X"; then
2625 set X `ls -t "$srcdir/configure" conftest.file`
2627 if test "$*" != "X $srcdir/configure conftest.file" \
2628 && test "$*" != "X conftest.file $srcdir/configure"; then
2630 # If neither matched, then we have a broken ls. This can happen
2631 # if, for instance, CONFIG_SHELL is bash and it inherits a
2632 # broken ls alias from the environment. This has actually
2633 # happened. Such a system could not be considered "sane".
2634 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2635 alias in your environment" "$LINENO" 5
2637 if test "$2" = conftest.file || test $am_try -eq 2; then
2644 test "$2" = conftest.file
2650 as_fn_error $? "newly created file is older than distributed files!
2651 Check your system clock" "$LINENO" 5
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 # If we didn't sleep, we still need to ensure time stamps of config.status and
2656 # generated files are strictly newer.
2658 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2665 test "$program_prefix" != NONE &&
2666 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2667 # Use a double $ so make ignores it.
2668 test "$program_suffix" != NONE &&
2669 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2670 # Double any \ or $.
2671 # By default was `s,x,x', remove it if useless.
2672 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2673 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2675 # expand $ac_aux_dir to an absolute path
2676 am_aux_dir=`cd $ac_aux_dir && pwd`
2678 if test x"${MISSING+set}" != xset; then
2681 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2683 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2686 # Use eval to expand $SHELL
2687 if eval "$MISSING --is-lightweight"; then
2688 am_missing_run="$MISSING "
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2692 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2695 if test x"${install_sh}" != xset; then
2698 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2700 install_sh="\${SHELL} $am_aux_dir/install-sh"
2704 # Installed binaries are usually stripped using 'strip' when the user
2705 # run "make install-strip". However 'strip' might not be the right
2706 # tool to use in cross-compilation environments, therefore Automake
2707 # will honor the 'STRIP' environment variable to overrule this program.
2708 if test "$cross_compiling" != no; then
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2711 set dummy ${ac_tool_prefix}strip; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_STRIP+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$STRIP"; then
2718 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 STRIP=$ac_cv_prog_STRIP
2738 if test -n "$STRIP"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2740 $as_echo "$STRIP" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2748 if test -z "$ac_cv_prog_STRIP"; then
2750 # Extract the first word of "strip", so it can be a program name with args.
2751 set dummy strip; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$ac_ct_STRIP"; then
2758 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_ac_ct_STRIP="strip"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2778 if test -n "$ac_ct_STRIP"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780 $as_echo "$ac_ct_STRIP" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2786 if test "x$ac_ct_STRIP" = x; then
2789 case $cross_compiling:$ac_tool_warned in
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2798 STRIP="$ac_cv_prog_STRIP"
2802 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2805 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2806 if test -z "$MKDIR_P"; then
2807 if ${ac_cv_path_mkdir+:} false; then :
2808 $as_echo_n "(cached) " >&6
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2814 test -z "$as_dir" && as_dir=.
2815 for ac_prog in mkdir gmkdir; do
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2818 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2819 'mkdir (GNU coreutils) '* | \
2820 'mkdir (coreutils) '* | \
2821 'mkdir (fileutils) '4.1*)
2822 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2832 test -d ./--version && rmdir ./--version
2833 if test "${ac_cv_path_mkdir+set}" = set; then
2834 MKDIR_P="$ac_cv_path_mkdir -p"
2836 # As a last resort, use the slow shell script. Don't cache a
2837 # value for MKDIR_P within a source directory, because that will
2838 # break other packages using the cache if that directory is
2839 # removed, or if the value is a relative name.
2840 MKDIR_P="$ac_install_sh -d"
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2844 $as_echo "$MKDIR_P" >&6; }
2846 for ac_prog in gawk mawk nawk awk
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_AWK+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$AWK"; then
2856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_AWK="$ac_prog"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$AWK"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2878 $as_echo "$AWK" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2885 test -n "$AWK" && break
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2892 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 cat >conftest.make <<\_ACEOF
2898 @echo '@@@%%%=$(MAKE)=@@@%%%'
2900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2903 eval ac_cv_prog_make_${ac_make}_set=yes;;
2905 eval ac_cv_prog_make_${ac_make}_set=no;;
2909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 SET_MAKE="MAKE=${MAKE-make}"
2919 rm -rf .tst 2>/dev/null
2920 mkdir .tst 2>/dev/null
2921 if test -d .tst; then
2926 rmdir .tst 2>/dev/null
2928 @%:@ Check whether --enable-silent-rules was given.
2929 if test "${enable_silent_rules+set}" = set; then :
2930 enableval=$enable_silent_rules;
2933 case $enable_silent_rules in @%:@ (((
2934 yes) AM_DEFAULT_VERBOSITY=0;;
2935 no) AM_DEFAULT_VERBOSITY=1;;
2936 *) AM_DEFAULT_VERBOSITY=1;;
2938 am_make=${MAKE-make}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2940 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2941 if ${am_cv_make_support_nested_variables+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if $as_echo 'TRUE=$(BAR$(V))
2950 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2951 am_cv_make_support_nested_variables=yes
2953 am_cv_make_support_nested_variables=no
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2957 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2958 if test $am_cv_make_support_nested_variables = yes; then
2960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2962 AM_V=$AM_DEFAULT_VERBOSITY
2963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2967 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2968 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2969 # is not polluted with repeated "-I."
2970 am__isrc=' -I$(srcdir)'
2971 # test to see if srcdir already configured
2972 if test -f $srcdir/config.status; then
2973 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2977 # test whether we have cygpath
2978 if test -z "$CYGPATH_W"; then
2979 if (cygpath --version) >/dev/null 2>/dev/null; then
2980 CYGPATH_W='cygpath -w'
2987 # Define the identity of the package.
2988 PACKAGE='dnscrypt-proxy'
2992 cat >>confdefs.h <<_ACEOF
2993 @%:@define PACKAGE "$PACKAGE"
2997 cat >>confdefs.h <<_ACEOF
2998 @%:@define VERSION "$VERSION"
3001 # Some tools Automake needs.
3003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3017 # For better backward compatibility. To be removed once Automake 1.9.x
3018 # dies out for good. For more background, see:
3019 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3020 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3021 mkdir_p='$(MKDIR_P)'
3023 # We need awk for the "check" target. The system "awk" is bad on
3025 # Always define AMTAR for backward compatibility. Yes, it's still used
3026 # in the wild :-( We should find a proper way to deprecate it ...
3030 # We'll loop over all known methods to create a tar archive until one works.
3031 _am_tools='gnutar plaintar pax cpio none'
3033 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3034 # There is notably a 21 bits limit for the UID and the GID. In fact,
3035 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3037 am_max_uid=2097151 # 2^21 - 1
3038 am_max_gid=$am_max_uid
3039 # The $UID and $GID variables are not portable, so we need to resort
3040 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3041 # below are definitely unexpected, so allow the users to see them
3042 # (that is, avoid stderr redirection).
3043 am_uid=`id -u || echo unknown`
3044 am_gid=`id -g || echo unknown`
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3046 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3047 if test $am_uid -le $am_max_uid; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3049 $as_echo "yes" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3056 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3057 if test $am_gid -le $am_max_gid; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3067 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3069 # Go ahead even if we have the value already cached. We do so because we
3070 # need to set the values for the 'am__tar' and 'am__untar' variables.
3071 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3073 for _am_tool in $_am_tools; do
3076 for _am_tar in tar gnutar gtar; do
3077 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3078 ($_am_tar --version) >&5 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } && break
3083 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3084 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3085 am__untar="$_am_tar -xf -"
3088 # Must skip GNU tar: if it does not support --format= it doesn't create
3089 # ustar tarball either.
3090 (tar --version) >/dev/null 2>&1 && continue
3091 am__tar='tar chf - "$$tardir"'
3092 am__tar_='tar chf - "$tardir"'
3093 am__untar='tar xf -'
3096 am__tar='pax -L -x ustar -w "$$tardir"'
3097 am__tar_='pax -L -x ustar -w "$tardir"'
3101 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3102 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3103 am__untar='cpio -i -H ustar -d'
3112 # If the value was cached, stop now. We just wanted to have am__tar
3113 # and am__untar set.
3114 test -n "${am_cv_prog_tar_ustar}" && break
3116 # tar/untar a dummy directory, and stop if the command works.
3119 echo GrepMe > conftest.dir/file
3120 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3121 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }
3126 if test -s conftest.tar; then
3127 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3128 ($am__untar <conftest.tar) >&5 2>&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }
3132 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3133 (cat conftest.dir/file) >&5 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3142 if ${am_cv_prog_tar_ustar+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 am_cv_prog_tar_ustar=$_am_tool
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3149 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3158 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3159 @%:@ Check whether --enable-maintainer-mode was given.
3160 if test "${enable_maintainer_mode+set}" = set; then :
3161 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3163 USE_MAINTAINER_MODE=no
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3167 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3168 if test $USE_MAINTAINER_MODE = yes; then
3169 MAINTAINER_MODE_TRUE=
3170 MAINTAINER_MODE_FALSE='#'
3172 MAINTAINER_MODE_TRUE='#'
3173 MAINTAINER_MODE_FALSE=
3176 MAINT=$MAINTAINER_MODE_TRUE
3179 @%:@ Check whether --enable-dependency-tracking was given.
3180 if test "${enable_dependency_tracking+set}" = set; then :
3181 enableval=$enable_dependency_tracking;
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3189 if test "x$enable_dependency_tracking" != xno; then
3200 ISODATE=`date +%Y-%m-%d`
3203 LX_CFLAGS=${CFLAGS-NONE}
3206 @%:@ Check whether --enable-ssp was given.
3207 if test "${enable_ssp+set}" = set; then :
3208 enableval=$enable_ssp;
3209 if test "x$enableval" = "xno"; then :
3226 @%:@ Check whether --enable-pie was given.
3227 if test "${enable_pie+set}" = set; then :
3228 enableval=$enable_pie; enable_pie=$enableval
3234 case $host_os in @%:@(
3236 enable_pie="no" ;; @%:@(
3242 @%:@ Check whether --with-safecode was given.
3243 if test "${with_safecode+set}" = set; then :
3244 withval=$with_safecode; if test "x$withval" = "xyes"; then :
3247 : ${SAFECODE_HOME:=/opt/safecode}
3248 LDFLAGS="$LDFLAGS -L${SAFECODE_HOME}/lib"
3249 LIBS="$LIBS -lsc_dbg_rt -lpoolalloc_bitmap -lstdc++"
3250 CFLAGS="$CFLAGS -fmemsafety"
3257 @%:@ Check whether --enable-debug was given.
3258 if test "${enable_debug+set}" = set; then :
3259 enableval=$enable_debug;
3260 if test "x$enableval" = "xyes"; then :
3262 if test "x$LX_CFLAGS" = "xNONE"; then :
3265 for flag in `echo $CFLAGS`; do
3272 as_fn_append nxflags " $flag" ;; @%:@(
3277 CFLAGS="$nxflags -O0 -g3"
3280 CPPFLAGS="$CPPFLAGS -DDEBUG=1"
3288 @%:@ Check whether --enable-plugins was given.
3289 if test "${enable_plugins+set}" = set; then :
3290 enableval=$enable_plugins;
3291 if test "x$enableval" != "xno"; then :
3293 CPPFLAGS="$CPPFLAGS -DPLUGINS=1"
3300 if test x$plugins = xenabled; then
3309 relaxed_plugins_permissions=disabled
3310 @%:@ Check whether --enable-relaxed-plugins-permissions was given.
3311 if test "${enable_relaxed_plugins_permissions+set}" = set; then :
3312 enableval=$enable_relaxed_plugins_permissions;
3313 if test "x$enableval" != "xno"; then :
3315 CPPFLAGS="$CPPFLAGS -DRELAXED_PLUGINS_PERMISSIONS=1"
3316 relaxed_plugins_permissions=enabled
3322 if test x$relaxed_plugins_permissions = xenabled; then
3323 RELAXED_PLUGINS_PERMISSIONS_TRUE=
3324 RELAXED_PLUGINS_PERMISSIONS_FALSE='#'
3326 RELAXED_PLUGINS_PERMISSIONS_TRUE='#'
3327 RELAXED_PLUGINS_PERMISSIONS_FALSE=
3331 plugins_root=disabled
3332 @%:@ Check whether --enable-plugins-root was given.
3333 if test "${enable_plugins_root+set}" = set; then :
3334 enableval=$enable_plugins_root;
3335 if test "x$enableval" != "xno"; then :
3337 CPPFLAGS="$CPPFLAGS -DENABLE_PLUGINS_ROOT=1"
3338 plugins_root=enabled
3344 if test x$plugins_root = xenabled; then
3345 ENABLE_PLUGINS_ROOT_TRUE=
3346 ENABLE_PLUGINS_ROOT_FALSE='#'
3348 ENABLE_PLUGINS_ROOT_TRUE='#'
3349 ENABLE_PLUGINS_ROOT_FALSE=
3356 DEPDIR="${am__leading_dot}deps"
3358 ac_config_commands="$ac_config_commands depfiles"
3361 am_make=${MAKE-make}
3362 cat > confinc << 'END'
3364 @echo this is the am__doit target
3367 # If we don't find an include directive, just comment out the code.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3369 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3373 # First try GNU make style include.
3374 echo "include confinc" > confmf
3375 # Ignore all kinds of additional output from 'make'.
3376 case `$am_make -s -f confmf 2> /dev/null` in #(
3377 *the\ am__doit\ target*)
3383 # Now try BSD make style include.
3384 if test "$am__include" = "#"; then
3385 echo '.include "confinc"' > confmf
3386 case `$am_make -s -f confmf 2> /dev/null` in #(
3387 *the\ am__doit\ target*)
3388 am__include=.include
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3397 $as_echo "$_am_result" >&6; }
3398 rm -f confinc confmf
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3444 if test -z "$ac_cv_prog_CC"; then
3446 # Extract the first word of "gcc", so it can be a program name with args.
3447 set dummy gcc; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_ac_ct_CC="gcc"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476 $as_echo "$ac_ct_CC" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3482 if test "x$ac_ct_CC" = x; then
3485 case $cross_compiling:$ac_tool_warned in
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}cc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="${ac_tool_prefix}cc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3538 if test -z "$CC"; then
3539 # Extract the first word of "cc", so it can be a program name with args.
3540 set dummy cc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$CC"; then
3547 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3558 ac_prog_rejected=yes
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 if test $ac_prog_rejected = yes; then
3570 # We found a bogon in the path, so make sure we never use it.
3571 set dummy $ac_cv_prog_CC
3573 if test $@%:@ != 0; then
3574 # We chose a different compiler from the bogus one.
3575 # However, it has the same basename, so the bogon will be chosen
3576 # first if we set CC to just the basename; use the full file name.
3578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 for ac_prog in cl.exe
3598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 if test -n "$CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3635 test -n "$CC" && break
3638 if test -z "$CC"; then
3640 for ac_prog in cl.exe
3642 # Extract the first word of "$ac_prog", so it can be a program name with args.
3643 set dummy $ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_CC="$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$ac_ct_CC" && break
3682 if test "x$ac_ct_CC" = x; then
3685 case $cross_compiling:$ac_tool_warned in
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689 ac_tool_warned=yes ;;
3698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "no acceptable C compiler found in \$PATH
3701 See \`config.log' for more details" "$LINENO" 5; }
3703 # Provide some information about the compiler.
3704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3707 for ac_option in --version -v -V -qversion; do
3708 { { ac_try="$ac_compiler $ac_option >&5"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3717 if test -s conftest.err; then
3719 ... rest of stderr output deleted ...
3720 10q' conftest.err >conftest.er1
3721 cat conftest.er1 >&5
3723 rm -f conftest.er1 conftest.err
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3739 ac_clean_files_save=$ac_clean_files
3740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3741 # Try to create an executable without -o first, disregard a.out.
3742 # It will help us diagnose broken compilers, and finding out an intuition
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3748 # The possible output files:
3749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3752 for ac_file in $ac_files
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3756 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3761 if { { ac_try="$ac_link_default"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_link_default") 2>&5
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; then :
3772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3774 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3775 # so that the user can short-circuit this test for compilers unknown to
3777 for ac_file in $ac_files ''
3779 test -f "$ac_file" || continue
3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3784 # We found the default executable, but exeext='' is most
3788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3792 # We set ac_cv_exeext here because the later test for it is not
3793 # safe: cross compilers may not add the suffix if given an `-o'
3794 # argument, so we may need to know it at that point already.
3795 # Even if this section looks crufty: it has the advantage of
3802 test "$ac_cv_exeext" = no && ac_cv_exeext=
3807 if test -z "$ac_file"; then :
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 $as_echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error 77 "C compiler cannot create executables
3816 See \`config.log' for more details" "$LINENO" 5; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819 $as_echo "yes" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3822 $as_echo_n "checking for C compiler default output file name... " >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3824 $as_echo "$ac_file" >&6; }
3825 ac_exeext=$ac_cv_exeext
3827 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3828 ac_clean_files=$ac_clean_files_save
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3830 $as_echo_n "checking for suffix of executables... " >&6; }
3831 if { { ac_try="$ac_link"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_link") 2>&5
3840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841 test $ac_status = 0; }; then :
3842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3843 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3844 # work properly (i.e., refer to `conftest.exe'), while it won't with
3846 for ac_file in conftest.exe conftest conftest.*; do
3847 test -f "$ac_file" || continue
3849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3859 See \`config.log' for more details" "$LINENO" 5; }
3861 rm -f conftest conftest$ac_cv_exeext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3863 $as_echo "$ac_cv_exeext" >&6; }
3865 rm -f conftest.$ac_ext
3866 EXEEXT=$ac_cv_exeext
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 @%:@include <stdio.h>
3874 FILE *f = fopen ("conftest.out", "w");
3875 return ferror (f) || fclose (f) != 0;
3881 ac_clean_files="$ac_clean_files conftest.out"
3882 # Check that the compiler produces executables we can run. If not, either
3883 # the compiler is broken, or we cross compile.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3885 $as_echo_n "checking whether we are cross compiling... " >&6; }
3886 if test "$cross_compiling" != yes; then
3887 { { ac_try="$ac_link"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_link") 2>&5
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }
3898 if { ac_try='./conftest$ac_cv_exeext'
3899 { { case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_try") 2>&5
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; }; then
3911 if test "$cross_compiling" = maybe; then
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error $? "cannot run C compiled programs.
3917 If you meant to cross compile, use \`--host'.
3918 See \`config.log' for more details" "$LINENO" 5; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3923 $as_echo "$cross_compiling" >&6; }
3925 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3926 ac_clean_files=$ac_clean_files_save
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3928 $as_echo_n "checking for suffix of object files... " >&6; }
3929 if ${ac_cv_objext+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 rm -f conftest.o conftest.obj
3944 if { { ac_try="$ac_compile"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compile") 2>&5
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 for ac_file in conftest.o conftest.obj conftest.*; do
3956 test -f "$ac_file" || continue;
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3964 $as_echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot compute suffix of object files: cannot compile
3970 See \`config.log' for more details" "$LINENO" 5; }
3972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3975 $as_echo "$ac_cv_objext" >&6; }
3976 OBJEXT=$ac_cv_objext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3980 if ${ac_cv_c_compiler_gnu+:} false; then :
3981 $as_echo_n "(cached) " >&6
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4008 if test $ac_compiler_gnu = yes; then
4013 ac_test_CFLAGS=${CFLAGS+set}
4014 ac_save_CFLAGS=$CFLAGS
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4017 if ${ac_cv_prog_cc_g+:} false; then :
4018 $as_echo_n "(cached) " >&6
4020 ac_save_c_werror_flag=$ac_c_werror_flag
4021 ac_c_werror_flag=yes
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4035 if ac_fn_c_try_compile "$LINENO"; then :
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4066 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4077 $as_echo "$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079 CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081 if test "$GCC" = yes; then
4087 if test "$GCC" = yes; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4095 if ${ac_cv_prog_cc_c89+:} false; then :
4096 $as_echo_n "(cached) " >&6
4098 ac_cv_prog_cc_c89=no
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4119 s = g (p, va_arg (v,int));
4124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4125 function prototypes and stuff, but not '\xHH' hex character constants.
4126 These don't provoke an error unfortunately, instead are silently treated
4127 as 'x'. The following induces an error, until -std is added to get
4128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4129 array size at least. It's necessary to write '\x00'==0 to get something
4130 that's true only with -std. */
4131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4134 inside strings and character constants. */
4136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4138 int test (int i, double x);
4139 struct s1 {int (*f) (int a);};
4140 struct s2 {int (*f) (double a);};
4141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4155 CC="$ac_save_CC $ac_arg"
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_prog_cc_c89=$ac_arg
4159 rm -f core conftest.err conftest.$ac_objext
4160 test "x$ac_cv_prog_cc_c89" != "xno" && break
4162 rm -f conftest.$ac_ext
4167 case "x$ac_cv_prog_cc_c89" in
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 $as_echo "none needed" >&6; } ;;
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4173 $as_echo "unsupported" >&6; } ;;
4175 CC="$CC $ac_cv_prog_cc_c89"
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4179 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 depcc="$CC" am_compiler_list=
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4192 $as_echo_n "checking dependency style of $depcc... " >&6; }
4193 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4194 $as_echo_n "(cached) " >&6
4196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4197 # We make a subdir and do the tests there. Otherwise we can end up
4198 # making bogus files that we don't know about and never remove. For
4199 # instance it was reported that on HP-UX the gcc test will end up
4200 # making a dummy file named 'D' -- because '-MD' means "put the output
4204 # Copy depcomp to subdir because otherwise we won't find it if we're
4205 # using a relative directory.
4206 cp "$am_depcomp" conftest.dir
4208 # We will build objects and dependencies in a subdirectory because
4209 # it helps to detect inapplicable dependency modes. For instance
4210 # both Tru64's cc and ICC support -MD to output dependencies as a
4211 # side effect of compilation, but ICC will put the dependencies in
4212 # the current directory while Tru64 will put them in the object
4216 am_cv_CC_dependencies_compiler_type=none
4217 if test "$am_compiler_list" = ""; then
4218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4221 case " $depcc " in #(
4222 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4225 for depmode in $am_compiler_list; do
4226 # Setup a source with many dependencies, because some compilers
4227 # like to wrap large dependency lists on column 80 (with \), and
4228 # we should not choose a depcomp mode which is confused by this.
4230 # We need to recreate these files for each test, as the compiler may
4231 # overwrite some of them when testing with obscure command lines.
4232 # This happens at least with the AIX C compiler.
4234 for i in 1 2 3 4 5 6; do
4235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4236 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4237 # Solaris 10 /bin/sh.
4238 echo '/* dummy */' > sub/conftst$i.h
4240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4243 # mode. It turns out that the SunPro C++ compiler does not properly
4244 # handle '-M -o', and we need to detect this. Also, some Intel
4245 # versions had trouble with output in subdirs.
4246 am__obj=sub/conftest.${OBJEXT-o}
4247 am__minus_obj="-o $am__obj"
4250 # This depmode causes a compiler race in universal mode.
4251 test "$am__universal" = false || continue
4254 # After this tag, mechanisms are not by side-effect, so they'll
4255 # only be used when explicitly requested.
4256 if test "x$enable_dependency_tracking" = xyes; then
4262 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4263 # This compiler won't grok '-c -o', but also, the minuso test has
4264 # not run yet. These depmodes are late enough in the game, and
4265 # so weak that their functioning should not be impacted.
4266 am__obj=conftest.${OBJEXT-o}
4271 if depmode=$depmode \
4272 source=sub/conftest.c object=$am__obj \
4273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4275 >/dev/null 2>conftest.err &&
4276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4280 # icc doesn't choke on unknown options, it will just issue warnings
4281 # or remarks (even with -Werror). So we grep stderr for any message
4282 # that says an option was ignored or not supported.
4283 # When given -MP, icc 7.0 and 7.1 complain thusly:
4284 # icc: Command line warning: ignoring option '-M'; no argument required
4285 # The diagnosis changed in icc 8.0:
4286 # icc: Command line remark: option '-MP' not supported
4287 if (grep 'ignoring option' conftest.err ||
4288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4289 am_cv_CC_dependencies_compiler_type=$depmode
4298 am_cv_CC_dependencies_compiler_type=none
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4303 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4304 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4307 test "x$enable_dependency_tracking" != xno \
4308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310 am__fastdepCC_FALSE='#'
4312 am__fastdepCC_TRUE='#'
4313 am__fastdepCC_FALSE=
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4318 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4319 if ${ac_cv_prog_cc_c99+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 ac_cv_prog_cc_c99=no
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 #include <stdbool.h>
4332 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4333 #define debug(...) fprintf (stderr, __VA_ARGS__)
4334 #define showlist(...) puts (#__VA_ARGS__)
4335 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4337 test_varargs_macros (void)
4342 debug ("X = %d\n", x);
4343 showlist (The first, second, and third items.);
4344 report (x>y, "x is %d but y is %d", x, y);
4347 // Check long long types.
4348 #define BIG64 18446744073709551615ull
4349 #define BIG32 4294967295ul
4350 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4352 your preprocessor is broken;
4356 your preprocessor is broken;
4358 static long long int bignum = -9223372036854775807LL;
4359 static unsigned long long int ubignum = BIG64;
4361 struct incomplete_array
4369 const wchar_t *name;
4373 typedef const char *ccp;
4376 test_restrict (ccp restrict text)
4378 // See if C++-style comments work.
4379 // Iterate through items via the restricted pointer.
4380 // Also check for declarations in for loops.
4381 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4386 // Check varargs and va_copy.
4388 test_varargs (const char *format, ...)
4391 va_start (args, format);
4393 va_copy (args_copy, args);
4404 str = va_arg (args_copy, const char *);
4407 number = va_arg (args_copy, int);
4410 fnumber = va_arg (args_copy, double);
4425 _Bool success = false;
4428 if (test_restrict ("String literal") == 0)
4430 char *restrict newvar = "Another string";
4433 test_varargs ("s, d' f .", "string", 65, 34.234);
4434 test_varargs_macros ();
4436 // Check flexible array members.
4437 struct incomplete_array *ia =
4438 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4440 for (int i = 0; i < ia->datasize; ++i)
4441 ia->data[i] = i * 1.234;
4443 // Check named initializers.
4444 struct named_init ni = {
4446 .name = L"Test wide string",
4447 .average = 543.34343,
4452 int dynamic_array[ni.number];
4453 dynamic_array[ni.number - 1] = 543;
4455 // work around unused variable warnings
4456 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4457 || dynamic_array[ni.number - 1] != 543);
4463 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c99=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c99" != "xno" && break
4472 rm -f conftest.$ac_ext
4477 case "x$ac_cv_prog_cc_c99" in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4485 CC="$CC $ac_cv_prog_cc_c99"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4487 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4489 if test "x$ac_cv_prog_cc_c99" != xno; then :
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4502 # On Suns, sometimes $CPP names a directory.
4503 if test -n "$CPP" && test -d "$CPP"; then
4506 if test -z "$CPP"; then
4507 if ${ac_cv_prog_CPP+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 # Double quotes because CPP needs to be expanded
4511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4514 for ac_c_preproc_warn_flag in '' yes
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4525 @%:@ include <limits.h>
4527 @%:@ include <assert.h>
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4534 # Broken: fails on valid input.
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4539 # OK, works on sane cases. Now check whether nonexistent headers
4540 # can be detected and how.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 @%:@include <ac_nonexistent.h>
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: success on invalid input.
4549 # Passes both tests.
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557 rm -f conftest.i conftest.err conftest.$ac_ext
4558 if $ac_preproc_ok; then :
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4571 $as_echo "$CPP" >&6; }
4573 for ac_c_preproc_warn_flag in '' yes
4575 # Use a header file that comes with gcc, so configuring glibc
4576 # with a fresh cross-compiler works.
4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 # <limits.h> exists even on freestanding compilers.
4579 # On the NeXT, cc -E runs the code through the compiler's parser,
4580 # not just through cpp. "Syntax error" is here to catch this case.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4584 @%:@ include <limits.h>
4586 @%:@ include <assert.h>
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4593 # Broken: fails on valid input.
4596 rm -f conftest.err conftest.i conftest.$ac_ext
4598 # OK, works on sane cases. Now check whether nonexistent headers
4599 # can be detected and how.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 @%:@include <ac_nonexistent.h>
4604 if ac_fn_c_try_cpp "$LINENO"; then :
4605 # Broken: success on invalid input.
4608 # Passes both tests.
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4616 rm -f conftest.i conftest.err conftest.$ac_ext
4617 if $ac_preproc_ok; then :
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4623 See \`config.log' for more details" "$LINENO" 5; }
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4634 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4635 if ${ac_cv_path_GREP+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -z "$GREP"; then
4639 ac_path_GREP_found=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 test -z "$as_dir" && as_dir=.
4646 for ac_prog in grep ggrep; do
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4649 as_fn_executable_p "$ac_path_GREP" || continue
4650 # Check for GNU ac_path_GREP and select it if it is found.
4651 # Check for GNU $ac_path_GREP
4652 case `"$ac_path_GREP" --version 2>&1` in
4654 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657 $as_echo_n 0123456789 >"conftest.in"
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 $as_echo 'GREP' >> "conftest.nl"
4664 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666 as_fn_arith $ac_count + 1 && ac_count=$as_val
4667 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_GREP="$ac_path_GREP"
4670 ac_path_GREP_max=$ac_count
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 $ac_path_GREP_found && break 3
4683 if test -z "$ac_cv_path_GREP"; then
4684 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 ac_cv_path_GREP=$GREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4692 $as_echo "$ac_cv_path_GREP" >&6; }
4693 GREP="$ac_cv_path_GREP"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if ${ac_cv_path_EGREP+:} false; then :
4699 $as_echo_n "(cached) " >&6
4701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702 then ac_cv_path_EGREP="$GREP -E"
4704 if test -z "$EGREP"; then
4705 ac_path_EGREP_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 test -z "$as_dir" && as_dir=.
4712 for ac_prog in egrep; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715 as_fn_executable_p "$ac_path_EGREP" || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717 # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723 $as_echo_n 0123456789 >"conftest.in"
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo 'EGREP' >> "conftest.nl"
4730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732 as_fn_arith $ac_count + 1 && ac_count=$as_val
4733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_EGREP="$ac_path_EGREP"
4736 ac_path_EGREP_max=$ac_count
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_EGREP_found && break 3
4749 if test -z "$ac_cv_path_EGREP"; then
4750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 ac_cv_path_EGREP=$EGREP
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760 EGREP="$ac_cv_path_EGREP"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4764 $as_echo_n "checking for ANSI C header files... " >&6; }
4765 if ${ac_cv_header_stdc+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 ac_cv_header_stdc=yes
4786 ac_cv_header_stdc=no
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 if test $ac_cv_header_stdc = yes; then
4791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798 $EGREP "memchr" >/dev/null 2>&1; then :
4801 ac_cv_header_stdc=no
4807 if test $ac_cv_header_stdc = yes; then
4808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 $EGREP "free" >/dev/null 2>&1; then :
4818 ac_cv_header_stdc=no
4824 if test $ac_cv_header_stdc = yes; then
4825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4826 if test "$cross_compiling" = yes; then :
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4833 #if ((' ' & 0x0FF) == 0x020)
4834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4837 # define ISLOWER(c) \
4838 (('a' <= (c) && (c) <= 'i') \
4839 || ('j' <= (c) && (c) <= 'r') \
4840 || ('s' <= (c) && (c) <= 'z'))
4841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4849 for (i = 0; i < 256; i++)
4850 if (XOR (islower (i), ISLOWER (i))
4851 || toupper (i) != TOUPPER (i))
4856 if ac_fn_c_try_run "$LINENO"; then :
4859 ac_cv_header_stdc=no
4861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4862 conftest.$ac_objext conftest.beam conftest.$ac_ext
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4868 $as_echo "$ac_cv_header_stdc" >&6; }
4869 if test $ac_cv_header_stdc = yes; then
4871 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4875 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4877 inttypes.h stdint.h unistd.h
4879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4883 cat >>confdefs.h <<_ACEOF
4884 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4893 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4894 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4901 if test "$MINIX" = yes; then
4903 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4906 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4909 $as_echo "@%:@define _MINIX 1" >>confdefs.h
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4915 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4916 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4922 # define __EXTENSIONS__ 1
4923 $ac_includes_default
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 ac_cv_safe_to_define___extensions__=yes
4935 ac_cv_safe_to_define___extensions__=no
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4940 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4941 test $ac_cv_safe_to_define___extensions__ = yes &&
4942 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4944 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4946 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4948 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4950 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4953 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
4956 $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
4957 if ${ax_cv_check_cflags___fPIC+:} false; then :
4958 $as_echo_n "(cached) " >&6
4961 ax_check_save_flags=$CFLAGS
4962 CFLAGS="$CFLAGS -fPIC"
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4969 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 ax_cv_check_cflags___fPIC=yes
4977 ax_cv_check_cflags___fPIC=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 CFLAGS=$ax_check_save_flags
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
4983 $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
4984 if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
4987 $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
4988 if ${ax_cv_check_ldflags___fPIC+:} false; then :
4989 $as_echo_n "(cached) " >&6
4992 ax_check_save_flags=$LDFLAGS
4993 LDFLAGS="$LDFLAGS -fPIC"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
5000 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5005 if ac_fn_c_try_link "$LINENO"; then :
5006 ax_cv_check_ldflags___fPIC=yes
5008 ax_cv_check_ldflags___fPIC=no
5010 rm -f core conftest.err conftest.$ac_objext \
5011 conftest$ac_exeext conftest.$ac_ext
5012 LDFLAGS=$ax_check_save_flags
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIC" >&5
5015 $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5016 if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5017 CFLAGS="$CFLAGS -fPIC"
5029 if test "$enable_pie" != "no"; then :
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
5032 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
5033 if ${ax_cv_check_cflags___fPIE+:} false; then :
5034 $as_echo_n "(cached) " >&6
5037 ax_check_save_flags=$CFLAGS
5038 CFLAGS="$CFLAGS -fPIE"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5045 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ax_cv_check_cflags___fPIE=yes
5053 ax_cv_check_cflags___fPIE=no
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 CFLAGS=$ax_check_save_flags
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
5059 $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
5060 if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE" >&5
5063 $as_echo_n "checking whether the linker accepts -fPIE... " >&6; }
5064 if ${ax_cv_check_ldflags___fPIE+:} false; then :
5065 $as_echo_n "(cached) " >&6
5068 ax_check_save_flags=$LDFLAGS
5069 LDFLAGS="$LDFLAGS -fPIE"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5076 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5081 if ac_fn_c_try_link "$LINENO"; then :
5082 ax_cv_check_ldflags___fPIE=yes
5084 ax_cv_check_ldflags___fPIE=no
5086 rm -f core conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 LDFLAGS=$ax_check_save_flags
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fPIE" >&5
5091 $as_echo "$ax_cv_check_ldflags___fPIE" >&6; }
5092 if test x"$ax_cv_check_ldflags___fPIE" = xyes; then :
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
5094 $as_echo_n "checking whether the linker accepts -pie... " >&6; }
5095 if ${ax_cv_check_ldflags___pie+:} false; then :
5096 $as_echo_n "(cached) " >&6
5099 ax_check_save_flags=$LDFLAGS
5100 LDFLAGS="$LDFLAGS -pie"
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5107 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5112 if ac_fn_c_try_link "$LINENO"; then :
5113 ax_cv_check_ldflags___pie=yes
5115 ax_cv_check_ldflags___pie=no
5117 rm -f core conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 LDFLAGS=$ax_check_save_flags
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
5122 $as_echo "$ax_cv_check_ldflags___pie" >&6; }
5123 if test x"$ax_cv_check_ldflags___pie" = xyes; then :
5124 CFLAGS="$CFLAGS -fPIE"
5125 LDFLAGS="$LDFLAGS -pie"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fwrapv" >&5
5144 $as_echo_n "checking whether C compiler accepts -fwrapv... " >&6; }
5145 if ${ax_cv_check_cflags___fwrapv+:} false; then :
5146 $as_echo_n "(cached) " >&6
5149 ax_check_save_flags=$CFLAGS
5150 CFLAGS="$CFLAGS -fwrapv"
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5157 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 ax_cv_check_cflags___fwrapv=yes
5165 ax_cv_check_cflags___fwrapv=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 CFLAGS=$ax_check_save_flags
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fwrapv" >&5
5171 $as_echo "$ax_cv_check_cflags___fwrapv" >&6; }
5172 if test x"$ax_cv_check_cflags___fwrapv" = xyes; then :
5173 CFLAGS="$CFLAGS -fwrapv"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5179 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5180 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
5181 $as_echo_n "(cached) " >&6
5184 ax_check_save_flags=$CFLAGS
5185 CFLAGS="$CFLAGS -fno-strict-aliasing"
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5192 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 ax_cv_check_cflags___fno_strict_aliasing=yes
5200 ax_cv_check_cflags___fno_strict_aliasing=no
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 CFLAGS=$ax_check_save_flags
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
5206 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
5207 if test x"$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
5208 CFLAGS="$CFLAGS -fno-strict-aliasing"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
5214 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
5215 if ${ax_cv_check_cflags___fno_strict_overflow+:} false; then :
5216 $as_echo_n "(cached) " >&6
5219 ax_check_save_flags=$CFLAGS
5220 CFLAGS="$CFLAGS -fno-strict-overflow"
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5227 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ax_cv_check_cflags___fno_strict_overflow=yes
5235 ax_cv_check_cflags___fno_strict_overflow=no
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 CFLAGS=$ax_check_save_flags
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_overflow" >&5
5241 $as_echo "$ax_cv_check_cflags___fno_strict_overflow" >&6; }
5242 if test x"$ax_cv_check_cflags___fno_strict_overflow" = xyes; then :
5243 CFLAGS="$CFLAGS -fno-strict-overflow"
5249 case $host_os in @%:@(
5250 cygwin* | mingw* | pw32* | cegcc*) :
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5253 $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
5254 if ${ax_cv_check_ldflags___Wl___dynamicbase+:} false; then :
5255 $as_echo_n "(cached) " >&6
5258 ax_check_save_flags=$LDFLAGS
5259 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5266 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 ax_cv_check_ldflags___Wl___dynamicbase=yes
5274 ax_cv_check_ldflags___Wl___dynamicbase=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 LDFLAGS=$ax_check_save_flags
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___dynamicbase" >&5
5281 $as_echo "$ax_cv_check_ldflags___Wl___dynamicbase" >&6; }
5282 if test x"$ax_cv_check_ldflags___Wl___dynamicbase" = xyes; then :
5283 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--nxcompat" >&5
5289 $as_echo_n "checking whether the linker accepts -Wl,--nxcompat... " >&6; }
5290 if ${ax_cv_check_ldflags___Wl___nxcompat+:} false; then :
5291 $as_echo_n "(cached) " >&6
5294 ax_check_save_flags=$LDFLAGS
5295 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5302 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 ax_cv_check_ldflags___Wl___nxcompat=yes
5310 ax_cv_check_ldflags___Wl___nxcompat=no
5312 rm -f core conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 LDFLAGS=$ax_check_save_flags
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___nxcompat" >&5
5317 $as_echo "$ax_cv_check_ldflags___Wl___nxcompat" >&6; }
5318 if test x"$ax_cv_check_ldflags___Wl___nxcompat" = xyes; then :
5319 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
5329 if test "x$enable_ssp" != "xno"; then :
5332 case $host_os in @%:@(
5333 cygwin* | mingw* | pw32* | cegcc*) :
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
5338 $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
5339 if ${ax_cv_check_cflags___fstack_protector+:} false; then :
5340 $as_echo_n "(cached) " >&6
5343 ax_check_save_flags=$CFLAGS
5344 CFLAGS="$CFLAGS -fstack-protector"
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5351 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ax_cv_check_cflags___fstack_protector=yes
5359 ax_cv_check_cflags___fstack_protector=no
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 CFLAGS=$ax_check_save_flags
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
5365 $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
5366 if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
5369 $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
5370 if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
5371 $as_echo_n "(cached) " >&6
5374 ax_check_save_flags=$LDFLAGS
5375 LDFLAGS="$LDFLAGS -fstack-protector"
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5382 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5387 if ac_fn_c_try_link "$LINENO"; then :
5388 ax_cv_check_ldflags___fstack_protector=yes
5390 ax_cv_check_ldflags___fstack_protector=no
5392 rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394 LDFLAGS=$ax_check_save_flags
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
5397 $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
5398 if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
5399 CFLAGS="$CFLAGS -fstack-protector"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
5414 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
5415 if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
5416 $as_echo_n "(cached) " >&6
5419 ax_check_save_flags=$CFLAGS
5420 CFLAGS="$CFLAGS -fstack-protector-all"
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5427 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ax_cv_check_cflags___fstack_protector_all=yes
5435 ax_cv_check_cflags___fstack_protector_all=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5438 CFLAGS=$ax_check_save_flags
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
5441 $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
5442 if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
5445 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
5446 if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
5447 $as_echo_n "(cached) " >&6
5450 ax_check_save_flags=$LDFLAGS
5451 LDFLAGS="$LDFLAGS -fstack-protector-all"
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5458 char x[42U];if (fgets(x,1000,stdin)) puts(x)
5463 if ac_fn_c_try_link "$LINENO"; then :
5464 ax_cv_check_ldflags___fstack_protector_all=yes
5466 ax_cv_check_ldflags___fstack_protector_all=no
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LDFLAGS=$ax_check_save_flags
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
5473 $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
5474 if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
5475 CFLAGS="$CFLAGS -fstack-protector-all"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winit-self" >&5
5494 $as_echo_n "checking whether C compiler accepts -Winit-self... " >&6; }
5495 if ${ax_cv_check_cflags___Winit_self+:} false; then :
5496 $as_echo_n "(cached) " >&6
5499 ax_check_save_flags=$CFLAGS
5500 CFLAGS="$CFLAGS -Winit-self"
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5507 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ax_cv_check_cflags___Winit_self=yes
5515 ax_cv_check_cflags___Winit_self=no
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 CFLAGS=$ax_check_save_flags
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winit_self" >&5
5521 $as_echo "$ax_cv_check_cflags___Winit_self" >&6; }
5522 if test x"$ax_cv_check_cflags___Winit_self" = xyes; then :
5523 CFLAGS="$CFLAGS -Winit-self"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
5529 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
5530 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
5531 $as_echo_n "(cached) " >&6
5534 ax_check_save_flags=$CFLAGS
5535 CFLAGS="$CFLAGS -Wwrite-strings"
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5542 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 ax_cv_check_cflags___Wwrite_strings=yes
5550 ax_cv_check_cflags___Wwrite_strings=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 CFLAGS=$ax_check_save_flags
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
5556 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
5557 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
5558 CFLAGS="$CFLAGS -Wwrite-strings"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
5564 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
5565 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
5566 $as_echo_n "(cached) " >&6
5569 ax_check_save_flags=$CFLAGS
5570 CFLAGS="$CFLAGS -Wdiv-by-zero"
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5577 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ax_cv_check_cflags___Wdiv_by_zero=yes
5585 ax_cv_check_cflags___Wdiv_by_zero=no
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 CFLAGS=$ax_check_save_flags
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
5591 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
5592 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
5593 CFLAGS="$CFLAGS -Wdiv-by-zero"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
5599 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
5600 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
5601 $as_echo_n "(cached) " >&6
5604 ax_check_save_flags=$CFLAGS
5605 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5612 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 ax_cv_check_cflags___Wsometimes_uninitialized=yes
5620 ax_cv_check_cflags___Wsometimes_uninitialized=no
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 CFLAGS=$ax_check_save_flags
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
5626 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
5627 if test x"$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
5628 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
5636 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wall" | $as_tr_sh`
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wall" >&5
5638 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wall... " >&6; }
5639 if eval \${$as_CACHEVAR+:} false; then :
5640 $as_echo_n "(cached) " >&6
5643 ax_check_save_flags=$CFLAGS
5644 CFLAGS="$CFLAGS $CWFLAGS -Wall"
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5651 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 eval "$as_CACHEVAR=yes"
5659 eval "$as_CACHEVAR=no"
5661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 CFLAGS=$ax_check_save_flags
5664 eval ac_res=\$$as_CACHEVAR
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5666 $as_echo "$ac_res" >&6; }
5667 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5668 CWFLAGS="$CWFLAGS -Wall"
5673 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wextra" | $as_tr_sh`
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wextra" >&5
5675 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wextra... " >&6; }
5676 if eval \${$as_CACHEVAR+:} false; then :
5677 $as_echo_n "(cached) " >&6
5680 ax_check_save_flags=$CFLAGS
5681 CFLAGS="$CFLAGS $CWFLAGS -Wextra"
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5688 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 eval "$as_CACHEVAR=yes"
5696 eval "$as_CACHEVAR=no"
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 CFLAGS=$ax_check_save_flags
5701 eval ac_res=\$$as_CACHEVAR
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5703 $as_echo "$ac_res" >&6; }
5704 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5705 CWFLAGS="$CWFLAGS -Wextra"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
5712 $as_echo_n "checking for clang... " >&6; }
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wno-unknown-warning-option" | $as_tr_sh`
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option" >&5
5733 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wno-unknown-warning-option... " >&6; }
5734 if eval \${$as_CACHEVAR+:} false; then :
5735 $as_echo_n "(cached) " >&6
5738 ax_check_save_flags=$CFLAGS
5739 CFLAGS="$CFLAGS $CWFLAGS -Wno-unknown-warning-option"
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5746 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 eval "$as_CACHEVAR=yes"
5754 eval "$as_CACHEVAR=no"
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 CFLAGS=$ax_check_save_flags
5759 eval ac_res=\$$as_CACHEVAR
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5761 $as_echo "$ac_res" >&6; }
5762 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5763 CWFLAGS="$CWFLAGS -Wno-unknown-warning-option"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wbad-function-cast" | $as_tr_sh`
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wbad-function-cast" >&5
5777 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wbad-function-cast... " >&6; }
5778 if eval \${$as_CACHEVAR+:} false; then :
5779 $as_echo_n "(cached) " >&6
5782 ax_check_save_flags=$CFLAGS
5783 CFLAGS="$CFLAGS $CWFLAGS -Wbad-function-cast"
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5790 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5795 if ac_fn_c_try_compile "$LINENO"; then :
5796 eval "$as_CACHEVAR=yes"
5798 eval "$as_CACHEVAR=no"
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 CFLAGS=$ax_check_save_flags
5803 eval ac_res=\$$as_CACHEVAR
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5805 $as_echo "$ac_res" >&6; }
5806 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5807 CWFLAGS="$CWFLAGS -Wbad-function-cast"
5812 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-align" | $as_tr_sh`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-align" >&5
5814 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-align... " >&6; }
5815 if eval \${$as_CACHEVAR+:} false; then :
5816 $as_echo_n "(cached) " >&6
5819 ax_check_save_flags=$CFLAGS
5820 CFLAGS="$CFLAGS $CWFLAGS -Wcast-align"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5827 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5832 if ac_fn_c_try_compile "$LINENO"; then :
5833 eval "$as_CACHEVAR=yes"
5835 eval "$as_CACHEVAR=no"
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 CFLAGS=$ax_check_save_flags
5840 eval ac_res=\$$as_CACHEVAR
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5842 $as_echo "$ac_res" >&6; }
5843 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5844 CWFLAGS="$CWFLAGS -Wcast-align"
5849 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcast-qual" | $as_tr_sh`
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcast-qual" >&5
5851 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcast-qual... " >&6; }
5852 if eval \${$as_CACHEVAR+:} false; then :
5853 $as_echo_n "(cached) " >&6
5856 ax_check_save_flags=$CFLAGS
5857 CFLAGS="$CFLAGS $CWFLAGS -Wcast-qual"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5864 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 eval "$as_CACHEVAR=yes"
5872 eval "$as_CACHEVAR=no"
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 CFLAGS=$ax_check_save_flags
5877 eval ac_res=\$$as_CACHEVAR
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5879 $as_echo "$ac_res" >&6; }
5880 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5881 CWFLAGS="$CWFLAGS -Wcast-qual"
5886 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wchar-subscripts" | $as_tr_sh`
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wchar-subscripts" >&5
5888 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wchar-subscripts... " >&6; }
5889 if eval \${$as_CACHEVAR+:} false; then :
5890 $as_echo_n "(cached) " >&6
5893 ax_check_save_flags=$CFLAGS
5894 CFLAGS="$CFLAGS $CWFLAGS -Wchar-subscripts"
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5901 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5906 if ac_fn_c_try_compile "$LINENO"; then :
5907 eval "$as_CACHEVAR=yes"
5909 eval "$as_CACHEVAR=no"
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 CFLAGS=$ax_check_save_flags
5914 eval ac_res=\$$as_CACHEVAR
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5916 $as_echo "$ac_res" >&6; }
5917 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5918 CWFLAGS="$CWFLAGS -Wchar-subscripts"
5923 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wcomment" | $as_tr_sh`
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wcomment" >&5
5925 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wcomment... " >&6; }
5926 if eval \${$as_CACHEVAR+:} false; then :
5927 $as_echo_n "(cached) " >&6
5930 ax_check_save_flags=$CFLAGS
5931 CFLAGS="$CFLAGS $CWFLAGS -Wcomment"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5938 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 eval "$as_CACHEVAR=yes"
5946 eval "$as_CACHEVAR=no"
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 CFLAGS=$ax_check_save_flags
5951 eval ac_res=\$$as_CACHEVAR
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5953 $as_echo "$ac_res" >&6; }
5954 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5955 CWFLAGS="$CWFLAGS -Wcomment"
5960 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wfloat-equal" | $as_tr_sh`
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wfloat-equal" >&5
5962 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wfloat-equal... " >&6; }
5963 if eval \${$as_CACHEVAR+:} false; then :
5964 $as_echo_n "(cached) " >&6
5967 ax_check_save_flags=$CFLAGS
5968 CFLAGS="$CFLAGS $CWFLAGS -Wfloat-equal"
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5975 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 eval "$as_CACHEVAR=yes"
5983 eval "$as_CACHEVAR=no"
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 CFLAGS=$ax_check_save_flags
5988 eval ac_res=\$$as_CACHEVAR
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5990 $as_echo "$ac_res" >&6; }
5991 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
5992 CWFLAGS="$CWFLAGS -Wfloat-equal"
5997 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wformat=2" | $as_tr_sh`
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wformat=2" >&5
5999 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wformat=2... " >&6; }
6000 if eval \${$as_CACHEVAR+:} false; then :
6001 $as_echo_n "(cached) " >&6
6004 ax_check_save_flags=$CFLAGS
6005 CFLAGS="$CFLAGS $CWFLAGS -Wformat=2"
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6012 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018 eval "$as_CACHEVAR=yes"
6020 eval "$as_CACHEVAR=no"
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 CFLAGS=$ax_check_save_flags
6025 eval ac_res=\$$as_CACHEVAR
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6027 $as_echo "$ac_res" >&6; }
6028 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6029 CWFLAGS="$CWFLAGS -Wformat=2"
6034 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wimplicit" | $as_tr_sh`
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wimplicit" >&5
6036 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wimplicit... " >&6; }
6037 if eval \${$as_CACHEVAR+:} false; then :
6038 $as_echo_n "(cached) " >&6
6041 ax_check_save_flags=$CFLAGS
6042 CFLAGS="$CFLAGS $CWFLAGS -Wimplicit"
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6049 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 eval "$as_CACHEVAR=yes"
6057 eval "$as_CACHEVAR=no"
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 CFLAGS=$ax_check_save_flags
6062 eval ac_res=\$$as_CACHEVAR
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6064 $as_echo "$ac_res" >&6; }
6065 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6066 CWFLAGS="$CWFLAGS -Wimplicit"
6071 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-declarations" | $as_tr_sh`
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-declarations" >&5
6073 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-declarations... " >&6; }
6074 if eval \${$as_CACHEVAR+:} false; then :
6075 $as_echo_n "(cached) " >&6
6078 ax_check_save_flags=$CFLAGS
6079 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-declarations"
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6086 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 eval "$as_CACHEVAR=yes"
6094 eval "$as_CACHEVAR=no"
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 CFLAGS=$ax_check_save_flags
6099 eval ac_res=\$$as_CACHEVAR
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6101 $as_echo "$ac_res" >&6; }
6102 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6103 CWFLAGS="$CWFLAGS -Wmissing-declarations"
6108 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wmissing-prototypes" | $as_tr_sh`
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes" >&5
6110 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wmissing-prototypes... " >&6; }
6111 if eval \${$as_CACHEVAR+:} false; then :
6112 $as_echo_n "(cached) " >&6
6115 ax_check_save_flags=$CFLAGS
6116 CFLAGS="$CFLAGS $CWFLAGS -Wmissing-prototypes"
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6123 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 eval "$as_CACHEVAR=yes"
6131 eval "$as_CACHEVAR=no"
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 CFLAGS=$ax_check_save_flags
6136 eval ac_res=\$$as_CACHEVAR
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6138 $as_echo "$ac_res" >&6; }
6139 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6140 CWFLAGS="$CWFLAGS -Wmissing-prototypes"
6145 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wnormalized=id" | $as_tr_sh`
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wnormalized=id" >&5
6147 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wnormalized=id... " >&6; }
6148 if eval \${$as_CACHEVAR+:} false; then :
6149 $as_echo_n "(cached) " >&6
6152 ax_check_save_flags=$CFLAGS
6153 CFLAGS="$CFLAGS $CWFLAGS -Wnormalized=id"
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6160 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 eval "$as_CACHEVAR=yes"
6168 eval "$as_CACHEVAR=no"
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 CFLAGS=$ax_check_save_flags
6173 eval ac_res=\$$as_CACHEVAR
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6175 $as_echo "$ac_res" >&6; }
6176 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6177 CWFLAGS="$CWFLAGS -Wnormalized=id"
6182 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Woverride-init" | $as_tr_sh`
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Woverride-init" >&5
6184 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Woverride-init... " >&6; }
6185 if eval \${$as_CACHEVAR+:} false; then :
6186 $as_echo_n "(cached) " >&6
6189 ax_check_save_flags=$CFLAGS
6190 CFLAGS="$CFLAGS $CWFLAGS -Woverride-init"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6197 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 eval "$as_CACHEVAR=yes"
6205 eval "$as_CACHEVAR=no"
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 CFLAGS=$ax_check_save_flags
6210 eval ac_res=\$$as_CACHEVAR
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6212 $as_echo "$ac_res" >&6; }
6213 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6214 CWFLAGS="$CWFLAGS -Woverride-init"
6219 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wparentheses" | $as_tr_sh`
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wparentheses" >&5
6221 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wparentheses... " >&6; }
6222 if eval \${$as_CACHEVAR+:} false; then :
6223 $as_echo_n "(cached) " >&6
6226 ax_check_save_flags=$CFLAGS
6227 CFLAGS="$CFLAGS $CWFLAGS -Wparentheses"
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6234 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 eval "$as_CACHEVAR=yes"
6242 eval "$as_CACHEVAR=no"
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 CFLAGS=$ax_check_save_flags
6247 eval ac_res=\$$as_CACHEVAR
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6249 $as_echo "$ac_res" >&6; }
6250 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6251 CWFLAGS="$CWFLAGS -Wparentheses"
6256 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wpointer-arith" | $as_tr_sh`
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wpointer-arith" >&5
6258 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wpointer-arith... " >&6; }
6259 if eval \${$as_CACHEVAR+:} false; then :
6260 $as_echo_n "(cached) " >&6
6263 ax_check_save_flags=$CFLAGS
6264 CFLAGS="$CFLAGS $CWFLAGS -Wpointer-arith"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6271 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6276 if ac_fn_c_try_compile "$LINENO"; then :
6277 eval "$as_CACHEVAR=yes"
6279 eval "$as_CACHEVAR=no"
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 CFLAGS=$ax_check_save_flags
6284 eval ac_res=\$$as_CACHEVAR
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6286 $as_echo "$ac_res" >&6; }
6287 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6288 CWFLAGS="$CWFLAGS -Wpointer-arith"
6293 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wredundant-decls" | $as_tr_sh`
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wredundant-decls" >&5
6295 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wredundant-decls... " >&6; }
6296 if eval \${$as_CACHEVAR+:} false; then :
6297 $as_echo_n "(cached) " >&6
6300 ax_check_save_flags=$CFLAGS
6301 CFLAGS="$CFLAGS $CWFLAGS -Wredundant-decls"
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6308 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6313 if ac_fn_c_try_compile "$LINENO"; then :
6314 eval "$as_CACHEVAR=yes"
6316 eval "$as_CACHEVAR=no"
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 CFLAGS=$ax_check_save_flags
6321 eval ac_res=\$$as_CACHEVAR
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6323 $as_echo "$ac_res" >&6; }
6324 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6325 CWFLAGS="$CWFLAGS -Wredundant-decls"
6330 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wstrict-prototypes" | $as_tr_sh`
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes" >&5
6332 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wstrict-prototypes... " >&6; }
6333 if eval \${$as_CACHEVAR+:} false; then :
6334 $as_echo_n "(cached) " >&6
6337 ax_check_save_flags=$CFLAGS
6338 CFLAGS="$CFLAGS $CWFLAGS -Wstrict-prototypes"
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6345 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351 eval "$as_CACHEVAR=yes"
6353 eval "$as_CACHEVAR=no"
6355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 CFLAGS=$ax_check_save_flags
6358 eval ac_res=\$$as_CACHEVAR
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6360 $as_echo "$ac_res" >&6; }
6361 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6362 CWFLAGS="$CWFLAGS -Wstrict-prototypes"
6367 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wswitch-enum" | $as_tr_sh`
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wswitch-enum" >&5
6369 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wswitch-enum... " >&6; }
6370 if eval \${$as_CACHEVAR+:} false; then :
6371 $as_echo_n "(cached) " >&6
6374 ax_check_save_flags=$CFLAGS
6375 CFLAGS="$CFLAGS $CWFLAGS -Wswitch-enum"
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6382 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 eval "$as_CACHEVAR=yes"
6390 eval "$as_CACHEVAR=no"
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 CFLAGS=$ax_check_save_flags
6395 eval ac_res=\$$as_CACHEVAR
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6399 CWFLAGS="$CWFLAGS -Wswitch-enum"
6404 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CWFLAGS -Wvariable-decl" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CWFLAGS -Wvariable-decl" >&5
6406 $as_echo_n "checking whether C compiler accepts $CWFLAGS -Wvariable-decl... " >&6; }
6407 if eval \${$as_CACHEVAR+:} false; then :
6408 $as_echo_n "(cached) " >&6
6411 ax_check_save_flags=$CFLAGS
6412 CFLAGS="$CFLAGS $CWFLAGS -Wvariable-decl"
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6419 char x[42U], fodder = 0;if (fodder > -1000 && fgets(x,1000,stdin)) puts(x)
6424 if ac_fn_c_try_compile "$LINENO"; then :
6425 eval "$as_CACHEVAR=yes"
6427 eval "$as_CACHEVAR=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 CFLAGS=$ax_check_save_flags
6432 eval ac_res=\$$as_CACHEVAR
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
6436 CWFLAGS="$CWFLAGS -Wvariable-decl"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
6443 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
6444 if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
6445 $as_echo_n "(cached) " >&6
6448 ax_check_save_flags=$LDFLAGS
6449 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6456 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6461 if ac_fn_c_try_link "$LINENO"; then :
6462 ax_cv_check_ldflags___Wl__z_relro=yes
6464 ax_cv_check_ldflags___Wl__z_relro=no
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6468 LDFLAGS=$ax_check_save_flags
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
6471 $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
6472 if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
6473 LDFLAGS="$LDFLAGS -Wl,-z,relro"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
6479 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
6480 if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
6481 $as_echo_n "(cached) " >&6
6484 ax_check_save_flags=$LDFLAGS
6485 LDFLAGS="$LDFLAGS -Wl,-z,now"
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6492 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6497 if ac_fn_c_try_link "$LINENO"; then :
6498 ax_cv_check_ldflags___Wl__z_now=yes
6500 ax_cv_check_ldflags___Wl__z_now=no
6502 rm -f core conftest.err conftest.$ac_objext \
6503 conftest$ac_exeext conftest.$ac_ext
6504 LDFLAGS=$ax_check_save_flags
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
6507 $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
6508 if test x"$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
6509 LDFLAGS="$LDFLAGS -Wl,-z,now"
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
6515 $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
6516 if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
6517 $as_echo_n "(cached) " >&6
6520 ax_check_save_flags=$LDFLAGS
6521 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6528 char x[42U];if (fgets(x,1000,stdin)) puts(x)
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 ax_cv_check_ldflags___Wl__z_noexecstack=yes
6536 ax_cv_check_ldflags___Wl__z_noexecstack=no
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LDFLAGS=$ax_check_save_flags
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
6543 $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
6544 if test x"$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
6545 LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6554 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6559 macro_version='2.4.2'
6560 macro_revision='1.3337'
6574 ltmain="$ac_aux_dir/ltmain.sh"
6576 # Backslashify metacharacters that are still active within
6577 # double-quoted strings.
6578 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6580 # Same as above, but do not quote variable references.
6581 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6583 # Sed substitution to delay expansion of an escaped shell variable in a
6584 # double_quote_subst'ed string.
6585 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6587 # Sed substitution to delay expansion of an escaped single quote.
6588 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6590 # Sed substitution to avoid accidental globbing in evaled expressions
6591 no_glob_subst='s/\*/\\\*/g'
6593 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6595 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6598 $as_echo_n "checking how to print strings... " >&6; }
6599 # Test print first, because it will be a builtin if present.
6600 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6601 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6603 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6606 # Use this function as a fallback that always works.
6607 func_fallback_echo ()
6609 eval 'cat <<_LTECHO_EOF
6613 ECHO='func_fallback_echo'
6616 # func_echo_all arg...
6617 # Invoke $ECHO with all args, space-separated.
6624 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6625 $as_echo "printf" >&6; } ;;
6626 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6627 $as_echo "print -r" >&6; } ;;
6628 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6629 $as_echo "cat" >&6; } ;;
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6646 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6647 if ${ac_cv_path_SED+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6651 for ac_i in 1 2 3 4 5 6 7; do
6652 ac_script="$ac_script$as_nl$ac_script"
6654 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6655 { ac_script=; unset ac_script;}
6656 if test -z "$SED"; then
6657 ac_path_SED_found=false
6658 # Loop through the user's path and test for each of PROGNAME-LIST
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_prog in sed gsed; do
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6667 as_fn_executable_p "$ac_path_SED" || continue
6668 # Check for GNU ac_path_SED and select it if it is found.
6669 # Check for GNU $ac_path_SED
6670 case `"$ac_path_SED" --version 2>&1` in
6672 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6675 $as_echo_n 0123456789 >"conftest.in"
6678 cat "conftest.in" "conftest.in" >"conftest.tmp"
6679 mv "conftest.tmp" "conftest.in"
6680 cp "conftest.in" "conftest.nl"
6681 $as_echo '' >> "conftest.nl"
6682 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6684 as_fn_arith $ac_count + 1 && ac_count=$as_val
6685 if test $ac_count -gt ${ac_path_SED_max-0}; then
6686 # Best one so far, save it but keep looking for a better one
6687 ac_cv_path_SED="$ac_path_SED"
6688 ac_path_SED_max=$ac_count
6690 # 10*(2^10) chars as input seems more than enough
6691 test $ac_count -gt 10 && break
6693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6696 $ac_path_SED_found && break 3
6701 if test -z "$ac_cv_path_SED"; then
6702 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6710 $as_echo "$ac_cv_path_SED" >&6; }
6711 SED="$ac_cv_path_SED"
6714 test -z "$SED" && SED=sed
6715 Xsed="$SED -e 1s/^X//"
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6728 $as_echo_n "checking for fgrep... " >&6; }
6729 if ${ac_cv_path_FGREP+:} false; then :
6730 $as_echo_n "(cached) " >&6
6732 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6733 then ac_cv_path_FGREP="$GREP -F"
6735 if test -z "$FGREP"; then
6736 ac_path_FGREP_found=false
6737 # Loop through the user's path and test for each of PROGNAME-LIST
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6742 test -z "$as_dir" && as_dir=.
6743 for ac_prog in fgrep; do
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6746 as_fn_executable_p "$ac_path_FGREP" || continue
6747 # Check for GNU ac_path_FGREP and select it if it is found.
6748 # Check for GNU $ac_path_FGREP
6749 case `"$ac_path_FGREP" --version 2>&1` in
6751 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6754 $as_echo_n 0123456789 >"conftest.in"
6757 cat "conftest.in" "conftest.in" >"conftest.tmp"
6758 mv "conftest.tmp" "conftest.in"
6759 cp "conftest.in" "conftest.nl"
6760 $as_echo 'FGREP' >> "conftest.nl"
6761 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6763 as_fn_arith $ac_count + 1 && ac_count=$as_val
6764 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6765 # Best one so far, save it but keep looking for a better one
6766 ac_cv_path_FGREP="$ac_path_FGREP"
6767 ac_path_FGREP_max=$ac_count
6769 # 10*(2^10) chars as input seems more than enough
6770 test $ac_count -gt 10 && break
6772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6775 $ac_path_FGREP_found && break 3
6780 if test -z "$ac_cv_path_FGREP"; then
6781 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6784 ac_cv_path_FGREP=$FGREP
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6790 $as_echo "$ac_cv_path_FGREP" >&6; }
6791 FGREP="$ac_cv_path_FGREP"
6794 test -z "$GREP" && GREP=grep
6814 @%:@ Check whether --with-gnu-ld was given.
6815 if test "${with_gnu_ld+set}" = set; then :
6816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6822 if test "$GCC" = yes; then
6823 # Check if gcc -print-prog-name=ld gives a path.
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6825 $as_echo_n "checking for ld used by $CC... " >&6; }
6828 # gcc leaves a trailing carriage return which upsets mingw
6829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6834 # Accept absolute paths.
6836 re_direlt='/[^/][^/]*/\.\./'
6837 # Canonicalize the pathname of ld
6838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6842 test -z "$LD" && LD="$ac_prog"
6845 # If it fails, then pretend we aren't using GCC.
6849 # If it is relative, then search for the first ld in PATH.
6853 elif test "$with_gnu_ld" = yes; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6855 $as_echo_n "checking for GNU ld... " >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6858 $as_echo_n "checking for non-GNU ld... " >&6; }
6860 if ${lt_cv_path_LD+:} false; then :
6861 $as_echo_n "(cached) " >&6
6863 if test -z "$LD"; then
6864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6865 for ac_dir in $PATH; do
6867 test -z "$ac_dir" && ac_dir=.
6868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6869 lt_cv_path_LD="$ac_dir/$ac_prog"
6870 # Check to see if the program is GNU ld. I'd rather use --version,
6871 # but apparently some variants of GNU ld only accept -v.
6872 # Break only if it was the GNU/non-GNU ld that we prefer.
6873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6874 *GNU* | *'with BFD'*)
6875 test "$with_gnu_ld" != no && break
6878 test "$with_gnu_ld" != yes && break
6885 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6890 if test -n "$LD"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6892 $as_echo "$LD" >&6; }
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6897 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6899 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6900 if ${lt_cv_prog_gnu_ld+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6904 case `$LD -v 2>&1 </dev/null` in
6905 *GNU* | *'with BFD'*)
6906 lt_cv_prog_gnu_ld=yes
6909 lt_cv_prog_gnu_ld=no
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6914 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6915 with_gnu_ld=$lt_cv_prog_gnu_ld
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6926 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6927 if ${lt_cv_path_NM+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$NM"; then
6931 # Let the user override the test.
6934 lt_nm_to_check="${ac_tool_prefix}nm"
6935 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6936 lt_nm_to_check="$lt_nm_to_check nm"
6938 for lt_tmp_nm in $lt_nm_to_check; do
6939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6942 test -z "$ac_dir" && ac_dir=.
6943 tmp_nm="$ac_dir/$lt_tmp_nm"
6944 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6945 # Check to see if the nm accepts a BSD-compat flag.
6946 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6947 # nm: unknown option "B" ignored
6948 # Tru64's nm complains that /dev/null is an invalid object file
6949 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6950 */dev/null* | *'Invalid file or object type'*)
6951 lt_cv_path_NM="$tmp_nm -B"
6955 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6957 lt_cv_path_NM="$tmp_nm -p"
6961 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6962 continue # so that we can try to find one that supports BSD flags
6971 : ${lt_cv_path_NM=no}
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6975 $as_echo "$lt_cv_path_NM" >&6; }
6976 if test "$lt_cv_path_NM" != "no"; then
6979 # Didn't find any BSD compatible name lister, look for dumpbin.
6980 if test -n "$DUMPBIN"; then :
6981 # Let the user override the test.
6983 if test -n "$ac_tool_prefix"; then
6984 for ac_prog in dumpbin "link -dump"
6986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_DUMPBIN+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 if test -n "$DUMPBIN"; then
6994 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 DUMPBIN=$ac_cv_prog_DUMPBIN
7014 if test -n "$DUMPBIN"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7016 $as_echo "$DUMPBIN" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023 test -n "$DUMPBIN" && break
7026 if test -z "$DUMPBIN"; then
7027 ac_ct_DUMPBIN=$DUMPBIN
7028 for ac_prog in dumpbin "link -dump"
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy $ac_prog; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 if test -n "$ac_ct_DUMPBIN"; then
7038 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7058 if test -n "$ac_ct_DUMPBIN"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7060 $as_echo "$ac_ct_DUMPBIN" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7067 test -n "$ac_ct_DUMPBIN" && break
7070 if test "x$ac_ct_DUMPBIN" = x; then
7073 case $cross_compiling:$ac_tool_warned in
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7079 DUMPBIN=$ac_ct_DUMPBIN
7083 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7085 DUMPBIN="$DUMPBIN -symbols"
7093 if test "$DUMPBIN" != ":"; then
7097 test -z "$NM" && NM=nm
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7105 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7106 if ${lt_cv_nm_interface+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 lt_cv_nm_interface="BSD nm"
7110 echo "int some_variable = 0;" > conftest.$ac_ext
7111 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7112 (eval "$ac_compile" 2>conftest.err)
7113 cat conftest.err >&5
7114 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7115 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7116 cat conftest.err >&5
7117 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7118 cat conftest.out >&5
7119 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7120 lt_cv_nm_interface="MS dumpbin"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7125 $as_echo "$lt_cv_nm_interface" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7128 $as_echo_n "checking whether ln -s works... " >&6; }
7130 if test "$LN_S" = "ln -s"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7132 $as_echo "yes" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7135 $as_echo "no, using $LN_S" >&6; }
7138 # find the maximum length of command line arguments
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7140 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7141 if ${lt_cv_sys_max_cmd_len+:} false; then :
7142 $as_echo_n "(cached) " >&6
7149 # On DJGPP, this test can blow up pretty badly due to problems in libc
7150 # (any single argument exceeding 2000 bytes causes a buffer overrun
7151 # during glob expansion). Even if it were fixed, the result of this
7152 # check would be larger than it should be.
7153 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7157 # Under GNU Hurd, this test is not required because there is
7158 # no limit to the length of command line arguments.
7159 # Libtool will interpret -1 as no limit whatsoever
7160 lt_cv_sys_max_cmd_len=-1;
7163 cygwin* | mingw* | cegcc*)
7164 # On Win9x/ME, this test blows up -- it succeeds, but takes
7165 # about 5 minutes as the teststring grows exponentially.
7166 # Worse, since 9x/ME are not pre-emptively multitasking,
7167 # you end up with a "frozen" computer, even though with patience
7168 # the test eventually succeeds (with a max line length of 256k).
7169 # Instead, let's just punt: use the minimum linelength reported by
7170 # all of the supported platforms: 8192 (on NT/2K/XP).
7171 lt_cv_sys_max_cmd_len=8192;
7175 # On MiNT this can take a long time and run out of memory.
7176 lt_cv_sys_max_cmd_len=8192;
7180 # On AmigaOS with pdksh, this test takes hours, literally.
7181 # So we just punt and use a minimum line length of 8192.
7182 lt_cv_sys_max_cmd_len=8192;
7185 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7186 # This has been around since 386BSD, at least. Likely further.
7187 if test -x /sbin/sysctl; then
7188 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7189 elif test -x /usr/sbin/sysctl; then
7190 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7192 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7194 # And add a safety zone
7195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7200 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7201 lt_cv_sys_max_cmd_len=196608
7205 # The test takes a long time on OS/2.
7206 lt_cv_sys_max_cmd_len=8192
7210 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7211 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7212 # nice to cause kernel panics so lets avoid the loop below.
7213 # First set a reasonable default.
7214 lt_cv_sys_max_cmd_len=16384
7216 if test -x /sbin/sysconfig; then
7217 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7218 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7223 lt_cv_sys_max_cmd_len=102400
7225 sysv5* | sco5v6* | sysv4.2uw2*)
7226 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7227 if test -n "$kargmax"; then
7228 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7230 lt_cv_sys_max_cmd_len=32768
7234 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7235 if test -n "$lt_cv_sys_max_cmd_len"; then
7236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7239 # Make teststring a little bigger before we do anything with it.
7240 # a 1K string should be a reasonable start.
7241 for i in 1 2 3 4 5 6 7 8 ; do
7242 teststring=$teststring$teststring
7244 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7245 # If test is not a shell built-in, we'll probably end up computing a
7246 # maximum length that is only half of the actual maximum length, but
7248 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7249 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7250 test $i != 17 # 1/2 MB should be enough
7253 teststring=$teststring$teststring
7255 # Only check the string length outside the loop.
7256 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7258 # Add a significant safety factor because C++ compilers can tack on
7259 # massive amounts of additional arguments before passing them to the
7260 # linker. It appears as though 1/2 is a usable value.
7261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7268 if test -n $lt_cv_sys_max_cmd_len ; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7270 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7273 $as_echo "none" >&6; }
7275 max_cmd_len=$lt_cv_sys_max_cmd_len
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7287 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7288 # Try some XSI features
7291 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7293 && eval 'test $(( 1 + 1 )) -eq 2 \
7294 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7297 $as_echo "$xsi_shell" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7301 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7303 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7305 && lt_shell_append=yes
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7307 $as_echo "$lt_shell_append" >&6; }
7310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7320 # test EBCDIC or ASCII
7321 case `echo X|tr X '\101'` in
7322 A) # ASCII based system
7323 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7324 lt_SP2NL='tr \040 \012'
7325 lt_NL2SP='tr \015\012 \040\040'
7327 *) # EBCDIC based system
7328 lt_SP2NL='tr \100 \n'
7329 lt_NL2SP='tr \r\n \100\100'
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7342 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7343 if ${lt_cv_to_host_file_cmd+:} false; then :
7344 $as_echo_n "(cached) " >&6
7349 *-*-mingw* ) # actually msys
7350 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7353 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7355 * ) # otherwise, assume *nix
7356 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7362 *-*-mingw* ) # actually msys
7363 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7366 lt_cv_to_host_file_cmd=func_convert_file_noop
7368 * ) # otherwise, assume *nix
7369 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7373 * ) # unhandled hosts (and "normal" native builds)
7374 lt_cv_to_host_file_cmd=func_convert_file_noop
7380 to_host_file_cmd=$lt_cv_to_host_file_cmd
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7382 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7389 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7390 if ${lt_cv_to_tool_file_cmd+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 #assume ordinary cross tools, or native build.
7394 lt_cv_to_tool_file_cmd=func_convert_file_noop
7398 *-*-mingw* ) # actually msys
7399 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7407 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7409 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7416 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7417 if ${lt_cv_ld_reload_flag+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 lt_cv_ld_reload_flag='-r'
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7423 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7424 reload_flag=$lt_cv_ld_reload_flag
7425 case $reload_flag in
7427 *) reload_flag=" $reload_flag" ;;
7429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7431 cygwin* | mingw* | pw32* | cegcc*)
7432 if test "$GCC" != yes; then
7437 if test "$GCC" = yes; then
7438 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7453 if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7455 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_prog_OBJDUMP+:} false; then :
7459 $as_echo_n "(cached) " >&6
7461 if test -n "$OBJDUMP"; then
7462 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 OBJDUMP=$ac_cv_prog_OBJDUMP
7482 if test -n "$OBJDUMP"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7484 $as_echo "$OBJDUMP" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7492 if test -z "$ac_cv_prog_OBJDUMP"; then
7493 ac_ct_OBJDUMP=$OBJDUMP
7494 # Extract the first word of "objdump", so it can be a program name with args.
7495 set dummy objdump; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$ac_ct_OBJDUMP"; then
7502 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7522 if test -n "$ac_ct_OBJDUMP"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7524 $as_echo "$ac_ct_OBJDUMP" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7530 if test "x$ac_ct_OBJDUMP" = x; then
7533 case $cross_compiling:$ac_tool_warned in
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7539 OBJDUMP=$ac_ct_OBJDUMP
7542 OBJDUMP="$ac_cv_prog_OBJDUMP"
7545 test -z "$OBJDUMP" && OBJDUMP=objdump
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7556 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7557 if ${lt_cv_deplibs_check_method+:} false; then :
7558 $as_echo_n "(cached) " >&6
7560 lt_cv_file_magic_cmd='$MAGIC_CMD'
7561 lt_cv_file_magic_test_file=
7562 lt_cv_deplibs_check_method='unknown'
7563 # Need to set the preceding variable on all platforms that support
7564 # interlibrary dependencies.
7565 # 'none' -- dependencies not supported.
7566 # `unknown' -- same as none, but documents that we really don't know.
7567 # 'pass_all' -- all dependencies passed with no checks.
7568 # 'test_compile' -- check by making test program.
7569 # 'file_magic [[regex]]' -- check by looking for files in library path
7570 # which responds to the $file_magic_cmd with a given extended regex.
7571 # If you have `file' or equivalent on your system and you're not sure
7572 # whether `pass_all' will *always* work, you probably want this one.
7576 lt_cv_deplibs_check_method=pass_all
7580 lt_cv_deplibs_check_method=pass_all
7584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7585 lt_cv_file_magic_cmd='/usr/bin/file -L'
7586 lt_cv_file_magic_test_file=/shlib/libc.so
7590 # func_win32_libid is a shell function defined in ltmain.sh
7591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7592 lt_cv_file_magic_cmd='func_win32_libid'
7596 # Base MSYS/MinGW do not provide the 'file' command needed by
7597 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7598 # unless we find 'file', for example because we are cross-compiling.
7599 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7600 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7602 lt_cv_file_magic_cmd='func_win32_libid'
7604 # Keep this pattern in sync with the one in func_win32_libid.
7605 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7606 lt_cv_file_magic_cmd='$OBJDUMP -f'
7611 # use the weaker test based on 'objdump'. See mingw*.
7612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7613 lt_cv_file_magic_cmd='$OBJDUMP -f'
7616 darwin* | rhapsody*)
7617 lt_cv_deplibs_check_method=pass_all
7620 freebsd* | dragonfly*)
7621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7624 # Not sure whether the presence of OpenBSD here was a mistake.
7625 # Let's accept both of them until this is cleared up.
7626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7627 lt_cv_file_magic_cmd=/usr/bin/file
7628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7632 lt_cv_deplibs_check_method=pass_all
7637 lt_cv_deplibs_check_method=pass_all
7640 hpux10.20* | hpux11*)
7641 lt_cv_file_magic_cmd=/usr/bin/file
7644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7648 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]'
7649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7653 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7663 irix5* | irix6* | nonstopux*)
7665 *-32|*"-32 ") libmagic=32-bit;;
7666 *-n32|*"-n32 ") libmagic=N32;;
7667 *-64|*"-64 ") libmagic=64-bit;;
7668 *) libmagic=never-match;;
7670 lt_cv_deplibs_check_method=pass_all
7673 # This must be glibc/ELF.
7674 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7675 lt_cv_deplibs_check_method=pass_all
7678 netbsd* | netbsdelf*-gnu)
7679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7688 lt_cv_file_magic_cmd=/usr/bin/file
7689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7693 lt_cv_deplibs_check_method=pass_all
7697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7704 osf3* | osf4* | osf5*)
7705 lt_cv_deplibs_check_method=pass_all
7709 lt_cv_deplibs_check_method=pass_all
7713 lt_cv_deplibs_check_method=pass_all
7716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7717 lt_cv_deplibs_check_method=pass_all
7721 case $host_vendor in
7723 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]'
7724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7727 lt_cv_deplibs_check_method=pass_all
7730 lt_cv_file_magic_cmd='/bin/file'
7731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7734 lt_cv_file_magic_cmd='/bin/file'
7735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7736 lt_cv_file_magic_test_file=/lib/libc.so
7739 lt_cv_deplibs_check_method=pass_all
7742 lt_cv_deplibs_check_method=pass_all
7748 lt_cv_deplibs_check_method=pass_all
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7758 if test "$build" = "$host"; then
7761 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7764 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7770 file_magic_cmd=$lt_cv_file_magic_cmd
7771 deplibs_check_method=$lt_cv_deplibs_check_method
7772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_DLLTOOL+:} false; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$DLLTOOL"; then
7804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 DLLTOOL=$ac_cv_prog_DLLTOOL
7824 if test -n "$DLLTOOL"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7826 $as_echo "$DLLTOOL" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7834 if test -z "$ac_cv_prog_DLLTOOL"; then
7835 ac_ct_DLLTOOL=$DLLTOOL
7836 # Extract the first word of "dlltool", so it can be a program name with args.
7837 set dummy dlltool; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7841 $as_echo_n "(cached) " >&6
7843 if test -n "$ac_ct_DLLTOOL"; then
7844 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7864 if test -n "$ac_ct_DLLTOOL"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7866 $as_echo "$ac_ct_DLLTOOL" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 if test "x$ac_ct_DLLTOOL" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7881 DLLTOOL=$ac_ct_DLLTOOL
7884 DLLTOOL="$ac_cv_prog_DLLTOOL"
7887 test -z "$DLLTOOL" && DLLTOOL=dlltool
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7899 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7900 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7901 $as_echo_n "(cached) " >&6
7903 lt_cv_sharedlib_from_linklib_cmd='unknown'
7906 cygwin* | mingw* | pw32* | cegcc*)
7907 # two different shell functions defined in ltmain.sh
7908 # decide which to use based on capabilities of $DLLTOOL
7909 case `$DLLTOOL --help 2>&1` in
7910 *--identify-strict*)
7911 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7914 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7919 # fallback: assume linklib IS sharedlib
7920 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7926 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7927 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7928 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7936 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_AR+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$AR"; then
7947 ac_cv_prog_AR="$AR" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 if test -n "$AR"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7969 $as_echo "$AR" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7976 test -n "$AR" && break
7979 if test -z "$AR"; then
7983 # Extract the first word of "$ac_prog", so it can be a program name with args.
7984 set dummy $ac_prog; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 if test -n "$ac_ct_AR"; then
7991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_AR="$ac_prog"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8011 if test -n "$ac_ct_AR"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8013 $as_echo "$ac_ct_AR" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 test -n "$ac_ct_AR" && break
8023 if test "x$ac_ct_AR" = x; then
8026 case $cross_compiling:$ac_tool_warned in
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030 ac_tool_warned=yes ;;
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8050 $as_echo_n "checking for archiver @FILE support... " >&6; }
8051 if ${lt_cv_ar_at_file+:} false; then :
8052 $as_echo_n "(cached) " >&6
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 echo conftest.$ac_objext > conftest.lst
8068 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8070 (eval $lt_ar_try) 2>&5
8072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073 test $ac_status = 0; }
8074 if test "$ac_status" -eq 0; then
8075 # Ensure the archiver fails upon bogus file names.
8076 rm -f conftest.$ac_objext libconftest.a
8077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8078 (eval $lt_ar_try) 2>&5
8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081 test $ac_status = 0; }
8082 if test "$ac_status" -ne 0; then
8086 rm -f conftest.* libconftest.a
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8093 $as_echo "$lt_cv_ar_at_file" >&6; }
8095 if test "x$lt_cv_ar_at_file" = xno; then
8098 archiver_list_spec=$lt_cv_ar_at_file
8107 if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}strip; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if ${ac_cv_prog_STRIP+:} false; then :
8113 $as_echo_n "(cached) " >&6
8115 if test -n "$STRIP"; then
8116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 STRIP=$ac_cv_prog_STRIP
8136 if test -n "$STRIP"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8138 $as_echo "$STRIP" >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8146 if test -z "$ac_cv_prog_STRIP"; then
8148 # Extract the first word of "strip", so it can be a program name with args.
8149 set dummy strip; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8153 $as_echo_n "(cached) " >&6
8155 if test -n "$ac_ct_STRIP"; then
8156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165 ac_cv_prog_ac_ct_STRIP="strip"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8176 if test -n "$ac_ct_STRIP"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8178 $as_echo "$ac_ct_STRIP" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8184 if test "x$ac_ct_STRIP" = x; then
8187 case $cross_compiling:$ac_tool_warned in
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191 ac_tool_warned=yes ;;
8196 STRIP="$ac_cv_prog_STRIP"
8199 test -z "$STRIP" && STRIP=:
8206 if test -n "$ac_tool_prefix"; then
8207 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8208 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_prog_RANLIB+:} false; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$RANLIB"; then
8215 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 RANLIB=$ac_cv_prog_RANLIB
8235 if test -n "$RANLIB"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8237 $as_echo "$RANLIB" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8245 if test -z "$ac_cv_prog_RANLIB"; then
8246 ac_ct_RANLIB=$RANLIB
8247 # Extract the first word of "ranlib", so it can be a program name with args.
8248 set dummy ranlib; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$ac_ct_RANLIB"; then
8255 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_ac_ct_RANLIB="ranlib"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8275 if test -n "$ac_ct_RANLIB"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8277 $as_echo "$ac_ct_RANLIB" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_ct_RANLIB" = x; then
8286 case $cross_compiling:$ac_tool_warned in
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8292 RANLIB=$ac_ct_RANLIB
8295 RANLIB="$ac_cv_prog_RANLIB"
8298 test -z "$RANLIB" && RANLIB=:
8305 # Determine commands to create old-style static archives.
8306 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8307 old_postinstall_cmds='chmod 644 $oldlib'
8308 old_postuninstall_cmds=
8310 if test -n "$RANLIB"; then
8313 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8319 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8324 lock_old_archive_extraction=yes ;;
8326 lock_old_archive_extraction=no ;;
8367 # If no C compiler was specified, use CC.
8370 # If no C compiler flags were specified, use CFLAGS.
8371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8373 # Allow CC to be a program name with arguments.
8377 # Check for command to grab the raw symbol name followed by C symbol from nm.
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8379 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8380 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8381 $as_echo_n "(cached) " >&6
8384 # These are sane defaults that work on at least a few old systems.
8385 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8387 # Character class describing NM global symbol codes.
8388 symcode='[BCDEGRST]'
8390 # Regexp to match symbols that can be accessed directly from C.
8391 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8393 # Define system-specific variables.
8398 cygwin* | mingw* | pw32* | cegcc*)
8399 symcode='[ABCDGISTW]'
8402 if test "$host_cpu" = ia64; then
8403 symcode='[ABCDEGRST]'
8407 symcode='[BCDEGRST]'
8410 symcode='[BCDEGQRST]'
8421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8429 # If we're using GNU nm, then use its standard symbol codes.
8430 case `$NM -V 2>&1` in
8431 *GNU* | *'with BFD'*)
8432 symcode='[ABCDGIRSTW]' ;;
8435 # Transform an extracted symbol line into a proper C declaration.
8436 # Some systems (esp. on ia64) link data and code symbols differently,
8437 # so use this general approach.
8438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8440 # Transform an extracted symbol line into symbol name and symbol address
8441 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8442 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'"
8444 # Handle CRLF in mingw tool chain
8448 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8452 # Try without a prefix underscore, then with it.
8453 for ac_symprfx in "" "_"; do
8455 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8456 symxfrm="\\1 $ac_symprfx\\2 \\2"
8458 # Write the raw and C identifiers.
8459 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8460 # Fake it for dumpbin and say T for any non-static function
8461 # and D for any global variable.
8462 # Also find C++ and __fastcall symbols from MSVC++,
8463 # which start with @ or ?.
8464 lt_cv_sys_global_symbol_pipe="$AWK '"\
8465 " {last_section=section; section=\$ 3};"\
8466 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8467 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8468 " \$ 0!~/External *\|/{next};"\
8469 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8470 " {if(hide[section]) next};"\
8471 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8472 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8473 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8474 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8475 " ' prfx=^$ac_symprfx"
8477 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8479 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8481 # Check to see that the pipe works correctly.
8485 cat > conftest.$ac_ext <<_LT_EOF
8490 void nm_test_func(void);
8491 void nm_test_func(void){}
8495 int main(){nm_test_var='a';nm_test_func();return(0);}
8498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8499 (eval $ac_compile) 2>&5
8501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8502 test $ac_status = 0; }; then
8503 # Now try to grab the symbols.
8505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8506 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509 test $ac_status = 0; } && test -s "$nlist"; then
8510 # Try sorting and uniquifying the output.
8511 if sort "$nlist" | uniq > "$nlist"T; then
8512 mv -f "$nlist"T "$nlist"
8517 # Make sure that we snagged all the symbols we need.
8518 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8519 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8520 cat <<_LT_EOF > conftest.$ac_ext
8521 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8522 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8523 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8524 relocations are performed -- see ld's documentation on pseudo-relocs. */
8525 # define LT@&t@_DLSYM_CONST
8526 #elif defined(__osf__)
8527 /* This system does not cope well with relocations in const data. */
8528 # define LT@&t@_DLSYM_CONST
8530 # define LT@&t@_DLSYM_CONST const
8538 # Now generate the symbol file.
8539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8541 cat <<_LT_EOF >> conftest.$ac_ext
8543 /* The mapping between symbol names and symbols. */
8544 LT@&t@_DLSYM_CONST struct {
8548 lt__PROGRAM__LTX_preloaded_symbols[] =
8550 { "@PROGRAM@", (void *) 0 },
8552 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8553 cat <<\_LT_EOF >> conftest.$ac_ext
8557 /* This works around a problem in FreeBSD linker */
8558 #ifdef FREEBSD_WORKAROUND
8559 static const void *lt_preloaded_setup() {
8560 return lt__PROGRAM__LTX_preloaded_symbols;
8568 # Now try linking the two files.
8569 mv conftest.$ac_objext conftstm.$ac_objext
8570 lt_globsym_save_LIBS=$LIBS
8571 lt_globsym_save_CFLAGS=$CFLAGS
8572 LIBS="conftstm.$ac_objext"
8573 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8575 (eval $ac_link) 2>&5
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8581 LIBS=$lt_globsym_save_LIBS
8582 CFLAGS=$lt_globsym_save_CFLAGS
8584 echo "cannot find nm_test_func in $nlist" >&5
8587 echo "cannot find nm_test_var in $nlist" >&5
8590 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8593 echo "$progname: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8596 rm -rf conftest* conftst*
8598 # Do not use the global_symbol_pipe unless it works.
8599 if test "$pipe_works" = yes; then
8602 lt_cv_sys_global_symbol_pipe=
8608 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8609 lt_cv_sys_global_symbol_to_cdecl=
8611 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8613 $as_echo "failed" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8616 $as_echo "ok" >&6; }
8619 # Response file support.
8620 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8621 nm_file_list_spec='@'
8622 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8623 nm_file_list_spec='@'
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8653 $as_echo_n "checking for sysroot... " >&6; }
8655 @%:@ Check whether --with-sysroot was given.
8656 if test "${with_sysroot+set}" = set; then :
8657 withval=$with_sysroot;
8664 case ${with_sysroot} in #(
8666 if test "$GCC" = yes; then
8667 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8671 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8677 $as_echo "${with_sysroot}" >&6; }
8678 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8683 $as_echo "${lt_sysroot:-no}" >&6; }
8689 @%:@ Check whether --enable-libtool-lock was given.
8690 if test "${enable_libtool_lock+set}" = set; then :
8691 enableval=$enable_libtool_lock;
8694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8696 # Some flags need to be propagated to the compiler or linker for good
8700 # Find out which ABI we are using.
8701 echo 'int i;' > conftest.$ac_ext
8702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8703 (eval $ac_compile) 2>&5
8705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8706 test $ac_status = 0; }; then
8707 case `/usr/bin/file conftest.$ac_objext` in
8719 # Find out which ABI we are using.
8720 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8722 (eval $ac_compile) 2>&5
8724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8725 test $ac_status = 0; }; then
8726 if test "$lt_cv_prog_gnu_ld" = yes; then
8727 case `/usr/bin/file conftest.$ac_objext` in
8729 LD="${LD-ld} -melf32bsmip"
8732 LD="${LD-ld} -melf32bmipn32"
8735 LD="${LD-ld} -melf64bmip"
8739 case `/usr/bin/file conftest.$ac_objext` in
8755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8757 # Find out which ABI we are using.
8758 echo 'int i;' > conftest.$ac_ext
8759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760 (eval $ac_compile) 2>&5
8762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8763 test $ac_status = 0; }; then
8764 case `/usr/bin/file conftest.o` in
8767 x86_64-*kfreebsd*-gnu)
8768 LD="${LD-ld} -m elf_i386_fbsd"
8771 LD="${LD-ld} -m elf_i386"
8773 ppc64-*linux*|powerpc64-*linux*)
8774 LD="${LD-ld} -m elf32ppclinux"
8777 LD="${LD-ld} -m elf_s390"
8780 LD="${LD-ld} -m elf32_sparc"
8786 x86_64-*kfreebsd*-gnu)
8787 LD="${LD-ld} -m elf_x86_64_fbsd"
8790 LD="${LD-ld} -m elf_x86_64"
8792 ppc*-*linux*|powerpc*-*linux*)
8793 LD="${LD-ld} -m elf64ppc"
8795 s390*-*linux*|s390*-*tpf*)
8796 LD="${LD-ld} -m elf64_s390"
8799 LD="${LD-ld} -m elf64_sparc"
8809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8810 SAVE_CFLAGS="$CFLAGS"
8811 CFLAGS="$CFLAGS -belf"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8813 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8814 if ${lt_cv_cc_needs_belf+:} false; then :
8815 $as_echo_n "(cached) " >&6
8818 ac_cpp='$CPP $CPPFLAGS'
8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 lt_cv_cc_needs_belf=yes
8837 lt_cv_cc_needs_belf=no
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8842 ac_cpp='$CPP $CPPFLAGS'
8843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8849 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8852 CFLAGS="$SAVE_CFLAGS"
8856 # Find out which ABI we are using.
8857 echo 'int i;' > conftest.$ac_ext
8858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8859 (eval $ac_compile) 2>&5
8861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8862 test $ac_status = 0; }; then
8863 case `/usr/bin/file conftest.o` in
8865 case $lt_cv_prog_gnu_ld in
8869 LD="${LD-ld} -m elf_x86_64"
8872 LD="${LD-ld} -m elf64_sparc"
8875 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8876 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8881 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8893 need_locks="$enable_libtool_lock"
8895 if test -n "$ac_tool_prefix"; then
8896 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8897 set dummy ${ac_tool_prefix}mt; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 if test -n "$MANIFEST_TOOL"; then
8904 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8924 if test -n "$MANIFEST_TOOL"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8926 $as_echo "$MANIFEST_TOOL" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8934 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8935 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8936 # Extract the first word of "mt", so it can be a program name with args.
8937 set dummy mt; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8941 $as_echo_n "(cached) " >&6
8943 if test -n "$ac_ct_MANIFEST_TOOL"; then
8944 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8964 if test -n "$ac_ct_MANIFEST_TOOL"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8966 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8972 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8975 case $cross_compiling:$ac_tool_warned in
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8979 ac_tool_warned=yes ;;
8981 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8984 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8987 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8989 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8990 if ${lt_cv_path_mainfest_tool+:} false; then :
8991 $as_echo_n "(cached) " >&6
8993 lt_cv_path_mainfest_tool=no
8994 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8995 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8996 cat conftest.err >&5
8997 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8998 lt_cv_path_mainfest_tool=yes
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9003 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9004 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9014 rhapsody* | darwin*)
9015 if test -n "$ac_tool_prefix"; then
9016 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9017 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 if test -n "$DSYMUTIL"; then
9024 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9044 if test -n "$DSYMUTIL"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9046 $as_echo "$DSYMUTIL" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9054 if test -z "$ac_cv_prog_DSYMUTIL"; then
9055 ac_ct_DSYMUTIL=$DSYMUTIL
9056 # Extract the first word of "dsymutil", so it can be a program name with args.
9057 set dummy dsymutil; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 if test -n "$ac_ct_DSYMUTIL"; then
9064 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9084 if test -n "$ac_ct_DSYMUTIL"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9086 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9092 if test "x$ac_ct_DSYMUTIL" = x; then
9095 case $cross_compiling:$ac_tool_warned in
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9099 ac_tool_warned=yes ;;
9101 DSYMUTIL=$ac_ct_DSYMUTIL
9104 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9107 if test -n "$ac_tool_prefix"; then
9108 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9109 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_NMEDIT+:} false; then :
9113 $as_echo_n "(cached) " >&6
9115 if test -n "$NMEDIT"; then
9116 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9125 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 NMEDIT=$ac_cv_prog_NMEDIT
9136 if test -n "$NMEDIT"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9138 $as_echo "$NMEDIT" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9146 if test -z "$ac_cv_prog_NMEDIT"; then
9147 ac_ct_NMEDIT=$NMEDIT
9148 # Extract the first word of "nmedit", so it can be a program name with args.
9149 set dummy nmedit; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 if test -n "$ac_ct_NMEDIT"; then
9156 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9165 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9176 if test -n "$ac_ct_NMEDIT"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9178 $as_echo "$ac_ct_NMEDIT" >&6; }
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9184 if test "x$ac_ct_NMEDIT" = x; then
9187 case $cross_compiling:$ac_tool_warned in
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9191 ac_tool_warned=yes ;;
9193 NMEDIT=$ac_ct_NMEDIT
9196 NMEDIT="$ac_cv_prog_NMEDIT"
9199 if test -n "$ac_tool_prefix"; then
9200 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9201 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_prog_LIPO+:} false; then :
9205 $as_echo_n "(cached) " >&6
9207 if test -n "$LIPO"; then
9208 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 LIPO=$ac_cv_prog_LIPO
9228 if test -n "$LIPO"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9230 $as_echo "$LIPO" >&6; }
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9238 if test -z "$ac_cv_prog_LIPO"; then
9240 # Extract the first word of "lipo", so it can be a program name with args.
9241 set dummy lipo; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9245 $as_echo_n "(cached) " >&6
9247 if test -n "$ac_ct_LIPO"; then
9248 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_ac_ct_LIPO="lipo"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9268 if test -n "$ac_ct_LIPO"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9270 $as_echo "$ac_ct_LIPO" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9276 if test "x$ac_ct_LIPO" = x; then
9279 case $cross_compiling:$ac_tool_warned in
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9283 ac_tool_warned=yes ;;
9288 LIPO="$ac_cv_prog_LIPO"
9291 if test -n "$ac_tool_prefix"; then
9292 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9293 set dummy ${ac_tool_prefix}otool; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if ${ac_cv_prog_OTOOL+:} false; then :
9297 $as_echo_n "(cached) " >&6
9299 if test -n "$OTOOL"; then
9300 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9309 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 OTOOL=$ac_cv_prog_OTOOL
9320 if test -n "$OTOOL"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9322 $as_echo "$OTOOL" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9330 if test -z "$ac_cv_prog_OTOOL"; then
9332 # Extract the first word of "otool", so it can be a program name with args.
9333 set dummy otool; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 if test -n "$ac_ct_OTOOL"; then
9340 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349 ac_cv_prog_ac_ct_OTOOL="otool"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9360 if test -n "$ac_ct_OTOOL"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9362 $as_echo "$ac_ct_OTOOL" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9368 if test "x$ac_ct_OTOOL" = x; then
9371 case $cross_compiling:$ac_tool_warned in
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9375 ac_tool_warned=yes ;;
9380 OTOOL="$ac_cv_prog_OTOOL"
9383 if test -n "$ac_tool_prefix"; then
9384 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9385 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if ${ac_cv_prog_OTOOL64+:} false; then :
9389 $as_echo_n "(cached) " >&6
9391 if test -n "$OTOOL64"; then
9392 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9401 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 OTOOL64=$ac_cv_prog_OTOOL64
9412 if test -n "$OTOOL64"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9414 $as_echo "$OTOOL64" >&6; }
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9422 if test -z "$ac_cv_prog_OTOOL64"; then
9423 ac_ct_OTOOL64=$OTOOL64
9424 # Extract the first word of "otool64", so it can be a program name with args.
9425 set dummy otool64; ac_word=$2
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427 $as_echo_n "checking for $ac_word... " >&6; }
9428 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 if test -n "$ac_ct_OTOOL64"; then
9432 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9441 ac_cv_prog_ac_ct_OTOOL64="otool64"
9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9452 if test -n "$ac_ct_OTOOL64"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9454 $as_echo "$ac_ct_OTOOL64" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9460 if test "x$ac_ct_OTOOL64" = x; then
9463 case $cross_compiling:$ac_tool_warned in
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9467 ac_tool_warned=yes ;;
9469 OTOOL64=$ac_ct_OTOOL64
9472 OTOOL64="$ac_cv_prog_OTOOL64"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9502 $as_echo_n "checking for -single_module linker flag... " >&6; }
9503 if ${lt_cv_apple_cc_single_mod+:} false; then :
9504 $as_echo_n "(cached) " >&6
9506 lt_cv_apple_cc_single_mod=no
9507 if test -z "${LT_MULTI_MODULE}"; then
9508 # By default we will add the -single_module flag. You can override
9509 # by either setting the environment variable LT_MULTI_MODULE
9510 # non-empty at configure time, or by adding -multi_module to the
9512 rm -rf libconftest.dylib*
9513 echo "int foo(void){return 1;}" > conftest.c
9514 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9515 -dynamiclib -Wl,-single_module conftest.c" >&5
9516 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9517 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9519 # If there is a non-empty error log, and "single_module"
9520 # appears in it, assume the flag caused a linker warning
9521 if test -s conftest.err && $GREP single_module conftest.err; then
9522 cat conftest.err >&5
9523 # Otherwise, if the output was created with a 0 exit code from
9524 # the compiler, it worked.
9525 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9526 lt_cv_apple_cc_single_mod=yes
9528 cat conftest.err >&5
9530 rm -rf libconftest.dylib*
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9538 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9539 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9540 $as_echo_n "(cached) " >&6
9542 lt_cv_ld_exported_symbols_list=no
9543 save_LDFLAGS=$LDFLAGS
9544 echo "_main" > conftest.sym
9545 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9557 if ac_fn_c_try_link "$LINENO"; then :
9558 lt_cv_ld_exported_symbols_list=yes
9560 lt_cv_ld_exported_symbols_list=no
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LDFLAGS="$save_LDFLAGS"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9568 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9571 $as_echo_n "checking for -force_load linker flag... " >&6; }
9572 if ${lt_cv_ld_force_load+:} false; then :
9573 $as_echo_n "(cached) " >&6
9575 lt_cv_ld_force_load=no
9576 cat > conftest.c << _LT_EOF
9577 int forced_loaded() { return 2;}
9579 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9580 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9581 echo "$AR cru libconftest.a conftest.o" >&5
9582 $AR cru libconftest.a conftest.o 2>&5
9583 echo "$RANLIB libconftest.a" >&5
9584 $RANLIB libconftest.a 2>&5
9585 cat > conftest.c << _LT_EOF
9586 int main() { return 0;}
9588 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9589 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9591 if test -s conftest.err && $GREP force_load conftest.err; then
9592 cat conftest.err >&5
9593 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9594 lt_cv_ld_force_load=yes
9596 cat conftest.err >&5
9598 rm -f conftest.err libconftest.a conftest conftest.c
9599 rm -rf conftest.dSYM
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9603 $as_echo "$lt_cv_ld_force_load" >&6; }
9605 rhapsody* | darwin1.[012])
9606 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9609 darwin*) # darwin 5.x on
9610 # if running on 10.5 or later, the deployment target defaults
9611 # to the OS version, if on x86, and 10.4, the deployment
9612 # target defaults to 10.4. Don't you love it?
9613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9614 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9624 _lt_dar_single_mod='$single_module'
9626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9627 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9629 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9632 _lt_dsymutil='~$DSYMUTIL $lib || :'
9639 for ac_header in dlfcn.h
9641 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9643 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9644 cat >>confdefs.h <<_ACEOF
9645 @%:@define HAVE_DLFCN_H 1
9666 @%:@ Check whether --enable-shared was given.
9667 if test "${enable_shared+set}" = set; then :
9668 enableval=$enable_shared; p=${PACKAGE-default}
9670 yes) enable_shared=yes ;;
9671 no) enable_shared=no ;;
9674 # Look at the argument we got. We use all the common list separators.
9675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9676 for pkg in $enableval; do
9678 if test "X$pkg" = "X$p"; then
9697 @%:@ Check whether --enable-static was given.
9698 if test "${enable_static+set}" = set; then :
9699 enableval=$enable_static; p=${PACKAGE-default}
9701 yes) enable_static=yes ;;
9702 no) enable_static=no ;;
9705 # Look at the argument we got. We use all the common list separators.
9706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9707 for pkg in $enableval; do
9709 if test "X$pkg" = "X$p"; then
9729 @%:@ Check whether --with-pic was given.
9730 if test "${with_pic+set}" = set; then :
9731 withval=$with_pic; lt_p=${PACKAGE-default}
9733 yes|no) pic_mode=$withval ;;
9736 # Look at the argument we got. We use all the common list separators.
9737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9738 for lt_pkg in $withval; do
9740 if test "X$lt_pkg" = "X$lt_p"; then
9752 test -z "$pic_mode" && pic_mode=default
9760 @%:@ Check whether --enable-fast-install was given.
9761 if test "${enable_fast_install+set}" = set; then :
9762 enableval=$enable_fast_install; p=${PACKAGE-default}
9764 yes) enable_fast_install=yes ;;
9765 no) enable_fast_install=no ;;
9767 enable_fast_install=no
9768 # Look at the argument we got. We use all the common list separators.
9769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9770 for pkg in $enableval; do
9772 if test "X$pkg" = "X$p"; then
9773 enable_fast_install=yes
9780 enable_fast_install=yes
9793 # This can be used to rebuild libtool when needed
9794 LIBTOOL_DEPS="$ltmain"
9796 # Always use our own libtool.
9797 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9828 test -z "$LN_S" && LN_S="ln -s"
9843 if test -n "${ZSH_VERSION+set}" ; then
9844 setopt NO_GLOB_SUBST
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9848 $as_echo_n "checking for objdir... " >&6; }
9849 if ${lt_cv_objdir+:} false; then :
9850 $as_echo_n "(cached) " >&6
9852 rm -f .libs 2>/dev/null
9853 mkdir .libs 2>/dev/null
9854 if test -d .libs; then
9857 # MS-DOS does not allow filenames that begin with a dot.
9860 rmdir .libs 2>/dev/null
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9863 $as_echo "$lt_cv_objdir" >&6; }
9864 objdir=$lt_cv_objdir
9870 cat >>confdefs.h <<_ACEOF
9871 @%:@define LT_OBJDIR "$lt_cv_objdir/"
9879 # AIX sometimes has problems with the GCC collect2 program. For some
9880 # reason, if we set the COLLECT_NAMES environment variable, the problems
9881 # vanish in a puff of smoke.
9882 if test "X${COLLECT_NAMES+set}" != Xset; then
9884 export COLLECT_NAMES
9891 can_build_shared=yes
9893 # All known linkers require a `.a' archive for static linking (except MSVC,
9894 # which needs '.lib').
9897 with_gnu_ld="$lt_cv_prog_gnu_ld"
9900 old_CFLAGS="$CFLAGS"
9902 # Set sane defaults for various variables
9903 test -z "$CC" && CC=cc
9904 test -z "$LTCC" && LTCC=$CC
9905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9906 test -z "$LD" && LD=ld
9907 test -z "$ac_objext" && ac_objext=o
9909 for cc_temp in $compiler""; do
9911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9917 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9920 # Only perform the check for file, if the check method requires it
9921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9922 case $deplibs_check_method in
9924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9926 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9928 $as_echo_n "(cached) " >&6
9932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9935 lt_save_MAGIC_CMD="$MAGIC_CMD"
9936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9938 for ac_dir in $ac_dummy; do
9940 test -z "$ac_dir" && ac_dir=.
9941 if test -f $ac_dir/${ac_tool_prefix}file; then
9942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9943 if test -n "$file_magic_test_file"; then
9944 case $deplibs_check_method in
9946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9949 $EGREP "$file_magic_regex" > /dev/null; then
9954 *** Warning: the command libtool uses to detect shared libraries,
9955 *** $file_magic_cmd, produces output that libtool cannot recognize.
9956 *** The result is that libtool may fail to recognize shared libraries
9957 *** as such. This will affect the creation of libtool libraries that
9958 *** depend on shared libraries, but programs linked with such libtool
9959 *** libraries will work regardless of this problem. Nevertheless, you
9960 *** may want to report the problem to your system manager and/or to
9961 *** bug-libtool@gnu.org
9971 MAGIC_CMD="$lt_save_MAGIC_CMD"
9976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9977 if test -n "$MAGIC_CMD"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9979 $as_echo "$MAGIC_CMD" >&6; }
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9989 if test -z "$lt_cv_path_MAGIC_CMD"; then
9990 if test -n "$ac_tool_prefix"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9992 $as_echo_n "checking for file... " >&6; }
9993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9994 $as_echo_n "(cached) " >&6
9998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10001 lt_save_MAGIC_CMD="$MAGIC_CMD"
10002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10004 for ac_dir in $ac_dummy; do
10006 test -z "$ac_dir" && ac_dir=.
10007 if test -f $ac_dir/file; then
10008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10009 if test -n "$file_magic_test_file"; then
10010 case $deplibs_check_method in
10012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10015 $EGREP "$file_magic_regex" > /dev/null; then
10020 *** Warning: the command libtool uses to detect shared libraries,
10021 *** $file_magic_cmd, produces output that libtool cannot recognize.
10022 *** The result is that libtool may fail to recognize shared libraries
10023 *** as such. This will affect the creation of libtool libraries that
10024 *** depend on shared libraries, but programs linked with such libtool
10025 *** libraries will work regardless of this problem. Nevertheless, you
10026 *** may want to report the problem to your system manager and/or to
10027 *** bug-libtool@gnu.org
10037 MAGIC_CMD="$lt_save_MAGIC_CMD"
10042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10043 if test -n "$MAGIC_CMD"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10045 $as_echo "$MAGIC_CMD" >&6; }
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10061 # Use C for the default configuration in the libtool script
10065 ac_cpp='$CPP $CPPFLAGS'
10066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10071 # Source file extension for C test sources.
10074 # Object file extension for compiled C test sources.
10078 # Code to be used in simple compile tests
10079 lt_simple_compile_test_code="int some_variable = 0;"
10081 # Code to be used in simple link tests
10082 lt_simple_link_test_code='int main(){return(0);}'
10090 # If no C compiler was specified, use CC.
10093 # If no C compiler flags were specified, use CFLAGS.
10094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10096 # Allow CC to be a program name with arguments.
10099 # Save the default compiler, since it gets overwritten when the other
10100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10101 compiler_DEFAULT=$CC
10103 # save warnings/boilerplate of simple test code
10104 ac_outfile=conftest.$ac_objext
10105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10107 _lt_compiler_boilerplate=`cat conftest.err`
10110 ac_outfile=conftest.$ac_objext
10111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10113 _lt_linker_boilerplate=`cat conftest.err`
10118 ## There is no encapsulation within the following macros, do not change
10119 ## the running order or otherwise move them around unless you know exactly
10120 ## what you are doing...
10121 if test -n "$compiler"; then
10123 lt_prog_compiler_no_builtin_flag=
10125 if test "$GCC" = yes; then
10126 case $cc_basename in
10128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10134 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10135 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10136 $as_echo_n "(cached) " >&6
10138 lt_cv_prog_compiler_rtti_exceptions=no
10139 ac_outfile=conftest.$ac_objext
10140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10141 lt_compiler_flag="-fno-rtti -fno-exceptions"
10142 # Insert the option either (1) after the last *FLAGS variable, or
10143 # (2) before a word containing "conftest.", or (3) at the end.
10144 # Note that $ac_compile itself does not contain backslashes and begins
10145 # with a dollar sign (not a hyphen), so the echo should work correctly.
10146 # The option is referenced via a variable to avoid confusing sed.
10147 lt_compile=`echo "$ac_compile" | $SED \
10148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10150 -e 's:$: $lt_compiler_flag:'`
10151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10152 (eval "$lt_compile" 2>conftest.err)
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 if (exit $ac_status) && test -s "$ac_outfile"; then
10157 # The compiler can only warn and ignore the option if not recognized
10158 # So say no if there are warnings other than the usual output.
10159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10162 lt_cv_prog_compiler_rtti_exceptions=yes
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10184 lt_prog_compiler_wl=
10185 lt_prog_compiler_pic=
10186 lt_prog_compiler_static=
10189 if test "$GCC" = yes; then
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_static='-static'
10195 # All AIX code is PIC.
10196 if test "$host_cpu" = ia64; then
10197 # AIX 5 now supports IA64 processor
10198 lt_prog_compiler_static='-Bstatic'
10205 # see comment about AmigaOS4 .so support
10206 lt_prog_compiler_pic='-fPIC'
10209 # FIXME: we need at least 68020 code to build shared libraries, but
10210 # adding the `-m68020' flag to GCC prevents building anything better,
10212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10218 # PIC is the default for these OSes.
10221 mingw* | cygwin* | pw32* | os2* | cegcc*)
10222 # This hack is so that the source file can tell whether it is being
10223 # built for inclusion in a dll (and should export symbols for example).
10224 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10225 # (--disable-auto-import) libraries
10226 lt_prog_compiler_pic='-DDLL_EXPORT'
10229 darwin* | rhapsody*)
10230 # PIC is the default on this platform
10231 # Common symbols not allowed in MH_DYLIB files
10232 lt_prog_compiler_pic='-fno-common'
10236 # PIC is the default for Haiku.
10237 # The "-static" flag exists, but is broken.
10238 lt_prog_compiler_static=
10242 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10243 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10244 # sets the default TLS model and affects inlining.
10250 lt_prog_compiler_pic='-fPIC'
10256 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10257 # Instead, we relocate shared libraries at runtime.
10261 # Just because we use GCC doesn't mean we suddenly get shared libraries
10262 # on systems that don't support them.
10263 lt_prog_compiler_can_build_shared=no
10268 # QNX uses GNU C++, but need to define -shared option too, otherwise
10269 # it will coredump.
10270 lt_prog_compiler_pic='-fPIC -shared'
10274 if test -d /usr/nec; then
10275 lt_prog_compiler_pic=-Kconform_pic
10280 lt_prog_compiler_pic='-fPIC'
10284 case $cc_basename in
10285 nvcc*) # Cuda Compiler Driver 2.2
10286 lt_prog_compiler_wl='-Xlinker '
10287 if test -n "$lt_prog_compiler_pic"; then
10288 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10293 # PORTME Check for flag to pass linker flags through the system compiler.
10296 lt_prog_compiler_wl='-Wl,'
10297 if test "$host_cpu" = ia64; then
10298 # AIX 5 now supports IA64 processor
10299 lt_prog_compiler_static='-Bstatic'
10301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10305 mingw* | cygwin* | pw32* | os2* | cegcc*)
10306 # This hack is so that the source file can tell whether it is being
10307 # built for inclusion in a dll (and should export symbols for example).
10308 lt_prog_compiler_pic='-DDLL_EXPORT'
10311 hpux9* | hpux10* | hpux11*)
10312 lt_prog_compiler_wl='-Wl,'
10313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10314 # not for PA HP-UX.
10320 lt_prog_compiler_pic='+Z'
10323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10324 lt_prog_compiler_static='${wl}-a ${wl}archive'
10327 irix5* | irix6* | nonstopux*)
10328 lt_prog_compiler_wl='-Wl,'
10329 # PIC (with -KPIC) is the default.
10330 lt_prog_compiler_static='-non_shared'
10333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10334 case $cc_basename in
10335 # old Intel for x86_64 which still supported -KPIC.
10337 lt_prog_compiler_wl='-Wl,'
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-static'
10341 # icc used to be incompatible with GCC.
10342 # ICC 10 doesn't accept -KPIC any more.
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-fPIC'
10346 lt_prog_compiler_static='-static'
10348 # Lahey Fortran 8.1.
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_pic='--shared'
10352 lt_prog_compiler_static='--static'
10355 # NAG Fortran compiler
10356 lt_prog_compiler_wl='-Wl,-Wl,,'
10357 lt_prog_compiler_pic='-PIC'
10358 lt_prog_compiler_static='-Bstatic'
10360 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10361 # Portland Group compilers (*not* the Pentium gcc compiler,
10362 # which looks to be a dead project)
10363 lt_prog_compiler_wl='-Wl,'
10364 lt_prog_compiler_pic='-fpic'
10365 lt_prog_compiler_static='-Bstatic'
10368 lt_prog_compiler_wl='-Wl,'
10369 # All Alpha code is PIC.
10370 lt_prog_compiler_static='-non_shared'
10372 xl* | bgxl* | bgf* | mpixl*)
10373 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10374 lt_prog_compiler_wl='-Wl,'
10375 lt_prog_compiler_pic='-qpic'
10376 lt_prog_compiler_static='-qstaticlink'
10379 case `$CC -V 2>&1 | sed 5q` in
10380 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10381 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10382 lt_prog_compiler_pic='-KPIC'
10383 lt_prog_compiler_static='-Bstatic'
10384 lt_prog_compiler_wl=''
10386 *Sun\ F* | *Sun*Fortran*)
10387 lt_prog_compiler_pic='-KPIC'
10388 lt_prog_compiler_static='-Bstatic'
10389 lt_prog_compiler_wl='-Qoption ld '
10393 lt_prog_compiler_pic='-KPIC'
10394 lt_prog_compiler_static='-Bstatic'
10395 lt_prog_compiler_wl='-Wl,'
10397 *Intel*\ [CF]*Compiler*)
10398 lt_prog_compiler_wl='-Wl,'
10399 lt_prog_compiler_pic='-fPIC'
10400 lt_prog_compiler_static='-static'
10403 lt_prog_compiler_wl='-Wl,'
10404 lt_prog_compiler_pic='-fpic'
10405 lt_prog_compiler_static='-Bstatic'
10413 lt_prog_compiler_pic='-KPIC'
10414 lt_prog_compiler_static='-Bstatic'
10418 # QNX uses GNU C++, but need to define -shared option too, otherwise
10419 # it will coredump.
10420 lt_prog_compiler_pic='-fPIC -shared'
10423 osf3* | osf4* | osf5*)
10424 lt_prog_compiler_wl='-Wl,'
10425 # All OSF/1 code is PIC.
10426 lt_prog_compiler_static='-non_shared'
10430 lt_prog_compiler_static='-non_shared'
10434 lt_prog_compiler_pic='-KPIC'
10435 lt_prog_compiler_static='-Bstatic'
10436 case $cc_basename in
10437 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10438 lt_prog_compiler_wl='-Qoption ld ';;
10440 lt_prog_compiler_wl='-Wl,';;
10445 lt_prog_compiler_wl='-Qoption ld '
10446 lt_prog_compiler_pic='-PIC'
10447 lt_prog_compiler_static='-Bstatic'
10450 sysv4 | sysv4.2uw2* | sysv4.3*)
10451 lt_prog_compiler_wl='-Wl,'
10452 lt_prog_compiler_pic='-KPIC'
10453 lt_prog_compiler_static='-Bstatic'
10457 if test -d /usr/nec ;then
10458 lt_prog_compiler_pic='-Kconform_pic'
10459 lt_prog_compiler_static='-Bstatic'
10463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10464 lt_prog_compiler_wl='-Wl,'
10465 lt_prog_compiler_pic='-KPIC'
10466 lt_prog_compiler_static='-Bstatic'
10470 lt_prog_compiler_wl='-Wl,'
10471 lt_prog_compiler_can_build_shared=no
10475 lt_prog_compiler_pic='-pic'
10476 lt_prog_compiler_static='-Bstatic'
10480 lt_prog_compiler_can_build_shared=no
10486 # For platforms which do not support PIC, -DPIC is meaningless:
10488 lt_prog_compiler_pic=
10491 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10496 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10497 if ${lt_cv_prog_compiler_pic+:} false; then :
10498 $as_echo_n "(cached) " >&6
10500 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10503 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10504 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10507 # Check to make sure the PIC flag actually works.
10509 if test -n "$lt_prog_compiler_pic"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10511 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10512 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10513 $as_echo_n "(cached) " >&6
10515 lt_cv_prog_compiler_pic_works=no
10516 ac_outfile=conftest.$ac_objext
10517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10518 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
10519 # Insert the option either (1) after the last *FLAGS variable, or
10520 # (2) before a word containing "conftest.", or (3) at the end.
10521 # Note that $ac_compile itself does not contain backslashes and begins
10522 # with a dollar sign (not a hyphen), so the echo should work correctly.
10523 # The option is referenced via a variable to avoid confusing sed.
10524 lt_compile=`echo "$ac_compile" | $SED \
10525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10527 -e 's:$: $lt_compiler_flag:'`
10528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10529 (eval "$lt_compile" 2>conftest.err)
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 if (exit $ac_status) && test -s "$ac_outfile"; then
10534 # The compiler can only warn and ignore the option if not recognized
10535 # So say no if there are warnings other than the usual output.
10536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10539 lt_cv_prog_compiler_pic_works=yes
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10546 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10548 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10549 case $lt_prog_compiler_pic in
10551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10554 lt_prog_compiler_pic=
10555 lt_prog_compiler_can_build_shared=no
10571 # Check to make sure the static flag actually works.
10573 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10575 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10576 if ${lt_cv_prog_compiler_static_works+:} false; then :
10577 $as_echo_n "(cached) " >&6
10579 lt_cv_prog_compiler_static_works=no
10580 save_LDFLAGS="$LDFLAGS"
10581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
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_static_works=yes
10595 lt_cv_prog_compiler_static_works=yes
10599 LDFLAGS="$save_LDFLAGS"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10603 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10605 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10608 lt_prog_compiler_static=
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10619 if ${lt_cv_prog_compiler_c_o+:} false; then :
10620 $as_echo_n "(cached) " >&6
10622 lt_cv_prog_compiler_c_o=no
10623 $RM -r conftest 2>/dev/null
10627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629 lt_compiler_flag="-o out/conftest2.$ac_objext"
10630 # Insert the option either (1) after the last *FLAGS variable, or
10631 # (2) before a word containing "conftest.", or (3) at the end.
10632 # Note that $ac_compile itself does not contain backslashes and begins
10633 # with a dollar sign (not a hyphen), so the echo should work correctly.
10634 lt_compile=`echo "$ac_compile" | $SED \
10635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10637 -e 's:$: $lt_compiler_flag:'`
10638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10639 (eval "$lt_compile" 2>out/conftest.err)
10641 cat out/conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645 # The compiler can only warn and ignore the option if not recognized
10646 # So say no if there are warnings
10647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10650 lt_cv_prog_compiler_c_o=yes
10655 # SGI C++ compiler will create directory out/ii_files/ for
10656 # template instantiation
10657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10658 $RM out/* && rmdir out
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10674 if ${lt_cv_prog_compiler_c_o+:} false; then :
10675 $as_echo_n "(cached) " >&6
10677 lt_cv_prog_compiler_c_o=no
10678 $RM -r conftest 2>/dev/null
10682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684 lt_compiler_flag="-o out/conftest2.$ac_objext"
10685 # Insert the option either (1) after the last *FLAGS variable, or
10686 # (2) before a word containing "conftest.", or (3) at the end.
10687 # Note that $ac_compile itself does not contain backslashes and begins
10688 # with a dollar sign (not a hyphen), so the echo should work correctly.
10689 lt_compile=`echo "$ac_compile" | $SED \
10690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10692 -e 's:$: $lt_compiler_flag:'`
10693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10694 (eval "$lt_compile" 2>out/conftest.err)
10696 cat out/conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10700 # The compiler can only warn and ignore the option if not recognized
10701 # So say no if there are warnings
10702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10705 lt_cv_prog_compiler_c_o=yes
10710 # SGI C++ compiler will create directory out/ii_files/ for
10711 # template instantiation
10712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10713 $RM out/* && rmdir out
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10720 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10725 hard_links="nottested"
10726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10727 # do not overwrite the value of need_locks provided by the user
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10729 $as_echo_n "checking if we can lock with hard links... " >&6; }
10732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10734 ln conftest.a conftest.b 2>&5 || hard_links=no
10735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10737 $as_echo "$hard_links" >&6; }
10738 if test "$hard_links" = no; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10740 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10753 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10756 allow_undefined_flag=
10757 always_export_symbols=no
10759 archive_expsym_cmds=
10760 compiler_needs_object=no
10761 enable_shared_with_static_runtimes=no
10762 export_dynamic_flag_spec=
10763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10764 hardcode_automatic=no
10766 hardcode_direct_absolute=no
10767 hardcode_libdir_flag_spec=
10768 hardcode_libdir_separator=
10769 hardcode_minus_L=no
10770 hardcode_shlibpath_var=unsupported
10772 link_all_deplibs=unknown
10774 module_expsym_cmds=
10775 old_archive_from_new_cmds=
10776 old_archive_from_expsyms_cmds=
10777 thread_safe_flag_spec=
10778 whole_archive_flag_spec=
10779 # include_expsyms should be a list of space-separated symbols to be *always*
10780 # included in the symbol list
10782 # exclude_expsyms can be an extended regexp of symbols to exclude
10783 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10785 # as well as any symbol that contains `d'.
10786 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10788 # platforms (ab)use it in PIC code, but their linkers get confused if
10789 # the symbol is explicitly referenced. Since portable code cannot
10790 # rely on this symbol name, it's probably fine to never include it in
10791 # preloaded symbol tables.
10792 # Exclude shared library initialization/finalization symbols.
10793 extract_expsyms_cmds=
10796 cygwin* | mingw* | pw32* | cegcc*)
10797 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10798 # When not using gcc, we currently assume that we are using
10799 # Microsoft Visual C++.
10800 if test "$GCC" != yes; then
10805 # we just hope/assume this is gcc and not c89 (= MSVC++)
10811 linux* | k*bsd*-gnu | gnu*)
10812 link_all_deplibs=no
10818 # On some targets, GNU ld is compatible enough with the native linker
10819 # that we're better off using the native interface for both.
10820 lt_use_gnu_ld_interface=no
10821 if test "$with_gnu_ld" = yes; then
10824 # The AIX port of GNU ld has always aspired to compatibility
10825 # with the native linker. However, as the warning in the GNU ld
10826 # block says, versions before 2.19.5* couldn't really create working
10827 # shared libraries, regardless of the interface used.
10828 case `$LD -v 2>&1` in
10829 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10830 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10831 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10833 lt_use_gnu_ld_interface=yes
10838 lt_use_gnu_ld_interface=yes
10843 if test "$lt_use_gnu_ld_interface" = yes; then
10844 # If archive_cmds runs LD, not CC, wlarc should be empty
10847 # Set some defaults for GNU ld with shared library support. These
10848 # are reset later if shared libraries are not supported. Putting them
10849 # here allows them to be overridden if necessary.
10850 runpath_var=LD_RUN_PATH
10851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10852 export_dynamic_flag_spec='${wl}--export-dynamic'
10853 # ancient GNU ld didn't support --whole-archive et. al.
10854 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10855 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10857 whole_archive_flag_spec=
10859 supports_anon_versioning=no
10860 case `$LD -v 2>&1` in
10861 *GNU\ gold*) supports_anon_versioning=yes ;;
10862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10865 *\ 2.11.*) ;; # other 2.11 versions
10866 *) supports_anon_versioning=yes ;;
10869 # See if GNU ld supports shared libraries.
10872 # On AIX/PPC, the GNU linker is very broken
10873 if test "$host_cpu" != ia64; then
10877 *** Warning: the GNU linker, at least up to release 2.19, is reported
10878 *** to be unable to reliably create shared libraries on AIX.
10879 *** Therefore, libtool is disabling shared libraries support. If you
10880 *** really care for shared libraries, you may want to install binutils
10881 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10882 *** You will then need to restart the configuration process.
10891 # see comment about AmigaOS4 .so support
10892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10893 archive_expsym_cmds=''
10896 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)'
10897 hardcode_libdir_flag_spec='-L$libdir'
10898 hardcode_minus_L=yes
10904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10905 allow_undefined_flag=unsupported
10906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10907 # support --undefined. This deserves some investigation. FIXME
10908 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10914 cygwin* | mingw* | pw32* | cegcc*)
10915 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10916 # as there is no search path for DLLs.
10917 hardcode_libdir_flag_spec='-L$libdir'
10918 export_dynamic_flag_spec='${wl}--export-all-symbols'
10919 allow_undefined_flag=unsupported
10920 always_export_symbols=no
10921 enable_shared_with_static_runtimes=yes
10922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10923 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10925 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10927 # If the export-symbols file already is a .def file (1st line
10928 # is EXPORTS), use it as is; otherwise, prepend...
10929 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10930 cp $export_symbols $output_objdir/$soname.def;
10932 echo EXPORTS > $output_objdir/$soname.def;
10933 cat $export_symbols >> $output_objdir/$soname.def;
10935 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10943 link_all_deplibs=yes
10948 hardcode_shlibpath_var=no
10949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10950 export_dynamic_flag_spec='${wl}-E'
10951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10952 # Instead, shared libraries are loaded at an image base (0x10000000 by
10953 # default) and relocated if they conflict, which is a slow very memory
10954 # consuming and fragmenting process. To avoid this, we pick a random,
10955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10956 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10957 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10958 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'
10961 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10963 if test "$host_os" = linux-dietlibc; then
10964 case $cc_basename in
10965 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10968 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10969 && test "$tmp_diet" = no
10971 tmp_addflag=' $pic_flag'
10972 tmp_sharedflag='-shared'
10973 case $cc_basename,$host_cpu in
10974 pgcc*) # Portland Group C compiler
10975 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'
10976 tmp_addflag=' $pic_flag'
10978 pgf77* | pgf90* | pgf95* | pgfortran*)
10979 # Portland Group f77 and f90 compilers
10980 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'
10981 tmp_addflag=' $pic_flag -Mnomain' ;;
10982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10983 tmp_addflag=' -i_dynamic' ;;
10984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10985 tmp_addflag=' -i_dynamic -nofor_main' ;;
10986 ifc* | ifort*) # Intel Fortran compiler
10987 tmp_addflag=' -nofor_main' ;;
10988 lf95*) # Lahey Fortran 8.1
10989 whole_archive_flag_spec=
10990 tmp_sharedflag='--shared' ;;
10991 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10992 tmp_sharedflag='-qmkshrobj'
10994 nvcc*) # Cuda Compiler Driver 2.2
10995 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'
10996 compiler_needs_object=yes
10999 case `$CC -V 2>&1 | sed 5q` in
11000 *Sun\ C*) # Sun C 5.9
11001 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'
11002 compiler_needs_object=yes
11003 tmp_sharedflag='-G' ;;
11004 *Sun\ F*) # Sun Fortran 8.3
11005 tmp_sharedflag='-G' ;;
11007 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11009 if test "x$supports_anon_versioning" = xyes; then
11010 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11012 echo "local: *; };" >> $output_objdir/$libname.ver~
11013 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11016 case $cc_basename in
11017 xlf* | bgf* | bgxlf* | mpixlf*)
11018 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11019 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11021 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11022 if test "x$supports_anon_versioning" = xyes; then
11023 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11025 echo "local: *; };" >> $output_objdir/$libname.ver~
11026 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11035 netbsd* | netbsdelf*-gnu)
11036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11037 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11046 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11051 *** create shared libraries on Solaris systems. Therefore, libtool
11052 *** is disabling shared libraries support. We urge you to upgrade GNU
11053 *** binutils to release 2.9.1 or newer. Another option is to modify
11054 *** your PATH or compiler configuration so that the native linker is
11055 *** used, and then restart.
11058 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11060 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11067 case `$LD -v 2>&1` in
11068 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11072 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11073 *** reliably create shared libraries on SCO systems. Therefore, libtool
11074 *** is disabling shared libraries support. We urge you to upgrade GNU
11075 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11076 *** your PATH or compiler configuration so that the native linker is
11077 *** used, and then restart.
11082 # For security reasons, it is highly recommended that you always
11083 # use absolute paths for naming shared libraries, and exclude the
11084 # DT_RUNPATH tag from executables and libraries. But doing so
11085 # requires that you compile everything twice, which is a pain.
11086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11098 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_direct=yes
11101 hardcode_shlibpath_var=no
11105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11114 if test "$ld_shlibs" = no; then
11116 hardcode_libdir_flag_spec=
11117 export_dynamic_flag_spec=
11118 whole_archive_flag_spec=
11121 # PORTME fill in a description of your system's linker (not GNU ld)
11124 allow_undefined_flag=unsupported
11125 always_export_symbols=yes
11126 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'
11127 # Note: this linker hardcodes the directories in LIBPATH if there
11128 # are no directories specified by -L.
11129 hardcode_minus_L=yes
11130 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11131 # Neither direct hardcoding nor static linking is supported with a
11133 hardcode_direct=unsupported
11138 if test "$host_cpu" = ia64; then
11139 # On IA64, the linker does run time linking by default, so we don't
11140 # have to do anything special.
11141 aix_use_runtimelinking=no
11142 exp_sym_flag='-Bexport'
11145 # If we're using GNU nm, then we don't want the "-C" option.
11146 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11147 # Also, AIX nm treats weak defined symbols like other global
11148 # defined symbols, whereas GNU nm marks them as "W".
11149 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11150 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'
11152 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'
11154 aix_use_runtimelinking=no
11156 # Test if we are trying to use run time linking or normal
11157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11158 # need to do runtime linking.
11159 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11160 for ld_flag in $LDFLAGS; do
11161 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11162 aix_use_runtimelinking=yes
11169 exp_sym_flag='-bexport'
11170 no_entry_flag='-bnoentry'
11173 # When large executables or shared objects are built, AIX ld can
11174 # have problems creating the table of contents. If linking a library
11175 # or program results in "error TOC overflow" add -mminimal-toc to
11176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11180 hardcode_direct=yes
11181 hardcode_direct_absolute=yes
11182 hardcode_libdir_separator=':'
11183 link_all_deplibs=yes
11184 file_list_spec='${wl}-f,'
11186 if test "$GCC" = yes; then
11187 case $host_os in aix4.[012]|aix4.[012].*)
11188 # We only want to do this on AIX 4.2 and lower, the check
11189 # below for broken collect2 doesn't work under 4.3+
11190 collect2name=`${CC} -print-prog-name=collect2`
11191 if test -f "$collect2name" &&
11192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11194 # We have reworked collect2
11197 # We have old collect2
11198 hardcode_direct=unsupported
11199 # It fails to find uninstalled libraries when the uninstalled
11200 # path is not listed in the libpath. Setting hardcode_minus_L
11201 # to unsupported forces relinking
11202 hardcode_minus_L=yes
11203 hardcode_libdir_flag_spec='-L$libdir'
11204 hardcode_libdir_separator=
11208 shared_flag='-shared'
11209 if test "$aix_use_runtimelinking" = yes; then
11210 shared_flag="$shared_flag "'${wl}-G'
11212 link_all_deplibs=no
11215 if test "$host_cpu" = ia64; then
11216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11217 # chokes on -Wl,-G. The following line is correct:
11220 if test "$aix_use_runtimelinking" = yes; then
11221 shared_flag='${wl}-G'
11223 shared_flag='${wl}-bM:SRE'
11228 export_dynamic_flag_spec='${wl}-bexpall'
11229 # It seems that -bexpall does not export symbols beginning with
11230 # underscore (_), so it is better to generate a list of symbols to export.
11231 always_export_symbols=yes
11232 if test "$aix_use_runtimelinking" = yes; then
11233 # Warning - without using the other runtime loading flags (-brtl),
11234 # -berok will link without error, but may produce a broken library.
11235 allow_undefined_flag='-berok'
11236 # Determine the default libpath from the value encoded in an
11237 # empty executable.
11238 if test "${lt_cv_aix_libpath+set}" = set; then
11239 aix_libpath=$lt_cv_aix_libpath
11241 if ${lt_cv_aix_libpath_+:} false; then :
11242 $as_echo_n "(cached) " >&6
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11255 if ac_fn_c_try_link "$LINENO"; then :
11257 lt_aix_libpath_sed='
11258 /Import File Strings/,/^$/ {
11260 s/^0 *\([^ ]*\) *$/\1/
11264 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11265 # Check for a 64-bit object if we didn't find anything.
11266 if test -z "$lt_cv_aix_libpath_"; then
11267 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 if test -z "$lt_cv_aix_libpath_"; then
11273 lt_cv_aix_libpath_="/usr/lib:/lib"
11278 aix_libpath=$lt_cv_aix_libpath_
11281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11282 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"
11284 if test "$host_cpu" = ia64; then
11285 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11286 allow_undefined_flag="-z nodefs"
11287 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"
11289 # Determine the default libpath from the value encoded in an
11290 # empty executable.
11291 if test "${lt_cv_aix_libpath+set}" = set; then
11292 aix_libpath=$lt_cv_aix_libpath
11294 if ${lt_cv_aix_libpath_+:} false; then :
11295 $as_echo_n "(cached) " >&6
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11308 if ac_fn_c_try_link "$LINENO"; then :
11310 lt_aix_libpath_sed='
11311 /Import File Strings/,/^$/ {
11313 s/^0 *\([^ ]*\) *$/\1/
11317 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11318 # Check for a 64-bit object if we didn't find anything.
11319 if test -z "$lt_cv_aix_libpath_"; then
11320 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11323 rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325 if test -z "$lt_cv_aix_libpath_"; then
11326 lt_cv_aix_libpath_="/usr/lib:/lib"
11331 aix_libpath=$lt_cv_aix_libpath_
11334 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11335 # Warning - without using the other run time loading flags,
11336 # -berok will link without error, but may produce a broken library.
11337 no_undefined_flag=' ${wl}-bernotok'
11338 allow_undefined_flag=' ${wl}-berok'
11339 if test "$with_gnu_ld" = yes; then
11340 # We only use this code for GNU lds that support --whole-archive.
11341 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11343 # Exported symbols can be pulled into shared objects from archives
11344 whole_archive_flag_spec='$convenience'
11346 archive_cmds_need_lc=yes
11347 # This is similar to how AIX traditionally builds its shared libraries.
11348 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'
11356 # see comment about AmigaOS4 .so support
11357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11358 archive_expsym_cmds=''
11361 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)'
11362 hardcode_libdir_flag_spec='-L$libdir'
11363 hardcode_minus_L=yes
11369 export_dynamic_flag_spec=-rdynamic
11372 cygwin* | mingw* | pw32* | cegcc*)
11373 # When not using gcc, we currently assume that we are using
11374 # Microsoft Visual C++.
11375 # hardcode_libdir_flag_spec is actually meaningless, as there is
11376 # no search path for DLLs.
11377 case $cc_basename in
11380 hardcode_libdir_flag_spec=' '
11381 allow_undefined_flag=unsupported
11382 always_export_symbols=yes
11384 # Tell ltmain to make .lib files, not .a files.
11386 # Tell ltmain to make .dll files, not .so files.
11388 # FIXME: Setting linknames here is a bad hack.
11389 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11390 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11391 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11393 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11395 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11397 # The linker will not automatically build a static lib if we build a DLL.
11398 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11399 enable_shared_with_static_runtimes=yes
11400 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11403 old_postinstall_cmds='chmod 644 $oldlib'
11404 postlink_cmds='lt_outputfile="@OUTPUT@"~
11405 lt_tool_outputfile="@TOOL_OUTPUT@"~
11406 case $lt_outputfile in
11409 lt_outputfile="$lt_outputfile.exe"
11410 lt_tool_outputfile="$lt_tool_outputfile.exe"
11413 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11414 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11415 $RM "$lt_outputfile.manifest";
11419 # Assume MSVC wrapper
11420 hardcode_libdir_flag_spec=' '
11421 allow_undefined_flag=unsupported
11422 # Tell ltmain to make .lib files, not .a files.
11424 # Tell ltmain to make .dll files, not .so files.
11426 # FIXME: Setting linknames here is a bad hack.
11427 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11428 # The linker will automatically build a .lib file if we build a DLL.
11429 old_archive_from_new_cmds='true'
11430 # FIXME: Should let the user specify the lib program.
11431 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11432 enable_shared_with_static_runtimes=yes
11437 darwin* | rhapsody*)
11440 archive_cmds_need_lc=no
11442 hardcode_automatic=yes
11443 hardcode_shlibpath_var=unsupported
11444 if test "$lt_cv_ld_force_load" = "yes"; then
11445 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\"`'
11448 whole_archive_flag_spec=''
11450 link_all_deplibs=yes
11451 allow_undefined_flag="$_lt_dar_allow_undefined"
11452 case $cc_basename in
11453 ifort*) _lt_dar_can_shared=yes ;;
11454 *) _lt_dar_can_shared=$GCC ;;
11456 if test "$_lt_dar_can_shared" = "yes"; then
11457 output_verbose_link_cmd=func_echo_all
11458 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11459 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11460 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}"
11461 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}"
11470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471 hardcode_libdir_flag_spec='-L$libdir'
11472 hardcode_shlibpath_var=no
11475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11476 # support. Future versions do this automatically, but an explicit c++rt0.o
11477 # does not break anything, and helps significantly (at the cost of a little
11480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11481 hardcode_libdir_flag_spec='-R$libdir'
11482 hardcode_direct=yes
11483 hardcode_shlibpath_var=no
11486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11489 hardcode_direct=yes
11490 hardcode_minus_L=yes
11491 hardcode_shlibpath_var=no
11494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11495 freebsd* | dragonfly*)
11496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11497 hardcode_libdir_flag_spec='-R$libdir'
11498 hardcode_direct=yes
11499 hardcode_shlibpath_var=no
11503 if test "$GCC" = yes; then
11504 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11506 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'
11508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11509 hardcode_libdir_separator=:
11510 hardcode_direct=yes
11512 # hardcode_minus_L: Not really in the search PATH,
11513 # but as the default location of the library.
11514 hardcode_minus_L=yes
11515 export_dynamic_flag_spec='${wl}-E'
11519 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11520 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11522 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11524 if test "$with_gnu_ld" = no; then
11525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11526 hardcode_libdir_separator=:
11527 hardcode_direct=yes
11528 hardcode_direct_absolute=yes
11529 export_dynamic_flag_spec='${wl}-E'
11530 # hardcode_minus_L: Not really in the search PATH,
11531 # but as the default location of the library.
11532 hardcode_minus_L=yes
11537 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11540 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11546 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11552 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11559 # Older versions of the 11.00 compiler do not understand -b yet
11560 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11562 $as_echo_n "checking if $CC understands -b... " >&6; }
11563 if ${lt_cv_prog_compiler__b+:} false; then :
11564 $as_echo_n "(cached) " >&6
11566 lt_cv_prog_compiler__b=no
11567 save_LDFLAGS="$LDFLAGS"
11568 LDFLAGS="$LDFLAGS -b"
11569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11571 # The linker can only warn and ignore the option if not recognized
11572 # So say no if there are warnings
11573 if test -s conftest.err; then
11574 # Append any errors to the config.log.
11575 cat conftest.err 1>&5
11576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578 if diff conftest.exp conftest.er2 >/dev/null; then
11579 lt_cv_prog_compiler__b=yes
11582 lt_cv_prog_compiler__b=yes
11586 LDFLAGS="$save_LDFLAGS"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11590 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11592 if test x"$lt_cv_prog_compiler__b" = xyes; then
11593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11601 if test "$with_gnu_ld" = no; then
11602 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11603 hardcode_libdir_separator=:
11608 hardcode_shlibpath_var=no
11611 hardcode_direct=yes
11612 hardcode_direct_absolute=yes
11613 export_dynamic_flag_spec='${wl}-E'
11615 # hardcode_minus_L: Not really in the search PATH,
11616 # but as the default location of the library.
11617 hardcode_minus_L=yes
11623 irix5* | irix6* | nonstopux*)
11624 if test "$GCC" = yes; then
11625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11626 # Try to use the -exported_symbol ld option, if it does not
11627 # work, assume that -exports_file does not work either and
11628 # implicitly export all symbols.
11629 # This should be the same for all languages, so no per-tag cache variable.
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11631 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11632 if ${lt_cv_irix_exported_symbol+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 save_LDFLAGS="$LDFLAGS"
11636 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 int foo (void) { return 0; }
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 lt_cv_irix_exported_symbol=yes
11644 lt_cv_irix_exported_symbol=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LDFLAGS="$save_LDFLAGS"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11651 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11652 if test "$lt_cv_irix_exported_symbol" = yes; then
11653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11656 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'
11657 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'
11659 archive_cmds_need_lc='no'
11660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11661 hardcode_libdir_separator=:
11663 link_all_deplibs=yes
11666 netbsd* | netbsdelf*-gnu)
11667 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11670 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11672 hardcode_libdir_flag_spec='-R$libdir'
11673 hardcode_direct=yes
11674 hardcode_shlibpath_var=no
11678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11679 hardcode_direct=yes
11680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11681 hardcode_libdir_separator=:
11682 hardcode_shlibpath_var=no
11689 if test -f /usr/libexec/ld.so; then
11690 hardcode_direct=yes
11691 hardcode_shlibpath_var=no
11692 hardcode_direct_absolute=yes
11693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11695 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11696 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11697 export_dynamic_flag_spec='${wl}-E'
11700 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11702 hardcode_libdir_flag_spec='-R$libdir'
11705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11706 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11716 hardcode_libdir_flag_spec='-L$libdir'
11717 hardcode_minus_L=yes
11718 allow_undefined_flag=unsupported
11719 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'
11720 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11724 if test "$GCC" = yes; then
11725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11726 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'
11728 allow_undefined_flag=' -expect_unresolved \*'
11729 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'
11731 archive_cmds_need_lc='no'
11732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11733 hardcode_libdir_separator=:
11736 osf4* | osf5*) # as osf3* with the addition of -msym flag
11737 if test "$GCC" = yes; then
11738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11739 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11742 allow_undefined_flag=' -expect_unresolved \*'
11743 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'
11744 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~
11745 $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'
11747 # Both c and cxx compiler support -rpath directly
11748 hardcode_libdir_flag_spec='-rpath $libdir'
11750 archive_cmds_need_lc='no'
11751 hardcode_libdir_separator=:
11755 no_undefined_flag=' -z defs'
11756 if test "$GCC" = yes; then
11758 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11760 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11762 case `$CC -V 2>&1` in
11765 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11767 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11771 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11773 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11777 hardcode_libdir_flag_spec='-R$libdir'
11778 hardcode_shlibpath_var=no
11780 solaris2.[0-5] | solaris2.[0-5].*) ;;
11782 # The compiler driver will combine and reorder linker options,
11783 # but understands `-z linker_flag'. GCC discards it without `$wl',
11784 # but is careful enough not to reorder.
11785 # Supported since Solaris 2.6 (maybe 2.5.1?)
11786 if test "$GCC" = yes; then
11787 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11789 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11793 link_all_deplibs=yes
11797 if test "x$host_vendor" = xsequent; then
11798 # Use $CC to link under sequent, because it throws in some extra .o
11799 # files that make .init and .fini sections work.
11800 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11802 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 hardcode_direct=yes
11806 hardcode_minus_L=yes
11807 hardcode_shlibpath_var=no
11811 case $host_vendor in
11813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11814 hardcode_direct=yes # is this really true???
11817 ## LD is ld it makes a PLAMLIB
11818 ## CC just makes a GrossModule.
11819 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11820 reload_cmds='$CC -r -o $output$reload_objs'
11824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11825 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11828 runpath_var='LD_RUN_PATH'
11829 hardcode_shlibpath_var=no
11833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11834 hardcode_shlibpath_var=no
11835 export_dynamic_flag_spec='-Bexport'
11839 if test -d /usr/nec; then
11840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11841 hardcode_shlibpath_var=no
11842 runpath_var=LD_RUN_PATH
11843 hardcode_runpath_var=yes
11848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11849 no_undefined_flag='${wl}-z,text'
11850 archive_cmds_need_lc=no
11851 hardcode_shlibpath_var=no
11852 runpath_var='LD_RUN_PATH'
11854 if test "$GCC" = yes; then
11855 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11859 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 sysv5* | sco3.2v5* | sco5v6*)
11864 # Note: We can NOT use -z defs as we might desire, because we do not
11865 # link with -lc, and that would cause any symbols used from libc to
11866 # always be unresolved, which means just about no library would
11867 # ever link correctly. If we're not using GNU ld we use -z text
11868 # though, which does catch some bad symbols but isn't as heavy-handed
11870 no_undefined_flag='${wl}-z,text'
11871 allow_undefined_flag='${wl}-z,nodefs'
11872 archive_cmds_need_lc=no
11873 hardcode_shlibpath_var=no
11874 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11875 hardcode_libdir_separator=':'
11876 link_all_deplibs=yes
11877 export_dynamic_flag_spec='${wl}-Bexport'
11878 runpath_var='LD_RUN_PATH'
11880 if test "$GCC" = yes; then
11881 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891 hardcode_libdir_flag_spec='-L$libdir'
11892 hardcode_shlibpath_var=no
11900 if test x$host_vendor = xsni; then
11902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11903 export_dynamic_flag_spec='${wl}-Blargedynsym'
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11910 $as_echo "$ld_shlibs" >&6; }
11911 test "$ld_shlibs" = no && can_build_shared=no
11913 with_gnu_ld=$with_gnu_ld
11930 # Do we need to explicitly link libc?
11932 case "x$archive_cmds_need_lc" in
11934 # Assume -lc should be added
11935 archive_cmds_need_lc=yes
11937 if test "$enable_shared" = yes && test "$GCC" = yes; then
11938 case $archive_cmds in
11940 # FIXME: we may have to deal with multi-command sequences.
11943 # Test whether the compiler implicitly links with -lc since on some
11944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11945 # to ld, don't add -lc before -lgcc.
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11947 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11948 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11949 $as_echo_n "(cached) " >&6
11952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11955 (eval $ac_compile) 2>&5
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; } 2>conftest.err; then
11961 libobjs=conftest.$ac_objext
11963 wl=$lt_prog_compiler_wl
11964 pic_flag=$lt_prog_compiler_pic
11970 lt_save_allow_undefined_flag=$allow_undefined_flag
11971 allow_undefined_flag=
11972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11973 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11976 test $ac_status = 0; }
11978 lt_cv_archive_cmds_need_lc=no
11980 lt_cv_archive_cmds_need_lc=yes
11982 allow_undefined_flag=$lt_save_allow_undefined_flag
11984 cat conftest.err 1>&5
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11990 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11991 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12150 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12152 if test "$GCC" = yes; then
12154 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12155 *) lt_awk_arg="/^libraries:/" ;;
12158 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12159 *) lt_sed_strip_eq="s,=/,/,g" ;;
12161 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12162 case $lt_search_path_spec in
12164 # if the path contains ";" then we assume it to be the separator
12165 # otherwise default to the standard path separator (i.e. ":") - it is
12166 # assumed that no part of a normal pathname contains ";" but that should
12167 # okay in the real world where ";" in dirpaths is itself problematic.
12168 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12171 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12174 # Ok, now we have the path, separated by spaces, we can step through it
12175 # and add multilib dir if necessary.
12176 lt_tmp_lt_search_path_spec=
12177 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12178 for lt_sys_path in $lt_search_path_spec; do
12179 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12180 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12182 test -d "$lt_sys_path" && \
12183 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12186 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12187 BEGIN {RS=" "; FS="/|\n";} {
12190 for (lt_i = NF; lt_i > 0; lt_i--) {
12191 if ($lt_i != "" && $lt_i != ".") {
12192 if ($lt_i == "..") {
12195 if (lt_count == 0) {
12196 lt_foo="/" $lt_i lt_foo;
12203 if (lt_foo != "") { lt_freq[lt_foo]++; }
12204 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12206 # AWK program above erroneously prepends '/' to C:/dos/paths
12209 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12210 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12212 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12214 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12216 library_names_spec=
12217 libname_spec='lib$name'
12221 postuninstall_cmds=
12225 shlibpath_overrides_runpath=unknown
12227 dynamic_linker="$host_os ld.so"
12228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12229 need_lib_prefix=unknown
12230 hardcode_into_libs=no
12232 # when you set need_version to no, make sure it does not cause -set_version
12233 # flags to be left without arguments
12234 need_version=unknown
12238 version_type=linux # correct to gnu/linux during the next big refactor
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12240 shlibpath_var=LIBPATH
12242 # AIX 3 has no versioning support, so we append a major version to the name.
12243 soname_spec='${libname}${release}${shared_ext}$major'
12247 version_type=linux # correct to gnu/linux during the next big refactor
12250 hardcode_into_libs=yes
12251 if test "$host_cpu" = ia64; then
12252 # AIX 5 supports IA64
12253 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12254 shlibpath_var=LD_LIBRARY_PATH
12256 # With GCC up to 2.95.x, collect2 would create an import file
12257 # for dependence libraries. The import file would start with
12258 # the line `#! .'. This would cause the generated library to
12259 # depend on `.', always an invalid library. This was fixed in
12260 # development snapshots of GCC prior to 3.0.
12262 aix4 | aix4.[01] | aix4.[01].*)
12263 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12265 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12268 can_build_shared=no
12272 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12273 # soname into executable. Probably we can add versioning support to
12274 # collect2, so additional links can be useful in future.
12275 if test "$aix_use_runtimelinking" = yes; then
12276 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12277 # instead of lib<name>.a to let people know that these are not
12278 # typical AIX shared libraries.
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281 # We preserve .a as extension for shared libraries through AIX4.2
12282 # and later when we are not doing run time linking.
12283 library_names_spec='${libname}${release}.a $libname.a'
12284 soname_spec='${libname}${release}${shared_ext}$major'
12286 shlibpath_var=LIBPATH
12293 # Since July 2007 AmigaOS4 officially supports .so libraries.
12294 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12298 library_names_spec='$libname.ixlibrary $libname.a'
12299 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12300 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'
12306 library_names_spec='${libname}${shared_ext}'
12307 dynamic_linker="$host_os ld.so"
12308 shlibpath_var=LIBRARY_PATH
12312 version_type=linux # correct to gnu/linux during the next big refactor
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12320 # the default ld.so.conf also contains /usr/contrib/lib and
12321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12322 # libtool to hard-code these into programs
12325 cygwin* | mingw* | pw32* | cegcc*)
12326 version_type=windows
12331 case $GCC,$cc_basename in
12334 library_names_spec='$libname.dll.a'
12335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12336 postinstall_cmds='base_file=`basename \${file}`~
12337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12338 dldir=$destdir/`dirname \$dlpath`~
12339 test -d \$dldir || mkdir -p \$dldir~
12340 $install_prog $dir/$dlname \$dldir/$dlname~
12341 chmod a+x \$dldir/$dlname~
12342 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12343 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12346 dlpath=$dir/\$dldll~
12348 shlibpath_overrides_runpath=yes
12352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12358 # MinGW DLLs use traditional 'lib' prefix
12359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12362 # pw32 DLLs use 'pw' prefix rather than 'lib'
12363 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12366 dynamic_linker='Win32 ld.exe'
12371 libname_spec='$name'
12372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12373 library_names_spec='${libname}.dll.lib'
12377 sys_lib_search_path_spec=
12380 for lt_path in $LIB
12383 # Let DOS variable expansion print the short 8.3 style file name.
12384 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12385 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12388 # Convert to MSYS style.
12389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12392 # Convert to unix form, then to dos form, then back to unix form
12393 # but this time dos style (no spaces!) so that the unix form looks
12394 # like /cygdrive/c/PROGRA~1:/cygdr...
12395 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12396 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12397 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12400 sys_lib_search_path_spec="$LIB"
12401 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12402 # It is most probably a Windows format PATH.
12403 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12407 # FIXME: find the short name or the path components, as spaces are
12408 # common. (e.g. "Program Files" -> "PROGRA~1")
12412 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12413 postinstall_cmds='base_file=`basename \${file}`~
12414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12415 dldir=$destdir/`dirname \$dlpath`~
12416 test -d \$dldir || mkdir -p \$dldir~
12417 $install_prog $dir/$dlname \$dldir/$dlname'
12418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12419 dlpath=$dir/\$dldll~
12421 shlibpath_overrides_runpath=yes
12422 dynamic_linker='Win32 link.exe'
12426 # Assume MSVC wrapper
12427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12428 dynamic_linker='Win32 ld.exe'
12431 # FIXME: first we should search . and the directory the executable is in
12435 darwin* | rhapsody*)
12436 dynamic_linker="$host_os dyld"
12437 version_type=darwin
12440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12441 soname_spec='${libname}${release}${major}$shared_ext'
12442 shlibpath_overrides_runpath=yes
12443 shlibpath_var=DYLD_LIBRARY_PATH
12444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12451 version_type=linux # correct to gnu/linux during the next big refactor
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12459 freebsd* | dragonfly*)
12460 # DragonFly does not have aout. When/if they implement a new
12461 # versioning mechanism, adjust this.
12462 if test -x /usr/bin/objformat; then
12463 objformat=`/usr/bin/objformat`
12466 freebsd[23].*) objformat=aout ;;
12467 *) objformat=elf ;;
12470 version_type=freebsd-$objformat
12471 case $version_type in
12473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12482 shlibpath_var=LD_LIBRARY_PATH
12485 shlibpath_overrides_runpath=yes
12487 freebsd3.[01]* | freebsdelf3.[01]*)
12488 shlibpath_overrides_runpath=yes
12489 hardcode_into_libs=yes
12491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12493 shlibpath_overrides_runpath=no
12494 hardcode_into_libs=yes
12496 *) # from 4.6 on, and DragonFly
12497 shlibpath_overrides_runpath=yes
12498 hardcode_into_libs=yes
12504 version_type=linux # correct to gnu/linux during the next big refactor
12507 dynamic_linker="$host_os runtime_loader"
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LIBRARY_PATH
12511 shlibpath_overrides_runpath=yes
12512 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12513 hardcode_into_libs=yes
12516 hpux9* | hpux10* | hpux11*)
12517 # Give a soname corresponding to the major version so that dld.sl refuses to
12518 # link against other versions.
12525 hardcode_into_libs=yes
12526 dynamic_linker="$host_os dld.so"
12527 shlibpath_var=LD_LIBRARY_PATH
12528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 if test "X$HPUX_IA64_MODE" = X32; then
12532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12540 hardcode_into_libs=yes
12541 dynamic_linker="$host_os dld.sl"
12542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12551 dynamic_linker="$host_os dld.sl"
12552 shlibpath_var=SHLIB_PATH
12553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555 soname_spec='${libname}${release}${shared_ext}$major'
12558 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12559 postinstall_cmds='chmod 555 $lib'
12560 # or fails outright, so override atomically:
12561 install_override_mode=555
12565 version_type=linux # correct to gnu/linux during the next big refactor
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12571 shlibpath_var=LD_LIBRARY_PATH
12572 shlibpath_overrides_runpath=no
12573 hardcode_into_libs=yes
12576 irix5* | irix6* | nonstopux*)
12578 nonstopux*) version_type=nonstopux ;;
12580 if test "$lt_cv_prog_gnu_ld" = yes; then
12581 version_type=linux # correct to gnu/linux during the next big refactor
12588 soname_spec='${libname}${release}${shared_ext}$major'
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12591 irix5* | nonstopux*)
12592 libsuff= shlibsuff=
12595 case $LD in # libtool.m4 will add one of these switches to LD
12596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12597 libsuff= shlibsuff= libmagic=32-bit;;
12598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12599 libsuff=32 shlibsuff=N32 libmagic=N32;;
12600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12602 *) libsuff= shlibsuff= libmagic=never-match;;
12606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12607 shlibpath_overrides_runpath=no
12608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12610 hardcode_into_libs=yes
12613 # No shared lib support for Linux oldld, aout, or coff.
12614 linux*oldld* | linux*aout* | linux*coff*)
12618 # This must be glibc/ELF.
12619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12620 version_type=linux # correct to gnu/linux during the next big refactor
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624 soname_spec='${libname}${release}${shared_ext}$major'
12625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 shlibpath_overrides_runpath=no
12629 # Some binutils ld are patched to set DT_RUNPATH
12630 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 lt_cv_shlibpath_overrides_runpath=no
12634 save_LDFLAGS=$LDFLAGS
12635 save_libdir=$libdir
12636 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12637 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12649 if ac_fn_c_try_link "$LINENO"; then :
12650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12651 lt_cv_shlibpath_overrides_runpath=yes
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 LDFLAGS=$save_LDFLAGS
12657 libdir=$save_libdir
12661 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12663 # This implies no fast_install, which is unacceptable.
12664 # Some rework will be needed to allow for fast_install
12665 # before this can be enabled.
12666 hardcode_into_libs=yes
12668 # Append ld.so.conf contents to the search path
12669 if test -f /etc/ld.so.conf; then
12670 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' ' '`
12671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12674 # We used to test for /lib/ld.so.1 and disable shared libraries on
12675 # powerpc, because MkLinux only supported shared libraries with the
12676 # GNU dynamic linker. Since this was broken with cross compilers,
12677 # most powerpc-linux boxes support dynamic linking these days and
12678 # people can always --disable-shared, the test was removed, and we
12679 # assume the GNU/Linux dynamic linker is in use.
12680 dynamic_linker='GNU/Linux ld.so'
12687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12688 soname_spec='${libname}${release}${shared_ext}$major'
12689 shlibpath_var=LD_LIBRARY_PATH
12690 shlibpath_overrides_runpath=no
12691 hardcode_into_libs=yes
12692 dynamic_linker='NetBSD ld.elf_so'
12699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12702 dynamic_linker='NetBSD (a.out) ld.so'
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12705 soname_spec='${libname}${release}${shared_ext}$major'
12706 dynamic_linker='NetBSD ld.elf_so'
12708 shlibpath_var=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath=yes
12710 hardcode_into_libs=yes
12714 version_type=linux # correct to gnu/linux during the next big refactor
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12716 shlibpath_var=LD_LIBRARY_PATH
12717 shlibpath_overrides_runpath=yes
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12725 soname_spec='${libname}${release}${shared_ext}$major'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 shlibpath_overrides_runpath=no
12728 hardcode_into_libs=yes
12729 dynamic_linker='ldqnx.so'
12734 sys_lib_dlsearch_path_spec="/usr/lib"
12736 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12738 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12739 *) need_version=no ;;
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12746 openbsd2.[89] | openbsd2.[89].*)
12747 shlibpath_overrides_runpath=no
12750 shlibpath_overrides_runpath=yes
12754 shlibpath_overrides_runpath=yes
12759 libname_spec='$name'
12762 library_names_spec='$libname${shared_ext} $libname.a'
12763 dynamic_linker='OS/2 ld.exe'
12764 shlibpath_var=LIBPATH
12767 osf3* | osf4* | osf5*)
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12775 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12783 version_type=linux # correct to gnu/linux during the next big refactor
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes
12790 hardcode_into_libs=yes
12791 # ldd complains unless libraries are executable
12792 postinstall_cmds='chmod +x $lib'
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12798 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 shlibpath_overrides_runpath=yes
12801 if test "$with_gnu_ld" = yes; then
12808 version_type=linux # correct to gnu/linux during the next big refactor
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12810 soname_spec='${libname}${release}${shared_ext}$major'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 case $host_vendor in
12814 shlibpath_overrides_runpath=no
12816 runpath_var=LD_RUN_PATH
12824 shlibpath_overrides_runpath=no
12825 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12831 if test -d /usr/nec ;then
12832 version_type=linux # correct to gnu/linux during the next big refactor
12833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12834 soname_spec='$libname${shared_ext}.$major'
12835 shlibpath_var=LD_LIBRARY_PATH
12839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12840 version_type=freebsd-elf
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 shlibpath_overrides_runpath=yes
12847 hardcode_into_libs=yes
12848 if test "$with_gnu_ld" = yes; then
12849 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12851 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12854 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12858 sys_lib_dlsearch_path_spec='/usr/lib'
12862 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12863 version_type=linux # correct to gnu/linux during the next big refactor
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=no
12869 hardcode_into_libs=yes
12873 version_type=linux # correct to gnu/linux during the next big refactor
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12875 soname_spec='${libname}${release}${shared_ext}$major'
12876 shlibpath_var=LD_LIBRARY_PATH
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12884 $as_echo "$dynamic_linker" >&6; }
12885 test "$dynamic_linker" = no && can_build_shared=no
12887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12888 if test "$GCC" = yes; then
12889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12993 if test -n "$hardcode_libdir_flag_spec" ||
12994 test -n "$runpath_var" ||
12995 test "X$hardcode_automatic" = "Xyes" ; then
12997 # We can hardcode non-existent directories.
12998 if test "$hardcode_direct" != no &&
12999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13000 # have to relink, otherwise we might link with an installed library
13001 # when we should be linking with a yet-to-be-installed one
13002 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13003 test "$hardcode_minus_L" != no; then
13004 # Linking always hardcodes the temporary library directory.
13005 hardcode_action=relink
13007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13008 hardcode_action=immediate
13011 # We cannot hardcode anything, or else we can only hardcode existing
13013 hardcode_action=unsupported
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13016 $as_echo "$hardcode_action" >&6; }
13018 if test "$hardcode_action" = relink ||
13019 test "$inherit_rpath" = yes; then
13020 # Fast installation is not supported
13021 enable_fast_install=no
13022 elif test "$shlibpath_overrides_runpath" = yes ||
13023 test "$enable_shared" = no; then
13024 # Fast installation is not necessary
13025 enable_fast_install=needless
13033 if test "x$enable_dlopen" != xyes; then
13034 enable_dlopen=unknown
13035 enable_dlopen_self=unknown
13036 enable_dlopen_self_static=unknown
13043 lt_cv_dlopen="load_add_on"
13045 lt_cv_dlopen_self=yes
13048 mingw* | pw32* | cegcc*)
13049 lt_cv_dlopen="LoadLibrary"
13054 lt_cv_dlopen="dlopen"
13059 # if libdl is installed we need to link against it
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13062 if ${ac_cv_lib_dl_dlopen+:} false; then :
13063 $as_echo_n "(cached) " >&6
13065 ac_check_lib_save_LIBS=$LIBS
13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13085 if ac_fn_c_try_link "$LINENO"; then :
13086 ac_cv_lib_dl_dlopen=yes
13088 ac_cv_lib_dl_dlopen=no
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13096 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13100 lt_cv_dlopen="dyld"
13102 lt_cv_dlopen_self=yes
13109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13110 if test "x$ac_cv_func_shl_load" = xyes; then :
13111 lt_cv_dlopen="shl_load"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13114 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13115 if ${ac_cv_lib_dld_shl_load+:} false; then :
13116 $as_echo_n "(cached) " >&6
13118 ac_check_lib_save_LIBS=$LIBS
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13133 return shl_load ();
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 ac_cv_lib_dld_shl_load=yes
13141 ac_cv_lib_dld_shl_load=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13148 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13149 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13152 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13153 if test "x$ac_cv_func_dlopen" = xyes; then :
13154 lt_cv_dlopen="dlopen"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13157 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13158 if ${ac_cv_lib_dl_dlopen+:} false; then :
13159 $as_echo_n "(cached) " >&6
13161 ac_check_lib_save_LIBS=$LIBS
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ac_cv_lib_dl_dlopen=yes
13184 ac_cv_lib_dl_dlopen=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13192 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13197 if ${ac_cv_lib_svld_dlopen+:} false; then :
13198 $as_echo_n "(cached) " >&6
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-lsvld $LIBS"
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply. */
13220 if ac_fn_c_try_link "$LINENO"; then :
13221 ac_cv_lib_svld_dlopen=yes
13223 ac_cv_lib_svld_dlopen=no
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13230 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13231 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13235 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13236 if ${ac_cv_lib_dld_dld_link+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS=$LIBS
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13254 return dld_link ();
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_dld_dld_link=yes
13262 ac_cv_lib_dld_dld_link=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13269 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13270 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13271 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13292 if test "x$lt_cv_dlopen" != xno; then
13298 case $lt_cv_dlopen in
13300 save_CPPFLAGS="$CPPFLAGS"
13301 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13303 save_LDFLAGS="$LDFLAGS"
13304 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13307 LIBS="$lt_cv_dlopen_libs $LIBS"
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13310 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13311 if ${lt_cv_dlopen_self+:} false; then :
13312 $as_echo_n "(cached) " >&6
13314 if test "$cross_compiling" = yes; then :
13315 lt_cv_dlopen_self=cross
13317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13318 lt_status=$lt_dlunknown
13319 cat > conftest.$ac_ext <<_LT_EOF
13320 #line $LINENO "configure"
13321 #include "confdefs.h"
13330 # define LT_DLGLOBAL RTLD_GLOBAL
13333 # define LT_DLGLOBAL DL_GLOBAL
13335 # define LT_DLGLOBAL 0
13339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13340 find out it does not work in some platform. */
13341 #ifndef LT_DLLAZY_OR_NOW
13343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13346 # define LT_DLLAZY_OR_NOW DL_LAZY
13349 # define LT_DLLAZY_OR_NOW RTLD_NOW
13352 # define LT_DLLAZY_OR_NOW DL_NOW
13354 # define LT_DLLAZY_OR_NOW 0
13361 /* When -fvisbility=hidden is used, assume the code has been annotated
13362 correspondingly for the symbols needed. */
13363 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13364 int fnord () __attribute__((visibility("default")));
13367 int fnord () { return 42; }
13370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13371 int status = $lt_dlunknown;
13375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13379 else puts (dlerror ());
13381 /* dlclose (self); */
13389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13390 (eval $ac_link) 2>&5
13392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13394 (./conftest; exit; ) >&5 2>/dev/null
13396 case x$lt_status in
13397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13402 # compilation failed
13403 lt_cv_dlopen_self=no
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13411 $as_echo "$lt_cv_dlopen_self" >&6; }
13413 if test "x$lt_cv_dlopen_self" = xyes; then
13414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13417 if ${lt_cv_dlopen_self_static+:} false; then :
13418 $as_echo_n "(cached) " >&6
13420 if test "$cross_compiling" = yes; then :
13421 lt_cv_dlopen_self_static=cross
13423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13424 lt_status=$lt_dlunknown
13425 cat > conftest.$ac_ext <<_LT_EOF
13426 #line $LINENO "configure"
13427 #include "confdefs.h"
13436 # define LT_DLGLOBAL RTLD_GLOBAL
13439 # define LT_DLGLOBAL DL_GLOBAL
13441 # define LT_DLGLOBAL 0
13445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13446 find out it does not work in some platform. */
13447 #ifndef LT_DLLAZY_OR_NOW
13449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13452 # define LT_DLLAZY_OR_NOW DL_LAZY
13455 # define LT_DLLAZY_OR_NOW RTLD_NOW
13458 # define LT_DLLAZY_OR_NOW DL_NOW
13460 # define LT_DLLAZY_OR_NOW 0
13467 /* When -fvisbility=hidden is used, assume the code has been annotated
13468 correspondingly for the symbols needed. */
13469 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13470 int fnord () __attribute__((visibility("default")));
13473 int fnord () { return 42; }
13476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13477 int status = $lt_dlunknown;
13481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13485 else puts (dlerror ());
13487 /* dlclose (self); */
13495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13496 (eval $ac_link) 2>&5
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13500 (./conftest; exit; ) >&5 2>/dev/null
13502 case x$lt_status in
13503 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13504 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13505 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13508 # compilation failed
13509 lt_cv_dlopen_self_static=no
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13517 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13520 CPPFLAGS="$save_CPPFLAGS"
13521 LDFLAGS="$save_LDFLAGS"
13526 case $lt_cv_dlopen_self in
13527 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13528 *) enable_dlopen_self=unknown ;;
13531 case $lt_cv_dlopen_self_static in
13532 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13533 *) enable_dlopen_self_static=unknown ;;
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13556 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13557 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13558 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13559 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561 $as_echo "yes" >&6; }
13563 # FIXME - insert some real tests, host_os isn't really good enough
13566 if test -n "$STRIP" ; then
13567 striplib="$STRIP -x"
13568 old_striplib="$STRIP -S"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13594 # Report which library types will actually be built
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13596 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13598 $as_echo "$can_build_shared" >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13601 $as_echo_n "checking whether to build shared libraries... " >&6; }
13602 test "$can_build_shared" = "no" && enable_shared=no
13604 # On AIX, shared libraries and static libraries use the same namespace, and
13605 # are all built from PIC.
13608 test "$enable_shared" = yes && enable_static=no
13609 if test -n "$RANLIB"; then
13610 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13611 postinstall_cmds='$RANLIB $lib'
13616 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13617 test "$enable_shared" = yes && enable_static=no
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13622 $as_echo "$enable_shared" >&6; }
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13625 $as_echo_n "checking whether to build static libraries... " >&6; }
13626 # Make sure either enable_shared or enable_static is yes.
13627 test "$enable_shared" = yes || enable_static=yes
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13629 $as_echo "$enable_static" >&6; }
13636 ac_cpp='$CPP $CPPFLAGS'
13637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13657 ac_config_commands="$ac_config_commands libtool"
13662 # Only expand once:
13668 # Extract the first word of "ronn", so it can be a program name with args.
13669 set dummy ronn; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_path_RONN+:} false; then :
13673 $as_echo_n "(cached) " >&6
13677 ac_cv_path_RONN="$RONN" # Let the user override the test with a path.
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_path_RONN="$as_dir/$ac_word$ac_exec_ext"
13688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 test -z "$ac_cv_path_RONN" && ac_cv_path_RONN="#"
13699 RONN=$ac_cv_path_RONN
13700 if test -n "$RONN"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RONN" >&5
13702 $as_echo "$RONN" >&6; }
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13711 # Extract the first word of "sixjack", so it can be a program name with args.
13712 set dummy sixjack; ac_word=$2
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714 $as_echo_n "checking for $ac_word... " >&6; }
13715 if ${ac_cv_path_SIXJACK+:} false; then :
13716 $as_echo_n "(cached) " >&6
13720 ac_cv_path_SIXJACK="$SIXJACK" # Let the user override the test with a path.
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13730 ac_cv_path_SIXJACK="$as_dir/$ac_word$ac_exec_ext"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738 test -z "$ac_cv_path_SIXJACK" && ac_cv_path_SIXJACK="#"
13742 SIXJACK=$ac_cv_path_SIXJACK
13743 if test -n "$SIXJACK"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIXJACK" >&5
13745 $as_echo "$SIXJACK" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13754 if test -n "$ac_tool_prefix"; then
13755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13756 set dummy ${ac_tool_prefix}ar; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_AR+:} false; then :
13760 $as_echo_n "(cached) " >&6
13762 if test -n "$AR"; then
13763 ac_cv_prog_AR="$AR" # Let the user override the test.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_AR="${ac_tool_prefix}ar"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 if test -n "$AR"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13785 $as_echo "$AR" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13793 if test -z "$ac_cv_prog_AR"; then
13795 # Extract the first word of "ar", so it can be a program name with args.
13796 set dummy ar; ac_word=$2
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13800 $as_echo_n "(cached) " >&6
13802 if test -n "$ac_ct_AR"; then
13803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13809 test -z "$as_dir" && as_dir=.
13810 for ac_exec_ext in '' $ac_executable_extensions; do
13811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13812 ac_cv_prog_ac_ct_AR="ar"
13813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13823 if test -n "$ac_ct_AR"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13825 $as_echo "$ac_ct_AR" >&6; }
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13831 if test "x$ac_ct_AR" = x; then
13834 case $cross_compiling:$ac_tool_warned in
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13838 ac_tool_warned=yes ;;
13843 AR="$ac_cv_prog_AR"
13852 # Extract the first word of "dtrace", so it can be a program name with args.
13853 set dummy dtrace; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if ${ac_cv_path_DTRACE+:} false; then :
13857 $as_echo_n "(cached) " >&6
13861 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 as_dummy="$PATH:/usr/local/sbin:/usr/sbin"
13866 for as_dir in $as_dummy
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
13873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 DTRACE=$ac_cv_path_DTRACE
13884 if test -n "$DTRACE"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
13886 $as_echo "$DTRACE" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13897 if test -n "$DTRACE"; then :
13899 PROBES_SOURCE="probes_dnscrypt_proxy.h"
13904 PROBES_SOURCE="probes_no_dtrace.h"
13910 if test -d /usr/local/include; then :
13912 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
13916 if test -d /usr/local/lib; then :
13918 LDFLAGS="$LDFLAGS -L/usr/local/lib"
13923 @%:@ Check whether --enable-largefile was given.
13924 if test "${enable_largefile+set}" = set; then :
13925 enableval=$enable_largefile;
13928 if test "$enable_largefile" != no; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13931 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13932 if ${ac_cv_sys_largefile_CC+:} false; then :
13933 $as_echo_n "(cached) " >&6
13935 ac_cv_sys_largefile_CC=no
13936 if test "$GCC" != yes; then
13939 # IRIX 6.2 and later do not support large files by default,
13940 # so use the C compiler's -n32 option if that helps.
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 @%:@include <sys/types.h>
13944 /* Check that off_t can represent 2**63 - 1 correctly.
13945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13946 since some C++ compilers masquerading as C compilers
13947 incorrectly reject 9223372036854775807. */
13948 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13950 && LARGE_OFF_T % 2147483647 == 1)
13960 if ac_fn_c_try_compile "$LINENO"; then :
13963 rm -f core conftest.err conftest.$ac_objext
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966 ac_cv_sys_largefile_CC=' -n32'; break
13968 rm -f core conftest.err conftest.$ac_objext
13972 rm -f conftest.$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13976 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13977 if test "$ac_cv_sys_largefile_CC" != no; then
13978 CC=$CC$ac_cv_sys_largefile_CC
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13982 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13983 if ${ac_cv_sys_file_offset_bits+:} false; then :
13984 $as_echo_n "(cached) " >&6
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 @%:@include <sys/types.h>
13990 /* Check that off_t can represent 2**63 - 1 correctly.
13991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13992 since some C++ compilers masquerading as C compilers
13993 incorrectly reject 9223372036854775807. */
13994 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13996 && LARGE_OFF_T % 2147483647 == 1)
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007 ac_cv_sys_file_offset_bits=no; break
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 @%:@define _FILE_OFFSET_BITS 64
14013 @%:@include <sys/types.h>
14014 /* Check that off_t can represent 2**63 - 1 correctly.
14015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14016 since some C++ compilers masquerading as C compilers
14017 incorrectly reject 9223372036854775807. */
14018 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14020 && LARGE_OFF_T % 2147483647 == 1)
14030 if ac_fn_c_try_compile "$LINENO"; then :
14031 ac_cv_sys_file_offset_bits=64; break
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 ac_cv_sys_file_offset_bits=unknown
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14039 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14040 case $ac_cv_sys_file_offset_bits in #(
14043 cat >>confdefs.h <<_ACEOF
14044 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14049 if test $ac_cv_sys_file_offset_bits = unknown; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14051 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14052 if ${ac_cv_sys_large_files+:} false; then :
14053 $as_echo_n "(cached) " >&6
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 @%:@include <sys/types.h>
14059 /* Check that off_t can represent 2**63 - 1 correctly.
14060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14061 since some C++ compilers masquerading as C compilers
14062 incorrectly reject 9223372036854775807. */
14063 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14065 && LARGE_OFF_T % 2147483647 == 1)
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 ac_cv_sys_large_files=no; break
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 @%:@define _LARGE_FILES 1
14082 @%:@include <sys/types.h>
14083 /* Check that off_t can represent 2**63 - 1 correctly.
14084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14085 since some C++ compilers masquerading as C compilers
14086 incorrectly reject 9223372036854775807. */
14087 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14089 && LARGE_OFF_T % 2147483647 == 1)
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100 ac_cv_sys_large_files=1; break
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 ac_cv_sys_large_files=unknown
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14108 $as_echo "$ac_cv_sys_large_files" >&6; }
14109 case $ac_cv_sys_large_files in #(
14112 cat >>confdefs.h <<_ACEOF
14113 @%:@define _LARGE_FILES $ac_cv_sys_large_files
14123 for ac_header in sys/cdefs.h sys/feature_tests.h
14125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14128 cat >>confdefs.h <<_ACEOF
14129 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 for ac_header in execinfo.h paths.h pwd.h uuid/uuid.h
14138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14139 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14141 cat >>confdefs.h <<_ACEOF
14142 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14149 for ac_header in sandbox.h
14151 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
14152 if test "x$ac_cv_header_sandbox_h" = xyes; then :
14153 cat >>confdefs.h <<_ACEOF
14154 @%:@define HAVE_SANDBOX_H 1
14161 for ac_header in ws2tcpip.h
14163 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14164 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14165 cat >>confdefs.h <<_ACEOF
14166 @%:@define HAVE_WS2TCPIP_H 1
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14176 $as_echo_n "checking for inline... " >&6; }
14177 if ${ac_cv_c_inline+:} false; then :
14178 $as_echo_n "(cached) " >&6
14181 for ac_kw in inline __inline__ __inline; do
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 #ifndef __cplusplus
14186 static $ac_kw foo_t static_foo () {return 0; }
14187 $ac_kw foo_t foo () {return 0; }
14191 if ac_fn_c_try_compile "$LINENO"; then :
14192 ac_cv_c_inline=$ac_kw
14194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195 test "$ac_cv_c_inline" != no && break
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14200 $as_echo "$ac_cv_c_inline" >&6; }
14202 case $ac_cv_c_inline in
14205 case $ac_cv_c_inline in
14207 *) ac_val=$ac_cv_c_inline;;
14209 cat >>confdefs.h <<_ACEOF
14210 #ifndef __cplusplus
14211 #define inline $ac_val
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14218 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14219 if ${ac_cv_c_bigendian+:} false; then :
14220 $as_echo_n "(cached) " >&6
14222 ac_cv_c_bigendian=unknown
14223 # See if we're dealing with a universal compiler.
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #ifndef __APPLE_CC__
14227 not a universal capable compiler
14232 if ac_fn_c_try_compile "$LINENO"; then :
14234 # Check for potential -arch flags. It is not universal unless
14235 # there are at least two -arch flags with different values.
14238 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14239 if test -n "$ac_prev"; then
14241 i?86 | x86_64 | ppc | ppc64)
14242 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14245 ac_cv_c_bigendian=universal
14251 elif test "x$ac_word" = "x-arch"; then
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 if test $ac_cv_c_bigendian = unknown; then
14258 # See if sys/param.h defines the BYTE_ORDER macro.
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 #include <sys/types.h>
14262 #include <sys/param.h>
14267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14268 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14270 bogus endian macros
14277 if ac_fn_c_try_compile "$LINENO"; then :
14278 # It does; now see whether it defined to BIG_ENDIAN or not.
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 #include <sys/types.h>
14282 #include <sys/param.h>
14287 #if BYTE_ORDER != BIG_ENDIAN
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296 ac_cv_c_bigendian=yes
14298 ac_cv_c_bigendian=no
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 if test $ac_cv_c_bigendian = unknown; then
14305 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 #include <limits.h>
14313 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14314 bogus endian macros
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322 # It does; now see whether it defined to _BIG_ENDIAN or not.
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 #include <limits.h>
14330 #ifndef _BIG_ENDIAN
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 ac_cv_c_bigendian=yes
14341 ac_cv_c_bigendian=no
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 if test $ac_cv_c_bigendian = unknown; then
14348 # Compile a test program.
14349 if test "$cross_compiling" = yes; then :
14350 # Try to guess by grepping values from an object file.
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 short int ascii_mm[] =
14354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14355 short int ascii_ii[] =
14356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14357 int use_ascii (int i) {
14358 return ascii_mm[i] + ascii_ii[i];
14360 short int ebcdic_ii[] =
14361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14362 short int ebcdic_mm[] =
14363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14364 int use_ebcdic (int i) {
14365 return ebcdic_mm[i] + ebcdic_ii[i];
14372 return use_ascii (foo) == use_ebcdic (foo);
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14379 ac_cv_c_bigendian=yes
14381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14382 if test "$ac_cv_c_bigendian" = unknown; then
14383 ac_cv_c_bigendian=no
14385 # finding both strings is unlikely to happen, but who knows?
14386 ac_cv_c_bigendian=unknown
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394 $ac_includes_default
14399 /* Are we little or big endian? From Harbison&Steele. */
14403 char c[sizeof (long int)];
14406 return u.c[sizeof (long int) - 1] == 1;
14412 if ac_fn_c_try_run "$LINENO"; then :
14413 ac_cv_c_bigendian=no
14415 ac_cv_c_bigendian=yes
14417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14418 conftest.$ac_objext conftest.beam conftest.$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14424 $as_echo "$ac_cv_c_bigendian" >&6; }
14425 case $ac_cv_c_bigendian in #(
14427 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
14433 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14437 as_fn_error $? "unknown endianness
14438 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14442 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14443 if ${ac_cv_c_restrict+:} false; then :
14444 $as_echo_n "(cached) " >&6
14446 ac_cv_c_restrict=no
14447 # The order here caters to the fact that C++ does not require restrict.
14448 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14451 typedef int * int_ptr;
14452 int foo (int_ptr $ac_kw ip) {
14459 int * $ac_kw t = s;
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 ac_cv_c_restrict=$ac_kw
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 test "$ac_cv_c_restrict" != no && break
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14475 $as_echo "$ac_cv_c_restrict" >&6; }
14477 case $ac_cv_c_restrict in
14479 no) $as_echo "@%:@define restrict /**/" >>confdefs.h
14481 *) cat >>confdefs.h <<_ACEOF
14482 @%:@define restrict $ac_cv_c_restrict
14488 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14489 #include <sys/types.h>
14490 #ifdef HAVE_UNISTD_H
14491 # include <unistd.h>
14493 #ifdef HAVE_WS2TCPIP_H
14494 # include <ws2tcpip.h>
14496 # include <sys/socket.h>
14497 # include <netinet/in.h>
14501 if test "x$ac_cv_type_in_port_t" = xyes; then :
14505 $as_echo "@%:@define in_port_t uint16_t" >>confdefs.h
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sin_len is defined" >&5
14511 $as_echo_n "checking whether sin_len is defined... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14515 #include <sys/types.h>
14517 #ifdef HAVE_UNISTD_H
14518 # include <unistd.h>
14520 #ifdef HAVE_WS2TCPIP_H
14521 # include <ws2tcpip.h>
14523 # include <sys/socket.h>
14524 # include <netinet/in.h>
14532 struct sockaddr_in a;
14540 if ac_fn_c_try_compile "$LINENO"; then :
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543 $as_echo "yes" >&6; }
14545 $as_echo "@%:@define HAVE_SIN_LEN 1" >>confdefs.h
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
14557 $as_echo_n "checking whether __ss_family is defined... " >&6; }
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14561 #include <sys/types.h>
14563 #ifdef HAVE_UNISTD_H
14564 # include <unistd.h>
14566 #ifdef HAVE_WS2TCPIP_H
14567 # include <ws2tcpip.h>
14569 # include <sys/socket.h>
14570 # include <netinet/in.h>
14578 struct sockaddr_storage a;
14579 (void) a.__ss_family;
14586 if ac_fn_c_try_compile "$LINENO"; then :
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14589 $as_echo "yes" >&6; }
14591 $as_echo "@%:@define HAVE___SS_FAMILY 1" >>confdefs.h
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
14603 $as_echo_n "checking whether ss_len is defined... " >&6; }
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14607 #include <sys/types.h>
14609 #ifdef HAVE_UNISTD_H
14610 # include <unistd.h>
14612 #ifdef HAVE_WS2TCPIP_H
14613 # include <ws2tcpip.h>
14615 # include <sys/socket.h>
14616 # include <netinet/in.h>
14624 struct sockaddr_storage a;
14632 if ac_fn_c_try_compile "$LINENO"; then :
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14635 $as_echo "yes" >&6; }
14637 $as_echo "@%:@define HAVE_SS_LEN 1" >>confdefs.h
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
14649 $as_echo_n "checking whether __ss_len is defined... " >&6; }
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 #include <sys/types.h>
14655 #ifdef HAVE_UNISTD_H
14656 # include <unistd.h>
14658 #ifdef HAVE_WS2TCPIP_H
14659 # include <ws2tcpip.h>
14661 # include <sys/socket.h>
14662 # include <netinet/in.h>
14670 struct sockaddr_storage a;
14678 if ac_fn_c_try_compile "$LINENO"; then :
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681 $as_echo "yes" >&6; }
14683 $as_echo "@%:@define HAVE___SS_LEN 1" >>confdefs.h
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
14696 $as_echo_n "checking for library containing pow... " >&6; }
14697 if ${ac_cv_search_pow+:} false; then :
14698 $as_echo_n "(cached) " >&6
14700 ac_func_search_save_LIBS=$LIBS
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 /* Override any GCC internal prototype to avoid an error.
14705 Use char because int might match the return type of a GCC
14706 builtin and then its argument prototype would still apply. */
14719 for ac_lib in '' m; do
14720 if test -z "$ac_lib"; then
14721 ac_res="none required"
14724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14726 if ac_fn_c_try_link "$LINENO"; then :
14727 ac_cv_search_pow=$ac_res
14729 rm -f core conftest.err conftest.$ac_objext \
14731 if ${ac_cv_search_pow+:} false; then :
14735 if ${ac_cv_search_pow+:} false; then :
14738 ac_cv_search_pow=no
14740 rm conftest.$ac_ext
14741 LIBS=$ac_func_search_save_LIBS
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
14744 $as_echo "$ac_cv_search_pow" >&6; }
14745 ac_res=$ac_cv_search_pow
14746 if test "$ac_res" != no; then :
14747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14752 $as_echo_n "checking for library containing dlopen... " >&6; }
14753 if ${ac_cv_search_dlopen+:} false; then :
14754 $as_echo_n "(cached) " >&6
14756 ac_func_search_save_LIBS=$LIBS
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14760 /* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14775 for ac_lib in '' dl; do
14776 if test -z "$ac_lib"; then
14777 ac_res="none required"
14780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 ac_cv_search_dlopen=$ac_res
14785 rm -f core conftest.err conftest.$ac_objext \
14787 if ${ac_cv_search_dlopen+:} false; then :
14791 if ${ac_cv_search_dlopen+:} false; then :
14794 ac_cv_search_dlopen=no
14796 rm conftest.$ac_ext
14797 LIBS=$ac_func_search_save_LIBS
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14800 $as_echo "$ac_cv_search_dlopen" >&6; }
14801 ac_res=$ac_cv_search_dlopen
14802 if test "$ac_res" != no; then :
14803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14808 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14809 if ${ac_cv_search_clock_gettime+:} false; then :
14810 $as_echo_n "(cached) " >&6
14812 ac_func_search_save_LIBS=$LIBS
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14822 char clock_gettime ();
14826 return clock_gettime ();
14831 for ac_lib in '' rt; do
14832 if test -z "$ac_lib"; then
14833 ac_res="none required"
14836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14838 if ac_fn_c_try_link "$LINENO"; then :
14839 ac_cv_search_clock_gettime=$ac_res
14841 rm -f core conftest.err conftest.$ac_objext \
14843 if ${ac_cv_search_clock_gettime+:} false; then :
14847 if ${ac_cv_search_clock_gettime+:} false; then :
14850 ac_cv_search_clock_gettime=no
14852 rm conftest.$ac_ext
14853 LIBS=$ac_func_search_save_LIBS
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14856 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14857 ac_res=$ac_cv_search_clock_gettime
14858 if test "$ac_res" != no; then :
14859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14861 $as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
14867 $as_echo_n "checking for library containing backtrace... " >&6; }
14868 if ${ac_cv_search_backtrace+:} false; then :
14869 $as_echo_n "(cached) " >&6
14871 ac_func_search_save_LIBS=$LIBS
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14885 return backtrace ();
14890 for ac_lib in '' execinfo; do
14891 if test -z "$ac_lib"; then
14892 ac_res="none required"
14895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14897 if ac_fn_c_try_link "$LINENO"; then :
14898 ac_cv_search_backtrace=$ac_res
14900 rm -f core conftest.err conftest.$ac_objext \
14902 if ${ac_cv_search_backtrace+:} false; then :
14906 if ${ac_cv_search_backtrace+:} false; then :
14909 ac_cv_search_backtrace=no
14911 rm conftest.$ac_ext
14912 LIBS=$ac_func_search_save_LIBS
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
14915 $as_echo "$ac_cv_search_backtrace" >&6; }
14916 ac_res=$ac_cv_search_backtrace
14917 if test "$ac_res" != no; then :
14918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14920 $as_echo "@%:@define HAVE_BACKTRACE 1" >>confdefs.h
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14926 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14927 if ${ac_cv_search_gethostbyname+:} false; then :
14928 $as_echo_n "(cached) " >&6
14930 ac_func_search_save_LIBS=$LIBS
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14934 /* Override any GCC internal prototype to avoid an error.
14935 Use char because int might match the return type of a GCC
14936 builtin and then its argument prototype would still apply. */
14940 char gethostbyname ();
14944 return gethostbyname ();
14949 for ac_lib in '' resolv nsl; do
14950 if test -z "$ac_lib"; then
14951 ac_res="none required"
14954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14956 if ac_fn_c_try_link "$LINENO"; then :
14957 ac_cv_search_gethostbyname=$ac_res
14959 rm -f core conftest.err conftest.$ac_objext \
14961 if ${ac_cv_search_gethostbyname+:} false; then :
14965 if ${ac_cv_search_gethostbyname+:} false; then :
14968 ac_cv_search_gethostbyname=no
14970 rm conftest.$ac_ext
14971 LIBS=$ac_func_search_save_LIBS
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14974 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14975 ac_res=$ac_cv_search_gethostbyname
14976 if test "$ac_res" != no; then :
14977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5
14982 $as_echo_n "checking for library containing recvfrom... " >&6; }
14983 if ${ac_cv_search_recvfrom+:} false; then :
14984 $as_echo_n "(cached) " >&6
14986 ac_func_search_save_LIBS=$LIBS
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
15000 return recvfrom ();
15005 for ac_lib in '' socket; do
15006 if test -z "$ac_lib"; then
15007 ac_res="none required"
15010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 ac_cv_search_recvfrom=$ac_res
15015 rm -f core conftest.err conftest.$ac_objext \
15017 if ${ac_cv_search_recvfrom+:} false; then :
15021 if ${ac_cv_search_recvfrom+:} false; then :
15024 ac_cv_search_recvfrom=no
15026 rm conftest.$ac_ext
15027 LIBS=$ac_func_search_save_LIBS
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5
15030 $as_echo "$ac_cv_search_recvfrom" >&6; }
15031 ac_res=$ac_cv_search_recvfrom
15032 if test "$ac_res" != no; then :
15033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
15038 $as_echo_n "checking for library containing kvm_open... " >&6; }
15039 if ${ac_cv_search_kvm_open+:} false; then :
15040 $as_echo_n "(cached) " >&6
15042 ac_func_search_save_LIBS=$LIBS
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 /* Override any GCC internal prototype to avoid an error.
15047 Use char because int might match the return type of a GCC
15048 builtin and then its argument prototype would still apply. */
15056 return kvm_open ();
15061 for ac_lib in '' kvm; do
15062 if test -z "$ac_lib"; then
15063 ac_res="none required"
15066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15068 if ac_fn_c_try_link "$LINENO"; then :
15069 ac_cv_search_kvm_open=$ac_res
15071 rm -f core conftest.err conftest.$ac_objext \
15073 if ${ac_cv_search_kvm_open+:} false; then :
15077 if ${ac_cv_search_kvm_open+:} false; then :
15080 ac_cv_search_kvm_open=no
15082 rm conftest.$ac_ext
15083 LIBS=$ac_func_search_save_LIBS
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
15086 $as_echo "$ac_cv_search_kvm_open" >&6; }
15087 ac_res=$ac_cv_search_kvm_open
15088 if test "$ac_res" != no; then :
15089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
15094 $as_echo_n "checking for library containing sodium_init... " >&6; }
15095 if ${ac_cv_search_sodium_init+:} false; then :
15096 $as_echo_n "(cached) " >&6
15098 ac_func_search_save_LIBS=$LIBS
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15108 char sodium_init ();
15112 return sodium_init ();
15117 for ac_lib in '' sodium; do
15118 if test -z "$ac_lib"; then
15119 ac_res="none required"
15122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15124 if ac_fn_c_try_link "$LINENO"; then :
15125 ac_cv_search_sodium_init=$ac_res
15127 rm -f core conftest.err conftest.$ac_objext \
15129 if ${ac_cv_search_sodium_init+:} false; then :
15133 if ${ac_cv_search_sodium_init+:} false; then :
15136 ac_cv_search_sodium_init=no
15138 rm conftest.$ac_ext
15139 LIBS=$ac_func_search_save_LIBS
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
15142 $as_echo "$ac_cv_search_sodium_init" >&6; }
15143 ac_res=$ac_cv_search_sodium_init
15144 if test "$ac_res" != no; then :
15145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15148 as_fn_error $? "libsodium not found" "$LINENO" 5
15153 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "#include <sys/types.h>
15154 #include <stdlib.h>
15155 #include <stdint.h>
15156 #ifdef HAVE_WS2TCPIP_H
15157 # include <ws2tcpip.h>
15161 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_wire2pkt in -lldns" >&5
15164 $as_echo_n "checking for ldns_wire2pkt in -lldns... " >&6; }
15165 if ${ac_cv_lib_ldns_ldns_wire2pkt+:} false; then :
15166 $as_echo_n "(cached) " >&6
15168 ac_check_lib_save_LIBS=$LIBS
15169 LIBS="-lldns $LIBS"
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15173 /* Override any GCC internal prototype to avoid an error.
15174 Use char because int might match the return type of a GCC
15175 builtin and then its argument prototype would still apply. */
15179 char ldns_wire2pkt ();
15183 return ldns_wire2pkt ();
15188 if ac_fn_c_try_link "$LINENO"; then :
15189 ac_cv_lib_ldns_ldns_wire2pkt=yes
15191 ac_cv_lib_ldns_ldns_wire2pkt=no
15193 rm -f core conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_wire2pkt" >&5
15198 $as_echo "$ac_cv_lib_ldns_ldns_wire2pkt" >&6; }
15199 if test "x$ac_cv_lib_ldns_ldns_wire2pkt" = xyes; then :
15202 $as_echo "@%:@define USE_LDNS 1" >>confdefs.h
15213 if test x$use_ldns = xyes; then
15224 cygwin* | mingw* | pw32* | cegcc*)
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libws2_32_a in -lws2_32" >&5
15226 $as_echo_n "checking for _head_libws2_32_a in -lws2_32... " >&6; }
15227 if ${ac_cv_lib_ws2_32__head_libws2_32_a+:} false; then :
15228 $as_echo_n "(cached) " >&6
15230 ac_check_lib_save_LIBS=$LIBS
15231 LIBS="-lws2_32 $LIBS"
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15235 /* Override any GCC internal prototype to avoid an error.
15236 Use char because int might match the return type of a GCC
15237 builtin and then its argument prototype would still apply. */
15241 char _head_libws2_32_a ();
15245 return _head_libws2_32_a ();
15250 if ac_fn_c_try_link "$LINENO"; then :
15251 ac_cv_lib_ws2_32__head_libws2_32_a=yes
15253 ac_cv_lib_ws2_32__head_libws2_32_a=no
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32__head_libws2_32_a" >&5
15260 $as_echo "$ac_cv_lib_ws2_32__head_libws2_32_a" >&6; }
15261 if test "x$ac_cv_lib_ws2_32__head_libws2_32_a" = xyes; then :
15262 cat >>confdefs.h <<_ACEOF
15263 @%:@define HAVE_LIBWS2_32 1
15266 LIBS="-lws2_32 $LIBS"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libpsapi_a in -lpsapi" >&5
15271 $as_echo_n "checking for _head_libpsapi_a in -lpsapi... " >&6; }
15272 if ${ac_cv_lib_psapi__head_libpsapi_a+:} false; then :
15273 $as_echo_n "(cached) " >&6
15275 ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-lpsapi $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15286 char _head_libpsapi_a ();
15290 return _head_libpsapi_a ();
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_psapi__head_libpsapi_a=yes
15298 ac_cv_lib_psapi__head_libpsapi_a=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi__head_libpsapi_a" >&5
15305 $as_echo "$ac_cv_lib_psapi__head_libpsapi_a" >&6; }
15306 if test "x$ac_cv_lib_psapi__head_libpsapi_a" = xyes; then :
15307 cat >>confdefs.h <<_ACEOF
15308 @%:@define HAVE_LIBPSAPI 1
15311 LIBS="-lpsapi $LIBS"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _head_libiphlpapi_a in -liphlpapi" >&5
15316 $as_echo_n "checking for _head_libiphlpapi_a in -liphlpapi... " >&6; }
15317 if ${ac_cv_lib_iphlpapi__head_libiphlpapi_a+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 ac_check_lib_save_LIBS=$LIBS
15321 LIBS="-liphlpapi $LIBS"
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15331 char _head_libiphlpapi_a ();
15335 return _head_libiphlpapi_a ();
15340 if ac_fn_c_try_link "$LINENO"; then :
15341 ac_cv_lib_iphlpapi__head_libiphlpapi_a=yes
15343 ac_cv_lib_iphlpapi__head_libiphlpapi_a=no
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 LIBS=$ac_check_lib_save_LIBS
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&5
15350 $as_echo "$ac_cv_lib_iphlpapi__head_libiphlpapi_a" >&6; }
15351 if test "x$ac_cv_lib_iphlpapi__head_libiphlpapi_a" = xyes; then :
15352 cat >>confdefs.h <<_ACEOF
15353 @%:@define HAVE_LIBIPHLPAPI 1
15356 LIBS="-liphlpapi $LIBS"
15363 ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
15364 if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
15365 LIBS="$LIBS -framework CoreFoundation -framework CoreServices"
15370 for ac_func in getpwnam sandbox_init setrlimit putc_unlocked gmtime_r
15372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15374 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15375 cat >>confdefs.h <<_ACEOF
15376 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15382 for ac_func in sodium_mlock
15384 ac_fn_c_check_func "$LINENO" "sodium_mlock" "ac_cv_func_sodium_mlock"
15385 if test "x$ac_cv_func_sodium_mlock" = xyes; then :
15386 cat >>confdefs.h <<_ACEOF
15387 @%:@define HAVE_SODIUM_MLOCK 1
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15404 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15405 if ${libltdl_cv_shlibext+:} false; then :
15406 $as_echo_n "(cached) " >&6
15410 eval libltdl_cv_shlibext=$shrext_cmds
15412 eval libltdl_cv_shrext=$shrext_cmds
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15416 $as_echo "$libltdl_cv_shlibext" >&6; }
15417 if test -n "$libltdl_cv_shlibext"; then
15419 cat >>confdefs.h <<_ACEOF
15420 @%:@define LT_MODULE_EXT "$libltdl_cv_shlibext"
15424 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15426 cat >>confdefs.h <<_ACEOF
15427 @%:@define LT_SHARED_EXT "$libltdl_cv_shrext"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15433 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15434 if ${lt_cv_module_path_var+:} false; then :
15435 $as_echo_n "(cached) " >&6
15437 lt_cv_module_path_var="$shlibpath_var"
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15440 $as_echo "$lt_cv_module_path_var" >&6; }
15441 if test -n "$lt_cv_module_path_var"; then
15443 cat >>confdefs.h <<_ACEOF
15444 @%:@define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15450 $as_echo_n "checking for the default library search path... " >&6; }
15451 if ${lt_cv_sys_dlsearch_path+:} false; then :
15452 $as_echo_n "(cached) " >&6
15454 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15457 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15458 if test -n "$lt_cv_sys_dlsearch_path"; then
15460 for dir in $lt_cv_sys_dlsearch_path; do
15461 if test -z "$sys_dlsearch_path"; then
15462 sys_dlsearch_path="$dir"
15464 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15468 cat >>confdefs.h <<_ACEOF
15469 @%:@define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15487 $as_echo_n "checking for library containing dlopen... " >&6; }
15488 if ${ac_cv_search_dlopen+:} false; then :
15489 $as_echo_n "(cached) " >&6
15491 ac_func_search_save_LIBS=$LIBS
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15510 for ac_lib in '' dl; do
15511 if test -z "$ac_lib"; then
15512 ac_res="none required"
15515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15517 if ac_fn_c_try_link "$LINENO"; then :
15518 ac_cv_search_dlopen=$ac_res
15520 rm -f core conftest.err conftest.$ac_objext \
15522 if ${ac_cv_search_dlopen+:} false; then :
15526 if ${ac_cv_search_dlopen+:} false; then :
15529 ac_cv_search_dlopen=no
15531 rm conftest.$ac_ext
15532 LIBS=$ac_func_search_save_LIBS
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15535 $as_echo "$ac_cv_search_dlopen" >&6; }
15536 ac_res=$ac_cv_search_dlopen
15537 if test "$ac_res" != no; then :
15538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15540 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15542 if test "$ac_cv_search_dlopen" != "none required" ; then
15543 LIBADD_DLOPEN="-ldl"
15545 libltdl_cv_lib_dl_dlopen="yes"
15546 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15551 # include <dlfcn.h>
15562 if ac_fn_c_try_link "$LINENO"; then :
15564 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15566 libltdl_cv_func_dlopen="yes"
15567 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15571 if ${ac_cv_lib_svld_dlopen+:} false; then :
15572 $as_echo_n "(cached) " >&6
15574 ac_check_lib_save_LIBS=$LIBS
15575 LIBS="-lsvld $LIBS"
15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15594 if ac_fn_c_try_link "$LINENO"; then :
15595 ac_cv_lib_svld_dlopen=yes
15597 ac_cv_lib_svld_dlopen=no
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15604 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15605 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15607 $as_echo "@%:@define HAVE_LIBDL 1" >>confdefs.h
15609 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15610 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15618 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15620 lt_save_LIBS="$LIBS"
15621 LIBS="$LIBS $LIBADD_DLOPEN"
15622 for ac_func in dlerror
15624 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
15625 if test "x$ac_cv_func_dlerror" = xyes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 @%:@define HAVE_DLERROR 1
15633 LIBS="$lt_save_LIBS"
15638 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15639 if test "x$ac_cv_func_shl_load" = xyes; then :
15641 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
15643 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15646 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15647 if ${ac_cv_lib_dld_shl_load+:} false; then :
15648 $as_echo_n "(cached) " >&6
15650 ac_check_lib_save_LIBS=$LIBS
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15655 /* Override any GCC internal prototype to avoid an error.
15656 Use char because int might match the return type of a GCC
15657 builtin and then its argument prototype would still apply. */
15665 return shl_load ();
15670 if ac_fn_c_try_link "$LINENO"; then :
15671 ac_cv_lib_dld_shl_load=yes
15673 ac_cv_lib_dld_shl_load=no
15675 rm -f core conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15677 LIBS=$ac_check_lib_save_LIBS
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15680 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15681 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15683 $as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
15685 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15686 LIBADD_SHL_LOAD="-ldld"
15695 # We only want this for pre-Mac OS X 10.4.
15696 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
15697 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
15699 $as_echo "@%:@define HAVE_DYLD 1" >>confdefs.h
15701 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15706 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15708 cygwin* | mingw* | os2* | pw32*)
15709 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
15711 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
15717 cat >>confdefs.h <<_ACEOF
15718 @%:@define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
15721 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15726 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15727 if ${ac_cv_lib_dld_dld_link+:} false; then :
15728 $as_echo_n "(cached) " >&6
15730 ac_check_lib_save_LIBS=$LIBS
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15735 /* Override any GCC internal prototype to avoid an error.
15736 Use char because int might match the return type of a GCC
15737 builtin and then its argument prototype would still apply. */
15745 return dld_link ();
15750 if ac_fn_c_try_link "$LINENO"; then :
15751 ac_cv_lib_dld_dld_link=yes
15753 ac_cv_lib_dld_dld_link=no
15755 rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15757 LIBS=$ac_check_lib_save_LIBS
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15760 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15761 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15763 $as_echo "@%:@define HAVE_DLD 1" >>confdefs.h
15765 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15772 if test -n "$LT_DLLOADERS"
15774 for lt_loader in $LT_DLLOADERS; do
15775 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15778 $as_echo "@%:@define HAVE_LIBDLLOADER 1" >>confdefs.h
15783 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15787 ac_cpp='$CPP $CPPFLAGS'
15788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15794 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15795 if ${lt_cv_sys_symbol_underscore+:} false; then :
15796 $as_echo_n "(cached) " >&6
15798 lt_cv_sys_symbol_underscore=no
15799 cat > conftest.$ac_ext <<_LT_EOF
15800 void nm_test_func(){}
15801 int main(){nm_test_func;return 0;}
15803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15804 (eval $ac_compile) 2>&5
15806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15807 test $ac_status = 0; }; then
15808 # Now try to grab the symbols.
15809 ac_nlist=conftest.nm
15810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
15811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814 test $ac_status = 0; } && test -s "$ac_nlist"; then
15815 # See whether the symbols have a leading underscore.
15816 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15817 lt_cv_sys_symbol_underscore=yes
15819 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15822 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15826 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15829 echo "configure: failed program was:" >&5
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
15836 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
15837 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15840 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15841 if test x"$libltdl_cv_func_dlopen" = xyes ||
15842 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
15844 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
15845 if ${libltdl_cv_need_uscore+:} false; then :
15846 $as_echo_n "(cached) " >&6
15848 libltdl_cv_need_uscore=unknown
15850 LIBS="$LIBS $LIBADD_DLOPEN"
15851 if test "$cross_compiling" = yes; then :
15852 libltdl_cv_need_uscore=cross
15854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15855 lt_status=$lt_dlunknown
15856 cat > conftest.$ac_ext <<_LT_EOF
15857 #line $LINENO "configure"
15858 #include "confdefs.h"
15867 # define LT_DLGLOBAL RTLD_GLOBAL
15870 # define LT_DLGLOBAL DL_GLOBAL
15872 # define LT_DLGLOBAL 0
15876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15877 find out it does not work in some platform. */
15878 #ifndef LT_DLLAZY_OR_NOW
15880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15883 # define LT_DLLAZY_OR_NOW DL_LAZY
15886 # define LT_DLLAZY_OR_NOW RTLD_NOW
15889 # define LT_DLLAZY_OR_NOW DL_NOW
15891 # define LT_DLLAZY_OR_NOW 0
15898 /* When -fvisbility=hidden is used, assume the code has been annotated
15899 correspondingly for the symbols needed. */
15900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15901 int fnord () __attribute__((visibility("default")));
15904 int fnord () { return 42; }
15907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15908 int status = $lt_dlunknown;
15912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15916 else puts (dlerror ());
15918 /* dlclose (self); */
15926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15927 (eval $ac_link) 2>&5
15929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15931 (./conftest; exit; ) >&5 2>/dev/null
15933 case x$lt_status in
15934 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15935 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15936 x$lt_dlunknown|x*) ;;
15939 # compilation failed
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
15949 $as_echo "$libltdl_cv_need_uscore" >&6; }
15953 if test x"$libltdl_cv_need_uscore" = xyes; then
15955 $as_echo "@%:@define NEED_USCORE 1" >>confdefs.h
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
15960 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
15961 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
15962 $as_echo_n "(cached) " >&6
15964 # PORTME does your system automatically load deplibs for dlopen?
15965 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15966 # For now, we just catch OSes we know something about -- in the
15967 # future, we'll try test this programmatically.
15968 lt_cv_sys_dlopen_deplibs=unknown
15970 aix3*|aix4.1.*|aix4.2.*)
15971 # Unknown whether this is true for these versions of AIX, but
15972 # we want this `case' here to explicitly catch those versions.
15973 lt_cv_sys_dlopen_deplibs=unknown
15976 lt_cv_sys_dlopen_deplibs=yes
15981 lt_cv_sys_dlopen_deplibs=no
15986 # Assuming the user has installed a libdl from somewhere, this is true
15987 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
15988 lt_cv_sys_dlopen_deplibs=yes
15990 freebsd* | dragonfly*)
15991 lt_cv_sys_dlopen_deplibs=yes
15993 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
15994 # GNU and its variants, using gnu ld.so (Glibc)
15995 lt_cv_sys_dlopen_deplibs=yes
15998 lt_cv_sys_dlopen_deplibs=yes
16001 lt_cv_sys_dlopen_deplibs=yes
16003 irix[12345]*|irix6.[01]*)
16004 # Catch all versions of IRIX before 6.2, and indicate that we don't
16005 # know how it worked for any of those versions.
16006 lt_cv_sys_dlopen_deplibs=unknown
16009 # The case above catches anything before 6.2, and it's known that
16010 # at 6.2 and later dlopen does load deplibs.
16011 lt_cv_sys_dlopen_deplibs=yes
16013 netbsd* | netbsdelf*-gnu)
16014 lt_cv_sys_dlopen_deplibs=yes
16017 lt_cv_sys_dlopen_deplibs=yes
16020 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16021 # it did *not* use an RPATH in a shared library to find objects the
16022 # library depends on, so we explicitly say `no'.
16023 lt_cv_sys_dlopen_deplibs=no
16025 osf5.0|osf5.0a|osf5.1)
16026 # dlopen *does* load deplibs and with the right loader patch applied
16027 # it even uses RPATH in a shared library to search for shared objects
16028 # that the library depends on, but there's no easy way to know if that
16029 # patch is installed. Since this is the case, all we can really
16030 # say is unknown -- it depends on the patch being installed. If
16031 # it is, this changes to `yes'. Without it, it would be `no'.
16032 lt_cv_sys_dlopen_deplibs=unknown
16035 # the two cases above should catch all versions of osf <= 5.1. Read
16036 # the comments above for what we know about them.
16037 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16038 # is used to find them so we can finally say `yes'.
16039 lt_cv_sys_dlopen_deplibs=yes
16042 lt_cv_sys_dlopen_deplibs=yes
16045 lt_cv_sys_dlopen_deplibs=yes
16047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16048 libltdl_cv_sys_dlopen_deplibs=yes
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16054 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16055 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16057 $as_echo "@%:@define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16063 for ac_header in argz.h
16065 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16067 if test "x$ac_cv_header_argz_h" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 @%:@define HAVE_ARGZ_H 1
16077 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16081 if test "x$ac_cv_type_error_t" = xyes; then :
16083 cat >>confdefs.h <<_ACEOF
16084 @%:@define HAVE_ERROR_T 1
16090 $as_echo "@%:@define error_t int" >>confdefs.h
16093 $as_echo "@%:@define __error_t_defined 1" >>confdefs.h
16099 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16100 argz_next argz_stringify
16102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16105 cat >>confdefs.h <<_ACEOF
16106 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16112 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16118 if test -z "$ARGZ_H"; then :
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16120 $as_echo_n "checking if argz actually works... " >&6; }
16121 if ${lt_cv_sys_argz_works+:} false; then :
16122 $as_echo_n "(cached) " >&6
16124 case $host_os in #(
16126 lt_cv_sys_argz_works=no
16127 if test "$cross_compiling" != no; then
16128 lt_cv_sys_argz_works="guessing no"
16130 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16133 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16138 if test "$lt_os_major" -gt 1 \
16139 || { test "$lt_os_major" -eq 1 \
16140 && { test "$lt_os_minor" -gt 5 \
16141 || { test "$lt_os_minor" -eq 5 \
16142 && test "$lt_os_micro" -gt 24; }; }; }; then
16143 lt_cv_sys_argz_works=yes
16147 *) lt_cv_sys_argz_works=yes ;;
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16151 $as_echo "$lt_cv_sys_argz_works" >&6; }
16152 if test "$lt_cv_sys_argz_works" = yes; then :
16154 $as_echo "@%:@define HAVE_WORKING_ARGZ 1" >>confdefs.h
16160 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16168 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16169 if ${libltdl_cv_preloaded_symbols+:} false; then :
16170 $as_echo_n "(cached) " >&6
16172 if test -n "$lt_cv_sys_global_symbol_pipe"; then
16173 libltdl_cv_preloaded_symbols=yes
16175 libltdl_cv_preloaded_symbols=no
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16180 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16181 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16183 $as_echo "@%:@define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16200 @%:@ Check whether --with-included_ltdl was given.
16201 if test "${with_included_ltdl+set}" = set; then :
16202 withval=$with_included_ltdl;
16206 if test "x$with_included_ltdl" != xyes; then
16207 # We are not being forced to use the included libltdl sources, so
16208 # decide whether there is a useful installed version we can use.
16209 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16212 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16213 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16216 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16218 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16219 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16220 $as_echo_n "(cached) " >&6
16222 ac_check_lib_save_LIBS=$LIBS
16223 LIBS="-lltdl $LIBS"
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16233 char lt_dladvise_preload ();
16237 return lt_dladvise_preload ();
16242 if ac_fn_c_try_link "$LINENO"; then :
16243 ac_cv_lib_ltdl_lt_dladvise_preload=yes
16245 ac_cv_lib_ltdl_lt_dladvise_preload=no
16247 rm -f core conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16249 LIBS=$ac_check_lib_save_LIBS
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16252 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16253 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
16254 with_included_ltdl=no
16256 with_included_ltdl=yes
16260 with_included_ltdl=yes
16264 with_included_ltdl=yes
16273 @%:@ Check whether --with-ltdl_include was given.
16274 if test "${with_ltdl_include+set}" = set; then :
16275 withval=$with_ltdl_include;
16279 if test -n "$with_ltdl_include"; then
16280 if test -f "$with_ltdl_include/ltdl.h"; then :
16282 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
16285 with_ltdl_include=no
16289 @%:@ Check whether --with-ltdl_lib was given.
16290 if test "${with_ltdl_lib+set}" = set; then :
16291 withval=$with_ltdl_lib;
16295 if test -n "$with_ltdl_lib"; then
16296 if test -f "$with_ltdl_lib/libltdl.la"; then :
16298 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
16304 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16306 case $enable_ltdl_convenience in
16307 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16308 "") enable_ltdl_convenience=yes
16309 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16311 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16313 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16319 # For backwards non-gettext consistent compatibility...
16320 INCLTDL="$LTDLINCL"
16325 # If the included ltdl is not to be used, then use the
16326 # preinstalled libltdl we found.
16328 $as_echo "@%:@define HAVE_LTDL 1" >>confdefs.h
16335 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
16337 *) with_included_ltdl=no
16338 LIBLTDL="-L$with_ltdl_lib -lltdl"
16340 LTDLINCL="-I$with_ltdl_include"
16343 INCLTDL="$LTDLINCL"
16345 # Report our decision...
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16347 $as_echo_n "checking where to find libltdl headers... " >&6; }
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16349 $as_echo "$LTDLINCL" >&6; }
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16351 $as_echo_n "checking where to find libltdl library... " >&6; }
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16353 $as_echo "$LIBLTDL" >&6; }
16357 @%:@ Check whether --enable-ltdl-install was given.
16358 if test "${enable_ltdl_install+set}" = set; then :
16359 enableval=$enable_ltdl_install;
16363 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16365 *) enable_ltdl_convenience=yes ;;
16368 if test x"${enable_ltdl_install-no}" != xno; then
16370 INSTALL_LTDL_FALSE='#'
16372 INSTALL_LTDL_TRUE='#'
16373 INSTALL_LTDL_FALSE=
16376 if test x"${enable_ltdl_convenience-no}" != xno; then
16377 CONVENIENCE_LTDL_TRUE=
16378 CONVENIENCE_LTDL_FALSE='#'
16380 CONVENIENCE_LTDL_TRUE='#'
16381 CONVENIENCE_LTDL_FALSE=
16386 subdirs="$subdirs libltdl"
16391 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16392 # the user used. This is so that ltdl.h can pick up the parent projects
16393 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16394 # definitions required by ltdl.c.
16395 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16399 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16405 cat >>confdefs.h <<_ACEOF
16406 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16414 for ac_func in closedir opendir readdir
16416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16418 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16419 cat >>confdefs.h <<_ACEOF
16420 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16431 for ac_func in strlcat strlcpy
16433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16436 cat >>confdefs.h <<_ACEOF
16437 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16443 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16450 cat >>confdefs.h <<_ACEOF
16451 @%:@define LT_LIBEXT "$libext"
16456 eval "lt_libprefix=\"$libname_spec\""
16458 cat >>confdefs.h <<_ACEOF
16459 @%:@define LT_LIBPREFIX "$lt_libprefix"
16464 eval "LTDLOPEN=\"$libname_spec\""
16473 # Only expand once:
16479 cygwin* | mingw* | pw32* | cegcc*) ;;
16480 *) ac_configure_args="$ac_configure_args --disable-thread-support" ;;
16483 ac_configure_args="$ac_configure_args --disable-dependency-tracking"
16484 ac_configure_args="$ac_configure_args --disable-libevent-install"
16485 ac_configure_args="$ac_configure_args --disable-openssl"
16486 ac_configure_args="$ac_configure_args --disable-shared"
16487 ac_configure_args="$ac_configure_args --enable-function-sections"
16488 ac_configure_args="$ac_configure_args CC='$CC'"
16489 ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS'"
16490 ac_configure_args="$ac_configure_args CPP='$CPP'"
16491 ac_configure_args="$ac_configure_args CPPFLAGS='$CPPFLAGS'"
16492 ac_configure_args="$ac_configure_args LDFLAGS='$LDFLAGS'"
16493 ac_configure_args="$ac_configure_args LIBS='$LIBS'"
16498 ac_config_files="$ac_config_files Makefile dist-build/Makefile man/Makefile src/Makefile src/hostip/Makefile src/proxy/Makefile src/ext/Makefile src/include/Makefile src/include/dnscrypt/version.h src/plugins/Makefile src/plugins/example/Makefile src/plugins/example-logging/Makefile src/plugins/example-ldns-aaaa-blocking/Makefile src/plugins/example-ldns-blocking/Makefile src/plugins/example-ldns-opendns-deviceid/Makefile src/plugins/example-ldns-opendns-set-client-ip/Makefile test/Makefile"
16501 cat >confcache <<\_ACEOF
16502 # This file is a shell script that caches the results of configure
16503 # tests run on this system so they can be shared between configure
16504 # scripts and configure runs, see configure's option --config-cache.
16505 # It is not useful on other systems. If it contains results you don't
16506 # want to keep, you may remove or edit it.
16508 # config.status only pays attention to the cache file if you give it
16509 # the --recheck option to rerun configure.
16511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16513 # following values.
16517 # The following way of writing the cache mishandles newlines in values,
16518 # but we know of no workaround that is simple, portable, and efficient.
16519 # So, we kill variables containing newlines.
16520 # Ultrix sh set writes to stderr and can't be redirected directly,
16521 # and sets the high bit in the cache file unless we assign to the vars.
16523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16524 eval ac_val=\$$ac_var
16528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16532 _ | IFS | as_nl) ;; #(
16533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16534 *) { eval $ac_var=; unset $ac_var;} ;;
16540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16541 *${as_nl}ac_space=\ *)
16542 # `set' does not quote correctly, so add quotes: double-quote
16543 # substitution turns \\\\ into \\, and sed turns \\ into \.
16546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16549 # `set' quotes correctly as required by POSIX, so do not add quotes.
16550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16564 if test -w "$cache_file"; then
16565 if test "x$cache_file" != "x/dev/null"; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16567 $as_echo "$as_me: updating cache $cache_file" >&6;}
16568 if test ! -f "$cache_file" || test -h "$cache_file"; then
16569 cat confcache >"$cache_file"
16571 case $cache_file in #(
16573 mv -f confcache "$cache_file"$$ &&
16574 mv -f "$cache_file"$$ "$cache_file" ;; #(
16576 mv -f confcache "$cache_file" ;;
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16588 # Let make expand exec_prefix.
16589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16591 DEFS=-DHAVE_CONFIG_H
16596 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
16597 # 1. Remove the extension, and $U if already installed.
16598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16601 # will be set to the directory where LIBOBJS objects are built.
16602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16605 LIB@&t@OBJS=$ac_libobjs
16607 LTLIBOBJS=$ac_ltlibobjs
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16611 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16612 if test -n "$am_sleep_pid"; then
16613 # Hide warnings about reused PIDs.
16614 wait $am_sleep_pid 2>/dev/null
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16617 $as_echo "done" >&6; }
16618 if test -n "$EXEEXT"; then
16620 am__EXEEXT_FALSE='#'
16622 am__EXEEXT_TRUE='#'
16626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16627 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16630 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16631 as_fn_error $? "conditional \"AMDEP\" was never defined.
16632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16634 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16635 as_fn_error $? "conditional \"PLUGINS\" was never defined.
16636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16638 if test -z "${RELAXED_PLUGINS_PERMISSIONS_TRUE}" && test -z "${RELAXED_PLUGINS_PERMISSIONS_FALSE}"; then
16639 as_fn_error $? "conditional \"RELAXED_PLUGINS_PERMISSIONS\" was never defined.
16640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16642 if test -z "${ENABLE_PLUGINS_ROOT_TRUE}" && test -z "${ENABLE_PLUGINS_ROOT_FALSE}"; then
16643 as_fn_error $? "conditional \"ENABLE_PLUGINS_ROOT\" was never defined.
16644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16646 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16647 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651 if test -z "${USE_LDNS_TRUE}" && test -z "${USE_LDNS_FALSE}"; then
16652 as_fn_error $? "conditional \"USE_LDNS\" was never defined.
16653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
16656 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
16660 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 LT_CONFIG_H=config.h
16667 if test -n "$_LT_LIBOBJS"; then
16668 # Remove the extension.
16669 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16670 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16671 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16672 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16675 ltdl_LIBOBJS=$_ltdl_libobjs
16677 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16681 : "${CONFIG_STATUS=./config.status}"
16683 ac_clean_files_save=$ac_clean_files
16684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16690 # Generated by $as_me.
16691 # Run this file to recreate the current configuration.
16692 # Compiler output produced by configure, useful for debugging
16693 # configure, is in config.log if it exists.
16696 ac_cs_recheck=false
16699 SHELL=\${CONFIG_SHELL-$SHELL}
16702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16703 ## -------------------- ##
16704 ## M4sh Initialization. ##
16705 ## -------------------- ##
16707 # Be more Bourne compatible
16708 DUALCASE=1; export DUALCASE # for MKS sh
16709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16713 # is contrary to our usage. Disable this feature.
16714 alias -g '${1+"$@"}'='"$@"'
16715 setopt NO_GLOB_SUBST
16717 case `(set -o) 2>/dev/null` in @%:@(
16719 set -o posix ;; @%:@(
16729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16733 # Prefer a ksh shell builtin over an external printf program on Solaris,
16734 # but without wasting forks for bash or zsh.
16735 if test -z "$BASH_VERSION$ZSH_VERSION" \
16736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16737 as_echo='print -r --'
16738 as_echo_n='print -rn --'
16739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16740 as_echo='printf %s\n'
16741 as_echo_n='printf %s'
16743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16745 as_echo_n='/usr/ucb/echo -n'
16747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16748 as_echo_n_body='eval
16752 expr "X$arg" : "X\\(.*\\)$as_nl";
16753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16757 export as_echo_n_body
16758 as_echo_n='sh -c $as_echo_n_body as_echo'
16760 export as_echo_body
16761 as_echo='sh -c $as_echo_body as_echo'
16764 # The user is always right.
16765 if test "${PATH_SEPARATOR+set}" != set; then
16767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16775 # We need space, tab and new line, in precisely that order. Quoting is
16776 # there to prevent editors from complaining about space-tab.
16777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16778 # splitting by setting IFS to empty value.)
16781 # Find who we are. Look in the path if we contain no directory separator.
16784 *[\\/]* ) as_myself=$0 ;;
16785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16789 test -z "$as_dir" && as_dir=.
16790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16796 # We did not find ourselves, most probably we were run as `sh COMMAND'
16797 # in which case we are not to be found in the path.
16798 if test "x$as_myself" = x; then
16801 if test ! -f "$as_myself"; then
16802 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16806 # Unset variables that we do not need and which cause bugs (e.g. in
16807 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16808 # suppresses any "Segmentation fault" message there. '((' could
16809 # trigger a bug in pdksh 5.2.14.
16810 for as_var in BASH_ENV ENV MAIL MAILPATH
16811 do eval test x\${$as_var+set} = xset \
16812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16828 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
16829 @%:@ ----------------------------------------
16830 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16831 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16832 @%:@ script with STATUS, using 1 if that was 0.
16835 as_status=$1; test $as_status -eq 0 && as_status=1
16837 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16838 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16840 $as_echo "$as_me: error: $2" >&2
16841 as_fn_exit $as_status
16845 @%:@ as_fn_set_status STATUS
16846 @%:@ -----------------------
16847 @%:@ Set @S|@? to STATUS, without forking.
16848 as_fn_set_status ()
16851 } @%:@ as_fn_set_status
16853 @%:@ as_fn_exit STATUS
16854 @%:@ -----------------
16855 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16859 as_fn_set_status $1
16863 @%:@ as_fn_unset VAR
16864 @%:@ ---------------
16865 @%:@ Portably unset VAR.
16868 { eval $1=; unset $1;}
16870 as_unset=as_fn_unset
16871 @%:@ as_fn_append VAR VALUE
16872 @%:@ ----------------------
16873 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
16874 @%:@ advantage of any shell optimizations that allow amortized linear growth over
16875 @%:@ repeated appends, instead of the typical quadratic growth present in naive
16876 @%:@ implementations.
16877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16878 eval 'as_fn_append ()
16889 @%:@ as_fn_arith ARG...
16890 @%:@ ------------------
16891 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
16892 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
16893 @%:@ must be portable across @S|@(()) and expr.
16894 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16895 eval 'as_fn_arith ()
16902 as_val=`expr "$@" || test $? -eq 1`
16907 if expr a : '\(a\)' >/dev/null 2>&1 &&
16908 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16914 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16915 as_basename=basename
16920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16926 as_me=`$as_basename -- "$0" ||
16927 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16928 X"$0" : 'X\(//\)$' \| \
16929 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16931 sed '/^.*\/\([^/][^/]*\)\/*$/{
16945 # Avoid depending upon Character Ranges.
16946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16949 as_cr_digits='0123456789'
16950 as_cr_alnum=$as_cr_Letters$as_cr_digits
16952 ECHO_C= ECHO_N= ECHO_T=
16953 case `echo -n x` in @%:@(((((
16955 case `echo 'xy\c'` in
16956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16958 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16965 rm -f conf$$ conf$$.exe conf$$.file
16966 if test -d conf$$.dir; then
16967 rm -f conf$$.dir/conf$$.file
16970 mkdir conf$$.dir 2>/dev/null
16972 if (echo >conf$$.file) 2>/dev/null; then
16973 if ln -s conf$$.file conf$$ 2>/dev/null; then
16975 # ... but there are two gotchas:
16976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16978 # In both cases, we have to default to `cp -pR'.
16979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16981 elif ln conf$$.file conf$$ 2>/dev/null; then
16989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16990 rmdir conf$$.dir 2>/dev/null
16995 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17000 -*) as_dir=./$as_dir;;
17002 test -d "$as_dir" || eval $as_mkdir_p || {
17006 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17007 *) as_qdir=$as_dir;;
17009 as_dirs="'$as_qdir' $as_dirs"
17010 as_dir=`$as_dirname -- "$as_dir" ||
17011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17012 X"$as_dir" : 'X\(//\)[^/]' \| \
17013 X"$as_dir" : 'X\(//\)$' \| \
17014 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17015 $as_echo X"$as_dir" |
17016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17020 /^X\(\/\/\)[^/].*/{
17033 test -d "$as_dir" && break
17035 test -z "$as_dirs" || eval "mkdir $as_dirs"
17036 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17039 } @%:@ as_fn_mkdir_p
17040 if mkdir -p . 2>/dev/null; then
17041 as_mkdir_p='mkdir -p "$as_dir"'
17043 test -d ./-p && rmdir ./-p
17048 @%:@ as_fn_executable_p FILE
17049 @%:@ -----------------------
17050 @%:@ Test if FILE is an executable regular file.
17051 as_fn_executable_p ()
17053 test -f "$1" && test -x "$1"
17054 } @%:@ as_fn_executable_p
17055 as_test_x='test -x'
17056 as_executable_p=as_fn_executable_p
17058 # Sed expression to map a string onto a valid CPP name.
17059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17061 # Sed expression to map a string onto a valid variable name.
17062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17066 ## ----------------------------------- ##
17067 ## Main body of $CONFIG_STATUS script. ##
17068 ## ----------------------------------- ##
17070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17073 # Save the log message, to keep $0 and so on meaningful, and to
17074 # report actual input values of CONFIG_FILES etc. instead of their
17075 # values after options handling.
17077 This file was extended by dnscrypt-proxy $as_me 1.4.0, which was
17078 generated by GNU Autoconf 2.69. Invocation command line was
17080 CONFIG_FILES = $CONFIG_FILES
17081 CONFIG_HEADERS = $CONFIG_HEADERS
17082 CONFIG_LINKS = $CONFIG_LINKS
17083 CONFIG_COMMANDS = $CONFIG_COMMANDS
17086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17091 case $ac_config_files in *"
17092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17095 case $ac_config_headers in *"
17096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 # Files that config.status was made for.
17102 config_files="$ac_config_files"
17103 config_headers="$ac_config_headers"
17104 config_commands="$ac_config_commands"
17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17110 \`$as_me' instantiates files and other configuration actions
17111 from templates according to the current configuration. Unless the files
17112 and actions are specified as TAGs, all are instantiated by default.
17114 Usage: $0 [OPTION]... [TAG]...
17116 -h, --help print this help, then exit
17117 -V, --version print version number and configuration settings, then exit
17118 --config print configuration, then exit
17119 -q, --quiet, --silent
17120 do not print progress messages
17121 -d, --debug don't remove temporary files
17122 --recheck update $as_me by reconfiguring in the same conditions
17123 --file=FILE[:TEMPLATE]
17124 instantiate the configuration file FILE
17125 --header=FILE[:TEMPLATE]
17126 instantiate the configuration header FILE
17128 Configuration files:
17131 Configuration headers:
17134 Configuration commands:
17137 Report bugs to <http://dnscrypt.org>."
17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17143 dnscrypt-proxy config.status 1.4.0
17144 configured by $0, generated by GNU Autoconf 2.69,
17145 with options \\"\$ac_cs_config\\"
17147 Copyright (C) 2012 Free Software Foundation, Inc.
17148 This config.status script is free software; the Free Software Foundation
17149 gives unlimited permission to copy, distribute and modify it."
17156 test -n "\$AWK" || AWK=awk
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17160 # The default lists apply if the user does not specify any file.
17166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17167 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17183 # Handling of the options.
17184 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17186 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17187 $as_echo "$ac_cs_version"; exit ;;
17188 --config | --confi | --conf | --con | --co | --c )
17189 $as_echo "$ac_cs_config"; exit ;;
17190 --debug | --debu | --deb | --de | --d | -d )
17192 --file | --fil | --fi | --f )
17195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17196 '') as_fn_error $? "missing file argument" ;;
17198 as_fn_append CONFIG_FILES " '$ac_optarg'"
17199 ac_need_defaults=false;;
17200 --header | --heade | --head | --hea )
17203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17205 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17206 ac_need_defaults=false;;
17208 # Conflict between --help and --header
17209 as_fn_error $? "ambiguous option: \`$1'
17210 Try \`$0 --help' for more information.";;
17211 --help | --hel | -h )
17212 $as_echo "$ac_cs_usage"; exit ;;
17213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17217 # This is an error.
17218 -*) as_fn_error $? "unrecognized option: \`$1'
17219 Try \`$0 --help' for more information." ;;
17221 *) as_fn_append ac_config_targets " $1"
17222 ac_need_defaults=false ;;
17228 ac_configure_extra_args=
17230 if $ac_cs_silent; then
17232 ac_configure_extra_args="$ac_configure_extra_args --silent"
17236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17237 if \$ac_cs_recheck; then
17238 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17240 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17241 CONFIG_SHELL='$SHELL'
17242 export CONFIG_SHELL
17247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
17252 @%:@@%:@ Running $as_me. @%:@@%:@
17258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17262 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17265 # The HP-UX ksh and POSIX shell print the target directory to stdout
17266 # if CDPATH is set.
17267 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17269 sed_quote_subst='$sed_quote_subst'
17270 double_quote_subst='$double_quote_subst'
17271 delay_variable_subst='$delay_variable_subst'
17272 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17273 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17274 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17275 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17276 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17277 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17278 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17279 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17280 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17281 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17282 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17283 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17284 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17285 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17286 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17287 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17288 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17289 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17290 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17291 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17292 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17293 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17294 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17295 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17296 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17297 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17298 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17299 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17300 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17301 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17302 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17303 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17304 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17305 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17306 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17307 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17308 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17309 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17310 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17311 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17312 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17313 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17314 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17315 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17316 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17317 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17318 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17319 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17320 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17321 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17322 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17323 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17324 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17325 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17326 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17327 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17328 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"`'
17329 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17330 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17331 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17332 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17333 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17334 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17335 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17336 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17337 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17338 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17339 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17340 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17341 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17342 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17343 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17344 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17345 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17346 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17347 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17348 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17349 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17350 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17351 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17352 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17353 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17354 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17355 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17356 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17357 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17358 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17359 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17360 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17361 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17362 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17363 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17364 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17365 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17366 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17367 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17368 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17369 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17370 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17371 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17372 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17373 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17374 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17375 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17376 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17377 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17378 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17379 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17380 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17381 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17382 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17383 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17384 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17385 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17386 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17387 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17388 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17389 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17390 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17391 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17392 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17393 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17394 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17395 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17396 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17397 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17398 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17399 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17400 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17401 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17404 LTCFLAGS='$LTCFLAGS'
17405 compiler='$compiler_DEFAULT'
17407 # A function that is used when there is no print builtin or printf.
17408 func_fallback_echo ()
17410 eval 'cat <<_LTECHO_EOF
17415 # Quote evaled strings.
17430 deplibs_check_method \
17435 sharedlib_from_linklib_cmd \
17438 archiver_list_spec \
17444 lt_cv_sys_global_symbol_pipe \
17445 lt_cv_sys_global_symbol_to_cdecl \
17446 lt_cv_sys_global_symbol_to_c_name_address \
17447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17448 nm_file_list_spec \
17449 lt_prog_compiler_no_builtin_flag \
17450 lt_prog_compiler_pic \
17451 lt_prog_compiler_wl \
17452 lt_prog_compiler_static \
17453 lt_cv_prog_compiler_c_o \
17462 export_dynamic_flag_spec \
17463 whole_archive_flag_spec \
17464 compiler_needs_object \
17466 allow_undefined_flag \
17467 no_undefined_flag \
17468 hardcode_libdir_flag_spec \
17469 hardcode_libdir_separator \
17473 variables_saved_for_relink \
17475 library_names_spec \
17477 install_override_mode \
17481 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17482 *[\\\\\\\`\\"\\\$]*)
17483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17491 # Double-quote double-evaled strings.
17492 for var in reload_cmds \
17493 old_postinstall_cmds \
17494 old_postuninstall_cmds \
17496 extract_expsyms_cmds \
17497 old_archive_from_new_cmds \
17498 old_archive_from_expsyms_cmds \
17500 archive_expsym_cmds \
17502 module_expsym_cmds \
17503 export_symbols_cmds \
17507 postuninstall_cmds \
17509 sys_lib_search_path_spec \
17510 sys_lib_dlsearch_path_spec; do
17511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17512 *[\\\\\\\`\\"\\\$]*)
17513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17521 ac_aux_dir='$ac_aux_dir'
17522 xsi_shell='$xsi_shell'
17523 lt_shell_append='$lt_shell_append'
17525 # See if we are running on zsh, and set the options which allow our
17526 # commands through without removal of \ escapes INIT.
17527 if test -n "\${ZSH_VERSION+set}" ; then
17528 setopt NO_GLOB_SUBST
17534 TIMESTAMP='$TIMESTAMP'
17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17545 # Handling of arguments.
17546 for ac_config_target in $ac_config_targets
17548 case $ac_config_target in
17549 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17550 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17551 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17552 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17553 "dist-build/Makefile") CONFIG_FILES="$CONFIG_FILES dist-build/Makefile" ;;
17554 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17555 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17556 "src/hostip/Makefile") CONFIG_FILES="$CONFIG_FILES src/hostip/Makefile" ;;
17557 "src/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/proxy/Makefile" ;;
17558 "src/ext/Makefile") CONFIG_FILES="$CONFIG_FILES src/ext/Makefile" ;;
17559 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17560 "src/include/dnscrypt/version.h") CONFIG_FILES="$CONFIG_FILES src/include/dnscrypt/version.h" ;;
17561 "src/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
17562 "src/plugins/example/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example/Makefile" ;;
17563 "src/plugins/example-logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-logging/Makefile" ;;
17564 "src/plugins/example-ldns-aaaa-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-aaaa-blocking/Makefile" ;;
17565 "src/plugins/example-ldns-blocking/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-blocking/Makefile" ;;
17566 "src/plugins/example-ldns-opendns-deviceid/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-deviceid/Makefile" ;;
17567 "src/plugins/example-ldns-opendns-set-client-ip/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/example-ldns-opendns-set-client-ip/Makefile" ;;
17568 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17570 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17575 # If the user did not use the arguments to specify the items to instantiate,
17576 # then the envvar interface is used. Set only those that are not.
17577 # We use the long form for the default assignment because of an extremely
17578 # bizarre bug on SunOS 4.1.3.
17579 if $ac_need_defaults; then
17580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17581 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17582 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17585 # Have a temporary directory for convenience. Make it in the build tree
17586 # simply because there is no reason against having it here, and in addition,
17587 # creating and moving files from /tmp can sometimes cause problems.
17588 # Hook for its removal unless debugging.
17589 # Note that there is a small window in which the directory will not be cleaned:
17590 # after its creation but before its name has been assigned to `$tmp'.
17594 trap 'exit_status=$?
17595 : "${ac_tmp:=$tmp}"
17596 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17598 trap 'as_fn_exit 1' 1 2 13 15
17600 # Create a (secure) tmp directory for tmp files.
17603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17607 tmp=./conf$$-$RANDOM
17608 (umask 077 && mkdir "$tmp")
17609 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17612 # Set up the scripts for CONFIG_FILES section.
17613 # No need to generate them if there are no CONFIG_FILES.
17614 # This happens for instance with `./config.status config.h'.
17615 if test -n "$CONFIG_FILES"; then
17618 ac_cr=`echo X | tr X '\015'`
17619 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17620 # But we know of no other shell where ac_cr would be empty at this
17621 # point, so we can use a bashism as a fallback.
17622 if test "x$ac_cr" = x; then
17623 eval ac_cr=\$\'\\r\'
17625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17629 ac_cs_awk_cr=$ac_cr
17632 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17637 echo "cat >conf$$subs.awk <<_ACEOF" &&
17638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17640 } >conf$$subs.sh ||
17641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17642 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17644 for ac_last_try in false false false false false :; do
17645 . ./conf$$subs.sh ||
17646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17649 if test $ac_delim_n = $ac_delim_num; then
17651 elif $ac_last_try; then
17652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17657 rm -f conf$$subs.sh
17659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17660 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17664 s/^/S["/; s/!.*/"]=/
17674 s/\(.\{148\}\)..*/\1/
17676 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17688 s/\(.\{148\}\)..*/\1/
17690 s/["\\]/\\&/g; s/^/"/; s/$/"/
17694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17699 ' <conf$$subs.awk | sed '
17704 ' >>$CONFIG_STATUS || ac_write_fail=1
17705 rm -f conf$$subs.awk
17706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17708 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17709 for (key in S) S_is_set[key] = 1
17715 nfields = split(line, field, "@")
17717 len = length(field[1])
17718 for (i = 2; i < nfields; i++) {
17720 keylen = length(key)
17721 if (S_is_set[key]) {
17723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17724 len += length(value) + length(field[++i])
17735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17736 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17740 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17741 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17744 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17745 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17746 # trailing colons and then remove the whole line if VPATH becomes empty
17747 # (actually we leave an empty line to preserve line numbers).
17748 if test "x$srcdir" = x.; then
17749 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 fi # test -n "$CONFIG_FILES"
17770 # Set up the scripts for CONFIG_HEADERS section.
17771 # No need to generate them if there are no CONFIG_HEADERS.
17772 # This happens for instance with `./config.status Makefile'.
17773 if test -n "$CONFIG_HEADERS"; then
17774 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17778 # Transform confdefs.h into an awk script `defines.awk', embedded as
17779 # here-document in config.status, that substitutes the proper values into
17780 # config.h.in to produce config.h.
17782 # Create a delimiter string that does not exist in confdefs.h, to ease
17783 # handling of long lines.
17785 for ac_last_try in false false :; do
17786 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17787 if test -z "$ac_tt"; then
17789 elif $ac_last_try; then
17790 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17796 # For the awk script, D is an array of macro values keyed by name,
17797 # likewise P contains macro parameters if any. Preserve backslash
17798 # newline sequences.
17800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17802 s/.\{148\}/&'"$ac_delim"'/g
17805 s/^[ ]*#[ ]*define[ ][ ]*/ /
17812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17819 D["\1"]=" \3\\\\\\n"\\/p
17821 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17826 s/.\{148\}/&'"$ac_delim"'/g
17831 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17834 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17836 ' <confdefs.h | sed '
17837 s/'"$ac_delim"'/"\\\
17838 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17841 for (key in D) D_is_set[key] = 1
17844 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17846 split(line, arg, " ")
17847 if (arg[1] == "#") {
17851 defundef = substr(arg[1], 2)
17854 split(mac1, mac2, "(") #)
17856 prefix = substr(line, 1, index(line, defundef) - 1)
17857 if (D_is_set[macro]) {
17858 # Preserve the white space surrounding the "#".
17859 print prefix "define", macro P[macro] D[macro]
17862 # Replace #undef with comments. This is necessary, for example,
17863 # in the case of _POSIX_SOURCE, which is predefined and required
17864 # on some systems where configure will not decide to define it.
17865 if (defundef == "undef") {
17866 print "/*", prefix defundef, macro, "*/"
17874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17875 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17876 fi # test -n "$CONFIG_HEADERS"
17879 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17884 :[FHLC]) ac_mode=$ac_tag; continue;;
17886 case $ac_mode$ac_tag in
17888 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17889 :[FH]-) ac_tag=-:-;;
17890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17907 -) ac_f="$ac_tmp/stdin";;
17908 *) # Look for the file first in the build tree, then in the source tree
17909 # (if the path is not absolute). The absolute path cannot be DOS-style,
17910 # because $ac_f cannot contain `:'.
17914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17916 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17919 as_fn_append ac_file_inputs " '$ac_f'"
17922 # Let's still pretend it is `configure' which instantiates (i.e., don't
17923 # use $as_me), people would be surprised to read:
17924 # /* config.h. Generated by config.status. */
17925 configure_input='Generated from '`
17926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17928 if test x"$ac_file" != x-; then
17929 configure_input="$ac_file. $configure_input"
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17931 $as_echo "$as_me: creating $ac_file" >&6;}
17933 # Neutralize special characters interpreted by sed in replacement strings.
17934 case $configure_input in #(
17935 *\&* | *\|* | *\\* )
17936 ac_sed_conf_input=`$as_echo "$configure_input" |
17937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17938 *) ac_sed_conf_input=$configure_input;;
17942 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17948 ac_dir=`$as_dirname -- "$ac_file" ||
17949 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17950 X"$ac_file" : 'X\(//\)[^/]' \| \
17951 X"$ac_file" : 'X\(//\)$' \| \
17952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17953 $as_echo X"$ac_file" |
17954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17958 /^X\(\/\/\)[^/].*/{
17971 as_dir="$ac_dir"; as_fn_mkdir_p
17975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17978 # A ".." for each directory in $ac_dir_suffix.
17979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17980 case $ac_top_builddir_sub in
17981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17985 ac_abs_top_builddir=$ac_pwd
17986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17987 # for backward compatibility:
17988 ac_top_builddir=$ac_top_build_prefix
17991 .) # We are building in place.
17993 ac_top_srcdir=$ac_top_builddir_sub
17994 ac_abs_top_srcdir=$ac_pwd ;;
17995 [\\/]* | ?:[\\/]* ) # Absolute name.
17996 ac_srcdir=$srcdir$ac_dir_suffix;
17997 ac_top_srcdir=$srcdir
17998 ac_abs_top_srcdir=$srcdir ;;
17999 *) # Relative name.
18000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18001 ac_top_srcdir=$ac_top_build_prefix$srcdir
18002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18017 ac_MKDIR_P=$MKDIR_P
18019 [\\/$]* | ?:[\\/]* ) ;;
18020 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025 # If the template does not know about datarootdir, expand it.
18026 # FIXME: This hack should be removed a few years after 2.60.
18027 ac_datarootdir_hack=; ac_datarootdir_seen=
18038 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18039 *datarootdir*) ac_datarootdir_seen=yes;;
18040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18042 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18045 ac_datarootdir_hack='
18046 s&@datadir@&$datadir&g
18047 s&@docdir@&$docdir&g
18048 s&@infodir@&$infodir&g
18049 s&@localedir@&$localedir&g
18050 s&@mandir@&$mandir&g
18051 s&\\\${datarootdir}&$datarootdir&g' ;;
18055 # Neutralize VPATH when `$srcdir' = `.'.
18056 # Shell code in configure.ac might set extrasub.
18057 # FIXME: do we really want to maintain this feature?
18058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18059 ac_sed_extra="$ac_vpsub
18062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18065 s|@configure_input@|$ac_sed_conf_input|;t t
18066 s&@top_builddir@&$ac_top_builddir_sub&;t t
18067 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18068 s&@srcdir@&$ac_srcdir&;t t
18069 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18070 s&@top_srcdir@&$ac_top_srcdir&;t t
18071 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18072 s&@builddir@&$ac_builddir&;t t
18073 s&@abs_builddir@&$ac_abs_builddir&;t t
18074 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18075 s&@INSTALL@&$ac_INSTALL&;t t
18076 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18077 $ac_datarootdir_hack
18079 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18082 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18087 which seems to be undefined. Please make sure it is defined" >&5
18088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18089 which seems to be undefined. Please make sure it is defined" >&2;}
18091 rm -f "$ac_tmp/stdin"
18093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18102 if test x"$ac_file" != x-; then
18104 $as_echo "/* $configure_input */" \
18105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18106 } >"$ac_tmp/config.h" \
18107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18113 mv "$ac_tmp/config.h" "$ac_file" \
18114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18117 $as_echo "/* $configure_input */" \
18118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18119 || as_fn_error $? "could not create -" "$LINENO" 5
18121 # Compute "$ac_file"'s index in $config_headers.
18124 for _am_header in $config_headers :; do
18125 case $_am_header in
18126 $_am_arg | $_am_arg:* )
18129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18132 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18133 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$_am_arg" : 'X\(//\)[^/]' \| \
18135 X"$_am_arg" : 'X\(//\)$' \| \
18136 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$_am_arg" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18142 /^X\(\/\/\)[^/].*/{
18154 s/.*/./; q'`/stamp-h$_am_stamp_count
18157 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18158 $as_echo "$as_me: executing $ac_file commands" >&6;}
18163 case $ac_file$ac_mode in
18164 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18165 # Older Autoconf quotes --file arguments for eval, but not when files
18166 # are listed without --file. Let's play safe and only enable the eval
18167 # if we detect the quoting.
18168 case $CONFIG_FILES in
18169 *\'*) eval set x "$CONFIG_FILES" ;;
18170 *) set x $CONFIG_FILES ;;
18175 # Strip MF so we end up with the name of the file.
18176 mf=`echo "$mf" | sed -e 's/:.*$//'`
18177 # Check whether this is an Automake generated Makefile or not.
18178 # We used to match only the files named 'Makefile.in', but
18179 # some people rename them; so instead we look at the file content.
18180 # Grep'ing the first line is not enough: some people post-process
18181 # each Makefile.in and add a new line on top of each file to say so.
18182 # Grep'ing the whole file is not good either: AIX grep has a line
18183 # limit of 2048, but all sed's we know have understand at least 4000.
18184 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18185 dirpart=`$as_dirname -- "$mf" ||
18186 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18187 X"$mf" : 'X\(//\)[^/]' \| \
18188 X"$mf" : 'X\(//\)$' \| \
18189 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18195 /^X\(\/\/\)[^/].*/{
18211 # Extract the definition of DEPDIR, am__include, and am__quote
18212 # from the Makefile without running 'make'.
18213 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18214 test -z "$DEPDIR" && continue
18215 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18216 test -z "$am__include" && continue
18217 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18218 # Find all dependency output files, they are included files with
18219 # $(DEPDIR) in their names. We invoke sed twice because it is the
18220 # simplest approach to changing $(DEPDIR) to its actual value in the
18222 for file in `sed -n "
18223 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18225 # Make sure the directory exists.
18226 test -f "$dirpart/$file" && continue
18227 fdir=`$as_dirname -- "$file" ||
18228 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18229 X"$file" : 'X\(//\)[^/]' \| \
18230 X"$file" : 'X\(//\)$' \| \
18231 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18232 $as_echo X"$file" |
18233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18237 /^X\(\/\/\)[^/].*/{
18250 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18251 # echo "creating $dirpart/$file"
18252 echo '# dummy' > "$dirpart/$file"
18259 # See if we are running on zsh, and set the options which allow our
18260 # commands through without removal of \ escapes.
18261 if test -n "${ZSH_VERSION+set}" ; then
18262 setopt NO_GLOB_SUBST
18265 cfgfile="${ofile}T"
18266 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18269 cat <<_LT_EOF >> "$cfgfile"
18272 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18273 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18277 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18278 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18280 # Written by Gordon Matzigkeit, 1996
18282 # This file is part of GNU Libtool.
18284 # GNU Libtool is free software; you can redistribute it and/or
18285 # modify it under the terms of the GNU General Public License as
18286 # published by the Free Software Foundation; either version 2 of
18287 # the License, or (at your option) any later version.
18289 # As a special exception to the GNU General Public License,
18290 # if you distribute this file as part of a program or library that
18291 # is built using GNU Libtool, you may include this file under the
18292 # same distribution terms that you use for the rest of that program.
18294 # GNU Libtool is distributed in the hope that it will be useful,
18295 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18296 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18297 # GNU General Public License for more details.
18299 # You should have received a copy of the GNU General Public License
18300 # along with GNU Libtool; see the file COPYING. If not, a copy
18301 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18302 # obtained by writing to the Free Software Foundation, Inc.,
18303 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18306 # The names of the tagged configurations supported by this script.
18309 # ### BEGIN LIBTOOL CONFIG
18311 # Which release of libtool.m4 was used?
18312 macro_version=$macro_version
18313 macro_revision=$macro_revision
18315 # Whether or not to build shared libraries.
18316 build_libtool_libs=$enable_shared
18318 # Whether or not to build static libraries.
18319 build_old_libs=$enable_static
18321 # What type of objects to build.
18324 # Whether or not to optimize for fast installation.
18325 fast_install=$enable_fast_install
18327 # Shell to use when invoking shell scripts.
18330 # An echo program that protects backslashes.
18333 # The PATH separator for the build system.
18334 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18337 host_alias=$host_alias
18341 # The build system.
18342 build_alias=$build_alias
18346 # A sed program that does not truncate output.
18349 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18350 Xsed="\$SED -e 1s/^X//"
18352 # A grep program that handles long lines.
18358 # A literal string matcher.
18361 # A BSD- or MS-compatible name lister.
18364 # Whether we need soft or hard links.
18367 # What is the maximum length of a command?
18368 max_cmd_len=$max_cmd_len
18370 # Object file suffix (normally "o").
18373 # Executable file suffix (normally "").
18376 # whether the shell understands "unset".
18379 # turn spaces into newlines.
18382 # turn newlines into spaces.
18385 # convert \$build file names to \$host format.
18386 to_host_file_cmd=$lt_cv_to_host_file_cmd
18388 # convert \$build files to toolchain format.
18389 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18391 # An object symbol dumper.
18392 OBJDUMP=$lt_OBJDUMP
18394 # Method to check whether dependent libraries are shared objects.
18395 deplibs_check_method=$lt_deplibs_check_method
18397 # Command to use when deplibs_check_method = "file_magic".
18398 file_magic_cmd=$lt_file_magic_cmd
18400 # How to find potential files when deplibs_check_method = "file_magic".
18401 file_magic_glob=$lt_file_magic_glob
18403 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18404 want_nocaseglob=$lt_want_nocaseglob
18406 # DLL creation program.
18407 DLLTOOL=$lt_DLLTOOL
18409 # Command to associate shared and link libraries.
18410 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18415 # Flags to create an archive.
18416 AR_FLAGS=$lt_AR_FLAGS
18418 # How to feed a file listing to the archiver.
18419 archiver_list_spec=$lt_archiver_list_spec
18421 # A symbol stripping program.
18424 # Commands used to install an old-style archive.
18426 old_postinstall_cmds=$lt_old_postinstall_cmds
18427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18429 # Whether to use a lock for old archive extraction.
18430 lock_old_archive_extraction=$lock_old_archive_extraction
18435 # LTCC compiler flags.
18436 LTCFLAGS=$lt_CFLAGS
18438 # Take the output of nm and produce a listing of raw symbols and C names.
18439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18441 # Transform the output of nm in a proper C declaration.
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18444 # Transform the output of nm in a C name address pair.
18445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18447 # Transform the output of nm in a C name address pair when lib prefix is needed.
18448 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18450 # Specify filename containing input files for \$NM.
18451 nm_file_list_spec=$lt_nm_file_list_spec
18453 # The root where to search for dependent libraries,and in which our libraries should be installed.
18454 lt_sysroot=$lt_sysroot
18456 # The name of the directory that contains temporary libtool files.
18459 # Used to examine libraries when file_magic_cmd begins with "file".
18460 MAGIC_CMD=$MAGIC_CMD
18462 # Must we lock files when doing compilation?
18463 need_locks=$lt_need_locks
18466 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18468 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18469 DSYMUTIL=$lt_DSYMUTIL
18471 # Tool to change global to local symbols on Mac OS X.
18474 # Tool to manipulate fat objects and archives on Mac OS X.
18477 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18480 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18481 OTOOL64=$lt_OTOOL64
18483 # Old archive suffix (normally "a").
18486 # Shared library suffix (normally ".so").
18487 shrext_cmds=$lt_shrext_cmds
18489 # The commands to extract the exported symbol list from a shared archive.
18490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18492 # Variables whose values should be saved in libtool wrapper scripts and
18493 # restored at link time.
18494 variables_saved_for_relink=$lt_variables_saved_for_relink
18496 # Do we need the "lib" prefix for modules?
18497 need_lib_prefix=$need_lib_prefix
18499 # Do we need a version for libraries?
18500 need_version=$need_version
18502 # Library versioning type.
18503 version_type=$version_type
18505 # Shared library runtime path variable.
18506 runpath_var=$runpath_var
18508 # Shared library path variable.
18509 shlibpath_var=$shlibpath_var
18511 # Is shlibpath searched before the hard-coded library search path?
18512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18514 # Format of library name prefix.
18515 libname_spec=$lt_libname_spec
18517 # List of archive names. First name is the real one, the rest are links.
18518 # The last name is the one that the linker finds with -lNAME
18519 library_names_spec=$lt_library_names_spec
18521 # The coded name of the library, if different from the real name.
18522 soname_spec=$lt_soname_spec
18524 # Permission mode override for installation of shared libraries.
18525 install_override_mode=$lt_install_override_mode
18527 # Command to use after installation of a shared archive.
18528 postinstall_cmds=$lt_postinstall_cmds
18530 # Command to use after uninstallation of a shared archive.
18531 postuninstall_cmds=$lt_postuninstall_cmds
18533 # Commands used to finish a libtool library installation in a directory.
18534 finish_cmds=$lt_finish_cmds
18536 # As "finish_cmds", except a single script fragment to be evaled but
18538 finish_eval=$lt_finish_eval
18540 # Whether we should hardcode library paths into libraries.
18541 hardcode_into_libs=$hardcode_into_libs
18543 # Compile-time system search path for libraries.
18544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18546 # Run-time system search path for libraries.
18547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18549 # Whether dlopen is supported.
18550 dlopen_support=$enable_dlopen
18552 # Whether dlopen of programs is supported.
18553 dlopen_self=$enable_dlopen_self
18555 # Whether dlopen of statically linked programs is supported.
18556 dlopen_self_static=$enable_dlopen_self_static
18558 # Commands to strip libraries.
18559 old_striplib=$lt_old_striplib
18560 striplib=$lt_striplib
18563 # The linker used to build libraries.
18566 # How to create reloadable object files.
18567 reload_flag=$lt_reload_flag
18568 reload_cmds=$lt_reload_cmds
18570 # Commands used to build an old-style archive.
18571 old_archive_cmds=$lt_old_archive_cmds
18573 # A language specific compiler.
18576 # Is the compiler the GNU compiler?
18579 # Compiler flag to turn off builtin functions.
18580 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18582 # Additional compiler flags for building library objects.
18583 pic_flag=$lt_lt_prog_compiler_pic
18585 # How to pass a linker flag through the compiler.
18586 wl=$lt_lt_prog_compiler_wl
18588 # Compiler flag to prevent dynamic linking.
18589 link_static_flag=$lt_lt_prog_compiler_static
18591 # Does compiler simultaneously support -c and -o options?
18592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18594 # Whether or not to add -lc for building shared libraries.
18595 build_libtool_need_lc=$archive_cmds_need_lc
18597 # Whether or not to disallow shared libs when runtime libs are static.
18598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18600 # Compiler flag to allow reflexive dlopens.
18601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18603 # Compiler flag to generate shared objects directly from archives.
18604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18606 # Whether the compiler copes with passing no objects directly.
18607 compiler_needs_object=$lt_compiler_needs_object
18609 # Create an old-style archive from a shared archive.
18610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18612 # Create a temporary old-style archive to link instead of a shared archive.
18613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18615 # Commands used to build a shared archive.
18616 archive_cmds=$lt_archive_cmds
18617 archive_expsym_cmds=$lt_archive_expsym_cmds
18619 # Commands used to build a loadable module if different from building
18620 # a shared archive.
18621 module_cmds=$lt_module_cmds
18622 module_expsym_cmds=$lt_module_expsym_cmds
18624 # Whether we are building with GNU ld or not.
18625 with_gnu_ld=$lt_with_gnu_ld
18627 # Flag that allows shared libraries with undefined symbols to be built.
18628 allow_undefined_flag=$lt_allow_undefined_flag
18630 # Flag that enforces no undefined symbols.
18631 no_undefined_flag=$lt_no_undefined_flag
18633 # Flag to hardcode \$libdir into a binary during linking.
18634 # This must work even if \$libdir does not exist
18635 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18637 # Whether we need a single "-rpath" flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18641 # DIR into the resulting binary.
18642 hardcode_direct=$hardcode_direct
18644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18645 # DIR into the resulting binary and the resulting library dependency is
18646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18647 # library is relocated.
18648 hardcode_direct_absolute=$hardcode_direct_absolute
18650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18651 # into the resulting binary.
18652 hardcode_minus_L=$hardcode_minus_L
18654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18655 # into the resulting binary.
18656 hardcode_shlibpath_var=$hardcode_shlibpath_var
18658 # Set to "yes" if building a shared library automatically hardcodes DIR
18659 # into the library and all subsequent libraries and executables linked
18661 hardcode_automatic=$hardcode_automatic
18663 # Set to yes if linker adds runtime paths of dependent libraries
18664 # to runtime path list.
18665 inherit_rpath=$inherit_rpath
18667 # Whether libtool must link a program against all its dependency libraries.
18668 link_all_deplibs=$link_all_deplibs
18670 # Set to "yes" if exported symbols are required.
18671 always_export_symbols=$always_export_symbols
18673 # The commands to list exported symbols.
18674 export_symbols_cmds=$lt_export_symbols_cmds
18676 # Symbols that should not be listed in the preloaded symbols.
18677 exclude_expsyms=$lt_exclude_expsyms
18679 # Symbols that must always be exported.
18680 include_expsyms=$lt_include_expsyms
18682 # Commands necessary for linking programs (against libraries) with templates.
18683 prelink_cmds=$lt_prelink_cmds
18685 # Commands necessary for finishing linking programs.
18686 postlink_cmds=$lt_postlink_cmds
18688 # Specify filename containing input files.
18689 file_list_spec=$lt_file_list_spec
18691 # How to hardcode a shared library path into an executable.
18692 hardcode_action=$hardcode_action
18694 # ### END LIBTOOL CONFIG
18700 cat <<\_LT_EOF >> "$cfgfile"
18701 # AIX sometimes has problems with the GCC collect2 program. For some
18702 # reason, if we set the COLLECT_NAMES environment variable, the problems
18703 # vanish in a puff of smoke.
18704 if test "X${COLLECT_NAMES+set}" != Xset; then
18706 export COLLECT_NAMES
18713 ltmain="$ac_aux_dir/ltmain.sh"
18716 # We use sed instead of cat because bash on DJGPP gets confused if
18717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18718 # text mode, it properly converts lines to CR/LF. This bash problem
18719 # is reportedly fixed, but why not run on old versions too?
18720 sed '$q' "$ltmain" >> "$cfgfile" \
18721 || (rm -f "$cfgfile"; exit 1)
18723 if test x"$xsi_shell" = xyes; then
18724 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18728 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18729 \ * ) func_dirname_result="${3}" ;;\
18731 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18732 && mv -f "$cfgfile.tmp" "$cfgfile" \
18733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18734 test 0 -eq $? || _lt_function_replace_fail=:
18737 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18740 \ func_basename_result="${1##*/}"\
18741 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18742 && mv -f "$cfgfile.tmp" "$cfgfile" \
18743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18744 test 0 -eq $? || _lt_function_replace_fail=:
18747 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18748 func_dirname_and_basename ()\
18751 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18752 \ * ) func_dirname_result="${3}" ;;\
18754 \ func_basename_result="${1##*/}"\
18755 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18756 && mv -f "$cfgfile.tmp" "$cfgfile" \
18757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18758 test 0 -eq $? || _lt_function_replace_fail=:
18761 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18764 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18765 \ # positional parameters, so assign one to ordinary parameter first.\
18766 \ func_stripname_result=${3}\
18767 \ func_stripname_result=${func_stripname_result#"${1}"}\
18768 \ func_stripname_result=${func_stripname_result%"${2}"}\
18769 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18770 && mv -f "$cfgfile.tmp" "$cfgfile" \
18771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18772 test 0 -eq $? || _lt_function_replace_fail=:
18775 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18776 func_split_long_opt ()\
18778 \ func_split_long_opt_name=${1%%=*}\
18779 \ func_split_long_opt_arg=${1#*=}\
18780 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18781 && mv -f "$cfgfile.tmp" "$cfgfile" \
18782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18783 test 0 -eq $? || _lt_function_replace_fail=:
18786 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18787 func_split_short_opt ()\
18789 \ func_split_short_opt_arg=${1#??}\
18790 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18791 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18792 && mv -f "$cfgfile.tmp" "$cfgfile" \
18793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18794 test 0 -eq $? || _lt_function_replace_fail=:
18797 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18801 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18802 \ *) func_lo2o_result=${1} ;;\
18804 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18805 && mv -f "$cfgfile.tmp" "$cfgfile" \
18806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18807 test 0 -eq $? || _lt_function_replace_fail=:
18810 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18813 func_xform_result=${1%.*}.lo\
18814 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18815 && mv -f "$cfgfile.tmp" "$cfgfile" \
18816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18817 test 0 -eq $? || _lt_function_replace_fail=:
18820 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18823 func_arith_result=$(( $* ))\
18824 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18825 && mv -f "$cfgfile.tmp" "$cfgfile" \
18826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18827 test 0 -eq $? || _lt_function_replace_fail=:
18830 sed -e '/^func_len ()$/,/^} # func_len /c\
18833 func_len_result=${#1}\
18834 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18835 && mv -f "$cfgfile.tmp" "$cfgfile" \
18836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18837 test 0 -eq $? || _lt_function_replace_fail=:
18841 if test x"$lt_shell_append" = xyes; then
18842 sed -e '/^func_append ()$/,/^} # func_append /c\
18845 eval "${1}+=\\${2}"\
18846 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18847 && mv -f "$cfgfile.tmp" "$cfgfile" \
18848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18849 test 0 -eq $? || _lt_function_replace_fail=:
18852 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18853 func_append_quoted ()\
18855 \ func_quote_for_eval "${2}"\
18856 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18857 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18858 && mv -f "$cfgfile.tmp" "$cfgfile" \
18859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18863 # Save a `func_append' function call where possible by direct use of '+='
18864 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18865 && mv -f "$cfgfile.tmp" "$cfgfile" \
18866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18869 # Save a `func_append' function call even when '+=' is not available
18870 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18871 && mv -f "$cfgfile.tmp" "$cfgfile" \
18872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18873 test 0 -eq $? || _lt_function_replace_fail=:
18876 if test x"$_lt_function_replace_fail" = x":"; then
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18878 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18882 mv -f "$cfgfile" "$ofile" ||
18883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18894 ac_clean_files=$ac_clean_files_save
18896 test $ac_write_fail = 0 ||
18897 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18900 # configure is writing to config.log, and then calls config.status.
18901 # config.status does its own redirection, appending to config.log.
18902 # Unfortunately, on DOS this fails, as config.log is still kept open
18903 # by configure, so config.status won't be able to write to it; its
18904 # output is simply discarded. So we exec the FD to /dev/null,
18905 # effectively closing config.log, so it can be properly (re)opened and
18906 # appended to by config.status. When coming back to configure, we
18907 # need to make the FD available again.
18908 if test "$no_create" != yes; then
18910 ac_config_status_args=
18911 test "$silent" = yes &&
18912 ac_config_status_args="$ac_config_status_args --quiet"
18914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18917 # would make configure fail if this is the last instruction.
18918 $ac_cs_success || as_fn_exit 1
18922 # CONFIG_SUBDIRS section.
18924 if test "$no_recursion" != yes; then
18926 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18927 # so they do not pile up.
18928 ac_sub_configure_args=
18930 eval "set x $ac_configure_args"
18934 if test -n "$ac_prev"; then
18939 -cache-file | --cache-file | --cache-fil | --cache-fi \
18940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18941 ac_prev=cache_file ;;
18942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18946 --config-cache | -C)
18948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18956 --disable-option-checking)
18960 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18962 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18966 # Always prepend --prefix to ensure using the same prefix
18967 # in subdir configurations.
18968 ac_arg="--prefix=$prefix"
18970 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18972 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18975 if test "$silent" = yes; then
18976 ac_sub_configure_args="--silent $ac_sub_configure_args"
18979 # Always prepend --disable-option-checking to silence warnings, since
18980 # different subdirs can have different --enable and --with options.
18981 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18984 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18986 # Do not complain, so a configure script can configure whichever
18987 # parts of a large source tree are present.
18988 test -d "$srcdir/$ac_dir" || continue
18990 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18991 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18992 $as_echo "$ac_msg" >&6
18993 as_dir="$ac_dir"; as_fn_mkdir_p
18997 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18999 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19000 # A ".." for each directory in $ac_dir_suffix.
19001 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19002 case $ac_top_builddir_sub in
19003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19007 ac_abs_top_builddir=$ac_pwd
19008 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19009 # for backward compatibility:
19010 ac_top_builddir=$ac_top_build_prefix
19013 .) # We are building in place.
19015 ac_top_srcdir=$ac_top_builddir_sub
19016 ac_abs_top_srcdir=$ac_pwd ;;
19017 [\\/]* | ?:[\\/]* ) # Absolute name.
19018 ac_srcdir=$srcdir$ac_dir_suffix;
19019 ac_top_srcdir=$srcdir
19020 ac_abs_top_srcdir=$srcdir ;;
19021 *) # Relative name.
19022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19023 ac_top_srcdir=$ac_top_build_prefix$srcdir
19024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19026 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19031 # Check for guested configure; otherwise get Cygnus style configure.
19032 if test -f "$ac_srcdir/configure.gnu"; then
19033 ac_sub_configure=$ac_srcdir/configure.gnu
19034 elif test -f "$ac_srcdir/configure"; then
19035 ac_sub_configure=$ac_srcdir/configure
19036 elif test -f "$ac_srcdir/configure.in"; then
19037 # This should be Cygnus configure.
19038 ac_sub_configure=$ac_aux_dir/configure
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19041 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19045 # The recursion is here.
19046 if test -n "$ac_sub_configure"; then
19047 # Make the cache file name correct relative to the subdirectory.
19048 case $cache_file in
19049 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19050 *) # Relative name.
19051 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19055 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19056 # The eval makes quoting arguments work.
19057 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19058 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19059 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19067 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}