2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for ldns 1.8.3.
5 # Report bugs to <libdns@nlnetlabs.nl>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: libdns@nlnetlabs.nl about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
623 PACKAGE_TARNAME='libdns'
624 PACKAGE_VERSION='1.8.3'
625 PACKAGE_STRING='ldns 1.8.3'
626 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
629 ac_unique_file="packet.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
663 ac_subst_vars='LTLIBOBJS
665 ldns_build_config_have_attr_unused
666 ldns_build_config_have_attr_format
667 ldns_build_config_have_ssl
670 LDNS_TRUST_ANCHOR_FILE
672 ldns_build_config_have_b32_pton
673 ldns_build_config_have_b32_ntop
675 ldns_build_config_have_socklen_t
680 ldns_build_config_have_inttypes_h
686 ldns_build_config_use_dane_ta_usage
687 ldns_build_config_use_dane_verify
688 ldns_build_config_use_dane
689 ldns_build_config_use_ed448
690 ldns_build_config_use_ed25519
691 ldns_build_config_use_dsa
696 UNINSTALL_P5_DNS_LDNS
719 UNINSTALL_CONFIG_MANPAGE
721 INSTALL_CONFIG_MANPAGE
807 program_transform_name
820 enable_option_checking
849 enable_no_dane_ta_usage
850 enable_no_dane_verify
853 enable_rrtype_openpgpkey
857 enable_rrtype_amtrelay
858 enable_rrtype_svcb_https
865 ac_precious_vars='build_alias
877 # Initialize some variables set by options.
879 ac_init_version=false
880 ac_unrecognized_opts=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: \`$ac_useropt'"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=no ;;
994 -docdir | --docdir | --docdi | --doc | --do)
996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1002 dvidir=$ac_optarg ;;
1004 -enable-* | --enable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: \`$ac_useropt'"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=no ;;
1241 # Obsolete; use --with-x.
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 printf "%s\n" X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures ldns 1.8.3 to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of ldns 1.8.3:";;
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-ldns-config disable installation of ldns-config
1493 --enable-stderr-msgs Enable printing to stderr (default=disabled)
1494 --enable-poll This platform supports poll(7)
1495 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1496 --disable-gost Disable GOST support
1497 --enable-gost-anyway Enable GOST even without a GOST engine installed
1498 --disable-ecdsa Disable ECDSA support
1499 --disable-dsa Disable DSA support
1500 --disable-ed25519 Disable (experimental) ED25519 support. Default is
1502 --disable-ed448 Disable (experimental) ED448 support. Default is
1504 --disable-dane Disable DANE support
1505 --disable-dane-verify Disable DANE verify support
1506 --disable-dane-ta-usage Disable DANE-TA usage type support
1508 --enable-rrtype-ninfo Enable draft RR type ninfo.
1509 --enable-rrtype-rkey Enable draft RR type rkey.
1510 --disable-rrtype-openpgpkey
1511 Disable openpgpkey RR type.
1512 --enable-rrtype-ta Enable draft RR type ta.
1513 --enable-rrtype-avc Enable draft RR type avc.
1514 --enable-rrtype-doa Enable draft RR type DOA.
1515 --enable-rrtype-amtrelay
1516 Enable draft RR type AMTRELAY.
1517 --disable-rrtype-svcb-https
1518 Disable RR types SVCB and HTTPS.
1519 --disable-rpath disable hardcoded rpath (default=enabled)
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526 --with-aix-soname=aix|svr4|both
1527 shared library versioning (aka "SONAME") variant to
1528 provide on AIX, [default=aix].
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1531 compiler's sysroot if not specified).
1532 --with-drill Also build drill.
1533 --with-examples Also build examples.
1534 --with-pyldns generate python library, or --without-pyldns to
1535 disable Python support.
1536 --without-pyldnsx Do not install the ldnsx python module, or
1537 --with-pyldnsx to install it.
1538 --with-p5-dns-ldns generate DNS::LDNS perl bindings
1539 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1540 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1542 --with-xcode-sdk Set xcode SDK version. Default is autodetect
1543 --with-trust-anchor=KEYFILE
1544 Default location of the trust anchor file for drill
1545 and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1546 --with-ca-file=CAFILE File containing CA certificates for ldns-dane
1547 --with-ca-path=CAPATH Directory containing CA certificate files for
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 User-defined run-time library search path.
1561 The installed Python version to use, for example '2.3'. This
1562 string will be appended to the Python interpreter canonical
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <libdns@nlnetlabs.nl>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for configure.gnu first; this name is used for a wrapper for
1615 # Metaconfig's "Configure" on case-insensitive file systems.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1623 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1632 ldns configure 1.8.3
1633 generated by GNU Autoconf 2.71
1635 Copyright (C) 2021 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest.beam
1653 if { { ac_try="$ac_compile"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 printf "%s\n" "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext
1675 printf "%s\n" "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_c_try_compile
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 printf %s "checking for $2... " >&6; }
1694 if eval test \${$3+y}
1696 printf %s "(cached) " >&6
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1703 if ac_fn_c_try_compile "$LINENO"
1709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 printf "%s\n" "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 printf "%s\n" "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 test -x conftest$ac_exeext
1750 printf "%s\n" "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_c_try_link
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1775 printf %s "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below. */
1789 /* Override any GCC internal prototype to avoid an error.
1790 Use char because int might match the return type of a GCC
1791 builtin and then its argument prototype would still apply. */
1796 /* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799 #if defined __stub_$2 || defined __stub___$2
1811 if ac_fn_c_try_link "$LINENO"
1817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1818 conftest$ac_exeext conftest.$ac_ext
1821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 printf "%s\n" "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_func
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 printf %s "checking for $2... " >&6; }
1836 if eval test \${$3+y}
1838 printf %s "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1853 if ac_fn_c_try_compile "$LINENO"
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 printf "%s\n" "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_type
1884 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1885 # ------------------------------------------------------------------
1886 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1887 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 as_decl_name=`echo $2|sed 's/ *(.*//'`
1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1893 printf %s "checking whether $as_decl_name is declared... " >&6; }
1894 if eval test \${$3+y}
1896 printf %s "(cached) " >&6
1898 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1899 eval ac_save_FLAGS=\$$6
1900 as_fn_append $6 " $5"
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1907 #ifndef $as_decl_name
1909 (void) $as_decl_use;
1911 (void) $as_decl_name;
1919 if ac_fn_c_try_compile "$LINENO"
1925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1926 eval $6=\$ac_save_FLAGS
1930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 printf "%s\n" "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 } # ac_fn_check_decl
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1939 # executables *can* be run.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 printf "%s\n" "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 printf "%s\n" "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }
1967 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1968 printf "%s\n" "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=$ac_status
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1979 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1980 # --------------------------------------------
1981 # Tries to find the compile-time value of EXPR in a program that includes
1982 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1984 ac_fn_c_compute_int ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if test "$cross_compiling" = yes; then
1988 # Depending upon the size, compute the lo and hi bounds.
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1995 static int test_array [1 - 2 * !(($2) >= 0)];
1997 return test_array [0];
2003 if ac_fn_c_try_compile "$LINENO"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2013 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 return test_array [0];
2021 if ac_fn_c_try_compile "$LINENO"
2023 ac_hi=$ac_mid; break
2025 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2026 if test $ac_lo -le $ac_mid; then
2030 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2041 static int test_array [1 - 2 * !(($2) < 0)];
2043 return test_array [0];
2049 if ac_fn_c_try_compile "$LINENO"
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"
2069 ac_lo=$ac_mid; break
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 return test_array [0];
2103 if ac_fn_c_try_compile "$LINENO"
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2112 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2119 static long int longval (void) { return $2; }
2120 static unsigned long int ulongval (void) { return $2; }
2127 FILE *f = fopen ("conftest.val", "w");
2132 long int i = longval ();
2135 fprintf (f, "%ld", i);
2139 unsigned long int i = ulongval ();
2142 fprintf (f, "%lu", i);
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2152 if ac_fn_c_try_run "$LINENO"
2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159 conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 as_fn_set_status $ac_retval
2166 } # ac_fn_c_compute_int
2168 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2169 # ----------------------------------------------------
2170 # Tries to find if the field MEMBER exists in type AGGR, after including
2171 # INCLUDES, setting cache variable VAR accordingly.
2172 ac_fn_c_check_member ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2176 printf %s "checking for $2.$3... " >&6; }
2177 if eval test \${$4+y}
2179 printf %s "(cached) " >&6
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2194 if ac_fn_c_try_compile "$LINENO"
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2205 if (sizeof ac_aggr.$3)
2211 if ac_fn_c_try_compile "$LINENO"
2217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 printf "%s\n" "$ac_res" >&6; }
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 } # ac_fn_c_check_member
2227 ac_configure_args_raw=
2232 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 as_fn_append ac_configure_args_raw " '$ac_arg'"
2237 case $ac_configure_args_raw in
2241 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2242 ac_unsafe_a="$ac_unsafe_z#~"
2243 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2244 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2247 cat >config.log <<_ACEOF
2248 This file contains any messages produced by compilers while
2249 running configure, to aid debugging if configure makes a mistake.
2251 It was created by ldns $as_me 1.8.3, which was
2252 generated by GNU Autoconf 2.71. Invocation command line was
2254 $ $0$ac_configure_args_raw
2264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 case $as_dir in #(((
2290 *) as_dir=$as_dir/ ;;
2292 printf "%s\n" "PATH: $as_dir"
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_must_keep_next=false
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2327 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345 -* ) ac_must_keep_next=true ;;
2348 as_fn_append ac_configure_args " '$ac_arg'"
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2364 # Save into config.log some information that might help in debugging.
2368 printf "%s\n" "## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##"
2372 # The following way of writing the cache mishandles newlines in values,
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2379 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 printf "%s\n" "## ----------------- ##
2405 ## Output variables. ##
2406 ## ----------------- ##"
2408 for ac_var in $ac_subst_vars
2410 eval ac_val=\$$ac_var
2412 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 printf "%s\n" "$ac_var='\''$ac_val'\''"
2418 if test -n "$ac_subst_files"; then
2419 printf "%s\n" "## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##"
2423 for ac_var in $ac_subst_files
2425 eval ac_val=\$$ac_var
2427 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 printf "%s\n" "$ac_var='\''$ac_val'\''"
2434 if test -s confdefs.h; then
2435 printf "%s\n" "## ----------- ##
2442 test "$ac_signal" != 0 &&
2443 printf "%s\n" "$as_me: caught signal $ac_signal"
2444 printf "%s\n" "$as_me: exit $exit_status"
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2458 printf "%s\n" "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2464 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2466 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2468 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2470 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2472 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2475 # Let the site file select an alternate cache file if it wants to.
2476 # Prefer an explicitly selected file to automatically selected ones.
2477 if test -n "$CONFIG_SITE"; then
2478 ac_site_files="$CONFIG_SITE"
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2482 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2485 for ac_site_file in $ac_site_files
2487 case $ac_site_file in #(
2491 ac_site_file=./$ac_site_file ;;
2493 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2496 sed 's/^/| /' "$ac_site_file" >&5
2498 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2500 as_fn_error $? "failed to load site script $ac_site_file
2501 See \`config.log' for more details" "$LINENO" 5; }
2505 if test -r "$cache_file"; then
2506 # Some versions of bash will fail to source /dev/null (special files
2507 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2508 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2512 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513 *) . "./$cache_file";;
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2522 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2523 # Test code for whether the C compiler supports C89 (global declarations)
2524 ac_c_conftest_c89_globals='
2525 /* Does the compiler advertise C89 conformance?
2526 Do not test the value of __STDC__, because some compilers set it to 0
2527 while being otherwise adequately conformant. */
2528 #if !defined __STDC__
2529 # error "Compiler does not advertise C89 conformance"
2535 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2536 struct buf { int x; };
2537 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2538 static char *e (p, i)
2544 static char *f (char * (*g) (char **, int), char **p, ...)
2549 s = g (p, va_arg (v,int));
2554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2555 function prototypes and stuff, but not \xHH hex character constants.
2556 These do not provoke an error unfortunately, instead are silently treated
2557 as an "x". The following induces an error, until -std is added to get
2558 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2559 array size at least. It is necessary to write \x00 == 0 to get something
2560 that is true only with -std. */
2561 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2564 inside strings and character constants. */
2565 #define FOO(x) '\''x'\''
2566 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2568 int test (int i, double x);
2569 struct s1 {int (*f) (int a);};
2570 struct s2 {int (*f) (double a);};
2571 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2574 # Test code for whether the C compiler supports C89 (body of main).
2575 ac_c_conftest_c89_main='
2576 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2579 # Test code for whether the C compiler supports C99 (global declarations)
2580 ac_c_conftest_c99_globals='
2581 // Does the compiler advertise C99 conformance?
2582 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2583 # error "Compiler does not advertise C99 conformance"
2586 #include <stdbool.h>
2587 extern int puts (const char *);
2588 extern int printf (const char *, ...);
2589 extern int dprintf (int, const char *, ...);
2590 extern void *malloc (size_t);
2592 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2593 // dprintf is used instead of fprintf to avoid needing to declare
2595 #define debug(...) dprintf (2, __VA_ARGS__)
2596 #define showlist(...) puts (#__VA_ARGS__)
2597 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2599 test_varargs_macros (void)
2604 debug ("X = %d\n", x);
2605 showlist (The first, second, and third items.);
2606 report (x>y, "x is %d but y is %d", x, y);
2609 // Check long long types.
2610 #define BIG64 18446744073709551615ull
2611 #define BIG32 4294967295ul
2612 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2614 #error "your preprocessor is broken"
2618 #error "your preprocessor is broken"
2620 static long long int bignum = -9223372036854775807LL;
2621 static unsigned long long int ubignum = BIG64;
2623 struct incomplete_array
2631 const wchar_t *name;
2635 typedef const char *ccp;
2638 test_restrict (ccp restrict text)
2640 // See if C++-style comments work.
2641 // Iterate through items via the restricted pointer.
2642 // Also check for declarations in for loops.
2643 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2648 // Check varargs and va_copy.
2650 test_varargs (const char *format, ...)
2653 va_start (args, format);
2655 va_copy (args_copy, args);
2657 const char *str = "";
2665 case '\''s'\'': // string
2666 str = va_arg (args_copy, const char *);
2668 case '\''d'\'': // int
2669 number = va_arg (args_copy, int);
2671 case '\''f'\'': // float
2672 fnumber = va_arg (args_copy, double);
2681 return *str && number && fnumber;
2685 # Test code for whether the C compiler supports C99 (body of main).
2686 ac_c_conftest_c99_main='
2688 _Bool success = false;
2689 success |= (argc != 0);
2692 if (test_restrict ("String literal") == 0)
2694 char *restrict newvar = "Another string";
2697 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2698 test_varargs_macros ();
2700 // Check flexible array members.
2701 struct incomplete_array *ia =
2702 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2704 for (int i = 0; i < ia->datasize; ++i)
2705 ia->data[i] = i * 1.234;
2707 // Check named initializers.
2708 struct named_init ni = {
2710 .name = L"Test wide string",
2711 .average = 543.34343,
2716 int dynamic_array[ni.number];
2717 dynamic_array[0] = argv[0][0];
2718 dynamic_array[ni.number - 1] = 543;
2720 // work around unused variable warnings
2721 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2722 || dynamic_array[ni.number - 1] != 543);
2725 # Test code for whether the C compiler supports C11 (global declarations)
2726 ac_c_conftest_c11_globals='
2727 // Does the compiler advertise C11 conformance?
2728 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2729 # error "Compiler does not advertise C11 conformance"
2733 char _Alignas (double) aligned_as_double;
2734 char _Alignas (0) no_special_alignment;
2735 extern char aligned_as_int;
2736 char _Alignas (0) _Alignas (int) aligned_as_int;
2741 int_alignment = _Alignof (int),
2742 int_array_alignment = _Alignof (int[100]),
2743 char_alignment = _Alignof (char)
2745 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2748 int _Noreturn does_not_return (void) { for (;;) continue; }
2750 // Check _Static_assert.
2751 struct test_static_assert
2754 _Static_assert (sizeof (int) <= sizeof (long int),
2755 "_Static_assert does not work in struct");
2759 // Check UTF-8 literals.
2760 #define u8 syntax error!
2761 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2763 // Check duplicate typedefs.
2764 typedef long *long_ptr;
2765 typedef long int *long_ptr;
2766 typedef long_ptr long_ptr;
2768 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2772 struct { int i; int j; };
2773 struct { int k; long int l; } w;
2779 # Test code for whether the C compiler supports C11 (body of main).
2780 ac_c_conftest_c11_main='
2781 _Static_assert ((offsetof (struct anonymous, i)
2782 == offsetof (struct anonymous, w.k)),
2783 "Anonymous union alignment botch");
2789 # Test code for whether the C compiler supports C11 (complete).
2790 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2791 ${ac_c_conftest_c99_globals}
2792 ${ac_c_conftest_c11_globals}
2795 main (int argc, char **argv)
2798 ${ac_c_conftest_c89_main}
2799 ${ac_c_conftest_c99_main}
2800 ${ac_c_conftest_c11_main}
2805 # Test code for whether the C compiler supports C99 (complete).
2806 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2807 ${ac_c_conftest_c99_globals}
2810 main (int argc, char **argv)
2813 ${ac_c_conftest_c89_main}
2814 ${ac_c_conftest_c99_main}
2819 # Test code for whether the C compiler supports C89 (complete).
2820 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2823 main (int argc, char **argv)
2826 ${ac_c_conftest_c89_main}
2831 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2832 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2833 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2834 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2835 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2836 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2837 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2838 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2839 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2840 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2841 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2842 as_fn_append ac_func_c_list " fork HAVE_FORK"
2843 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2845 # Auxiliary files required by this configure script.
2846 ac_aux_files="config.guess config.sub ltmain.sh"
2848 # Locations in which to look for auxiliary files.
2849 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2851 # Search for a directory containing all of the required auxiliary files,
2852 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2853 # If we don't find one directory that contains all the files we need,
2854 # we report the set of missing files from the *first* directory in
2855 # $ac_aux_dir_candidates and give up.
2856 ac_missing_aux_files=""
2857 ac_first_candidate=:
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $ac_aux_dir_candidates
2864 case $as_dir in #(((
2867 *) as_dir=$as_dir/ ;;
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2872 ac_aux_dir_found=yes
2874 for ac_aux in $ac_aux_files
2876 # As a special case, if "install-sh" is required, that requirement
2877 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2878 # and $ac_install_sh is set appropriately for whichever one is found.
2879 if test x"$ac_aux" = x"install-sh"
2881 if test -f "${as_dir}install-sh"; then
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2883 ac_install_sh="${as_dir}install-sh -c"
2884 elif test -f "${as_dir}install.sh"; then
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2886 ac_install_sh="${as_dir}install.sh -c"
2887 elif test -f "${as_dir}shtool"; then
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2889 ac_install_sh="${as_dir}shtool install -c"
2892 if $ac_first_candidate; then
2893 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2899 if test -f "${as_dir}${ac_aux}"; then
2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2903 if $ac_first_candidate; then
2904 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2911 if test "$ac_aux_dir_found" = yes; then
2912 ac_aux_dir="$as_dir"
2915 ac_first_candidate=false
2924 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 if test -f "${ac_aux_dir}config.guess"; then
2933 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2935 if test -f "${ac_aux_dir}config.sub"; then
2936 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2938 if test -f "$ac_aux_dir/configure"; then
2939 ac_configure="$SHELL ${ac_aux_dir}configure"
2942 # Check that the precious variables saved in the cache have kept the same
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947 eval ac_new_set=\$ac_env_${ac_var}_set
2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949 eval ac_new_val=\$ac_env_${ac_var}_value
2950 case $ac_old_set,$ac_new_set in
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2961 if test "x$ac_old_val" != "x$ac_new_val"; then
2962 # differences in whitespace do not lead to failure.
2963 ac_old_val_w=`echo x $ac_old_val`
2964 ac_new_val_w=`echo x $ac_new_val`
2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968 ac_cache_corrupted=:
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972 eval $ac_var=\$ac_old_val
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2975 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2977 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2980 # Pass precious variables to config.status.
2981 if test "$ac_new_set" = set; then
2983 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 *) ac_arg=$ac_var=$ac_new_val ;;
2986 case " $ac_configure_args " in
2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2992 if $ac_cache_corrupted; then
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2997 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2998 and start over" "$LINENO" 5
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 # needed to build correct soname
3013 LDNS_VERSION_MAJOR=1
3015 LDNS_VERSION_MINOR=8
3017 LDNS_VERSION_MICRO=3
3022 # current:revision:age
3023 # (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
3024 # if source code changes increment revision
3025 # if any interfaces have been added/removed/changed since last update then
3026 # increment current and set revision to 0
3027 # if any interfaces have been added since the last public release then increment age
3028 # if any interfaces have been removed or changed since the last public release then
3031 # ldns-1.6.17 and before had a .so with version same as VERSION_INFO
3032 # ldns-1.7.0 had libversion 2:0:0
3033 # ldns-1.7.1 had libversion 3:0:0 (though it should have had 3:0:1)
3034 # ldns-1.8.0 had libversion 4:0:2 (though it should have had 4:0:1)
3035 # ldns-1.8.1 had libversion 5:0:2
3036 # ldns-1.8.1 had libversion 6:0:3
3037 # ldns-1.8.2 had libversion 7:0:4
3038 # ldns-1.8.3 has libversion 8:0:5
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057 if test -n "$ac_tool_prefix"; then
3058 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 printf %s "checking for $ac_word... " >&6; }
3062 if test ${ac_cv_prog_CC+y}
3064 printf %s "(cached) " >&6
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 case $as_dir in #(((
3076 *) as_dir=$as_dir/ ;;
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093 printf "%s\n" "$CC" >&6; }
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 printf "%s\n" "no" >&6; }
3101 if test -z "$ac_cv_prog_CC"; then
3103 # Extract the first word of "gcc", so it can be a program name with args.
3104 set dummy gcc; ac_word=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s "checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_ac_ct_CC+y}
3109 printf %s "(cached) " >&6
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 case $as_dir in #(((
3121 *) as_dir=$as_dir/ ;;
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="gcc"
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 printf "%s\n" "$ac_ct_CC" >&6; }
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3144 if test "x$ac_ct_CC" = x; then
3147 case $cross_compiling:$ac_tool_warned in
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}cc; ac_word=$2
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 printf %s "checking for $ac_word... " >&6; }
3165 if test ${ac_cv_prog_CC+y}
3167 printf %s "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 case $as_dir in #(((
3179 *) as_dir=$as_dir/ ;;
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_CC="${ac_tool_prefix}cc"
3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3194 if test -n "$CC"; then
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 printf "%s\n" "$CC" >&6; }
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 printf "%s\n" "no" >&6; }
3205 if test -z "$CC"; then
3206 # Extract the first word of "cc", so it can be a program name with args.
3207 set dummy cc; ac_word=$2
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 printf %s "checking for $ac_word... " >&6; }
3210 if test ${ac_cv_prog_CC+y}
3212 printf %s "(cached) " >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 case $as_dir in #(((
3225 *) as_dir=$as_dir/ ;;
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3229 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230 ac_prog_rejected=yes
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3241 if test $ac_prog_rejected = yes; then
3242 # We found a bogon in the path, so make sure we never use it.
3243 set dummy $ac_cv_prog_CC
3245 if test $# != 0; then
3246 # We chose a different compiler from the bogus one.
3247 # However, it has the same basename, so the bogon will be chosen
3248 # first if we set CC to just the basename; use the full file name.
3250 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3256 if test -n "$CC"; then
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 printf "%s\n" "$CC" >&6; }
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 printf "%s\n" "no" >&6; }
3266 if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 printf %s "checking for $ac_word... " >&6; }
3274 if test ${ac_cv_prog_CC+y}
3276 printf %s "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 case $as_dir in #(((
3288 *) as_dir=$as_dir/ ;;
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3303 if test -n "$CC"; then
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 printf "%s\n" "$CC" >&6; }
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 printf "%s\n" "no" >&6; }
3312 test -n "$CC" && break
3315 if test -z "$CC"; then
3317 for ac_prog in cl.exe
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 printf %s "checking for $ac_word... " >&6; }
3323 if test ${ac_cv_prog_ac_ct_CC+y}
3325 printf %s "(cached) " >&6
3327 if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 case $as_dir in #(((
3337 *) as_dir=$as_dir/ ;;
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 printf "%s\n" "$ac_ct_CC" >&6; }
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 printf "%s\n" "no" >&6; }
3361 test -n "$ac_ct_CC" && break
3364 if test "x$ac_ct_CC" = x; then
3367 case $cross_compiling:$ac_tool_warned in
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}clang; ac_word=$2
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 printf %s "checking for $ac_word... " >&6; }
3384 if test ${ac_cv_prog_CC+y}
3386 printf %s "(cached) " >&6
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 case $as_dir in #(((
3398 *) as_dir=$as_dir/ ;;
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="${ac_tool_prefix}clang"
3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 printf "%s\n" "$CC" >&6; }
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3423 if test -z "$ac_cv_prog_CC"; then
3425 # Extract the first word of "clang", so it can be a program name with args.
3426 set dummy clang; ac_word=$2
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_ac_ct_CC+y}
3431 printf %s "(cached) " >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 case $as_dir in #(((
3443 *) as_dir=$as_dir/ ;;
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_ac_ct_CC="clang"
3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 printf "%s\n" "$ac_ct_CC" >&6; }
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 printf "%s\n" "no" >&6; }
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3484 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details" "$LINENO" 5; }
3489 # Provide some information about the compiler.
3490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3493 for ac_option in --version -v -V -qversion -version; do
3494 { { ac_try="$ac_compiler $ac_option >&5"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 printf "%s\n" "$ac_try_echo"; } >&5
3501 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3503 if test -s conftest.err; then
3505 ... rest of stderr output deleted ...
3506 10q' conftest.err >conftest.er1
3507 cat conftest.er1 >&5
3509 rm -f conftest.er1 conftest.err
3510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531 printf %s "checking whether the C compiler works... " >&6; }
3532 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3538 for ac_file in $ac_files
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547 if { { ac_try="$ac_link_default"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 printf "%s\n" "$ac_try_echo"; } >&5
3554 (eval "$ac_link_default") 2>&5
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3559 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3560 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3561 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3562 # so that the user can short-circuit this test for compilers unknown to
3564 for ac_file in $ac_files ''
3566 test -f "$ac_file" || continue
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3571 # We found the default executable, but exeext='' is most
3575 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3579 # We set ac_cv_exeext here because the later test for it is not
3580 # safe: cross compilers may not add the suffix if given an `-o'
3581 # argument, so we may need to know it at that point already.
3582 # Even if this section looks crufty: it has the advantage of
3589 test "$ac_cv_exeext" = no && ac_cv_exeext=
3594 if test -z "$ac_file"
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3598 printf "%s\n" "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error 77 "C compiler cannot create executables
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 printf "%s\n" "yes" >&6; }
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3610 printf %s "checking for C compiler default output file name... " >&6; }
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3612 printf "%s\n" "$ac_file" >&6; }
3613 ac_exeext=$ac_cv_exeext
3615 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3616 ac_clean_files=$ac_clean_files_save
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3618 printf %s "checking for suffix of executables... " >&6; }
3619 if { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 printf "%s\n" "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
3635 for ac_file in conftest.exe conftest conftest.*; do
3636 test -f "$ac_file" || continue
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3648 See \`config.log' for more details" "$LINENO" 5; }
3650 rm -f conftest conftest$ac_cv_exeext
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3652 printf "%s\n" "$ac_cv_exeext" >&6; }
3654 rm -f conftest.$ac_ext
3655 EXEEXT=$ac_cv_exeext
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3663 FILE *f = fopen ("conftest.out", "w");
3664 return ferror (f) || fclose (f) != 0;
3670 ac_clean_files="$ac_clean_files conftest.out"
3671 # Check that the compiler produces executables we can run. If not, either
3672 # the compiler is broken, or we cross compile.
3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3674 printf %s "checking whether we are cross compiling... " >&6; }
3675 if test "$cross_compiling" != yes; then
3676 { { ac_try="$ac_link"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 printf "%s\n" "$ac_try_echo"; } >&5
3683 (eval "$ac_link") 2>&5
3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }
3687 if { ac_try='./conftest$ac_cv_exeext'
3688 { { case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 printf "%s\n" "$ac_try_echo"; } >&5
3694 (eval "$ac_try") 2>&5
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; }; then
3700 if test "$cross_compiling" = maybe; then
3703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error 77 "cannot run C compiled programs.
3706 If you meant to cross compile, use \`--host'.
3707 See \`config.log' for more details" "$LINENO" 5; }
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3712 printf "%s\n" "$cross_compiling" >&6; }
3714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3715 ac_clean_files=$ac_clean_files_save
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3717 printf %s "checking for suffix of object files... " >&6; }
3718 if test ${ac_cv_objext+y}
3720 printf %s "(cached) " >&6
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 rm -f conftest.o conftest.obj
3734 if { { ac_try="$ac_compile"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 printf "%s\n" "$ac_try_echo"; } >&5
3741 (eval "$ac_compile") 2>&5
3743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }
3746 for ac_file in conftest.o conftest.obj conftest.*; do
3747 test -f "$ac_file" || continue;
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3750 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 printf "%s\n" "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error $? "cannot compute suffix of object files: cannot compile
3761 See \`config.log' for more details" "$LINENO" 5; }
3763 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3766 printf "%s\n" "$ac_cv_objext" >&6; }
3767 OBJEXT=$ac_cv_objext
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3770 printf %s "checking whether the compiler supports GNU C... " >&6; }
3771 if test ${ac_cv_c_compiler_gnu+y}
3773 printf %s "(cached) " >&6
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3789 if ac_fn_c_try_compile "$LINENO"
3795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3800 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 if test $ac_compiler_gnu = yes; then
3808 ac_test_CFLAGS=${CFLAGS+y}
3809 ac_save_CFLAGS=$CFLAGS
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 printf %s "checking whether $CC accepts -g... " >&6; }
3812 if test ${ac_cv_prog_cc_g+y}
3814 printf %s "(cached) " >&6
3816 ac_save_c_werror_flag=$ac_c_werror_flag
3817 ac_c_werror_flag=yes
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 if ac_fn_c_try_compile "$LINENO"
3851 ac_c_werror_flag=$ac_save_c_werror_flag
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3864 if ac_fn_c_try_compile "$LINENO"
3868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873 ac_c_werror_flag=$ac_save_c_werror_flag
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3876 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3877 if test $ac_test_CFLAGS; then
3878 CFLAGS=$ac_save_CFLAGS
3879 elif test $ac_cv_prog_cc_g = yes; then
3880 if test "$GCC" = yes; then
3886 if test "$GCC" = yes; then
3893 if test x$ac_prog_cc_stdc = xno
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3896 printf %s "checking for $CC option to enable C11 features... " >&6; }
3897 if test ${ac_cv_prog_cc_c11+y}
3899 printf %s "(cached) " >&6
3901 ac_cv_prog_cc_c11=no
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 $ac_c_conftest_c11_program
3907 for ac_arg in '' -std=gnu11
3909 CC="$ac_save_CC $ac_arg"
3910 if ac_fn_c_try_compile "$LINENO"
3912 ac_cv_prog_cc_c11=$ac_arg
3914 rm -f core conftest.err conftest.$ac_objext conftest.beam
3915 test "x$ac_cv_prog_cc_c11" != "xno" && break
3917 rm -f conftest.$ac_ext
3921 if test "x$ac_cv_prog_cc_c11" = xno
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 printf "%s\n" "unsupported" >&6; }
3926 if test "x$ac_cv_prog_cc_c11" = x
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929 printf "%s\n" "none needed" >&6; }
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3932 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3933 CC="$CC $ac_cv_prog_cc_c11"
3935 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3939 if test x$ac_prog_cc_stdc = xno
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3942 printf %s "checking for $CC option to enable C99 features... " >&6; }
3943 if test ${ac_cv_prog_cc_c99+y}
3945 printf %s "(cached) " >&6
3947 ac_cv_prog_cc_c99=no
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 $ac_c_conftest_c99_program
3953 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3955 CC="$ac_save_CC $ac_arg"
3956 if ac_fn_c_try_compile "$LINENO"
3958 ac_cv_prog_cc_c99=$ac_arg
3960 rm -f core conftest.err conftest.$ac_objext conftest.beam
3961 test "x$ac_cv_prog_cc_c99" != "xno" && break
3963 rm -f conftest.$ac_ext
3967 if test "x$ac_cv_prog_cc_c99" = xno
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 printf "%s\n" "unsupported" >&6; }
3972 if test "x$ac_cv_prog_cc_c99" = x
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3975 printf "%s\n" "none needed" >&6; }
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3978 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3979 CC="$CC $ac_cv_prog_cc_c99"
3981 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3985 if test x$ac_prog_cc_stdc = xno
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3988 printf %s "checking for $CC option to enable C89 features... " >&6; }
3989 if test ${ac_cv_prog_cc_c89+y}
3991 printf %s "(cached) " >&6
3993 ac_cv_prog_cc_c89=no
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 $ac_c_conftest_c89_program
3999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001 CC="$ac_save_CC $ac_arg"
4002 if ac_fn_c_try_compile "$LINENO"
4004 ac_cv_prog_cc_c89=$ac_arg
4006 rm -f core conftest.err conftest.$ac_objext conftest.beam
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 rm -f conftest.$ac_ext
4013 if test "x$ac_cv_prog_cc_c89" = xno
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016 printf "%s\n" "unsupported" >&6; }
4018 if test "x$ac_cv_prog_cc_c89" = x
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 printf "%s\n" "none needed" >&6; }
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4024 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4025 CC="$CC $ac_cv_prog_cc_c89"
4027 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 ac_header= ac_cache=
4040 for ac_item in $ac_header_c_list
4042 if test $ac_cache; then
4043 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4044 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4045 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4047 ac_header= ac_cache=
4048 elif test $ac_header; then
4062 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4065 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4075 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4076 if test ${ac_cv_safe_to_define___extensions__+y}
4078 printf %s "(cached) " >&6
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4083 # define __EXTENSIONS__ 1
4084 $ac_includes_default
4093 if ac_fn_c_try_compile "$LINENO"
4095 ac_cv_safe_to_define___extensions__=yes
4097 ac_cv_safe_to_define___extensions__=no
4099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4102 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4105 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4106 if test ${ac_cv_should_define__xopen_source+y}
4108 printf %s "(cached) " >&6
4110 ac_cv_should_define__xopen_source=no
4111 if test $ac_cv_header_wchar_h = yes
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4133 #define _XOPEN_SOURCE 500
4144 if ac_fn_c_try_compile "$LINENO"
4146 ac_cv_should_define__xopen_source=yes
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4154 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4156 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4158 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4160 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4162 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4164 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4166 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4168 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4170 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4172 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4174 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4176 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4178 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4180 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4182 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4184 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4186 if test $ac_cv_header_minix_config_h = yes
4189 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4191 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4193 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4198 if test $ac_cv_safe_to_define___extensions__ = yes
4200 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4203 if test $ac_cv_should_define__xopen_source = yes
4205 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4210 if test "$ac_cv_header_minix_config_h" = "yes"; then
4212 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4220 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4225 macro_version='2.4.6'
4226 macro_revision='2.4.6'
4241 ltmain=$ac_aux_dir/ltmain.sh
4245 # Make sure we can run config.sub.
4246 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4247 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4250 printf %s "checking build system type... " >&6; }
4251 if test ${ac_cv_build+y}
4253 printf %s "(cached) " >&6
4255 ac_build_alias=$build_alias
4256 test "x$ac_build_alias" = x &&
4257 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4258 test "x$ac_build_alias" = x &&
4259 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4260 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4261 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4265 printf "%s\n" "$ac_cv_build" >&6; }
4266 case $ac_cv_build in
4268 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4271 ac_save_IFS=$IFS; IFS='-'
4277 # Remember, the first character of IFS is used to create $*,
4278 # except with old shells:
4281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4285 printf %s "checking host system type... " >&6; }
4286 if test ${ac_cv_host+y}
4288 printf %s "(cached) " >&6
4290 if test "x$host_alias" = x; then
4291 ac_cv_host=$ac_cv_build
4293 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4294 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4299 printf "%s\n" "$ac_cv_host" >&6; }
4302 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4305 ac_save_IFS=$IFS; IFS='-'
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4318 # Backslashify metacharacters that are still active within
4319 # double-quoted strings.
4320 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4322 # Same as above, but do not quote variable references.
4323 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4325 # Sed substitution to delay expansion of an escaped shell variable in a
4326 # double_quote_subst'ed string.
4327 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4329 # Sed substitution to delay expansion of an escaped single quote.
4330 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4332 # Sed substitution to avoid accidental globbing in evaled expressions
4333 no_glob_subst='s/\*/\\\*/g'
4335 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4336 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4337 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4340 printf %s "checking how to print strings... " >&6; }
4341 # Test print first, because it will be a builtin if present.
4342 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4343 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4345 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4348 # Use this function as a fallback that always works.
4349 func_fallback_echo ()
4351 eval 'cat <<_LTECHO_EOF
4355 ECHO='func_fallback_echo'
4358 # func_echo_all arg...
4359 # Invoke $ECHO with all args, space-separated.
4366 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4367 printf "%s\n" "printf" >&6; } ;;
4368 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4369 printf "%s\n" "print -r" >&6; } ;;
4370 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4371 printf "%s\n" "cat" >&6; } ;;
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4388 printf %s "checking for a sed that does not truncate output... " >&6; }
4389 if test ${ac_cv_path_SED+y}
4391 printf %s "(cached) " >&6
4393 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4394 for ac_i in 1 2 3 4 5 6 7; do
4395 ac_script="$ac_script$as_nl$ac_script"
4397 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4398 { ac_script=; unset ac_script;}
4399 if test -z "$SED"; then
4400 ac_path_SED_found=false
4401 # Loop through the user's path and test for each of PROGNAME-LIST
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 case $as_dir in #(((
4409 *) as_dir=$as_dir/ ;;
4411 for ac_prog in sed gsed
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_SED" || continue
4416 # Check for GNU ac_path_SED and select it if it is found.
4417 # Check for GNU $ac_path_SED
4418 case `"$ac_path_SED" --version 2>&1` in
4420 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4423 printf %s 0123456789 >"conftest.in"
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 printf "%s\n" '' >> "conftest.nl"
4430 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_SED_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_SED="$ac_path_SED"
4436 ac_path_SED_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444 $ac_path_SED_found && break 3
4449 if test -z "$ac_cv_path_SED"; then
4450 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4458 printf "%s\n" "$ac_cv_path_SED" >&6; }
4459 SED="$ac_cv_path_SED"
4462 test -z "$SED" && SED=sed
4463 Xsed="$SED -e 1s/^X//"
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4476 printf %s "checking for grep that handles long lines and -e... " >&6; }
4477 if test ${ac_cv_path_GREP+y}
4479 printf %s "(cached) " >&6
4481 if test -z "$GREP"; then
4482 ac_path_GREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4488 case $as_dir in #(((
4491 *) as_dir=$as_dir/ ;;
4493 for ac_prog in grep ggrep
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4497 as_fn_executable_p "$ac_path_GREP" || continue
4498 # Check for GNU ac_path_GREP and select it if it is found.
4499 # Check for GNU $ac_path_GREP
4500 case `"$ac_path_GREP" --version 2>&1` in
4502 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4505 printf %s 0123456789 >"conftest.in"
4508 cat "conftest.in" "conftest.in" >"conftest.tmp"
4509 mv "conftest.tmp" "conftest.in"
4510 cp "conftest.in" "conftest.nl"
4511 printf "%s\n" 'GREP' >> "conftest.nl"
4512 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4514 as_fn_arith $ac_count + 1 && ac_count=$as_val
4515 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4516 # Best one so far, save it but keep looking for a better one
4517 ac_cv_path_GREP="$ac_path_GREP"
4518 ac_path_GREP_max=$ac_count
4520 # 10*(2^10) chars as input seems more than enough
4521 test $ac_count -gt 10 && break
4523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 $ac_path_GREP_found && break 3
4531 if test -z "$ac_cv_path_GREP"; then
4532 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 ac_cv_path_GREP=$GREP
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4540 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4541 GREP="$ac_cv_path_GREP"
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4545 printf %s "checking for egrep... " >&6; }
4546 if test ${ac_cv_path_EGREP+y}
4548 printf %s "(cached) " >&6
4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4551 then ac_cv_path_EGREP="$GREP -E"
4553 if test -z "$EGREP"; then
4554 ac_path_EGREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 case $as_dir in #(((
4563 *) as_dir=$as_dir/ ;;
4565 for ac_prog in egrep
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_EGREP" || continue
4570 # Check for GNU ac_path_EGREP and select it if it is found.
4571 # Check for GNU $ac_path_EGREP
4572 case `"$ac_path_EGREP" --version 2>&1` in
4574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 printf %s 0123456789 >"conftest.in"
4580 cat "conftest.in" "conftest.in" >"conftest.tmp"
4581 mv "conftest.tmp" "conftest.in"
4582 cp "conftest.in" "conftest.nl"
4583 printf "%s\n" 'EGREP' >> "conftest.nl"
4584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_EGREP="$ac_path_EGREP"
4590 ac_path_EGREP_max=$ac_count
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 $ac_path_EGREP_found && break 3
4603 if test -z "$ac_cv_path_EGREP"; then
4604 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607 ac_cv_path_EGREP=$EGREP
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4613 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4614 EGREP="$ac_cv_path_EGREP"
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4618 printf %s "checking for fgrep... " >&6; }
4619 if test ${ac_cv_path_FGREP+y}
4621 printf %s "(cached) " >&6
4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624 then ac_cv_path_FGREP="$GREP -F"
4626 if test -z "$FGREP"; then
4627 ac_path_FGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 case $as_dir in #(((
4636 *) as_dir=$as_dir/ ;;
4638 for ac_prog in fgrep
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4642 as_fn_executable_p "$ac_path_FGREP" || continue
4643 # Check for GNU ac_path_FGREP and select it if it is found.
4644 # Check for GNU $ac_path_FGREP
4645 case `"$ac_path_FGREP" --version 2>&1` in
4647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4650 printf %s 0123456789 >"conftest.in"
4653 cat "conftest.in" "conftest.in" >"conftest.tmp"
4654 mv "conftest.tmp" "conftest.in"
4655 cp "conftest.in" "conftest.nl"
4656 printf "%s\n" 'FGREP' >> "conftest.nl"
4657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659 as_fn_arith $ac_count + 1 && ac_count=$as_val
4660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4661 # Best one so far, save it but keep looking for a better one
4662 ac_cv_path_FGREP="$ac_path_FGREP"
4663 ac_path_FGREP_max=$ac_count
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 $ac_path_FGREP_found && break 3
4676 if test -z "$ac_cv_path_FGREP"; then
4677 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4680 ac_cv_path_FGREP=$FGREP
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4686 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4687 FGREP="$ac_cv_path_FGREP"
4690 test -z "$GREP" && GREP=grep
4710 # Check whether --with-gnu-ld was given.
4711 if test ${with_gnu_ld+y}
4713 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4719 if test yes = "$GCC"; then
4720 # Check if gcc -print-prog-name=ld gives a path.
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4722 printf %s "checking for ld used by $CC... " >&6; }
4725 # gcc leaves a trailing carriage return, which upsets mingw
4726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4731 # Accept absolute paths.
4733 re_direlt='/[^/][^/]*/\.\./'
4734 # Canonicalize the pathname of ld
4735 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4736 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4737 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4739 test -z "$LD" && LD=$ac_prog
4742 # If it fails, then pretend we aren't using GCC.
4746 # If it is relative, then search for the first ld in PATH.
4750 elif test yes = "$with_gnu_ld"; then
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4752 printf %s "checking for GNU ld... " >&6; }
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4755 printf %s "checking for non-GNU ld... " >&6; }
4757 if test ${lt_cv_path_LD+y}
4759 printf %s "(cached) " >&6
4761 if test -z "$LD"; then
4762 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4763 for ac_dir in $PATH; do
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4767 lt_cv_path_LD=$ac_dir/$ac_prog
4768 # Check to see if the program is GNU ld. I'd rather use --version,
4769 # but apparently some variants of GNU ld only accept -v.
4770 # Break only if it was the GNU/non-GNU ld that we prefer.
4771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4772 *GNU* | *'with BFD'*)
4773 test no != "$with_gnu_ld" && break
4776 test yes != "$with_gnu_ld" && break
4783 lt_cv_path_LD=$LD # Let the user override the test with a path.
4788 if test -n "$LD"; then
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4790 printf "%s\n" "$LD" >&6; }
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 printf "%s\n" "no" >&6; }
4795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4797 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4798 if test ${lt_cv_prog_gnu_ld+y}
4800 printf %s "(cached) " >&6
4802 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4803 case `$LD -v 2>&1 </dev/null` in
4804 *GNU* | *'with BFD'*)
4805 lt_cv_prog_gnu_ld=yes
4808 lt_cv_prog_gnu_ld=no
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4813 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4814 with_gnu_ld=$lt_cv_prog_gnu_ld
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4825 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4826 if test ${lt_cv_path_NM+y}
4828 printf %s "(cached) " >&6
4830 if test -n "$NM"; then
4831 # Let the user override the test.
4834 lt_nm_to_check=${ac_tool_prefix}nm
4835 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4836 lt_nm_to_check="$lt_nm_to_check nm"
4838 for lt_tmp_nm in $lt_nm_to_check; do
4839 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4840 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4842 test -z "$ac_dir" && ac_dir=.
4843 tmp_nm=$ac_dir/$lt_tmp_nm
4844 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4845 # Check to see if the nm accepts a BSD-compat flag.
4846 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4847 # nm: unknown option "B" ignored
4848 # Tru64's nm complains that /dev/null is an invalid object file
4849 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4851 mingw*) lt_bad_file=conftest.nm/nofile ;;
4852 *) lt_bad_file=/dev/null ;;
4854 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4855 *$lt_bad_file* | *'Invalid file or object type'*)
4856 lt_cv_path_NM="$tmp_nm -B"
4860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4862 lt_cv_path_NM="$tmp_nm -p"
4866 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4867 continue # so that we can try to find one that supports BSD flags
4876 : ${lt_cv_path_NM=no}
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4880 printf "%s\n" "$lt_cv_path_NM" >&6; }
4881 if test no != "$lt_cv_path_NM"; then
4884 # Didn't find any BSD compatible name lister, look for dumpbin.
4885 if test -n "$DUMPBIN"; then :
4886 # Let the user override the test.
4888 if test -n "$ac_tool_prefix"; then
4889 for ac_prog in dumpbin "link -dump"
4891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 printf %s "checking for $ac_word... " >&6; }
4895 if test ${ac_cv_prog_DUMPBIN+y}
4897 printf %s "(cached) " >&6
4899 if test -n "$DUMPBIN"; then
4900 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 case $as_dir in #(((
4909 *) as_dir=$as_dir/ ;;
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4923 DUMPBIN=$ac_cv_prog_DUMPBIN
4924 if test -n "$DUMPBIN"; then
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4926 printf "%s\n" "$DUMPBIN" >&6; }
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
4933 test -n "$DUMPBIN" && break
4936 if test -z "$DUMPBIN"; then
4937 ac_ct_DUMPBIN=$DUMPBIN
4938 for ac_prog in dumpbin "link -dump"
4940 # Extract the first word of "$ac_prog", so it can be a program name with args.
4941 set dummy $ac_prog; ac_word=$2
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 printf %s "checking for $ac_word... " >&6; }
4944 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4946 printf %s "(cached) " >&6
4948 if test -n "$ac_ct_DUMPBIN"; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 case $as_dir in #(((
4958 *) as_dir=$as_dir/ ;;
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4973 if test -n "$ac_ct_DUMPBIN"; then
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4975 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 printf "%s\n" "no" >&6; }
4982 test -n "$ac_ct_DUMPBIN" && break
4985 if test "x$ac_ct_DUMPBIN" = x; then
4988 case $cross_compiling:$ac_tool_warned in
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4994 DUMPBIN=$ac_ct_DUMPBIN
4998 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5000 DUMPBIN="$DUMPBIN -symbols -headers"
5008 if test : != "$DUMPBIN"; then
5012 test -z "$NM" && NM=nm
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5020 printf %s "checking the name lister ($NM) interface... " >&6; }
5021 if test ${lt_cv_nm_interface+y}
5023 printf %s "(cached) " >&6
5025 lt_cv_nm_interface="BSD nm"
5026 echo "int some_variable = 0;" > conftest.$ac_ext
5027 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5028 (eval "$ac_compile" 2>conftest.err)
5029 cat conftest.err >&5
5030 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5031 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5032 cat conftest.err >&5
5033 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5034 cat conftest.out >&5
5035 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5036 lt_cv_nm_interface="MS dumpbin"
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5041 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5044 printf %s "checking whether ln -s works... " >&6; }
5046 if test "$LN_S" = "ln -s"; then
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048 printf "%s\n" "yes" >&6; }
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5051 printf "%s\n" "no, using $LN_S" >&6; }
5054 # find the maximum length of command line arguments
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5056 printf %s "checking the maximum length of command line arguments... " >&6; }
5057 if test ${lt_cv_sys_max_cmd_len+y}
5059 printf %s "(cached) " >&6
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5102 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5122 # The test takes a long time on OS/2.
5123 lt_cv_sys_max_cmd_len=8192
5127 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5128 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5129 # nice to cause kernel panics so lets avoid the loop below.
5130 # First set a reasonable default.
5131 lt_cv_sys_max_cmd_len=16384
5133 if test -x /sbin/sysconfig; then
5134 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5135 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5140 lt_cv_sys_max_cmd_len=102400
5142 sysv5* | sco5v6* | sysv4.2uw2*)
5143 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5144 if test -n "$kargmax"; then
5145 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5147 lt_cv_sys_max_cmd_len=32768
5151 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5152 if test -n "$lt_cv_sys_max_cmd_len" && \
5153 test undefined != "$lt_cv_sys_max_cmd_len"; then
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157 # Make teststring a little bigger before we do anything with it.
5158 # a 1K string should be a reasonable start.
5159 for i in 1 2 3 4 5 6 7 8; do
5160 teststring=$teststring$teststring
5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163 # If test is not a shell built-in, we'll probably end up computing a
5164 # maximum length that is only half of the actual maximum length, but
5166 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5167 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168 test 17 != "$i" # 1/2 MB should be enough
5171 teststring=$teststring$teststring
5173 # Only check the string length outside the loop.
5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176 # Add a significant safety factor because C++ compilers can tack on
5177 # massive amounts of additional arguments before passing them to the
5178 # linker. It appears as though 1/2 is a usable value.
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5186 if test -n "$lt_cv_sys_max_cmd_len"; then
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 printf "%s\n" "none" >&6; }
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5214 # test EBCDIC or ASCII
5215 case `echo X|tr X '\101'` in
5216 A) # ASCII based system
5217 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5218 lt_SP2NL='tr \040 \012'
5219 lt_NL2SP='tr \015\012 \040\040'
5221 *) # EBCDIC based system
5222 lt_SP2NL='tr \100 \n'
5223 lt_NL2SP='tr \r\n \100\100'
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5236 printf %s "checking how to convert $build file names to $host format... " >&6; }
5237 if test ${lt_cv_to_host_file_cmd+y}
5239 printf %s "(cached) " >&6
5244 *-*-mingw* ) # actually msys
5245 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5248 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5250 * ) # otherwise, assume *nix
5251 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5257 *-*-mingw* ) # actually msys
5258 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5261 lt_cv_to_host_file_cmd=func_convert_file_noop
5263 * ) # otherwise, assume *nix
5264 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5268 * ) # unhandled hosts (and "normal" native builds)
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5275 to_host_file_cmd=$lt_cv_to_host_file_cmd
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5277 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5284 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5285 if test ${lt_cv_to_tool_file_cmd+y}
5287 printf %s "(cached) " >&6
5289 #assume ordinary cross tools, or native build.
5290 lt_cv_to_tool_file_cmd=func_convert_file_noop
5294 *-*-mingw* ) # actually msys
5295 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5303 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5305 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5312 printf %s "checking for $LD option to reload object files... " >&6; }
5313 if test ${lt_cv_ld_reload_flag+y}
5315 printf %s "(cached) " >&6
5317 lt_cv_ld_reload_flag='-r'
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5320 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5321 reload_flag=$lt_cv_ld_reload_flag
5322 case $reload_flag in
5324 *) reload_flag=" $reload_flag" ;;
5326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5328 cygwin* | mingw* | pw32* | cegcc*)
5329 if test yes != "$GCC"; then
5334 if test yes = "$GCC"; then
5335 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 printf %s "checking for $ac_word... " >&6; }
5355 if test ${ac_cv_prog_OBJDUMP+y}
5357 printf %s "(cached) " >&6
5359 if test -n "$OBJDUMP"; then
5360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 case $as_dir in #(((
5369 *) as_dir=$as_dir/ ;;
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5383 OBJDUMP=$ac_cv_prog_OBJDUMP
5384 if test -n "$OBJDUMP"; then
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5386 printf "%s\n" "$OBJDUMP" >&6; }
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 printf "%s\n" "no" >&6; }
5394 if test -z "$ac_cv_prog_OBJDUMP"; then
5395 ac_ct_OBJDUMP=$OBJDUMP
5396 # Extract the first word of "objdump", so it can be a program name with args.
5397 set dummy objdump; ac_word=$2
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 printf %s "checking for $ac_word... " >&6; }
5400 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5402 printf %s "(cached) " >&6
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 case $as_dir in #(((
5414 *) as_dir=$as_dir/ ;;
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5428 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5429 if test -n "$ac_ct_OBJDUMP"; then
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5431 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 printf "%s\n" "no" >&6; }
5437 if test "x$ac_ct_OBJDUMP" = x; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned=yes ;;
5446 OBJDUMP=$ac_ct_OBJDUMP
5449 OBJDUMP="$ac_cv_prog_OBJDUMP"
5452 test -z "$OBJDUMP" && OBJDUMP=objdump
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5463 printf %s "checking how to recognize dependent libraries... " >&6; }
5464 if test ${lt_cv_deplibs_check_method+y}
5466 printf %s "(cached) " >&6
5468 lt_cv_file_magic_cmd='$MAGIC_CMD'
5469 lt_cv_file_magic_test_file=
5470 lt_cv_deplibs_check_method='unknown'
5471 # Need to set the preceding variable on all platforms that support
5472 # interlibrary dependencies.
5473 # 'none' -- dependencies not supported.
5474 # 'unknown' -- same as none, but documents that we really don't know.
5475 # 'pass_all' -- all dependencies passed with no checks.
5476 # 'test_compile' -- check by making test program.
5477 # 'file_magic [[regex]]' -- check by looking for files in library path
5478 # that responds to the $file_magic_cmd with a given extended regex.
5479 # If you have 'file' or equivalent on your system and you're not sure
5480 # whether 'pass_all' will *always* work, you probably want this one.
5484 lt_cv_deplibs_check_method=pass_all
5488 lt_cv_deplibs_check_method=pass_all
5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5493 lt_cv_file_magic_cmd='/usr/bin/file -L'
5494 lt_cv_file_magic_test_file=/shlib/libc.so
5498 # func_win32_libid is a shell function defined in ltmain.sh
5499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5500 lt_cv_file_magic_cmd='func_win32_libid'
5504 # Base MSYS/MinGW do not provide the 'file' command needed by
5505 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5506 # unless we find 'file', for example because we are cross-compiling.
5507 if ( file / ) >/dev/null 2>&1; then
5508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509 lt_cv_file_magic_cmd='func_win32_libid'
5511 # Keep this pattern in sync with the one in func_win32_libid.
5512 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5513 lt_cv_file_magic_cmd='$OBJDUMP -f'
5518 # use the weaker test based on 'objdump'. See mingw*.
5519 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5520 lt_cv_file_magic_cmd='$OBJDUMP -f'
5523 darwin* | rhapsody*)
5524 lt_cv_deplibs_check_method=pass_all
5527 freebsd* | dragonfly*)
5528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5531 # Not sure whether the presence of OpenBSD here was a mistake.
5532 # Let's accept both of them until this is cleared up.
5533 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5534 lt_cv_file_magic_cmd=/usr/bin/file
5535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5539 lt_cv_deplibs_check_method=pass_all
5544 lt_cv_deplibs_check_method=pass_all
5547 hpux10.20* | hpux11*)
5548 lt_cv_file_magic_cmd=/usr/bin/file
5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5555 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]'
5556 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5560 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5566 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5570 irix5* | irix6* | nonstopux*)
5572 *-32|*"-32 ") libmagic=32-bit;;
5573 *-n32|*"-n32 ") libmagic=N32;;
5574 *-64|*"-64 ") libmagic=64-bit;;
5575 *) libmagic=never-match;;
5577 lt_cv_deplibs_check_method=pass_all
5580 # This must be glibc/ELF.
5581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5582 lt_cv_deplibs_check_method=pass_all
5585 netbsd* | netbsdelf*-gnu)
5586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5595 lt_cv_file_magic_cmd=/usr/bin/file
5596 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5600 lt_cv_deplibs_check_method=pass_all
5604 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5611 osf3* | osf4* | osf5*)
5612 lt_cv_deplibs_check_method=pass_all
5616 lt_cv_deplibs_check_method=pass_all
5620 lt_cv_deplibs_check_method=pass_all
5623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5624 lt_cv_deplibs_check_method=pass_all
5628 case $host_vendor in
5630 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]'
5631 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5634 lt_cv_deplibs_check_method=pass_all
5637 lt_cv_file_magic_cmd='/bin/file'
5638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5641 lt_cv_file_magic_cmd='/bin/file'
5642 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5643 lt_cv_file_magic_test_file=/lib/libc.so
5646 lt_cv_deplibs_check_method=pass_all
5649 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_deplibs_check_method=pass_all
5658 lt_cv_deplibs_check_method=pass_all
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5664 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5668 if test "$build" = "$host"; then
5671 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5674 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5680 file_magic_cmd=$lt_cv_file_magic_cmd
5681 deplibs_check_method=$lt_cv_deplibs_check_method
5682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_DLLTOOL+y}
5712 printf %s "(cached) " >&6
5714 if test -n "$DLLTOOL"; then
5715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 case $as_dir in #(((
5724 *) as_dir=$as_dir/ ;;
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 DLLTOOL=$ac_cv_prog_DLLTOOL
5739 if test -n "$DLLTOOL"; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5741 printf "%s\n" "$DLLTOOL" >&6; }
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5749 if test -z "$ac_cv_prog_DLLTOOL"; then
5750 ac_ct_DLLTOOL=$DLLTOOL
5751 # Extract the first word of "dlltool", so it can be a program name with args.
5752 set dummy dlltool; ac_word=$2
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 printf %s "checking for $ac_word... " >&6; }
5755 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5757 printf %s "(cached) " >&6
5759 if test -n "$ac_ct_DLLTOOL"; then
5760 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 case $as_dir in #(((
5769 *) as_dir=$as_dir/ ;;
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5783 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5784 if test -n "$ac_ct_DLLTOOL"; then
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5786 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 printf "%s\n" "no" >&6; }
5792 if test "x$ac_ct_DLLTOOL" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5801 DLLTOOL=$ac_ct_DLLTOOL
5804 DLLTOOL="$ac_cv_prog_DLLTOOL"
5807 test -z "$DLLTOOL" && DLLTOOL=dlltool
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5819 printf %s "checking how to associate runtime and link libraries... " >&6; }
5820 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5822 printf %s "(cached) " >&6
5824 lt_cv_sharedlib_from_linklib_cmd='unknown'
5827 cygwin* | mingw* | pw32* | cegcc*)
5828 # two different shell functions defined in ltmain.sh;
5829 # decide which one to use based on capabilities of $DLLTOOL
5830 case `$DLLTOOL --help 2>&1` in
5831 *--identify-strict*)
5832 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5835 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5840 # fallback: assume linklib IS sharedlib
5841 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5847 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5848 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5849 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5857 if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 printf %s "checking for $ac_word... " >&6; }
5864 if test ${ac_cv_prog_AR+y}
5866 printf %s "(cached) " >&6
5868 if test -n "$AR"; then
5869 ac_cv_prog_AR="$AR" # Let the user override the test.
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 case $as_dir in #(((
5878 *) as_dir=$as_dir/ ;;
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5893 if test -n "$AR"; then
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5895 printf "%s\n" "$AR" >&6; }
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 printf "%s\n" "no" >&6; }
5902 test -n "$AR" && break
5905 if test -z "$AR"; then
5909 # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 printf %s "checking for $ac_word... " >&6; }
5913 if test ${ac_cv_prog_ac_ct_AR+y}
5915 printf %s "(cached) " >&6
5917 if test -n "$ac_ct_AR"; then
5918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 case $as_dir in #(((
5927 *) as_dir=$as_dir/ ;;
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_AR="$ac_prog"
5932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942 if test -n "$ac_ct_AR"; then
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944 printf "%s\n" "$ac_ct_AR" >&6; }
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 printf "%s\n" "no" >&6; }
5951 test -n "$ac_ct_AR" && break
5954 if test "x$ac_ct_AR" = x; then
5957 case $cross_compiling:$ac_tool_warned in
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5981 printf %s "checking for archiver @FILE support... " >&6; }
5982 if test ${lt_cv_ar_at_file+y}
5984 printf %s "(cached) " >&6
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5998 if ac_fn_c_try_compile "$LINENO"
6000 echo conftest.$ac_objext > conftest.lst
6001 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6003 (eval $lt_ar_try) 2>&5
6005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6006 test $ac_status = 0; }
6007 if test 0 -eq "$ac_status"; then
6008 # Ensure the archiver fails upon bogus file names.
6009 rm -f conftest.$ac_objext libconftest.a
6010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6011 (eval $lt_ar_try) 2>&5
6013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014 test $ac_status = 0; }
6015 if test 0 -ne "$ac_status"; then
6019 rm -f conftest.* libconftest.a
6022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6026 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6028 if test no = "$lt_cv_ar_at_file"; then
6031 archiver_list_spec=$lt_cv_ar_at_file
6040 if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}strip; ac_word=$2
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 printf %s "checking for $ac_word... " >&6; }
6045 if test ${ac_cv_prog_STRIP+y}
6047 printf %s "(cached) " >&6
6049 if test -n "$STRIP"; then
6050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 case $as_dir in #(((
6059 *) as_dir=$as_dir/ ;;
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6073 STRIP=$ac_cv_prog_STRIP
6074 if test -n "$STRIP"; then
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6076 printf "%s\n" "$STRIP" >&6; }
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 printf "%s\n" "no" >&6; }
6084 if test -z "$ac_cv_prog_STRIP"; then
6086 # Extract the first word of "strip", so it can be a program name with args.
6087 set dummy strip; ac_word=$2
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 printf %s "checking for $ac_word... " >&6; }
6090 if test ${ac_cv_prog_ac_ct_STRIP+y}
6092 printf %s "(cached) " >&6
6094 if test -n "$ac_ct_STRIP"; then
6095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 case $as_dir in #(((
6104 *) as_dir=$as_dir/ ;;
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_ac_ct_STRIP="strip"
6109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6119 if test -n "$ac_ct_STRIP"; then
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6121 printf "%s\n" "$ac_ct_STRIP" >&6; }
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 printf "%s\n" "no" >&6; }
6127 if test "x$ac_ct_STRIP" = x; then
6130 case $cross_compiling:$ac_tool_warned in
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6139 STRIP="$ac_cv_prog_STRIP"
6142 test -z "$STRIP" && STRIP=:
6149 if test -n "$ac_tool_prefix"; then
6150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 printf %s "checking for $ac_word... " >&6; }
6154 if test ${ac_cv_prog_RANLIB+y}
6156 printf %s "(cached) " >&6
6158 if test -n "$RANLIB"; then
6159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 case $as_dir in #(((
6168 *) as_dir=$as_dir/ ;;
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6182 RANLIB=$ac_cv_prog_RANLIB
6183 if test -n "$RANLIB"; then
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6185 printf "%s\n" "$RANLIB" >&6; }
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 printf "%s\n" "no" >&6; }
6193 if test -z "$ac_cv_prog_RANLIB"; then
6194 ac_ct_RANLIB=$RANLIB
6195 # Extract the first word of "ranlib", so it can be a program name with args.
6196 set dummy ranlib; ac_word=$2
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 printf %s "checking for $ac_word... " >&6; }
6199 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6201 printf %s "(cached) " >&6
6203 if test -n "$ac_ct_RANLIB"; then
6204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 case $as_dir in #(((
6213 *) as_dir=$as_dir/ ;;
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_ac_ct_RANLIB="ranlib"
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6230 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 printf "%s\n" "no" >&6; }
6236 if test "x$ac_ct_RANLIB" = x; then
6239 case $cross_compiling:$ac_tool_warned in
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6245 RANLIB=$ac_ct_RANLIB
6248 RANLIB="$ac_cv_prog_RANLIB"
6251 test -z "$RANLIB" && RANLIB=:
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6263 if test -n "$RANLIB"; then
6266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6277 lock_old_archive_extraction=yes ;;
6279 lock_old_archive_extraction=no ;;
6302 for ac_prog in gawk mawk nawk awk
6304 # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 printf %s "checking for $ac_word... " >&6; }
6308 if test ${ac_cv_prog_AWK+y}
6310 printf %s "(cached) " >&6
6312 if test -n "$AWK"; then
6313 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 case $as_dir in #(((
6322 *) as_dir=$as_dir/ ;;
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_AWK="$ac_prog"
6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6337 if test -n "$AWK"; then
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6339 printf "%s\n" "$AWK" >&6; }
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6346 test -n "$AWK" && break
6367 # If no C compiler was specified, use CC.
6370 # If no C compiler flags were specified, use CFLAGS.
6371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6373 # Allow CC to be a program name with arguments.
6377 # Check for command to grab the raw symbol name followed by C symbol from nm.
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6379 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6380 if test ${lt_cv_sys_global_symbol_pipe+y}
6382 printf %s "(cached) " >&6
6385 # These are sane defaults that work on at least a few old systems.
6386 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6388 # Character class describing NM global symbol codes.
6389 symcode='[BCDEGRST]'
6391 # Regexp to match symbols that can be accessed directly from C.
6392 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6394 # Define system-specific variables.
6399 cygwin* | mingw* | pw32* | cegcc*)
6400 symcode='[ABCDGISTW]'
6403 if test ia64 = "$host_cpu"; then
6404 symcode='[ABCDEGRST]'
6408 symcode='[BCDEGRST]'
6411 symcode='[BCDEGQRST]'
6422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433 symcode='[ABCDGIRSTW]' ;;
6436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6437 # Gets list of data symbols to import.
6438 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6439 # Adjust the below global symbol transforms to fixup imported variables.
6440 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6441 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6442 lt_c_name_lib_hook="\
6443 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6444 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6446 # Disable hooks by default.
6447 lt_cv_sys_global_symbol_to_import=
6453 # Transform an extracted symbol line into a proper C declaration.
6454 # Some systems (esp. on ia64) link data and code symbols differently,
6455 # so use this general approach.
6456 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6458 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6459 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6461 # Transform an extracted symbol line into symbol name and symbol address
6462 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6464 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6465 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6467 # Transform an extracted symbol line into symbol name with lib prefix and
6469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6470 $lt_c_name_lib_hook\
6471 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6472 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6473 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6475 # Handle CRLF in mingw tool chain
6479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6483 # Try without a prefix underscore, then with it.
6484 for ac_symprfx in "" "_"; do
6486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6487 symxfrm="\\1 $ac_symprfx\\2 \\2"
6489 # Write the raw and C identifiers.
6490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6491 # Fake it for dumpbin and say T for any non-static function,
6492 # D for any global variable and I for any imported variable.
6493 # Also find C++ and __fastcall symbols from MSVC++,
6494 # which start with @ or ?.
6495 lt_cv_sys_global_symbol_pipe="$AWK '"\
6496 " {last_section=section; section=\$ 3};"\
6497 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6498 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6499 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6500 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6501 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6502 " \$ 0!~/External *\|/{next};"\
6503 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6504 " {if(hide[section]) next};"\
6505 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6506 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6507 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6508 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6509 " ' prfx=^$ac_symprfx"
6511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6513 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6515 # Check to see that the pipe works correctly.
6519 cat > conftest.$ac_ext <<_LT_EOF
6524 void nm_test_func(void);
6525 void nm_test_func(void){}
6529 int main(){nm_test_var='a';nm_test_func();return(0);}
6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6533 (eval $ac_compile) 2>&5
6535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6536 test $ac_status = 0; }; then
6537 # Now try to grab the symbols.
6539 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6540 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6541 # Try sorting and uniquifying the output.
6542 if sort "$nlist" | uniq > "$nlist"T; then
6543 mv -f "$nlist"T "$nlist"
6548 # Make sure that we snagged all the symbols we need.
6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551 cat <<_LT_EOF > conftest.$ac_ext
6552 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6553 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6554 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6555 relocations are performed -- see ld's documentation on pseudo-relocs. */
6556 # define LT_DLSYM_CONST
6557 #elif defined __osf__
6558 /* This system does not cope well with relocations in const data. */
6559 # define LT_DLSYM_CONST
6561 # define LT_DLSYM_CONST const
6569 # Now generate the symbol file.
6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6572 cat <<_LT_EOF >> conftest.$ac_ext
6574 /* The mapping between symbol names and symbols. */
6575 LT_DLSYM_CONST struct {
6579 lt__PROGRAM__LTX_preloaded_symbols[] =
6581 { "@PROGRAM@", (void *) 0 },
6583 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6584 cat <<\_LT_EOF >> conftest.$ac_ext
6588 /* This works around a problem in FreeBSD linker */
6589 #ifdef FREEBSD_WORKAROUND
6590 static const void *lt_preloaded_setup() {
6591 return lt__PROGRAM__LTX_preloaded_symbols;
6599 # Now try linking the two files.
6600 mv conftest.$ac_objext conftstm.$ac_objext
6601 lt_globsym_save_LIBS=$LIBS
6602 lt_globsym_save_CFLAGS=$CFLAGS
6603 LIBS=conftstm.$ac_objext
6604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6606 (eval $ac_link) 2>&5
6608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6612 LIBS=$lt_globsym_save_LIBS
6613 CFLAGS=$lt_globsym_save_CFLAGS
6615 echo "cannot find nm_test_func in $nlist" >&5
6618 echo "cannot find nm_test_var in $nlist" >&5
6621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624 echo "$progname: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6627 rm -rf conftest* conftst*
6629 # Do not use the global_symbol_pipe unless it works.
6630 if test yes = "$pipe_works"; then
6633 lt_cv_sys_global_symbol_pipe=
6639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6640 lt_cv_sys_global_symbol_to_cdecl=
6642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6644 printf "%s\n" "failed" >&6; }
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6647 printf "%s\n" "ok" >&6; }
6650 # Response file support.
6651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652 nm_file_list_spec='@'
6653 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6654 nm_file_list_spec='@'
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6694 printf %s "checking for sysroot... " >&6; }
6696 # Check whether --with-sysroot was given.
6697 if test ${with_sysroot+y}
6699 withval=$with_sysroot;
6706 case $with_sysroot in #(
6708 if test yes = "$GCC"; then
6709 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6713 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6719 printf "%s\n" "$with_sysroot" >&6; }
6720 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6725 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6732 printf %s "checking for a working dd... " >&6; }
6733 if test ${ac_cv_path_lt_DD+y}
6735 printf %s "(cached) " >&6
6737 printf 0123456789abcdef0123456789abcdef >conftest.i
6738 cat conftest.i conftest.i >conftest2.i
6740 if test -z "$lt_DD"; then
6741 ac_path_lt_DD_found=false
6742 # Loop through the user's path and test for each of PROGNAME-LIST
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 case $as_dir in #(((
6750 *) as_dir=$as_dir/ ;;
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6756 as_fn_executable_p "$ac_path_lt_DD" || continue
6757 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6758 cmp -s conftest.i conftest.out \
6759 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6761 $ac_path_lt_DD_found && break 3
6766 if test -z "$ac_cv_path_lt_DD"; then
6770 ac_cv_path_lt_DD=$lt_DD
6773 rm -f conftest.i conftest2.i conftest.out
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6776 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6780 printf %s "checking how to truncate binary pipes... " >&6; }
6781 if test ${lt_cv_truncate_bin+y}
6783 printf %s "(cached) " >&6
6785 printf 0123456789abcdef0123456789abcdef >conftest.i
6786 cat conftest.i conftest.i >conftest2.i
6788 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6789 cmp -s conftest.i conftest.out \
6790 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6792 rm -f conftest.i conftest2.i conftest.out
6793 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6796 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6804 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6807 for cc_temp in $*""; do
6809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6815 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6818 # Check whether --enable-libtool-lock was given.
6819 if test ${enable_libtool_lock+y}
6821 enableval=$enable_libtool_lock;
6824 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6826 # Some flags need to be propagated to the compiler or linker for good
6830 # Find out what ABI is being produced by ac_compile, and set mode
6831 # options accordingly.
6832 echo 'int i;' > conftest.$ac_ext
6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834 (eval $ac_compile) 2>&5
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6850 # Find out what ABI is being produced by ac_compile, and set linker
6851 # options accordingly.
6852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854 (eval $ac_compile) 2>&5
6856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 if test yes = "$lt_cv_prog_gnu_ld"; then
6859 case `/usr/bin/file conftest.$ac_objext` in
6861 LD="${LD-ld} -melf32bsmip"
6864 LD="${LD-ld} -melf32bmipn32"
6867 LD="${LD-ld} -melf64bmip"
6871 case `/usr/bin/file conftest.$ac_objext` in
6888 # Find out what ABI is being produced by ac_compile, and set linker
6889 # options accordingly.
6890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6897 case `/usr/bin/file conftest.$ac_objext` in
6905 case `/usr/bin/file conftest.$ac_objext` in
6907 emul="${emul}btsmip"
6910 emul="${emul}ltsmip"
6913 case `/usr/bin/file conftest.$ac_objext` in
6918 LD="${LD-ld} -m $emul"
6923 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6924 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6925 # Find out what ABI is being produced by ac_compile, and set linker
6926 # options accordingly. Note that the listed cases only cover the
6927 # situations where additional linker options are needed (such as when
6928 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6929 # vice versa); the common cases where no linker options are needed do
6930 # not appear in the list.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933 (eval $ac_compile) 2>&5
6935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
6937 case `/usr/bin/file conftest.o` in
6940 x86_64-*kfreebsd*-gnu)
6941 LD="${LD-ld} -m elf_i386_fbsd"
6944 case `/usr/bin/file conftest.o` in
6946 LD="${LD-ld} -m elf32_x86_64"
6949 LD="${LD-ld} -m elf_i386"
6953 powerpc64le-*linux*)
6954 LD="${LD-ld} -m elf32lppclinux"
6957 LD="${LD-ld} -m elf32ppclinux"
6960 LD="${LD-ld} -m elf_s390"
6963 LD="${LD-ld} -m elf32_sparc"
6969 x86_64-*kfreebsd*-gnu)
6970 LD="${LD-ld} -m elf_x86_64_fbsd"
6973 LD="${LD-ld} -m elf_x86_64"
6976 LD="${LD-ld} -m elf64lppc"
6979 LD="${LD-ld} -m elf64ppc"
6981 s390*-*linux*|s390*-*tpf*)
6982 LD="${LD-ld} -m elf64_s390"
6985 LD="${LD-ld} -m elf64_sparc"
6995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6997 CFLAGS="$CFLAGS -belf"
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999 printf %s "checking whether the C compiler needs -belf... " >&6; }
7000 if test ${lt_cv_cc_needs_belf+y}
7002 printf %s "(cached) " >&6
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7021 if ac_fn_c_try_link "$LINENO"
7023 lt_cv_cc_needs_belf=yes
7025 lt_cv_cc_needs_belf=no
7027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028 conftest$ac_exeext conftest.$ac_ext
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7037 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7038 if test yes != "$lt_cv_cc_needs_belf"; then
7039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7044 # Find out what ABI is being produced by ac_compile, and set linker
7045 # options accordingly.
7046 echo 'int i;' > conftest.$ac_ext
7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048 (eval $ac_compile) 2>&5
7050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }; then
7052 case `/usr/bin/file conftest.o` in
7054 case $lt_cv_prog_gnu_ld in
7057 i?86-*-solaris*|x86_64-*-solaris*)
7058 LD="${LD-ld} -m elf_x86_64"
7061 LD="${LD-ld} -m elf64_sparc"
7064 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7065 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7070 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7082 need_locks=$enable_libtool_lock
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}mt; ac_word=$2
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 printf %s "checking for $ac_word... " >&6; }
7089 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7091 printf %s "(cached) " >&6
7093 if test -n "$MANIFEST_TOOL"; then
7094 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 case $as_dir in #(((
7103 *) as_dir=$as_dir/ ;;
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7117 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7118 if test -n "$MANIFEST_TOOL"; then
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7120 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 printf "%s\n" "no" >&6; }
7128 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7129 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7130 # Extract the first word of "mt", so it can be a program name with args.
7131 set dummy mt; ac_word=$2
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 printf %s "checking for $ac_word... " >&6; }
7134 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7136 printf %s "(cached) " >&6
7138 if test -n "$ac_ct_MANIFEST_TOOL"; then
7139 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 case $as_dir in #(((
7148 *) as_dir=$as_dir/ ;;
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7162 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7163 if test -n "$ac_ct_MANIFEST_TOOL"; then
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7165 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 printf "%s\n" "no" >&6; }
7171 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7180 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7183 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7186 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7188 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7189 if test ${lt_cv_path_mainfest_tool+y}
7191 printf %s "(cached) " >&6
7193 lt_cv_path_mainfest_tool=no
7194 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7195 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7196 cat conftest.err >&5
7197 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7198 lt_cv_path_mainfest_tool=yes
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7203 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7204 if test yes != "$lt_cv_path_mainfest_tool"; then
7214 rhapsody* | darwin*)
7215 if test -n "$ac_tool_prefix"; then
7216 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7217 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 printf %s "checking for $ac_word... " >&6; }
7220 if test ${ac_cv_prog_DSYMUTIL+y}
7222 printf %s "(cached) " >&6
7224 if test -n "$DSYMUTIL"; then
7225 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 case $as_dir in #(((
7234 *) as_dir=$as_dir/ ;;
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7248 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7249 if test -n "$DSYMUTIL"; then
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7251 printf "%s\n" "$DSYMUTIL" >&6; }
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 printf "%s\n" "no" >&6; }
7259 if test -z "$ac_cv_prog_DSYMUTIL"; then
7260 ac_ct_DSYMUTIL=$DSYMUTIL
7261 # Extract the first word of "dsymutil", so it can be a program name with args.
7262 set dummy dsymutil; ac_word=$2
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 printf %s "checking for $ac_word... " >&6; }
7265 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7267 printf %s "(cached) " >&6
7269 if test -n "$ac_ct_DSYMUTIL"; then
7270 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 case $as_dir in #(((
7279 *) as_dir=$as_dir/ ;;
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7293 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7294 if test -n "$ac_ct_DSYMUTIL"; then
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7296 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 printf "%s\n" "no" >&6; }
7302 if test "x$ac_ct_DSYMUTIL" = x; then
7305 case $cross_compiling:$ac_tool_warned in
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7311 DSYMUTIL=$ac_ct_DSYMUTIL
7314 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7317 if test -n "$ac_tool_prefix"; then
7318 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 printf %s "checking for $ac_word... " >&6; }
7322 if test ${ac_cv_prog_NMEDIT+y}
7324 printf %s "(cached) " >&6
7326 if test -n "$NMEDIT"; then
7327 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 case $as_dir in #(((
7336 *) as_dir=$as_dir/ ;;
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7350 NMEDIT=$ac_cv_prog_NMEDIT
7351 if test -n "$NMEDIT"; then
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7353 printf "%s\n" "$NMEDIT" >&6; }
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 printf "%s\n" "no" >&6; }
7361 if test -z "$ac_cv_prog_NMEDIT"; then
7362 ac_ct_NMEDIT=$NMEDIT
7363 # Extract the first word of "nmedit", so it can be a program name with args.
7364 set dummy nmedit; ac_word=$2
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 printf %s "checking for $ac_word... " >&6; }
7367 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7369 printf %s "(cached) " >&6
7371 if test -n "$ac_ct_NMEDIT"; then
7372 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 case $as_dir in #(((
7381 *) as_dir=$as_dir/ ;;
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396 if test -n "$ac_ct_NMEDIT"; then
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7398 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 printf "%s\n" "no" >&6; }
7404 if test "x$ac_ct_NMEDIT" = x; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7413 NMEDIT=$ac_ct_NMEDIT
7416 NMEDIT="$ac_cv_prog_NMEDIT"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 printf %s "checking for $ac_word... " >&6; }
7424 if test ${ac_cv_prog_LIPO+y}
7426 printf %s "(cached) " >&6
7428 if test -n "$LIPO"; then
7429 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 case $as_dir in #(((
7438 *) as_dir=$as_dir/ ;;
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7452 LIPO=$ac_cv_prog_LIPO
7453 if test -n "$LIPO"; then
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7455 printf "%s\n" "$LIPO" >&6; }
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 printf "%s\n" "no" >&6; }
7463 if test -z "$ac_cv_prog_LIPO"; then
7465 # Extract the first word of "lipo", so it can be a program name with args.
7466 set dummy lipo; ac_word=$2
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 printf %s "checking for $ac_word... " >&6; }
7469 if test ${ac_cv_prog_ac_ct_LIPO+y}
7471 printf %s "(cached) " >&6
7473 if test -n "$ac_ct_LIPO"; then
7474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 case $as_dir in #(((
7483 *) as_dir=$as_dir/ ;;
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_ac_ct_LIPO="lipo"
7488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7498 if test -n "$ac_ct_LIPO"; then
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7500 printf "%s\n" "$ac_ct_LIPO" >&6; }
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7506 if test "x$ac_ct_LIPO" = x; then
7509 case $cross_compiling:$ac_tool_warned in
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned=yes ;;
7518 LIPO="$ac_cv_prog_LIPO"
7521 if test -n "$ac_tool_prefix"; then
7522 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7523 set dummy ${ac_tool_prefix}otool; ac_word=$2
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 printf %s "checking for $ac_word... " >&6; }
7526 if test ${ac_cv_prog_OTOOL+y}
7528 printf %s "(cached) " >&6
7530 if test -n "$OTOOL"; then
7531 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 case $as_dir in #(((
7540 *) as_dir=$as_dir/ ;;
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7554 OTOOL=$ac_cv_prog_OTOOL
7555 if test -n "$OTOOL"; then
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7557 printf "%s\n" "$OTOOL" >&6; }
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 printf "%s\n" "no" >&6; }
7565 if test -z "$ac_cv_prog_OTOOL"; then
7567 # Extract the first word of "otool", so it can be a program name with args.
7568 set dummy otool; ac_word=$2
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 printf %s "checking for $ac_word... " >&6; }
7571 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7573 printf %s "(cached) " >&6
7575 if test -n "$ac_ct_OTOOL"; then
7576 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 case $as_dir in #(((
7585 *) as_dir=$as_dir/ ;;
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_ac_ct_OTOOL="otool"
7590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7599 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7600 if test -n "$ac_ct_OTOOL"; then
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7602 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 printf "%s\n" "no" >&6; }
7608 if test "x$ac_ct_OTOOL" = x; then
7611 case $cross_compiling:$ac_tool_warned in
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7620 OTOOL="$ac_cv_prog_OTOOL"
7623 if test -n "$ac_tool_prefix"; then
7624 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7625 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 printf %s "checking for $ac_word... " >&6; }
7628 if test ${ac_cv_prog_OTOOL64+y}
7630 printf %s "(cached) " >&6
7632 if test -n "$OTOOL64"; then
7633 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 case $as_dir in #(((
7642 *) as_dir=$as_dir/ ;;
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 printf "%s\n" "$OTOOL64" >&6; }
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668 ac_ct_OTOOL64=$OTOOL64
7669 # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 printf %s "checking for $ac_word... " >&6; }
7673 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7675 printf %s "(cached) " >&6
7677 if test -n "$ac_ct_OTOOL64"; then
7678 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 case $as_dir in #(((
7687 *) as_dir=$as_dir/ ;;
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_OTOOL64="otool64"
7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7702 if test -n "$ac_ct_OTOOL64"; then
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7704 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 printf "%s\n" "no" >&6; }
7710 if test "x$ac_ct_OTOOL64" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7719 OTOOL64=$ac_ct_OTOOL64
7722 OTOOL64="$ac_cv_prog_OTOOL64"
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7752 printf %s "checking for -single_module linker flag... " >&6; }
7753 if test ${lt_cv_apple_cc_single_mod+y}
7755 printf %s "(cached) " >&6
7757 lt_cv_apple_cc_single_mod=no
7758 if test -z "$LT_MULTI_MODULE"; then
7759 # By default we will add the -single_module flag. You can override
7760 # by either setting the environment variable LT_MULTI_MODULE
7761 # non-empty at configure time, or by adding -multi_module to the
7763 rm -rf libconftest.dylib*
7764 echo "int foo(void){return 1;}" > conftest.c
7765 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7766 -dynamiclib -Wl,-single_module conftest.c" >&5
7767 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7768 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7770 # If there is a non-empty error log, and "single_module"
7771 # appears in it, assume the flag caused a linker warning
7772 if test -s conftest.err && $GREP single_module conftest.err; then
7773 cat conftest.err >&5
7774 # Otherwise, if the output was created with a 0 exit code from
7775 # the compiler, it worked.
7776 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7777 lt_cv_apple_cc_single_mod=yes
7779 cat conftest.err >&5
7781 rm -rf libconftest.dylib*
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7786 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7789 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7790 if test ${lt_cv_ld_exported_symbols_list+y}
7792 printf %s "(cached) " >&6
7794 lt_cv_ld_exported_symbols_list=no
7795 save_LDFLAGS=$LDFLAGS
7796 echo "_main" > conftest.sym
7797 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7809 if ac_fn_c_try_link "$LINENO"
7811 lt_cv_ld_exported_symbols_list=yes
7813 lt_cv_ld_exported_symbols_list=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LDFLAGS=$save_LDFLAGS
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7821 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7824 printf %s "checking for -force_load linker flag... " >&6; }
7825 if test ${lt_cv_ld_force_load+y}
7827 printf %s "(cached) " >&6
7829 lt_cv_ld_force_load=no
7830 cat > conftest.c << _LT_EOF
7831 int forced_loaded() { return 2;}
7833 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7834 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7835 echo "$AR cr libconftest.a conftest.o" >&5
7836 $AR cr libconftest.a conftest.o 2>&5
7837 echo "$RANLIB libconftest.a" >&5
7838 $RANLIB libconftest.a 2>&5
7839 cat > conftest.c << _LT_EOF
7840 int main() { return 0;}
7842 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7843 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7845 if test -s conftest.err && $GREP force_load conftest.err; then
7846 cat conftest.err >&5
7847 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7848 lt_cv_ld_force_load=yes
7850 cat conftest.err >&5
7852 rm -f conftest.err libconftest.a conftest conftest.c
7853 rm -rf conftest.dSYM
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7857 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7859 rhapsody* | darwin1.[012])
7860 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7862 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7863 darwin*) # darwin 5.x on
7864 # if running on 10.5 or later, the deployment target defaults
7865 # to the OS version, if on x86, and 10.4, the deployment
7866 # target defaults to 10.4. Don't you love it?
7867 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7868 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7869 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7871 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7873 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7877 if test yes = "$lt_cv_apple_cc_single_mod"; then
7878 _lt_dar_single_mod='$single_module'
7880 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7881 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7883 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7885 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7886 _lt_dsymutil='~$DSYMUTIL $lib || :'
7893 # func_munge_path_list VARIABLE PATH
7894 # -----------------------------------
7895 # VARIABLE is name of variable containing _space_ separated list of
7896 # directories to be munged by the contents of PATH, which is string
7899 # string "DIR[ DIR]" will be prepended to VARIABLE
7901 # string "DIR[ DIR]" will be appended to VARIABLE
7902 # "DIRP[:DIRP]::[DIRA:]DIRA"
7903 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7904 # "DIRA[ DIRA]" will be appended to VARIABLE
7906 # VARIABLE will be replaced by "DIR[ DIR]"
7907 func_munge_path_list ()
7913 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7916 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7919 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7920 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7923 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7928 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7930 if test "x$ac_cv_header_dlfcn_h" = xyes
7932 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7950 # Check whether --enable-shared was given.
7951 if test ${enable_shared+y}
7953 enableval=$enable_shared; p=${PACKAGE-default}
7955 yes) enable_shared=yes ;;
7956 no) enable_shared=no ;;
7959 # Look at the argument we got. We use all the common list separators.
7960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7961 for pkg in $enableval; do
7963 if test "X$pkg" = "X$p"; then
7982 # Check whether --enable-static was given.
7983 if test ${enable_static+y}
7985 enableval=$enable_static; p=${PACKAGE-default}
7987 yes) enable_static=yes ;;
7988 no) enable_static=no ;;
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7993 for pkg in $enableval; do
7995 if test "X$pkg" = "X$p"; then
8015 # Check whether --with-pic was given.
8016 if test ${with_pic+y}
8018 withval=$with_pic; lt_p=${PACKAGE-default}
8020 yes|no) pic_mode=$withval ;;
8023 # Look at the argument we got. We use all the common list separators.
8024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8025 for lt_pkg in $withval; do
8027 if test "X$lt_pkg" = "X$lt_p"; then
8045 # Check whether --enable-fast-install was given.
8046 if test ${enable_fast_install+y}
8048 enableval=$enable_fast_install; p=${PACKAGE-default}
8050 yes) enable_fast_install=yes ;;
8051 no) enable_fast_install=no ;;
8053 enable_fast_install=no
8054 # Look at the argument we got. We use all the common list separators.
8055 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8056 for pkg in $enableval; do
8058 if test "X$pkg" = "X$p"; then
8059 enable_fast_install=yes
8066 enable_fast_install=yes
8076 shared_archive_member_spec=
8077 case $host,$enable_shared in
8078 power*-*-aix[5-9]*,yes)
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8080 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8082 # Check whether --with-aix-soname was given.
8083 if test ${with_aix_soname+y}
8085 withval=$with_aix_soname; case $withval in
8089 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8092 lt_cv_with_aix_soname=$with_aix_soname
8094 if test ${lt_cv_with_aix_soname+y}
8096 printf %s "(cached) " >&6
8098 lt_cv_with_aix_soname=aix
8101 with_aix_soname=$lt_cv_with_aix_soname
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8105 printf "%s\n" "$with_aix_soname" >&6; }
8106 if test aix != "$with_aix_soname"; then
8107 # For the AIX way of multilib, we name the shared archive member
8108 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8109 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8110 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8111 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8112 if test 64 = "${OBJECT_MODE-32}"; then
8113 shared_archive_member_spec=shr_64
8115 shared_archive_member_spec=shr
8133 # This can be used to rebuild libtool when needed
8134 LIBTOOL_DEPS=$ltmain
8136 # Always use our own libtool.
8137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}"; then
8184 setopt NO_GLOB_SUBST
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 printf %s "checking for objdir... " >&6; }
8189 if test ${lt_cv_objdir+y}
8191 printf %s "(cached) " >&6
8193 rm -f .libs 2>/dev/null
8194 mkdir .libs 2>/dev/null
8195 if test -d .libs; then
8198 # MS-DOS does not allow filenames that begin with a dot.
8201 rmdir .libs 2>/dev/null
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8204 printf "%s\n" "$lt_cv_objdir" >&6; }
8205 objdir=$lt_cv_objdir
8211 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8218 # AIX sometimes has problems with the GCC collect2 program. For some
8219 # reason, if we set the COLLECT_NAMES environment variable, the problems
8220 # vanish in a puff of smoke.
8221 if test set != "${COLLECT_NAMES+set}"; then
8223 export COLLECT_NAMES
8230 can_build_shared=yes
8232 # All known linkers require a '.a' archive for static linking (except MSVC,
8233 # which needs '.lib').
8236 with_gnu_ld=$lt_cv_prog_gnu_ld
8241 # Set sane defaults for various variables
8242 test -z "$CC" && CC=cc
8243 test -z "$LTCC" && LTCC=$CC
8244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8245 test -z "$LD" && LD=ld
8246 test -z "$ac_objext" && ac_objext=o
8248 func_cc_basename $compiler
8249 cc_basename=$func_cc_basename_result
8252 # Only perform the check for file, if the check method requires it
8253 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8254 case $deplibs_check_method in
8256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8258 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8259 if test ${lt_cv_path_MAGIC_CMD+y}
8261 printf %s "(cached) " >&6
8265 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8268 lt_save_MAGIC_CMD=$MAGIC_CMD
8269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8271 for ac_dir in $ac_dummy; do
8273 test -z "$ac_dir" && ac_dir=.
8274 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8275 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8276 if test -n "$file_magic_test_file"; then
8277 case $deplibs_check_method in
8279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8280 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8282 $EGREP "$file_magic_regex" > /dev/null; then
8287 *** Warning: the command libtool uses to detect shared libraries,
8288 *** $file_magic_cmd, produces output that libtool cannot recognize.
8289 *** The result is that libtool may fail to recognize shared libraries
8290 *** as such. This will affect the creation of libtool libraries that
8291 *** depend on shared libraries, but programs linked with such libtool
8292 *** libraries will work regardless of this problem. Nevertheless, you
8293 *** may want to report the problem to your system manager and/or to
8294 *** bug-libtool@gnu.org
8304 MAGIC_CMD=$lt_save_MAGIC_CMD
8309 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8310 if test -n "$MAGIC_CMD"; then
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8312 printf "%s\n" "$MAGIC_CMD" >&6; }
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 printf "%s\n" "no" >&6; }
8322 if test -z "$lt_cv_path_MAGIC_CMD"; then
8323 if test -n "$ac_tool_prefix"; then
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8325 printf %s "checking for file... " >&6; }
8326 if test ${lt_cv_path_MAGIC_CMD+y}
8328 printf %s "(cached) " >&6
8332 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8335 lt_save_MAGIC_CMD=$MAGIC_CMD
8336 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8337 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8338 for ac_dir in $ac_dummy; do
8340 test -z "$ac_dir" && ac_dir=.
8341 if test -f "$ac_dir/file"; then
8342 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8343 if test -n "$file_magic_test_file"; then
8344 case $deplibs_check_method in
8346 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8348 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8349 $EGREP "$file_magic_regex" > /dev/null; then
8354 *** Warning: the command libtool uses to detect shared libraries,
8355 *** $file_magic_cmd, produces output that libtool cannot recognize.
8356 *** The result is that libtool may fail to recognize shared libraries
8357 *** as such. This will affect the creation of libtool libraries that
8358 *** depend on shared libraries, but programs linked with such libtool
8359 *** libraries will work regardless of this problem. Nevertheless, you
8360 *** may want to report the problem to your system manager and/or to
8361 *** bug-libtool@gnu.org
8371 MAGIC_CMD=$lt_save_MAGIC_CMD
8376 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8377 if test -n "$MAGIC_CMD"; then
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379 printf "%s\n" "$MAGIC_CMD" >&6; }
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 printf "%s\n" "no" >&6; }
8395 # Use C for the default configuration in the libtool script
8399 ac_cpp='$CPP $CPPFLAGS'
8400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405 # Source file extension for C test sources.
8408 # Object file extension for compiled C test sources.
8412 # Code to be used in simple compile tests
8413 lt_simple_compile_test_code="int some_variable = 0;"
8415 # Code to be used in simple link tests
8416 lt_simple_link_test_code='int main(){return(0);}'
8424 # If no C compiler was specified, use CC.
8427 # If no C compiler flags were specified, use CFLAGS.
8428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8430 # Allow CC to be a program name with arguments.
8433 # Save the default compiler, since it gets overwritten when the other
8434 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8435 compiler_DEFAULT=$CC
8437 # save warnings/boilerplate of simple test code
8438 ac_outfile=conftest.$ac_objext
8439 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8440 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8441 _lt_compiler_boilerplate=`cat conftest.err`
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8446 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_linker_boilerplate=`cat conftest.err`
8452 ## There is no encapsulation within the following macros, do not change
8453 ## the running order or otherwise move them around unless you know exactly
8454 ## what you are doing...
8455 if test -n "$compiler"; then
8457 lt_prog_compiler_no_builtin_flag=
8459 if test yes = "$GCC"; then
8460 case $cc_basename in
8462 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8464 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8469 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8471 printf %s "(cached) " >&6
8473 lt_cv_prog_compiler_rtti_exceptions=no
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>conftest.err)
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_rtti_exceptions=yes
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8504 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8506 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8507 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8519 lt_prog_compiler_wl=
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_static=
8524 if test yes = "$GCC"; then
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_static='-static'
8530 # All AIX code is PIC.
8531 if test ia64 = "$host_cpu"; then
8532 # AIX 5 now supports IA64 processor
8533 lt_prog_compiler_static='-Bstatic'
8535 lt_prog_compiler_pic='-fPIC'
8541 # see comment about AmigaOS4 .so support
8542 lt_prog_compiler_pic='-fPIC'
8545 # FIXME: we need at least 68020 code to build shared libraries, but
8546 # adding the '-m68020' flag to GCC prevents building anything better,
8548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8554 # PIC is the default for these OSes.
8557 mingw* | cygwin* | pw32* | os2* | cegcc*)
8558 # This hack is so that the source file can tell whether it is being
8559 # built for inclusion in a dll (and should export symbols for example).
8560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8561 # (--disable-auto-import) libraries
8562 lt_prog_compiler_pic='-DDLL_EXPORT'
8565 lt_prog_compiler_static='$wl-static'
8570 darwin* | rhapsody*)
8571 # PIC is the default on this platform
8572 # Common symbols not allowed in MH_DYLIB files
8573 lt_prog_compiler_pic='-fno-common'
8577 # PIC is the default for Haiku.
8578 # The "-static" flag exists, but is broken.
8579 lt_prog_compiler_static=
8583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8585 # sets the default TLS model and affects inlining.
8591 lt_prog_compiler_pic='-fPIC'
8597 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8598 # Instead, we relocate shared libraries at runtime.
8602 # Just because we use GCC doesn't mean we suddenly get shared libraries
8603 # on systems that don't support them.
8604 lt_prog_compiler_can_build_shared=no
8609 # QNX uses GNU C++, but need to define -shared option too, otherwise
8611 lt_prog_compiler_pic='-fPIC -shared'
8615 if test -d /usr/nec; then
8616 lt_prog_compiler_pic=-Kconform_pic
8621 lt_prog_compiler_pic='-fPIC'
8625 case $cc_basename in
8626 nvcc*) # Cuda Compiler Driver 2.2
8627 lt_prog_compiler_wl='-Xlinker '
8628 if test -n "$lt_prog_compiler_pic"; then
8629 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8637 lt_prog_compiler_wl='-Wl,'
8638 if test ia64 = "$host_cpu"; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8646 darwin* | rhapsody*)
8647 # PIC is the default on this platform
8648 # Common symbols not allowed in MH_DYLIB files
8649 lt_prog_compiler_pic='-fno-common'
8650 case $cc_basename in
8652 # NAG Fortran compiler
8653 lt_prog_compiler_wl='-Wl,-Wl,,'
8654 lt_prog_compiler_pic='-PIC'
8655 lt_prog_compiler_static='-Bstatic'
8660 mingw* | cygwin* | pw32* | os2* | cegcc*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 lt_prog_compiler_static='$wl-static'
8671 hpux9* | hpux10* | hpux11*)
8672 lt_prog_compiler_wl='-Wl,'
8673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8680 lt_prog_compiler_pic='+Z'
8683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8684 lt_prog_compiler_static='$wl-a ${wl}archive'
8687 irix5* | irix6* | nonstopux*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC (with -KPIC) is the default.
8690 lt_prog_compiler_static='-non_shared'
8693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8694 case $cc_basename in
8695 # old Intel for x86_64, which still supported -KPIC.
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-static'
8701 # flang / f18. f95 an alias for gfortran or flang on Debian
8702 flang* | f18* | f95*)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fPIC'
8705 lt_prog_compiler_static='-static'
8707 # icc used to be incompatible with GCC.
8708 # ICC 10 doesn't accept -KPIC any more.
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-fPIC'
8712 lt_prog_compiler_static='-static'
8714 # Lahey Fortran 8.1.
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='--shared'
8718 lt_prog_compiler_static='--static'
8721 # NAG Fortran compiler
8722 lt_prog_compiler_wl='-Wl,-Wl,,'
8723 lt_prog_compiler_pic='-PIC'
8724 lt_prog_compiler_static='-Bstatic'
8727 # Fabrice Bellard et al's Tiny C Compiler
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-fPIC'
8730 lt_prog_compiler_static='-static'
8732 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8733 # Portland Group compilers (*not* the Pentium gcc compiler,
8734 # which looks to be a dead project)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='-fpic'
8737 lt_prog_compiler_static='-Bstatic'
8740 lt_prog_compiler_wl='-Wl,'
8741 # All Alpha code is PIC.
8742 lt_prog_compiler_static='-non_shared'
8744 xl* | bgxl* | bgf* | mpixl*)
8745 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-qpic'
8748 lt_prog_compiler_static='-qstaticlink'
8751 case `$CC -V 2>&1 | sed 5q` in
8752 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8753 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 lt_prog_compiler_wl=''
8758 *Sun\ F* | *Sun*Fortran*)
8759 lt_prog_compiler_pic='-KPIC'
8760 lt_prog_compiler_static='-Bstatic'
8761 lt_prog_compiler_wl='-Qoption ld '
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 lt_prog_compiler_wl='-Wl,'
8769 *Intel*\ [CF]*Compiler*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-fPIC'
8772 lt_prog_compiler_static='-static'
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-fpic'
8777 lt_prog_compiler_static='-Bstatic'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8790 # QNX uses GNU C++, but need to define -shared option too, otherwise
8792 lt_prog_compiler_pic='-fPIC -shared'
8795 osf3* | osf4* | osf5*)
8796 lt_prog_compiler_wl='-Wl,'
8797 # All OSF/1 code is PIC.
8798 lt_prog_compiler_static='-non_shared'
8802 lt_prog_compiler_static='-non_shared'
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 case $cc_basename in
8809 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8810 lt_prog_compiler_wl='-Qoption ld ';;
8812 lt_prog_compiler_wl='-Wl,';;
8817 lt_prog_compiler_wl='-Qoption ld '
8818 lt_prog_compiler_pic='-PIC'
8819 lt_prog_compiler_static='-Bstatic'
8822 sysv4 | sysv4.2uw2* | sysv4.3*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8829 if test -d /usr/nec; then
8830 lt_prog_compiler_pic='-Kconform_pic'
8831 lt_prog_compiler_static='-Bstatic'
8835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_can_build_shared=no
8847 lt_prog_compiler_pic='-pic'
8848 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_can_build_shared=no
8858 # For platforms that do not support PIC, -DPIC is meaningless:
8860 lt_prog_compiler_pic=
8863 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8868 printf %s "checking for $compiler option to produce PIC... " >&6; }
8869 if test ${lt_cv_prog_compiler_pic+y}
8871 printf %s "(cached) " >&6
8873 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8876 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8877 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8880 # Check to make sure the PIC flag actually works.
8882 if test -n "$lt_prog_compiler_pic"; then
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8884 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8885 if test ${lt_cv_prog_compiler_pic_works+y}
8887 printf %s "(cached) " >&6
8889 lt_cv_prog_compiler_pic_works=no
8890 ac_outfile=conftest.$ac_objext
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8893 # Insert the option either (1) after the last *FLAGS variable, or
8894 # (2) before a word containing "conftest.", or (3) at the end.
8895 # Note that $ac_compile itself does not contain backslashes and begins
8896 # with a dollar sign (not a hyphen), so the echo should work correctly.
8897 # The option is referenced via a variable to avoid confusing sed.
8898 lt_compile=`echo "$ac_compile" | $SED \
8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901 -e 's:$: $lt_compiler_flag:'`
8902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903 (eval "$lt_compile" 2>conftest.err)
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 if (exit $ac_status) && test -s "$ac_outfile"; then
8908 # The compiler can only warn and ignore the option if not recognized
8909 # So say no if there are warnings other than the usual output.
8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_pic_works=yes
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8920 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8922 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8923 case $lt_prog_compiler_pic in
8925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8928 lt_prog_compiler_pic=
8929 lt_prog_compiler_can_build_shared=no
8945 # Check to make sure the static flag actually works.
8947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8949 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8950 if test ${lt_cv_prog_compiler_static_works+y}
8952 printf %s "(cached) " >&6
8954 lt_cv_prog_compiler_static_works=no
8955 save_LDFLAGS=$LDFLAGS
8956 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8959 # The linker can only warn and ignore the option if not recognized
8960 # So say no if there are warnings
8961 if test -s conftest.err; then
8962 # Append any errors to the config.log.
8963 cat conftest.err 1>&5
8964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8966 if diff conftest.exp conftest.er2 >/dev/null; then
8967 lt_cv_prog_compiler_static_works=yes
8970 lt_cv_prog_compiler_static_works=yes
8974 LDFLAGS=$save_LDFLAGS
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8978 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8980 if test yes = "$lt_cv_prog_compiler_static_works"; then
8983 lt_prog_compiler_static=
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8993 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8994 if test ${lt_cv_prog_compiler_c_o+y}
8996 printf %s "(cached) " >&6
8998 lt_cv_prog_compiler_c_o=no
8999 $RM -r conftest 2>/dev/null
9003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005 lt_compiler_flag="-o out/conftest2.$ac_objext"
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 lt_compile=`echo "$ac_compile" | $SED \
9011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013 -e 's:$: $lt_compiler_flag:'`
9014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015 (eval "$lt_compile" 2>out/conftest.err)
9017 cat out/conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_c_o=yes
9031 # SGI C++ compiler will create directory out/ii_files/ for
9032 # template instantiation
9033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9034 $RM out/* && rmdir out
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9041 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9050 if test ${lt_cv_prog_compiler_c_o+y}
9052 printf %s "(cached) " >&6
9054 lt_cv_prog_compiler_c_o=no
9055 $RM -r conftest 2>/dev/null
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061 lt_compiler_flag="-o out/conftest2.$ac_objext"
9062 # Insert the option either (1) after the last *FLAGS variable, or
9063 # (2) before a word containing "conftest.", or (3) at the end.
9064 # Note that $ac_compile itself does not contain backslashes and begins
9065 # with a dollar sign (not a hyphen), so the echo should work correctly.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071 (eval "$lt_compile" 2>out/conftest.err)
9073 cat out/conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9077 # The compiler can only warn and ignore the option if not recognized
9078 # So say no if there are warnings
9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_c_o=yes
9087 # SGI C++ compiler will create directory out/ii_files/ for
9088 # template instantiation
9089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9090 $RM out/* && rmdir out
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9097 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9102 hard_links=nottested
9103 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9104 # do not overwrite the value of need_locks provided by the user
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9106 printf %s "checking if we can lock with hard links... " >&6; }
9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9111 ln conftest.a conftest.b 2>&5 || hard_links=no
9112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9114 printf "%s\n" "$hard_links" >&6; }
9115 if test no = "$hard_links"; then
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9117 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9130 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9133 allow_undefined_flag=
9134 always_export_symbols=no
9136 archive_expsym_cmds=
9137 compiler_needs_object=no
9138 enable_shared_with_static_runtimes=no
9139 export_dynamic_flag_spec=
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9141 hardcode_automatic=no
9143 hardcode_direct_absolute=no
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_separator=
9147 hardcode_shlibpath_var=unsupported
9149 link_all_deplibs=unknown
9152 old_archive_from_new_cmds=
9153 old_archive_from_expsyms_cmds=
9154 thread_safe_flag_spec=
9155 whole_archive_flag_spec=
9156 # include_expsyms should be a list of space-separated symbols to be *always*
9157 # included in the symbol list
9159 # exclude_expsyms can be an extended regexp of symbols to exclude
9160 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9161 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9162 # as well as any symbol that contains 'd'.
9163 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9164 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9165 # platforms (ab)use it in PIC code, but their linkers get confused if
9166 # the symbol is explicitly referenced. Since portable code cannot
9167 # rely on this symbol name, it's probably fine to never include it in
9168 # preloaded symbol tables.
9169 # Exclude shared library initialization/finalization symbols.
9170 extract_expsyms_cmds=
9173 cygwin* | mingw* | pw32* | cegcc*)
9174 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9175 # When not using gcc, we currently assume that we are using
9176 # Microsoft Visual C++.
9177 if test yes != "$GCC"; then
9182 # we just hope/assume this is gcc and not c89 (= MSVC++)
9188 linux* | k*bsd*-gnu | gnu*)
9195 # On some targets, GNU ld is compatible enough with the native linker
9196 # that we're better off using the native interface for both.
9197 lt_use_gnu_ld_interface=no
9198 if test yes = "$with_gnu_ld"; then
9201 # The AIX port of GNU ld has always aspired to compatibility
9202 # with the native linker. However, as the warning in the GNU ld
9203 # block says, versions before 2.19.5* couldn't really create working
9204 # shared libraries, regardless of the interface used.
9205 case `$LD -v 2>&1` in
9206 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9210 lt_use_gnu_ld_interface=yes
9215 lt_use_gnu_ld_interface=yes
9220 if test yes = "$lt_use_gnu_ld_interface"; then
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9224 # Set some defaults for GNU ld with shared library support. These
9225 # are reset later if shared libraries are not supported. Putting them
9226 # here allows them to be overridden if necessary.
9227 runpath_var=LD_RUN_PATH
9228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9229 export_dynamic_flag_spec='$wl--export-dynamic'
9230 # ancient GNU ld didn't support --whole-archive et. al.
9231 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9234 whole_archive_flag_spec=
9236 supports_anon_versioning=no
9237 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9238 *GNU\ gold*) supports_anon_versioning=yes ;;
9239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242 *\ 2.11.*) ;; # other 2.11 versions
9243 *) supports_anon_versioning=yes ;;
9246 # See if GNU ld supports shared libraries.
9249 # On AIX/PPC, the GNU linker is very broken
9250 if test ia64 != "$host_cpu"; then
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support. If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9268 # see comment about AmigaOS4 .so support
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 archive_expsym_cmds=''
9273 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)'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_minus_L=yes
9281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 allow_undefined_flag=unsupported
9283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284 # support --undefined. This deserves some investigation. FIXME
9285 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293 # as there is no search path for DLLs.
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 export_dynamic_flag_spec='$wl--export-all-symbols'
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=no
9298 enable_shared_with_static_runtimes=yes
9299 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'
9300 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9302 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304 # If the export-symbols file already is a .def file, use it as
9305 # is; otherwise, prepend EXPORTS...
9306 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9307 cp $export_symbols $output_objdir/$soname.def;
9309 echo EXPORTS > $output_objdir/$soname.def;
9310 cat $export_symbols >> $output_objdir/$soname.def;
9312 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320 link_all_deplibs=yes
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9328 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9329 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9330 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9331 $ECHO EXPORTS >> $output_objdir/$libname.def~
9332 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9333 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9334 emximp -o $lib $output_objdir/$libname.def'
9335 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9338 $ECHO EXPORTS >> $output_objdir/$libname.def~
9340 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9341 prefix_cmds="$prefix_cmds -e 1d";
9343 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9344 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9345 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9346 emximp -o $lib $output_objdir/$libname.def'
9347 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9348 enable_shared_with_static_runtimes=yes
9353 hardcode_shlibpath_var=no
9354 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9355 export_dynamic_flag_spec='$wl-E'
9356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9357 # Instead, shared libraries are loaded at an image base (0x10000000 by
9358 # default) and relocated if they conflict, which is a slow very memory
9359 # consuming and fragmenting process. To avoid this, we pick a random,
9360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9363 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'
9366 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9368 if test linux-dietlibc = "$host_os"; then
9369 case $cc_basename in
9370 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9373 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9374 && test no = "$tmp_diet"
9376 tmp_addflag=' $pic_flag'
9377 tmp_sharedflag='-shared'
9378 case $cc_basename,$host_cpu in
9379 pgcc*) # Portland Group C compiler
9380 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'
9381 tmp_addflag=' $pic_flag'
9383 pgf77* | pgf90* | pgf95* | pgfortran*)
9384 # Portland Group f77 and f90 compilers
9385 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'
9386 tmp_addflag=' $pic_flag -Mnomain' ;;
9387 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9388 tmp_addflag=' -i_dynamic' ;;
9389 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9390 tmp_addflag=' -i_dynamic -nofor_main' ;;
9391 ifc* | ifort*) # Intel Fortran compiler
9392 tmp_addflag=' -nofor_main' ;;
9393 lf95*) # Lahey Fortran 8.1
9394 whole_archive_flag_spec=
9395 tmp_sharedflag='--shared' ;;
9396 nagfor*) # NAGFOR 5.3
9397 tmp_sharedflag='-Wl,-shared' ;;
9398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9399 tmp_sharedflag='-qmkshrobj'
9401 nvcc*) # Cuda Compiler Driver 2.2
9402 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'
9403 compiler_needs_object=yes
9406 case `$CC -V 2>&1 | sed 5q` in
9407 *Sun\ C*) # Sun C 5.9
9408 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'
9409 compiler_needs_object=yes
9410 tmp_sharedflag='-G' ;;
9411 *Sun\ F*) # Sun Fortran 8.3
9412 tmp_sharedflag='-G' ;;
9414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9416 if test yes = "$supports_anon_versioning"; then
9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419 echo "local: *; };" >> $output_objdir/$libname.ver~
9420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9423 case $cc_basename in
9425 export_dynamic_flag_spec='-rdynamic'
9427 xlf* | bgf* | bgxlf* | mpixlf*)
9428 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9429 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9431 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9432 if test yes = "$supports_anon_versioning"; then
9433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9435 echo "local: *; };" >> $output_objdir/$libname.ver~
9436 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9445 netbsd* | netbsdelf*-gnu)
9446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9451 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9456 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9461 *** create shared libraries on Solaris systems. Therefore, libtool
9462 *** is disabling shared libraries support. We urge you to upgrade GNU
9463 *** binutils to release 2.9.1 or newer. Another option is to modify
9464 *** your PATH or compiler configuration so that the native linker is
9465 *** used, and then restart.
9468 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9477 case `$LD -v 2>&1` in
9478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9483 *** reliably create shared libraries on SCO systems. Therefore, libtool
9484 *** is disabling shared libraries support. We urge you to upgrade GNU
9485 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9486 *** your PATH or compiler configuration so that the native linker is
9487 *** used, and then restart.
9492 # For security reasons, it is highly recommended that you always
9493 # use absolute paths for naming shared libraries, and exclude the
9494 # DT_RUNPATH tag from executables and libraries. But doing so
9495 # requires that you compile everything twice, which is a pain.
9496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9508 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9517 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9524 if test no = "$ld_shlibs"; then
9526 hardcode_libdir_flag_spec=
9527 export_dynamic_flag_spec=
9528 whole_archive_flag_spec=
9531 # PORTME fill in a description of your system's linker (not GNU ld)
9534 allow_undefined_flag=unsupported
9535 always_export_symbols=yes
9536 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'
9537 # Note: this linker hardcodes the directories in LIBPATH if there
9538 # are no directories specified by -L.
9539 hardcode_minus_L=yes
9540 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9541 # Neither direct hardcoding nor static linking is supported with a
9543 hardcode_direct=unsupported
9548 if test ia64 = "$host_cpu"; then
9549 # On IA64, the linker does run time linking by default, so we don't
9550 # have to do anything special.
9551 aix_use_runtimelinking=no
9552 exp_sym_flag='-Bexport'
9555 # If we're using GNU nm, then we don't want the "-C" option.
9556 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9557 # Without the "-l" option, or with the "-B" option, AIX nm treats
9558 # weak defined symbols like other global defined symbols, whereas
9559 # GNU nm marks them as "W".
9560 # While the 'weak' keyword is ignored in the Export File, we need
9561 # it in the Import File for the 'aix-soname' feature, so we have
9562 # to replace the "-B" option with "-P" for AIX nm.
9563 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9564 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9566 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9568 aix_use_runtimelinking=no
9570 # Test if we are trying to use run time linking or normal
9571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9572 # have runtime linking enabled, and use it for executables.
9573 # For shared libraries, we enable/disable runtime linking
9574 # depending on the kind of the shared library created -
9575 # when "with_aix_soname,aix_use_runtimelinking" is:
9576 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9577 # "aix,yes" lib.so shared, rtl:yes, for executables
9578 # lib.a static archive
9579 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9580 # lib.a(lib.so.V) shared, rtl:no, for executables
9581 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9582 # lib.a(lib.so.V) shared, rtl:no
9583 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9584 # lib.a static archive
9585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9586 for ld_flag in $LDFLAGS; do
9587 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9588 aix_use_runtimelinking=yes
9592 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9593 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9594 # so we don't have lib.a shared libs to link our executables.
9595 # We have to force runtime linking in this case.
9596 aix_use_runtimelinking=yes
9597 LDFLAGS="$LDFLAGS -Wl,-brtl"
9602 exp_sym_flag='-bexport'
9603 no_entry_flag='-bnoentry'
9606 # When large executables or shared objects are built, AIX ld can
9607 # have problems creating the table of contents. If linking a library
9608 # or program results in "error TOC overflow" add -mminimal-toc to
9609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9614 hardcode_direct_absolute=yes
9615 hardcode_libdir_separator=':'
9616 link_all_deplibs=yes
9617 file_list_spec='$wl-f,'
9618 case $with_aix_soname,$aix_use_runtimelinking in
9619 aix,*) ;; # traditional, no import file
9620 svr4,* | *,yes) # use import file
9621 # The Import File defines what to hardcode.
9623 hardcode_direct_absolute=no
9627 if test yes = "$GCC"; then
9628 case $host_os in aix4.[012]|aix4.[012].*)
9629 # We only want to do this on AIX 4.2 and lower, the check
9630 # below for broken collect2 doesn't work under 4.3+
9631 collect2name=`$CC -print-prog-name=collect2`
9632 if test -f "$collect2name" &&
9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9635 # We have reworked collect2
9638 # We have old collect2
9639 hardcode_direct=unsupported
9640 # It fails to find uninstalled libraries when the uninstalled
9641 # path is not listed in the libpath. Setting hardcode_minus_L
9642 # to unsupported forces relinking
9643 hardcode_minus_L=yes
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_libdir_separator=
9649 shared_flag='-shared'
9650 if test yes = "$aix_use_runtimelinking"; then
9651 shared_flag="$shared_flag "'$wl-G'
9653 # Need to ensure runtime linking is disabled for the traditional
9654 # shared library, or the linker may eventually find shared libraries
9655 # /with/ Import File - we do not want to mix them.
9656 shared_flag_aix='-shared'
9657 shared_flag_svr4='-shared $wl-G'
9660 if test ia64 = "$host_cpu"; then
9661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9662 # chokes on -Wl,-G. The following line is correct:
9665 if test yes = "$aix_use_runtimelinking"; then
9668 shared_flag='$wl-bM:SRE'
9670 shared_flag_aix='$wl-bM:SRE'
9671 shared_flag_svr4='$wl-G'
9675 export_dynamic_flag_spec='$wl-bexpall'
9676 # It seems that -bexpall does not export symbols beginning with
9677 # underscore (_), so it is better to generate a list of symbols to export.
9678 always_export_symbols=yes
9679 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9680 # Warning - without using the other runtime loading flags (-brtl),
9681 # -berok will link without error, but may produce a broken library.
9682 allow_undefined_flag='-berok'
9683 # Determine the default libpath from the value encoded in an
9685 if test set = "${lt_cv_aix_libpath+set}"; then
9686 aix_libpath=$lt_cv_aix_libpath
9688 if test ${lt_cv_aix_libpath_+y}
9690 printf %s "(cached) " >&6
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9703 if ac_fn_c_try_link "$LINENO"
9706 lt_aix_libpath_sed='
9707 /Import File Strings/,/^$/ {
9709 s/^0 *\([^ ]*\) *$/\1/
9713 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714 # Check for a 64-bit object if we didn't find anything.
9715 if test -z "$lt_cv_aix_libpath_"; then
9716 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9720 conftest$ac_exeext conftest.$ac_ext
9721 if test -z "$lt_cv_aix_libpath_"; then
9722 lt_cv_aix_libpath_=/usr/lib:/lib
9727 aix_libpath=$lt_cv_aix_libpath_
9730 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9731 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9733 if test ia64 = "$host_cpu"; then
9734 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9735 allow_undefined_flag="-z nodefs"
9736 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"
9738 # Determine the default libpath from the value encoded in an
9740 if test set = "${lt_cv_aix_libpath+set}"; then
9741 aix_libpath=$lt_cv_aix_libpath
9743 if test ${lt_cv_aix_libpath_+y}
9745 printf %s "(cached) " >&6
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9758 if ac_fn_c_try_link "$LINENO"
9761 lt_aix_libpath_sed='
9762 /Import File Strings/,/^$/ {
9764 s/^0 *\([^ ]*\) *$/\1/
9768 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$lt_cv_aix_libpath_"; then
9771 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9775 conftest$ac_exeext conftest.$ac_ext
9776 if test -z "$lt_cv_aix_libpath_"; then
9777 lt_cv_aix_libpath_=/usr/lib:/lib
9782 aix_libpath=$lt_cv_aix_libpath_
9785 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9786 # Warning - without using the other run time loading flags,
9787 # -berok will link without error, but may produce a broken library.
9788 no_undefined_flag=' $wl-bernotok'
9789 allow_undefined_flag=' $wl-berok'
9790 if test yes = "$with_gnu_ld"; then
9791 # We only use this code for GNU lds that support --whole-archive.
9792 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9794 # Exported symbols can be pulled into shared objects from archives
9795 whole_archive_flag_spec='$convenience'
9797 archive_cmds_need_lc=yes
9798 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9799 # -brtl affects multiple linker settings, -berok does not and is overridden later
9800 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9801 if test svr4 != "$with_aix_soname"; then
9802 # This is similar to how AIX traditionally builds its shared libraries.
9803 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9805 if test aix != "$with_aix_soname"; then
9806 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9808 # used by -dlpreopen to get the symbols
9809 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9811 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9819 # see comment about AmigaOS4 .so support
9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9821 archive_expsym_cmds=''
9824 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)'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_minus_L=yes
9832 export_dynamic_flag_spec=-rdynamic
9835 cygwin* | mingw* | pw32* | cegcc*)
9836 # When not using gcc, we currently assume that we are using
9837 # Microsoft Visual C++.
9838 # hardcode_libdir_flag_spec is actually meaningless, as there is
9839 # no search path for DLLs.
9840 case $cc_basename in
9843 hardcode_libdir_flag_spec=' '
9844 allow_undefined_flag=unsupported
9845 always_export_symbols=yes
9847 # Tell ltmain to make .lib files, not .a files.
9849 # Tell ltmain to make .dll files, not .so files.
9851 # FIXME: Setting linknames here is a bad hack.
9852 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9853 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9854 cp "$export_symbols" "$output_objdir/$soname.def";
9855 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9857 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9859 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9861 # The linker will not automatically build a static lib if we build a DLL.
9862 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9863 enable_shared_with_static_runtimes=yes
9864 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9867 old_postinstall_cmds='chmod 644 $oldlib'
9868 postlink_cmds='lt_outputfile="@OUTPUT@"~
9869 lt_tool_outputfile="@TOOL_OUTPUT@"~
9870 case $lt_outputfile in
9873 lt_outputfile=$lt_outputfile.exe
9874 lt_tool_outputfile=$lt_tool_outputfile.exe
9877 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9878 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9879 $RM "$lt_outputfile.manifest";
9883 # Assume MSVC wrapper
9884 hardcode_libdir_flag_spec=' '
9885 allow_undefined_flag=unsupported
9886 # Tell ltmain to make .lib files, not .a files.
9888 # Tell ltmain to make .dll files, not .so files.
9890 # FIXME: Setting linknames here is a bad hack.
9891 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9892 # The linker will automatically build a .lib file if we build a DLL.
9893 old_archive_from_new_cmds='true'
9894 # FIXME: Should let the user specify the lib program.
9895 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9896 enable_shared_with_static_runtimes=yes
9901 darwin* | rhapsody*)
9904 archive_cmds_need_lc=no
9906 hardcode_automatic=yes
9907 hardcode_shlibpath_var=unsupported
9908 if test yes = "$lt_cv_ld_force_load"; then
9909 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\"`'
9912 whole_archive_flag_spec=''
9914 link_all_deplibs=yes
9915 allow_undefined_flag=$_lt_dar_allow_undefined
9916 case $cc_basename in
9917 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9918 *) _lt_dar_can_shared=$GCC ;;
9920 if test yes = "$_lt_dar_can_shared"; then
9921 output_verbose_link_cmd=func_echo_all
9922 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9923 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9924 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"
9925 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"
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_shlibpath_var=no
9939 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9940 # support. Future versions do this automatically, but an explicit c++rt0.o
9941 # does not break anything, and helps significantly (at the cost of a little
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9945 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_shlibpath_var=no
9950 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_minus_L=yes
9955 hardcode_shlibpath_var=no
9958 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9959 freebsd* | dragonfly*)
9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961 hardcode_libdir_flag_spec='-R$libdir'
9963 hardcode_shlibpath_var=no
9967 if test yes = "$GCC"; then
9968 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9970 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9972 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9973 hardcode_libdir_separator=:
9976 # hardcode_minus_L: Not really in the search PATH,
9977 # but as the default location of the library.
9978 hardcode_minus_L=yes
9979 export_dynamic_flag_spec='$wl-E'
9983 if test yes,no = "$GCC,$with_gnu_ld"; then
9984 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988 if test no = "$with_gnu_ld"; then
9989 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9990 hardcode_libdir_separator=:
9992 hardcode_direct_absolute=yes
9993 export_dynamic_flag_spec='$wl-E'
9994 # hardcode_minus_L: Not really in the search PATH,
9995 # but as the default location of the library.
9996 hardcode_minus_L=yes
10001 if test yes,no = "$GCC,$with_gnu_ld"; then
10004 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10023 # Older versions of the 11.00 compiler do not understand -b yet
10024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026 printf %s "checking if $CC understands -b... " >&6; }
10027 if test ${lt_cv_prog_compiler__b+y}
10029 printf %s "(cached) " >&6
10031 lt_cv_prog_compiler__b=no
10032 save_LDFLAGS=$LDFLAGS
10033 LDFLAGS="$LDFLAGS -b"
10034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10036 # The linker can only warn and ignore the option if not recognized
10037 # So say no if there are warnings
10038 if test -s conftest.err; then
10039 # Append any errors to the config.log.
10040 cat conftest.err 1>&5
10041 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10043 if diff conftest.exp conftest.er2 >/dev/null; then
10044 lt_cv_prog_compiler__b=yes
10047 lt_cv_prog_compiler__b=yes
10051 LDFLAGS=$save_LDFLAGS
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10055 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10057 if test yes = "$lt_cv_prog_compiler__b"; then
10058 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10066 if test no = "$with_gnu_ld"; then
10067 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10068 hardcode_libdir_separator=:
10073 hardcode_shlibpath_var=no
10076 hardcode_direct=yes
10077 hardcode_direct_absolute=yes
10078 export_dynamic_flag_spec='$wl-E'
10080 # hardcode_minus_L: Not really in the search PATH,
10081 # but as the default location of the library.
10082 hardcode_minus_L=yes
10088 irix5* | irix6* | nonstopux*)
10089 if test yes = "$GCC"; then
10090 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'
10091 # Try to use the -exported_symbol ld option, if it does not
10092 # work, assume that -exports_file does not work either and
10093 # implicitly export all symbols.
10094 # This should be the same for all languages, so no per-tag cache variable.
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10096 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10097 if test ${lt_cv_irix_exported_symbol+y}
10099 printf %s "(cached) " >&6
10101 save_LDFLAGS=$LDFLAGS
10102 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int foo (void) { return 0; }
10107 if ac_fn_c_try_link "$LINENO"
10109 lt_cv_irix_exported_symbol=yes
10111 lt_cv_irix_exported_symbol=no
10113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LDFLAGS=$save_LDFLAGS
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10118 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10119 if test yes = "$lt_cv_irix_exported_symbol"; then
10120 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'
10122 link_all_deplibs=no
10124 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'
10125 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'
10127 archive_cmds_need_lc='no'
10128 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10129 hardcode_libdir_separator=:
10131 link_all_deplibs=yes
10135 case $cc_basename in
10137 # Fabrice Bellard et al's Tiny C Compiler
10139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10144 netbsd* | netbsdelf*-gnu)
10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10148 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10150 hardcode_libdir_flag_spec='-R$libdir'
10151 hardcode_direct=yes
10152 hardcode_shlibpath_var=no
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_direct=yes
10158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10159 hardcode_libdir_separator=:
10160 hardcode_shlibpath_var=no
10166 openbsd* | bitrig*)
10167 if test -f /usr/libexec/ld.so; then
10168 hardcode_direct=yes
10169 hardcode_shlibpath_var=no
10170 hardcode_direct_absolute=yes
10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10174 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10175 export_dynamic_flag_spec='$wl-E'
10177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_minus_L=yes
10188 allow_undefined_flag=unsupported
10190 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10191 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10192 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10193 $ECHO EXPORTS >> $output_objdir/$libname.def~
10194 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10195 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10196 emximp -o $lib $output_objdir/$libname.def'
10197 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10198 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10199 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10200 $ECHO EXPORTS >> $output_objdir/$libname.def~
10201 prefix_cmds="$SED"~
10202 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10203 prefix_cmds="$prefix_cmds -e 1d";
10205 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10206 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10207 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10208 emximp -o $lib $output_objdir/$libname.def'
10209 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10210 enable_shared_with_static_runtimes=yes
10214 if test yes = "$GCC"; then
10215 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10216 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'
10218 allow_undefined_flag=' -expect_unresolved \*'
10219 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'
10221 archive_cmds_need_lc='no'
10222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10223 hardcode_libdir_separator=:
10226 osf4* | osf5*) # as osf3* with the addition of -msym flag
10227 if test yes = "$GCC"; then
10228 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10229 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'
10230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10232 allow_undefined_flag=' -expect_unresolved \*'
10233 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'
10234 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~
10235 $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'
10237 # Both c and cxx compiler support -rpath directly
10238 hardcode_libdir_flag_spec='-rpath $libdir'
10240 archive_cmds_need_lc='no'
10241 hardcode_libdir_separator=:
10245 no_undefined_flag=' -z defs'
10246 if test yes = "$GCC"; then
10248 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250 $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'
10252 case `$CC -V 2>&1` in
10255 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10261 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10263 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267 hardcode_libdir_flag_spec='-R$libdir'
10268 hardcode_shlibpath_var=no
10270 solaris2.[0-5] | solaris2.[0-5].*) ;;
10272 # The compiler driver will combine and reorder linker options,
10273 # but understands '-z linker_flag'. GCC discards it without '$wl',
10274 # but is careful enough not to reorder.
10275 # Supported since Solaris 2.6 (maybe 2.5.1?)
10276 if test yes = "$GCC"; then
10277 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10279 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10283 link_all_deplibs=yes
10287 if test sequent = "$host_vendor"; then
10288 # Use $CC to link under sequent, because it throws in some extra .o
10289 # files that make .init and .fini sections work.
10290 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_direct=yes
10296 hardcode_minus_L=yes
10297 hardcode_shlibpath_var=no
10301 case $host_vendor in
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes # is this really true???
10307 ## LD is ld it makes a PLAMLIB
10308 ## CC just makes a GrossModule.
10309 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10310 reload_cmds='$CC -r -o $output$reload_objs'
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10318 runpath_var='LD_RUN_PATH'
10319 hardcode_shlibpath_var=no
10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 hardcode_shlibpath_var=no
10325 export_dynamic_flag_spec='-Bexport'
10329 if test -d /usr/nec; then
10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_shlibpath_var=no
10332 runpath_var=LD_RUN_PATH
10333 hardcode_runpath_var=yes
10338 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10339 no_undefined_flag='$wl-z,text'
10340 archive_cmds_need_lc=no
10341 hardcode_shlibpath_var=no
10342 runpath_var='LD_RUN_PATH'
10344 if test yes = "$GCC"; then
10345 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 sysv5* | sco3.2v5* | sco5v6*)
10354 # Note: We CANNOT use -z defs as we might desire, because we do not
10355 # link with -lc, and that would cause any symbols used from libc to
10356 # always be unresolved, which means just about no library would
10357 # ever link correctly. If we're not using GNU ld we use -z text
10358 # though, which does catch some bad symbols but isn't as heavy-handed
10360 no_undefined_flag='$wl-z,text'
10361 allow_undefined_flag='$wl-z,nodefs'
10362 archive_cmds_need_lc=no
10363 hardcode_shlibpath_var=no
10364 hardcode_libdir_flag_spec='$wl-R,$libdir'
10365 hardcode_libdir_separator=':'
10366 link_all_deplibs=yes
10367 export_dynamic_flag_spec='$wl-Bexport'
10368 runpath_var='LD_RUN_PATH'
10370 if test yes = "$GCC"; then
10371 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_libdir_flag_spec='-L$libdir'
10382 hardcode_shlibpath_var=no
10390 if test sni = "$host_vendor"; then
10392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10393 export_dynamic_flag_spec='$wl-Blargedynsym'
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10400 printf "%s\n" "$ld_shlibs" >&6; }
10401 test no = "$ld_shlibs" && can_build_shared=no
10403 with_gnu_ld=$with_gnu_ld
10420 # Do we need to explicitly link libc?
10422 case "x$archive_cmds_need_lc" in
10424 # Assume -lc should be added
10425 archive_cmds_need_lc=yes
10427 if test yes,yes = "$GCC,$enable_shared"; then
10428 case $archive_cmds in
10430 # FIXME: we may have to deal with multi-command sequences.
10433 # Test whether the compiler implicitly links with -lc since on some
10434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10435 # to ld, don't add -lc before -lgcc.
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10437 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10438 if test ${lt_cv_archive_cmds_need_lc+y}
10440 printf %s "(cached) " >&6
10443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10446 (eval $ac_compile) 2>&5
10448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449 test $ac_status = 0; } 2>conftest.err; then
10452 libobjs=conftest.$ac_objext
10454 wl=$lt_prog_compiler_wl
10455 pic_flag=$lt_prog_compiler_pic
10461 lt_save_allow_undefined_flag=$allow_undefined_flag
10462 allow_undefined_flag=
10463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10464 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467 test $ac_status = 0; }
10469 lt_cv_archive_cmds_need_lc=no
10471 lt_cv_archive_cmds_need_lc=yes
10473 allow_undefined_flag=$lt_save_allow_undefined_flag
10475 cat conftest.err 1>&5
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10481 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10482 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10641 printf %s "checking dynamic linker characteristics... " >&6; }
10643 if test yes = "$GCC"; then
10645 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10646 *) lt_awk_arg='/^libraries:/' ;;
10649 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10650 *) lt_sed_strip_eq='s|=/|/|g' ;;
10652 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10653 case $lt_search_path_spec in
10655 # if the path contains ";" then we assume it to be the separator
10656 # otherwise default to the standard path separator (i.e. ":") - it is
10657 # assumed that no part of a normal pathname contains ";" but that should
10658 # okay in the real world where ";" in dirpaths is itself problematic.
10659 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10662 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10665 # Ok, now we have the path, separated by spaces, we can step through it
10666 # and add multilib dir if necessary...
10667 lt_tmp_lt_search_path_spec=
10668 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10669 # ...but if some path component already ends with the multilib dir we assume
10670 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10671 case "$lt_multi_os_dir; $lt_search_path_spec " in
10672 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10676 for lt_sys_path in $lt_search_path_spec; do
10677 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10679 elif test -n "$lt_multi_os_dir"; then
10680 test -d "$lt_sys_path" && \
10681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10684 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10685 BEGIN {RS = " "; FS = "/|\n";} {
10688 for (lt_i = NF; lt_i > 0; lt_i--) {
10689 if ($lt_i != "" && $lt_i != ".") {
10690 if ($lt_i == "..") {
10693 if (lt_count == 0) {
10694 lt_foo = "/" $lt_i lt_foo;
10701 if (lt_foo != "") { lt_freq[lt_foo]++; }
10702 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10704 # AWK program above erroneously prepends '/' to C:/dos/paths
10707 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10708 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10710 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10712 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10714 library_names_spec=
10715 libname_spec='lib$name'
10719 postuninstall_cmds=
10723 shlibpath_overrides_runpath=unknown
10725 dynamic_linker="$host_os ld.so"
10726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10727 need_lib_prefix=unknown
10728 hardcode_into_libs=no
10730 # when you set need_version to no, make sure it does not cause -set_version
10731 # flags to be left without arguments
10732 need_version=unknown
10738 version_type=linux # correct to gnu/linux during the next big refactor
10739 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10740 shlibpath_var=LIBPATH
10742 # AIX 3 has no versioning support, so we append a major version to the name.
10743 soname_spec='$libname$release$shared_ext$major'
10747 version_type=linux # correct to gnu/linux during the next big refactor
10750 hardcode_into_libs=yes
10751 if test ia64 = "$host_cpu"; then
10752 # AIX 5 supports IA64
10753 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10754 shlibpath_var=LD_LIBRARY_PATH
10756 # With GCC up to 2.95.x, collect2 would create an import file
10757 # for dependence libraries. The import file would start with
10758 # the line '#! .'. This would cause the generated library to
10759 # depend on '.', always an invalid library. This was fixed in
10760 # development snapshots of GCC prior to 3.0.
10762 aix4 | aix4.[01] | aix4.[01].*)
10763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10765 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10768 can_build_shared=no
10772 # Using Import Files as archive members, it is possible to support
10773 # filename-based versioning of shared library archives on AIX. While
10774 # this would work for both with and without runtime linking, it will
10775 # prevent static linking of such archives. So we do filename-based
10776 # shared library versioning with .so extension only, which is used
10777 # when both runtime linking and shared linking is enabled.
10778 # Unfortunately, runtime linking may impact performance, so we do
10779 # not want this to be the default eventually. Also, we use the
10780 # versioned .so libs for executables only if there is the -brtl
10781 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10782 # To allow for filename-based versioning support, we need to create
10783 # libNAME.so.V as an archive file, containing:
10784 # *) an Import File, referring to the versioned filename of the
10785 # archive as well as the shared archive member, telling the
10786 # bitwidth (32 or 64) of that shared object, and providing the
10787 # list of exported symbols of that shared object, eventually
10788 # decorated with the 'weak' keyword
10789 # *) the shared object with the F_LOADONLY flag set, to really avoid
10790 # it being seen by the linker.
10791 # At run time we better use the real file rather than another symlink,
10792 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10794 case $with_aix_soname,$aix_use_runtimelinking in
10795 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10796 # soname into executable. Probably we can add versioning support to
10797 # collect2, so additional links can be useful in future.
10798 aix,yes) # traditional libtool
10799 dynamic_linker='AIX unversionable lib.so'
10800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10801 # instead of lib<name>.a to let people know that these are not
10802 # typical AIX shared libraries.
10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805 aix,no) # traditional AIX only
10806 dynamic_linker='AIX lib.a(lib.so.V)'
10807 # We preserve .a as extension for shared libraries through AIX4.2
10808 # and later when we are not doing run time linking.
10809 library_names_spec='$libname$release.a $libname.a'
10810 soname_spec='$libname$release$shared_ext$major'
10812 svr4,*) # full svr4 only
10813 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10814 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10815 # We do not specify a path in Import Files, so LIBPATH fires.
10816 shlibpath_overrides_runpath=yes
10818 *,yes) # both, prefer svr4
10819 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10820 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10821 # unpreferred sharedlib libNAME.a needs extra handling
10822 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10823 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10824 # We do not specify a path in Import Files, so LIBPATH fires.
10825 shlibpath_overrides_runpath=yes
10827 *,no) # both, prefer aix
10828 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10829 library_names_spec='$libname$release.a $libname.a'
10830 soname_spec='$libname$release$shared_ext$major'
10831 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10832 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10833 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10836 shlibpath_var=LIBPATH
10843 # Since July 2007 AmigaOS4 officially supports .so libraries.
10844 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848 library_names_spec='$libname.ixlibrary $libname.a'
10849 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10850 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10856 library_names_spec='$libname$shared_ext'
10857 dynamic_linker="$host_os ld.so"
10858 shlibpath_var=LIBRARY_PATH
10862 version_type=linux # correct to gnu/linux during the next big refactor
10864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10865 soname_spec='$libname$release$shared_ext$major'
10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10870 # the default ld.so.conf also contains /usr/contrib/lib and
10871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10872 # libtool to hard-code these into programs
10875 cygwin* | mingw* | pw32* | cegcc*)
10876 version_type=windows
10881 case $GCC,$cc_basename in
10884 library_names_spec='$libname.dll.a'
10885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10886 postinstall_cmds='base_file=`basename \$file`~
10887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10888 dldir=$destdir/`dirname \$dlpath`~
10889 test -d \$dldir || mkdir -p \$dldir~
10890 $install_prog $dir/$dlname \$dldir/$dlname~
10891 chmod a+x \$dldir/$dlname~
10892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10896 dlpath=$dir/\$dldll~
10898 shlibpath_overrides_runpath=yes
10902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10903 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10908 # MinGW DLLs use traditional 'lib' prefix
10909 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10912 # pw32 DLLs use 'pw' prefix rather than 'lib'
10913 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10916 dynamic_linker='Win32 ld.exe'
10921 libname_spec='$name'
10922 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10923 library_names_spec='$libname.dll.lib'
10927 sys_lib_search_path_spec=
10930 for lt_path in $LIB
10933 # Let DOS variable expansion print the short 8.3 style file name.
10934 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10935 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10938 # Convert to MSYS style.
10939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10942 # Convert to unix form, then to dos form, then back to unix form
10943 # but this time dos style (no spaces!) so that the unix form looks
10944 # like /cygdrive/c/PROGRA~1:/cygdr...
10945 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10946 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10947 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10950 sys_lib_search_path_spec=$LIB
10951 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10952 # It is most probably a Windows format PATH.
10953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10957 # FIXME: find the short name or the path components, as spaces are
10958 # common. (e.g. "Program Files" -> "PROGRA~1")
10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963 postinstall_cmds='base_file=`basename \$file`~
10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965 dldir=$destdir/`dirname \$dlpath`~
10966 test -d \$dldir || mkdir -p \$dldir~
10967 $install_prog $dir/$dlname \$dldir/$dlname'
10968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10969 dlpath=$dir/\$dldll~
10971 shlibpath_overrides_runpath=yes
10972 dynamic_linker='Win32 link.exe'
10976 # Assume MSVC wrapper
10977 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10978 dynamic_linker='Win32 ld.exe'
10981 # FIXME: first we should search . and the directory the executable is in
10985 darwin* | rhapsody*)
10986 dynamic_linker="$host_os dyld"
10987 version_type=darwin
10990 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10991 soname_spec='$libname$release$major$shared_ext'
10992 shlibpath_overrides_runpath=yes
10993 shlibpath_var=DYLD_LIBRARY_PATH
10994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11001 version_type=linux # correct to gnu/linux during the next big refactor
11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005 soname_spec='$libname$release$shared_ext$major'
11006 shlibpath_var=LD_LIBRARY_PATH
11009 freebsd* | dragonfly*)
11010 # DragonFly does not have aout. When/if they implement a new
11011 # versioning mechanism, adjust this.
11012 if test -x /usr/bin/objformat; then
11013 objformat=`/usr/bin/objformat`
11016 freebsd[23].*) objformat=aout ;;
11017 *) objformat=elf ;;
11020 version_type=freebsd-$objformat
11021 case $version_type in
11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024 soname_spec='$libname$release$shared_ext$major'
11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11033 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11038 freebsd3.[01]* | freebsdelf3.[01]*)
11039 shlibpath_overrides_runpath=yes
11040 hardcode_into_libs=yes
11042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11044 shlibpath_overrides_runpath=no
11045 hardcode_into_libs=yes
11047 *) # from 4.6 on, and DragonFly
11048 shlibpath_overrides_runpath=yes
11049 hardcode_into_libs=yes
11055 version_type=linux # correct to gnu/linux during the next big refactor
11058 dynamic_linker="$host_os runtime_loader"
11059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060 soname_spec='$libname$release$shared_ext$major'
11061 shlibpath_var=LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11064 hardcode_into_libs=yes
11067 hpux9* | hpux10* | hpux11*)
11068 # Give a soname corresponding to the major version so that dld.sl refuses to
11069 # link against other versions.
11076 hardcode_into_libs=yes
11077 dynamic_linker="$host_os dld.so"
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081 soname_spec='$libname$release$shared_ext$major'
11082 if test 32 = "$HPUX_IA64_MODE"; then
11083 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11084 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11087 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11092 hardcode_into_libs=yes
11093 dynamic_linker="$host_os dld.sl"
11094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097 soname_spec='$libname$release$shared_ext$major'
11098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11103 dynamic_linker="$host_os dld.sl"
11104 shlibpath_var=SHLIB_PATH
11105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 soname_spec='$libname$release$shared_ext$major'
11110 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11111 postinstall_cmds='chmod 555 $lib'
11112 # or fails outright, so override atomically:
11113 install_override_mode=555
11117 version_type=linux # correct to gnu/linux during the next big refactor
11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121 soname_spec='$libname$release$shared_ext$major'
11122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=no
11125 hardcode_into_libs=yes
11128 irix5* | irix6* | nonstopux*)
11130 nonstopux*) version_type=nonstopux ;;
11132 if test yes = "$lt_cv_prog_gnu_ld"; then
11133 version_type=linux # correct to gnu/linux during the next big refactor
11140 soname_spec='$libname$release$shared_ext$major'
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11143 irix5* | nonstopux*)
11144 libsuff= shlibsuff=
11147 case $LD in # libtool.m4 will add one of these switches to LD
11148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11149 libsuff= shlibsuff= libmagic=32-bit;;
11150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11151 libsuff=32 shlibsuff=N32 libmagic=N32;;
11152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11154 *) libsuff= shlibsuff= libmagic=never-match;;
11158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11159 shlibpath_overrides_runpath=no
11160 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11161 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11162 hardcode_into_libs=yes
11165 # No shared lib support for Linux oldld, aout, or coff.
11166 linux*oldld* | linux*aout* | linux*coff*)
11171 version_type=none # Android doesn't support versioned libraries.
11174 library_names_spec='$libname$release$shared_ext'
11175 soname_spec='$libname$release$shared_ext'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11180 # This implies no fast_install, which is unacceptable.
11181 # Some rework will be needed to allow for fast_install
11182 # before this can be enabled.
11183 hardcode_into_libs=yes
11185 dynamic_linker='Android linker'
11186 # Don't embed -rpath directories since the linker doesn't support them.
11187 hardcode_libdir_flag_spec='-L$libdir'
11190 # This must be glibc/ELF.
11191 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11192 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196 soname_spec='$libname$release$shared_ext$major'
11197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=no
11201 # Some binutils ld are patched to set DT_RUNPATH
11202 if test ${lt_cv_shlibpath_overrides_runpath+y}
11204 printf %s "(cached) " >&6
11206 lt_cv_shlibpath_overrides_runpath=no
11207 save_LDFLAGS=$LDFLAGS
11208 save_libdir=$libdir
11209 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11210 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11222 if ac_fn_c_try_link "$LINENO"
11224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11226 lt_cv_shlibpath_overrides_runpath=yes
11229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LDFLAGS=$save_LDFLAGS
11232 libdir=$save_libdir
11236 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11238 # This implies no fast_install, which is unacceptable.
11239 # Some rework will be needed to allow for fast_install
11240 # before this can be enabled.
11241 hardcode_into_libs=yes
11243 # Ideally, we could use ldconfig to report *all* directores which are
11244 # searched for libraries, however this is still not possible. Aside from not
11245 # being certain /sbin/ldconfig is available, command
11246 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11247 # even though it is searched at run-time. Try to do the best guess by
11248 # appending ld.so.conf contents (and includes) to the search path.
11249 if test -f /etc/ld.so.conf; then
11250 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' ' '`
11251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11254 # We used to test for /lib/ld.so.1 and disable shared libraries on
11255 # powerpc, because MkLinux only supported shared libraries with the
11256 # GNU dynamic linker. Since this was broken with cross compilers,
11257 # most powerpc-linux boxes support dynamic linking these days and
11258 # people can always --disable-shared, the test was removed, and we
11259 # assume the GNU/Linux dynamic linker is in use.
11260 dynamic_linker='GNU/Linux ld.so'
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=no
11271 hardcode_into_libs=yes
11272 dynamic_linker='NetBSD ld.elf_so'
11279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11282 dynamic_linker='NetBSD (a.out) ld.so'
11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285 soname_spec='$libname$release$shared_ext$major'
11286 dynamic_linker='NetBSD ld.elf_so'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=yes
11290 hardcode_into_libs=yes
11294 version_type=linux # correct to gnu/linux during the next big refactor
11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=yes
11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305 soname_spec='$libname$release$shared_ext$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=no
11308 hardcode_into_libs=yes
11309 dynamic_linker='ldqnx.so'
11312 openbsd* | bitrig*)
11314 sys_lib_dlsearch_path_spec=/usr/lib
11316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 shlibpath_overrides_runpath=yes
11328 libname_spec='$name'
11329 version_type=windows
11333 # OS/2 can only load a DLL with a base name of 8 characters or less.
11334 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11335 v=$($ECHO $release$versuffix | tr -d .-);
11336 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11337 $ECHO $n$v`$shared_ext'
11338 library_names_spec='${libname}_dll.$libext'
11339 dynamic_linker='OS/2 ld.exe'
11340 shlibpath_var=BEGINLIBPATH
11341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343 postinstall_cmds='base_file=`basename \$file`~
11344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11345 dldir=$destdir/`dirname \$dlpath`~
11346 test -d \$dldir || mkdir -p \$dldir~
11347 $install_prog $dir/$dlname \$dldir/$dlname~
11348 chmod a+x \$dldir/$dlname~
11349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11353 dlpath=$dir/\$dldll~
11357 osf3* | osf4* | osf5*)
11361 soname_spec='$libname$release$shared_ext$major'
11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373 version_type=linux # correct to gnu/linux during the next big refactor
11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377 soname_spec='$libname$release$shared_ext$major'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 shlibpath_overrides_runpath=yes
11380 hardcode_into_libs=yes
11381 # ldd complains unless libraries are executable
11382 postinstall_cmds='chmod +x $lib'
11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=yes
11391 if test yes = "$with_gnu_ld"; then
11398 version_type=linux # correct to gnu/linux during the next big refactor
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11400 soname_spec='$libname$release$shared_ext$major'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 case $host_vendor in
11404 shlibpath_overrides_runpath=no
11406 runpath_var=LD_RUN_PATH
11414 shlibpath_overrides_runpath=no
11415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11421 if test -d /usr/nec; then
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11424 soname_spec='$libname$shared_ext.$major'
11425 shlibpath_var=LD_LIBRARY_PATH
11429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11434 soname_spec='$libname$release$shared_ext$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 hardcode_into_libs=yes
11438 if test yes = "$with_gnu_ld"; then
11439 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11444 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11448 sys_lib_dlsearch_path_spec='/usr/lib'
11452 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11453 version_type=linux # correct to gnu/linux during the next big refactor
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=no
11459 hardcode_into_libs=yes
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465 soname_spec='$libname$release$shared_ext$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11474 printf "%s\n" "$dynamic_linker" >&6; }
11475 test no = "$dynamic_linker" && can_build_shared=no
11477 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11478 if test yes = "$GCC"; then
11479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11482 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11483 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11486 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11487 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11490 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11491 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11493 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11494 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11496 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11497 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11596 printf %s "checking how to hardcode library paths into programs... " >&6; }
11598 if test -n "$hardcode_libdir_flag_spec" ||
11599 test -n "$runpath_var" ||
11600 test yes = "$hardcode_automatic"; then
11602 # We can hardcode non-existent directories.
11603 if test no != "$hardcode_direct" &&
11604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11605 # have to relink, otherwise we might link with an installed library
11606 # when we should be linking with a yet-to-be-installed one
11607 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11608 test no != "$hardcode_minus_L"; then
11609 # Linking always hardcodes the temporary library directory.
11610 hardcode_action=relink
11612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11613 hardcode_action=immediate
11616 # We cannot hardcode anything, or else we can only hardcode existing
11618 hardcode_action=unsupported
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11621 printf "%s\n" "$hardcode_action" >&6; }
11623 if test relink = "$hardcode_action" ||
11624 test yes = "$inherit_rpath"; then
11625 # Fast installation is not supported
11626 enable_fast_install=no
11627 elif test yes = "$shlibpath_overrides_runpath" ||
11628 test no = "$enable_shared"; then
11629 # Fast installation is not necessary
11630 enable_fast_install=needless
11638 if test yes != "$enable_dlopen"; then
11639 enable_dlopen=unknown
11640 enable_dlopen_self=unknown
11641 enable_dlopen_self_static=unknown
11648 lt_cv_dlopen=load_add_on
11650 lt_cv_dlopen_self=yes
11653 mingw* | pw32* | cegcc*)
11654 lt_cv_dlopen=LoadLibrary
11659 lt_cv_dlopen=dlopen
11664 # if libdl is installed we need to link against it
11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11666 printf %s "checking for dlopen in -ldl... " >&6; }
11667 if test ${ac_cv_lib_dl_dlopen+y}
11669 printf %s "(cached) " >&6
11671 ac_check_lib_save_LIBS=$LIBS
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11688 if ac_fn_c_try_link "$LINENO"
11690 ac_cv_lib_dl_dlopen=yes
11692 ac_cv_lib_dl_dlopen=no
11694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11700 if test "x$ac_cv_lib_dl_dlopen" = xyes
11702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11707 lt_cv_dlopen_self=yes
11714 # Don't try to run any link tests for TPF. We know it's impossible
11715 # because TPF is a cross-compiler, and we know how we open DSOs.
11716 lt_cv_dlopen=dlopen
11718 lt_cv_dlopen_self=no
11722 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11723 if test "x$ac_cv_func_shl_load" = xyes
11725 lt_cv_dlopen=shl_load
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11728 printf %s "checking for shl_load in -ldld... " >&6; }
11729 if test ${ac_cv_lib_dld_shl_load+y}
11731 printf %s "(cached) " >&6
11733 ac_check_lib_save_LIBS=$LIBS
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11745 return shl_load ();
11750 if ac_fn_c_try_link "$LINENO"
11752 ac_cv_lib_dld_shl_load=yes
11754 ac_cv_lib_dld_shl_load=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11761 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11762 if test "x$ac_cv_lib_dld_shl_load" = xyes
11764 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11766 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11767 if test "x$ac_cv_func_dlopen" = xyes
11769 lt_cv_dlopen=dlopen
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11772 printf %s "checking for dlopen in -ldl... " >&6; }
11773 if test ${ac_cv_lib_dl_dlopen+y}
11775 printf %s "(cached) " >&6
11777 ac_check_lib_save_LIBS=$LIBS
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11794 if ac_fn_c_try_link "$LINENO"
11796 ac_cv_lib_dl_dlopen=yes
11798 ac_cv_lib_dl_dlopen=no
11800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11801 conftest$ac_exeext conftest.$ac_ext
11802 LIBS=$ac_check_lib_save_LIBS
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11805 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11806 if test "x$ac_cv_lib_dl_dlopen" = xyes
11808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11811 printf %s "checking for dlopen in -lsvld... " >&6; }
11812 if test ${ac_cv_lib_svld_dlopen+y}
11814 printf %s "(cached) " >&6
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-lsvld $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11833 if ac_fn_c_try_link "$LINENO"
11835 ac_cv_lib_svld_dlopen=yes
11837 ac_cv_lib_svld_dlopen=no
11839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11844 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11845 if test "x$ac_cv_lib_svld_dlopen" = xyes
11847 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11850 printf %s "checking for dld_link in -ldld... " >&6; }
11851 if test ${ac_cv_lib_dld_dld_link+y}
11853 printf %s "(cached) " >&6
11855 ac_check_lib_save_LIBS=$LIBS
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11867 return dld_link ();
11872 if ac_fn_c_try_link "$LINENO"
11874 ac_cv_lib_dld_dld_link=yes
11876 ac_cv_lib_dld_dld_link=no
11878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11883 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11884 if test "x$ac_cv_lib_dld_dld_link" = xyes
11886 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11907 if test no = "$lt_cv_dlopen"; then
11913 case $lt_cv_dlopen in
11915 save_CPPFLAGS=$CPPFLAGS
11916 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11918 save_LDFLAGS=$LDFLAGS
11919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11922 LIBS="$lt_cv_dlopen_libs $LIBS"
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11925 printf %s "checking whether a program can dlopen itself... " >&6; }
11926 if test ${lt_cv_dlopen_self+y}
11928 printf %s "(cached) " >&6
11930 if test yes = "$cross_compiling"; then :
11931 lt_cv_dlopen_self=cross
11933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11934 lt_status=$lt_dlunknown
11935 cat > conftest.$ac_ext <<_LT_EOF
11936 #line $LINENO "configure"
11937 #include "confdefs.h"
11946 # define LT_DLGLOBAL RTLD_GLOBAL
11949 # define LT_DLGLOBAL DL_GLOBAL
11951 # define LT_DLGLOBAL 0
11955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11956 find out it does not work in some platform. */
11957 #ifndef LT_DLLAZY_OR_NOW
11959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11962 # define LT_DLLAZY_OR_NOW DL_LAZY
11965 # define LT_DLLAZY_OR_NOW RTLD_NOW
11968 # define LT_DLLAZY_OR_NOW DL_NOW
11970 # define LT_DLLAZY_OR_NOW 0
11977 /* When -fvisibility=hidden is used, assume the code has been annotated
11978 correspondingly for the symbols needed. */
11979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11980 int fnord () __attribute__((visibility("default")));
11983 int fnord () { return 42; }
11986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11987 int status = $lt_dlunknown;
11991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11995 else puts (dlerror ());
11997 /* dlclose (self); */
12005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12006 (eval $ac_link) 2>&5
12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12009 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12010 (./conftest; exit; ) >&5 2>/dev/null
12012 case x$lt_status in
12013 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12014 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12015 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12018 # compilation failed
12019 lt_cv_dlopen_self=no
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12027 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12029 if test yes = "$lt_cv_dlopen_self"; then
12030 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12032 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12033 if test ${lt_cv_dlopen_self_static+y}
12035 printf %s "(cached) " >&6
12037 if test yes = "$cross_compiling"; then :
12038 lt_cv_dlopen_self_static=cross
12040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12041 lt_status=$lt_dlunknown
12042 cat > conftest.$ac_ext <<_LT_EOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12053 # define LT_DLGLOBAL RTLD_GLOBAL
12056 # define LT_DLGLOBAL DL_GLOBAL
12058 # define LT_DLGLOBAL 0
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063 find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12069 # define LT_DLLAZY_OR_NOW DL_LAZY
12072 # define LT_DLLAZY_OR_NOW RTLD_NOW
12075 # define LT_DLLAZY_OR_NOW DL_NOW
12077 # define LT_DLLAZY_OR_NOW 0
12084 /* When -fvisibility=hidden is used, assume the code has been annotated
12085 correspondingly for the symbols needed. */
12086 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087 int fnord () __attribute__((visibility("default")));
12090 int fnord () { return 42; }
12093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094 int status = $lt_dlunknown;
12098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12102 else puts (dlerror ());
12104 /* dlclose (self); */
12112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12113 (eval $ac_link) 2>&5
12115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12117 (./conftest; exit; ) >&5 2>/dev/null
12119 case x$lt_status in
12120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12122 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12125 # compilation failed
12126 lt_cv_dlopen_self_static=no
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12134 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12137 CPPFLAGS=$save_CPPFLAGS
12138 LDFLAGS=$save_LDFLAGS
12143 case $lt_cv_dlopen_self in
12144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12145 *) enable_dlopen_self=unknown ;;
12148 case $lt_cv_dlopen_self_static in
12149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12150 *) enable_dlopen_self_static=unknown ;;
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12173 printf %s "checking whether stripping libraries is possible... " >&6; }
12174 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 printf "%s\n" "yes" >&6; }
12180 # FIXME - insert some real tests, host_os isn't really good enough
12183 if test -n "$STRIP"; then
12184 striplib="$STRIP -x"
12185 old_striplib="$STRIP -S"
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 printf "%s\n" "yes" >&6; }
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 printf "%s\n" "no" >&6; }
12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 printf "%s\n" "no" >&6; }
12211 # Report what library types will actually be built
12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12213 printf %s "checking if libtool supports shared libraries... " >&6; }
12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12215 printf "%s\n" "$can_build_shared" >&6; }
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12218 printf %s "checking whether to build shared libraries... " >&6; }
12219 test no = "$can_build_shared" && enable_shared=no
12221 # On AIX, shared libraries and static libraries use the same namespace, and
12222 # are all built from PIC.
12225 test yes = "$enable_shared" && enable_static=no
12226 if test -n "$RANLIB"; then
12227 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12228 postinstall_cmds='$RANLIB $lib'
12233 if test ia64 != "$host_cpu"; then
12234 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12235 yes,aix,yes) ;; # shared object as lib.so file only
12236 yes,svr4,*) ;; # shared object as lib.so archive member only
12237 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12243 printf "%s\n" "$enable_shared" >&6; }
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12246 printf %s "checking whether to build static libraries... " >&6; }
12247 # Make sure either enable_shared or enable_static is yes.
12248 test yes = "$enable_shared" || enable_static=yes
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12250 printf "%s\n" "$enable_static" >&6; }
12257 ac_cpp='$CPP $CPPFLAGS'
12258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278 ac_config_commands="$ac_config_commands libtool"
12283 # Only expand once:
12289 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
12292 # Checks for programs.
12294 ac_cpp='$CPP $CPPFLAGS'
12295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 if test -n "$ac_tool_prefix"; then
12299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 printf %s "checking for $ac_word... " >&6; }
12303 if test ${ac_cv_prog_CC+y}
12305 printf %s "(cached) " >&6
12307 if test -n "$CC"; then
12308 ac_cv_prog_CC="$CC" # Let the user override the test.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12314 case $as_dir in #(((
12317 *) as_dir=$as_dir/ ;;
12319 for ac_exec_ext in '' $ac_executable_extensions; do
12320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12321 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12332 if test -n "$CC"; then
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12334 printf "%s\n" "$CC" >&6; }
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 printf "%s\n" "no" >&6; }
12342 if test -z "$ac_cv_prog_CC"; then
12344 # Extract the first word of "gcc", so it can be a program name with args.
12345 set dummy gcc; ac_word=$2
12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 printf %s "checking for $ac_word... " >&6; }
12348 if test ${ac_cv_prog_ac_ct_CC+y}
12350 printf %s "(cached) " >&6
12352 if test -n "$ac_ct_CC"; then
12353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 case $as_dir in #(((
12362 *) as_dir=$as_dir/ ;;
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12366 ac_cv_prog_ac_ct_CC="gcc"
12367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12377 if test -n "$ac_ct_CC"; then
12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12379 printf "%s\n" "$ac_ct_CC" >&6; }
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 printf "%s\n" "no" >&6; }
12385 if test "x$ac_ct_CC" = x; then
12388 case $cross_compiling:$ac_tool_warned in
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned=yes ;;
12397 CC="$ac_cv_prog_CC"
12400 if test -z "$CC"; then
12401 if test -n "$ac_tool_prefix"; then
12402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12403 set dummy ${ac_tool_prefix}cc; ac_word=$2
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 printf %s "checking for $ac_word... " >&6; }
12406 if test ${ac_cv_prog_CC+y}
12408 printf %s "(cached) " >&6
12410 if test -n "$CC"; then
12411 ac_cv_prog_CC="$CC" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 case $as_dir in #(((
12420 *) as_dir=$as_dir/ ;;
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_CC="${ac_tool_prefix}cc"
12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12435 if test -n "$CC"; then
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12437 printf "%s\n" "$CC" >&6; }
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 printf "%s\n" "no" >&6; }
12446 if test -z "$CC"; then
12447 # Extract the first word of "cc", so it can be a program name with args.
12448 set dummy cc; ac_word=$2
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 printf %s "checking for $ac_word... " >&6; }
12451 if test ${ac_cv_prog_CC+y}
12453 printf %s "(cached) " >&6
12455 if test -n "$CC"; then
12456 ac_cv_prog_CC="$CC" # Let the user override the test.
12458 ac_prog_rejected=no
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12463 case $as_dir in #(((
12466 *) as_dir=$as_dir/ ;;
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12470 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12471 ac_prog_rejected=yes
12475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12482 if test $ac_prog_rejected = yes; then
12483 # We found a bogon in the path, so make sure we never use it.
12484 set dummy $ac_cv_prog_CC
12486 if test $# != 0; then
12487 # We chose a different compiler from the bogus one.
12488 # However, it has the same basename, so the bogon will be chosen
12489 # first if we set CC to just the basename; use the full file name.
12491 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
12497 if test -n "$CC"; then
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12499 printf "%s\n" "$CC" >&6; }
12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 printf "%s\n" "no" >&6; }
12507 if test -z "$CC"; then
12508 if test -n "$ac_tool_prefix"; then
12509 for ac_prog in cl.exe
12511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 printf %s "checking for $ac_word... " >&6; }
12515 if test ${ac_cv_prog_CC+y}
12517 printf %s "(cached) " >&6
12519 if test -n "$CC"; then
12520 ac_cv_prog_CC="$CC" # Let the user override the test.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 case $as_dir in #(((
12529 *) as_dir=$as_dir/ ;;
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12544 if test -n "$CC"; then
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12546 printf "%s\n" "$CC" >&6; }
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 printf "%s\n" "no" >&6; }
12553 test -n "$CC" && break
12556 if test -z "$CC"; then
12558 for ac_prog in cl.exe
12560 # Extract the first word of "$ac_prog", so it can be a program name with args.
12561 set dummy $ac_prog; ac_word=$2
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 printf %s "checking for $ac_word... " >&6; }
12564 if test ${ac_cv_prog_ac_ct_CC+y}
12566 printf %s "(cached) " >&6
12568 if test -n "$ac_ct_CC"; then
12569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12572 for as_dir in $PATH
12575 case $as_dir in #(((
12578 *) as_dir=$as_dir/ ;;
12580 for ac_exec_ext in '' $ac_executable_extensions; do
12581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12582 ac_cv_prog_ac_ct_CC="$ac_prog"
12583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12593 if test -n "$ac_ct_CC"; then
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12595 printf "%s\n" "$ac_ct_CC" >&6; }
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 printf "%s\n" "no" >&6; }
12602 test -n "$ac_ct_CC" && break
12605 if test "x$ac_ct_CC" = x; then
12608 case $cross_compiling:$ac_tool_warned in
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12612 ac_tool_warned=yes ;;
12619 if test -z "$CC"; then
12620 if test -n "$ac_tool_prefix"; then
12621 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
12622 set dummy ${ac_tool_prefix}clang; ac_word=$2
12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 printf %s "checking for $ac_word... " >&6; }
12625 if test ${ac_cv_prog_CC+y}
12627 printf %s "(cached) " >&6
12629 if test -n "$CC"; then
12630 ac_cv_prog_CC="$CC" # Let the user override the test.
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12636 case $as_dir in #(((
12639 *) as_dir=$as_dir/ ;;
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_CC="${ac_tool_prefix}clang"
12644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12654 if test -n "$CC"; then
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12656 printf "%s\n" "$CC" >&6; }
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12664 if test -z "$ac_cv_prog_CC"; then
12666 # Extract the first word of "clang", so it can be a program name with args.
12667 set dummy clang; ac_word=$2
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 printf %s "checking for $ac_word... " >&6; }
12670 if test ${ac_cv_prog_ac_ct_CC+y}
12672 printf %s "(cached) " >&6
12674 if test -n "$ac_ct_CC"; then
12675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678 for as_dir in $PATH
12681 case $as_dir in #(((
12684 *) as_dir=$as_dir/ ;;
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12688 ac_cv_prog_ac_ct_CC="clang"
12689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12699 if test -n "$ac_ct_CC"; then
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12701 printf "%s\n" "$ac_ct_CC" >&6; }
12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 printf "%s\n" "no" >&6; }
12707 if test "x$ac_ct_CC" = x; then
12710 case $cross_compiling:$ac_tool_warned in
12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12713 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12714 ac_tool_warned=yes ;;
12719 CC="$ac_cv_prog_CC"
12725 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12727 as_fn_error $? "no acceptable C compiler found in \$PATH
12728 See \`config.log' for more details" "$LINENO" 5; }
12730 # Provide some information about the compiler.
12731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12734 for ac_option in --version -v -V -qversion -version; do
12735 { { ac_try="$ac_compiler $ac_option >&5"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12741 printf "%s\n" "$ac_try_echo"; } >&5
12742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12744 if test -s conftest.err; then
12746 ... rest of stderr output deleted ...
12747 10q' conftest.err >conftest.er1
12748 cat conftest.er1 >&5
12750 rm -f conftest.er1 conftest.err
12751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752 test $ac_status = 0; }
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
12756 printf %s "checking whether the compiler supports GNU C... " >&6; }
12757 if test ${ac_cv_c_compiler_gnu+y}
12759 printf %s "(cached) " >&6
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12775 if ac_fn_c_try_compile "$LINENO"
12777 ac_compiler_gnu=yes
12781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12782 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12786 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
12787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12789 if test $ac_compiler_gnu = yes; then
12794 ac_test_CFLAGS=${CFLAGS+y}
12795 ac_save_CFLAGS=$CFLAGS
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12797 printf %s "checking whether $CC accepts -g... " >&6; }
12798 if test ${ac_cv_prog_cc_g+y}
12800 printf %s "(cached) " >&6
12802 ac_save_c_werror_flag=$ac_c_werror_flag
12803 ac_c_werror_flag=yes
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12817 if ac_fn_c_try_compile "$LINENO"
12819 ac_cv_prog_cc_g=yes
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12833 if ac_fn_c_try_compile "$LINENO"
12837 ac_c_werror_flag=$ac_save_c_werror_flag
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12850 if ac_fn_c_try_compile "$LINENO"
12852 ac_cv_prog_cc_g=yes
12854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12859 ac_c_werror_flag=$ac_save_c_werror_flag
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12862 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
12863 if test $ac_test_CFLAGS; then
12864 CFLAGS=$ac_save_CFLAGS
12865 elif test $ac_cv_prog_cc_g = yes; then
12866 if test "$GCC" = yes; then
12872 if test "$GCC" = yes; then
12879 if test x$ac_prog_cc_stdc = xno
12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
12882 printf %s "checking for $CC option to enable C11 features... " >&6; }
12883 if test ${ac_cv_prog_cc_c11+y}
12885 printf %s "(cached) " >&6
12887 ac_cv_prog_cc_c11=no
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 $ac_c_conftest_c11_program
12893 for ac_arg in '' -std=gnu11
12895 CC="$ac_save_CC $ac_arg"
12896 if ac_fn_c_try_compile "$LINENO"
12898 ac_cv_prog_cc_c11=$ac_arg
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam
12901 test "x$ac_cv_prog_cc_c11" != "xno" && break
12903 rm -f conftest.$ac_ext
12907 if test "x$ac_cv_prog_cc_c11" = xno
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12910 printf "%s\n" "unsupported" >&6; }
12912 if test "x$ac_cv_prog_cc_c11" = x
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12915 printf "%s\n" "none needed" >&6; }
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
12918 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
12919 CC="$CC $ac_cv_prog_cc_c11"
12921 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
12922 ac_prog_cc_stdc=c11
12925 if test x$ac_prog_cc_stdc = xno
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
12928 printf %s "checking for $CC option to enable C99 features... " >&6; }
12929 if test ${ac_cv_prog_cc_c99+y}
12931 printf %s "(cached) " >&6
12933 ac_cv_prog_cc_c99=no
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 $ac_c_conftest_c99_program
12939 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
12941 CC="$ac_save_CC $ac_arg"
12942 if ac_fn_c_try_compile "$LINENO"
12944 ac_cv_prog_cc_c99=$ac_arg
12946 rm -f core conftest.err conftest.$ac_objext conftest.beam
12947 test "x$ac_cv_prog_cc_c99" != "xno" && break
12949 rm -f conftest.$ac_ext
12953 if test "x$ac_cv_prog_cc_c99" = xno
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12956 printf "%s\n" "unsupported" >&6; }
12958 if test "x$ac_cv_prog_cc_c99" = x
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12961 printf "%s\n" "none needed" >&6; }
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12964 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
12965 CC="$CC $ac_cv_prog_cc_c99"
12967 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
12968 ac_prog_cc_stdc=c99
12971 if test x$ac_prog_cc_stdc = xno
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
12974 printf %s "checking for $CC option to enable C89 features... " >&6; }
12975 if test ${ac_cv_prog_cc_c89+y}
12977 printf %s "(cached) " >&6
12979 ac_cv_prog_cc_c89=no
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 $ac_c_conftest_c89_program
12985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12987 CC="$ac_save_CC $ac_arg"
12988 if ac_fn_c_try_compile "$LINENO"
12990 ac_cv_prog_cc_c89=$ac_arg
12992 rm -f core conftest.err conftest.$ac_objext conftest.beam
12993 test "x$ac_cv_prog_cc_c89" != "xno" && break
12995 rm -f conftest.$ac_ext
12999 if test "x$ac_cv_prog_cc_c89" = xno
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13002 printf "%s\n" "unsupported" >&6; }
13004 if test "x$ac_cv_prog_cc_c89" = x
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13007 printf "%s\n" "none needed" >&6; }
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13010 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13011 CC="$CC $ac_cv_prog_cc_c89"
13013 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13014 ac_prog_cc_stdc=c89
13019 ac_cpp='$CPP $CPPFLAGS'
13020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
13026 printf %s "checking $CC dependency flag... " >&6; }
13027 echo 'void f(){}' >conftest.c
13028 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
13031 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
13034 DEPFLAG="-MM" # dunno do something
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
13038 printf "%s\n" "$DEPFLAG" >&6; }
13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13043 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13045 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13046 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13048 printf %s "(cached) " >&6
13050 cat >conftest.make <<\_ACEOF
13053 @echo '@@@%%%=$(MAKE)=@@@%%%'
13055 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13057 *@@@%%%=?*=@@@%%%*)
13058 eval ac_cv_prog_make_${ac_make}_set=yes;;
13060 eval ac_cv_prog_make_${ac_make}_set=no;;
13062 rm -f conftest.make
13064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 printf "%s\n" "yes" >&6; }
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 printf "%s\n" "no" >&6; }
13071 SET_MAKE="MAKE=${MAKE-make}"
13075 # Extra (sp)lint flags for NetBSD
13078 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
13080 *) LINTFLAGS="$LINTFLAGS"
13086 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
13092 printf %s "checking whether $CC supports -std=c99... " >&6; }
13093 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
13094 if eval test \${cv_prog_cc_flag_$cache+y}
13096 printf %s "(cached) " >&6
13099 echo 'void f(void){}' >conftest.c
13100 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
13101 eval "cv_prog_cc_flag_$cache=yes"
13103 eval "cv_prog_cc_flag_$cache=no"
13105 rm -f conftest conftest.o conftest.c
13109 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 printf "%s\n" "yes" >&6; }
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 printf "%s\n" "no" >&6; }
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
13124 printf %s "checking whether $CC supports -xc99... " >&6; }
13125 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
13126 if eval test \${cv_prog_cc_flag_$cache+y}
13128 printf %s "(cached) " >&6
13131 echo 'void f(void){}' >conftest.c
13132 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
13133 eval "cv_prog_cc_flag_$cache=yes"
13135 eval "cv_prog_cc_flag_$cache=no"
13137 rm -f conftest conftest.o conftest.c
13141 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 printf "%s\n" "yes" >&6; }
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 printf "%s\n" "no" >&6; }
13154 # routine to copy files
13155 # argument 1 is a list of files (relative to the source dir)
13156 # argument 2 is a destination directory (relative to the current
13157 # working directory
13160 # copy all .h files in the dir at argument 1
13161 # (relative to source) to the dir at argument 2
13162 # (relative to current dir)
13165 # Checks for typedefs, structures, and compiler characteristics.
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13167 printf %s "checking for an ANSI C-conforming const... " >&6; }
13168 if test ${ac_cv_c_const+y}
13170 printf %s "(cached) " >&6
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13179 #ifndef __cplusplus
13180 /* Ultrix mips cc rejects this sort of thing. */
13181 typedef int charset[2];
13182 const charset cs = { 0, 0 };
13183 /* SunOS 4.1.1 cc rejects this. */
13184 char const *const *pcpcc;
13186 /* NEC SVR4.0.2 mips cc rejects this. */
13187 struct point {int x, y;};
13188 static struct point const zero = {0,0};
13189 /* IBM XL C 1.02.0.0 rejects this.
13190 It does not let you subtract one const X* pointer from another in
13191 an arm of an if-expression whose if-part is not a constant
13193 const char *g = "string";
13194 pcpcc = &g + (g ? g-g : 0);
13195 /* HPUX 7.0 cc rejects these. */
13197 ppc = (char**) pcpcc;
13198 pcpcc = (char const *const *) ppc;
13199 { /* SCO 3.2v4 cc rejects this sort of thing. */
13202 char const *s = 0 ? (char *) 0 : (char const *) 0;
13207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13208 int x[] = {25, 17};
13209 const int *foo = &x[0];
13212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13213 typedef const int *iptr;
13217 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13219 struct s { int j; const int *ap[3]; } bx;
13220 struct s *b = &bx; b->j = 5;
13222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13223 const int foo = 10;
13224 if (!foo) return 0;
13226 return !cs[0] && !zero.x;
13233 if ac_fn_c_try_compile "$LINENO"
13239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13242 printf "%s\n" "$ac_cv_c_const" >&6; }
13243 if test $ac_cv_c_const = no; then
13245 printf "%s\n" "#define const /**/" >>confdefs.h
13250 ac_cpp='$CPP $CPPFLAGS'
13251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13255 if test "x$CFLAGS" = "x" ; then
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
13259 printf %s "checking whether $CC supports -g... " >&6; }
13260 cache=`echo g | sed 'y%.=/+-%___p_%'`
13261 if eval test \${cv_prog_cc_flag_$cache+y}
13263 printf %s "(cached) " >&6
13266 echo 'void f(void){}' >conftest.c
13267 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
13268 eval "cv_prog_cc_flag_$cache=yes"
13270 eval "cv_prog_cc_flag_$cache=no"
13272 rm -f conftest conftest.o conftest.c
13276 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 printf "%s\n" "yes" >&6; }
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 printf "%s\n" "no" >&6; }
13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
13291 printf %s "checking whether $CC supports -O2... " >&6; }
13292 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
13293 if eval test \${cv_prog_cc_flag_$cache+y}
13295 printf %s "(cached) " >&6
13298 echo 'void f(void){}' >conftest.c
13299 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
13300 eval "cv_prog_cc_flag_$cache=yes"
13302 eval "cv_prog_cc_flag_$cache=no"
13304 rm -f conftest conftest.o conftest.c
13308 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 printf "%s\n" "yes" >&6; }
13312 CFLAGS="-O2 $CFLAGS"
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 printf "%s\n" "no" >&6; }
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
13324 printf %s "checking whether $CC supports -Wall... " >&6; }
13325 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
13326 if eval test \${cv_prog_cc_flag_$cache+y}
13328 printf %s "(cached) " >&6
13331 echo 'void f(void){}' >conftest.c
13332 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
13333 eval "cv_prog_cc_flag_$cache=yes"
13335 eval "cv_prog_cc_flag_$cache=no"
13337 rm -f conftest conftest.o conftest.c
13341 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13343 printf "%s\n" "yes" >&6; }
13345 CFLAGS="-Wall $CFLAGS"
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 printf "%s\n" "no" >&6; }
13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
13356 printf %s "checking whether $CC supports -W... " >&6; }
13357 cache=`echo W | sed 'y%.=/+-%___p_%'`
13358 if eval test \${cv_prog_cc_flag_$cache+y}
13360 printf %s "(cached) " >&6
13363 echo 'void f(void){}' >conftest.c
13364 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
13365 eval "cv_prog_cc_flag_$cache=yes"
13367 eval "cv_prog_cc_flag_$cache=no"
13369 rm -f conftest conftest.o conftest.c
13373 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 printf "%s\n" "yes" >&6; }
13377 CFLAGS="-W $CFLAGS"
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 printf "%s\n" "no" >&6; }
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
13388 printf %s "checking whether $CC supports -Wwrite-strings... " >&6; }
13389 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
13390 if eval test \${cv_prog_cc_flag_$cache+y}
13392 printf %s "(cached) " >&6
13395 echo 'void f(void){}' >conftest.c
13396 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
13397 eval "cv_prog_cc_flag_$cache=yes"
13399 eval "cv_prog_cc_flag_$cache=no"
13401 rm -f conftest conftest.o conftest.c
13405 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 printf "%s\n" "yes" >&6; }
13409 CFLAGS="-Wwrite-strings $CFLAGS"
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 printf "%s\n" "no" >&6; }
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
13420 printf %s "checking whether $CC supports -Wstrict-prototypes... " >&6; }
13421 cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
13422 if eval test \${cv_prog_cc_flag_$cache+y}
13424 printf %s "(cached) " >&6
13427 echo 'void f(void){}' >conftest.c
13428 if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
13429 eval "cv_prog_cc_flag_$cache=yes"
13431 eval "cv_prog_cc_flag_$cache=no"
13433 rm -f conftest conftest.o conftest.c
13437 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 printf "%s\n" "yes" >&6; }
13441 CFLAGS="-Wstrict-prototypes $CFLAGS"
13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 printf "%s\n" "no" >&6; }
13449 #ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"])
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5
13453 printf %s "checking whether $CC supports -Wunused-function... " >&6; }
13454 cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'`
13455 if eval test \${cv_prog_cc_flag_$cache+y}
13457 printf %s "(cached) " >&6
13460 echo 'void f(void){}' >conftest.c
13461 if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then
13462 eval "cv_prog_cc_flag_$cache=yes"
13464 eval "cv_prog_cc_flag_$cache=no"
13466 rm -f conftest conftest.o conftest.c
13470 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 printf "%s\n" "yes" >&6; }
13474 CFLAGS="-Wunused-function $CFLAGS"
13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 printf "%s\n" "no" >&6; }
13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
13485 printf %s "checking whether $CC supports -Wmissing-prototypes... " >&6; }
13486 cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'`
13487 if eval test \${cv_prog_cc_flag_$cache+y}
13489 printf %s "(cached) " >&6
13492 echo 'void f(void){}' >conftest.c
13493 if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then
13494 eval "cv_prog_cc_flag_$cache=yes"
13496 eval "cv_prog_cc_flag_$cache=no"
13498 rm -f conftest conftest.o conftest.c
13502 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13504 printf "%s\n" "yes" >&6; }
13506 CFLAGS="-Wmissing-prototypes $CFLAGS"
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 printf "%s\n" "no" >&6; }
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
13517 printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; }
13518 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
13519 if eval test \${cv_prog_cc_flag_$cache+y}
13521 printf %s "(cached) " >&6
13524 echo 'void f(void){}' >conftest.c
13525 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
13526 eval "cv_prog_cc_flag_$cache=yes"
13528 eval "cv_prog_cc_flag_$cache=no"
13530 rm -f conftest conftest.o conftest.c
13534 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 printf "%s\n" "yes" >&6; }
13538 CFLAGS="-fno-strict-aliasing $CFLAGS"
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 printf "%s\n" "no" >&6; }
13547 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
13549 if test "x$ac_cv_header_getopt_h" = xyes
13551 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13554 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
13556 if test "x$ac_cv_header_time_h" = xyes
13558 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13564 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
13566 if test "x$ac_cv_header_winsock2_h" = xyes
13568 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
13571 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default
13573 if test "x$ac_cv_header_ws2tcpip_h" = xyes
13575 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
13579 # end mingw32 tests
13581 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
13582 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
13583 if test "x$ac_cv_header_TargetConditionals_h" = xyes
13585 printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
13594 printf %s "checking whether $CC supports -Werror... " >&6; }
13595 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
13596 if eval test \${cv_prog_cc_flag_$cache+y}
13598 printf %s "(cached) " >&6
13601 echo 'void f(void){}' >conftest.c
13602 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
13603 eval "cv_prog_cc_flag_$cache=yes"
13605 eval "cv_prog_cc_flag_$cache=no"
13607 rm -f conftest conftest.o conftest.c
13611 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13613 printf "%s\n" "yes" >&6; }
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
13626 printf %s "checking whether $CC supports -Wall... " >&6; }
13627 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
13628 if eval test \${cv_prog_cc_flag_$cache+y}
13630 printf %s "(cached) " >&6
13633 echo 'void f(void){}' >conftest.c
13634 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
13635 eval "cv_prog_cc_flag_$cache=yes"
13637 eval "cv_prog_cc_flag_$cache=no"
13639 rm -f conftest conftest.o conftest.c
13643 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 printf "%s\n" "yes" >&6; }
13647 ERRFLAG="$ERRFLAG -Wall"
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 printf "%s\n" "no" >&6; }
13652 ERRFLAG="$ERRFLAG -errfmt"
13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
13660 printf %s "checking whether $CC supports -std=c99... " >&6; }
13661 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
13662 if eval test \${cv_prog_cc_flag_$cache+y}
13664 printf %s "(cached) " >&6
13667 echo 'void f(void){}' >conftest.c
13668 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
13669 eval "cv_prog_cc_flag_$cache=yes"
13671 eval "cv_prog_cc_flag_$cache=no"
13673 rm -f conftest conftest.o conftest.c
13677 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 printf "%s\n" "yes" >&6; }
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 printf "%s\n" "no" >&6; }
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
13692 printf %s "checking whether $CC supports -xc99... " >&6; }
13693 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
13694 if eval test \${cv_prog_cc_flag_$cache+y}
13696 printf %s "(cached) " >&6
13699 echo 'void f(void){}' >conftest.c
13700 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
13701 eval "cv_prog_cc_flag_$cache=yes"
13703 eval "cv_prog_cc_flag_$cache=no"
13705 rm -f conftest conftest.o conftest.c
13709 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
13710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711 printf "%s\n" "yes" >&6; }
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 printf "%s\n" "no" >&6; }
13722 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
13724 if test "x$ac_cv_header_getopt_h" = xyes
13726 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13729 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
13731 if test "x$ac_cv_header_time_h" = xyes
13733 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
13742 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
13743 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
13744 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13746 printf %s "(cached) " >&6
13750 #include "confdefs.h"
13751 #include <stdlib.h>
13753 #include <sys/time.h>
13757 #include <unistd.h>
13759 #ifdef HAVE_GETOPT_H
13760 #include <getopt.h>
13765 char **opts = NULL;
13770 const char* str = NULL;
13772 msg.msg_control = 0;
13773 t = ctime_r(&time, buf);
13776 a = getopt(2, opts, "a");
13778 str = gai_strerror(0);
13779 if(str && t && tv.tv_usec && msg.msg_control)
13784 echo 'void f(){}' >>conftest.c
13785 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13786 eval "cv_prog_cc_flag_needed_$cache=no"
13789 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13790 eval "cv_prog_cc_flag_needed_$cache=yes"
13792 eval "cv_prog_cc_flag_needed_$cache=fail"
13793 #echo 'Test with flag fails too!'
13795 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13796 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13801 rm -f conftest conftest.c conftest.o
13805 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807 printf "%s\n" "yes" >&6; }
13809 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
13811 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 printf "%s\n" "no" >&6; }
13814 #echo 'Test with flag is no!'
13816 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13817 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13823 printf "%s\n" "failed" >&6; }
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
13834 printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
13835 cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
13836 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13838 printf %s "(cached) " >&6
13842 #include "confdefs.h"
13843 #include <stdlib.h>
13845 #include <sys/time.h>
13849 #include <unistd.h>
13851 #ifdef HAVE_GETOPT_H
13852 #include <getopt.h>
13857 char **opts = NULL;
13862 const char* str = NULL;
13864 msg.msg_control = 0;
13865 t = ctime_r(&time, buf);
13868 a = getopt(2, opts, "a");
13870 str = gai_strerror(0);
13871 if(str && t && tv.tv_usec && msg.msg_control)
13876 echo 'void f(){}' >>conftest.c
13877 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13878 eval "cv_prog_cc_flag_needed_$cache=no"
13881 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13882 eval "cv_prog_cc_flag_needed_$cache=yes"
13884 eval "cv_prog_cc_flag_needed_$cache=fail"
13885 #echo 'Test with flag fails too!'
13887 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13888 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13893 rm -f conftest conftest.c conftest.o
13897 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899 printf "%s\n" "yes" >&6; }
13901 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
13903 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 printf "%s\n" "no" >&6; }
13906 #echo 'Test with flag is no!'
13908 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13909 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13915 printf "%s\n" "failed" >&6; }
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
13926 printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
13927 cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh`
13928 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13930 printf %s "(cached) " >&6
13934 #include <stdbool.h>
13941 echo 'void f(){}' >>conftest.c
13942 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13943 eval "cv_prog_cc_flag_needed_$cache=no"
13946 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
13947 eval "cv_prog_cc_flag_needed_$cache=yes"
13949 eval "cv_prog_cc_flag_needed_$cache=fail"
13950 #echo 'Test with flag fails too!'
13952 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13953 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13958 rm -f conftest conftest.c conftest.o
13962 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13964 printf "%s\n" "yes" >&6; }
13966 CFLAGS="$CFLAGS $C99FLAG"
13968 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 printf "%s\n" "no" >&6; }
13971 #echo 'Test with flag is no!'
13973 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13974 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13980 printf "%s\n" "failed" >&6; }
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
13991 printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
13992 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
13993 if eval test \${cv_prog_cc_flag_needed_$cache+y}
13995 printf %s "(cached) " >&6
14007 echo 'void f(){}' >>conftest.c
14008 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14009 eval "cv_prog_cc_flag_needed_$cache=no"
14012 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
14013 eval "cv_prog_cc_flag_needed_$cache=yes"
14015 eval "cv_prog_cc_flag_needed_$cache=fail"
14016 #echo 'Test with flag fails too!'
14018 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
14019 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
14024 rm -f conftest conftest.c conftest.o
14028 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14030 printf "%s\n" "yes" >&6; }
14032 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
14034 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14036 printf "%s\n" "no" >&6; }
14037 #echo 'Test with flag is no!'
14039 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
14040 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14046 printf "%s\n" "failed" >&6; }
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
14057 printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
14058 cache=_D_GNU_SOURCE
14059 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14061 printf %s "(cached) " >&6
14065 #include <netinet/in.h>
14068 struct in6_pktinfo inf;
14069 int a = (int)sizeof(inf);
14073 echo 'void f(){}' >>conftest.c
14074 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14075 eval "cv_prog_cc_flag_needed_$cache=no"
14078 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
14079 eval "cv_prog_cc_flag_needed_$cache=yes"
14081 eval "cv_prog_cc_flag_needed_$cache=fail"
14082 #echo 'Test with flag fails too!'
14084 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
14085 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
14090 rm -f conftest conftest.c conftest.o
14094 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14096 printf "%s\n" "yes" >&6; }
14098 CFLAGS="$CFLAGS -D_GNU_SOURCE"
14100 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 printf "%s\n" "no" >&6; }
14103 #echo 'Test with flag is no!'
14105 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
14106 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14112 printf "%s\n" "failed" >&6; }
14119 # check again for GNU_SOURCE for setresgid. May fail if setresgid
14120 # is not available at all. -D_FRSRESGID is to make this check unique.
14121 # otherwise we would get the previous cached result.
14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
14126 printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
14127 cache=_D_GNU_SOURCE__D_FRSRESGID
14128 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14130 printf %s "(cached) " >&6
14134 #include <unistd.h>
14137 int a = setresgid(0,0,0);
14138 a = setresuid(0,0,0);
14142 echo 'void f(){}' >>conftest.c
14143 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14144 eval "cv_prog_cc_flag_needed_$cache=no"
14147 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
14148 eval "cv_prog_cc_flag_needed_$cache=yes"
14150 eval "cv_prog_cc_flag_needed_$cache=fail"
14151 #echo 'Test with flag fails too!'
14153 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
14154 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
14159 rm -f conftest conftest.c conftest.o
14163 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165 printf "%s\n" "yes" >&6; }
14167 CFLAGS="$CFLAGS -D_GNU_SOURCE"
14169 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 printf "%s\n" "no" >&6; }
14172 #echo 'Test with flag is no!'
14174 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
14175 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14181 printf "%s\n" "failed" >&6; }
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
14192 printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
14193 cache=_D_POSIX_C_SOURCE_200112
14194 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14196 printf %s "(cached) " >&6
14200 #include "confdefs.h"
14211 const char* str = NULL;
14212 t = ctime_r(&time, buf);
14213 str = gai_strerror(0);
14219 echo 'void f(){}' >>conftest.c
14220 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14221 eval "cv_prog_cc_flag_needed_$cache=no"
14224 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
14225 eval "cv_prog_cc_flag_needed_$cache=yes"
14227 eval "cv_prog_cc_flag_needed_$cache=fail"
14228 #echo 'Test with flag fails too!'
14230 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
14231 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
14236 rm -f conftest conftest.c conftest.o
14240 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 printf "%s\n" "yes" >&6; }
14244 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
14246 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 printf "%s\n" "no" >&6; }
14249 #echo 'Test with flag is no!'
14251 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
14252 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14258 printf "%s\n" "failed" >&6; }
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
14269 printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
14270 cache=_D__EXTENSIONS__
14271 if eval test \${cv_prog_cc_flag_needed_$cache+y}
14273 printf %s "(cached) " >&6
14277 #include "confdefs.h"
14278 #include <stdlib.h>
14280 #include <sys/time.h>
14284 #include <unistd.h>
14285 #ifdef HAVE_GETOPT_H
14286 #include <getopt.h>
14291 char **opts = NULL;
14295 a = getopt(2, opts, "a");
14302 echo 'void f(){}' >>conftest.c
14303 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14304 eval "cv_prog_cc_flag_needed_$cache=no"
14307 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
14308 eval "cv_prog_cc_flag_needed_$cache=yes"
14310 eval "cv_prog_cc_flag_needed_$cache=fail"
14311 #echo 'Test with flag fails too!'
14313 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
14314 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
14319 rm -f conftest conftest.c conftest.o
14323 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14325 printf "%s\n" "yes" >&6; }
14327 CFLAGS="$CFLAGS -D__EXTENSIONS__"
14329 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 printf "%s\n" "no" >&6; }
14332 #echo 'Test with flag is no!'
14334 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
14335 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14341 printf "%s\n" "failed" >&6; }
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14351 printf %s "checking for inline... " >&6; }
14352 if test ${ac_cv_c_inline+y}
14354 printf %s "(cached) " >&6
14357 for ac_kw in inline __inline__ __inline; do
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 #ifndef __cplusplus
14362 static $ac_kw foo_t static_foo (void) {return 0; }
14363 $ac_kw foo_t foo (void) {return 0; }
14367 if ac_fn_c_try_compile "$LINENO"
14369 ac_cv_c_inline=$ac_kw
14371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14372 test "$ac_cv_c_inline" != no && break
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14377 printf "%s\n" "$ac_cv_c_inline" >&6; }
14379 case $ac_cv_c_inline in
14382 case $ac_cv_c_inline in
14384 *) ac_val=$ac_cv_c_inline;;
14386 cat >>confdefs.h <<_ACEOF
14387 #ifndef __cplusplus
14388 #define inline $ac_val
14394 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14395 if test "x$ac_cv_type_int8_t" = xyes
14400 printf "%s\n" "#define int8_t char" >>confdefs.h
14404 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14405 if test "x$ac_cv_type_int16_t" = xyes
14410 printf "%s\n" "#define int16_t short" >>confdefs.h
14414 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14415 if test "x$ac_cv_type_int32_t" = xyes
14420 printf "%s\n" "#define int32_t int" >>confdefs.h
14424 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14425 if test "x$ac_cv_type_int64_t" = xyes
14430 printf "%s\n" "#define int64_t long long" >>confdefs.h
14434 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14435 if test "x$ac_cv_type_uint8_t" = xyes
14440 printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
14444 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14445 if test "x$ac_cv_type_uint16_t" = xyes
14450 printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
14454 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14455 if test "x$ac_cv_type_uint32_t" = xyes
14460 printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
14464 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14465 if test "x$ac_cv_type_uint64_t" = xyes
14470 printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
14476 # Extract the first word of "doxygen", so it can be a program name with args.
14477 set dummy doxygen; ac_word=$2
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 printf %s "checking for $ac_word... " >&6; }
14480 if test ${ac_cv_prog_doxygen+y}
14482 printf %s "(cached) " >&6
14484 if test -n "$doxygen"; then
14485 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14491 case $as_dir in #(((
14494 *) as_dir=$as_dir/ ;;
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_doxygen="doxygen"
14499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14508 doxygen=$ac_cv_prog_doxygen
14509 if test -n "$doxygen"; then
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
14511 printf "%s\n" "$doxygen" >&6; }
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 printf "%s\n" "no" >&6; }
14519 # check to see if libraries are needed for these functions.
14520 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14521 if test "x$ac_cv_func_socket" = xyes
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14526 printf %s "checking for library containing socket... " >&6; }
14527 if test ${ac_cv_search_socket+y}
14529 printf %s "(cached) " >&6
14531 ac_func_search_save_LIBS=$LIBS
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14535 /* Override any GCC internal prototype to avoid an error.
14536 Use char because int might match the return type of a GCC
14537 builtin and then its argument prototype would still apply. */
14547 for ac_lib in '' socket
14549 if test -z "$ac_lib"; then
14550 ac_res="none required"
14553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14555 if ac_fn_c_try_link "$LINENO"
14557 ac_cv_search_socket=$ac_res
14559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14561 if test ${ac_cv_search_socket+y}
14566 if test ${ac_cv_search_socket+y}
14570 ac_cv_search_socket=no
14572 rm conftest.$ac_ext
14573 LIBS=$ac_func_search_save_LIBS
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14576 printf "%s\n" "$ac_cv_search_socket" >&6; }
14577 ac_res=$ac_cv_search_socket
14578 if test "$ac_res" != no
14580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14588 # modern Linux provides inet_ntop in -lsocket.
14589 # modern OS X provides inet_ntop in -lc.
14590 # modern Solaris provides inet_ntop in -lsocket -lnsl.
14591 # older Solaris provides inet_ntop in -lresolv.
14592 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14593 if test "x$ac_cv_func_inet_ntop" = xyes
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14598 printf %s "checking for library containing inet_ntop... " >&6; }
14599 if test ${ac_cv_search_inet_ntop+y}
14601 printf %s "(cached) " >&6
14603 ac_func_search_save_LIBS=$LIBS
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14607 /* Override any GCC internal prototype to avoid an error.
14608 Use char because int might match the return type of a GCC
14609 builtin and then its argument prototype would still apply. */
14614 return inet_ntop ();
14619 for ac_lib in '' socket c nsl resolv
14621 if test -z "$ac_lib"; then
14622 ac_res="none required"
14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14627 if ac_fn_c_try_link "$LINENO"
14629 ac_cv_search_inet_ntop=$ac_res
14631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14633 if test ${ac_cv_search_inet_ntop+y}
14638 if test ${ac_cv_search_inet_ntop+y}
14642 ac_cv_search_inet_ntop=no
14644 rm conftest.$ac_ext
14645 LIBS=$ac_func_search_save_LIBS
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14648 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
14649 ac_res=$ac_cv_search_inet_ntop
14650 if test "$ac_res" != no
14652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653 ac_cv_func_inet_ntop=yes
14660 # modern Linux provides inet_pton in -lsocket.
14661 # modern OS X provides inet_pton in -lc.
14662 # modern Solaris provides inet_pton in -lsocket -lnsl.
14663 # older Solaris provides inet_pton in -lresolv.
14664 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14665 if test "x$ac_cv_func_inet_pton" = xyes
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14670 printf %s "checking for library containing inet_pton... " >&6; }
14671 if test ${ac_cv_search_inet_pton+y}
14673 printf %s "(cached) " >&6
14675 ac_func_search_save_LIBS=$LIBS
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14686 return inet_pton ();
14691 for ac_lib in '' socket c nsl resolv
14693 if test -z "$ac_lib"; then
14694 ac_res="none required"
14697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14699 if ac_fn_c_try_link "$LINENO"
14701 ac_cv_search_inet_pton=$ac_res
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14705 if test ${ac_cv_search_inet_pton+y}
14710 if test ${ac_cv_search_inet_pton+y}
14714 ac_cv_search_inet_pton=no
14716 rm conftest.$ac_ext
14717 LIBS=$ac_func_search_save_LIBS
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14720 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
14721 ac_res=$ac_cv_search_inet_pton
14722 if test "$ac_res" != no
14724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725 ac_cv_func_inet_pton=yes
14734 # Check whether --with-drill was given.
14735 if test ${with_drill+y}
14737 withval=$with_drill;
14742 if test x_$with_drill != x_no ; then
14745 INSTALL_DRILL=install-drill
14747 UNINSTALL_DRILL=uninstall-drill
14749 CLEAN_DRILL=clean-drill
14751 LINT_DRILL=lint-drill
14753 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
14755 A config.h was detected in the drill subdirectory.
14756 This does not work with the --with-drill option.
14757 Please remove the config.h from the drill subdirectory
14758 or do not use the --with-drill option." "$LINENO" 5
14775 # Check whether --with-examples was given.
14776 if test ${with_examples+y}
14778 withval=$with_examples;
14783 if test x_$with_examples != x_no ; then
14786 INSTALL_EXAMPLES=install-examples
14788 UNINSTALL_EXAMPLES=uninstall-examples
14790 CLEAN_EXAMPLES=clean-examples
14792 LINT_EXAMPLES=lint-examples
14794 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
14796 A config.h was detected in the examples subdirectory.
14797 This does not work with the --with-examples option.
14798 Please remove the config.h from the examples subdirectory
14799 or do not use the --with-examples option." "$LINENO" 5
14804 INSTALL_EXAMPLES=""
14806 UNINSTALL_EXAMPLES=""
14814 # add option to disable installation of ldns-config script
14815 # Check whether --enable-ldns-config was given.
14816 if test ${enable_ldns_config+y}
14818 enableval=$enable_ldns_config; enable_ldns_config=$enableval
14820 enable_ldns_config=yes
14823 if test "x$enable_ldns_config" = xyes; then
14824 INSTALL_CONFIG=install-config
14826 INSTALL_CONFIG_MANPAGE=install-config-manpage
14828 UNINSTALL_CONFIG=uninstall-config
14830 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
14835 INSTALL_CONFIG_MANPAGE=""
14837 UNINSTALL_CONFIG=""
14839 UNINSTALL_CONFIG_MANPAGE=""
14843 # add option to disable library printing to stderr
14844 # Check whether --enable-stderr-msgs was given.
14845 if test ${enable_stderr_msgs+y}
14847 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
14849 enable_stderr_msgs=no
14852 case "$enable_stderr_msgs" in
14856 printf "%s\n" "#define STDERR_MSGS 1" >>confdefs.h
14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5
14862 printf %s "checking for poll(2)... " >&6; }
14863 if test ${ax_cv_have_poll+y}
14865 printf %s "(cached) " >&6
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14873 int rc; rc = poll((struct pollfd *)(0), 0, 0);
14878 if ac_fn_c_try_link "$LINENO"
14880 ax_cv_have_poll=yes
14884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14885 conftest$ac_exeext conftest.$ac_ext
14888 if test "${ax_cv_have_poll}" = "yes"
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 printf "%s\n" "yes" >&6; }
14892 ax_config_feature_poll=yes
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14897 ax_config_feature_poll=no
14902 # Check whether --enable-poll was given.
14903 if test ${enable_poll+y}
14905 enableval=$enable_poll;
14906 case "${enableval}" in
14908 ax_config_feature_poll="yes"
14911 ax_config_feature_poll="no"
14914 as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5
14921 if test "$ax_config_feature_poll" = yes
14923 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
14926 if test "$ax_config_feature_verbose" = yes
14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5
14929 printf "%s\n" "$as_me: Feature poll is enabled" >&6;}
14935 if test "$ax_config_feature_verbose" = yes
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5
14938 printf "%s\n" "$as_me: Feature poll is disabled" >&6;}
14950 ldns_with_pyldns=no
14951 ldns_with_pyldnsx=no
14953 # Check whether --with-pyldns was given.
14954 if test ${with_pyldns+y}
14956 withval=$with_pyldns;
14961 ldns_have_python=no
14962 if test x_$withval != x_no; then
14963 # ===========================================================================
14964 # https://www.gnu.org/software/autoconf-archive/ax_python_devel.html
14965 # ===========================================================================
14969 # AX_PYTHON_DEVEL([version])
14973 # Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
14974 # in your configure.ac.
14976 # This macro checks for Python and tries to get the include path to
14977 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
14978 # variables. It also exports $(PYTHON_EXTRA_LIBS) and
14979 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
14981 # You can search for some particular version of Python by passing a
14982 # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
14983 # note that you *have* to pass also an operator along with the version to
14984 # match, and pay special attention to the single quotes surrounding the
14985 # version number. Don't use "PYTHON_VERSION" for this: that environment
14986 # variable is declared as precious and thus reserved for the end-user.
14988 # This macro should work for all versions of Python >= 2.1.0. As an end
14989 # user, you can disable the check for the python version by setting the
14990 # PYTHON_NOVERSIONCHECK environment variable to something else than the
14993 # If you need to use this macro for an older Python version, please
14994 # contact the authors. We're always open for feedback.
14998 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
14999 # Copyright (c) 2009 Alan W. Irwin
15000 # Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
15001 # Copyright (c) 2009 Andrew Collier
15002 # Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
15003 # Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
15004 # Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
15006 # This program is free software: you can redistribute it and/or modify it
15007 # under the terms of the GNU General Public License as published by the
15008 # Free Software Foundation, either version 3 of the License, or (at your
15009 # option) any later version.
15011 # This program is distributed in the hope that it will be useful, but
15012 # WITHOUT ANY WARRANTY; without even the implied warranty of
15013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15014 # Public License for more details.
15016 # You should have received a copy of the GNU General Public License along
15017 # with this program. If not, see <https://www.gnu.org/licenses/>.
15019 # As a special exception, the respective Autoconf Macro's copyright owner
15020 # gives unlimited permission to copy, distribute and modify the configure
15021 # scripts that are the output of Autoconf when processing the Macro. You
15022 # need not follow the terms of the GNU General Public License when using
15023 # or distributing such scripts, even though portions of the text of the
15024 # Macro appear in them. The GNU General Public License (GPL) does govern
15025 # all other use of the material that constitutes the Autoconf Macro.
15027 # This special exception to the GPL applies to versions of the Autoconf
15028 # Macro released by the Autoconf Archive. When you make and distribute a
15029 # modified version of the Autoconf Macro, you may extend this special
15030 # exception to the GPL to apply to your modified version as well.
15034 # This is what autoupdate's m4 run will expand. It fires the warning
15035 # (with _au_warn_XXX), outputs it into the updated configure.ac (with
15036 # m4_warn), and then outputs the replacement expansion. We need extra
15037 # quotation around the m4_warn and dnl so they will be written
15038 # unexpanded into the updated configure.ac.
15041 # This is an auxiliary macro that is also run when
15042 # autoupdate runs m4. It simply calls m4_warning, but
15043 # we need a wrapper so that each warning is emitted only
15044 # once. We break the quoting in m4_warning's argument in
15045 # order to expand this macro's arguments, not AU_DEFUN's.
15048 # Finally, this is the expansion that is picked up by
15049 # autoconf, causing NAME to expand to NEW-CODE, plus
15050 # (if SILENT is not "silent") a m4_warning telling the
15051 # maintainer to run autoupdate. We don't issue MESSAGE
15052 # from autoconf, because that's instructions for what
15053 # to do *after* running autoupdate.
15057 ac_save_LIBS="$LIBS"
15060 # Allow the use of a (user set) custom python version
15064 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15065 set dummy python$PYTHON_VERSION; ac_word=$2
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 printf %s "checking for $ac_word... " >&6; }
15068 if test ${ac_cv_path_PYTHON+y}
15070 printf %s "(cached) " >&6
15074 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15081 case $as_dir in #(((
15084 *) as_dir=$as_dir/ ;;
15086 for ac_exec_ext in '' $ac_executable_extensions; do
15087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15088 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
15089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15099 PYTHON=$ac_cv_path_PYTHON
15100 if test -n "$PYTHON"; then
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15102 printf "%s\n" "$PYTHON" >&6; }
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 printf "%s\n" "no" >&6; }
15109 if test -z "$PYTHON"; then
15110 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15115 # Check for a version of Python >= 2.1.0
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15118 printf %s "checking for a version of Python >= '2.1.0'... " >&6; }
15119 ac_supports_python_ver=`$PYTHON -c "import sys; \
15120 ver = sys.version.split ()[0]; \
15121 print (ver >= '2.1.0')"`
15122 if test "$ac_supports_python_ver" != "True"; then
15123 if test -z "$PYTHON_NOVERSIONCHECK"; then
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 printf "%s\n" "no" >&6; }
15126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15129 This version of the AC_PYTHON_DEVEL macro
15130 doesn't work properly with versions of Python before
15131 2.1.0. You may need to re-run configure, setting the
15132 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
15133 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15134 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15135 to something else than an empty string.
15137 See \`config.log' for more details" "$LINENO" 5; }
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15140 printf "%s\n" "skip at user request" >&6; }
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15144 printf "%s\n" "yes" >&6; }
15148 # if the macro parameter ``version'' is set, honour it
15150 if test -n ">= '2.4.0'"; then
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
15152 printf %s "checking for a version of Python >= '2.4.0'... " >&6; }
15153 ac_supports_python_ver=`$PYTHON -c "import sys; \
15154 ver = sys.version.split ()[0]; \
15155 print (ver >= '2.4.0')"`
15156 if test "$ac_supports_python_ver" = "True"; then
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15158 printf "%s\n" "yes" >&6; }
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 printf "%s\n" "no" >&6; }
15162 as_fn_error $? "this package requires Python >= '2.4.0'.
15163 If you have it installed, but it isn't the default Python
15164 interpreter in your system path, please pass the PYTHON_VERSION
15165 variable to configure. See \`\`configure --help'' for reference.
15172 # Check if you have distutils, else fail
15174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15175 printf %s "checking for the distutils Python package... " >&6; }
15176 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15177 if test $? -eq 0; then
15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15179 printf "%s\n" "yes" >&6; }
15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 printf "%s\n" "no" >&6; }
15183 as_fn_error $? "cannot import Python module \"distutils\".
15184 Please check your Python installation. The error was:
15185 $ac_distutils_result" "$LINENO" 5
15190 # Check for Python include path
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15193 printf %s "checking for Python include path... " >&6; }
15194 if test -z "$PYTHON_CPPFLAGS"; then
15195 python_path=`$PYTHON -c "import distutils.sysconfig; \
15196 print (distutils.sysconfig.get_python_inc ());"`
15197 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
15198 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
15199 if test -n "${python_path}"; then
15200 if test "${plat_python_path}" != "${python_path}"; then
15201 python_path="-I$python_path -I$plat_python_path"
15203 python_path="-I$python_path"
15206 PYTHON_CPPFLAGS=$python_path
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15209 printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
15213 # Check for Python library path
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15216 printf %s "checking for Python library path... " >&6; }
15217 if test -z "$PYTHON_LIBS"; then
15218 # (makes two attempts to ensure we've got a version number
15219 # from the interpreter)
15220 ac_python_version=`cat<<EOD | $PYTHON -
15222 # join all versioning strings, on some systems
15223 # major/minor numbers could be in different list elements
15224 from distutils.sysconfig import *
15225 e = get_config_var('VERSION')
15230 if test -z "$ac_python_version"; then
15231 if test -n "$PYTHON_VERSION"; then
15232 ac_python_version=$PYTHON_VERSION
15234 ac_python_version=`$PYTHON -c "import sys; \
15235 print (sys.version[:3])"`
15239 # Make the versioning information available to the compiler
15241 printf "%s\n" "#define HAVE_PYTHON \"$ac_python_version\"" >>confdefs.h
15244 # First, the library directory:
15245 ac_python_libdir=`cat<<EOD | $PYTHON -
15247 # There should be only one
15248 import distutils.sysconfig
15249 e = distutils.sysconfig.get_config_var('LIBDIR')
15254 # Now, for the library:
15255 ac_python_library=`cat<<EOD | $PYTHON -
15257 import distutils.sysconfig
15258 c = distutils.sysconfig.get_config_vars()
15259 if 'LDVERSION' in c:
15260 print ('python'+c['LDVERSION'])
15262 print ('python'+c['VERSION'])
15265 # This small piece shamelessly adapted from PostgreSQL python macro;
15266 # credits goes to momjian, I think. I'd like to put the right name
15267 # in the credits, if someone can point me in the right direction... ?
15269 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
15271 # use the official shared library
15272 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
15273 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
15275 # old way: use libpython from python_configdir
15276 ac_python_libdir=`$PYTHON -c \
15277 "from distutils.sysconfig import get_python_lib as f; \
15279 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
15280 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
15283 if test -z "PYTHON_LIBS"; then
15285 Cannot determine location of your Python DSO. Please check it was installed with
15286 dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
15291 printf "%s\n" "$PYTHON_LIBS" >&6; }
15295 # Check for site packages
15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15298 printf %s "checking for Python site-packages path... " >&6; }
15299 if test -z "$PYTHON_SITE_PKG"; then
15300 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15301 print (distutils.sysconfig.get_python_lib(1,0));"`
15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15304 printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
15308 # libraries which must be linked in when embedding
15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15311 printf %s "checking python extra libraries... " >&6; }
15312 if test -z "$PYTHON_EXTRA_LIBS"; then
15313 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15314 conf = distutils.sysconfig.get_config_var; \
15315 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15318 printf "%s\n" "$PYTHON_EXTRA_LIBS" >&6; }
15322 # linking flags needed when embedding
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15325 printf %s "checking python extra linking flags... " >&6; }
15326 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15327 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15328 conf = distutils.sysconfig.get_config_var; \
15329 print (conf('LINKFORSHARED'))"`
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15332 printf "%s\n" "$PYTHON_EXTRA_LDFLAGS" >&6; }
15336 # final check to see if everything compiles alright
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15339 printf %s "checking consistency of all components of python development environment... " >&6; }
15340 # save current global flags
15341 ac_save_LIBS="$LIBS"
15342 ac_save_LDFLAGS="$LDFLAGS"
15343 ac_save_CPPFLAGS="$CPPFLAGS"
15344 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
15345 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
15346 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15348 ac_cpp='$CPP $CPPFLAGS'
15349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15356 #include <Python.h>
15366 if ac_fn_c_try_link "$LINENO"
15372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15373 conftest$ac_exeext conftest.$ac_ext
15375 ac_cpp='$CPP $CPPFLAGS'
15376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15380 # turn back to default flags
15381 CPPFLAGS="$ac_save_CPPFLAGS"
15382 LIBS="$ac_save_LIBS"
15383 LDFLAGS="$ac_save_LDFLAGS"
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15386 printf "%s\n" "$pythonexists" >&6; }
15388 if test ! "x$pythonexists" = "xyes"; then
15389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15390 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15392 Could not link test program to Python. Maybe the main Python library has been
15393 installed in some non-standard library path. If so, pass it to configure,
15394 via the LIBS environment variable.
15395 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
15396 ============================================================================
15398 You probably have to install the development version of the Python package
15399 for your distribution. The exact name of this package varies among them.
15400 ============================================================================
15402 See \`config.log' for more details" "$LINENO" 5; }
15410 if test ! -z "$ac_python_version"; then
15411 ldns_have_python=yes
15414 # pass additional Python 3 option to SWIG
15415 if test `$PYTHON -c "import sys; \
15416 ver = sys.version.split()[0]; \
15417 print(ver >= '3')"` = "True"; then
15418 SWIGPY3="-py3 -DPY3"
15423 if test x_$ldns_have_python != x_no; then
15424 # ===========================================================================
15425 # https://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
15426 # ===========================================================================
15430 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
15434 # This macro searches for a SWIG installation on your system. If found,
15435 # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is
15436 # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
15438 # You can use the optional first argument to check if the version of the
15439 # available SWIG is greater than or equal to the value of the argument. It
15440 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
15441 # the first N is mandatory.) If the version argument is given (e.g.
15442 # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number
15445 # As usual, action-if-found is executed if SWIG is found, otherwise
15446 # action-if-not-found is executed.
15448 # In configure.in, use as:
15450 # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
15451 # AX_SWIG_ENABLE_CXX
15452 # AX_SWIG_MULTI_MODULE_SUPPORT
15457 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
15458 # Copyright (c) 2008 Alan W. Irwin
15459 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
15460 # Copyright (c) 2008 Andrew Collier
15461 # Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
15463 # This program is free software; you can redistribute it and/or modify it
15464 # under the terms of the GNU General Public License as published by the
15465 # Free Software Foundation; either version 2 of the License, or (at your
15466 # option) any later version.
15468 # This program is distributed in the hope that it will be useful, but
15469 # WITHOUT ANY WARRANTY; without even the implied warranty of
15470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15471 # Public License for more details.
15473 # You should have received a copy of the GNU General Public License along
15474 # with this program. If not, see <https://www.gnu.org/licenses/>.
15476 # As a special exception, the respective Autoconf Macro's copyright owner
15477 # gives unlimited permission to copy, distribute and modify the configure
15478 # scripts that are the output of Autoconf when processing the Macro. You
15479 # need not follow the terms of the GNU General Public License when using
15480 # or distributing such scripts, even though portions of the text of the
15481 # Macro appear in them. The GNU General Public License (GPL) does govern
15482 # all other use of the material that constitutes the Autoconf Macro.
15484 # This special exception to the GPL applies to versions of the Autoconf
15485 # Macro released by the Autoconf Archive. When you make and distribute a
15486 # modified version of the Autoconf Macro, you may extend this special
15487 # exception to the GPL to apply to your modified version as well.
15494 # check for >=SWIG-2.0.4 if Python 3.2 used
15495 if test `$PYTHON -c "import sys; \
15496 ver = sys.version.split()[0]; \
15497 print(ver >= '3.2')"` = "True"; then
15499 # Find path to the "swig" executable.
15500 for ac_prog in swig swig3.0 swig2.0
15502 # Extract the first word of "$ac_prog", so it can be a program name with args.
15503 set dummy $ac_prog; ac_word=$2
15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15505 printf %s "checking for $ac_word... " >&6; }
15506 if test ${ac_cv_path_SWIG+y}
15508 printf %s "(cached) " >&6
15512 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15519 case $as_dir in #(((
15522 *) as_dir=$as_dir/ ;;
15524 for ac_exec_ext in '' $ac_executable_extensions; do
15525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15526 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
15527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15537 SWIG=$ac_cv_path_SWIG
15538 if test -n "$SWIG"; then
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15540 printf "%s\n" "$SWIG" >&6; }
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15543 printf "%s\n" "no" >&6; }
15547 test -n "$SWIG" && break
15550 if test -z "$SWIG" ; then
15551 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15552 elif test -n "2.0.4" ; then
15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
15554 printf %s "checking SWIG version... " >&6; }
15555 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15557 printf "%s\n" "$swig_version" >&6; }
15558 if test -n "$swig_version" ; then
15559 # Calculate the required version number components
15561 required_major=`echo $required | sed 's/[^0-9].*//'`
15562 if test -z "$required_major" ; then
15565 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15566 required_minor=`echo $required | sed 's/[^0-9].*//'`
15567 if test -z "$required_minor" ; then
15570 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15571 required_patch=`echo $required | sed 's/[^0-9].*//'`
15572 if test -z "$required_patch" ; then
15575 # Calculate the available version number components
15576 available=$swig_version
15577 available_major=`echo $available | sed 's/[^0-9].*//'`
15578 if test -z "$available_major" ; then
15581 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15582 available_minor=`echo $available | sed 's/[^0-9].*//'`
15583 if test -z "$available_minor" ; then
15586 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15587 available_patch=`echo $available | sed 's/[^0-9].*//'`
15588 if test -z "$available_patch" ; then
15591 # Convert the version tuple into a single number for easier comparison.
15592 # Using base 100 should be safe since SWIG internally uses BCD values
15593 # to encode its version number.
15594 required_swig_vernum=`expr $required_major \* 10000 \
15595 \+ $required_minor \* 100 \+ $required_patch`
15596 available_swig_vernum=`expr $available_major \* 10000 \
15597 \+ $available_minor \* 100 \+ $available_patch`
15599 if test $available_swig_vernum -lt $required_swig_vernum; then
15600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5
15601 printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;}
15603 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
15606 printf %s "checking for SWIG library... " >&6; }
15607 SWIG_LIB=`$SWIG -swiglib`
15608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
15609 printf "%s\n" "$SWIG_LIB" >&6; }
15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15614 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
15616 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
15623 # Find path to the "swig" executable.
15624 for ac_prog in swig swig3.0 swig2.0
15626 # Extract the first word of "$ac_prog", so it can be a program name with args.
15627 set dummy $ac_prog; ac_word=$2
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15629 printf %s "checking for $ac_word... " >&6; }
15630 if test ${ac_cv_path_SWIG+y}
15632 printf %s "(cached) " >&6
15636 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640 for as_dir in $PATH
15643 case $as_dir in #(((
15646 *) as_dir=$as_dir/ ;;
15648 for ac_exec_ext in '' $ac_executable_extensions; do
15649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15650 ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
15651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15661 SWIG=$ac_cv_path_SWIG
15662 if test -n "$SWIG"; then
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15664 printf "%s\n" "$SWIG" >&6; }
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 printf "%s\n" "no" >&6; }
15671 test -n "$SWIG" && break
15674 if test -z "$SWIG" ; then
15676 elif test -n "" ; then
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
15678 printf %s "checking SWIG version... " >&6; }
15679 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15681 printf "%s\n" "$swig_version" >&6; }
15682 if test -n "$swig_version" ; then
15683 # Calculate the required version number components
15685 required_major=`echo $required | sed 's/[^0-9].*//'`
15686 if test -z "$required_major" ; then
15689 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15690 required_minor=`echo $required | sed 's/[^0-9].*//'`
15691 if test -z "$required_minor" ; then
15694 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15695 required_patch=`echo $required | sed 's/[^0-9].*//'`
15696 if test -z "$required_patch" ; then
15699 # Calculate the available version number components
15700 available=$swig_version
15701 available_major=`echo $available | sed 's/[^0-9].*//'`
15702 if test -z "$available_major" ; then
15705 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15706 available_minor=`echo $available | sed 's/[^0-9].*//'`
15707 if test -z "$available_minor" ; then
15710 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15711 available_patch=`echo $available | sed 's/[^0-9].*//'`
15712 if test -z "$available_patch" ; then
15715 # Convert the version tuple into a single number for easier comparison.
15716 # Using base 100 should be safe since SWIG internally uses BCD values
15717 # to encode its version number.
15718 required_swig_vernum=`expr $required_major \* 10000 \
15719 \+ $required_minor \* 100 \+ $required_patch`
15720 available_swig_vernum=`expr $available_major \* 10000 \
15721 \+ $available_minor \* 100 \+ $available_patch`
15723 if test $available_swig_vernum -lt $required_swig_vernum; then
15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
15725 printf "%s\n" "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
15730 printf %s "checking for SWIG library... " >&6; }
15731 SWIG_LIB=`$SWIG -swiglib`
15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
15733 printf "%s\n" "$SWIG_LIB" >&6; }
15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
15738 printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
15747 if test ! -x "$SWIG"; then
15748 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
15751 printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h
15757 ldns_with_pyldns=yes
15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
15761 printf "%s\n" "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
15764 # xtra cflags for pyldns
15765 if test x_$ldns_have_python != x_no; then
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
15769 printf %s "checking whether $CC supports -fno-strict-aliasing... " >&6; }
15770 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
15771 if eval test \${cv_prog_cc_flag_$cache+y}
15773 printf %s "(cached) " >&6
15776 echo 'void f(void){}' >conftest.c
15777 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
15778 eval "cv_prog_cc_flag_$cache=yes"
15780 eval "cv_prog_cc_flag_$cache=no"
15782 rm -f conftest conftest.o conftest.c
15786 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15788 printf "%s\n" "yes" >&6; }
15790 PYTHON_X_CFLAGS="-fno-strict-aliasing"
15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 printf "%s\n" "no" >&6; }
15800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
15801 printf %s "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
15802 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
15803 if eval test \${cv_prog_cc_flag_$cache+y}
15805 printf %s "(cached) " >&6
15808 echo 'void f(void){}' >conftest.c
15809 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
15810 eval "cv_prog_cc_flag_$cache=yes"
15812 eval "cv_prog_cc_flag_$cache=no"
15814 rm -f conftest conftest.o conftest.c
15818 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15820 printf "%s\n" "yes" >&6; }
15822 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15825 printf "%s\n" "no" >&6; }
15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
15833 printf %s "checking whether $CC supports -Wno-unused-parameter... " >&6; }
15834 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
15835 if eval test \${cv_prog_cc_flag_$cache+y}
15837 printf %s "(cached) " >&6
15840 echo 'void f(void){}' >conftest.c
15841 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
15842 eval "cv_prog_cc_flag_$cache=yes"
15844 eval "cv_prog_cc_flag_$cache=no"
15846 rm -f conftest conftest.o conftest.c
15850 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15852 printf "%s\n" "yes" >&6; }
15854 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15857 printf "%s\n" "no" >&6; }
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
15865 printf %s "checking whether $CC supports -Wno-unused-variable... " >&6; }
15866 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
15867 if eval test \${cv_prog_cc_flag_$cache+y}
15869 printf %s "(cached) " >&6
15872 echo 'void f(void){}' >conftest.c
15873 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
15874 eval "cv_prog_cc_flag_$cache=yes"
15876 eval "cv_prog_cc_flag_$cache=no"
15878 rm -f conftest conftest.o conftest.c
15882 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 printf "%s\n" "yes" >&6; }
15886 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 printf "%s\n" "no" >&6; }
15898 # Check for pyldnsx
15900 # Check whether --with-pyldnsx was given.
15901 if test ${with_pyldnsx+y}
15903 withval=$with_pyldnsx;
15905 withval="with_pyldns"
15908 if test x_$withval != x_no; then
15909 if test x_$ldns_with_pyldns != x_no; then
15912 ldns_with_pyldnsx=yes
15914 if test x_$withval != x_with_pyldns; then
15915 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
15920 if test x_$ldns_with_pyldns != x_no; then
15921 PYLDNSINST="install-pyldns"
15922 PYLDNSUNINST="uninstall-pyldns"
15929 if test x_$ldns_with_pyldnsx != x_no; then
15930 PYLDNSXINST="install-pyldnsx"
15931 PYLDNSXUNINST="uninstall-pyldnsx"
15940 ldns_with_p5_dns_ldns=no
15942 # Check whether --with-p5-dns-ldns was given.
15943 if test ${with_p5_dns_ldns+y}
15945 withval=$with_p5_dns_ldns;
15951 if test x_$withval != x_no; then
15952 # Extract the first word of "perl", so it can be a program name with args.
15953 set dummy perl; ac_word=$2
15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15955 printf %s "checking for $ac_word... " >&6; }
15956 if test ${ac_cv_path_PERL+y}
15958 printf %s "(cached) " >&6
15962 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966 for as_dir in $PATH
15969 case $as_dir in #(((
15972 *) as_dir=$as_dir/ ;;
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15976 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
15977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15987 PERL=$ac_cv_path_PERL
15988 if test -n "$PERL"; then
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15990 printf "%s\n" "$PERL" >&6; }
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 printf "%s\n" "no" >&6; }
15997 if test -z "$PERL"; then
15998 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
16000 P5_DNS_LDNS="p5-dns-ldns"
16001 TEST_P5_DNS_LDNS="test-p5-dns-ldns"
16002 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
16003 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
16004 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
16008 TEST_P5_DNS_LDNS=""
16009 INSTALL_P5_DNS_LDNS=""
16010 UNINSTALL_P5_DNS_LDNS=""
16011 CLEAN_P5_DNS_LDNS=""
16017 # skip these tests, we do not need them.
16026 # always use ./libtool unless override from commandline (libtool=mylibtool)
16027 if test -z "$libtool"; then
16028 libtool="./libtool"
16031 # avoid libtool max commandline length test on systems that fork slowly.
16033 if echo "$host_os" | grep "sunos4" >/dev/null; then
16034 lt_cv_sys_max_cmd_len=32750;
16036 if test -n "$ac_tool_prefix"; then
16037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16038 set dummy ${ac_tool_prefix}ar; ac_word=$2
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16040 printf %s "checking for $ac_word... " >&6; }
16041 if test ${ac_cv_path_AR+y}
16043 printf %s "(cached) " >&6
16047 ac_cv_path_AR="$AR" # Let the user override the test with a path.
16050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16051 for as_dir in $PATH
16054 case $as_dir in #(((
16057 *) as_dir=$as_dir/ ;;
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16061 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
16062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16073 if test -n "$AR"; then
16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16075 printf "%s\n" "$AR" >&6; }
16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 printf "%s\n" "no" >&6; }
16083 if test -z "$ac_cv_path_AR"; then
16085 # Extract the first word of "ar", so it can be a program name with args.
16086 set dummy ar; ac_word=$2
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16088 printf %s "checking for $ac_word... " >&6; }
16089 if test ${ac_cv_path_ac_pt_AR+y}
16091 printf %s "(cached) " >&6
16095 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16102 case $as_dir in #(((
16105 *) as_dir=$as_dir/ ;;
16107 for ac_exec_ext in '' $ac_executable_extensions; do
16108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16109 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
16110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16120 ac_pt_AR=$ac_cv_path_ac_pt_AR
16121 if test -n "$ac_pt_AR"; then
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
16123 printf "%s\n" "$ac_pt_AR" >&6; }
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 printf "%s\n" "no" >&6; }
16129 if test "x$ac_pt_AR" = x; then
16132 case $cross_compiling:$ac_tool_warned in
16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16136 ac_tool_warned=yes ;;
16141 AR="$ac_cv_path_AR"
16144 if test $AR = false; then
16145 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
16153 tmp_CPPFLAGS=$CPPFLAGS
16154 tmp_LDFLAGS=$LDFLAGS
16159 # Check whether --with-ssl was given.
16160 if test ${with_ssl+y}
16172 if test x_$withval != x_no; then
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16174 printf %s "checking for SSL... " >&6; }
16175 if test x_$withval = x_ -o x_$withval = x_yes; then
16176 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16178 for dir in $withval; do
16180 if test -f "$dir/include/openssl/ssl.h"; then
16183 printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h
16185 if test "$ssldir" != "/usr"; then
16186 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16187 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16192 if test x_$found_ssl != x_yes; then
16193 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16196 printf "%s\n" "found in $ssldir" >&6; }
16198 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16199 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
16200 LDFLAGS="$LDFLAGS -L$ssldir/lib64"
16201 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib64"
16203 if test "x$enable_rpath" = xyes; then
16204 if echo "$ssldir/lib64" | grep "^/" >/dev/null; then
16205 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib64"
16210 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16211 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16213 if test "x$enable_rpath" = xyes; then
16214 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16215 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
16223 printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
16224 LIBS="$LIBS -lcrypto"
16225 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16233 int EVP_sha256(void);
16234 (void)EVP_sha256();
16240 if ac_fn_c_try_link "$LINENO"
16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244 printf "%s\n" "yes" >&6; }
16246 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 printf "%s\n" "no" >&6; }
16253 # check if -lwsock32 or -lgdi32 are needed.
16255 BAKSSLLIBS="$LIBSSL_LIBS"
16256 LIBS="$LIBS -lgdi32 -lws2_32"
16257 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
16258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16259 printf %s "checking if -lcrypto needs -lgdi32... " >&6; }
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16267 int EVP_sha256(void);
16268 (void)EVP_sha256();
16274 if ac_fn_c_try_link "$LINENO"
16278 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16281 printf "%s\n" "yes" >&6; }
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 printf "%s\n" "no" >&6; }
16288 LIBSSL_LIBS="$BAKSSLLIBS"
16290 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16292 printf %s "checking if -lcrypto needs -ldl... " >&6; }
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16300 int EVP_sha256(void);
16301 (void)EVP_sha256();
16307 if ac_fn_c_try_link "$LINENO"
16311 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314 printf "%s\n" "yes" >&6; }
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 printf "%s\n" "no" >&6; }
16321 LIBSSL_LIBS="$BAKSSLLIBS"
16322 LIBS="$LIBS -ldl -pthread"
16323 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
16325 printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; }
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16333 int EVP_sha256(void);
16334 (void)EVP_sha256();
16340 if ac_fn_c_try_link "$LINENO"
16344 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347 printf "%s\n" "yes" >&6; }
16351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16352 printf "%s\n" "no" >&6; }
16353 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16357 conftest$ac_exeext conftest.$ac_ext
16360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16361 conftest$ac_exeext conftest.$ac_ext
16364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16365 conftest$ac_exeext conftest.$ac_ext
16368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16369 conftest$ac_exeext conftest.$ac_ext
16374 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16376 if test "x$ac_cv_header_openssl_ssl_h" = xyes
16378 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
16382 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16384 if test "x$ac_cv_header_openssl_err_h" = xyes
16386 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
16390 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16392 if test "x$ac_cv_header_openssl_rand_h" = xyes
16394 printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h
16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16401 printf %s "checking for LibreSSL... " >&6; }
16402 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16404 printf "%s\n" "yes" >&6; }
16406 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 printf "%s\n" "no" >&6; }
16412 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
16413 if test "x$ac_cv_header_openssl_ssl_h" = xyes
16415 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
16418 ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
16419 if test "x$ac_cv_header_openssl_evp_h" = xyes
16421 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
16424 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
16425 if test "x$ac_cv_header_openssl_engine_h" = xyes
16427 printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h
16430 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default"
16431 if test "x$ac_cv_header_openssl_conf_h" = xyes
16433 printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h
16437 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
16438 if test "x$ac_cv_func_EVP_sha256" = xyes
16440 printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
16443 ac_fn_c_check_func "$LINENO" "EVP_sha384" "ac_cv_func_EVP_sha384"
16444 if test "x$ac_cv_func_EVP_sha384" = xyes
16446 printf "%s\n" "#define HAVE_EVP_SHA384 1" >>confdefs.h
16449 ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512"
16450 if test "x$ac_cv_func_EVP_sha512" = xyes
16452 printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h
16455 ac_fn_c_check_func "$LINENO" "EVP_PKEY_keygen" "ac_cv_func_EVP_PKEY_keygen"
16456 if test "x$ac_cv_func_EVP_PKEY_keygen" = xyes
16458 printf "%s\n" "#define HAVE_EVP_PKEY_KEYGEN 1" >>confdefs.h
16461 ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0"
16462 if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes
16464 printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h
16467 ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
16468 if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
16470 printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
16473 ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0"
16474 if test "x$ac_cv_func_DSA_SIG_set0" = xyes
16476 printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h
16479 ac_fn_c_check_func "$LINENO" "DSA_SIG_get0" "ac_cv_func_DSA_SIG_get0"
16480 if test "x$ac_cv_func_DSA_SIG_get0" = xyes
16482 printf "%s\n" "#define HAVE_DSA_SIG_GET0 1" >>confdefs.h
16485 ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
16486 if test "x$ac_cv_func_EVP_dss1" = xyes
16488 printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h
16491 ac_fn_c_check_func "$LINENO" "DSA_get0_pqg" "ac_cv_func_DSA_get0_pqg"
16492 if test "x$ac_cv_func_DSA_get0_pqg" = xyes
16494 printf "%s\n" "#define HAVE_DSA_GET0_PQG 1" >>confdefs.h
16497 ac_fn_c_check_func "$LINENO" "DSA_get0_key" "ac_cv_func_DSA_get0_key"
16498 if test "x$ac_cv_func_DSA_get0_key" = xyes
16500 printf "%s\n" "#define HAVE_DSA_GET0_KEY 1" >>confdefs.h
16503 ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup"
16504 if test "x$ac_cv_func_EVP_cleanup" = xyes
16506 printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h
16509 ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
16510 if test "x$ac_cv_func_ENGINE_cleanup" = xyes
16512 printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h
16515 ac_fn_c_check_func "$LINENO" "ENGINE_free" "ac_cv_func_ENGINE_free"
16516 if test "x$ac_cv_func_ENGINE_free" = xyes
16518 printf "%s\n" "#define HAVE_ENGINE_FREE 1" >>confdefs.h
16521 ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data"
16522 if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes
16524 printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h
16527 ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings"
16528 if test "x$ac_cv_func_ERR_free_strings" = xyes
16530 printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h
16533 ac_fn_c_check_func "$LINENO" "CONF_modules_unload" "ac_cv_func_CONF_modules_unload"
16534 if test "x$ac_cv_func_CONF_modules_unload" = xyes
16536 printf "%s\n" "#define HAVE_CONF_MODULES_UNLOAD 1" >>confdefs.h
16539 ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
16540 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
16542 printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
16545 ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
16546 if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
16548 printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
16551 ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings"
16552 if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes
16554 printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h
16557 ac_fn_c_check_func "$LINENO" "CRYPTO_memcmp" "ac_cv_func_CRYPTO_memcmp"
16558 if test "x$ac_cv_func_CRYPTO_memcmp" = xyes
16560 printf "%s\n" "#define HAVE_CRYPTO_MEMCMP 1" >>confdefs.h
16563 ac_fn_c_check_func "$LINENO" "EVP_PKEY_get_base_id" "ac_cv_func_EVP_PKEY_get_base_id"
16564 if test "x$ac_cv_func_EVP_PKEY_get_base_id" = xyes
16566 printf "%s\n" "#define HAVE_EVP_PKEY_GET_BASE_ID 1" >>confdefs.h
16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16571 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16572 if test ${ac_cv_c_undeclared_builtin_options+y}
16574 printf %s "(cached) " >&6
16576 ac_save_CFLAGS=$CFLAGS
16577 ac_cv_c_undeclared_builtin_options='cannot detect'
16578 for ac_arg in '' -fno-builtin; do
16579 CFLAGS="$ac_save_CFLAGS $ac_arg"
16580 # This test program should *not* compile successfully.
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16592 if ac_fn_c_try_compile "$LINENO"
16596 # This test program should compile successfully.
16597 # No library function is consistently available on
16598 # freestanding implementations, so test against a dummy
16599 # declaration. Include always-available headers on the
16600 # off chance that they somehow elicit warnings.
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16604 #include <limits.h>
16605 #include <stdarg.h>
16606 #include <stddef.h>
16607 extern void ac_decl (int, char *);
16612 (void) ac_decl (0, (char *) 0);
16619 if ac_fn_c_try_compile "$LINENO"
16621 if test x"$ac_arg" = x
16623 ac_cv_c_undeclared_builtin_options='none needed'
16625 ac_cv_c_undeclared_builtin_options=$ac_arg
16629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16633 CFLAGS=$ac_save_CFLAGS
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16637 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16638 case $ac_cv_c_undeclared_builtin_options in #(
16640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16642 as_fn_error $? "cannot make $CC report undeclared builtins
16643 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16645 ac_c_undeclared_builtin_options='' ;; #(
16647 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16650 ac_fn_check_decl "$LINENO" "EVP_PKEY_base_id" "ac_cv_have_decl_EVP_PKEY_base_id" "$ac_includes_default
16651 #include <openssl/evp.h>
16653 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16654 if test "x$ac_cv_have_decl_EVP_PKEY_base_id" = xyes
16660 printf "%s\n" "#define HAVE_DECL_EVP_PKEY_BASE_ID $ac_have_decl" >>confdefs.h
16661 if test $ac_have_decl = 1
16665 printf "%s\n" "#define HAVE_EVP_PKEY_BASE_ID 1" >>confdefs.h
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Checking for OpenSSL >= 3.0.0" >&5
16671 printf %s "checking Checking for OpenSSL >= 3.0.0... " >&6; }
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16675 #include <openssl/ssl.h>
16676 #if OPENSSL_VERSION_MAJOR >= 3
16679 This fails compiling.
16680 So either no OpenSSL at all (the include already failed), or the version < 3.0.0
16692 if ac_fn_c_try_compile "$LINENO"
16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16696 printf "%s\n" "yes" >&6; }
16697 CFLAGS="-DOPENSSL_API_COMPAT=10100 $CFLAGS"
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701 printf "%s\n" "no" >&6; }
16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16707 # for macosx, see if glibtool exists and use that
16708 # BSD's need to know the version...
16709 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
16710 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
16712 # Check whether --enable-sha2 was given.
16713 if test ${enable_sha2+y}
16715 enableval=$enable_sha2;
16718 case "$enable_sha2" in
16722 if test "x$HAVE_SSL" != "xyes"; then
16723 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
16726 printf %s "checking for SHA256 and SHA512... " >&6; }
16727 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
16728 if test "x$ac_cv_func_SHA256_Init" = xyes
16733 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
16738 printf "%s\n" "#define USE_SHA2 1" >>confdefs.h
16743 # check whether gost also works
16745 # Check whether --enable-gost was given.
16746 if test ${enable_gost+y}
16748 enableval=$enable_gost;
16751 case "$enable_gost" in
16754 *) if test "x$HAVE_SSL" != "xyes"; then
16755 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
16758 printf %s "checking for GOST... " >&6; }
16759 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16760 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes
16764 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
16767 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16768 if test "x$ac_cv_func_EC_KEY_new" = xyes
16772 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16777 printf %s "checking if GOST works... " >&6; }
16778 if test c${cross_compiling} = cno; then
16779 BAKCFLAGS="$CFLAGS"
16780 if test -n "$ssldir"; then
16781 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
16782 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib64"
16784 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16787 if test "$cross_compiling" = yes
16789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16791 as_fn_error $? "cannot run test program while cross compiling
16792 See \`config.log' for more details" "$LINENO" 5; }
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16797 #include <string.h>
16798 #ifdef HAVE_OPENSSL_SSL_H
16799 #include <openssl/ssl.h>
16801 #ifdef HAVE_OPENSSL_EVP_H
16802 #include <openssl/evp.h>
16804 #ifdef HAVE_OPENSSL_ENGINE_H
16805 #include <openssl/engine.h>
16807 #ifdef HAVE_OPENSSL_CONF_H
16808 #include <openssl/conf.h>
16810 /* routine to load gost (from sldns) */
16811 int load_gost_id(void)
16813 static int gost_id = 0;
16814 const EVP_PKEY_ASN1_METHOD* meth;
16817 if(gost_id) return gost_id;
16819 /* see if configuration loaded gost implementation from other engine*/
16820 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16822 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16826 /* see if engine can be loaded already */
16827 e = ENGINE_by_id("gost");
16829 /* load it ourself, in case statically linked */
16830 ENGINE_load_builtin_engines();
16831 ENGINE_load_dynamic();
16832 e = ENGINE_by_id("gost");
16835 /* no gost engine in openssl */
16838 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16844 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16846 /* algo not found */
16851 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16857 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16858 const char* str = "Hello world";
16859 const unsigned char check[] = {
16860 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16861 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16862 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16863 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16865 OPENSSL_config(NULL);
16866 (void)load_gost_id();
16867 md = EVP_get_digestbyname("md_gost94");
16869 memset(digest, 0, sizeof(digest));
16870 ctx = EVP_MD_CTX_create();
16872 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16873 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16874 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16875 /* uncomment to see the hash calculated.
16877 for(i=0; i<32; i++)
16878 printf(" %2.2x", (int)digest[i]);
16881 if(memcmp(digest, check, sizeof(check)) != 0)
16887 if ac_fn_c_try_run "$LINENO"
16889 eval "ac_cv_c_gost_works=yes"
16891 eval "ac_cv_c_gost_works=no"
16893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16894 conftest.$ac_objext conftest.beam conftest.$ac_ext
16897 CFLAGS="$BAKCFLAGS"
16899 eval "ac_cv_c_gost_works=maybe"
16902 # Check whether --enable-gost-anyway was given.
16903 if test ${enable_gost_anyway+y}
16905 enableval=$enable_gost_anyway;
16908 if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then
16909 if test "$ac_cv_c_gost_works" = "no"; then
16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5
16911 printf "%s\n" "no, but compiling with GOST support anyway" >&6; }
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 printf "%s\n" "yes" >&6; }
16918 printf "%s\n" "#define USE_GOST 1" >>confdefs.h
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922 printf "%s\n" "no" >&6; }
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5
16924 printf "%s\n" "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;}
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&5
16926 printf "%s\n" "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;}
16927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5
16928 printf "%s\n" "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;}
16933 # Check whether --enable-ecdsa was given.
16934 if test ${enable_ecdsa+y}
16936 enableval=$enable_ecdsa;
16939 case "$enable_ecdsa" in
16942 *) if test "x$HAVE_SSL" != "xyes"; then
16943 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
16945 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16946 if test "x$ac_cv_func_ECDSA_sign" = xyes
16950 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16953 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16954 if test "x$ac_cv_func_SHA384_Init" = xyes
16958 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16961 ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16962 #include <openssl/evp.h>
16964 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16965 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes
16971 printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h
16972 if test $ac_have_decl = 1
16976 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16978 ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16979 #include <openssl/evp.h>
16981 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16982 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes
16988 printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h
16989 if test $ac_have_decl = 1
16993 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
16996 # we now know we have ECDSA and the required curves.
16998 printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h
17003 # Check whether --enable-dsa was given.
17004 if test ${enable_dsa+y}
17006 enableval=$enable_dsa;
17009 case "$enable_dsa" in
17011 ldns_build_config_use_dsa=0
17014 *) # detect if DSA is supported, and turn it off if not.
17015 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
17016 if test "x$ac_cv_func_DSA_SIG_new" = xyes
17020 printf "%s\n" "#define USE_DSA 1" >>confdefs.h
17022 ldns_build_config_use_dsa=1
17026 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
17028 ldns_build_config_use_dsa=0
17035 # Check whether --enable-ed25519 was given.
17036 if test ${enable_ed25519+y}
17038 enableval=$enable_ed25519;
17041 case "$enable_ed25519" in
17043 ldns_build_config_use_ed25519=0
17046 *) ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
17047 #include <openssl/evp.h>
17049 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17050 if test "x$ac_cv_have_decl_NID_ED25519" = xyes
17056 printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h
17057 if test $ac_have_decl = 1
17061 printf "%s\n" "#define USE_ED25519 1" >>confdefs.h
17063 ldns_build_config_use_ed25519=1
17067 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
17069 ldns_build_config_use_ed25519=0
17076 # Check whether --enable-ed448 was given.
17077 if test ${enable_ed448+y}
17079 enableval=$enable_ed448;
17082 case "$enable_ed448" in
17084 ldns_build_config_use_ed448=0
17087 *) ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
17088 #include <openssl/evp.h>
17090 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17091 if test "x$ac_cv_have_decl_NID_ED448" = xyes
17097 printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h
17098 if test $ac_have_decl = 1
17102 printf "%s\n" "#define USE_ED448 1" >>confdefs.h
17104 ldns_build_config_use_ed448=1
17108 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
17110 ldns_build_config_use_ed448=0
17117 # Check whether --enable-dane was given.
17118 if test ${enable_dane+y}
17120 enableval=$enable_dane;
17123 # Check whether --enable-dane-verify was given.
17124 if test ${enable_dane_verify+y}
17126 enableval=$enable_dane_verify;
17129 # Check whether --enable-dane-ta-usage was given.
17130 if test ${enable_dane_ta_usage+y}
17132 enableval=$enable_dane_ta_usage;
17136 # Check whether --enable-full-dane was given.
17137 if test ${enable_full_dane+y}
17139 enableval=$enable_full_dane;
17140 enable_dane_ta_usage=yes
17141 enable_dane_verify=yes
17146 # Check whether --enable-no-dane-ta-usage was given.
17147 if test ${enable_no_dane_ta_usage+y}
17149 enableval=$enable_no_dane_ta_usage;
17150 enable_dane_ta_usage=no
17151 enable_dane_verify=yes
17156 # Check whether --enable-no-dane-verify was given.
17157 if test ${enable_no_dane_verify+y}
17159 enableval=$enable_no_dane_verify;
17160 enable_dane_ta_usage=no
17161 enable_dane_verify=no
17166 case "$enable_dane" in
17168 ldns_build_config_use_dane=0
17170 ldns_build_config_use_dane_verify=0
17172 ldns_build_config_use_dane_ta_usage=0
17175 *) if test "x$HAVE_SSL" != "xyes"; then
17176 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
17178 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
17179 if test "x$ac_cv_func_X509_check_ca" = xyes
17183 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
17186 ldns_build_config_use_dane=1
17189 printf "%s\n" "#define USE_DANE 1" >>confdefs.h
17191 case "$enable_dane_verify" in
17193 ldns_build_config_use_dane_verify=0
17195 ldns_build_config_use_dane_ta_usage=0
17199 ldns_build_config_use_dane_verify=1
17202 printf "%s\n" "#define USE_DANE_VERIFY 1" >>confdefs.h
17204 case "$enable_dane_ta_usage" in
17206 ldns_build_config_use_dane_ta_usage=0
17209 *) danetmpLIBS="$LIBS"
17210 LIBS="-lssl -lcrypto $LIBS"
17211 ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane"
17212 if test "x$ac_cv_func_SSL_get0_dane" = xyes
17216 as_fn_error $? "OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type). Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage" "$LINENO" 5
17219 LIBSSL_LIBS="-lssl $LIBSSL_LIBS"
17220 LIBS="$danetmpLIBS"
17221 ldns_build_config_use_dane_ta_usage=1
17224 printf "%s\n" "#define USE_DANE_TA_USAGE 1" >>confdefs.h
17232 # Check whether --enable-rrtype-ninfo was given.
17233 if test ${enable_rrtype_ninfo+y}
17235 enableval=$enable_rrtype_ninfo;
17238 case "$enable_rrtype_ninfo" in
17241 printf "%s\n" "#define RRTYPE_NINFO /**/" >>confdefs.h
17247 # Check whether --enable-rrtype-rkey was given.
17248 if test ${enable_rrtype_rkey+y}
17250 enableval=$enable_rrtype_rkey;
17253 case "$enable_rrtype_rkey" in
17256 printf "%s\n" "#define RRTYPE_RKEY /**/" >>confdefs.h
17262 # Check whether --enable-rrtype-openpgpkey was given.
17263 if test ${enable_rrtype_openpgpkey+y}
17265 enableval=$enable_rrtype_openpgpkey;
17268 case "$enable_rrtype_openpgpkey" in
17273 printf "%s\n" "#define RRTYPE_OPENPGPKEY /**/" >>confdefs.h
17277 # Check whether --enable-rrtype-ta was given.
17278 if test ${enable_rrtype_ta+y}
17280 enableval=$enable_rrtype_ta;
17283 case "$enable_rrtype_ta" in
17286 printf "%s\n" "#define RRTYPE_TA /**/" >>confdefs.h
17292 # Check whether --enable-rrtype-avc was given.
17293 if test ${enable_rrtype_avc+y}
17295 enableval=$enable_rrtype_avc;
17298 case "$enable_rrtype_avc" in
17301 printf "%s\n" "#define RRTYPE_AVC /**/" >>confdefs.h
17307 # Check whether --enable-rrtype-doa was given.
17308 if test ${enable_rrtype_doa+y}
17310 enableval=$enable_rrtype_doa;
17313 case "$enable_rrtype_doa" in
17316 printf "%s\n" "#define RRTYPE_DOA /**/" >>confdefs.h
17322 # Check whether --enable-rrtype-amtrelay was given.
17323 if test ${enable_rrtype_amtrelay+y}
17325 enableval=$enable_rrtype_amtrelay;
17328 case "$enable_rrtype_amtrelay" in
17331 printf "%s\n" "#define RRTYPE_AMTRELAY /**/" >>confdefs.h
17337 # Check whether --enable-rrtype-svcb-https was given.
17338 if test ${enable_rrtype_svcb_https+y}
17340 enableval=$enable_rrtype_svcb_https;
17343 case "$enable_rrtype_svcb_https" in
17348 printf "%s\n" "#define RRTYPE_SVCB_HTTPS /**/" >>confdefs.h
17358 if test "x$HAVE_SSL" = "xyes"; then
17359 if echo "$LIBSSL_LIBS" | grep -- "-lssl" >/dev/null 2>&1; then
17360 LIBSSL_SSL_LIBS="$LIBSSL_LIBS"
17362 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
17364 LIBSSL_SSL_LIBS="$LIBSSL_SSL_LIBS"
17367 CPPFLAGS=$tmp_CPPFLAGS
17368 LDFLAGS=$tmp_LDFLAGS
17372 # add option to disable the evil rpath
17374 # Check whether --enable-rpath was given.
17375 if test ${enable_rpath+y}
17377 enableval=$enable_rpath; enable_rpath=$enableval
17382 if test "x$enable_rpath" = xno; then
17383 ac_config_commands="$ac_config_commands disable-rpath"
17388 #AC_RUN_IFELSE([AC_LANG_SOURCE(
17393 #char *cp = (char*)&one;
17400 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
17403 # should define WORDS_BIGENDIAN if the system is big-endian
17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17405 printf %s "checking whether byte ordering is bigendian... " >&6; }
17406 if test ${ac_cv_c_bigendian+y}
17408 printf %s "(cached) " >&6
17410 ac_cv_c_bigendian=unknown
17411 # See if we're dealing with a universal compiler.
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 #ifndef __APPLE_CC__
17415 not a universal capable compiler
17420 if ac_fn_c_try_compile "$LINENO"
17423 # Check for potential -arch flags. It is not universal unless
17424 # there are at least two -arch flags with different values.
17427 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17428 if test -n "$ac_prev"; then
17430 i?86 | x86_64 | ppc | ppc64)
17431 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17434 ac_cv_c_bigendian=universal
17440 elif test "x$ac_word" = "x-arch"; then
17445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 if test $ac_cv_c_bigendian = unknown; then
17447 # See if sys/param.h defines the BYTE_ORDER macro.
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17450 #include <sys/types.h>
17451 #include <sys/param.h>
17456 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17457 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17459 bogus endian macros
17466 if ac_fn_c_try_compile "$LINENO"
17468 # It does; now see whether it defined to BIG_ENDIAN or not.
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <sys/types.h>
17472 #include <sys/param.h>
17477 #if BYTE_ORDER != BIG_ENDIAN
17485 if ac_fn_c_try_compile "$LINENO"
17487 ac_cv_c_bigendian=yes
17489 ac_cv_c_bigendian=no
17491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17495 if test $ac_cv_c_bigendian = unknown; then
17496 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499 #include <limits.h>
17504 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17505 bogus endian macros
17512 if ac_fn_c_try_compile "$LINENO"
17514 # It does; now see whether it defined to _BIG_ENDIAN or not.
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <limits.h>
17522 #ifndef _BIG_ENDIAN
17530 if ac_fn_c_try_compile "$LINENO"
17532 ac_cv_c_bigendian=yes
17534 ac_cv_c_bigendian=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17540 if test $ac_cv_c_bigendian = unknown; then
17541 # Compile a test program.
17542 if test "$cross_compiling" = yes
17544 # Try to guess by grepping values from an object file.
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17547 unsigned short int ascii_mm[] =
17548 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17549 unsigned short int ascii_ii[] =
17550 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17551 int use_ascii (int i) {
17552 return ascii_mm[i] + ascii_ii[i];
17554 unsigned short int ebcdic_ii[] =
17555 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17556 unsigned short int ebcdic_mm[] =
17557 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17558 int use_ebcdic (int i) {
17559 return ebcdic_mm[i] + ebcdic_ii[i];
17566 return use_ascii (foo) == use_ebcdic (foo);
17571 if ac_fn_c_try_compile "$LINENO"
17573 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17574 ac_cv_c_bigendian=yes
17576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17577 if test "$ac_cv_c_bigendian" = unknown; then
17578 ac_cv_c_bigendian=no
17580 # finding both strings is unlikely to happen, but who knows?
17581 ac_cv_c_bigendian=unknown
17585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h. */
17589 $ac_includes_default
17594 /* Are we little or big endian? From Harbison&Steele. */
17598 char c[sizeof (long int)];
17601 return u.c[sizeof (long int) - 1] == 1;
17607 if ac_fn_c_try_run "$LINENO"
17609 ac_cv_c_bigendian=no
17611 ac_cv_c_bigendian=yes
17613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17614 conftest.$ac_objext conftest.beam conftest.$ac_ext
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17620 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17621 case $ac_cv_c_bigendian in #(
17623 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17629 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17633 as_fn_error $? "unknown endianness
17634 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17638 # Checks for header files.
17639 # Autoupdate added the next two lines to ensure that your configure
17640 # script's behavior did not change. They are probably safe to remove.
17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17643 printf %s "checking for egrep... " >&6; }
17644 if test ${ac_cv_path_EGREP+y}
17646 printf %s "(cached) " >&6
17648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17649 then ac_cv_path_EGREP="$GREP -E"
17651 if test -z "$EGREP"; then
17652 ac_path_EGREP_found=false
17653 # Loop through the user's path and test for each of PROGNAME-LIST
17654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17658 case $as_dir in #(((
17661 *) as_dir=$as_dir/ ;;
17663 for ac_prog in egrep
17665 for ac_exec_ext in '' $ac_executable_extensions; do
17666 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17667 as_fn_executable_p "$ac_path_EGREP" || continue
17668 # Check for GNU ac_path_EGREP and select it if it is found.
17669 # Check for GNU $ac_path_EGREP
17670 case `"$ac_path_EGREP" --version 2>&1` in
17672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17675 printf %s 0123456789 >"conftest.in"
17678 cat "conftest.in" "conftest.in" >"conftest.tmp"
17679 mv "conftest.tmp" "conftest.in"
17680 cp "conftest.in" "conftest.nl"
17681 printf "%s\n" 'EGREP' >> "conftest.nl"
17682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17684 as_fn_arith $ac_count + 1 && ac_count=$as_val
17685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17686 # Best one so far, save it but keep looking for a better one
17687 ac_cv_path_EGREP="$ac_path_EGREP"
17688 ac_path_EGREP_max=$ac_count
17690 # 10*(2^10) chars as input seems more than enough
17691 test $ac_count -gt 10 && break
17693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17696 $ac_path_EGREP_found && break 3
17701 if test -z "$ac_cv_path_EGREP"; then
17702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17705 ac_cv_path_EGREP=$EGREP
17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17711 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17712 EGREP="$ac_cv_path_EGREP"
17716 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17717 if test "x$ac_cv_type__Bool" = xyes
17720 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17726 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
17727 if test ${ac_cv_header_stdbool_h+y}
17729 printf %s "(cached) " >&6
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 #include <stdbool.h>
17735 #ifndef __bool_true_false_are_defined
17736 #error "__bool_true_false_are_defined is not defined"
17738 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
17740 /* Regardless of whether this is C++ or "_Bool" is a
17741 valid type name, "true" and "false" should be usable
17742 in #if expressions and integer constant expressions,
17743 and "bool" should be a valid type name. */
17746 #error "'true' is not true"
17749 #error "'true' is not equal to 1"
17751 char b[true == 1 ? 1 : -1];
17755 #error "'false' is not false"
17758 #error "'false' is not equal to 0"
17760 char d[false == 0 ? 1 : -1];
17762 enum { e = false, f = true, g = false * true, h = true * 256 };
17764 char i[(bool) 0.5 == true ? 1 : -1];
17765 char j[(bool) 0.0 == false ? 1 : -1];
17766 char k[sizeof (bool) > 0 ? 1 : -1];
17768 struct sb { bool s: 1; bool t; } s;
17769 char l[sizeof s.t > 0 ? 1 : -1];
17771 /* The following fails for
17772 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17774 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
17775 char o[-1 - (bool) 0 < 0 ? 1 : -1];
17776 /* Catch a bug in an HP-UX C compiler. See
17777 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17778 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17783 /* C 1999 specifies that bool, true, and false are to be
17784 macros, but C++ 2011 and later overrule this. */
17785 #if __cplusplus < 201103
17787 #error "bool is not defined"
17790 #error "false is not defined"
17793 #error "true is not defined"
17797 /* If _Bool is available, repeat with it all the tests
17798 above that used bool. */
17800 struct sB { _Bool s: 1; _Bool t; } t;
17802 char q[(_Bool) 0.5 == true ? 1 : -1];
17803 char r[(_Bool) 0.0 == false ? 1 : -1];
17804 char u[sizeof (_Bool) > 0 ? 1 : -1];
17805 char v[sizeof t.t > 0 ? 1 : -1];
17808 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
17809 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
17828 /* Refer to every declared value, so they cannot be
17829 discarded as unused. */
17830 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
17831 + !l + !m + !n + !o + !p + !pp + !ps
17833 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
17841 if ac_fn_c_try_compile "$LINENO"
17843 ac_cv_header_stdbool_h=yes
17845 ac_cv_header_stdbool_h=no
17847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17850 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
17852 if test $ac_cv_header_stdbool_h = yes; then
17854 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
17858 #AC_HEADER_SYS_WAIT
17859 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
17860 # do the very minimum - we can always extend this
17861 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
17863 if test "x$ac_cv_header_getopt_h" = xyes
17865 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
17868 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default
17870 if test "x$ac_cv_header_stdarg_h" = xyes
17872 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
17875 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17877 if test "x$ac_cv_header_openssl_ssl_h" = xyes
17879 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
17882 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
17884 if test "x$ac_cv_header_netinet_in_h" = xyes
17886 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
17889 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
17891 if test "x$ac_cv_header_time_h" = xyes
17893 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
17896 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
17898 if test "x$ac_cv_header_arpa_inet_h" = xyes
17900 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
17903 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
17905 if test "x$ac_cv_header_netdb_h" = xyes
17907 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17911 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
17913 #if HAVE_SYS_PARAM_H
17914 # include <sys/param.h>
17919 if test "x$ac_cv_header_sys_param_h" = xyes
17921 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17924 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
17926 #if HAVE_SYS_PARAM_H
17927 # include <sys/param.h>
17932 if test "x$ac_cv_header_sys_mount_h" = xyes
17934 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17938 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
17940 #if HAVE_SYS_PARAM_H
17941 # include <sys/param.h>
17946 if test "x$ac_cv_header_sys_socket_h" = xyes
17949 include_sys_socket_h='#include <sys/socket.h>'
17951 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
17956 include_sys_socket_h=''
17961 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
17964 if test "x$ac_cv_header_inttypes_h" = xyes
17967 include_inttypes_h='#include <inttypes.h>'
17969 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
17971 ldns_build_config_have_inttypes_h=1
17976 include_inttypes_h=''
17977 ldns_build_config_have_inttypes_h=0
17983 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
17986 if test "x$ac_cv_header_sys_types_h" = xyes
17989 include_systypes_h='#include <sys/types.h>'
17991 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
17996 include_systypes_h=''
18001 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
18004 if test "x$ac_cv_header_unistd_h" = xyes
18007 include_unistd_h='#include <unistd.h>'
18009 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
18014 include_unistd_h=''
18020 # The cast to long int works around a bug in the HP C Compiler
18021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18023 # This bug is HP SR number 8606223364.
18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18025 printf %s "checking size of time_t... " >&6; }
18026 if test ${ac_cv_sizeof_time_t+y}
18028 printf %s "(cached) " >&6
18030 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
18031 $ac_includes_default
18032 #ifdef TIME_WITH_SYS_TIME
18033 # include <sys/time.h>
18036 # ifdef HAVE_SYS_TIME_H
18037 # include <sys/time.h>
18047 if test "$ac_cv_type_time_t" = yes; then
18048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18049 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18050 as_fn_error 77 "cannot compute sizeof (time_t)
18051 See \`config.log' for more details" "$LINENO" 5; }
18053 ac_cv_sizeof_time_t=0
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18059 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
18063 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
18067 if test x_$with_examples != x_no; then
18068 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
18070 if test "x$ac_cv_header_pcap_h" = xyes
18072 printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h
18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
18077 printf %s "checking for pcap_open_offline in -lpcap... " >&6; }
18078 if test ${ac_cv_lib_pcap_pcap_open_offline+y}
18080 printf %s "(cached) " >&6
18082 ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-lpcap $LIBS"
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18090 char pcap_open_offline ();
18094 return pcap_open_offline ();
18099 if ac_fn_c_try_link "$LINENO"
18101 ac_cv_lib_pcap_pcap_open_offline=yes
18103 ac_cv_lib_pcap_pcap_open_offline=no
18105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
18110 printf "%s\n" "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
18111 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes
18115 printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h
18116 LIBPCAP_LIBS=-lpcap
18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
18122 printf "%s\n" "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
18127 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
18128 $ac_includes_default
18129 #ifdef HAVE_NETINET_IN_SYSTM_H
18130 #include <netinet/in_systm.h>
18132 #ifdef HAVE_NETINET_IN_H
18133 #include <netinet/in.h>
18135 #ifdef HAVE_SYS_SOCKET_H
18136 #include <sys/socket.h>
18138 #ifdef HAVE_NET_IF_H
18139 #include <net/if.h>
18142 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
18144 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
18147 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
18148 $ac_includes_default
18149 #ifdef HAVE_NETINET_IN_SYSTM_H
18150 #include <netinet/in_systm.h>
18152 #ifdef HAVE_NETINET_IN_H
18153 #include <netinet/in.h>
18155 #ifdef HAVE_SYS_SOCKET_H
18156 #include <sys/socket.h>
18158 #ifdef HAVE_NET_IF_H
18159 #include <net/if.h>
18162 if test "x$ac_cv_header_net_if_h" = xyes
18164 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
18167 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
18168 $ac_includes_default
18169 #ifdef HAVE_NETINET_IN_SYSTM_H
18170 #include <netinet/in_systm.h>
18172 #ifdef HAVE_NETINET_IN_H
18173 #include <netinet/in.h>
18175 #ifdef HAVE_SYS_SOCKET_H
18176 #include <sys/socket.h>
18178 #ifdef HAVE_NET_IF_H
18179 #include <net/if.h>
18182 if test "x$ac_cv_header_netinet_ip_h" = xyes
18184 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
18187 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
18188 $ac_includes_default
18189 #ifdef HAVE_NETINET_IN_SYSTM_H
18190 #include <netinet/in_systm.h>
18192 #ifdef HAVE_NETINET_IN_H
18193 #include <netinet/in.h>
18195 #ifdef HAVE_SYS_SOCKET_H
18196 #include <sys/socket.h>
18198 #ifdef HAVE_NET_IF_H
18199 #include <net/if.h>
18202 if test "x$ac_cv_header_netinet_udp_h" = xyes
18204 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
18207 ac_fn_c_check_header_compile "$LINENO" "netinet/igmp.h" "ac_cv_header_netinet_igmp_h" "
18208 $ac_includes_default
18209 #ifdef HAVE_NETINET_IN_SYSTM_H
18210 #include <netinet/in_systm.h>
18212 #ifdef HAVE_NETINET_IN_H
18213 #include <netinet/in.h>
18215 #ifdef HAVE_SYS_SOCKET_H
18216 #include <sys/socket.h>
18218 #ifdef HAVE_NET_IF_H
18219 #include <net/if.h>
18222 if test "x$ac_cv_header_netinet_igmp_h" = xyes
18224 printf "%s\n" "#define HAVE_NETINET_IGMP_H 1" >>confdefs.h
18227 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "
18228 $ac_includes_default
18229 #ifdef HAVE_NETINET_IN_SYSTM_H
18230 #include <netinet/in_systm.h>
18232 #ifdef HAVE_NETINET_IN_H
18233 #include <netinet/in.h>
18235 #ifdef HAVE_SYS_SOCKET_H
18236 #include <sys/socket.h>
18238 #ifdef HAVE_NET_IF_H
18239 #include <net/if.h>
18242 if test "x$ac_cv_header_netinet_if_ether_h" = xyes
18244 printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h
18247 ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "
18248 $ac_includes_default
18249 #ifdef HAVE_NETINET_IN_SYSTM_H
18250 #include <netinet/in_systm.h>
18252 #ifdef HAVE_NETINET_IN_H
18253 #include <netinet/in.h>
18255 #ifdef HAVE_SYS_SOCKET_H
18256 #include <sys/socket.h>
18258 #ifdef HAVE_NET_IF_H
18259 #include <net/if.h>
18262 if test "x$ac_cv_header_netinet_ip6_h" = xyes
18264 printf "%s\n" "#define HAVE_NETINET_IP6_H 1" >>confdefs.h
18267 ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "
18268 $ac_includes_default
18269 #ifdef HAVE_NETINET_IN_SYSTM_H
18270 #include <netinet/in_systm.h>
18272 #ifdef HAVE_NETINET_IN_H
18273 #include <netinet/in.h>
18275 #ifdef HAVE_SYS_SOCKET_H
18276 #include <sys/socket.h>
18278 #ifdef HAVE_NET_IF_H
18279 #include <net/if.h>
18282 if test "x$ac_cv_header_net_ethernet_h" = xyes
18284 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
18287 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" "
18288 $ac_includes_default
18289 #ifdef HAVE_NETINET_IN_SYSTM_H
18290 #include <netinet/in_systm.h>
18292 #ifdef HAVE_NETINET_IN_H
18293 #include <netinet/in.h>
18295 #ifdef HAVE_SYS_SOCKET_H
18296 #include <sys/socket.h>
18298 #ifdef HAVE_NET_IF_H
18299 #include <net/if.h>
18302 if test "x$ac_cv_header_netinet_ip_compat_h" = xyes
18304 printf "%s\n" "#define HAVE_NETINET_IP_COMPAT_H 1" >>confdefs.h
18311 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
18312 $ac_includes_default
18313 #ifdef HAVE_SYS_SOCKET_H
18314 # include <sys/socket.h>
18316 #ifdef HAVE_WS2TCPIP_H
18317 # include <ws2tcpip.h>
18321 if test "x$ac_cv_type_socklen_t" = xyes
18326 printf "%s\n" "#define socklen_t int" >>confdefs.h
18330 if test "x$ac_cv_type_socklen_t" = xyes; then
18331 ldns_build_config_have_socklen_t=1
18334 ldns_build_config_have_socklen_t=0
18337 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18338 if test "x$ac_cv_type_size_t" = xyes
18343 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18347 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18348 if test "x$ac_cv_type_ssize_t" = xyes
18353 printf "%s\n" "#define ssize_t int" >>confdefs.h
18357 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
18358 if test "x$ac_cv_type_intptr_t" = xyes
18363 printf "%s\n" "#define intptr_t size_t" >>confdefs.h
18367 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
18368 #if HAVE_SYS_TYPES_H
18369 # include <sys/types.h>
18371 #if HAVE_NETINET_IN_H
18372 # include <netinet/in.h>
18375 if test "x$ac_cv_type_in_addr_t" = xyes
18380 printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h
18384 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
18385 #if HAVE_SYS_TYPES_H
18386 # include <sys/types.h>
18388 #if HAVE_NETINET_IN_H
18389 # include <netinet/in.h>
18392 if test "x$ac_cv_type_in_port_t" = xyes
18397 printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h
18401 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
18402 #ifdef HAVE_NETINET_IN_H
18403 #include <netinet/in.h>
18405 #ifdef HAVE_SYS_SOCKET_H
18406 #include <sys/socket.h>
18408 #ifdef HAVE_NETDB_H
18411 #ifdef HAVE_ARPA_INET_H
18412 #include <arpa/inet.h>
18416 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
18421 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
18422 #ifdef HAVE_NETINET_IN_H
18423 #include <netinet/in.h>
18425 #ifdef HAVE_SYS_SOCKET_H
18426 #include <sys/socket.h>
18428 #ifdef HAVE_NETDB_H
18431 #ifdef HAVE_ARPA_INET_H
18432 #include <arpa/inet.h>
18436 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
18440 printf "%s\n" "#define ss_family __ss_family" >>confdefs.h
18449 # AC_FUNC_MALLOC suffers false failures and causes Asan failures.
18453 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
18454 if test "x$ac_cv_func_b64_pton" = xyes
18456 printf "%s\n" "#define HAVE_B64_PTON 1" >>confdefs.h
18459 case " $LIBOBJS " in
18460 *" b64_pton.$ac_objext "* ) ;;
18461 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
18467 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
18468 if test "x$ac_cv_func_b64_ntop" = xyes
18470 printf "%s\n" "#define HAVE_B64_NTOP 1" >>confdefs.h
18473 case " $LIBOBJS " in
18474 *" b64_ntop.$ac_objext "* ) ;;
18475 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
18481 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
18482 if test "x$ac_cv_func_calloc" = xyes
18484 printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
18487 case " $LIBOBJS " in
18488 *" calloc.$ac_objext "* ) ;;
18489 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
18495 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18496 if test "x$ac_cv_func_timegm" = xyes
18498 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
18501 case " $LIBOBJS " in
18502 *" timegm.$ac_objext "* ) ;;
18503 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
18509 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18510 if test "x$ac_cv_func_gmtime_r" = xyes
18512 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
18515 case " $LIBOBJS " in
18516 *" gmtime_r.$ac_objext "* ) ;;
18517 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18523 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18524 if test "x$ac_cv_func_ctime_r" = xyes
18526 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
18529 case " $LIBOBJS " in
18530 *" ctime_r.$ac_objext "* ) ;;
18531 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18537 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
18538 if test "x$ac_cv_func_localtime_r" = xyes
18540 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
18543 case " $LIBOBJS " in
18544 *" localtime_r.$ac_objext "* ) ;;
18545 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
18551 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
18552 if test "x$ac_cv_func_isblank" = xyes
18554 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
18557 case " $LIBOBJS " in
18558 *" isblank.$ac_objext "* ) ;;
18559 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
18565 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
18566 if test "x$ac_cv_func_isascii" = xyes
18568 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
18571 case " $LIBOBJS " in
18572 *" isascii.$ac_objext "* ) ;;
18573 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
18579 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18580 if test "x$ac_cv_func_inet_aton" = xyes
18582 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
18585 case " $LIBOBJS " in
18586 *" inet_aton.$ac_objext "* ) ;;
18587 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18593 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18594 if test "x$ac_cv_func_inet_pton" = xyes
18596 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
18599 case " $LIBOBJS " in
18600 *" inet_pton.$ac_objext "* ) ;;
18601 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18607 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18608 if test "x$ac_cv_func_inet_ntop" = xyes
18610 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
18613 case " $LIBOBJS " in
18614 *" inet_ntop.$ac_objext "* ) ;;
18615 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18621 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18622 if test "x$ac_cv_func_snprintf" = xyes
18624 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18627 case " $LIBOBJS " in
18628 *" snprintf.$ac_objext "* ) ;;
18629 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18635 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18636 if test "x$ac_cv_func_strlcpy" = xyes
18638 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18641 case " $LIBOBJS " in
18642 *" strlcpy.$ac_objext "* ) ;;
18643 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18649 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18650 if test "x$ac_cv_func_memmove" = xyes
18652 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
18655 case " $LIBOBJS " in
18656 *" memmove.$ac_objext "* ) ;;
18657 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18664 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18666 if test "x$ac_cv_type_pid_t" = xyes
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18673 #if defined _WIN64 && !defined __CYGWIN__
18686 if ac_fn_c_try_compile "$LINENO"
18690 ac_pid_type='__int64'
18692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18694 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18702 for ac_item in $ac_func_c_list
18704 if test $ac_func; then
18705 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18706 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18707 echo "#define $ac_item 1" >> confdefs.h
18717 if test "x$ac_cv_func_fork" = xyes; then
18718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18719 printf %s "checking for working fork... " >&6; }
18720 if test ${ac_cv_func_fork_works+y}
18722 printf %s "(cached) " >&6
18724 if test "$cross_compiling" = yes
18726 ac_cv_func_fork_works=cross
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18730 $ac_includes_default
18735 /* By Ruediger Kuhlmann. */
18736 return fork () < 0;
18742 if ac_fn_c_try_run "$LINENO"
18744 ac_cv_func_fork_works=yes
18746 ac_cv_func_fork_works=no
18748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18749 conftest.$ac_objext conftest.beam conftest.$ac_ext
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18754 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
18757 ac_cv_func_fork_works=$ac_cv_func_fork
18759 if test "x$ac_cv_func_fork_works" = xcross; then
18761 *-*-amigaos* | *-*-msdosdjgpp*)
18762 # Override, as these systems have only a dummy fork() stub
18763 ac_cv_func_fork_works=no
18766 ac_cv_func_fork_works=yes
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18770 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18772 ac_cv_func_vfork_works=$ac_cv_func_vfork
18773 if test "x$ac_cv_func_vfork" = xyes; then
18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18775 printf %s "checking for working vfork... " >&6; }
18776 if test ${ac_cv_func_vfork_works+y}
18778 printf %s "(cached) " >&6
18780 if test "$cross_compiling" = yes
18782 ac_cv_func_vfork_works=cross
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18786 /* Thanks to Paul Eggert for this test. */
18787 $ac_includes_default
18788 #include <signal.h>
18789 #include <sys/wait.h>
18790 #ifdef HAVE_VFORK_H
18791 # include <vfork.h>
18795 do_nothing (int sig)
18800 /* On some sparc systems, changes by the child to local and incoming
18801 argument registers are propagated back to the parent. The compiler
18802 is told about this with #include <vfork.h>, but some compilers
18803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18804 static variable whose address is put into a register that is
18805 clobbered by the vfork. */
18807 sparc_address_test (int arg)
18809 static pid_t child;
18827 pid_t parent = getpid ();
18830 sparc_address_test (0);
18832 /* On Solaris 2.4, changes by the child to the signal handler
18833 also munge signal handlers in the parent. To detect this,
18834 start by putting the parent's handler in a known state. */
18835 signal (SIGTERM, SIG_DFL);
18840 /* Here is another test for sparc vfork register problems. This
18841 test uses lots of local variables, at least as many local
18842 variables as main has allocated so far including compiler
18843 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18844 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18845 reuse the register of parent for one of the local variables,
18846 since it will think that parent can't possibly be used any more
18847 in this routine. Assigning to the local variable will thus
18848 munge parent in the parent process. */
18850 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18851 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18852 /* Convince the compiler that p..p7 are live; otherwise, it might
18853 use the same hardware register for all 8 local variables. */
18854 if (p != p1 || p != p2 || p != p3 || p != p4
18855 || p != p5 || p != p6 || p != p7)
18858 /* Alter the child's signal handler. */
18859 if (signal (SIGTERM, do_nothing) != SIG_DFL)
18862 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18863 from child file descriptors. If the child closes a descriptor
18864 before it execs or exits, this munges the parent's descriptor
18865 as well. Test for this by closing stdout in the child. */
18866 _exit(close(fileno(stdout)) != 0);
18871 while (wait(&status) != child)
18874 /* Was there some problem with vforking? */
18877 /* Did the child munge the parent's signal handler? */
18878 || signal (SIGTERM, SIG_DFL) != SIG_DFL
18880 /* Did the child fail? (This shouldn't happen.) */
18883 /* Did the vfork/compiler bug occur? */
18884 || parent != getpid()
18886 /* Did the file descriptor bug occur? */
18887 || fstat(fileno(stdout), &st) != 0
18892 if ac_fn_c_try_run "$LINENO"
18894 ac_cv_func_vfork_works=yes
18896 ac_cv_func_vfork_works=no
18898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18899 conftest.$ac_objext conftest.beam conftest.$ac_ext
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18904 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
18907 if test "x$ac_cv_func_fork_works" = xcross; then
18908 ac_cv_func_vfork_works=$ac_cv_func_vfork
18909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18910 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18913 if test "x$ac_cv_func_vfork_works" = xyes; then
18915 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18919 printf "%s\n" "#define vfork fork" >>confdefs.h
18922 if test "x$ac_cv_func_fork_works" = xyes; then
18924 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compile of fork" >&5
18929 printf %s "checking compile of fork... " >&6; }
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18933 #include <unistd.h>
18945 if ac_fn_c_try_compile "$LINENO"
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18949 printf "%s\n" "yes" >&6; }
18951 printf "%s\n" "#define HAVE_FORK_AVAILABLE 1" >>confdefs.h
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 printf "%s\n" "no" >&6; }
18959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18960 ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent"
18961 if test "x$ac_cv_func_endprotoent" = xyes
18963 printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h
18966 ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent"
18967 if test "x$ac_cv_func_endservent" = xyes
18969 printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h
18972 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
18973 if test "x$ac_cv_func_sleep" = xyes
18975 printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h
18978 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18979 if test "x$ac_cv_func_random" = xyes
18981 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18984 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
18985 if test "x$ac_cv_func_fcntl" = xyes
18987 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
18990 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
18991 if test "x$ac_cv_func_strtoul" = xyes
18993 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
18996 ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
18997 if test "x$ac_cv_func_bzero" = xyes
18999 printf "%s\n" "#define HAVE_BZERO 1" >>confdefs.h
19002 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
19003 if test "x$ac_cv_func_memset" = xyes
19005 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
19008 ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop"
19009 if test "x$ac_cv_func_b32_ntop" = xyes
19011 printf "%s\n" "#define HAVE_B32_NTOP 1" >>confdefs.h
19014 ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton"
19015 if test "x$ac_cv_func_b32_pton" = xyes
19017 printf "%s\n" "#define HAVE_B32_PTON 1" >>confdefs.h
19021 if test "x$HAVE_B32_NTOP" = "xyes"; then
19022 ldns_build_config_have_b32_ntop=1
19025 ldns_build_config_have_b32_ntop=0
19028 if test "x$HAVE_B32_PTON" = "xyes"; then
19029 ldns_build_config_have_b32_pton=1
19032 ldns_build_config_have_b32_pton=0
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19038 printf %s "checking for getaddrinfo... " >&6; }
19039 ac_cv_func_getaddrinfo=no
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19047 char* getaddrinfo();
19048 char* (*f) () = getaddrinfo;
19058 if ac_fn_c_try_link "$LINENO"
19060 ac_cv_func_getaddrinfo="yes"
19061 if test "$ac_cv_header_windows_h" = "yes"; then
19063 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
19066 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19069 LIBS="$LIBS -lws2_32"
19075 LIBS="$LIBS -lws2_32"
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19079 #ifdef HAVE_WS2TCPIP_H
19080 #include <ws2tcpip.h>
19087 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19094 if ac_fn_c_try_link "$LINENO"
19097 ac_cv_func_getaddrinfo="yes"
19099 printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
19105 ac_cv_func_getaddrinfo="no"
19109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19110 conftest$ac_exeext conftest.$ac_ext
19113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19114 conftest$ac_exeext conftest.$ac_ext
19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19117 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
19118 if test $ac_cv_func_getaddrinfo = yes; then
19120 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
19124 if test $ac_cv_func_getaddrinfo = no; then
19125 case " $LIBOBJS " in
19126 *" fake-rfc2553.$ac_objext "* ) ;;
19127 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19132 if test "$USE_WINSOCK" = 1; then
19133 if test -n "$ac_tool_prefix"; then
19134 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19135 set dummy ${ac_tool_prefix}windres; ac_word=$2
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19137 printf %s "checking for $ac_word... " >&6; }
19138 if test ${ac_cv_prog_WINDRES+y}
19140 printf %s "(cached) " >&6
19142 if test -n "$WINDRES"; then
19143 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19149 case $as_dir in #(((
19152 *) as_dir=$as_dir/ ;;
19154 for ac_exec_ext in '' $ac_executable_extensions; do
19155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19156 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19166 WINDRES=$ac_cv_prog_WINDRES
19167 if test -n "$WINDRES"; then
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19169 printf "%s\n" "$WINDRES" >&6; }
19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 printf "%s\n" "no" >&6; }
19177 if test -z "$ac_cv_prog_WINDRES"; then
19178 ac_ct_WINDRES=$WINDRES
19179 # Extract the first word of "windres", so it can be a program name with args.
19180 set dummy windres; ac_word=$2
19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19182 printf %s "checking for $ac_word... " >&6; }
19183 if test ${ac_cv_prog_ac_ct_WINDRES+y}
19185 printf %s "(cached) " >&6
19187 if test -n "$ac_ct_WINDRES"; then
19188 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19191 for as_dir in $PATH
19194 case $as_dir in #(((
19197 *) as_dir=$as_dir/ ;;
19199 for ac_exec_ext in '' $ac_executable_extensions; do
19200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19201 ac_cv_prog_ac_ct_WINDRES="windres"
19202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19211 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19212 if test -n "$ac_ct_WINDRES"; then
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19214 printf "%s\n" "$ac_ct_WINDRES" >&6; }
19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 printf "%s\n" "no" >&6; }
19220 if test "x$ac_ct_WINDRES" = x; then
19223 case $cross_compiling:$ac_tool_warned in
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19226 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19227 ac_tool_warned=yes ;;
19229 WINDRES=$ac_ct_WINDRES
19232 WINDRES="$ac_cv_prog_WINDRES"
19237 # check ioctlsocket
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19239 printf %s "checking for ioctlsocket... " >&6; }
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19243 #ifdef HAVE_WINSOCK2_H
19244 #include <winsock2.h>
19251 (void)ioctlsocket(0, 0, NULL);
19257 if ac_fn_c_try_link "$LINENO"
19260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261 printf "%s\n" "yes" >&6; }
19263 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19268 printf "%s\n" "no" >&6; }
19270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19271 conftest$ac_exeext conftest.$ac_ext
19274 #AC_SEARCH_LIBS(RSA_new, [crypto])
19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
19278 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
19279 if test ${ac_cv_c_format_attribute+y}
19281 printf %s "(cached) " >&6
19283 ac_cv_c_format_attribute=no
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19287 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
19288 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
19300 if ac_fn_c_try_compile "$LINENO"
19302 ac_cv_c_format_attribute="yes"
19304 ac_cv_c_format_attribute="no"
19306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
19312 printf "%s\n" "$ac_cv_c_format_attribute" >&6; }
19313 if test $ac_cv_c_format_attribute = yes; then
19315 printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
19320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
19321 printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
19322 if test ${ac_cv_c_unused_attribute+y}
19324 printf %s "(cached) " >&6
19326 ac_cv_c_unused_attribute=no
19327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328 /* end confdefs.h. */
19330 void f (char *u __attribute__((unused)));
19342 if ac_fn_c_try_compile "$LINENO"
19344 ac_cv_c_unused_attribute="yes"
19346 ac_cv_c_unused_attribute="no"
19348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
19356 printf "%s\n" "$ac_cv_c_unused_attribute" >&6; }
19357 if test $ac_cv_c_unused_attribute = yes; then
19359 printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
19365 # Check whether --with-xcode-sdk was given.
19366 if test ${with_xcode_sdk+y}
19368 withval=$with_xcode_sdk;
19370 with_xcode_sdk="yes"
19373 if test "x_$with_xcode_sdk" != "x_no" ; then
19374 # check OSX deployment target, if needed
19375 if echo $target_os | grep darwin > /dev/null; then
19376 sdk_p=`xcode-select -print-path`;
19377 if test "x_$with_xcode_sdk" = "x_yes" ; then
19378 sdk_v="$( /usr/bin/xcrun --show-sdk-version 2>/dev/null )"
19380 sdk_v="$with_xcode_sdk"
19382 # xcrun only got that option in 10.7
19383 if test -z "$sdk_v" ; then
19387 SYSROOT="$( find ${sdk_p} -name MacOSX${sdk_v}.sdk )"
19389 10.9|10.8) sdk_c="10.7";;
19390 10.11|10.10|*) sdk_c="10.10";;
19392 export MACOSX_DEPLOYMENT_TARGET="${sdk_c}";
19393 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${SYSROOT}"
19398 printf "%s\n" "#define SYSCONFDIR sysconfdir" >>confdefs.h
19402 # Check whether --with-trust-anchor was given.
19403 if test ${with_trust_anchor+y}
19405 withval=$with_trust_anchor;
19406 LDNS_TRUST_ANCHOR_FILE="$withval"
19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5
19409 printf "%s\n" "$as_me: Default trust anchor: $withval" >&6;}
19413 LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key"
19420 # Check whether --with-ca-file was given.
19421 if test ${with_ca_file+y}
19423 withval=$with_ca_file;
19425 printf "%s\n" "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
19428 printf "%s\n" "#define LDNS_DANE_CA_FILE \"$withval\"" >>confdefs.h
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
19431 printf "%s\n" "$as_me: Using CAfile: $withval" >&6;}
19432 DEFAULT_CAFILE="Default is $withval"
19438 printf "%s\n" "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
19446 # Check whether --with-ca-path was given.
19447 if test ${with_ca_path+y}
19449 withval=$with_ca_path;
19451 printf "%s\n" "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
19454 printf "%s\n" "#define LDNS_DANE_CA_PATH \"$withval\"" >>confdefs.h
19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
19457 printf "%s\n" "$as_me: Using CApath: $withval" >&6;}
19458 DEFAULT_CAPATH="Default is $withval"
19464 printf "%s\n" "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
19475 if test "x$HAVE_SSL" = "xyes"; then
19476 ldns_build_config_have_ssl=1
19479 ldns_build_config_have_ssl=0
19482 if test "x$ac_cv_c_format_attribute" = "xyes"; then
19483 ldns_build_config_have_attr_format=1
19486 ldns_build_config_have_attr_format=0
19489 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
19490 ldns_build_config_have_attr_unused=1
19493 ldns_build_config_have_attr_unused=0
19497 CONFIG_FILES="Makefile libdns.doxygen ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config"
19499 ac_config_files="$ac_config_files $CONFIG_FILES"
19502 ac_config_headers="$ac_config_headers ldns/config.h"
19504 cat >confcache <<\_ACEOF
19505 # This file is a shell script that caches the results of configure
19506 # tests run on this system so they can be shared between configure
19507 # scripts and configure runs, see configure's option --config-cache.
19508 # It is not useful on other systems. If it contains results you don't
19509 # want to keep, you may remove or edit it.
19511 # config.status only pays attention to the cache file if you give it
19512 # the --recheck option to rerun configure.
19514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19516 # following values.
19520 # The following way of writing the cache mishandles newlines in values,
19521 # but we know of no workaround that is simple, portable, and efficient.
19522 # So, we kill variables containing newlines.
19523 # Ultrix sh set writes to stderr and can't be redirected directly,
19524 # and sets the high bit in the cache file unless we assign to the vars.
19526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19527 eval ac_val=\$$ac_var
19531 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19532 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19535 _ | IFS | as_nl) ;; #(
19536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19537 *) { eval $ac_var=; unset $ac_var;} ;;
19543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19544 *${as_nl}ac_space=\ *)
19545 # `set' does not quote correctly, so add quotes: double-quote
19546 # substitution turns \\\\ into \\, and sed turns \\ into \.
19549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19552 # `set' quotes correctly as required by POSIX, so do not add quotes.
19553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19562 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19567 if test -w "$cache_file"; then
19568 if test "x$cache_file" != "x/dev/null"; then
19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19570 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19571 if test ! -f "$cache_file" || test -h "$cache_file"; then
19572 cat confcache >"$cache_file"
19574 case $cache_file in #(
19576 mv -f confcache "$cache_file"$$ &&
19577 mv -f "$cache_file"$$ "$cache_file" ;; #(
19579 mv -f confcache "$cache_file" ;;
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19585 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19591 # Let make expand exec_prefix.
19592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19594 DEFS=-DHAVE_CONFIG_H
19599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19600 # 1. Remove the extension, and $U if already installed.
19601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19602 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19604 # will be set to the directory where LIBOBJS objects are built.
19605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19608 LIBOBJS=$ac_libobjs
19610 LTLIBOBJS=$ac_ltlibobjs
19615 : "${CONFIG_STATUS=./config.status}"
19617 ac_clean_files_save=$ac_clean_files
19618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19620 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19624 # Generated by $as_me.
19625 # Run this file to recreate the current configuration.
19626 # Compiler output produced by configure, useful for debugging
19627 # configure, is in config.log if it exists.
19630 ac_cs_recheck=false
19633 SHELL=\${CONFIG_SHELL-$SHELL}
19636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19637 ## -------------------- ##
19638 ## M4sh Initialization. ##
19639 ## -------------------- ##
19641 # Be more Bourne compatible
19642 DUALCASE=1; export DUALCASE # for MKS sh
19644 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19649 # is contrary to our usage. Disable this feature.
19650 alias -g '${1+"$@"}'='"$@"'
19651 setopt NO_GLOB_SUBST
19653 case `(set -o) 2>/dev/null` in #(
19663 # Reset variables that may have inherited troublesome values from
19666 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19667 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19668 # side effect of setting IFS to empty, thus disabling word splitting.)
19669 # Quoting is to prevent editors from complaining about space-tab.
19679 # Ensure predictable behavior from utilities with locale-dependent output.
19685 # We cannot yet rely on "unset" to work, but we need these variables
19686 # to be unset--not just set to an empty or harmless value--now, to
19687 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19688 # also avoids known problems related to "unset" and subshell syntax
19689 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19690 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19691 do eval test \${$as_var+y} \
19692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19695 # Ensure that fds 0, 1, and 2 are open.
19696 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19697 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19698 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19700 # The user is always right.
19701 if ${PATH_SEPARATOR+false} :; then
19703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19710 # Find who we are. Look in the path if we contain no directory separator.
19713 *[\\/]* ) as_myself=$0 ;;
19714 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715 for as_dir in $PATH
19718 case $as_dir in #(((
19721 *) as_dir=$as_dir/ ;;
19723 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19729 # We did not find ourselves, most probably we were run as `sh COMMAND'
19730 # in which case we are not to be found in the path.
19731 if test "x$as_myself" = x; then
19734 if test ! -f "$as_myself"; then
19735 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19741 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19742 # ----------------------------------------
19743 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19744 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19745 # script with STATUS, using 1 if that was 0.
19748 as_status=$1; test $as_status -eq 0 && as_status=1
19750 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19753 printf "%s\n" "$as_me: error: $2" >&2
19754 as_fn_exit $as_status
19759 # as_fn_set_status STATUS
19760 # -----------------------
19761 # Set $? to STATUS, without forking.
19762 as_fn_set_status ()
19765 } # as_fn_set_status
19767 # as_fn_exit STATUS
19768 # -----------------
19769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19773 as_fn_set_status $1
19779 # Portably unset VAR.
19782 { eval $1=; unset $1;}
19784 as_unset=as_fn_unset
19786 # as_fn_append VAR VALUE
19787 # ----------------------
19788 # Append the text in VALUE to the end of the definition contained in VAR. Take
19789 # advantage of any shell optimizations that allow amortized linear growth over
19790 # repeated appends, instead of the typical quadratic growth present in naive
19792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19794 eval 'as_fn_append ()
19805 # as_fn_arith ARG...
19806 # ------------------
19807 # Perform arithmetic evaluation on the ARGs, and store the result in the
19808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19809 # must be portable across $(()) and expr.
19810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19812 eval 'as_fn_arith ()
19819 as_val=`expr "$@" || test $? -eq 1`
19824 if expr a : '\(a\)' >/dev/null 2>&1 &&
19825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19832 as_basename=basename
19837 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19843 as_me=`$as_basename -- "$0" ||
19844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19845 X"$0" : 'X\(//\)$' \| \
19846 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19847 printf "%s\n" X/"$0" |
19848 sed '/^.*\/\([^/][^/]*\)\/*$/{
19862 # Avoid depending upon Character Ranges.
19863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19866 as_cr_digits='0123456789'
19867 as_cr_alnum=$as_cr_Letters$as_cr_digits
19870 # Determine whether it's possible to make 'echo' print without a newline.
19871 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19872 # for compatibility with existing Makefiles.
19873 ECHO_C= ECHO_N= ECHO_T=
19874 case `echo -n x` in #(((((
19876 case `echo 'xy\c'` in
19877 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19886 # For backward compatibility with old third-party macros, we provide
19887 # the shell variables $as_echo and $as_echo_n. New code should use
19888 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19889 as_echo='printf %s\n'
19890 as_echo_n='printf %s'
19892 rm -f conf$$ conf$$.exe conf$$.file
19893 if test -d conf$$.dir; then
19894 rm -f conf$$.dir/conf$$.file
19897 mkdir conf$$.dir 2>/dev/null
19899 if (echo >conf$$.file) 2>/dev/null; then
19900 if ln -s conf$$.file conf$$ 2>/dev/null; then
19902 # ... but there are two gotchas:
19903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19905 # In both cases, we have to default to `cp -pR'.
19906 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19908 elif ln conf$$.file conf$$ 2>/dev/null; then
19916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19917 rmdir conf$$.dir 2>/dev/null
19922 # Create "$as_dir" as a directory, including parents if necessary.
19927 -*) as_dir=./$as_dir;;
19929 test -d "$as_dir" || eval $as_mkdir_p || {
19933 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19934 *) as_qdir=$as_dir;;
19936 as_dirs="'$as_qdir' $as_dirs"
19937 as_dir=`$as_dirname -- "$as_dir" ||
19938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19939 X"$as_dir" : 'X\(//\)[^/]' \| \
19940 X"$as_dir" : 'X\(//\)$' \| \
19941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19942 printf "%s\n" X"$as_dir" |
19943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19947 /^X\(\/\/\)[^/].*/{
19960 test -d "$as_dir" && break
19962 test -z "$as_dirs" || eval "mkdir $as_dirs"
19963 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19967 if mkdir -p . 2>/dev/null; then
19968 as_mkdir_p='mkdir -p "$as_dir"'
19970 test -d ./-p && rmdir ./-p
19975 # as_fn_executable_p FILE
19976 # -----------------------
19977 # Test if FILE is an executable regular file.
19978 as_fn_executable_p ()
19980 test -f "$1" && test -x "$1"
19981 } # as_fn_executable_p
19982 as_test_x='test -x'
19983 as_executable_p=as_fn_executable_p
19985 # Sed expression to map a string onto a valid CPP name.
19986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19988 # Sed expression to map a string onto a valid variable name.
19989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19993 ## ----------------------------------- ##
19994 ## Main body of $CONFIG_STATUS script. ##
19995 ## ----------------------------------- ##
19997 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20000 # Save the log message, to keep $0 and so on meaningful, and to
20001 # report actual input values of CONFIG_FILES etc. instead of their
20002 # values after options handling.
20004 This file was extended by ldns $as_me 1.8.3, which was
20005 generated by GNU Autoconf 2.71. Invocation command line was
20007 CONFIG_FILES = $CONFIG_FILES
20008 CONFIG_HEADERS = $CONFIG_HEADERS
20009 CONFIG_LINKS = $CONFIG_LINKS
20010 CONFIG_COMMANDS = $CONFIG_COMMANDS
20013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20018 case $ac_config_files in *"
20019 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20022 case $ac_config_headers in *"
20023 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 # Files that config.status was made for.
20029 config_files="$ac_config_files"
20030 config_headers="$ac_config_headers"
20031 config_commands="$ac_config_commands"
20035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20037 \`$as_me' instantiates files and other configuration actions
20038 from templates according to the current configuration. Unless the files
20039 and actions are specified as TAGs, all are instantiated by default.
20041 Usage: $0 [OPTION]... [TAG]...
20043 -h, --help print this help, then exit
20044 -V, --version print version number and configuration settings, then exit
20045 --config print configuration, then exit
20046 -q, --quiet, --silent
20047 do not print progress messages
20048 -d, --debug don't remove temporary files
20049 --recheck update $as_me by reconfiguring in the same conditions
20050 --file=FILE[:TEMPLATE]
20051 instantiate the configuration file FILE
20052 --header=FILE[:TEMPLATE]
20053 instantiate the configuration header FILE
20055 Configuration files:
20058 Configuration headers:
20061 Configuration commands:
20064 Report bugs to <libdns@nlnetlabs.nl>."
20067 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20068 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20070 ac_cs_config='$ac_cs_config_escaped'
20072 ldns config.status 1.8.3
20073 configured by $0, generated by GNU Autoconf 2.71,
20074 with options \\"\$ac_cs_config\\"
20076 Copyright (C) 2021 Free Software Foundation, Inc.
20077 This config.status script is free software; the Free Software Foundation
20078 gives unlimited permission to copy, distribute and modify it."
20083 test -n "\$AWK" || AWK=awk
20086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20087 # The default lists apply if the user does not specify any file.
20093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20110 # Handling of the options.
20111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20114 printf "%s\n" "$ac_cs_version"; exit ;;
20115 --config | --confi | --conf | --con | --co | --c )
20116 printf "%s\n" "$ac_cs_config"; exit ;;
20117 --debug | --debu | --deb | --de | --d | -d )
20119 --file | --fil | --fi | --f )
20122 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20123 '') as_fn_error $? "missing file argument" ;;
20125 as_fn_append CONFIG_FILES " '$ac_optarg'"
20126 ac_need_defaults=false;;
20127 --header | --heade | --head | --hea )
20130 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20132 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20133 ac_need_defaults=false;;
20135 # Conflict between --help and --header
20136 as_fn_error $? "ambiguous option: \`$1'
20137 Try \`$0 --help' for more information.";;
20138 --help | --hel | -h )
20139 printf "%s\n" "$ac_cs_usage"; exit ;;
20140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20144 # This is an error.
20145 -*) as_fn_error $? "unrecognized option: \`$1'
20146 Try \`$0 --help' for more information." ;;
20148 *) as_fn_append ac_config_targets " $1"
20149 ac_need_defaults=false ;;
20155 ac_configure_extra_args=
20157 if $ac_cs_silent; then
20159 ac_configure_extra_args="$ac_configure_extra_args --silent"
20163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20164 if \$ac_cs_recheck; then
20165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20167 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20168 CONFIG_SHELL='$SHELL'
20169 export CONFIG_SHELL
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20179 ## Running $as_me. ##
20181 printf "%s\n" "$ac_log"
20185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20191 # The HP-UX ksh and POSIX shell print the target directory to stdout
20192 # if CDPATH is set.
20193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20195 sed_quote_subst='$sed_quote_subst'
20196 double_quote_subst='$double_quote_subst'
20197 delay_variable_subst='$delay_variable_subst'
20198 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20199 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20201 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20202 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20203 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20204 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20205 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20206 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20207 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20208 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20209 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20210 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20211 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20212 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20213 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20214 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20215 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20216 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20217 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20218 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20219 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20220 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20221 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20222 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20223 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20224 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20225 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20226 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20227 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20228 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20229 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20230 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20231 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20232 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20233 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20234 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20235 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20236 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20237 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20238 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20239 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20240 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20241 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20242 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20243 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20244 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20245 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20246 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20247 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20248 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20249 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20250 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20251 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20252 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20253 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20254 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20255 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20256 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"`'
20257 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20258 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20259 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20260 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20261 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20262 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20263 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20264 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20265 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20266 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20267 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20268 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20269 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20270 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20271 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20272 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20273 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20274 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20275 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20276 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20277 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20278 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20279 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20280 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20281 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20282 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20283 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20284 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20285 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20286 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20287 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20288 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20289 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20290 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20291 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20292 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20293 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20294 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20295 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20296 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20297 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20298 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20299 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20300 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20301 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20302 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20303 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20304 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20305 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20306 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20307 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20308 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20309 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20310 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20311 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20312 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20313 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20314 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20315 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20316 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20317 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20318 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20319 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20320 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20321 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20322 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20323 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20324 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20325 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20326 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20327 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20328 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20329 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20330 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20331 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20332 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20335 LTCFLAGS='$LTCFLAGS'
20336 compiler='$compiler_DEFAULT'
20338 # A function that is used when there is no print builtin or printf.
20339 func_fallback_echo ()
20341 eval 'cat <<_LTECHO_EOF
20346 # Quote evaled strings.
20361 deplibs_check_method \
20366 sharedlib_from_linklib_cmd \
20369 archiver_list_spec \
20375 lt_cv_sys_global_symbol_pipe \
20376 lt_cv_sys_global_symbol_to_cdecl \
20377 lt_cv_sys_global_symbol_to_import \
20378 lt_cv_sys_global_symbol_to_c_name_address \
20379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20380 lt_cv_nm_interface \
20381 nm_file_list_spec \
20382 lt_cv_truncate_bin \
20383 lt_prog_compiler_no_builtin_flag \
20384 lt_prog_compiler_pic \
20385 lt_prog_compiler_wl \
20386 lt_prog_compiler_static \
20387 lt_cv_prog_compiler_c_o \
20396 export_dynamic_flag_spec \
20397 whole_archive_flag_spec \
20398 compiler_needs_object \
20400 allow_undefined_flag \
20401 no_undefined_flag \
20402 hardcode_libdir_flag_spec \
20403 hardcode_libdir_separator \
20407 variables_saved_for_relink \
20409 library_names_spec \
20411 install_override_mode \
20415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20416 *[\\\\\\\`\\"\\\$]*)
20417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20425 # Double-quote double-evaled strings.
20426 for var in reload_cmds \
20427 old_postinstall_cmds \
20428 old_postuninstall_cmds \
20430 extract_expsyms_cmds \
20431 old_archive_from_new_cmds \
20432 old_archive_from_expsyms_cmds \
20434 archive_expsym_cmds \
20436 module_expsym_cmds \
20437 export_symbols_cmds \
20441 postuninstall_cmds \
20443 sys_lib_search_path_spec \
20444 configure_time_dlsearch_path \
20445 configure_time_lt_sys_library_path; do
20446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20447 *[\\\\\\\`\\"\\\$]*)
20448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20456 ac_aux_dir='$ac_aux_dir'
20458 # See if we are running on zsh, and set the options that allow our
20459 # commands through without removal of \ escapes INIT.
20460 if test -n "\${ZSH_VERSION+set}"; then
20461 setopt NO_GLOB_SUBST
20475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477 # Handling of arguments.
20478 for ac_config_target in $ac_config_targets
20480 case $ac_config_target in
20481 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20482 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20483 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
20484 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
20486 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20491 # If the user did not use the arguments to specify the items to instantiate,
20492 # then the envvar interface is used. Set only those that are not.
20493 # We use the long form for the default assignment because of an extremely
20494 # bizarre bug on SunOS 4.1.3.
20495 if $ac_need_defaults; then
20496 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20497 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20498 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20501 # Have a temporary directory for convenience. Make it in the build tree
20502 # simply because there is no reason against having it here, and in addition,
20503 # creating and moving files from /tmp can sometimes cause problems.
20504 # Hook for its removal unless debugging.
20505 # Note that there is a small window in which the directory will not be cleaned:
20506 # after its creation but before its name has been assigned to `$tmp'.
20510 trap 'exit_status=$?
20511 : "${ac_tmp:=$tmp}"
20512 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20514 trap 'as_fn_exit 1' 1 2 13 15
20516 # Create a (secure) tmp directory for tmp files.
20519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20523 tmp=./conf$$-$RANDOM
20524 (umask 077 && mkdir "$tmp")
20525 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20528 # Set up the scripts for CONFIG_FILES section.
20529 # No need to generate them if there are no CONFIG_FILES.
20530 # This happens for instance with `./config.status config.h'.
20531 if test -n "$CONFIG_FILES"; then
20534 ac_cr=`echo X | tr X '\015'`
20535 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20536 # But we know of no other shell where ac_cr would be empty at this
20537 # point, so we can use a bashism as a fallback.
20538 if test "x$ac_cr" = x; then
20539 eval ac_cr=\$\'\\r\'
20541 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20542 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20545 ac_cs_awk_cr=$ac_cr
20548 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20553 echo "cat >conf$$subs.awk <<_ACEOF" &&
20554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20556 } >conf$$subs.sh ||
20557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20558 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20560 for ac_last_try in false false false false false :; do
20561 . ./conf$$subs.sh ||
20562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20564 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20565 if test $ac_delim_n = $ac_delim_num; then
20567 elif $ac_last_try; then
20568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20573 rm -f conf$$subs.sh
20575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20576 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20580 s/^/S["/; s/!.*/"]=/
20590 s/\(.\{148\}\)..*/\1/
20592 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20597 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20604 s/\(.\{148\}\)..*/\1/
20606 s/["\\]/\\&/g; s/^/"/; s/$/"/
20610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20615 ' <conf$$subs.awk | sed '
20620 ' >>$CONFIG_STATUS || ac_write_fail=1
20621 rm -f conf$$subs.awk
20622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20624 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20625 for (key in S) S_is_set[key] = 1
20631 nfields = split(line, field, "@")
20633 len = length(field[1])
20634 for (i = 2; i < nfields; i++) {
20636 keylen = length(key)
20637 if (S_is_set[key]) {
20639 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20640 len += length(value) + length(field[++i])
20651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20652 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20653 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20656 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20657 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20660 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20661 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20662 # trailing colons and then remove the whole line if VPATH becomes empty
20663 # (actually we leave an empty line to preserve line numbers).
20664 if test "x$srcdir" = x.; then
20665 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20684 fi # test -n "$CONFIG_FILES"
20686 # Set up the scripts for CONFIG_HEADERS section.
20687 # No need to generate them if there are no CONFIG_HEADERS.
20688 # This happens for instance with `./config.status Makefile'.
20689 if test -n "$CONFIG_HEADERS"; then
20690 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20694 # Transform confdefs.h into an awk script `defines.awk', embedded as
20695 # here-document in config.status, that substitutes the proper values into
20696 # config.h.in to produce config.h.
20698 # Create a delimiter string that does not exist in confdefs.h, to ease
20699 # handling of long lines.
20701 for ac_last_try in false false :; do
20702 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20703 if test -z "$ac_tt"; then
20705 elif $ac_last_try; then
20706 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20712 # For the awk script, D is an array of macro values keyed by name,
20713 # likewise P contains macro parameters if any. Preserve backslash
20714 # newline sequences.
20716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20718 s/.\{148\}/&'"$ac_delim"'/g
20721 s/^[ ]*#[ ]*define[ ][ ]*/ /
20728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20735 D["\1"]=" \3\\\\\\n"\\/p
20737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20742 s/.\{148\}/&'"$ac_delim"'/g
20747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20752 ' <confdefs.h | sed '
20753 s/'"$ac_delim"'/"\\\
20754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20757 for (key in D) D_is_set[key] = 1
20760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20762 split(line, arg, " ")
20763 if (arg[1] == "#") {
20767 defundef = substr(arg[1], 2)
20770 split(mac1, mac2, "(") #)
20772 prefix = substr(line, 1, index(line, defundef) - 1)
20773 if (D_is_set[macro]) {
20774 # Preserve the white space surrounding the "#".
20775 print prefix "define", macro P[macro] D[macro]
20778 # Replace #undef with comments. This is necessary, for example,
20779 # in the case of _POSIX_SOURCE, which is predefined and required
20780 # on some systems where configure will not decide to define it.
20781 if (defundef == "undef") {
20782 print "/*", prefix defundef, macro, "*/"
20790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20791 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20792 fi # test -n "$CONFIG_HEADERS"
20795 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20800 :[FHLC]) ac_mode=$ac_tag; continue;;
20802 case $ac_mode$ac_tag in
20804 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20805 :[FH]-) ac_tag=-:-;;
20806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20823 -) ac_f="$ac_tmp/stdin";;
20824 *) # Look for the file first in the build tree, then in the source tree
20825 # (if the path is not absolute). The absolute path cannot be DOS-style,
20826 # because $ac_f cannot contain `:'.
20830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20832 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20834 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20835 as_fn_append ac_file_inputs " '$ac_f'"
20838 # Let's still pretend it is `configure' which instantiates (i.e., don't
20839 # use $as_me), people would be surprised to read:
20840 # /* config.h. Generated by config.status. */
20841 configure_input='Generated from '`
20842 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20844 if test x"$ac_file" != x-; then
20845 configure_input="$ac_file. $configure_input"
20846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20847 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20849 # Neutralize special characters interpreted by sed in replacement strings.
20850 case $configure_input in #(
20851 *\&* | *\|* | *\\* )
20852 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20853 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20854 *) ac_sed_conf_input=$configure_input;;
20858 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20864 ac_dir=`$as_dirname -- "$ac_file" ||
20865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20866 X"$ac_file" : 'X\(//\)[^/]' \| \
20867 X"$ac_file" : 'X\(//\)$' \| \
20868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20869 printf "%s\n" X"$ac_file" |
20870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20874 /^X\(\/\/\)[^/].*/{
20887 as_dir="$ac_dir"; as_fn_mkdir_p
20891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20893 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20894 # A ".." for each directory in $ac_dir_suffix.
20895 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20896 case $ac_top_builddir_sub in
20897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20901 ac_abs_top_builddir=$ac_pwd
20902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20903 # for backward compatibility:
20904 ac_top_builddir=$ac_top_build_prefix
20907 .) # We are building in place.
20909 ac_top_srcdir=$ac_top_builddir_sub
20910 ac_abs_top_srcdir=$ac_pwd ;;
20911 [\\/]* | ?:[\\/]* ) # Absolute name.
20912 ac_srcdir=$srcdir$ac_dir_suffix;
20913 ac_top_srcdir=$srcdir
20914 ac_abs_top_srcdir=$srcdir ;;
20915 *) # Relative name.
20916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20917 ac_top_srcdir=$ac_top_build_prefix$srcdir
20918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20932 # If the template does not know about datarootdir, expand it.
20933 # FIXME: This hack should be removed a few years after 2.60.
20934 ac_datarootdir_hack=; ac_datarootdir_seen=
20945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20946 *datarootdir*) ac_datarootdir_seen=yes;;
20947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20949 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20952 ac_datarootdir_hack='
20953 s&@datadir@&$datadir&g
20954 s&@docdir@&$docdir&g
20955 s&@infodir@&$infodir&g
20956 s&@localedir@&$localedir&g
20957 s&@mandir@&$mandir&g
20958 s&\\\${datarootdir}&$datarootdir&g' ;;
20962 # Neutralize VPATH when `$srcdir' = `.'.
20963 # Shell code in configure.ac might set extrasub.
20964 # FIXME: do we really want to maintain this feature?
20965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20966 ac_sed_extra="$ac_vpsub
20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20972 s|@configure_input@|$ac_sed_conf_input|;t t
20973 s&@top_builddir@&$ac_top_builddir_sub&;t t
20974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20975 s&@srcdir@&$ac_srcdir&;t t
20976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20977 s&@top_srcdir@&$ac_top_srcdir&;t t
20978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20979 s&@builddir@&$ac_builddir&;t t
20980 s&@abs_builddir@&$ac_abs_builddir&;t t
20981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20982 $ac_datarootdir_hack
20984 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20985 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20987 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20988 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20989 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20990 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20992 which seems to be undefined. Please make sure it is defined" >&5
20993 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20994 which seems to be undefined. Please make sure it is defined" >&2;}
20996 rm -f "$ac_tmp/stdin"
20998 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20999 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21007 if test x"$ac_file" != x-; then
21009 printf "%s\n" "/* $configure_input */" >&1 \
21010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21011 } >"$ac_tmp/config.h" \
21012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21013 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21015 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21018 mv "$ac_tmp/config.h" "$ac_file" \
21019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21022 printf "%s\n" "/* $configure_input */" >&1 \
21023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21024 || as_fn_error $? "could not create -" "$LINENO" 5
21028 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21029 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21034 case $ac_file$ac_mode in
21037 # See if we are running on zsh, and set the options that allow our
21038 # commands through without removal of \ escapes.
21039 if test -n "${ZSH_VERSION+set}"; then
21040 setopt NO_GLOB_SUBST
21044 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21047 cat <<_LT_EOF >> "$cfgfile"
21049 # Generated automatically by $as_me ($PACKAGE) $VERSION
21050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21052 # Provide generalized library-building support services.
21053 # Written by Gordon Matzigkeit, 1996
21055 # Copyright (C) 2014 Free Software Foundation, Inc.
21056 # This is free software; see the source for copying conditions. There is NO
21057 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21059 # GNU Libtool is free software; you can redistribute it and/or modify
21060 # it under the terms of the GNU General Public License as published by
21061 # the Free Software Foundation; either version 2 of of the License, or
21062 # (at your option) any later version.
21064 # As a special exception to the GNU General Public License, if you
21065 # distribute this file as part of a program or library that is built
21066 # using GNU Libtool, you may include this file under the same
21067 # distribution terms that you use for the rest of that program.
21069 # GNU Libtool is distributed in the hope that it will be useful, but
21070 # WITHOUT ANY WARRANTY; without even the implied warranty of
21071 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21072 # GNU General Public License for more details.
21074 # You should have received a copy of the GNU General Public License
21075 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21078 # The names of the tagged configurations supported by this script.
21081 # Configured defaults for sys_lib_dlsearch_path munging.
21082 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21084 # ### BEGIN LIBTOOL CONFIG
21086 # Which release of libtool.m4 was used?
21087 macro_version=$macro_version
21088 macro_revision=$macro_revision
21090 # Whether or not to build shared libraries.
21091 build_libtool_libs=$enable_shared
21093 # Whether or not to build static libraries.
21094 build_old_libs=$enable_static
21096 # What type of objects to build.
21099 # Whether or not to optimize for fast installation.
21100 fast_install=$enable_fast_install
21102 # Shared archive member basename,for filename based shared library versioning on AIX.
21103 shared_archive_member_spec=$shared_archive_member_spec
21105 # Shell to use when invoking shell scripts.
21108 # An echo program that protects backslashes.
21111 # The PATH separator for the build system.
21112 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21115 host_alias=$host_alias
21119 # The build system.
21120 build_alias=$build_alias
21124 # A sed program that does not truncate output.
21127 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21128 Xsed="\$SED -e 1s/^X//"
21130 # A grep program that handles long lines.
21136 # A literal string matcher.
21139 # A BSD- or MS-compatible name lister.
21142 # Whether we need soft or hard links.
21145 # What is the maximum length of a command?
21146 max_cmd_len=$max_cmd_len
21148 # Object file suffix (normally "o").
21151 # Executable file suffix (normally "").
21154 # whether the shell understands "unset".
21157 # turn spaces into newlines.
21160 # turn newlines into spaces.
21163 # convert \$build file names to \$host format.
21164 to_host_file_cmd=$lt_cv_to_host_file_cmd
21166 # convert \$build files to toolchain format.
21167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21169 # An object symbol dumper.
21170 OBJDUMP=$lt_OBJDUMP
21172 # Method to check whether dependent libraries are shared objects.
21173 deplibs_check_method=$lt_deplibs_check_method
21175 # Command to use when deplibs_check_method = "file_magic".
21176 file_magic_cmd=$lt_file_magic_cmd
21178 # How to find potential files when deplibs_check_method = "file_magic".
21179 file_magic_glob=$lt_file_magic_glob
21181 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21182 want_nocaseglob=$lt_want_nocaseglob
21184 # DLL creation program.
21185 DLLTOOL=$lt_DLLTOOL
21187 # Command to associate shared and link libraries.
21188 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21193 # Flags to create an archive.
21194 AR_FLAGS=$lt_AR_FLAGS
21196 # How to feed a file listing to the archiver.
21197 archiver_list_spec=$lt_archiver_list_spec
21199 # A symbol stripping program.
21202 # Commands used to install an old-style archive.
21204 old_postinstall_cmds=$lt_old_postinstall_cmds
21205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21207 # Whether to use a lock for old archive extraction.
21208 lock_old_archive_extraction=$lock_old_archive_extraction
21213 # LTCC compiler flags.
21214 LTCFLAGS=$lt_CFLAGS
21216 # Take the output of nm and produce a listing of raw symbols and C names.
21217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21219 # Transform the output of nm in a proper C declaration.
21220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21222 # Transform the output of nm into a list of symbols to manually relocate.
21223 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21225 # Transform the output of nm in a C name address pair.
21226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21228 # Transform the output of nm in a C name address pair when lib prefix is needed.
21229 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21231 # The name lister interface.
21232 nm_interface=$lt_lt_cv_nm_interface
21234 # Specify filename containing input files for \$NM.
21235 nm_file_list_spec=$lt_nm_file_list_spec
21237 # The root where to search for dependent libraries,and where our libraries should be installed.
21238 lt_sysroot=$lt_sysroot
21240 # Command to truncate a binary pipe.
21241 lt_truncate_bin=$lt_lt_cv_truncate_bin
21243 # The name of the directory that contains temporary libtool files.
21246 # Used to examine libraries when file_magic_cmd begins with "file".
21247 MAGIC_CMD=$MAGIC_CMD
21249 # Must we lock files when doing compilation?
21250 need_locks=$lt_need_locks
21253 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21255 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21256 DSYMUTIL=$lt_DSYMUTIL
21258 # Tool to change global to local symbols on Mac OS X.
21261 # Tool to manipulate fat objects and archives on Mac OS X.
21264 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21267 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21268 OTOOL64=$lt_OTOOL64
21270 # Old archive suffix (normally "a").
21273 # Shared library suffix (normally ".so").
21274 shrext_cmds=$lt_shrext_cmds
21276 # The commands to extract the exported symbol list from a shared archive.
21277 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21279 # Variables whose values should be saved in libtool wrapper scripts and
21280 # restored at link time.
21281 variables_saved_for_relink=$lt_variables_saved_for_relink
21283 # Do we need the "lib" prefix for modules?
21284 need_lib_prefix=$need_lib_prefix
21286 # Do we need a version for libraries?
21287 need_version=$need_version
21289 # Library versioning type.
21290 version_type=$version_type
21292 # Shared library runtime path variable.
21293 runpath_var=$runpath_var
21295 # Shared library path variable.
21296 shlibpath_var=$shlibpath_var
21298 # Is shlibpath searched before the hard-coded library search path?
21299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21301 # Format of library name prefix.
21302 libname_spec=$lt_libname_spec
21304 # List of archive names. First name is the real one, the rest are links.
21305 # The last name is the one that the linker finds with -lNAME
21306 library_names_spec=$lt_library_names_spec
21308 # The coded name of the library, if different from the real name.
21309 soname_spec=$lt_soname_spec
21311 # Permission mode override for installation of shared libraries.
21312 install_override_mode=$lt_install_override_mode
21314 # Command to use after installation of a shared archive.
21315 postinstall_cmds=$lt_postinstall_cmds
21317 # Command to use after uninstallation of a shared archive.
21318 postuninstall_cmds=$lt_postuninstall_cmds
21320 # Commands used to finish a libtool library installation in a directory.
21321 finish_cmds=$lt_finish_cmds
21323 # As "finish_cmds", except a single script fragment to be evaled but
21325 finish_eval=$lt_finish_eval
21327 # Whether we should hardcode library paths into libraries.
21328 hardcode_into_libs=$hardcode_into_libs
21330 # Compile-time system search path for libraries.
21331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21333 # Detected run-time system search path for libraries.
21334 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21336 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21337 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21339 # Whether dlopen is supported.
21340 dlopen_support=$enable_dlopen
21342 # Whether dlopen of programs is supported.
21343 dlopen_self=$enable_dlopen_self
21345 # Whether dlopen of statically linked programs is supported.
21346 dlopen_self_static=$enable_dlopen_self_static
21348 # Commands to strip libraries.
21349 old_striplib=$lt_old_striplib
21350 striplib=$lt_striplib
21353 # The linker used to build libraries.
21356 # How to create reloadable object files.
21357 reload_flag=$lt_reload_flag
21358 reload_cmds=$lt_reload_cmds
21360 # Commands used to build an old-style archive.
21361 old_archive_cmds=$lt_old_archive_cmds
21363 # A language specific compiler.
21366 # Is the compiler the GNU compiler?
21369 # Compiler flag to turn off builtin functions.
21370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21372 # Additional compiler flags for building library objects.
21373 pic_flag=$lt_lt_prog_compiler_pic
21375 # How to pass a linker flag through the compiler.
21376 wl=$lt_lt_prog_compiler_wl
21378 # Compiler flag to prevent dynamic linking.
21379 link_static_flag=$lt_lt_prog_compiler_static
21381 # Does compiler simultaneously support -c and -o options?
21382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21384 # Whether or not to add -lc for building shared libraries.
21385 build_libtool_need_lc=$archive_cmds_need_lc
21387 # Whether or not to disallow shared libs when runtime libs are static.
21388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21390 # Compiler flag to allow reflexive dlopens.
21391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21393 # Compiler flag to generate shared objects directly from archives.
21394 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21396 # Whether the compiler copes with passing no objects directly.
21397 compiler_needs_object=$lt_compiler_needs_object
21399 # Create an old-style archive from a shared archive.
21400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21402 # Create a temporary old-style archive to link instead of a shared archive.
21403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21405 # Commands used to build a shared archive.
21406 archive_cmds=$lt_archive_cmds
21407 archive_expsym_cmds=$lt_archive_expsym_cmds
21409 # Commands used to build a loadable module if different from building
21410 # a shared archive.
21411 module_cmds=$lt_module_cmds
21412 module_expsym_cmds=$lt_module_expsym_cmds
21414 # Whether we are building with GNU ld or not.
21415 with_gnu_ld=$lt_with_gnu_ld
21417 # Flag that allows shared libraries with undefined symbols to be built.
21418 allow_undefined_flag=$lt_allow_undefined_flag
21420 # Flag that enforces no undefined symbols.
21421 no_undefined_flag=$lt_no_undefined_flag
21423 # Flag to hardcode \$libdir into a binary during linking.
21424 # This must work even if \$libdir does not exist
21425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21427 # Whether we need a single "-rpath" flag with a separated argument.
21428 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21430 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21431 # DIR into the resulting binary.
21432 hardcode_direct=$hardcode_direct
21434 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21435 # DIR into the resulting binary and the resulting library dependency is
21436 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21437 # library is relocated.
21438 hardcode_direct_absolute=$hardcode_direct_absolute
21440 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21441 # into the resulting binary.
21442 hardcode_minus_L=$hardcode_minus_L
21444 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21445 # into the resulting binary.
21446 hardcode_shlibpath_var=$hardcode_shlibpath_var
21448 # Set to "yes" if building a shared library automatically hardcodes DIR
21449 # into the library and all subsequent libraries and executables linked
21451 hardcode_automatic=$hardcode_automatic
21453 # Set to yes if linker adds runtime paths of dependent libraries
21454 # to runtime path list.
21455 inherit_rpath=$inherit_rpath
21457 # Whether libtool must link a program against all its dependency libraries.
21458 link_all_deplibs=$link_all_deplibs
21460 # Set to "yes" if exported symbols are required.
21461 always_export_symbols=$always_export_symbols
21463 # The commands to list exported symbols.
21464 export_symbols_cmds=$lt_export_symbols_cmds
21466 # Symbols that should not be listed in the preloaded symbols.
21467 exclude_expsyms=$lt_exclude_expsyms
21469 # Symbols that must always be exported.
21470 include_expsyms=$lt_include_expsyms
21472 # Commands necessary for linking programs (against libraries) with templates.
21473 prelink_cmds=$lt_prelink_cmds
21475 # Commands necessary for finishing linking programs.
21476 postlink_cmds=$lt_postlink_cmds
21478 # Specify filename containing input files.
21479 file_list_spec=$lt_file_list_spec
21481 # How to hardcode a shared library path into an executable.
21482 hardcode_action=$hardcode_action
21484 # ### END LIBTOOL CONFIG
21488 cat <<'_LT_EOF' >> "$cfgfile"
21490 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21492 # func_munge_path_list VARIABLE PATH
21493 # -----------------------------------
21494 # VARIABLE is name of variable containing _space_ separated list of
21495 # directories to be munged by the contents of PATH, which is string
21498 # string "DIR[ DIR]" will be prepended to VARIABLE
21500 # string "DIR[ DIR]" will be appended to VARIABLE
21501 # "DIRP[:DIRP]::[DIRA:]DIRA"
21502 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21503 # "DIRA[ DIRA]" will be appended to VARIABLE
21505 # VARIABLE will be replaced by "DIR[ DIR]"
21506 func_munge_path_list ()
21512 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21515 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21518 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21519 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21522 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21528 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21529 func_cc_basename ()
21531 for cc_temp in $*""; do
21533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21539 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21543 # ### END FUNCTIONS SHARED WITH CONFIGURE
21549 cat <<\_LT_EOF >> "$cfgfile"
21550 # AIX sometimes has problems with the GCC collect2 program. For some
21551 # reason, if we set the COLLECT_NAMES environment variable, the problems
21552 # vanish in a puff of smoke.
21553 if test set != "${COLLECT_NAMES+set}"; then
21555 export COLLECT_NAMES
21563 ltmain=$ac_aux_dir/ltmain.sh
21566 # We use sed instead of cat because bash on DJGPP gets confused if
21567 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21568 # text mode, it properly converts lines to CR/LF. This bash problem
21569 # is reportedly fixed, but why not run on old versions too?
21570 sed '$q' "$ltmain" >> "$cfgfile" \
21571 || (rm -f "$cfgfile"; exit 1)
21573 mv -f "$cfgfile" "$ofile" ||
21574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21579 sed < libtool > libtool-2 \
21580 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21581 mv libtool-2 libtool
21583 libtool="./libtool"
21592 ac_clean_files=$ac_clean_files_save
21594 test $ac_write_fail = 0 ||
21595 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21598 # configure is writing to config.log, and then calls config.status.
21599 # config.status does its own redirection, appending to config.log.
21600 # Unfortunately, on DOS this fails, as config.log is still kept open
21601 # by configure, so config.status won't be able to write to it; its
21602 # output is simply discarded. So we exec the FD to /dev/null,
21603 # effectively closing config.log, so it can be properly (re)opened and
21604 # appended to by config.status. When coming back to configure, we
21605 # need to make the FD available again.
21606 if test "$no_create" != yes; then
21608 ac_config_status_args=
21609 test "$silent" = yes &&
21610 ac_config_status_args="$ac_config_status_args --quiet"
21612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21615 # would make configure fail if this is the last instruction.
21616 $ac_cs_success || as_fn_exit 1
21618 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21620 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21624 echo "copying header files"
21626 for file in $srcdir/ldns//*.h; do
21627 sh $srcdir/install-sh -m 644 $file ldns/