2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nghttp2 1.41.0.
5 # Report bugs to <t-tujikawa@users.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: t-tujikawa@users.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='nghttp2'
592 PACKAGE_TARNAME='nghttp2'
593 PACKAGE_VERSION='1.41.0'
594 PACKAGE_STRING='nghttp2 1.41.0'
595 PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
645 ENABLE_FAILMALLOC_FALSE
646 ENABLE_FAILMALLOC_TRUE
649 ENABLE_PYTHON_BINDINGS_FALSE
650 ENABLE_PYTHON_BINDINGS_TRUE
651 HAVE_NEVERBLEED_FALSE
655 ENABLE_THIRD_PARTY_FALSE
656 ENABLE_THIRD_PARTY_TRUE
659 ENABLE_EXAMPLES_FALSE
661 ENABLE_ASIO_LIB_FALSE
663 ENABLE_HPACK_TOOLS_FALSE
664 ENABLE_HPACK_TOOLS_TRUE
681 LIBEVENT_OPENSSL_LIBS
682 LIBEVENT_OPENSSL_CFLAGS
746 INSTALL_STRIP_PROGRAM
832 program_transform_name
846 enable_option_checking
855 enable_dependency_tracking
864 enable_python_bindings
881 ac_precious_vars='build_alias
909 LIBEVENT_OPENSSL_CFLAGS
910 LIBEVENT_OPENSSL_LIBS
919 # Initialize some variables set by options.
921 ac_init_version=false
922 ac_unrecognized_opts=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name=s,x,x,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -runstatedir | --runstatedir | --runstatedi | --runstated \
1209 | --runstate | --runstat | --runsta | --runst | --runs \
1210 | --run | --ru | --r)
1211 ac_prev=runstatedir ;;
1212 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214 | --run=* | --ru=* | --r=*)
1215 runstatedir=$ac_optarg ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1236 -site=* | --site=* | --sit=*)
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $? "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir runstatedir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1363 # Be sure to have absolute directory names.
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $? "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures nghttp2 1.41.0 to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/nghttp2]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --program-prefix=PREFIX prepend PREFIX to installed program names
1527 --program-suffix=SUFFIX append SUFFIX to installed program names
1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive ) echo "Configuration of nghttp2 1.41.0:";;
1544 --disable-option-checking ignore unrecognized --enable/--with options
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-dependency-tracking
1553 do not reject slow dependency extractors
1554 --disable-dependency-tracking
1555 speeds up one-time build
1556 --enable-silent-rules less verbose build output (undo: "make V=1")
1557 --disable-silent-rules verbose build output (undo: "make V=0")
1558 --enable-werror Turn on compile time warnings
1559 --enable-debug Turn on debug output
1560 --disable-threads Turn off threading in apps
1561 --enable-app Build applications (nghttp, nghttpd, nghttpx and
1562 h2load) [default=check]
1563 --enable-hpack-tools Build HPACK tools [default=check]
1564 --enable-asio-lib Build C++ libnghttp2_asio library [default=no]
1565 --enable-examples Build examples [default=check]
1566 --enable-python-bindings
1567 Build Python bindings [default=check]
1568 --disable-failmalloc Do not build failmalloc test program
1569 --enable-lib-only Build libnghttp2 only. This is a short hand for
1570 --disable-app --disable-examples
1571 --disable-hpack-tools --disable-python-bindings
1572 --disable-assert turn off assertions
1573 --disable-largefile omit support for large files
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1580 --with-aix-soname=aix|svr4|both
1581 shared library versioning (aka "SONAME") variant to
1582 provide on AIX, [default=aix].
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1585 compiler's sysroot if not specified).
1586 --with-libxml2 Use libxml2 [default=check]
1587 --with-jemalloc Use jemalloc [default=check]
1588 --with-systemd Enable systemd support in nghttpx [default=check]
1589 --with-mruby Use mruby [default=no]
1590 --with-neverbleed Use neverbleed [default=no]
1591 --with-cython=PATH Use cython in given PATH
1592 --with-boost[=ARG] use Boost library from a standard location
1593 (ARG=yes), from the specified location (ARG=<path>),
1594 or disable it (ARG=no) [ARG=yes]
1595 --with-boost-libdir=LIB_DIR
1596 Force given directory for boost libraries. Note that
1597 this will override library path detection, so use
1598 this parameter only if default library detection
1599 fails and you know exactly where your boost
1600 libraries are located.
1601 --with-boost-asio[=special-lib]
1602 use the ASIO library from boost - it is possible to
1603 specify a certain library for the linker e.g.
1604 --with-boost-asio=boost_system-gcc41-mt-1_34
1605 --with-boost-system[=special-lib]
1606 use the System library from boost - it is possible
1607 to specify a certain library for the linker e.g.
1608 --with-boost-system=boost_system-gcc-mt
1609 --with-boost-thread[=special-lib]
1610 use the Thread library from boost - it is possible
1611 to specify a certain library for the linker e.g.
1612 --with-boost-thread=boost_thread-gcc-mt
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1624 User-defined run-time library search path.
1625 CYTHON the Cython executable
1626 CXX C++ compiler command
1627 CXXFLAGS C++ compiler flags
1628 CXXCPP C++ preprocessor
1629 PKG_CONFIG path to pkg-config utility
1631 directories to add to pkg-config's search path
1633 path overriding pkg-config's built-in search path
1634 PYTHON the Python interpreter
1636 The installed Python version to use, for example '2.3'. This
1637 string will be appended to the Python interpreter canonical
1639 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1640 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1642 C compiler flags for CUNIT, overriding pkg-config
1643 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1645 C compiler flags for OPENSSL, overriding pkg-config
1647 linker flags for OPENSSL, overriding pkg-config
1649 C compiler flags for LIBCARES, overriding pkg-config
1651 linker flags for LIBCARES, overriding pkg-config
1652 LIBEVENT_OPENSSL_CFLAGS
1653 C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1654 LIBEVENT_OPENSSL_LIBS
1655 linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1657 C compiler flags for JANSSON, overriding pkg-config
1659 linker flags for JANSSON, overriding pkg-config
1661 C compiler flags for SYSTEMD, overriding pkg-config
1663 linker flags for SYSTEMD, overriding pkg-config
1665 C compiler flags for LIBXML2, overriding pkg-config
1667 linker flags for LIBXML2, overriding pkg-config
1669 Use these variables to override the choices made by `configure' or to help
1670 it to find libraries and programs with nonstandard names/locations.
1672 Report bugs to <t-tujikawa@users.sourceforge.net>.
1677 if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689 # A ".." for each directory in $ac_dir_suffix.
1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696 ac_abs_top_builddir=$ac_pwd
1697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698 # for backward compatibility:
1699 ac_top_builddir=$ac_top_build_prefix
1702 .) # We are building in place.
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
1707 ac_srcdir=$srcdir$ac_dir_suffix;
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1724 $SHELL "$ac_srcdir/configure" --help=recursive
1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1728 cd "$ac_pwd" || { ac_status=$?; break; }
1732 test -n "$ac_init_help" && exit $ac_status
1733 if $ac_init_version; then
1735 nghttp2 configure 1.41.0
1736 generated by GNU Autoconf 2.69
1738 Copyright (C) 2012 Free Software Foundation, Inc.
1739 This configure script is free software; the Free Software Foundation
1740 gives unlimited permission to copy, distribute and modify it.
1745 ## ------------------------ ##
1746 ## Autoconf initialization. ##
1747 ## ------------------------ ##
1749 # ac_fn_c_try_compile LINENO
1750 # --------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1785 } # ac_fn_c_try_compile
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1829 ac_fn_c_check_header_mongrel ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if eval \${$3+:} false; then :
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_header_compiler=yes
1853 ac_header_compiler=no
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867 ac_header_preproc=yes
1869 ac_header_preproc=no
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1875 # So? What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ( $as_echo "## ----------------------------------------------- ##
1895 ## Report this to t-tujikawa@users.sourceforge.net ##
1896 ## ----------------------------------------------- ##"
1897 ) | sed "s/^/$as_me: WARNING: /" >&2
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1905 eval "$3=\$ac_header_compiler"
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_header_mongrel
1915 # ac_fn_c_try_run LINENO
1916 # ----------------------
1917 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1918 # that executables *can* be run.
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_link"
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_link") 2>&5
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1933 { { case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_try") 2>&5
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; }; }; then :
1945 $as_echo "$as_me: program exited with status $ac_status" >&5
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1949 ac_retval=$ac_status
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 as_fn_set_status $ac_retval
1957 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists and can be compiled using the include files in
1960 # INCLUDES, setting the cache variable VAR accordingly.
1961 ac_fn_c_check_header_compile ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1974 if ac_fn_c_try_compile "$LINENO"; then :
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_header_compile
1988 # ac_fn_c_try_link LINENO
1989 # -----------------------
1990 # Try to link conftest.$ac_ext, and return whether this succeeded.
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext conftest$ac_exeext
1995 if { { ac_try="$ac_link"
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>conftest.err
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest$ac_exeext && {
2014 test "$cross_compiling" = yes ||
2015 test -x conftest$ac_exeext
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2024 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2025 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2026 # interfere with the next link command; also delete a directory that is
2027 # left behind by Apple's compiler. We do this before executing the actions.
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_c_try_link
2034 # ac_fn_c_check_func LINENO FUNC VAR
2035 # ----------------------------------
2036 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2037 ac_fn_c_check_func ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2049 #define $2 innocuous_$2
2051 /* System header to define __stub macros and hopefully few prototypes,
2052 which can conflict with char $2 (); below.
2053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2054 <limits.h> exists even on freestanding compilers. */
2057 # include <limits.h>
2059 # include <assert.h>
2064 /* Override any GCC internal prototype to avoid an error.
2065 Use char because int might match the return type of a GCC
2066 builtin and then its argument prototype would still apply. */
2071 /* The GNU C library defines this for functions which it implements
2072 to always fail with ENOSYS. Some functions are actually named
2073 something starting with __ and the normal name is an alias. */
2074 #if defined __stub_$2 || defined __stub___$2
2086 if ac_fn_c_try_link "$LINENO"; then :
2091 rm -f core conftest.err conftest.$ac_objext \
2092 conftest$ac_exeext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_c_check_func
2101 # ac_fn_cxx_try_compile LINENO
2102 # ----------------------------
2103 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_cxx_try_compile ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 rm -f conftest.$ac_objext
2108 if { { ac_try="$ac_compile"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_compile") 2>conftest.err
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && {
2124 test -z "$ac_cxx_werror_flag" ||
2125 test ! -s conftest.err
2126 } && test -s conftest.$ac_objext; then :
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2137 } # ac_fn_cxx_try_compile
2139 # ac_fn_cxx_try_cpp LINENO
2140 # ------------------------
2141 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142 ac_fn_cxx_try_cpp ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if { { ac_try="$ac_cpp conftest.$ac_ext"
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } > conftest.i && {
2161 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2162 test ! -s conftest.err
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 as_fn_set_status $ac_retval
2174 } # ac_fn_cxx_try_cpp
2176 # ac_fn_cxx_try_link LINENO
2177 # -------------------------
2178 # Try to link conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_cxx_try_link ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 rm -f conftest.$ac_objext conftest$ac_exeext
2183 if { { ac_try="$ac_link"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_link") 2>conftest.err
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } && {
2199 test -z "$ac_cxx_werror_flag" ||
2200 test ! -s conftest.err
2201 } && test -s conftest$ac_exeext && {
2202 test "$cross_compiling" = yes ||
2203 test -x conftest$ac_exeext
2207 $as_echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2212 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2213 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2214 # interfere with the next link command; also delete a directory that is
2215 # left behind by Apple's compiler. We do this before executing the actions.
2216 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 as_fn_set_status $ac_retval
2220 } # ac_fn_cxx_try_link
2222 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2223 # -------------------------------------------
2224 # Tests whether TYPE exists after having included INCLUDES, setting cache
2225 # variable VAR accordingly.
2226 ac_fn_c_check_type ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if eval \${$3+:} false; then :
2232 $as_echo_n "(cached) " >&6
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2260 if ac_fn_c_try_compile "$LINENO"; then :
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274 } # ac_fn_c_check_type
2276 # ac_fn_c_find_uintX_t LINENO BITS VAR
2277 # ------------------------------------
2278 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2280 ac_fn_c_find_uintX_t ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2284 $as_echo_n "checking for uint$2_t... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2289 # Order is important - never check a type that is potentially smaller
2290 # than half of the expected target width.
2291 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2292 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2301 return test_array [0];
2307 if ac_fn_c_try_compile "$LINENO"; then :
2312 eval "$3=\$ac_type" ;;
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 if eval test \"x\$"$3"\" = x"no"; then :
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328 } # ac_fn_c_find_uintX_t
2330 # ac_fn_c_find_intX_t LINENO BITS VAR
2331 # -----------------------------------
2332 # Finds a signed integer type with width BITS, setting cache variable VAR
2334 ac_fn_c_find_intX_t ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2338 $as_echo_n "checking for int$2_t... " >&6; }
2339 if eval \${$3+:} false; then :
2340 $as_echo_n "(cached) " >&6
2343 # Order is important - never check a type that is potentially smaller
2344 # than half of the expected target width.
2345 for ac_type in int$2_t 'int' 'long int' \
2346 'long long int' 'short int' 'signed char'; do
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 $ac_includes_default
2350 enum { N = $2 / 2 - 1 };
2354 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2356 return test_array [0];
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $ac_includes_default
2366 enum { N = $2 / 2 - 1 };
2370 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2371 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2373 return test_array [0];
2379 if ac_fn_c_try_compile "$LINENO"; then :
2386 eval "$3=\$ac_type" ;;
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 if eval test \"x\$"$3"\" = x"no"; then :
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2404 } # ac_fn_c_find_intX_t
2406 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2407 # ----------------------------------------------------
2408 # Tries to find if the field MEMBER exists in type AGGR, after including
2409 # INCLUDES, setting cache variable VAR accordingly.
2410 ac_fn_c_check_member ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2414 $as_echo_n "checking for $2.$3... " >&6; }
2415 if eval \${$4+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2431 if ac_fn_c_try_compile "$LINENO"; then :
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2441 if (sizeof ac_aggr.$3)
2447 if ac_fn_c_try_compile "$LINENO"; then :
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 } # ac_fn_c_check_member
2463 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464 # --------------------------------------------
2465 # Tries to find the compile-time value of EXPR in a program that includes
2466 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2468 ac_fn_c_compute_int ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 if test "$cross_compiling" = yes; then
2472 # Depending upon the size, compute the lo and hi bounds.
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2479 static int test_array [1 - 2 * !(($2) >= 0)];
2481 return test_array [0];
2487 if ac_fn_c_try_compile "$LINENO"; then :
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2496 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2498 return test_array [0];
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_hi=$ac_mid; break
2507 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2508 if test $ac_lo -le $ac_mid; then
2512 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2523 static int test_array [1 - 2 * !(($2) < 0)];
2525 return test_array [0];
2531 if ac_fn_c_try_compile "$LINENO"; then :
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2540 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2542 return test_array [0];
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 ac_lo=$ac_mid; break
2551 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2552 if test $ac_mid -le $ac_hi; then
2556 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 # Binary search between lo and hi bounds.
2567 while test "x$ac_lo" != "x$ac_hi"; do
2568 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2575 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2577 return test_array [0];
2583 if ac_fn_c_try_compile "$LINENO"; then :
2586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2598 static long int longval () { return $2; }
2599 static unsigned long int ulongval () { return $2; }
2606 FILE *f = fopen ("conftest.val", "w");
2611 long int i = longval ();
2614 fprintf (f, "%ld", i);
2618 unsigned long int i = ulongval ();
2621 fprintf (f, "%lu", i);
2623 /* Do not output a trailing newline, as this causes \r\n confusion
2624 on some platforms. */
2625 return ferror (f) || fclose (f) != 0;
2631 if ac_fn_c_try_run "$LINENO"; then :
2632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637 conftest.$ac_objext conftest.beam conftest.$ac_ext
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status $ac_retval
2644 } # ac_fn_c_compute_int
2646 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2647 # ---------------------------------------------
2648 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2650 ac_fn_c_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 #ifndef $as_decl_name
2668 (void) $as_decl_use;
2670 (void) $as_decl_name;
2678 if ac_fn_c_try_compile "$LINENO"; then :
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_check_decl
2691 cat >config.log <<_ACEOF
2692 This file contains any messages produced by compilers while
2693 running configure, to aid debugging if configure makes a mistake.
2695 It was created by nghttp2 $as_me 1.41.0, which was
2696 generated by GNU Autoconf 2.69. Invocation command line was
2708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 $as_echo "PATH: $as_dir"
2748 # Keep a trace of the command line.
2749 # Strip out --no-create and --no-recursion so they do not pile up.
2750 # Strip out --silent because we don't want to record it for future runs.
2751 # Also quote any args containing shell meta-characters.
2752 # Make two passes to allow for proper duplicate-argument suppression.
2756 ac_must_keep_next=false
2762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2764 | -silent | --silent | --silen | --sile | --sil)
2767 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2772 as_fn_append ac_configure_args1 " '$ac_arg'"
2773 if test $ac_must_keep_next = true; then
2774 ac_must_keep_next=false # Got value, back to normal.
2777 *=* | --config-cache | -C | -disable-* | --disable-* \
2778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2780 | -with-* | --with-* | -without-* | --without-* | --x)
2781 case "$ac_configure_args0 " in
2782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2785 -* ) ac_must_keep_next=true ;;
2788 as_fn_append ac_configure_args " '$ac_arg'"
2793 { ac_configure_args0=; unset ac_configure_args0;}
2794 { ac_configure_args1=; unset ac_configure_args1;}
2796 # When interrupted or exit'd, cleanup temporary files, and complete
2797 # config.log. We remove comments because anyway the quotes in there
2798 # would cause problems or look ugly.
2799 # WARNING: Use '\'' to represent an apostrophe within the trap.
2800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2801 trap 'exit_status=$?
2802 # Save into config.log some information that might help in debugging.
2806 $as_echo "## ---------------- ##
2807 ## Cache variables. ##
2808 ## ---------------- ##"
2810 # The following way of writing the cache mishandles newlines in values,
2812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2813 eval ac_val=\$$ac_var
2817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2821 _ | IFS | as_nl) ;; #(
2822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2823 *) { eval $ac_var=; unset $ac_var;} ;;
2828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2829 *${as_nl}ac_space=\ *)
2831 "s/'\''/'\''\\\\'\'''\''/g;
2832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2842 $as_echo "## ----------------- ##
2843 ## Output variables. ##
2844 ## ----------------- ##"
2846 for ac_var in $ac_subst_vars
2848 eval ac_val=\$$ac_var
2850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2852 $as_echo "$ac_var='\''$ac_val'\''"
2856 if test -n "$ac_subst_files"; then
2857 $as_echo "## ------------------- ##
2858 ## File substitutions. ##
2859 ## ------------------- ##"
2861 for ac_var in $ac_subst_files
2863 eval ac_val=\$$ac_var
2865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2867 $as_echo "$ac_var='\''$ac_val'\''"
2872 if test -s confdefs.h; then
2873 $as_echo "## ----------- ##
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2929 if test -n "$CONFIG_SITE"; then
2930 # We do not want a PATH search for config.site.
2931 case $CONFIG_SITE in #((
2932 -*) ac_site_file1=./$CONFIG_SITE;;
2933 */*) ac_site_file1=$CONFIG_SITE;;
2934 *) ac_site_file1=./$CONFIG_SITE;;
2936 elif test "x$prefix" != xNONE; then
2937 ac_site_file1=$prefix/share/config.site
2938 ac_site_file2=$prefix/etc/config.site
2940 ac_site_file1=$ac_default_prefix/share/config.site
2941 ac_site_file2=$ac_default_prefix/etc/config.site
2943 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2945 test "x$ac_site_file" = xNONE && continue
2946 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2948 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2949 sed 's/^/| /' "$ac_site_file" >&5
2951 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953 as_fn_error $? "failed to load site script $ac_site_file
2954 See \`config.log' for more details" "$LINENO" 5; }
2958 if test -r "$cache_file"; then
2959 # Some versions of bash will fail to source /dev/null (special files
2960 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2961 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2963 $as_echo "$as_me: loading cache $cache_file" >&6;}
2965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2966 *) . "./$cache_file";;
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2971 $as_echo "$as_me: creating cache $cache_file" >&6;}
2975 # Check that the precious variables saved in the cache have kept the same
2977 ac_cache_corrupted=false
2978 for ac_var in $ac_precious_vars; do
2979 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2980 eval ac_new_set=\$ac_env_${ac_var}_set
2981 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2982 eval ac_new_val=\$ac_env_${ac_var}_value
2983 case $ac_old_set,$ac_new_set in
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2994 if test "x$ac_old_val" != "x$ac_new_val"; then
2995 # differences in whitespace do not lead to failure.
2996 ac_old_val_w=`echo x $ac_old_val`
2997 ac_new_val_w=`echo x $ac_new_val`
2998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3001 ac_cache_corrupted=:
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3005 eval $ac_var=\$ac_old_val
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3008 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3010 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3013 # Pass precious variables to config.status.
3014 if test "$ac_new_set" = set; then
3016 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3017 *) ac_arg=$ac_var=$ac_new_val ;;
3019 case " $ac_configure_args " in
3020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3021 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3025 if $ac_cache_corrupted; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3030 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3032 ## -------------------- ##
3033 ## Main body of script. ##
3034 ## -------------------- ##
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 for ac_dir in . "$srcdir"/.; do
3045 if test -f "$ac_dir/install-sh"; then
3047 ac_install_sh="$ac_aux_dir/install-sh -c"
3049 elif test -f "$ac_dir/install.sh"; then
3051 ac_install_sh="$ac_aux_dir/install.sh -c"
3053 elif test -f "$ac_dir/shtool"; then
3055 ac_install_sh="$ac_aux_dir/shtool install -c"
3059 if test -z "$ac_aux_dir"; then
3060 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
3063 # These three variables are undocumented and unsupported,
3064 # and are intended to be withdrawn in a future Autoconf release.
3065 # They can cause serious problems if a builder's source tree is in a directory
3066 # whose full name contains unusual characters.
3067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3073 ac_config_headers="$ac_config_headers config.h"
3075 # Expand $ac_aux_dir to an absolute path.
3076 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3122 if test -z "$ac_cv_prog_CC"; then
3124 # Extract the first word of "gcc", so it can be a program name with args.
3125 set dummy gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$ac_ct_CC"; then
3132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_CC="gcc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152 if test -n "$ac_ct_CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154 $as_echo "$ac_ct_CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3160 if test "x$ac_ct_CC" = x; then
3163 case $cross_compiling:$ac_tool_warned in
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3175 if test -z "$CC"; then
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}cc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_CC="${ac_tool_prefix}cc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3216 if test -z "$CC"; then
3217 # Extract the first word of "cc", so it can be a program name with args.
3218 set dummy cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3236 ac_prog_rejected=yes
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test $ac_prog_rejected = yes; then
3248 # We found a bogon in the path, so make sure we never use it.
3249 set dummy $ac_cv_prog_CC
3251 if test $# != 0; then
3252 # We chose a different compiler from the bogus one.
3253 # However, it has the same basename, so the bogon will be chosen
3254 # first if we set CC to just the basename; use the full file name.
3256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 for ac_prog in cl.exe
3276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$CC" && break
3316 if test -z "$CC"; then
3318 for ac_prog in cl.exe
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy $ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3325 $as_echo_n "(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 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_CC="$ac_prog"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3350 $as_echo "$ac_ct_CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3357 test -n "$ac_ct_CC" && break
3360 if test "x$ac_ct_CC" = x; then
3363 case $cross_compiling:$ac_tool_warned in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned=yes ;;
3376 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error $? "no acceptable C compiler found in \$PATH
3379 See \`config.log' for more details" "$LINENO" 5; }
3381 # Provide some information about the compiler.
3382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385 for ac_option in --version -v -V -qversion; do
3386 { { ac_try="$ac_compiler $ac_option >&5"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3395 if test -s conftest.err; then
3397 ... rest of stderr output deleted ...
3398 10q' conftest.err >conftest.er1
3399 cat conftest.er1 >&5
3401 rm -f conftest.er1 conftest.err
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3417 ac_clean_files_save=$ac_clean_files
3418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3419 # Try to create an executable without -o first, disregard a.out.
3420 # It will help us diagnose broken compilers, and finding out an intuition
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3423 $as_echo_n "checking whether the C compiler works... " >&6; }
3424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3426 # The possible output files:
3427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3430 for ac_file in $ac_files
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3439 if { { ac_try="$ac_link_default"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_link_default") 2>&5
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3453 # so that the user can short-circuit this test for compilers unknown to
3455 for ac_file in $ac_files ''
3457 test -f "$ac_file" || continue
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3462 # We found the default executable, but exeext='' is most
3466 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3468 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 # We set ac_cv_exeext here because the later test for it is not
3471 # safe: cross compilers may not add the suffix if given an `-o'
3472 # argument, so we may need to know it at that point already.
3473 # Even if this section looks crufty: it has the advantage of
3480 test "$ac_cv_exeext" = no && ac_cv_exeext=
3485 if test -z "$ac_file"; then :
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error 77 "C compiler cannot create executables
3494 See \`config.log' for more details" "$LINENO" 5; }
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3500 $as_echo_n "checking for C compiler default output file name... " >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3502 $as_echo "$ac_file" >&6; }
3503 ac_exeext=$ac_cv_exeext
3505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3506 ac_clean_files=$ac_clean_files_save
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3508 $as_echo_n "checking for suffix of executables... " >&6; }
3509 if { { ac_try="$ac_link"
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link") 2>&5
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3521 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3522 # work properly (i.e., refer to `conftest.exe'), while it won't with
3524 for ac_file in conftest.exe conftest conftest.*; do
3525 test -f "$ac_file" || continue
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3537 See \`config.log' for more details" "$LINENO" 5; }
3539 rm -f conftest conftest$ac_cv_exeext
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3541 $as_echo "$ac_cv_exeext" >&6; }
3543 rm -f conftest.$ac_ext
3544 EXEEXT=$ac_cv_exeext
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3552 FILE *f = fopen ("conftest.out", "w");
3553 return ferror (f) || fclose (f) != 0;
3559 ac_clean_files="$ac_clean_files conftest.out"
3560 # Check that the compiler produces executables we can run. If not, either
3561 # the compiler is broken, or we cross compile.
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563 $as_echo_n "checking whether we are cross compiling... " >&6; }
3564 if test "$cross_compiling" != yes; then
3565 { { ac_try="$ac_link"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link") 2>&5
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }
3576 if { ac_try='./conftest$ac_cv_exeext'
3577 { { case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_try") 2>&5
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; }; then
3589 if test "$cross_compiling" = maybe; then
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "cannot run C compiled programs.
3595 If you meant to cross compile, use \`--host'.
3596 See \`config.log' for more details" "$LINENO" 5; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3601 $as_echo "$cross_compiling" >&6; }
3603 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3604 ac_clean_files=$ac_clean_files_save
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3606 $as_echo_n "checking for suffix of object files... " >&6; }
3607 if ${ac_cv_objext+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3621 rm -f conftest.o conftest.obj
3622 if { { ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compile") 2>&5
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; then :
3633 for ac_file in conftest.o conftest.obj conftest.*; do
3634 test -f "$ac_file" || continue;
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3637 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot compute suffix of object files: cannot compile
3648 See \`config.log' for more details" "$LINENO" 5; }
3650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3653 $as_echo "$ac_cv_objext" >&6; }
3654 OBJEXT=$ac_cv_objext
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3657 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3658 if ${ac_cv_c_compiler_gnu+:} false; then :
3659 $as_echo_n "(cached) " >&6
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3675 if ac_fn_c_try_compile "$LINENO"; then :
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3685 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3686 if test $ac_compiler_gnu = yes; then
3691 ac_test_CFLAGS=${CFLAGS+set}
3692 ac_save_CFLAGS=$CFLAGS
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3694 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3695 if ${ac_cv_prog_cc_g+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 ac_save_c_werror_flag=$ac_c_werror_flag
3699 ac_c_werror_flag=yes
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 if ac_fn_c_try_compile "$LINENO"; then :
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3728 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_c_werror_flag=$ac_save_c_werror_flag
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3744 if ac_fn_c_try_compile "$LINENO"; then :
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3755 $as_echo "$ac_cv_prog_cc_g" >&6; }
3756 if test "$ac_test_CFLAGS" = set; then
3757 CFLAGS=$ac_save_CFLAGS
3758 elif test $ac_cv_prog_cc_g = yes; then
3759 if test "$GCC" = yes; then
3765 if test "$GCC" = yes; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3772 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3773 if ${ac_cv_prog_cc_c89+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 ac_cv_prog_cc_c89=no
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3784 struct buf { int x; };
3785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3786 static char *e (p, i)
3792 static char *f (char * (*g) (char **, int), char **p, ...)
3797 s = g (p, va_arg (v,int));
3802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3803 function prototypes and stuff, but not '\xHH' hex character constants.
3804 These don't provoke an error unfortunately, instead are silently treated
3805 as 'x'. The following induces an error, until -std is added to get
3806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3807 array size at least. It's necessary to write '\x00'==0 to get something
3808 that's true only with -std. */
3809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3812 inside strings and character constants. */
3814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3816 int test (int i, double x);
3817 struct s1 {int (*f) (int a);};
3818 struct s2 {int (*f) (double a);};
3819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3833 CC="$ac_save_CC $ac_arg"
3834 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_cv_prog_cc_c89=$ac_arg
3837 rm -f core conftest.err conftest.$ac_objext
3838 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 rm -f conftest.$ac_ext
3845 case "x$ac_cv_prog_cc_c89" in
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3848 $as_echo "none needed" >&6; } ;;
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;;
3853 CC="$CC $ac_cv_prog_cc_c89"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 if test "x$ac_cv_prog_cc_c89" != xno; then :
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3873 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3874 if ${am_cv_prog_cc_c_o+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3888 # Make sure it works both with $CC and with simple cc.
3889 # Following AC_PROG_CC_C_O, we do the test twice because some
3890 # compilers refuse to overwrite an existing .o file with -o,
3891 # though they will create one.
3892 am_cv_prog_cc_c_o=yes
3894 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3895 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } \
3899 && test -f conftest2.$ac_objext; then
3902 am_cv_prog_cc_c_o=no
3906 rm -f core conftest*
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3910 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3911 if test "$am_cv_prog_cc_c_o" != yes; then
3912 # Losing compiler, so override with the script.
3913 # FIXME: It is wrong to rewrite CC.
3914 # But if we don't then we get into trouble of one sort or another.
3915 # A longer-term fix would be to have automake use am__CC in this case,
3916 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3917 CC="$am_aux_dir/compile $CC"
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3934 # On Suns, sometimes $CPP names a directory.
3935 if test -n "$CPP" && test -d "$CPP"; then
3938 if test -z "$CPP"; then
3939 if ${ac_cv_prog_CPP+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 # Double quotes because CPP needs to be expanded
3943 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3946 for ac_c_preproc_warn_flag in '' yes
3948 # Use a header file that comes with gcc, so configuring glibc
3949 # with a fresh cross-compiler works.
3950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3951 # <limits.h> exists even on freestanding compilers.
3952 # On the NeXT, cc -E runs the code through the compiler's parser,
3953 # not just through cpp. "Syntax error" is here to catch this case.
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3957 # include <limits.h>
3959 # include <assert.h>
3963 if ac_fn_c_try_cpp "$LINENO"; then :
3966 # Broken: fails on valid input.
3969 rm -f conftest.err conftest.i conftest.$ac_ext
3971 # OK, works on sane cases. Now check whether nonexistent headers
3972 # can be detected and how.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <ac_nonexistent.h>
3977 if ac_fn_c_try_cpp "$LINENO"; then :
3978 # Broken: success on invalid input.
3981 # Passes both tests.
3985 rm -f conftest.err conftest.i conftest.$ac_ext
3988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3989 rm -f conftest.i conftest.err conftest.$ac_ext
3990 if $ac_preproc_ok; then :
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4003 $as_echo "$CPP" >&6; }
4005 for ac_c_preproc_warn_flag in '' yes
4007 # Use a header file that comes with gcc, so configuring glibc
4008 # with a fresh cross-compiler works.
4009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4010 # <limits.h> exists even on freestanding compilers.
4011 # On the NeXT, cc -E runs the code through the compiler's parser,
4012 # not just through cpp. "Syntax error" is here to catch this case.
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4016 # include <limits.h>
4018 # include <assert.h>
4022 if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: fails on valid input.
4028 rm -f conftest.err conftest.i conftest.$ac_ext
4030 # OK, works on sane cases. Now check whether nonexistent headers
4031 # can be detected and how.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <ac_nonexistent.h>
4036 if ac_fn_c_try_cpp "$LINENO"; then :
4037 # Broken: success on invalid input.
4040 # Passes both tests.
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.i conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok; then :
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details" "$LINENO" 5; }
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4066 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4067 if ${ac_cv_path_GREP+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 if test -z "$GREP"; then
4071 ac_path_GREP_found=false
4072 # Loop through the user's path and test for each of PROGNAME-LIST
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 test -z "$as_dir" && as_dir=.
4078 for ac_prog in grep ggrep; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4081 as_fn_executable_p "$ac_path_GREP" || continue
4082 # Check for GNU ac_path_GREP and select it if it is found.
4083 # Check for GNU $ac_path_GREP
4084 case `"$ac_path_GREP" --version 2>&1` in
4086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4089 $as_echo_n 0123456789 >"conftest.in"
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 $as_echo 'GREP' >> "conftest.nl"
4096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4098 as_fn_arith $ac_count + 1 && ac_count=$as_val
4099 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_GREP="$ac_path_GREP"
4102 ac_path_GREP_max=$ac_count
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 $ac_path_GREP_found && break 3
4115 if test -z "$ac_cv_path_GREP"; then
4116 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4119 ac_cv_path_GREP=$GREP
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4124 $as_echo "$ac_cv_path_GREP" >&6; }
4125 GREP="$ac_cv_path_GREP"
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4129 $as_echo_n "checking for egrep... " >&6; }
4130 if ${ac_cv_path_EGREP+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4134 then ac_cv_path_EGREP="$GREP -E"
4136 if test -z "$EGREP"; then
4137 ac_path_EGREP_found=false
4138 # Loop through the user's path and test for each of PROGNAME-LIST
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143 test -z "$as_dir" && as_dir=.
4144 for ac_prog in egrep; do
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4147 as_fn_executable_p "$ac_path_EGREP" || continue
4148 # Check for GNU ac_path_EGREP and select it if it is found.
4149 # Check for GNU $ac_path_EGREP
4150 case `"$ac_path_EGREP" --version 2>&1` in
4152 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4155 $as_echo_n 0123456789 >"conftest.in"
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 $as_echo 'EGREP' >> "conftest.nl"
4162 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4164 as_fn_arith $ac_count + 1 && ac_count=$as_val
4165 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_EGREP="$ac_path_EGREP"
4168 ac_path_EGREP_max=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 $ac_path_EGREP_found && break 3
4181 if test -z "$ac_cv_path_EGREP"; then
4182 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185 ac_cv_path_EGREP=$EGREP
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4191 $as_echo "$ac_cv_path_EGREP" >&6; }
4192 EGREP="$ac_cv_path_EGREP"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4196 $as_echo_n "checking for ANSI C header files... " >&6; }
4197 if ${ac_cv_header_stdc+:} false; then :
4198 $as_echo_n "(cached) " >&6
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_header_stdc=yes
4218 ac_cv_header_stdc=no
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 if test $ac_cv_header_stdc = yes; then
4223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 $EGREP "memchr" >/dev/null 2>&1; then :
4233 ac_cv_header_stdc=no
4239 if test $ac_cv_header_stdc = yes; then
4240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "free" >/dev/null 2>&1; then :
4250 ac_cv_header_stdc=no
4256 if test $ac_cv_header_stdc = yes; then
4257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258 if test "$cross_compiling" = yes; then :
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4265 #if ((' ' & 0x0FF) == 0x020)
4266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269 # define ISLOWER(c) \
4270 (('a' <= (c) && (c) <= 'i') \
4271 || ('j' <= (c) && (c) <= 'r') \
4272 || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4281 for (i = 0; i < 256; i++)
4282 if (XOR (islower (i), ISLOWER (i))
4283 || toupper (i) != TOUPPER (i))
4288 if ac_fn_c_try_run "$LINENO"; then :
4291 ac_cv_header_stdc=no
4293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4294 conftest.$ac_objext conftest.beam conftest.$ac_ext
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4300 $as_echo "$ac_cv_header_stdc" >&6; }
4301 if test $ac_cv_header_stdc = yes; then
4303 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4309 inttypes.h stdint.h unistd.h
4311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4315 cat >>confdefs.h <<_ACEOF
4316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4325 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4326 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4333 if test "$MINIX" = yes; then
4335 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4338 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4341 $as_echo "#define _MINIX 1" >>confdefs.h
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4347 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4348 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4354 # define __EXTENSIONS__ 1
4355 $ac_includes_default
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_safe_to_define___extensions__=yes
4367 ac_cv_safe_to_define___extensions__=no
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4372 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4373 test $ac_cv_safe_to_define___extensions__ = yes &&
4374 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4376 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4378 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4380 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4382 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4395 macro_version='2.4.6'
4396 macro_revision='2.4.6'
4410 ltmain=$ac_aux_dir/ltmain.sh
4412 # Make sure we can run config.sub.
4413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4414 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4417 $as_echo_n "checking build system type... " >&6; }
4418 if ${ac_cv_build+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_build_alias=$build_alias
4422 test "x$ac_build_alias" = x &&
4423 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4424 test "x$ac_build_alias" = x &&
4425 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4426 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4431 $as_echo "$ac_cv_build" >&6; }
4432 case $ac_cv_build in
4434 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4437 ac_save_IFS=$IFS; IFS='-'
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4447 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4451 $as_echo_n "checking host system type... " >&6; }
4452 if ${ac_cv_host+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 if test "x$host_alias" = x; then
4456 ac_cv_host=$ac_cv_build
4458 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4464 $as_echo "$ac_cv_host" >&6; }
4467 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4470 ac_save_IFS=$IFS; IFS='-'
4476 # Remember, the first character of IFS is used to create $*,
4477 # except with old shells:
4480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4483 # Backslashify metacharacters that are still active within
4484 # double-quoted strings.
4485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4487 # Same as above, but do not quote variable references.
4488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4490 # Sed substitution to delay expansion of an escaped shell variable in a
4491 # double_quote_subst'ed string.
4492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4494 # Sed substitution to delay expansion of an escaped single quote.
4495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4497 # Sed substitution to avoid accidental globbing in evaled expressions
4498 no_glob_subst='s/\*/\\\*/g'
4500 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4501 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4505 $as_echo_n "checking how to print strings... " >&6; }
4506 # Test print first, because it will be a builtin if present.
4507 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4508 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4510 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4513 # Use this function as a fallback that always works.
4514 func_fallback_echo ()
4516 eval 'cat <<_LTECHO_EOF
4520 ECHO='func_fallback_echo'
4523 # func_echo_all arg...
4524 # Invoke $ECHO with all args, space-separated.
4531 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4532 $as_echo "printf" >&6; } ;;
4533 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4534 $as_echo "print -r" >&6; } ;;
4535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4536 $as_echo "cat" >&6; } ;;
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4553 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4554 if ${ac_cv_path_SED+:} false; then :
4555 $as_echo_n "(cached) " >&6
4557 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4558 for ac_i in 1 2 3 4 5 6 7; do
4559 ac_script="$ac_script$as_nl$ac_script"
4561 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4562 { ac_script=; unset ac_script;}
4563 if test -z "$SED"; then
4564 ac_path_SED_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in sed gsed; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4574 as_fn_executable_p "$ac_path_SED" || continue
4575 # Check for GNU ac_path_SED and select it if it is found.
4576 # Check for GNU $ac_path_SED
4577 case `"$ac_path_SED" --version 2>&1` in
4579 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4582 $as_echo_n 0123456789 >"conftest.in"
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 $as_echo '' >> "conftest.nl"
4589 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591 as_fn_arith $ac_count + 1 && ac_count=$as_val
4592 if test $ac_count -gt ${ac_path_SED_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_SED="$ac_path_SED"
4595 ac_path_SED_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 $ac_path_SED_found && break 3
4608 if test -z "$ac_cv_path_SED"; then
4609 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4617 $as_echo "$ac_cv_path_SED" >&6; }
4618 SED="$ac_cv_path_SED"
4621 test -z "$SED" && SED=sed
4622 Xsed="$SED -e 1s/^X//"
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4635 $as_echo_n "checking for fgrep... " >&6; }
4636 if ${ac_cv_path_FGREP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4639 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4640 then ac_cv_path_FGREP="$GREP -F"
4642 if test -z "$FGREP"; then
4643 ac_path_FGREP_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in fgrep; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4653 as_fn_executable_p "$ac_path_FGREP" || continue
4654 # Check for GNU ac_path_FGREP and select it if it is found.
4655 # Check for GNU $ac_path_FGREP
4656 case `"$ac_path_FGREP" --version 2>&1` in
4658 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4661 $as_echo_n 0123456789 >"conftest.in"
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo 'FGREP' >> "conftest.nl"
4668 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_FGREP="$ac_path_FGREP"
4674 ac_path_FGREP_max=$ac_count
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 $ac_path_FGREP_found && break 3
4687 if test -z "$ac_cv_path_FGREP"; then
4688 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691 ac_cv_path_FGREP=$FGREP
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4697 $as_echo "$ac_cv_path_FGREP" >&6; }
4698 FGREP="$ac_cv_path_FGREP"
4701 test -z "$GREP" && GREP=grep
4721 # Check whether --with-gnu-ld was given.
4722 if test "${with_gnu_ld+set}" = set; then :
4723 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4729 if test yes = "$GCC"; then
4730 # Check if gcc -print-prog-name=ld gives a path.
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4732 $as_echo_n "checking for ld used by $CC... " >&6; }
4735 # gcc leaves a trailing carriage return, which upsets mingw
4736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4741 # Accept absolute paths.
4743 re_direlt='/[^/][^/]*/\.\./'
4744 # Canonicalize the pathname of ld
4745 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4746 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4747 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4749 test -z "$LD" && LD=$ac_prog
4752 # If it fails, then pretend we aren't using GCC.
4756 # If it is relative, then search for the first ld in PATH.
4760 elif test yes = "$with_gnu_ld"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4762 $as_echo_n "checking for GNU ld... " >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4765 $as_echo_n "checking for non-GNU ld... " >&6; }
4767 if ${lt_cv_path_LD+:} false; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -z "$LD"; then
4771 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4774 test -z "$ac_dir" && ac_dir=.
4775 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4776 lt_cv_path_LD=$ac_dir/$ac_prog
4777 # Check to see if the program is GNU ld. I'd rather use --version,
4778 # but apparently some variants of GNU ld only accept -v.
4779 # Break only if it was the GNU/non-GNU ld that we prefer.
4780 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4781 *GNU* | *'with BFD'*)
4782 test no != "$with_gnu_ld" && break
4785 test yes != "$with_gnu_ld" && break
4792 lt_cv_path_LD=$LD # Let the user override the test with a path.
4797 if test -n "$LD"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4799 $as_echo "$LD" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4804 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4806 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4807 if ${lt_cv_prog_gnu_ld+:} false; then :
4808 $as_echo_n "(cached) " >&6
4810 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4811 case `$LD -v 2>&1 </dev/null` in
4812 *GNU* | *'with BFD'*)
4813 lt_cv_prog_gnu_ld=yes
4816 lt_cv_prog_gnu_ld=no
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4821 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4822 with_gnu_ld=$lt_cv_prog_gnu_ld
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4833 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4834 if ${lt_cv_path_NM+:} false; then :
4835 $as_echo_n "(cached) " >&6
4837 if test -n "$NM"; then
4838 # Let the user override the test.
4841 lt_nm_to_check=${ac_tool_prefix}nm
4842 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4843 lt_nm_to_check="$lt_nm_to_check nm"
4845 for lt_tmp_nm in $lt_nm_to_check; do
4846 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4847 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4849 test -z "$ac_dir" && ac_dir=.
4850 tmp_nm=$ac_dir/$lt_tmp_nm
4851 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4852 # Check to see if the nm accepts a BSD-compat flag.
4853 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4854 # nm: unknown option "B" ignored
4855 # Tru64's nm complains that /dev/null is an invalid object file
4856 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4858 mingw*) lt_bad_file=conftest.nm/nofile ;;
4859 *) lt_bad_file=/dev/null ;;
4861 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4862 *$lt_bad_file* | *'Invalid file or object type'*)
4863 lt_cv_path_NM="$tmp_nm -B"
4867 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4869 lt_cv_path_NM="$tmp_nm -p"
4873 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4874 continue # so that we can try to find one that supports BSD flags
4883 : ${lt_cv_path_NM=no}
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4887 $as_echo "$lt_cv_path_NM" >&6; }
4888 if test no != "$lt_cv_path_NM"; then
4891 # Didn't find any BSD compatible name lister, look for dumpbin.
4892 if test -n "$DUMPBIN"; then :
4893 # Let the user override the test.
4895 if test -n "$ac_tool_prefix"; then
4896 for ac_prog in dumpbin "link -dump"
4898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_DUMPBIN+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 if test -n "$DUMPBIN"; then
4906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 DUMPBIN=$ac_cv_prog_DUMPBIN
4926 if test -n "$DUMPBIN"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4928 $as_echo "$DUMPBIN" >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4935 test -n "$DUMPBIN" && break
4938 if test -z "$DUMPBIN"; then
4939 ac_ct_DUMPBIN=$DUMPBIN
4940 for ac_prog in dumpbin "link -dump"
4942 # Extract the first word of "$ac_prog", so it can be a program name with args.
4943 set dummy $ac_prog; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if test -n "$ac_ct_DUMPBIN"; then
4950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4970 if test -n "$ac_ct_DUMPBIN"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4972 $as_echo "$ac_ct_DUMPBIN" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4979 test -n "$ac_ct_DUMPBIN" && break
4982 if test "x$ac_ct_DUMPBIN" = x; then
4985 case $cross_compiling:$ac_tool_warned in
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989 ac_tool_warned=yes ;;
4991 DUMPBIN=$ac_ct_DUMPBIN
4995 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4997 DUMPBIN="$DUMPBIN -symbols -headers"
5005 if test : != "$DUMPBIN"; then
5009 test -z "$NM" && NM=nm
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5017 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5018 if ${lt_cv_nm_interface+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 lt_cv_nm_interface="BSD nm"
5022 echo "int some_variable = 0;" > conftest.$ac_ext
5023 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5024 (eval "$ac_compile" 2>conftest.err)
5025 cat conftest.err >&5
5026 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5027 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5028 cat conftest.err >&5
5029 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5030 cat conftest.out >&5
5031 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5032 lt_cv_nm_interface="MS dumpbin"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5037 $as_echo "$lt_cv_nm_interface" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5040 $as_echo_n "checking whether ln -s works... " >&6; }
5042 if test "$LN_S" = "ln -s"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5044 $as_echo "yes" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5047 $as_echo "no, using $LN_S" >&6; }
5050 # find the maximum length of command line arguments
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5052 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5053 if ${lt_cv_sys_max_cmd_len+:} false; then :
5054 $as_echo_n "(cached) " >&6
5061 # On DJGPP, this test can blow up pretty badly due to problems in libc
5062 # (any single argument exceeding 2000 bytes causes a buffer overrun
5063 # during glob expansion). Even if it were fixed, the result of this
5064 # check would be larger than it should be.
5065 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5069 # Under GNU Hurd, this test is not required because there is
5070 # no limit to the length of command line arguments.
5071 # Libtool will interpret -1 as no limit whatsoever
5072 lt_cv_sys_max_cmd_len=-1;
5075 cygwin* | mingw* | cegcc*)
5076 # On Win9x/ME, this test blows up -- it succeeds, but takes
5077 # about 5 minutes as the teststring grows exponentially.
5078 # Worse, since 9x/ME are not pre-emptively multitasking,
5079 # you end up with a "frozen" computer, even though with patience
5080 # the test eventually succeeds (with a max line length of 256k).
5081 # Instead, let's just punt: use the minimum linelength reported by
5082 # all of the supported platforms: 8192 (on NT/2K/XP).
5083 lt_cv_sys_max_cmd_len=8192;
5087 # On MiNT this can take a long time and run out of memory.
5088 lt_cv_sys_max_cmd_len=8192;
5092 # On AmigaOS with pdksh, this test takes hours, literally.
5093 # So we just punt and use a minimum line length of 8192.
5094 lt_cv_sys_max_cmd_len=8192;
5097 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5098 # This has been around since 386BSD, at least. Likely further.
5099 if test -x /sbin/sysctl; then
5100 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5101 elif test -x /usr/sbin/sysctl; then
5102 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5104 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5106 # And add a safety zone
5107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5112 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5113 lt_cv_sys_max_cmd_len=196608
5117 # The test takes a long time on OS/2.
5118 lt_cv_sys_max_cmd_len=8192
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5135 lt_cv_sys_max_cmd_len=102400
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5142 lt_cv_sys_max_cmd_len=32768
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len" && \
5148 test undefined != "$lt_cv_sys_max_cmd_len"; then
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152 # Make teststring a little bigger before we do anything with it.
5153 # a 1K string should be a reasonable start.
5154 for i in 1 2 3 4 5 6 7 8; do
5155 teststring=$teststring$teststring
5157 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5158 # If test is not a shell built-in, we'll probably end up computing a
5159 # maximum length that is only half of the actual maximum length, but
5161 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5162 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5163 test 17 != "$i" # 1/2 MB should be enough
5166 teststring=$teststring$teststring
5168 # Only check the string length outside the loop.
5169 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5171 # Add a significant safety factor because C++ compilers can tack on
5172 # massive amounts of additional arguments before passing them to the
5173 # linker. It appears as though 1/2 is a usable value.
5174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5181 if test -n "$lt_cv_sys_max_cmd_len"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5183 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5186 $as_echo "none" >&6; }
5188 max_cmd_len=$lt_cv_sys_max_cmd_len
5199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5209 # test EBCDIC or ASCII
5210 case `echo X|tr X '\101'` in
5211 A) # ASCII based system
5212 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5213 lt_SP2NL='tr \040 \012'
5214 lt_NL2SP='tr \015\012 \040\040'
5216 *) # EBCDIC based system
5217 lt_SP2NL='tr \100 \n'
5218 lt_NL2SP='tr \r\n \100\100'
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5231 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5232 if ${lt_cv_to_host_file_cmd+:} false; then :
5233 $as_echo_n "(cached) " >&6
5238 *-*-mingw* ) # actually msys
5239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5242 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5244 * ) # otherwise, assume *nix
5245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5251 *-*-mingw* ) # actually msys
5252 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5255 lt_cv_to_host_file_cmd=func_convert_file_noop
5257 * ) # otherwise, assume *nix
5258 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5262 * ) # unhandled hosts (and "normal" native builds)
5263 lt_cv_to_host_file_cmd=func_convert_file_noop
5269 to_host_file_cmd=$lt_cv_to_host_file_cmd
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5271 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5278 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5279 if ${lt_cv_to_tool_file_cmd+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 #assume ordinary cross tools, or native build.
5283 lt_cv_to_tool_file_cmd=func_convert_file_noop
5287 *-*-mingw* ) # actually msys
5288 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5296 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5298 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5305 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5306 if ${lt_cv_ld_reload_flag+:} false; then :
5307 $as_echo_n "(cached) " >&6
5309 lt_cv_ld_reload_flag='-r'
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5312 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5313 reload_flag=$lt_cv_ld_reload_flag
5314 case $reload_flag in
5316 *) reload_flag=" $reload_flag" ;;
5318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5320 cygwin* | mingw* | pw32* | cegcc*)
5321 if test yes != "$GCC"; then
5326 if test yes = "$GCC"; then
5327 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_OBJDUMP+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -n "$OBJDUMP"; then
5351 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 OBJDUMP=$ac_cv_prog_OBJDUMP
5371 if test -n "$OBJDUMP"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5373 $as_echo "$OBJDUMP" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5381 if test -z "$ac_cv_prog_OBJDUMP"; then
5382 ac_ct_OBJDUMP=$OBJDUMP
5383 # Extract the first word of "objdump", so it can be a program name with args.
5384 set dummy objdump; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$ac_ct_OBJDUMP"; then
5391 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5411 if test -n "$ac_ct_OBJDUMP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5413 $as_echo "$ac_ct_OBJDUMP" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5419 if test "x$ac_ct_OBJDUMP" = x; then
5422 case $cross_compiling:$ac_tool_warned in
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5428 OBJDUMP=$ac_ct_OBJDUMP
5431 OBJDUMP="$ac_cv_prog_OBJDUMP"
5434 test -z "$OBJDUMP" && OBJDUMP=objdump
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5445 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5446 if ${lt_cv_deplibs_check_method+:} false; then :
5447 $as_echo_n "(cached) " >&6
5449 lt_cv_file_magic_cmd='$MAGIC_CMD'
5450 lt_cv_file_magic_test_file=
5451 lt_cv_deplibs_check_method='unknown'
5452 # Need to set the preceding variable on all platforms that support
5453 # interlibrary dependencies.
5454 # 'none' -- dependencies not supported.
5455 # 'unknown' -- same as none, but documents that we really don't know.
5456 # 'pass_all' -- all dependencies passed with no checks.
5457 # 'test_compile' -- check by making test program.
5458 # 'file_magic [[regex]]' -- check by looking for files in library path
5459 # that responds to the $file_magic_cmd with a given extended regex.
5460 # If you have 'file' or equivalent on your system and you're not sure
5461 # whether 'pass_all' will *always* work, you probably want this one.
5465 lt_cv_deplibs_check_method=pass_all
5469 lt_cv_deplibs_check_method=pass_all
5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5474 lt_cv_file_magic_cmd='/usr/bin/file -L'
5475 lt_cv_file_magic_test_file=/shlib/libc.so
5479 # func_win32_libid is a shell function defined in ltmain.sh
5480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5481 lt_cv_file_magic_cmd='func_win32_libid'
5485 # Base MSYS/MinGW do not provide the 'file' command needed by
5486 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5487 # unless we find 'file', for example because we are cross-compiling.
5488 if ( file / ) >/dev/null 2>&1; then
5489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490 lt_cv_file_magic_cmd='func_win32_libid'
5492 # Keep this pattern in sync with the one in func_win32_libid.
5493 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5494 lt_cv_file_magic_cmd='$OBJDUMP -f'
5499 # use the weaker test based on 'objdump'. See mingw*.
5500 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5501 lt_cv_file_magic_cmd='$OBJDUMP -f'
5504 darwin* | rhapsody*)
5505 lt_cv_deplibs_check_method=pass_all
5508 freebsd* | dragonfly*)
5509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5512 # Not sure whether the presence of OpenBSD here was a mistake.
5513 # Let's accept both of them until this is cleared up.
5514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5515 lt_cv_file_magic_cmd=/usr/bin/file
5516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520 lt_cv_deplibs_check_method=pass_all
5525 lt_cv_deplibs_check_method=pass_all
5528 hpux10.20* | hpux11*)
5529 lt_cv_file_magic_cmd=/usr/bin/file
5532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5533 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5536 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]'
5537 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5541 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5547 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5551 irix5* | irix6* | nonstopux*)
5553 *-32|*"-32 ") libmagic=32-bit;;
5554 *-n32|*"-n32 ") libmagic=N32;;
5555 *-64|*"-64 ") libmagic=64-bit;;
5556 *) libmagic=never-match;;
5558 lt_cv_deplibs_check_method=pass_all
5561 # This must be glibc/ELF.
5562 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5563 lt_cv_deplibs_check_method=pass_all
5566 netbsd* | netbsdelf*-gnu)
5567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5576 lt_cv_file_magic_cmd=/usr/bin/file
5577 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5581 lt_cv_deplibs_check_method=pass_all
5585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5592 osf3* | osf4* | osf5*)
5593 lt_cv_deplibs_check_method=pass_all
5597 lt_cv_deplibs_check_method=pass_all
5601 lt_cv_deplibs_check_method=pass_all
5604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5605 lt_cv_deplibs_check_method=pass_all
5609 case $host_vendor in
5611 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]'
5612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5615 lt_cv_deplibs_check_method=pass_all
5618 lt_cv_file_magic_cmd='/bin/file'
5619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5622 lt_cv_file_magic_cmd='/bin/file'
5623 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5624 lt_cv_file_magic_test_file=/lib/libc.so
5627 lt_cv_deplibs_check_method=pass_all
5630 lt_cv_deplibs_check_method=pass_all
5636 lt_cv_deplibs_check_method=pass_all
5639 lt_cv_deplibs_check_method=pass_all
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5645 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5649 if test "$build" = "$host"; then
5652 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5655 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5661 file_magic_cmd=$lt_cv_file_magic_cmd
5662 deplibs_check_method=$lt_cv_deplibs_check_method
5663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_DLLTOOL+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 if test -n "$DLLTOOL"; then
5695 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 DLLTOOL=$ac_cv_prog_DLLTOOL
5715 if test -n "$DLLTOOL"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5717 $as_echo "$DLLTOOL" >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5725 if test -z "$ac_cv_prog_DLLTOOL"; then
5726 ac_ct_DLLTOOL=$DLLTOOL
5727 # Extract the first word of "dlltool", so it can be a program name with args.
5728 set dummy dlltool; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$ac_ct_DLLTOOL"; then
5735 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5755 if test -n "$ac_ct_DLLTOOL"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5757 $as_echo "$ac_ct_DLLTOOL" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5763 if test "x$ac_ct_DLLTOOL" = x; then
5766 case $cross_compiling:$ac_tool_warned in
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5772 DLLTOOL=$ac_ct_DLLTOOL
5775 DLLTOOL="$ac_cv_prog_DLLTOOL"
5778 test -z "$DLLTOOL" && DLLTOOL=dlltool
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5790 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5791 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5792 $as_echo_n "(cached) " >&6
5794 lt_cv_sharedlib_from_linklib_cmd='unknown'
5797 cygwin* | mingw* | pw32* | cegcc*)
5798 # two different shell functions defined in ltmain.sh;
5799 # decide which one to use based on capabilities of $DLLTOOL
5800 case `$DLLTOOL --help 2>&1` in
5801 *--identify-strict*)
5802 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5805 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5810 # fallback: assume linklib IS sharedlib
5811 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5817 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5818 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5819 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5827 if test -n "$ac_tool_prefix"; then
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_AR+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$AR"; then
5838 ac_cv_prog_AR="$AR" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 if test -n "$AR"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5860 $as_echo "$AR" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5867 test -n "$AR" && break
5870 if test -z "$AR"; then
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 if test -n "$ac_ct_AR"; then
5882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_AR="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5902 if test -n "$ac_ct_AR"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5904 $as_echo "$ac_ct_AR" >&6; }
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5911 test -n "$ac_ct_AR" && break
5914 if test "x$ac_ct_AR" = x; then
5917 case $cross_compiling:$ac_tool_warned in
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5941 $as_echo_n "checking for archiver @FILE support... " >&6; }
5942 if ${lt_cv_ar_at_file+:} false; then :
5943 $as_echo_n "(cached) " >&6
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958 echo conftest.$ac_objext > conftest.lst
5959 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5961 (eval $lt_ar_try) 2>&5
5963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5964 test $ac_status = 0; }
5965 if test 0 -eq "$ac_status"; then
5966 # Ensure the archiver fails upon bogus file names.
5967 rm -f conftest.$ac_objext libconftest.a
5968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5969 (eval $lt_ar_try) 2>&5
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }
5973 if test 0 -ne "$ac_status"; then
5977 rm -f conftest.* libconftest.a
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5984 $as_echo "$lt_cv_ar_at_file" >&6; }
5986 if test no = "$lt_cv_ar_at_file"; then
5989 archiver_list_spec=$lt_cv_ar_at_file
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_STRIP+:} false; then :
6004 $as_echo_n "(cached) " >&6
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6044 $as_echo_n "(cached) " >&6
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6078 case $cross_compiling:$ac_tool_warned in
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6087 STRIP="$ac_cv_prog_STRIP"
6090 test -z "$STRIP" && STRIP=:
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_RANLIB+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_RANLIB" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6183 RANLIB=$ac_ct_RANLIB
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 test -z "$RANLIB" && RANLIB=:
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6240 for ac_prog in gawk mawk nawk awk
6242 # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_AWK+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$AWK"; then
6250 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AWK="$ac_prog"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 if test -n "$AWK"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6272 $as_echo "$AWK" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6279 test -n "$AWK" && break
6300 # If no C compiler was specified, use CC.
6303 # If no C compiler flags were specified, use CFLAGS.
6304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6306 # Allow CC to be a program name with arguments.
6310 # Check for command to grab the raw symbol name followed by C symbol from nm.
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6312 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6313 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6314 $as_echo_n "(cached) " >&6
6317 # These are sane defaults that work on at least a few old systems.
6318 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6320 # Character class describing NM global symbol codes.
6321 symcode='[BCDEGRST]'
6323 # Regexp to match symbols that can be accessed directly from C.
6324 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6326 # Define system-specific variables.
6331 cygwin* | mingw* | pw32* | cegcc*)
6332 symcode='[ABCDGISTW]'
6335 if test ia64 = "$host_cpu"; then
6336 symcode='[ABCDEGRST]'
6340 symcode='[BCDEGRST]'
6343 symcode='[BCDEGQRST]'
6354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6362 # If we're using GNU nm, then use its standard symbol codes.
6363 case `$NM -V 2>&1` in
6364 *GNU* | *'with BFD'*)
6365 symcode='[ABCDGIRSTW]' ;;
6368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6369 # Gets list of data symbols to import.
6370 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6371 # Adjust the below global symbol transforms to fixup imported variables.
6372 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6373 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6374 lt_c_name_lib_hook="\
6375 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6376 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6378 # Disable hooks by default.
6379 lt_cv_sys_global_symbol_to_import=
6385 # Transform an extracted symbol line into a proper C declaration.
6386 # Some systems (esp. on ia64) link data and code symbols differently,
6387 # so use this general approach.
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6390 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6391 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6396 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6397 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6399 # Transform an extracted symbol line into symbol name with lib prefix and
6401 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6402 $lt_c_name_lib_hook\
6403 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6404 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6405 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6407 # Handle CRLF in mingw tool chain
6411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415 # Try without a prefix underscore, then with it.
6416 for ac_symprfx in "" "_"; do
6418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6419 symxfrm="\\1 $ac_symprfx\\2 \\2"
6421 # Write the raw and C identifiers.
6422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423 # Fake it for dumpbin and say T for any non-static function,
6424 # D for any global variable and I for any imported variable.
6425 # Also find C++ and __fastcall symbols from MSVC++,
6426 # which start with @ or ?.
6427 lt_cv_sys_global_symbol_pipe="$AWK '"\
6428 " {last_section=section; section=\$ 3};"\
6429 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6430 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6431 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6432 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6433 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6434 " \$ 0!~/External *\|/{next};"\
6435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6436 " {if(hide[section]) next};"\
6437 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6438 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6439 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6440 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6441 " ' prfx=^$ac_symprfx"
6443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6445 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6447 # Check to see that the pipe works correctly.
6451 cat > conftest.$ac_ext <<_LT_EOF
6456 void nm_test_func(void);
6457 void nm_test_func(void){}
6461 int main(){nm_test_var='a';nm_test_func();return(0);}
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 # Now try to grab the symbols.
6471 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6472 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6473 # Try sorting and uniquifying the output.
6474 if sort "$nlist" | uniq > "$nlist"T; then
6475 mv -f "$nlist"T "$nlist"
6480 # Make sure that we snagged all the symbols we need.
6481 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483 cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6485 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6486 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6487 relocations are performed -- see ld's documentation on pseudo-relocs. */
6488 # define LT_DLSYM_CONST
6489 #elif defined __osf__
6490 /* This system does not cope well with relocations in const data. */
6491 # define LT_DLSYM_CONST
6493 # define LT_DLSYM_CONST const
6501 # Now generate the symbol file.
6502 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6504 cat <<_LT_EOF >> conftest.$ac_ext
6506 /* The mapping between symbol names and symbols. */
6507 LT_DLSYM_CONST struct {
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6513 { "@PROGRAM@", (void *) 0 },
6515 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516 cat <<\_LT_EOF >> conftest.$ac_ext
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523 return lt__PROGRAM__LTX_preloaded_symbols;
6531 # Now try linking the two files.
6532 mv conftest.$ac_objext conftstm.$ac_objext
6533 lt_globsym_save_LIBS=$LIBS
6534 lt_globsym_save_CFLAGS=$CFLAGS
6535 LIBS=conftstm.$ac_objext
6536 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538 (eval $ac_link) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6544 LIBS=$lt_globsym_save_LIBS
6545 CFLAGS=$lt_globsym_save_CFLAGS
6547 echo "cannot find nm_test_func in $nlist" >&5
6550 echo "cannot find nm_test_var in $nlist" >&5
6553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6556 echo "$progname: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 rm -rf conftest* conftst*
6561 # Do not use the global_symbol_pipe unless it works.
6562 if test yes = "$pipe_works"; then
6565 lt_cv_sys_global_symbol_pipe=
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572 lt_cv_sys_global_symbol_to_cdecl=
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584 nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586 nm_file_list_spec='@'
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6626 $as_echo_n "checking for sysroot... " >&6; }
6628 # Check whether --with-sysroot was given.
6629 if test "${with_sysroot+set}" = set; then :
6630 withval=$with_sysroot;
6637 case $with_sysroot in #(
6639 if test yes = "$GCC"; then
6640 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6644 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6650 $as_echo "$with_sysroot" >&6; }
6651 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6656 $as_echo "${lt_sysroot:-no}" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6663 $as_echo_n "checking for a working dd... " >&6; }
6664 if ${ac_cv_path_lt_DD+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 printf 0123456789abcdef0123456789abcdef >conftest.i
6668 cat conftest.i conftest.i >conftest2.i
6670 if test -z "$lt_DD"; then
6671 ac_path_lt_DD_found=false
6672 # Loop through the user's path and test for each of PROGNAME-LIST
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_prog in dd; do
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6681 as_fn_executable_p "$ac_path_lt_DD" || continue
6682 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6683 cmp -s conftest.i conftest.out \
6684 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6686 $ac_path_lt_DD_found && break 3
6691 if test -z "$ac_cv_path_lt_DD"; then
6695 ac_cv_path_lt_DD=$lt_DD
6698 rm -f conftest.i conftest2.i conftest.out
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6701 $as_echo "$ac_cv_path_lt_DD" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6705 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6706 if ${lt_cv_truncate_bin+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 printf 0123456789abcdef0123456789abcdef >conftest.i
6710 cat conftest.i conftest.i >conftest2.i
6712 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6713 cmp -s conftest.i conftest.out \
6714 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6716 rm -f conftest.i conftest2.i conftest.out
6717 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6720 $as_echo "$lt_cv_truncate_bin" >&6; }
6728 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6731 for cc_temp in $*""; do
6733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6739 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6742 # Check whether --enable-libtool-lock was given.
6743 if test "${enable_libtool_lock+set}" = set; then :
6744 enableval=$enable_libtool_lock;
6747 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6749 # Some flags need to be propagated to the compiler or linker for good
6753 # Find out what ABI is being produced by ac_compile, and set mode
6754 # options accordingly.
6755 echo 'int i;' > conftest.$ac_ext
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 case `/usr/bin/file conftest.$ac_objext` in
6773 # Find out what ABI is being produced by ac_compile, and set linker
6774 # options accordingly.
6775 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 if test yes = "$lt_cv_prog_gnu_ld"; then
6782 case `/usr/bin/file conftest.$ac_objext` in
6784 LD="${LD-ld} -melf32bsmip"
6787 LD="${LD-ld} -melf32bmipn32"
6790 LD="${LD-ld} -melf64bmip"
6794 case `/usr/bin/file conftest.$ac_objext` in
6811 # Find out what ABI is being produced by ac_compile, and set linker
6812 # options accordingly.
6813 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6815 (eval $ac_compile) 2>&5
6817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6818 test $ac_status = 0; }; then
6820 case `/usr/bin/file conftest.$ac_objext` in
6828 case `/usr/bin/file conftest.$ac_objext` in
6830 emul="${emul}btsmip"
6833 emul="${emul}ltsmip"
6836 case `/usr/bin/file conftest.$ac_objext` in
6841 LD="${LD-ld} -m $emul"
6846 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6847 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6848 # Find out what ABI is being produced by ac_compile, and set linker
6849 # options accordingly. Note that the listed cases only cover the
6850 # situations where additional linker options are needed (such as when
6851 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6852 # vice versa); the common cases where no linker options are needed do
6853 # not appear in the list.
6854 echo 'int i;' > conftest.$ac_ext
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856 (eval $ac_compile) 2>&5
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
6860 case `/usr/bin/file conftest.o` in
6863 x86_64-*kfreebsd*-gnu)
6864 LD="${LD-ld} -m elf_i386_fbsd"
6867 case `/usr/bin/file conftest.o` in
6869 LD="${LD-ld} -m elf32_x86_64"
6872 LD="${LD-ld} -m elf_i386"
6876 powerpc64le-*linux*)
6877 LD="${LD-ld} -m elf32lppclinux"
6880 LD="${LD-ld} -m elf32ppclinux"
6883 LD="${LD-ld} -m elf_s390"
6886 LD="${LD-ld} -m elf32_sparc"
6892 x86_64-*kfreebsd*-gnu)
6893 LD="${LD-ld} -m elf_x86_64_fbsd"
6896 LD="${LD-ld} -m elf_x86_64"
6899 LD="${LD-ld} -m elf64lppc"
6902 LD="${LD-ld} -m elf64ppc"
6904 s390*-*linux*|s390*-*tpf*)
6905 LD="${LD-ld} -m elf64_s390"
6908 LD="${LD-ld} -m elf64_sparc"
6918 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6920 CFLAGS="$CFLAGS -belf"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6923 if ${lt_cv_cc_needs_belf+:} false; then :
6924 $as_echo_n "(cached) " >&6
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 lt_cv_cc_needs_belf=yes
6946 lt_cv_cc_needs_belf=no
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6959 if test yes != "$lt_cv_cc_needs_belf"; then
6960 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6965 # Find out what ABI is being produced by ac_compile, and set linker
6966 # options accordingly.
6967 echo 'int i;' > conftest.$ac_ext
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969 (eval $ac_compile) 2>&5
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; then
6973 case `/usr/bin/file conftest.o` in
6975 case $lt_cv_prog_gnu_ld in
6978 i?86-*-solaris*|x86_64-*-solaris*)
6979 LD="${LD-ld} -m elf_x86_64"
6982 LD="${LD-ld} -m elf64_sparc"
6985 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6986 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6991 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7003 need_locks=$enable_libtool_lock
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}mt; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7011 $as_echo_n "(cached) " >&6
7013 if test -n "$MANIFEST_TOOL"; then
7014 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7034 if test -n "$MANIFEST_TOOL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7036 $as_echo "$MANIFEST_TOOL" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7044 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7045 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7046 # Extract the first word of "mt", so it can be a program name with args.
7047 set dummy mt; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7051 $as_echo_n "(cached) " >&6
7053 if test -n "$ac_ct_MANIFEST_TOOL"; then
7054 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7074 if test -n "$ac_ct_MANIFEST_TOOL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7076 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7082 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7085 case $cross_compiling:$ac_tool_warned in
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7091 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7094 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7097 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7099 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7100 if ${lt_cv_path_mainfest_tool+:} false; then :
7101 $as_echo_n "(cached) " >&6
7103 lt_cv_path_mainfest_tool=no
7104 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7105 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7106 cat conftest.err >&5
7107 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7108 lt_cv_path_mainfest_tool=yes
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7113 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7114 if test yes != "$lt_cv_path_mainfest_tool"; then
7124 rhapsody* | darwin*)
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$DSYMUTIL"; then
7134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165 ac_ct_DSYMUTIL=$DSYMUTIL
7166 # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7171 $as_echo_n "(cached) " >&6
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7202 if test "x$ac_ct_DSYMUTIL" = x; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7211 DSYMUTIL=$ac_ct_DSYMUTIL
7214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_NMEDIT+:} false; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$NMEDIT"; then
7226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257 ac_ct_NMEDIT=$NMEDIT
7258 # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -n "$ac_ct_NMEDIT"; then
7266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$ac_ct_NMEDIT" = x; then
7297 case $cross_compiling:$ac_tool_warned in
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7303 NMEDIT=$ac_ct_NMEDIT
7306 NMEDIT="$ac_cv_prog_NMEDIT"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_LIPO+:} false; then :
7315 $as_echo_n "(cached) " >&6
7317 if test -n "$LIPO"; then
7318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test -z "$ac_cv_prog_LIPO"; then
7350 # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_LIPO"; then
7358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_LIPO="lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7386 if test "x$ac_ct_LIPO" = x; then
7389 case $cross_compiling:$ac_tool_warned in
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7398 LIPO="$ac_cv_prog_LIPO"
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OTOOL+:} false; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$OTOOL"; then
7410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OTOOL"; then
7442 # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$ac_ct_OTOOL"; then
7450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_OTOOL="otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OTOOL" = x; then
7481 case $cross_compiling:$ac_tool_warned in
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7490 OTOOL="$ac_cv_prog_OTOOL"
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_OTOOL64+:} false; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$OTOOL64"; then
7502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533 ac_ct_OTOOL64=$OTOOL64
7534 # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$ac_ct_OTOOL64"; then
7542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_ac_ct_OTOOL64="otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7570 if test "x$ac_ct_OTOOL64" = x; then
7573 case $cross_compiling:$ac_tool_warned in
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7579 OTOOL64=$ac_ct_OTOOL64
7582 OTOOL64="$ac_cv_prog_OTOOL64"
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if ${lt_cv_apple_cc_single_mod+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 lt_cv_apple_cc_single_mod=no
7617 if test -z "$LT_MULTI_MODULE"; then
7618 # By default we will add the -single_module flag. You can override
7619 # by either setting the environment variable LT_MULTI_MODULE
7620 # non-empty at configure time, or by adding -multi_module to the
7622 rm -rf libconftest.dylib*
7623 echo "int foo(void){return 1;}" > conftest.c
7624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7629 # If there is a non-empty error log, and "single_module"
7630 # appears in it, assume the flag caused a linker warning
7631 if test -s conftest.err && $GREP single_module conftest.err; then
7632 cat conftest.err >&5
7633 # Otherwise, if the output was created with a 0 exit code from
7634 # the compiler, it worked.
7635 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7636 lt_cv_apple_cc_single_mod=yes
7638 cat conftest.err >&5
7640 rm -rf libconftest.dylib*
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7645 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7648 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7649 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 lt_cv_ld_exported_symbols_list=no
7653 save_LDFLAGS=$LDFLAGS
7654 echo "_main" > conftest.sym
7655 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7667 if ac_fn_c_try_link "$LINENO"; then :
7668 lt_cv_ld_exported_symbols_list=yes
7670 lt_cv_ld_exported_symbols_list=no
7672 rm -f core conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LDFLAGS=$save_LDFLAGS
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7678 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7681 $as_echo_n "checking for -force_load linker flag... " >&6; }
7682 if ${lt_cv_ld_force_load+:} false; then :
7683 $as_echo_n "(cached) " >&6
7685 lt_cv_ld_force_load=no
7686 cat > conftest.c << _LT_EOF
7687 int forced_loaded() { return 2;}
7689 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7690 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7691 echo "$AR cr libconftest.a conftest.o" >&5
7692 $AR cr libconftest.a conftest.o 2>&5
7693 echo "$RANLIB libconftest.a" >&5
7694 $RANLIB libconftest.a 2>&5
7695 cat > conftest.c << _LT_EOF
7696 int main() { return 0;}
7698 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7699 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7701 if test -s conftest.err && $GREP force_load conftest.err; then
7702 cat conftest.err >&5
7703 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7704 lt_cv_ld_force_load=yes
7706 cat conftest.err >&5
7708 rm -f conftest.err libconftest.a conftest conftest.c
7709 rm -rf conftest.dSYM
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7713 $as_echo "$lt_cv_ld_force_load" >&6; }
7715 rhapsody* | darwin1.[012])
7716 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7718 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7719 darwin*) # darwin 5.x on
7720 # if running on 10.5 or later, the deployment target defaults
7721 # to the OS version, if on x86, and 10.4, the deployment
7722 # target defaults to 10.4. Don't you love it?
7723 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7724 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7725 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7727 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7729 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7733 if test yes = "$lt_cv_apple_cc_single_mod"; then
7734 _lt_dar_single_mod='$single_module'
7736 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7737 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7739 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7741 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7742 _lt_dsymutil='~$DSYMUTIL $lib || :'
7749 # func_munge_path_list VARIABLE PATH
7750 # -----------------------------------
7751 # VARIABLE is name of variable containing _space_ separated list of
7752 # directories to be munged by the contents of PATH, which is string
7755 # string "DIR[ DIR]" will be prepended to VARIABLE
7757 # string "DIR[ DIR]" will be appended to VARIABLE
7758 # "DIRP[:DIRP]::[DIRA:]DIRA"
7759 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7760 # "DIRA[ DIRA]" will be appended to VARIABLE
7762 # VARIABLE will be replaced by "DIR[ DIR]"
7763 func_munge_path_list ()
7769 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7772 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7775 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7776 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7779 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7784 for ac_header in dlfcn.h
7786 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7788 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7789 cat >>confdefs.h <<_ACEOF
7790 #define HAVE_DLFCN_H 1
7811 # Check whether --enable-shared was given.
7812 if test "${enable_shared+set}" = set; then :
7813 enableval=$enable_shared; p=${PACKAGE-default}
7815 yes) enable_shared=yes ;;
7816 no) enable_shared=no ;;
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7821 for pkg in $enableval; do
7823 if test "X$pkg" = "X$p"; then
7842 # Check whether --enable-static was given.
7843 if test "${enable_static+set}" = set; then :
7844 enableval=$enable_static; p=${PACKAGE-default}
7846 yes) enable_static=yes ;;
7847 no) enable_static=no ;;
7850 # Look at the argument we got. We use all the common list separators.
7851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7852 for pkg in $enableval; do
7854 if test "X$pkg" = "X$p"; then
7874 # Check whether --with-pic was given.
7875 if test "${with_pic+set}" = set; then :
7876 withval=$with_pic; lt_p=${PACKAGE-default}
7878 yes|no) pic_mode=$withval ;;
7881 # Look at the argument we got. We use all the common list separators.
7882 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7883 for lt_pkg in $withval; do
7885 if test "X$lt_pkg" = "X$lt_p"; then
7903 # Check whether --enable-fast-install was given.
7904 if test "${enable_fast_install+set}" = set; then :
7905 enableval=$enable_fast_install; p=${PACKAGE-default}
7907 yes) enable_fast_install=yes ;;
7908 no) enable_fast_install=no ;;
7910 enable_fast_install=no
7911 # Look at the argument we got. We use all the common list separators.
7912 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7913 for pkg in $enableval; do
7915 if test "X$pkg" = "X$p"; then
7916 enable_fast_install=yes
7923 enable_fast_install=yes
7933 shared_archive_member_spec=
7934 case $host,$enable_shared in
7935 power*-*-aix[5-9]*,yes)
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7937 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7939 # Check whether --with-aix-soname was given.
7940 if test "${with_aix_soname+set}" = set; then :
7941 withval=$with_aix_soname; case $withval in
7945 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7948 lt_cv_with_aix_soname=$with_aix_soname
7950 if ${lt_cv_with_aix_soname+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 lt_cv_with_aix_soname=aix
7956 with_aix_soname=$lt_cv_with_aix_soname
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7960 $as_echo "$with_aix_soname" >&6; }
7961 if test aix != "$with_aix_soname"; then
7962 # For the AIX way of multilib, we name the shared archive member
7963 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7964 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7965 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7966 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7967 if test 64 = "${OBJECT_MODE-32}"; then
7968 shared_archive_member_spec=shr_64
7970 shared_archive_member_spec=shr
7988 # This can be used to rebuild libtool when needed
7989 LIBTOOL_DEPS=$ltmain
7991 # Always use our own libtool.
7992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8023 test -z "$LN_S" && LN_S="ln -s"
8038 if test -n "${ZSH_VERSION+set}"; then
8039 setopt NO_GLOB_SUBST
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043 $as_echo_n "checking for objdir... " >&6; }
8044 if ${lt_cv_objdir+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 rm -f .libs 2>/dev/null
8048 mkdir .libs 2>/dev/null
8049 if test -d .libs; then
8052 # MS-DOS does not allow filenames that begin with a dot.
8055 rmdir .libs 2>/dev/null
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058 $as_echo "$lt_cv_objdir" >&6; }
8059 objdir=$lt_cv_objdir
8065 cat >>confdefs.h <<_ACEOF
8066 #define LT_OBJDIR "$lt_cv_objdir/"
8074 # AIX sometimes has problems with the GCC collect2 program. For some
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
8076 # vanish in a puff of smoke.
8077 if test set != "${COLLECT_NAMES+set}"; then
8079 export COLLECT_NAMES
8086 can_build_shared=yes
8088 # All known linkers require a '.a' archive for static linking (except MSVC,
8089 # which needs '.lib').
8092 with_gnu_ld=$lt_cv_prog_gnu_ld
8097 # Set sane defaults for various variables
8098 test -z "$CC" && CC=cc
8099 test -z "$LTCC" && LTCC=$CC
8100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101 test -z "$LD" && LD=ld
8102 test -z "$ac_objext" && ac_objext=o
8104 func_cc_basename $compiler
8105 cc_basename=$func_cc_basename_result
8108 # Only perform the check for file, if the check method requires it
8109 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8110 case $deplibs_check_method in
8112 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8114 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8115 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8116 $as_echo_n "(cached) " >&6
8120 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8123 lt_save_MAGIC_CMD=$MAGIC_CMD
8124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8125 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8126 for ac_dir in $ac_dummy; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8130 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8131 if test -n "$file_magic_test_file"; then
8132 case $deplibs_check_method in
8134 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8136 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8137 $EGREP "$file_magic_regex" > /dev/null; then
8142 *** Warning: the command libtool uses to detect shared libraries,
8143 *** $file_magic_cmd, produces output that libtool cannot recognize.
8144 *** The result is that libtool may fail to recognize shared libraries
8145 *** as such. This will affect the creation of libtool libraries that
8146 *** depend on shared libraries, but programs linked with such libtool
8147 *** libraries will work regardless of this problem. Nevertheless, you
8148 *** may want to report the problem to your system manager and/or to
8149 *** bug-libtool@gnu.org
8159 MAGIC_CMD=$lt_save_MAGIC_CMD
8164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8165 if test -n "$MAGIC_CMD"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8167 $as_echo "$MAGIC_CMD" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8177 if test -z "$lt_cv_path_MAGIC_CMD"; then
8178 if test -n "$ac_tool_prefix"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8180 $as_echo_n "checking for file... " >&6; }
8181 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8182 $as_echo_n "(cached) " >&6
8186 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8189 lt_save_MAGIC_CMD=$MAGIC_CMD
8190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8192 for ac_dir in $ac_dummy; do
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f "$ac_dir/file"; then
8196 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8197 if test -n "$file_magic_test_file"; then
8198 case $deplibs_check_method in
8200 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8203 $EGREP "$file_magic_regex" > /dev/null; then
8208 *** Warning: the command libtool uses to detect shared libraries,
8209 *** $file_magic_cmd, produces output that libtool cannot recognize.
8210 *** The result is that libtool may fail to recognize shared libraries
8211 *** as such. This will affect the creation of libtool libraries that
8212 *** depend on shared libraries, but programs linked with such libtool
8213 *** libraries will work regardless of this problem. Nevertheless, you
8214 *** may want to report the problem to your system manager and/or to
8215 *** bug-libtool@gnu.org
8225 MAGIC_CMD=$lt_save_MAGIC_CMD
8230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8231 if test -n "$MAGIC_CMD"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8233 $as_echo "$MAGIC_CMD" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8249 # Use C for the default configuration in the libtool script
8253 ac_cpp='$CPP $CPPFLAGS'
8254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8259 # Source file extension for C test sources.
8262 # Object file extension for compiled C test sources.
8266 # Code to be used in simple compile tests
8267 lt_simple_compile_test_code="int some_variable = 0;"
8269 # Code to be used in simple link tests
8270 lt_simple_link_test_code='int main(){return(0);}'
8278 # If no C compiler was specified, use CC.
8281 # If no C compiler flags were specified, use CFLAGS.
8282 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8284 # Allow CC to be a program name with arguments.
8287 # Save the default compiler, since it gets overwritten when the other
8288 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8289 compiler_DEFAULT=$CC
8291 # save warnings/boilerplate of simple test code
8292 ac_outfile=conftest.$ac_objext
8293 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295 _lt_compiler_boilerplate=`cat conftest.err`
8298 ac_outfile=conftest.$ac_objext
8299 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301 _lt_linker_boilerplate=`cat conftest.err`
8306 ## There is no encapsulation within the following macros, do not change
8307 ## the running order or otherwise move them around unless you know exactly
8308 ## what you are doing...
8309 if test -n "$compiler"; then
8311 lt_prog_compiler_no_builtin_flag=
8313 if test yes = "$GCC"; then
8314 case $cc_basename in
8316 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8318 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8322 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8323 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8324 $as_echo_n "(cached) " >&6
8326 lt_cv_prog_compiler_rtti_exceptions=no
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8329 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8330 # Insert the option either (1) after the last *FLAGS variable, or
8331 # (2) before a word containing "conftest.", or (3) at the end.
8332 # Note that $ac_compile itself does not contain backslashes and begins
8333 # with a dollar sign (not a hyphen), so the echo should work correctly.
8334 # The option is referenced via a variable to avoid confusing sed.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>conftest.err)
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s "$ac_outfile"; then
8345 # The compiler can only warn and ignore the option if not recognized
8346 # So say no if there are warnings other than the usual output.
8347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8350 lt_cv_prog_compiler_rtti_exceptions=yes
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8357 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8359 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8360 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8372 lt_prog_compiler_wl=
8373 lt_prog_compiler_pic=
8374 lt_prog_compiler_static=
8377 if test yes = "$GCC"; then
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_static='-static'
8383 # All AIX code is PIC.
8384 if test ia64 = "$host_cpu"; then
8385 # AIX 5 now supports IA64 processor
8386 lt_prog_compiler_static='-Bstatic'
8388 lt_prog_compiler_pic='-fPIC'
8394 # see comment about AmigaOS4 .so support
8395 lt_prog_compiler_pic='-fPIC'
8398 # FIXME: we need at least 68020 code to build shared libraries, but
8399 # adding the '-m68020' flag to GCC prevents building anything better,
8401 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8407 # PIC is the default for these OSes.
8410 mingw* | cygwin* | pw32* | os2* | cegcc*)
8411 # This hack is so that the source file can tell whether it is being
8412 # built for inclusion in a dll (and should export symbols for example).
8413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8414 # (--disable-auto-import) libraries
8415 lt_prog_compiler_pic='-DDLL_EXPORT'
8418 lt_prog_compiler_static='$wl-static'
8423 darwin* | rhapsody*)
8424 # PIC is the default on this platform
8425 # Common symbols not allowed in MH_DYLIB files
8426 lt_prog_compiler_pic='-fno-common'
8430 # PIC is the default for Haiku.
8431 # The "-static" flag exists, but is broken.
8432 lt_prog_compiler_static=
8436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8438 # sets the default TLS model and affects inlining.
8444 lt_prog_compiler_pic='-fPIC'
8450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8451 # Instead, we relocate shared libraries at runtime.
8455 # Just because we use GCC doesn't mean we suddenly get shared libraries
8456 # on systems that don't support them.
8457 lt_prog_compiler_can_build_shared=no
8462 # QNX uses GNU C++, but need to define -shared option too, otherwise
8464 lt_prog_compiler_pic='-fPIC -shared'
8468 if test -d /usr/nec; then
8469 lt_prog_compiler_pic=-Kconform_pic
8474 lt_prog_compiler_pic='-fPIC'
8478 case $cc_basename in
8479 nvcc*) # Cuda Compiler Driver 2.2
8480 lt_prog_compiler_wl='-Xlinker '
8481 if test -n "$lt_prog_compiler_pic"; then
8482 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8487 # PORTME Check for flag to pass linker flags through the system compiler.
8490 lt_prog_compiler_wl='-Wl,'
8491 if test ia64 = "$host_cpu"; then
8492 # AIX 5 now supports IA64 processor
8493 lt_prog_compiler_static='-Bstatic'
8495 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8499 darwin* | rhapsody*)
8500 # PIC is the default on this platform
8501 # Common symbols not allowed in MH_DYLIB files
8502 lt_prog_compiler_pic='-fno-common'
8503 case $cc_basename in
8505 # NAG Fortran compiler
8506 lt_prog_compiler_wl='-Wl,-Wl,,'
8507 lt_prog_compiler_pic='-PIC'
8508 lt_prog_compiler_static='-Bstatic'
8513 mingw* | cygwin* | pw32* | os2* | cegcc*)
8514 # This hack is so that the source file can tell whether it is being
8515 # built for inclusion in a dll (and should export symbols for example).
8516 lt_prog_compiler_pic='-DDLL_EXPORT'
8519 lt_prog_compiler_static='$wl-static'
8524 hpux9* | hpux10* | hpux11*)
8525 lt_prog_compiler_wl='-Wl,'
8526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8533 lt_prog_compiler_pic='+Z'
8536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8537 lt_prog_compiler_static='$wl-a ${wl}archive'
8540 irix5* | irix6* | nonstopux*)
8541 lt_prog_compiler_wl='-Wl,'
8542 # PIC (with -KPIC) is the default.
8543 lt_prog_compiler_static='-non_shared'
8546 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8547 case $cc_basename in
8548 # old Intel for x86_64, which still supported -KPIC.
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-static'
8554 # flang / f18. f95 an alias for gfortran or flang on Debian
8555 flang* | f18* | f95*)
8556 lt_prog_compiler_wl='-Wl,'
8557 lt_prog_compiler_pic='-fPIC'
8558 lt_prog_compiler_static='-static'
8560 # icc used to be incompatible with GCC.
8561 # ICC 10 doesn't accept -KPIC any more.
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-fPIC'
8565 lt_prog_compiler_static='-static'
8567 # Lahey Fortran 8.1.
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='--shared'
8571 lt_prog_compiler_static='--static'
8574 # NAG Fortran compiler
8575 lt_prog_compiler_wl='-Wl,-Wl,,'
8576 lt_prog_compiler_pic='-PIC'
8577 lt_prog_compiler_static='-Bstatic'
8580 # Fabrice Bellard et al's Tiny C Compiler
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_pic='-fPIC'
8583 lt_prog_compiler_static='-static'
8585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8586 # Portland Group compilers (*not* the Pentium gcc compiler,
8587 # which looks to be a dead project)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-fpic'
8590 lt_prog_compiler_static='-Bstatic'
8593 lt_prog_compiler_wl='-Wl,'
8594 # All Alpha code is PIC.
8595 lt_prog_compiler_static='-non_shared'
8597 xl* | bgxl* | bgf* | mpixl*)
8598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-qpic'
8601 lt_prog_compiler_static='-qstaticlink'
8604 case `$CC -V 2>&1 | sed 5q` in
8605 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8606 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8607 lt_prog_compiler_pic='-KPIC'
8608 lt_prog_compiler_static='-Bstatic'
8609 lt_prog_compiler_wl=''
8611 *Sun\ F* | *Sun*Fortran*)
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_wl='-Qoption ld '
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 lt_prog_compiler_wl='-Wl,'
8622 *Intel*\ [CF]*Compiler*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-fPIC'
8625 lt_prog_compiler_static='-static'
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-fpic'
8630 lt_prog_compiler_static='-Bstatic'
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8643 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 lt_prog_compiler_pic='-fPIC -shared'
8648 osf3* | osf4* | osf5*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # All OSF/1 code is PIC.
8651 lt_prog_compiler_static='-non_shared'
8655 lt_prog_compiler_static='-non_shared'
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-Bstatic'
8661 case $cc_basename in
8662 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8663 lt_prog_compiler_wl='-Qoption ld ';;
8665 lt_prog_compiler_wl='-Wl,';;
8670 lt_prog_compiler_wl='-Qoption ld '
8671 lt_prog_compiler_pic='-PIC'
8672 lt_prog_compiler_static='-Bstatic'
8675 sysv4 | sysv4.2uw2* | sysv4.3*)
8676 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8682 if test -d /usr/nec; then
8683 lt_prog_compiler_pic='-Kconform_pic'
8684 lt_prog_compiler_static='-Bstatic'
8688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_can_build_shared=no
8700 lt_prog_compiler_pic='-pic'
8701 lt_prog_compiler_static='-Bstatic'
8705 lt_prog_compiler_can_build_shared=no
8711 # For platforms that do not support PIC, -DPIC is meaningless:
8713 lt_prog_compiler_pic=
8716 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8721 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8722 if ${lt_cv_prog_compiler_pic+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8728 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8729 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8732 # Check to make sure the PIC flag actually works.
8734 if test -n "$lt_prog_compiler_pic"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8736 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8737 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8738 $as_echo_n "(cached) " >&6
8740 lt_cv_prog_compiler_pic_works=no
8741 ac_outfile=conftest.$ac_objext
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 # The option is referenced via a variable to avoid confusing sed.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754 (eval "$lt_compile" 2>conftest.err)
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 if (exit $ac_status) && test -s "$ac_outfile"; then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings other than the usual output.
8761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_pic_works=yes
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8771 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8773 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8774 case $lt_prog_compiler_pic in
8776 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8779 lt_prog_compiler_pic=
8780 lt_prog_compiler_can_build_shared=no
8796 # Check to make sure the static flag actually works.
8798 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8800 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8801 if ${lt_cv_prog_compiler_static_works+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 lt_cv_prog_compiler_static_works=no
8805 save_LDFLAGS=$LDFLAGS
8806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8809 # The linker can only warn and ignore the option if not recognized
8810 # So say no if there are warnings
8811 if test -s conftest.err; then
8812 # Append any errors to the config.log.
8813 cat conftest.err 1>&5
8814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816 if diff conftest.exp conftest.er2 >/dev/null; then
8817 lt_cv_prog_compiler_static_works=yes
8820 lt_cv_prog_compiler_static_works=yes
8824 LDFLAGS=$save_LDFLAGS
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8828 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8830 if test yes = "$lt_cv_prog_compiler_static_works"; then
8833 lt_prog_compiler_static=
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8844 if ${lt_cv_prog_compiler_c_o+:} false; then :
8845 $as_echo_n "(cached) " >&6
8847 lt_cv_prog_compiler_c_o=no
8848 $RM -r conftest 2>/dev/null
8852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854 lt_compiler_flag="-o out/conftest2.$ac_objext"
8855 # Insert the option either (1) after the last *FLAGS variable, or
8856 # (2) before a word containing "conftest.", or (3) at the end.
8857 # Note that $ac_compile itself does not contain backslashes and begins
8858 # with a dollar sign (not a hyphen), so the echo should work correctly.
8859 lt_compile=`echo "$ac_compile" | $SED \
8860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8862 -e 's:$: $lt_compiler_flag:'`
8863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8864 (eval "$lt_compile" 2>out/conftest.err)
8866 cat out/conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870 # The compiler can only warn and ignore the option if not recognized
8871 # So say no if there are warnings
8872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler_c_o=yes
8880 # SGI C++ compiler will create directory out/ii_files/ for
8881 # template instantiation
8882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8883 $RM out/* && rmdir out
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if ${lt_cv_prog_compiler_c_o+:} false; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_c_o=no
8903 $RM -r conftest 2>/dev/null
8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="-o out/conftest2.$ac_objext"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 lt_compile=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>out/conftest.err)
8921 cat out/conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_c_o=yes
8935 # SGI C++ compiler will create directory out/ii_files/ for
8936 # template instantiation
8937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8938 $RM out/* && rmdir out
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8950 hard_links=nottested
8951 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8952 # do not overwrite the value of need_locks provided by the user
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8954 $as_echo_n "checking if we can lock with hard links... " >&6; }
8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 ln conftest.a conftest.b 2>&5 || hard_links=no
8960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8962 $as_echo "$hard_links" >&6; }
8963 if test no = "$hard_links"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8965 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8981 allow_undefined_flag=
8982 always_export_symbols=no
8984 archive_expsym_cmds=
8985 compiler_needs_object=no
8986 enable_shared_with_static_runtimes=no
8987 export_dynamic_flag_spec=
8988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8989 hardcode_automatic=no
8991 hardcode_direct_absolute=no
8992 hardcode_libdir_flag_spec=
8993 hardcode_libdir_separator=
8995 hardcode_shlibpath_var=unsupported
8997 link_all_deplibs=unknown
9000 old_archive_from_new_cmds=
9001 old_archive_from_expsyms_cmds=
9002 thread_safe_flag_spec=
9003 whole_archive_flag_spec=
9004 # include_expsyms should be a list of space-separated symbols to be *always*
9005 # included in the symbol list
9007 # exclude_expsyms can be an extended regexp of symbols to exclude
9008 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9009 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9010 # as well as any symbol that contains 'd'.
9011 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9013 # platforms (ab)use it in PIC code, but their linkers get confused if
9014 # the symbol is explicitly referenced. Since portable code cannot
9015 # rely on this symbol name, it's probably fine to never include it in
9016 # preloaded symbol tables.
9017 # Exclude shared library initialization/finalization symbols.
9018 extract_expsyms_cmds=
9021 cygwin* | mingw* | pw32* | cegcc*)
9022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 if test yes != "$GCC"; then
9030 # we just hope/assume this is gcc and not c89 (= MSVC++)
9036 linux* | k*bsd*-gnu | gnu*)
9043 # On some targets, GNU ld is compatible enough with the native linker
9044 # that we're better off using the native interface for both.
9045 lt_use_gnu_ld_interface=no
9046 if test yes = "$with_gnu_ld"; then
9049 # The AIX port of GNU ld has always aspired to compatibility
9050 # with the native linker. However, as the warning in the GNU ld
9051 # block says, versions before 2.19.5* couldn't really create working
9052 # shared libraries, regardless of the interface used.
9053 case `$LD -v 2>&1` in
9054 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9055 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9056 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9058 lt_use_gnu_ld_interface=yes
9063 lt_use_gnu_ld_interface=yes
9068 if test yes = "$lt_use_gnu_ld_interface"; then
9069 # If archive_cmds runs LD, not CC, wlarc should be empty
9072 # Set some defaults for GNU ld with shared library support. These
9073 # are reset later if shared libraries are not supported. Putting them
9074 # here allows them to be overridden if necessary.
9075 runpath_var=LD_RUN_PATH
9076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9077 export_dynamic_flag_spec='$wl--export-dynamic'
9078 # ancient GNU ld didn't support --whole-archive et. al.
9079 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9080 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9082 whole_archive_flag_spec=
9084 supports_anon_versioning=no
9085 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9086 *GNU\ gold*) supports_anon_versioning=yes ;;
9087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9090 *\ 2.11.*) ;; # other 2.11 versions
9091 *) supports_anon_versioning=yes ;;
9094 # See if GNU ld supports shared libraries.
9097 # On AIX/PPC, the GNU linker is very broken
9098 if test ia64 != "$host_cpu"; then
9102 *** Warning: the GNU linker, at least up to release 2.19, is reported
9103 *** to be unable to reliably create shared libraries on AIX.
9104 *** Therefore, libtool is disabling shared libraries support. If you
9105 *** really care for shared libraries, you may want to install binutils
9106 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9107 *** You will then need to restart the configuration process.
9116 # see comment about AmigaOS4 .so support
9117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9118 archive_expsym_cmds=''
9121 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)'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_minus_L=yes
9129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9130 allow_undefined_flag=unsupported
9131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9132 # support --undefined. This deserves some investigation. FIXME
9133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9139 cygwin* | mingw* | pw32* | cegcc*)
9140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9141 # as there is no search path for DLLs.
9142 hardcode_libdir_flag_spec='-L$libdir'
9143 export_dynamic_flag_spec='$wl--export-all-symbols'
9144 allow_undefined_flag=unsupported
9145 always_export_symbols=no
9146 enable_shared_with_static_runtimes=yes
9147 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'
9148 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 # If the export-symbols file already is a .def file, use it as
9153 # is; otherwise, prepend EXPORTS...
9154 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9155 cp $export_symbols $output_objdir/$soname.def;
9157 echo EXPORTS > $output_objdir/$soname.def;
9158 cat $export_symbols >> $output_objdir/$soname.def;
9160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9168 link_all_deplibs=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_minus_L=yes
9174 allow_undefined_flag=unsupported
9176 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9179 $ECHO EXPORTS >> $output_objdir/$libname.def~
9180 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9182 emximp -o $lib $output_objdir/$libname.def'
9183 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9184 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9185 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9186 $ECHO EXPORTS >> $output_objdir/$libname.def~
9188 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9189 prefix_cmds="$prefix_cmds -e 1d";
9191 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9192 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9193 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9194 emximp -o $lib $output_objdir/$libname.def'
9195 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9196 enable_shared_with_static_runtimes=yes
9201 hardcode_shlibpath_var=no
9202 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9203 export_dynamic_flag_spec='$wl-E'
9204 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9205 # Instead, shared libraries are loaded at an image base (0x10000000 by
9206 # default) and relocated if they conflict, which is a slow very memory
9207 # consuming and fragmenting process. To avoid this, we pick a random,
9208 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9209 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9211 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'
9214 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9216 if test linux-dietlibc = "$host_os"; then
9217 case $cc_basename in
9218 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9221 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9222 && test no = "$tmp_diet"
9224 tmp_addflag=' $pic_flag'
9225 tmp_sharedflag='-shared'
9226 case $cc_basename,$host_cpu in
9227 pgcc*) # Portland Group C compiler
9228 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'
9229 tmp_addflag=' $pic_flag'
9231 pgf77* | pgf90* | pgf95* | pgfortran*)
9232 # Portland Group f77 and f90 compilers
9233 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'
9234 tmp_addflag=' $pic_flag -Mnomain' ;;
9235 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9236 tmp_addflag=' -i_dynamic' ;;
9237 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9238 tmp_addflag=' -i_dynamic -nofor_main' ;;
9239 ifc* | ifort*) # Intel Fortran compiler
9240 tmp_addflag=' -nofor_main' ;;
9241 lf95*) # Lahey Fortran 8.1
9242 whole_archive_flag_spec=
9243 tmp_sharedflag='--shared' ;;
9244 nagfor*) # NAGFOR 5.3
9245 tmp_sharedflag='-Wl,-shared' ;;
9246 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9247 tmp_sharedflag='-qmkshrobj'
9249 nvcc*) # Cuda Compiler Driver 2.2
9250 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'
9251 compiler_needs_object=yes
9254 case `$CC -V 2>&1 | sed 5q` in
9255 *Sun\ C*) # Sun C 5.9
9256 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'
9257 compiler_needs_object=yes
9258 tmp_sharedflag='-G' ;;
9259 *Sun\ F*) # Sun Fortran 8.3
9260 tmp_sharedflag='-G' ;;
9262 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9264 if test yes = "$supports_anon_versioning"; then
9265 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9267 echo "local: *; };" >> $output_objdir/$libname.ver~
9268 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9271 case $cc_basename in
9273 export_dynamic_flag_spec='-rdynamic'
9275 xlf* | bgf* | bgxlf* | mpixlf*)
9276 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9277 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9279 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9280 if test yes = "$supports_anon_versioning"; then
9281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9283 echo "local: *; };" >> $output_objdir/$libname.ver~
9284 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9293 netbsd* | netbsdelf*-gnu)
9294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9304 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9309 *** create shared libraries on Solaris systems. Therefore, libtool
9310 *** is disabling shared libraries support. We urge you to upgrade GNU
9311 *** binutils to release 2.9.1 or newer. Another option is to modify
9312 *** your PATH or compiler configuration so that the native linker is
9313 *** used, and then restart.
9316 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9325 case `$LD -v 2>&1` in
9326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9330 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9331 *** reliably create shared libraries on SCO systems. Therefore, libtool
9332 *** is disabling shared libraries support. We urge you to upgrade GNU
9333 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9334 *** your PATH or compiler configuration so that the native linker is
9335 *** used, and then restart.
9340 # For security reasons, it is highly recommended that you always
9341 # use absolute paths for naming shared libraries, and exclude the
9342 # DT_RUNPATH tag from executables and libraries. But doing so
9343 # requires that you compile everything twice, which is a pain.
9344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_shlibpath_var=no
9363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9365 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9372 if test no = "$ld_shlibs"; then
9374 hardcode_libdir_flag_spec=
9375 export_dynamic_flag_spec=
9376 whole_archive_flag_spec=
9379 # PORTME fill in a description of your system's linker (not GNU ld)
9382 allow_undefined_flag=unsupported
9383 always_export_symbols=yes
9384 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'
9385 # Note: this linker hardcodes the directories in LIBPATH if there
9386 # are no directories specified by -L.
9387 hardcode_minus_L=yes
9388 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9389 # Neither direct hardcoding nor static linking is supported with a
9391 hardcode_direct=unsupported
9396 if test ia64 = "$host_cpu"; then
9397 # On IA64, the linker does run time linking by default, so we don't
9398 # have to do anything special.
9399 aix_use_runtimelinking=no
9400 exp_sym_flag='-Bexport'
9403 # If we're using GNU nm, then we don't want the "-C" option.
9404 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9405 # Without the "-l" option, or with the "-B" option, AIX nm treats
9406 # weak defined symbols like other global defined symbols, whereas
9407 # GNU nm marks them as "W".
9408 # While the 'weak' keyword is ignored in the Export File, we need
9409 # it in the Import File for the 'aix-soname' feature, so we have
9410 # to replace the "-B" option with "-P" for AIX nm.
9411 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9412 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'
9414 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'
9416 aix_use_runtimelinking=no
9418 # Test if we are trying to use run time linking or normal
9419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9420 # have runtime linking enabled, and use it for executables.
9421 # For shared libraries, we enable/disable runtime linking
9422 # depending on the kind of the shared library created -
9423 # when "with_aix_soname,aix_use_runtimelinking" is:
9424 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9425 # "aix,yes" lib.so shared, rtl:yes, for executables
9426 # lib.a static archive
9427 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9428 # lib.a(lib.so.V) shared, rtl:no, for executables
9429 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9430 # lib.a(lib.so.V) shared, rtl:no
9431 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9432 # lib.a static archive
9433 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9434 for ld_flag in $LDFLAGS; do
9435 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9436 aix_use_runtimelinking=yes
9440 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9441 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9442 # so we don't have lib.a shared libs to link our executables.
9443 # We have to force runtime linking in this case.
9444 aix_use_runtimelinking=yes
9445 LDFLAGS="$LDFLAGS -Wl,-brtl"
9450 exp_sym_flag='-bexport'
9451 no_entry_flag='-bnoentry'
9454 # When large executables or shared objects are built, AIX ld can
9455 # have problems creating the table of contents. If linking a library
9456 # or program results in "error TOC overflow" add -mminimal-toc to
9457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9462 hardcode_direct_absolute=yes
9463 hardcode_libdir_separator=':'
9464 link_all_deplibs=yes
9465 file_list_spec='$wl-f,'
9466 case $with_aix_soname,$aix_use_runtimelinking in
9467 aix,*) ;; # traditional, no import file
9468 svr4,* | *,yes) # use import file
9469 # The Import File defines what to hardcode.
9471 hardcode_direct_absolute=no
9475 if test yes = "$GCC"; then
9476 case $host_os in aix4.[012]|aix4.[012].*)
9477 # We only want to do this on AIX 4.2 and lower, the check
9478 # below for broken collect2 doesn't work under 4.3+
9479 collect2name=`$CC -print-prog-name=collect2`
9480 if test -f "$collect2name" &&
9481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9483 # We have reworked collect2
9486 # We have old collect2
9487 hardcode_direct=unsupported
9488 # It fails to find uninstalled libraries when the uninstalled
9489 # path is not listed in the libpath. Setting hardcode_minus_L
9490 # to unsupported forces relinking
9491 hardcode_minus_L=yes
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_libdir_separator=
9497 shared_flag='-shared'
9498 if test yes = "$aix_use_runtimelinking"; then
9499 shared_flag="$shared_flag "'$wl-G'
9501 # Need to ensure runtime linking is disabled for the traditional
9502 # shared library, or the linker may eventually find shared libraries
9503 # /with/ Import File - we do not want to mix them.
9504 shared_flag_aix='-shared'
9505 shared_flag_svr4='-shared $wl-G'
9508 if test ia64 = "$host_cpu"; then
9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510 # chokes on -Wl,-G. The following line is correct:
9513 if test yes = "$aix_use_runtimelinking"; then
9516 shared_flag='$wl-bM:SRE'
9518 shared_flag_aix='$wl-bM:SRE'
9519 shared_flag_svr4='$wl-G'
9523 export_dynamic_flag_spec='$wl-bexpall'
9524 # It seems that -bexpall does not export symbols beginning with
9525 # underscore (_), so it is better to generate a list of symbols to export.
9526 always_export_symbols=yes
9527 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9528 # Warning - without using the other runtime loading flags (-brtl),
9529 # -berok will link without error, but may produce a broken library.
9530 allow_undefined_flag='-berok'
9531 # Determine the default libpath from the value encoded in an
9533 if test set = "${lt_cv_aix_libpath+set}"; then
9534 aix_libpath=$lt_cv_aix_libpath
9536 if ${lt_cv_aix_libpath_+:} false; then :
9537 $as_echo_n "(cached) " >&6
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9550 if ac_fn_c_try_link "$LINENO"; then :
9552 lt_aix_libpath_sed='
9553 /Import File Strings/,/^$/ {
9555 s/^0 *\([^ ]*\) *$/\1/
9559 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 # Check for a 64-bit object if we didn't find anything.
9561 if test -z "$lt_cv_aix_libpath_"; then
9562 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565 rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567 if test -z "$lt_cv_aix_libpath_"; then
9568 lt_cv_aix_libpath_=/usr/lib:/lib
9573 aix_libpath=$lt_cv_aix_libpath_
9576 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9577 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
9579 if test ia64 = "$host_cpu"; then
9580 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag="-z nodefs"
9582 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"
9584 # Determine the default libpath from the value encoded in an
9586 if test set = "${lt_cv_aix_libpath+set}"; then
9587 aix_libpath=$lt_cv_aix_libpath
9589 if ${lt_cv_aix_libpath_+:} false; then :
9590 $as_echo_n "(cached) " >&6
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9603 if ac_fn_c_try_link "$LINENO"; then :
9605 lt_aix_libpath_sed='
9606 /Import File Strings/,/^$/ {
9608 s/^0 *\([^ ]*\) *$/\1/
9612 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 # Check for a 64-bit object if we didn't find anything.
9614 if test -z "$lt_cv_aix_libpath_"; then
9615 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620 if test -z "$lt_cv_aix_libpath_"; then
9621 lt_cv_aix_libpath_=/usr/lib:/lib
9626 aix_libpath=$lt_cv_aix_libpath_
9629 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9630 # Warning - without using the other run time loading flags,
9631 # -berok will link without error, but may produce a broken library.
9632 no_undefined_flag=' $wl-bernotok'
9633 allow_undefined_flag=' $wl-berok'
9634 if test yes = "$with_gnu_ld"; then
9635 # We only use this code for GNU lds that support --whole-archive.
9636 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9638 # Exported symbols can be pulled into shared objects from archives
9639 whole_archive_flag_spec='$convenience'
9641 archive_cmds_need_lc=yes
9642 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9643 # -brtl affects multiple linker settings, -berok does not and is overridden later
9644 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9645 if test svr4 != "$with_aix_soname"; then
9646 # This is similar to how AIX traditionally builds its shared libraries.
9647 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'
9649 if test aix != "$with_aix_soname"; then
9650 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'
9652 # used by -dlpreopen to get the symbols
9653 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9655 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9663 # see comment about AmigaOS4 .so support
9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9665 archive_expsym_cmds=''
9668 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)'
9669 hardcode_libdir_flag_spec='-L$libdir'
9670 hardcode_minus_L=yes
9676 export_dynamic_flag_spec=-rdynamic
9679 cygwin* | mingw* | pw32* | cegcc*)
9680 # When not using gcc, we currently assume that we are using
9681 # Microsoft Visual C++.
9682 # hardcode_libdir_flag_spec is actually meaningless, as there is
9683 # no search path for DLLs.
9684 case $cc_basename in
9687 hardcode_libdir_flag_spec=' '
9688 allow_undefined_flag=unsupported
9689 always_export_symbols=yes
9691 # Tell ltmain to make .lib files, not .a files.
9693 # Tell ltmain to make .dll files, not .so files.
9695 # FIXME: Setting linknames here is a bad hack.
9696 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9697 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9698 cp "$export_symbols" "$output_objdir/$soname.def";
9699 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9701 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9703 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9705 # The linker will not automatically build a static lib if we build a DLL.
9706 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9707 enable_shared_with_static_runtimes=yes
9708 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9711 old_postinstall_cmds='chmod 644 $oldlib'
9712 postlink_cmds='lt_outputfile="@OUTPUT@"~
9713 lt_tool_outputfile="@TOOL_OUTPUT@"~
9714 case $lt_outputfile in
9717 lt_outputfile=$lt_outputfile.exe
9718 lt_tool_outputfile=$lt_tool_outputfile.exe
9721 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9722 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9723 $RM "$lt_outputfile.manifest";
9727 # Assume MSVC wrapper
9728 hardcode_libdir_flag_spec=' '
9729 allow_undefined_flag=unsupported
9730 # Tell ltmain to make .lib files, not .a files.
9732 # Tell ltmain to make .dll files, not .so files.
9734 # FIXME: Setting linknames here is a bad hack.
9735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736 # The linker will automatically build a .lib file if we build a DLL.
9737 old_archive_from_new_cmds='true'
9738 # FIXME: Should let the user specify the lib program.
9739 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740 enable_shared_with_static_runtimes=yes
9745 darwin* | rhapsody*)
9748 archive_cmds_need_lc=no
9750 hardcode_automatic=yes
9751 hardcode_shlibpath_var=unsupported
9752 if test yes = "$lt_cv_ld_force_load"; then
9753 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\"`'
9756 whole_archive_flag_spec=''
9758 link_all_deplibs=yes
9759 allow_undefined_flag=$_lt_dar_allow_undefined
9760 case $cc_basename in
9761 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9762 *) _lt_dar_can_shared=$GCC ;;
9764 if test yes = "$_lt_dar_can_shared"; then
9765 output_verbose_link_cmd=func_echo_all
9766 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9767 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9768 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"
9769 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"
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_libdir_flag_spec='-L$libdir'
9780 hardcode_shlibpath_var=no
9783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784 # support. Future versions do this automatically, but an explicit c++rt0.o
9785 # does not break anything, and helps significantly (at the cost of a little
9788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789 hardcode_libdir_flag_spec='-R$libdir'
9791 hardcode_shlibpath_var=no
9794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_minus_L=yes
9799 hardcode_shlibpath_var=no
9802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803 freebsd* | dragonfly*)
9804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9805 hardcode_libdir_flag_spec='-R$libdir'
9807 hardcode_shlibpath_var=no
9811 if test yes = "$GCC"; then
9812 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'
9814 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'
9816 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9817 hardcode_libdir_separator=:
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L=yes
9823 export_dynamic_flag_spec='$wl-E'
9827 if test yes,no = "$GCC,$with_gnu_ld"; then
9828 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832 if test no = "$with_gnu_ld"; then
9833 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9834 hardcode_libdir_separator=:
9836 hardcode_direct_absolute=yes
9837 export_dynamic_flag_spec='$wl-E'
9838 # hardcode_minus_L: Not really in the search PATH,
9839 # but as the default location of the library.
9840 hardcode_minus_L=yes
9845 if test yes,no = "$GCC,$with_gnu_ld"; then
9848 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9867 # Older versions of the 11.00 compiler do not understand -b yet
9868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872 $as_echo_n "(cached) " >&6
9874 lt_cv_prog_compiler__b=no
9875 save_LDFLAGS=$LDFLAGS
9876 LDFLAGS="$LDFLAGS -b"
9877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879 # The linker can only warn and ignore the option if not recognized
9880 # So say no if there are warnings
9881 if test -s conftest.err; then
9882 # Append any errors to the config.log.
9883 cat conftest.err 1>&5
9884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler__b=yes
9890 lt_cv_prog_compiler__b=yes
9894 LDFLAGS=$save_LDFLAGS
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9900 if test yes = "$lt_cv_prog_compiler__b"; then
9901 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909 if test no = "$with_gnu_ld"; then
9910 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9911 hardcode_libdir_separator=:
9916 hardcode_shlibpath_var=no
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='$wl-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9931 irix5* | irix6* | nonstopux*)
9932 if test yes = "$GCC"; then
9933 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'
9934 # Try to use the -exported_symbol ld option, if it does not
9935 # work, assume that -exports_file does not work either and
9936 # implicitly export all symbols.
9937 # This should be the same for all languages, so no per-tag cache variable.
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9939 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9940 if ${lt_cv_irix_exported_symbol+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 save_LDFLAGS=$LDFLAGS
9944 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947 int foo (void) { return 0; }
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 lt_cv_irix_exported_symbol=yes
9952 lt_cv_irix_exported_symbol=no
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LDFLAGS=$save_LDFLAGS
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9959 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9960 if test yes = "$lt_cv_irix_exported_symbol"; then
9961 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'
9965 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'
9966 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'
9968 archive_cmds_need_lc='no'
9969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9970 hardcode_libdir_separator=:
9972 link_all_deplibs=yes
9976 case $cc_basename in
9978 # Fabrice Bellard et al's Tiny C Compiler
9980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985 netbsd* | netbsdelf*-gnu)
9986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9991 hardcode_libdir_flag_spec='-R$libdir'
9993 hardcode_shlibpath_var=no
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10000 hardcode_libdir_separator=:
10001 hardcode_shlibpath_var=no
10007 openbsd* | bitrig*)
10008 if test -f /usr/libexec/ld.so; then
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10011 hardcode_direct_absolute=yes
10012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10015 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10016 export_dynamic_flag_spec='$wl-E'
10018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10019 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_minus_L=yes
10029 allow_undefined_flag=unsupported
10031 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
10035 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10037 emximp -o $lib $output_objdir/$libname.def'
10038 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10039 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10040 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10041 $ECHO EXPORTS >> $output_objdir/$libname.def~
10042 prefix_cmds="$SED"~
10043 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10044 prefix_cmds="$prefix_cmds -e 1d";
10046 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10047 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10049 emximp -o $lib $output_objdir/$libname.def'
10050 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10051 enable_shared_with_static_runtimes=yes
10055 if test yes = "$GCC"; then
10056 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10057 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'
10059 allow_undefined_flag=' -expect_unresolved \*'
10060 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'
10062 archive_cmds_need_lc='no'
10063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064 hardcode_libdir_separator=:
10067 osf4* | osf5*) # as osf3* with the addition of -msym flag
10068 if test yes = "$GCC"; then
10069 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10070 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'
10071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10073 allow_undefined_flag=' -expect_unresolved \*'
10074 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'
10075 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~
10076 $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'
10078 # Both c and cxx compiler support -rpath directly
10079 hardcode_libdir_flag_spec='-rpath $libdir'
10081 archive_cmds_need_lc='no'
10082 hardcode_libdir_separator=:
10086 no_undefined_flag=' -z defs'
10087 if test yes = "$GCC"; then
10089 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10091 $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'
10093 case `$CC -V 2>&1` in
10096 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10098 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10102 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10104 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10108 hardcode_libdir_flag_spec='-R$libdir'
10109 hardcode_shlibpath_var=no
10111 solaris2.[0-5] | solaris2.[0-5].*) ;;
10113 # The compiler driver will combine and reorder linker options,
10114 # but understands '-z linker_flag'. GCC discards it without '$wl',
10115 # but is careful enough not to reorder.
10116 # Supported since Solaris 2.6 (maybe 2.5.1?)
10117 if test yes = "$GCC"; then
10118 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10120 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10124 link_all_deplibs=yes
10128 if test sequent = "$host_vendor"; then
10129 # Use $CC to link under sequent, because it throws in some extra .o
10130 # files that make .init and .fini sections work.
10131 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_libdir_flag_spec='-L$libdir'
10136 hardcode_direct=yes
10137 hardcode_minus_L=yes
10138 hardcode_shlibpath_var=no
10142 case $host_vendor in
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_direct=yes # is this really true???
10148 ## LD is ld it makes a PLAMLIB
10149 ## CC just makes a GrossModule.
10150 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10151 reload_cmds='$CC -r -o $output$reload_objs'
10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10159 runpath_var='LD_RUN_PATH'
10160 hardcode_shlibpath_var=no
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_shlibpath_var=no
10166 export_dynamic_flag_spec='-Bexport'
10170 if test -d /usr/nec; then
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_shlibpath_var=no
10173 runpath_var=LD_RUN_PATH
10174 hardcode_runpath_var=yes
10179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10180 no_undefined_flag='$wl-z,text'
10181 archive_cmds_need_lc=no
10182 hardcode_shlibpath_var=no
10183 runpath_var='LD_RUN_PATH'
10185 if test yes = "$GCC"; then
10186 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 sysv5* | sco3.2v5* | sco5v6*)
10195 # Note: We CANNOT use -z defs as we might desire, because we do not
10196 # link with -lc, and that would cause any symbols used from libc to
10197 # always be unresolved, which means just about no library would
10198 # ever link correctly. If we're not using GNU ld we use -z text
10199 # though, which does catch some bad symbols but isn't as heavy-handed
10201 no_undefined_flag='$wl-z,text'
10202 allow_undefined_flag='$wl-z,nodefs'
10203 archive_cmds_need_lc=no
10204 hardcode_shlibpath_var=no
10205 hardcode_libdir_flag_spec='$wl-R,$libdir'
10206 hardcode_libdir_separator=':'
10207 link_all_deplibs=yes
10208 export_dynamic_flag_spec='$wl-Bexport'
10209 runpath_var='LD_RUN_PATH'
10211 if test yes = "$GCC"; then
10212 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_libdir_flag_spec='-L$libdir'
10223 hardcode_shlibpath_var=no
10231 if test sni = "$host_vendor"; then
10233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10234 export_dynamic_flag_spec='$wl-Blargedynsym'
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10241 $as_echo "$ld_shlibs" >&6; }
10242 test no = "$ld_shlibs" && can_build_shared=no
10244 with_gnu_ld=$with_gnu_ld
10261 # Do we need to explicitly link libc?
10263 case "x$archive_cmds_need_lc" in
10265 # Assume -lc should be added
10266 archive_cmds_need_lc=yes
10268 if test yes,yes = "$GCC,$enable_shared"; then
10269 case $archive_cmds in
10271 # FIXME: we may have to deal with multi-command sequences.
10274 # Test whether the compiler implicitly links with -lc since on some
10275 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10276 # to ld, don't add -lc before -lgcc.
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10278 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10279 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10280 $as_echo_n "(cached) " >&6
10283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10286 (eval $ac_compile) 2>&5
10288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10289 test $ac_status = 0; } 2>conftest.err; then
10292 libobjs=conftest.$ac_objext
10294 wl=$lt_prog_compiler_wl
10295 pic_flag=$lt_prog_compiler_pic
10301 lt_save_allow_undefined_flag=$allow_undefined_flag
10302 allow_undefined_flag=
10303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10304 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10307 test $ac_status = 0; }
10309 lt_cv_archive_cmds_need_lc=no
10311 lt_cv_archive_cmds_need_lc=yes
10313 allow_undefined_flag=$lt_save_allow_undefined_flag
10315 cat conftest.err 1>&5
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10321 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10322 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10481 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10483 if test yes = "$GCC"; then
10485 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10486 *) lt_awk_arg='/^libraries:/' ;;
10489 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10490 *) lt_sed_strip_eq='s|=/|/|g' ;;
10492 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10493 case $lt_search_path_spec in
10495 # if the path contains ";" then we assume it to be the separator
10496 # otherwise default to the standard path separator (i.e. ":") - it is
10497 # assumed that no part of a normal pathname contains ";" but that should
10498 # okay in the real world where ";" in dirpaths is itself problematic.
10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10505 # Ok, now we have the path, separated by spaces, we can step through it
10506 # and add multilib dir if necessary...
10507 lt_tmp_lt_search_path_spec=
10508 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10509 # ...but if some path component already ends with the multilib dir we assume
10510 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10511 case "$lt_multi_os_dir; $lt_search_path_spec " in
10512 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10516 for lt_sys_path in $lt_search_path_spec; do
10517 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10519 elif test -n "$lt_multi_os_dir"; then
10520 test -d "$lt_sys_path" && \
10521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10524 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10525 BEGIN {RS = " "; FS = "/|\n";} {
10528 for (lt_i = NF; lt_i > 0; lt_i--) {
10529 if ($lt_i != "" && $lt_i != ".") {
10530 if ($lt_i == "..") {
10533 if (lt_count == 0) {
10534 lt_foo = "/" $lt_i lt_foo;
10541 if (lt_foo != "") { lt_freq[lt_foo]++; }
10542 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10544 # AWK program above erroneously prepends '/' to C:/dos/paths
10547 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10548 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10550 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554 library_names_spec=
10555 libname_spec='lib$name'
10559 postuninstall_cmds=
10563 shlibpath_overrides_runpath=unknown
10565 dynamic_linker="$host_os ld.so"
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10567 need_lib_prefix=unknown
10568 hardcode_into_libs=no
10570 # when you set need_version to no, make sure it does not cause -set_version
10571 # flags to be left without arguments
10572 need_version=unknown
10578 version_type=linux # correct to gnu/linux during the next big refactor
10579 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10580 shlibpath_var=LIBPATH
10582 # AIX 3 has no versioning support, so we append a major version to the name.
10583 soname_spec='$libname$release$shared_ext$major'
10587 version_type=linux # correct to gnu/linux during the next big refactor
10590 hardcode_into_libs=yes
10591 if test ia64 = "$host_cpu"; then
10592 # AIX 5 supports IA64
10593 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10594 shlibpath_var=LD_LIBRARY_PATH
10596 # With GCC up to 2.95.x, collect2 would create an import file
10597 # for dependence libraries. The import file would start with
10598 # the line '#! .'. This would cause the generated library to
10599 # depend on '.', always an invalid library. This was fixed in
10600 # development snapshots of GCC prior to 3.0.
10602 aix4 | aix4.[01] | aix4.[01].*)
10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10605 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10608 can_build_shared=no
10612 # Using Import Files as archive members, it is possible to support
10613 # filename-based versioning of shared library archives on AIX. While
10614 # this would work for both with and without runtime linking, it will
10615 # prevent static linking of such archives. So we do filename-based
10616 # shared library versioning with .so extension only, which is used
10617 # when both runtime linking and shared linking is enabled.
10618 # Unfortunately, runtime linking may impact performance, so we do
10619 # not want this to be the default eventually. Also, we use the
10620 # versioned .so libs for executables only if there is the -brtl
10621 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10622 # To allow for filename-based versioning support, we need to create
10623 # libNAME.so.V as an archive file, containing:
10624 # *) an Import File, referring to the versioned filename of the
10625 # archive as well as the shared archive member, telling the
10626 # bitwidth (32 or 64) of that shared object, and providing the
10627 # list of exported symbols of that shared object, eventually
10628 # decorated with the 'weak' keyword
10629 # *) the shared object with the F_LOADONLY flag set, to really avoid
10630 # it being seen by the linker.
10631 # At run time we better use the real file rather than another symlink,
10632 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10634 case $with_aix_soname,$aix_use_runtimelinking in
10635 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10636 # soname into executable. Probably we can add versioning support to
10637 # collect2, so additional links can be useful in future.
10638 aix,yes) # traditional libtool
10639 dynamic_linker='AIX unversionable lib.so'
10640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10641 # instead of lib<name>.a to let people know that these are not
10642 # typical AIX shared libraries.
10643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10645 aix,no) # traditional AIX only
10646 dynamic_linker='AIX lib.a(lib.so.V)'
10647 # We preserve .a as extension for shared libraries through AIX4.2
10648 # and later when we are not doing run time linking.
10649 library_names_spec='$libname$release.a $libname.a'
10650 soname_spec='$libname$release$shared_ext$major'
10652 svr4,*) # full svr4 only
10653 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10654 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10655 # We do not specify a path in Import Files, so LIBPATH fires.
10656 shlibpath_overrides_runpath=yes
10658 *,yes) # both, prefer svr4
10659 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10660 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10661 # unpreferred sharedlib libNAME.a needs extra handling
10662 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"'
10663 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"'
10664 # We do not specify a path in Import Files, so LIBPATH fires.
10665 shlibpath_overrides_runpath=yes
10667 *,no) # both, prefer aix
10668 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10669 library_names_spec='$libname$release.a $libname.a'
10670 soname_spec='$libname$release$shared_ext$major'
10671 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10672 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)'
10673 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"'
10676 shlibpath_var=LIBPATH
10683 # Since July 2007 AmigaOS4 officially supports .so libraries.
10684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10688 library_names_spec='$libname.ixlibrary $libname.a'
10689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10690 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'
10696 library_names_spec='$libname$shared_ext'
10697 dynamic_linker="$host_os ld.so"
10698 shlibpath_var=LIBRARY_PATH
10702 version_type=linux # correct to gnu/linux during the next big refactor
10704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10705 soname_spec='$libname$release$shared_ext$major'
10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10710 # the default ld.so.conf also contains /usr/contrib/lib and
10711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10712 # libtool to hard-code these into programs
10715 cygwin* | mingw* | pw32* | cegcc*)
10716 version_type=windows
10721 case $GCC,$cc_basename in
10724 library_names_spec='$libname.dll.a'
10725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10726 postinstall_cmds='base_file=`basename \$file`~
10727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10728 dldir=$destdir/`dirname \$dlpath`~
10729 test -d \$dldir || mkdir -p \$dldir~
10730 $install_prog $dir/$dlname \$dldir/$dlname~
10731 chmod a+x \$dldir/$dlname~
10732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10736 dlpath=$dir/\$dldll~
10738 shlibpath_overrides_runpath=yes
10742 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10743 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10748 # MinGW DLLs use traditional 'lib' prefix
10749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10752 # pw32 DLLs use 'pw' prefix rather than 'lib'
10753 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10756 dynamic_linker='Win32 ld.exe'
10761 libname_spec='$name'
10762 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10763 library_names_spec='$libname.dll.lib'
10767 sys_lib_search_path_spec=
10770 for lt_path in $LIB
10773 # Let DOS variable expansion print the short 8.3 style file name.
10774 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10778 # Convert to MSYS style.
10779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10782 # Convert to unix form, then to dos form, then back to unix form
10783 # but this time dos style (no spaces!) so that the unix form looks
10784 # like /cygdrive/c/PROGRA~1:/cygdr...
10785 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10786 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10787 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10790 sys_lib_search_path_spec=$LIB
10791 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10792 # It is most probably a Windows format PATH.
10793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797 # FIXME: find the short name or the path components, as spaces are
10798 # common. (e.g. "Program Files" -> "PROGRA~1")
10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10803 postinstall_cmds='base_file=`basename \$file`~
10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10805 dldir=$destdir/`dirname \$dlpath`~
10806 test -d \$dldir || mkdir -p \$dldir~
10807 $install_prog $dir/$dlname \$dldir/$dlname'
10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809 dlpath=$dir/\$dldll~
10811 shlibpath_overrides_runpath=yes
10812 dynamic_linker='Win32 link.exe'
10816 # Assume MSVC wrapper
10817 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10818 dynamic_linker='Win32 ld.exe'
10821 # FIXME: first we should search . and the directory the executable is in
10825 darwin* | rhapsody*)
10826 dynamic_linker="$host_os dyld"
10827 version_type=darwin
10830 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10831 soname_spec='$libname$release$major$shared_ext'
10832 shlibpath_overrides_runpath=yes
10833 shlibpath_var=DYLD_LIBRARY_PATH
10834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10841 version_type=linux # correct to gnu/linux during the next big refactor
10844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10845 soname_spec='$libname$release$shared_ext$major'
10846 shlibpath_var=LD_LIBRARY_PATH
10849 freebsd* | dragonfly*)
10850 # DragonFly does not have aout. When/if they implement a new
10851 # versioning mechanism, adjust this.
10852 if test -x /usr/bin/objformat; then
10853 objformat=`/usr/bin/objformat`
10856 freebsd[23].*) objformat=aout ;;
10857 *) objformat=elf ;;
10860 version_type=freebsd-$objformat
10861 case $version_type in
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10873 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes
10878 freebsd3.[01]* | freebsdelf3.[01]*)
10879 shlibpath_overrides_runpath=yes
10880 hardcode_into_libs=yes
10882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10884 shlibpath_overrides_runpath=no
10885 hardcode_into_libs=yes
10887 *) # from 4.6 on, and DragonFly
10888 shlibpath_overrides_runpath=yes
10889 hardcode_into_libs=yes
10895 version_type=linux # correct to gnu/linux during the next big refactor
10898 dynamic_linker="$host_os runtime_loader"
10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900 soname_spec='$libname$release$shared_ext$major'
10901 shlibpath_var=LIBRARY_PATH
10902 shlibpath_overrides_runpath=no
10903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10904 hardcode_into_libs=yes
10907 hpux9* | hpux10* | hpux11*)
10908 # Give a soname corresponding to the major version so that dld.sl refuses to
10909 # link against other versions.
10916 hardcode_into_libs=yes
10917 dynamic_linker="$host_os dld.so"
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10921 soname_spec='$libname$release$shared_ext$major'
10922 if test 32 = "$HPUX_IA64_MODE"; then
10923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10924 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10927 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10932 hardcode_into_libs=yes
10933 dynamic_linker="$host_os dld.sl"
10934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10937 soname_spec='$libname$release$shared_ext$major'
10938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10943 dynamic_linker="$host_os dld.sl"
10944 shlibpath_var=SHLIB_PATH
10945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 soname_spec='$libname$release$shared_ext$major'
10950 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10951 postinstall_cmds='chmod 555 $lib'
10952 # or fails outright, so override atomically:
10953 install_override_mode=555
10957 version_type=linux # correct to gnu/linux during the next big refactor
10960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961 soname_spec='$libname$release$shared_ext$major'
10962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10968 irix5* | irix6* | nonstopux*)
10970 nonstopux*) version_type=nonstopux ;;
10972 if test yes = "$lt_cv_prog_gnu_ld"; then
10973 version_type=linux # correct to gnu/linux during the next big refactor
10980 soname_spec='$libname$release$shared_ext$major'
10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10983 irix5* | nonstopux*)
10984 libsuff= shlibsuff=
10987 case $LD in # libtool.m4 will add one of these switches to LD
10988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10989 libsuff= shlibsuff= libmagic=32-bit;;
10990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10991 libsuff=32 shlibsuff=N32 libmagic=N32;;
10992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10994 *) libsuff= shlibsuff= libmagic=never-match;;
10998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10999 shlibpath_overrides_runpath=no
11000 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11001 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11002 hardcode_into_libs=yes
11005 # No shared lib support for Linux oldld, aout, or coff.
11006 linux*oldld* | linux*aout* | linux*coff*)
11011 version_type=none # Android doesn't support versioned libraries.
11014 library_names_spec='$libname$release$shared_ext'
11015 soname_spec='$libname$release$shared_ext'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11020 # This implies no fast_install, which is unacceptable.
11021 # Some rework will be needed to allow for fast_install
11022 # before this can be enabled.
11023 hardcode_into_libs=yes
11025 dynamic_linker='Android linker'
11026 # Don't embed -rpath directories since the linker doesn't support them.
11027 hardcode_libdir_flag_spec='-L$libdir'
11030 # This must be glibc/ELF.
11031 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11032 version_type=linux # correct to gnu/linux during the next big refactor
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036 soname_spec='$libname$release$shared_ext$major'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
11041 # Some binutils ld are patched to set DT_RUNPATH
11042 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11043 $as_echo_n "(cached) " >&6
11045 lt_cv_shlibpath_overrides_runpath=no
11046 save_LDFLAGS=$LDFLAGS
11047 save_libdir=$libdir
11048 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11063 lt_cv_shlibpath_overrides_runpath=yes
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LDFLAGS=$save_LDFLAGS
11069 libdir=$save_libdir
11073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075 # This implies no fast_install, which is unacceptable.
11076 # Some rework will be needed to allow for fast_install
11077 # before this can be enabled.
11078 hardcode_into_libs=yes
11080 # Ideally, we could use ldconfig to report *all* directores which are
11081 # searched for libraries, however this is still not possible. Aside from not
11082 # being certain /sbin/ldconfig is available, command
11083 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11084 # even though it is searched at run-time. Try to do the best guess by
11085 # appending ld.so.conf contents (and includes) to the search path.
11086 if test -f /etc/ld.so.conf; then
11087 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' ' '`
11088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11091 # We used to test for /lib/ld.so.1 and disable shared libraries on
11092 # powerpc, because MkLinux only supported shared libraries with the
11093 # GNU dynamic linker. Since this was broken with cross compilers,
11094 # most powerpc-linux boxes support dynamic linking these days and
11095 # people can always --disable-shared, the test was removed, and we
11096 # assume the GNU/Linux dynamic linker is in use.
11097 dynamic_linker='GNU/Linux ld.so'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=no
11108 hardcode_into_libs=yes
11109 dynamic_linker='NetBSD ld.elf_so'
11116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11119 dynamic_linker='NetBSD (a.out) ld.so'
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122 soname_spec='$libname$release$shared_ext$major'
11123 dynamic_linker='NetBSD ld.elf_so'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 hardcode_into_libs=yes
11131 version_type=linux # correct to gnu/linux during the next big refactor
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 hardcode_into_libs=yes
11146 dynamic_linker='ldqnx.so'
11149 openbsd* | bitrig*)
11151 sys_lib_dlsearch_path_spec=/usr/lib
11153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11165 libname_spec='$name'
11166 version_type=windows
11170 # OS/2 can only load a DLL with a base name of 8 characters or less.
11171 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11172 v=$($ECHO $release$versuffix | tr -d .-);
11173 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11174 $ECHO $n$v`$shared_ext'
11175 library_names_spec='${libname}_dll.$libext'
11176 dynamic_linker='OS/2 ld.exe'
11177 shlibpath_var=BEGINLIBPATH
11178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11180 postinstall_cmds='base_file=`basename \$file`~
11181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11182 dldir=$destdir/`dirname \$dlpath`~
11183 test -d \$dldir || mkdir -p \$dldir~
11184 $install_prog $dir/$dlname \$dldir/$dlname~
11185 chmod a+x \$dldir/$dlname~
11186 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11187 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11190 dlpath=$dir/\$dldll~
11194 osf3* | osf4* | osf5*)
11198 soname_spec='$libname$release$shared_ext$major'
11199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11210 version_type=linux # correct to gnu/linux during the next big refactor
11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214 soname_spec='$libname$release$shared_ext$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11218 # ldd complains unless libraries are executable
11219 postinstall_cmds='chmod +x $lib'
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11225 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 if test yes = "$with_gnu_ld"; then
11235 version_type=linux # correct to gnu/linux during the next big refactor
11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237 soname_spec='$libname$release$shared_ext$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 case $host_vendor in
11241 shlibpath_overrides_runpath=no
11243 runpath_var=LD_RUN_PATH
11251 shlibpath_overrides_runpath=no
11252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11258 if test -d /usr/nec; then
11259 version_type=linux # correct to gnu/linux during the next big refactor
11260 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11261 soname_spec='$libname$shared_ext.$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11271 soname_spec='$libname$release$shared_ext$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11274 hardcode_into_libs=yes
11275 if test yes = "$with_gnu_ld"; then
11276 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11285 sys_lib_dlsearch_path_spec='/usr/lib'
11289 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11290 version_type=linux # correct to gnu/linux during the next big refactor
11293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11302 soname_spec='$libname$release$shared_ext$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11311 $as_echo "$dynamic_linker" >&6; }
11312 test no = "$dynamic_linker" && can_build_shared=no
11314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11315 if test yes = "$GCC"; then
11316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11319 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11320 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11323 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11324 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11327 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11328 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11330 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11331 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11333 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11334 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11435 if test -n "$hardcode_libdir_flag_spec" ||
11436 test -n "$runpath_var" ||
11437 test yes = "$hardcode_automatic"; then
11439 # We can hardcode non-existent directories.
11440 if test no != "$hardcode_direct" &&
11441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11442 # have to relink, otherwise we might link with an installed library
11443 # when we should be linking with a yet-to-be-installed one
11444 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11445 test no != "$hardcode_minus_L"; then
11446 # Linking always hardcodes the temporary library directory.
11447 hardcode_action=relink
11449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11450 hardcode_action=immediate
11453 # We cannot hardcode anything, or else we can only hardcode existing
11455 hardcode_action=unsupported
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11458 $as_echo "$hardcode_action" >&6; }
11460 if test relink = "$hardcode_action" ||
11461 test yes = "$inherit_rpath"; then
11462 # Fast installation is not supported
11463 enable_fast_install=no
11464 elif test yes = "$shlibpath_overrides_runpath" ||
11465 test no = "$enable_shared"; then
11466 # Fast installation is not necessary
11467 enable_fast_install=needless
11475 if test yes != "$enable_dlopen"; then
11476 enable_dlopen=unknown
11477 enable_dlopen_self=unknown
11478 enable_dlopen_self_static=unknown
11485 lt_cv_dlopen=load_add_on
11487 lt_cv_dlopen_self=yes
11490 mingw* | pw32* | cegcc*)
11491 lt_cv_dlopen=LoadLibrary
11496 lt_cv_dlopen=dlopen
11501 # if libdl is installed we need to link against it
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11504 if ${ac_cv_lib_dl_dlopen+:} false; then :
11505 $as_echo_n "(cached) " >&6
11507 ac_check_lib_save_LIBS=$LIBS
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 ac_cv_lib_dl_dlopen=yes
11530 ac_cv_lib_dl_dlopen=no
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11538 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11539 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11544 lt_cv_dlopen_self=yes
11551 # Don't try to run any link tests for TPF. We know it's impossible
11552 # because TPF is a cross-compiler, and we know how we open DSOs.
11553 lt_cv_dlopen=dlopen
11555 lt_cv_dlopen_self=no
11559 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11560 if test "x$ac_cv_func_shl_load" = xyes; then :
11561 lt_cv_dlopen=shl_load
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11564 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11565 if ${ac_cv_lib_dld_shl_load+:} false; then :
11566 $as_echo_n "(cached) " >&6
11568 ac_check_lib_save_LIBS=$LIBS
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11583 return shl_load ();
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_dld_shl_load=yes
11591 ac_cv_lib_dld_shl_load=no
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11598 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11599 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11600 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11602 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11603 if test "x$ac_cv_func_dlopen" = xyes; then :
11604 lt_cv_dlopen=dlopen
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11608 if ${ac_cv_lib_dl_dlopen+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 ac_check_lib_save_LIBS=$LIBS
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11616 /* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11631 if ac_fn_c_try_link "$LINENO"; then :
11632 ac_cv_lib_dl_dlopen=yes
11634 ac_cv_lib_dl_dlopen=no
11636 rm -f core conftest.err conftest.$ac_objext \
11637 conftest$ac_exeext conftest.$ac_ext
11638 LIBS=$ac_check_lib_save_LIBS
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11646 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11647 if ${ac_cv_lib_svld_dlopen+:} false; then :
11648 $as_echo_n "(cached) " >&6
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-lsvld $LIBS"
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11670 if ac_fn_c_try_link "$LINENO"; then :
11671 ac_cv_lib_svld_dlopen=yes
11673 ac_cv_lib_svld_dlopen=no
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11680 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11681 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11682 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11685 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11686 if ${ac_cv_lib_dld_dld_link+:} false; then :
11687 $as_echo_n "(cached) " >&6
11689 ac_check_lib_save_LIBS=$LIBS
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11704 return dld_link ();
11709 if ac_fn_c_try_link "$LINENO"; then :
11710 ac_cv_lib_dld_dld_link=yes
11712 ac_cv_lib_dld_dld_link=no
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11719 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11720 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11721 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11742 if test no = "$lt_cv_dlopen"; then
11748 case $lt_cv_dlopen in
11750 save_CPPFLAGS=$CPPFLAGS
11751 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11753 save_LDFLAGS=$LDFLAGS
11754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11757 LIBS="$lt_cv_dlopen_libs $LIBS"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11760 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11761 if ${lt_cv_dlopen_self+:} false; then :
11762 $as_echo_n "(cached) " >&6
11764 if test yes = "$cross_compiling"; then :
11765 lt_cv_dlopen_self=cross
11767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11768 lt_status=$lt_dlunknown
11769 cat > conftest.$ac_ext <<_LT_EOF
11770 #line $LINENO "configure"
11771 #include "confdefs.h"
11780 # define LT_DLGLOBAL RTLD_GLOBAL
11783 # define LT_DLGLOBAL DL_GLOBAL
11785 # define LT_DLGLOBAL 0
11789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11790 find out it does not work in some platform. */
11791 #ifndef LT_DLLAZY_OR_NOW
11793 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11796 # define LT_DLLAZY_OR_NOW DL_LAZY
11799 # define LT_DLLAZY_OR_NOW RTLD_NOW
11802 # define LT_DLLAZY_OR_NOW DL_NOW
11804 # define LT_DLLAZY_OR_NOW 0
11811 /* When -fvisibility=hidden is used, assume the code has been annotated
11812 correspondingly for the symbols needed. */
11813 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11814 int fnord () __attribute__((visibility("default")));
11817 int fnord () { return 42; }
11820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11821 int status = $lt_dlunknown;
11825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11829 else puts (dlerror ());
11831 /* dlclose (self); */
11839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11840 (eval $ac_link) 2>&5
11842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11843 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11844 (./conftest; exit; ) >&5 2>/dev/null
11846 case x$lt_status in
11847 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11848 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11849 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11852 # compilation failed
11853 lt_cv_dlopen_self=no
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11861 $as_echo "$lt_cv_dlopen_self" >&6; }
11863 if test yes = "$lt_cv_dlopen_self"; then
11864 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11866 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11867 if ${lt_cv_dlopen_self_static+:} false; then :
11868 $as_echo_n "(cached) " >&6
11870 if test yes = "$cross_compiling"; then :
11871 lt_cv_dlopen_self_static=cross
11873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11874 lt_status=$lt_dlunknown
11875 cat > conftest.$ac_ext <<_LT_EOF
11876 #line $LINENO "configure"
11877 #include "confdefs.h"
11886 # define LT_DLGLOBAL RTLD_GLOBAL
11889 # define LT_DLGLOBAL DL_GLOBAL
11891 # define LT_DLGLOBAL 0
11895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11896 find out it does not work in some platform. */
11897 #ifndef LT_DLLAZY_OR_NOW
11899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11902 # define LT_DLLAZY_OR_NOW DL_LAZY
11905 # define LT_DLLAZY_OR_NOW RTLD_NOW
11908 # define LT_DLLAZY_OR_NOW DL_NOW
11910 # define LT_DLLAZY_OR_NOW 0
11917 /* When -fvisibility=hidden is used, assume the code has been annotated
11918 correspondingly for the symbols needed. */
11919 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11920 int fnord () __attribute__((visibility("default")));
11923 int fnord () { return 42; }
11926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11927 int status = $lt_dlunknown;
11931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11935 else puts (dlerror ());
11937 /* dlclose (self); */
11945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11946 (eval $ac_link) 2>&5
11948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11950 (./conftest; exit; ) >&5 2>/dev/null
11952 case x$lt_status in
11953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11955 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11958 # compilation failed
11959 lt_cv_dlopen_self_static=no
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11967 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11970 CPPFLAGS=$save_CPPFLAGS
11971 LDFLAGS=$save_LDFLAGS
11976 case $lt_cv_dlopen_self in
11977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11978 *) enable_dlopen_self=unknown ;;
11981 case $lt_cv_dlopen_self_static in
11982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11983 *) enable_dlopen_self_static=unknown ;;
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12006 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12007 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12008 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12009 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12013 # FIXME - insert some real tests, host_os isn't really good enough
12016 if test -n "$STRIP"; then
12017 striplib="$STRIP -x"
12018 old_striplib="$STRIP -S"
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020 $as_echo "yes" >&6; }
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12044 # Report what library types will actually be built
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12048 $as_echo "$can_build_shared" >&6; }
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12051 $as_echo_n "checking whether to build shared libraries... " >&6; }
12052 test no = "$can_build_shared" && enable_shared=no
12054 # On AIX, shared libraries and static libraries use the same namespace, and
12055 # are all built from PIC.
12058 test yes = "$enable_shared" && enable_static=no
12059 if test -n "$RANLIB"; then
12060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12061 postinstall_cmds='$RANLIB $lib'
12066 if test ia64 != "$host_cpu"; then
12067 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12068 yes,aix,yes) ;; # shared object as lib.so file only
12069 yes,svr4,*) ;; # shared object as lib.so archive member only
12070 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12076 $as_echo "$enable_shared" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12079 $as_echo_n "checking whether to build static libraries... " >&6; }
12080 # Make sure either enable_shared or enable_static is yes.
12081 test yes = "$enable_shared" || enable_static=yes
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12083 $as_echo "$enable_static" >&6; }
12090 ac_cpp='$CPP $CPPFLAGS'
12091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12111 ac_config_commands="$ac_config_commands libtool"
12116 # Only expand once:
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
12123 $as_echo_n "checking target system type... " >&6; }
12124 if ${ac_cv_target+:} false; then :
12125 $as_echo_n "(cached) " >&6
12127 if test "x$target_alias" = x; then
12128 ac_cv_target=$ac_cv_host
12130 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
12131 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
12136 $as_echo "$ac_cv_target" >&6; }
12137 case $ac_cv_target in
12139 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
12141 target=$ac_cv_target
12142 ac_save_IFS=$IFS; IFS='-'
12143 set x $ac_cv_target
12148 # Remember, the first character of IFS is used to create $*,
12149 # except with old shells:
12152 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
12155 # The aliases save the names the user supplied, while $host etc.
12156 # will get canonicalized.
12157 test -n "$target_alias" &&
12158 test "$program_prefix$program_suffix$program_transform_name" = \
12160 program_prefix=${target_alias}-
12162 am__api_version='1.16'
12164 # Find a good install program. We prefer a C program (faster),
12165 # so one script is as good as another. But avoid the broken or
12166 # incompatible versions:
12167 # SysV /etc/install, /usr/sbin/install
12168 # SunOS /usr/etc/install
12169 # IRIX /sbin/install
12171 # AmigaOS /C/install, which installs bootblocks on floppy discs
12172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12175 # OS/2's system install, which has a completely different semantic
12176 # ./install, which can be erroneously created by make from ./install.sh.
12177 # Reject install programs that cannot install multiple files.
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12179 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12180 if test -z "$INSTALL"; then
12181 if ${ac_cv_path_install+:} false; then :
12182 $as_echo_n "(cached) " >&6
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12188 test -z "$as_dir" && as_dir=.
12189 # Account for people who put trailing slashes in PATH elements.
12190 case $as_dir/ in #((
12191 ./ | .// | /[cC]/* | \
12192 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12193 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12196 # OSF1 and SCO ODT 3.0 have their own names for install.
12197 # Don't use installbsd from OSF since it installs stuff as root
12199 for ac_prog in ginstall scoinst install; do
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12202 if test $ac_prog = install &&
12203 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12204 # AIX install. It has an incompatible calling convention.
12206 elif test $ac_prog = install &&
12207 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12208 # program-specific install script used by HP pwplus--don't use.
12211 rm -rf conftest.one conftest.two conftest.dir
12212 echo one > conftest.one
12213 echo two > conftest.two
12215 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12216 test -s conftest.one && test -s conftest.two &&
12217 test -s conftest.dir/conftest.one &&
12218 test -s conftest.dir/conftest.two
12220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12233 rm -rf conftest.one conftest.two conftest.dir
12236 if test "${ac_cv_path_install+set}" = set; then
12237 INSTALL=$ac_cv_path_install
12239 # As a last resort, use the slow shell script. Don't cache a
12240 # value for INSTALL within a source directory, because that will
12241 # break other packages using the cache if that directory is
12242 # removed, or if the value is a relative name.
12243 INSTALL=$ac_install_sh
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12247 $as_echo "$INSTALL" >&6; }
12249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12250 # It thinks the first close brace ends the variable substitution.
12251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12258 $as_echo_n "checking whether build environment is sane... " >&6; }
12259 # Reject unsafe characters in $srcdir or the absolute working directory
12260 # name. Accept space and tab only in the latter.
12264 *[\\\"\#\$\&\'\`$am_lf]*)
12265 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12268 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12269 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12272 # Do 'set' in a subshell so we don't clobber the current shell's
12273 # arguments. Must try -L first in case configure is actually a
12274 # symlink; some systems play weird games with the mod time of symlinks
12275 # (eg FreeBSD returns the mod time of the symlink's containing
12279 for am_try in 1 2; do
12280 echo "timestamp, slept: $am_has_slept" > conftest.file
12281 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12282 if test "$*" = "X"; then
12284 set X `ls -t "$srcdir/configure" conftest.file`
12286 if test "$*" != "X $srcdir/configure conftest.file" \
12287 && test "$*" != "X conftest.file $srcdir/configure"; then
12289 # If neither matched, then we have a broken ls. This can happen
12290 # if, for instance, CONFIG_SHELL is bash and it inherits a
12291 # broken ls alias from the environment. This has actually
12292 # happened. Such a system could not be considered "sane".
12293 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12294 alias in your environment" "$LINENO" 5
12296 if test "$2" = conftest.file || test $am_try -eq 2; then
12303 test "$2" = conftest.file
12309 as_fn_error $? "newly created file is older than distributed files!
12310 Check your system clock" "$LINENO" 5
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 # If we didn't sleep, we still need to ensure time stamps of config.status and
12315 # generated files are strictly newer.
12317 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12322 rm -f conftest.file
12324 test "$program_prefix" != NONE &&
12325 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12326 # Use a double $ so make ignores it.
12327 test "$program_suffix" != NONE &&
12328 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12329 # Double any \ or $.
12330 # By default was `s,x,x', remove it if useless.
12331 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12332 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
12334 if test x"${MISSING+set}" != xset; then
12335 case $am_aux_dir in
12337 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12339 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12342 # Use eval to expand $SHELL
12343 if eval "$MISSING --is-lightweight"; then
12344 am_missing_run="$MISSING "
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12348 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12351 if test x"${install_sh+set}" != xset; then
12352 case $am_aux_dir in
12354 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12356 install_sh="\${SHELL} $am_aux_dir/install-sh"
12360 # Installed binaries are usually stripped using 'strip' when the user
12361 # run "make install-strip". However 'strip' might not be the right
12362 # tool to use in cross-compilation environments, therefore Automake
12363 # will honor the 'STRIP' environment variable to overrule this program.
12364 if test "$cross_compiling" != no; then
12365 if test -n "$ac_tool_prefix"; then
12366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12367 set dummy ${ac_tool_prefix}strip; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_STRIP+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 if test -n "$STRIP"; then
12374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 STRIP=$ac_cv_prog_STRIP
12394 if test -n "$STRIP"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12396 $as_echo "$STRIP" >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12404 if test -z "$ac_cv_prog_STRIP"; then
12406 # Extract the first word of "strip", so it can be a program name with args.
12407 set dummy strip; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 if test -n "$ac_ct_STRIP"; then
12414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423 ac_cv_prog_ac_ct_STRIP="strip"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12434 if test -n "$ac_ct_STRIP"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12436 $as_echo "$ac_ct_STRIP" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12442 if test "x$ac_ct_STRIP" = x; then
12445 case $cross_compiling:$ac_tool_warned in
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12449 ac_tool_warned=yes ;;
12454 STRIP="$ac_cv_prog_STRIP"
12458 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12461 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12462 if test -z "$MKDIR_P"; then
12463 if ${ac_cv_path_mkdir+:} false; then :
12464 $as_echo_n "(cached) " >&6
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12470 test -z "$as_dir" && as_dir=.
12471 for ac_prog in mkdir gmkdir; do
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12474 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12475 'mkdir (GNU coreutils) '* | \
12476 'mkdir (coreutils) '* | \
12477 'mkdir (fileutils) '4.1*)
12478 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12488 test -d ./--version && rmdir ./--version
12489 if test "${ac_cv_path_mkdir+set}" = set; then
12490 MKDIR_P="$ac_cv_path_mkdir -p"
12492 # As a last resort, use the slow shell script. Don't cache a
12493 # value for MKDIR_P within a source directory, because that will
12494 # break other packages using the cache if that directory is
12495 # removed, or if the value is a relative name.
12496 MKDIR_P="$ac_install_sh -d"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12500 $as_echo "$MKDIR_P" >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12507 $as_echo_n "(cached) " >&6
12509 cat >conftest.make <<\_ACEOF
12512 @echo '@@@%%%=$(MAKE)=@@@%%%'
12514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12516 *@@@%%%=?*=@@@%%%*)
12517 eval ac_cv_prog_make_${ac_make}_set=yes;;
12519 eval ac_cv_prog_make_${ac_make}_set=no;;
12521 rm -f conftest.make
12523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 SET_MAKE="MAKE=${MAKE-make}"
12533 rm -rf .tst 2>/dev/null
12534 mkdir .tst 2>/dev/null
12535 if test -d .tst; then
12540 rmdir .tst 2>/dev/null
12542 DEPDIR="${am__leading_dot}deps"
12544 ac_config_commands="$ac_config_commands depfiles"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12547 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
12548 cat > confinc.mk << 'END'
12550 @echo this is the am__doit target >confinc.out
12555 # BSD make does it like this.
12556 echo '.include "confinc.mk" # ignored' > confmf.BSD
12557 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12558 echo 'include confinc.mk # ignored' > confmf.GNU
12560 for s in GNU BSD; do
12561 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12562 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }
12566 case $?:`cat confinc.out 2>/dev/null` in #(
12567 '0:this is the am__doit target') :
12570 am__include='.include' am__quote='"' ;; #(
12572 am__include='include' am__quote='' ;;
12577 if test "$am__include" != "#"; then
12578 _am_result="yes ($s style)"
12582 rm -f confinc.* confmf.*
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12584 $as_echo "${_am_result}" >&6; }
12586 # Check whether --enable-dependency-tracking was given.
12587 if test "${enable_dependency_tracking+set}" = set; then :
12588 enableval=$enable_dependency_tracking;
12591 if test "x$enable_dependency_tracking" != xno; then
12592 am_depcomp="$ac_aux_dir/depcomp"
12596 if test "x$enable_dependency_tracking" != xno; then
12605 # Check whether --enable-silent-rules was given.
12606 if test "${enable_silent_rules+set}" = set; then :
12607 enableval=$enable_silent_rules;
12610 case $enable_silent_rules in # (((
12611 yes) AM_DEFAULT_VERBOSITY=0;;
12612 no) AM_DEFAULT_VERBOSITY=1;;
12613 *) AM_DEFAULT_VERBOSITY=1;;
12615 am_make=${MAKE-make}
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12617 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12618 if ${am_cv_make_support_nested_variables+:} false; then :
12619 $as_echo_n "(cached) " >&6
12621 if $as_echo 'TRUE=$(BAR$(V))
12627 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12628 am_cv_make_support_nested_variables=yes
12630 am_cv_make_support_nested_variables=no
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12634 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12635 if test $am_cv_make_support_nested_variables = yes; then
12637 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12639 AM_V=$AM_DEFAULT_VERBOSITY
12640 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12644 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12645 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12646 # is not polluted with repeated "-I."
12647 am__isrc=' -I$(srcdir)'
12648 # test to see if srcdir already configured
12649 if test -f $srcdir/config.status; then
12650 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12654 # test whether we have cygpath
12655 if test -z "$CYGPATH_W"; then
12656 if (cygpath --version) >/dev/null 2>/dev/null; then
12657 CYGPATH_W='cygpath -w'
12664 # Define the identity of the package.
12669 cat >>confdefs.h <<_ACEOF
12670 #define PACKAGE "$PACKAGE"
12674 cat >>confdefs.h <<_ACEOF
12675 #define VERSION "$VERSION"
12678 # Some tools Automake needs.
12680 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12683 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12686 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12689 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12692 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12694 # For better backward compatibility. To be removed once Automake 1.9.x
12695 # dies out for good. For more background, see:
12696 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12697 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12698 mkdir_p='$(MKDIR_P)'
12700 # We need awk for the "check" target (and possibly the TAP driver). The
12701 # system "awk" is bad on some platforms.
12702 # Always define AMTAR for backward compatibility. Yes, it's still used
12703 # in the wild :-( We should find a proper way to deprecate it ...
12704 AMTAR='$${TAR-tar}'
12707 # We'll loop over all known methods to create a tar archive until one works.
12708 _am_tools='gnutar pax cpio none'
12710 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12716 depcc="$CC" am_compiler_list=
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12719 $as_echo_n "checking dependency style of $depcc... " >&6; }
12720 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12721 $as_echo_n "(cached) " >&6
12723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12724 # We make a subdir and do the tests there. Otherwise we can end up
12725 # making bogus files that we don't know about and never remove. For
12726 # instance it was reported that on HP-UX the gcc test will end up
12727 # making a dummy file named 'D' -- because '-MD' means "put the output
12729 rm -rf conftest.dir
12731 # Copy depcomp to subdir because otherwise we won't find it if we're
12732 # using a relative directory.
12733 cp "$am_depcomp" conftest.dir
12735 # We will build objects and dependencies in a subdirectory because
12736 # it helps to detect inapplicable dependency modes. For instance
12737 # both Tru64's cc and ICC support -MD to output dependencies as a
12738 # side effect of compilation, but ICC will put the dependencies in
12739 # the current directory while Tru64 will put them in the object
12743 am_cv_CC_dependencies_compiler_type=none
12744 if test "$am_compiler_list" = ""; then
12745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12747 am__universal=false
12748 case " $depcc " in #(
12749 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12752 for depmode in $am_compiler_list; do
12753 # Setup a source with many dependencies, because some compilers
12754 # like to wrap large dependency lists on column 80 (with \), and
12755 # we should not choose a depcomp mode which is confused by this.
12757 # We need to recreate these files for each test, as the compiler may
12758 # overwrite some of them when testing with obscure command lines.
12759 # This happens at least with the AIX C compiler.
12761 for i in 1 2 3 4 5 6; do
12762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12764 # Solaris 10 /bin/sh.
12765 echo '/* dummy */' > sub/conftst$i.h
12767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12769 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12770 # mode. It turns out that the SunPro C++ compiler does not properly
12771 # handle '-M -o', and we need to detect this. Also, some Intel
12772 # versions had trouble with output in subdirs.
12773 am__obj=sub/conftest.${OBJEXT-o}
12774 am__minus_obj="-o $am__obj"
12777 # This depmode causes a compiler race in universal mode.
12778 test "$am__universal" = false || continue
12781 # After this tag, mechanisms are not by side-effect, so they'll
12782 # only be used when explicitly requested.
12783 if test "x$enable_dependency_tracking" = xyes; then
12789 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12790 # This compiler won't grok '-c -o', but also, the minuso test has
12791 # not run yet. These depmodes are late enough in the game, and
12792 # so weak that their functioning should not be impacted.
12793 am__obj=conftest.${OBJEXT-o}
12798 if depmode=$depmode \
12799 source=sub/conftest.c object=$am__obj \
12800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12802 >/dev/null 2>conftest.err &&
12803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12807 # icc doesn't choke on unknown options, it will just issue warnings
12808 # or remarks (even with -Werror). So we grep stderr for any message
12809 # that says an option was ignored or not supported.
12810 # When given -MP, icc 7.0 and 7.1 complain thusly:
12811 # icc: Command line warning: ignoring option '-M'; no argument required
12812 # The diagnosis changed in icc 8.0:
12813 # icc: Command line remark: option '-MP' not supported
12814 if (grep 'ignoring option' conftest.err ||
12815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12816 am_cv_CC_dependencies_compiler_type=$depmode
12823 rm -rf conftest.dir
12825 am_cv_CC_dependencies_compiler_type=none
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12830 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12831 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12834 test "x$enable_dependency_tracking" != xno \
12835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12836 am__fastdepCC_TRUE=
12837 am__fastdepCC_FALSE='#'
12839 am__fastdepCC_TRUE='#'
12840 am__fastdepCC_FALSE=
12845 # POSIX will say in a future version that running "rm -f" with no argument
12846 # is OK; and we want to be able to make that assumption in our Makefile
12847 # recipes. So use an aggressive probe to check that the usage we want is
12848 # actually supported "in the wild" to an acceptable degree.
12849 # See automake bug#10828.
12850 # To make any issue more visible, cause the running configure to be aborted
12851 # by default if the 'rm' program in use doesn't match our expectations; the
12852 # user can still override this though.
12853 if rm -f && rm -fr && rm -rf; then : OK; else
12857 Your 'rm' program seems unable to run without file operands specified
12858 on the command line, even when the '-f' option is present. This is contrary
12859 to the behaviour of most rm programs out there, and not conforming with
12860 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12862 Please tell bug-automake@gnu.org about your system, including the value
12863 of your $PATH and any error possibly output before this message. This
12864 can help us improve future automake versions.
12867 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12868 echo 'Configuration will proceed anyway, since you have set the' >&2
12869 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12873 Aborting the configuration process, to ensure you take notice of the issue.
12875 You can download and install GNU coreutils to get an 'rm' implementation
12876 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12878 If you want to complete the configuration process using your problematic
12879 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12880 to "yes", and re-run configure.
12883 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12888 # Check whether --enable-silent-rules was given.
12889 if test "${enable_silent_rules+set}" = set; then :
12890 enableval=$enable_silent_rules;
12893 case $enable_silent_rules in # (((
12894 yes) AM_DEFAULT_VERBOSITY=0;;
12895 no) AM_DEFAULT_VERBOSITY=1;;
12896 *) AM_DEFAULT_VERBOSITY=0;;
12898 am_make=${MAKE-make}
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12900 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12901 if ${am_cv_make_support_nested_variables+:} false; then :
12902 $as_echo_n "(cached) " >&6
12904 if $as_echo 'TRUE=$(BAR$(V))
12910 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12911 am_cv_make_support_nested_variables=yes
12913 am_cv_make_support_nested_variables=no
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12917 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12918 if test $am_cv_make_support_nested_variables = yes; then
12920 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12922 AM_V=$AM_DEFAULT_VERBOSITY
12923 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12935 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
12936 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
12937 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
12939 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
12943 # Check whether --enable-werror was given.
12944 if test "${enable_werror+set}" = set; then :
12945 enableval=$enable_werror; werror=$enableval
12951 # Check whether --enable-debug was given.
12952 if test "${enable_debug+set}" = set; then :
12953 enableval=$enable_debug; debug=$enableval
12959 # Check whether --enable-threads was given.
12960 if test "${enable_threads+set}" = set; then :
12961 enableval=$enable_threads; threads=$enableval
12967 # Check whether --enable-app was given.
12968 if test "${enable_app+set}" = set; then :
12969 enableval=$enable_app; request_app=$enableval
12975 # Check whether --enable-hpack-tools was given.
12976 if test "${enable_hpack_tools+set}" = set; then :
12977 enableval=$enable_hpack_tools; request_hpack_tools=$enableval
12979 request_hpack_tools=check
12983 # Check whether --enable-asio-lib was given.
12984 if test "${enable_asio_lib+set}" = set; then :
12985 enableval=$enable_asio_lib; request_asio_lib=$enableval
12987 request_asio_lib=no
12991 # Check whether --enable-examples was given.
12992 if test "${enable_examples+set}" = set; then :
12993 enableval=$enable_examples; request_examples=$enableval
12995 request_examples=check
12999 # Check whether --enable-python-bindings was given.
13000 if test "${enable_python_bindings+set}" = set; then :
13001 enableval=$enable_python_bindings; request_python_bindings=$enableval
13003 request_python_bindings=check
13007 # Check whether --enable-failmalloc was given.
13008 if test "${enable_failmalloc+set}" = set; then :
13009 enableval=$enable_failmalloc; request_failmalloc=$enableval
13011 request_failmalloc=yes
13015 # Check whether --enable-lib-only was given.
13016 if test "${enable_lib_only+set}" = set; then :
13017 enableval=$enable_lib_only; request_lib_only=$enableval
13019 request_lib_only=no
13024 # Check whether --with-libxml2 was given.
13025 if test "${with_libxml2+set}" = set; then :
13026 withval=$with_libxml2; request_libxml2=$withval
13028 request_libxml2=check
13033 # Check whether --with-jemalloc was given.
13034 if test "${with_jemalloc+set}" = set; then :
13035 withval=$with_jemalloc; request_jemalloc=$withval
13037 request_jemalloc=check
13042 # Check whether --with-systemd was given.
13043 if test "${with_systemd+set}" = set; then :
13044 withval=$with_systemd; request_systemd=$withval
13046 request_systemd=check
13051 # Check whether --with-mruby was given.
13052 if test "${with_mruby+set}" = set; then :
13053 withval=$with_mruby; request_mruby=$withval
13060 # Check whether --with-neverbleed was given.
13061 if test "${with_neverbleed+set}" = set; then :
13062 withval=$with_neverbleed; request_neverbleed=$withval
13064 request_neverbleed=no
13069 # Check whether --with-cython was given.
13070 if test "${with_cython+set}" = set; then :
13071 withval=$with_cython; cython_path=$withval
13078 ac_cpp='$CPP $CPPFLAGS'
13079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13082 if test -n "$ac_tool_prefix"; then
13083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if ${ac_cv_prog_CC+:} false; then :
13088 $as_echo_n "(cached) " >&6
13090 if test -n "$CC"; then
13091 ac_cv_prog_CC="$CC" # Let the user override the test.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 if test -n "$CC"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13113 $as_echo "$CC" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13121 if test -z "$ac_cv_prog_CC"; then
13123 # Extract the first word of "gcc", so it can be a program name with args.
13124 set dummy gcc; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13128 $as_echo_n "(cached) " >&6
13130 if test -n "$ac_ct_CC"; then
13131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_ac_ct_CC="gcc"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13151 if test -n "$ac_ct_CC"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13153 $as_echo "$ac_ct_CC" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13159 if test "x$ac_ct_CC" = x; then
13162 case $cross_compiling:$ac_tool_warned in
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166 ac_tool_warned=yes ;;
13171 CC="$ac_cv_prog_CC"
13174 if test -z "$CC"; then
13175 if test -n "$ac_tool_prefix"; then
13176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13177 set dummy ${ac_tool_prefix}cc; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if ${ac_cv_prog_CC+:} false; then :
13181 $as_echo_n "(cached) " >&6
13183 if test -n "$CC"; then
13184 ac_cv_prog_CC="$CC" # Let the user override the test.
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13193 ac_cv_prog_CC="${ac_tool_prefix}cc"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 if test -n "$CC"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13206 $as_echo "$CC" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13215 if test -z "$CC"; then
13216 # Extract the first word of "cc", so it can be a program name with args.
13217 set dummy cc; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_prog_CC+:} false; then :
13221 $as_echo_n "(cached) " >&6
13223 if test -n "$CC"; then
13224 ac_cv_prog_CC="$CC" # Let the user override the test.
13226 ac_prog_rejected=no
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13235 ac_prog_rejected=yes
13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 if test $ac_prog_rejected = yes; then
13247 # We found a bogon in the path, so make sure we never use it.
13248 set dummy $ac_cv_prog_CC
13250 if test $# != 0; then
13251 # We chose a different compiler from the bogus one.
13252 # However, it has the same basename, so the bogon will be chosen
13253 # first if we set CC to just the basename; use the full file name.
13255 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13261 if test -n "$CC"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13263 $as_echo "$CC" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13271 if test -z "$CC"; then
13272 if test -n "$ac_tool_prefix"; then
13273 for ac_prog in cl.exe
13275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_prog_CC+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 if test -n "$CC"; then
13283 ac_cv_prog_CC="$CC" # Let the user override the test.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 if test -n "$CC"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13305 $as_echo "$CC" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13312 test -n "$CC" && break
13315 if test -z "$CC"; then
13317 for ac_prog in cl.exe
13319 # Extract the first word of "$ac_prog", so it can be a program name with args.
13320 set dummy $ac_prog; ac_word=$2
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322 $as_echo_n "checking for $ac_word... " >&6; }
13323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 if test -n "$ac_ct_CC"; then
13327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13333 test -z "$as_dir" && as_dir=.
13334 for ac_exec_ext in '' $ac_executable_extensions; do
13335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336 ac_cv_prog_ac_ct_CC="$ac_prog"
13337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13347 if test -n "$ac_ct_CC"; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13349 $as_echo "$ac_ct_CC" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13356 test -n "$ac_ct_CC" && break
13359 if test "x$ac_ct_CC" = x; then
13362 case $cross_compiling:$ac_tool_warned in
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13366 ac_tool_warned=yes ;;
13375 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13377 as_fn_error $? "no acceptable C compiler found in \$PATH
13378 See \`config.log' for more details" "$LINENO" 5; }
13380 # Provide some information about the compiler.
13381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13384 for ac_option in --version -v -V -qversion; do
13385 { { ac_try="$ac_compiler $ac_option >&5"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13391 $as_echo "$ac_try_echo"; } >&5
13392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13394 if test -s conftest.err; then
13396 ... rest of stderr output deleted ...
13397 10q' conftest.err >conftest.er1
13398 cat conftest.er1 >&5
13400 rm -f conftest.er1 conftest.err
13401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13402 test $ac_status = 0; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13407 if ${ac_cv_c_compiler_gnu+:} false; then :
13408 $as_echo_n "(cached) " >&6
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425 ac_compiler_gnu=yes
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13435 if test $ac_compiler_gnu = yes; then
13440 ac_test_CFLAGS=${CFLAGS+set}
13441 ac_save_CFLAGS=$CFLAGS
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13444 if ${ac_cv_prog_cc_g+:} false; then :
13445 $as_echo_n "(cached) " >&6
13447 ac_save_c_werror_flag=$ac_c_werror_flag
13448 ac_c_werror_flag=yes
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13462 if ac_fn_c_try_compile "$LINENO"; then :
13463 ac_cv_prog_cc_g=yes
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13477 if ac_fn_c_try_compile "$LINENO"; then :
13480 ac_c_werror_flag=$ac_save_c_werror_flag
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13493 if ac_fn_c_try_compile "$LINENO"; then :
13494 ac_cv_prog_cc_g=yes
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 ac_c_werror_flag=$ac_save_c_werror_flag
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13504 $as_echo "$ac_cv_prog_cc_g" >&6; }
13505 if test "$ac_test_CFLAGS" = set; then
13506 CFLAGS=$ac_save_CFLAGS
13507 elif test $ac_cv_prog_cc_g = yes; then
13508 if test "$GCC" = yes; then
13514 if test "$GCC" = yes; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13522 if ${ac_cv_prog_cc_c89+:} false; then :
13523 $as_echo_n "(cached) " >&6
13525 ac_cv_prog_cc_c89=no
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 #include <stdarg.h>
13532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13533 struct buf { int x; };
13534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13535 static char *e (p, i)
13541 static char *f (char * (*g) (char **, int), char **p, ...)
13546 s = g (p, va_arg (v,int));
13551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13552 function prototypes and stuff, but not '\xHH' hex character constants.
13553 These don't provoke an error unfortunately, instead are silently treated
13554 as 'x'. The following induces an error, until -std is added to get
13555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13556 array size at least. It's necessary to write '\x00'==0 to get something
13557 that's true only with -std. */
13558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13561 inside strings and character constants. */
13563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13565 int test (int i, double x);
13566 struct s1 {int (*f) (int a);};
13567 struct s2 {int (*f) (double a);};
13568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13582 CC="$ac_save_CC $ac_arg"
13583 if ac_fn_c_try_compile "$LINENO"; then :
13584 ac_cv_prog_cc_c89=$ac_arg
13586 rm -f core conftest.err conftest.$ac_objext
13587 test "x$ac_cv_prog_cc_c89" != "xno" && break
13589 rm -f conftest.$ac_ext
13594 case "x$ac_cv_prog_cc_c89" in
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13597 $as_echo "none needed" >&6; } ;;
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13600 $as_echo "unsupported" >&6; } ;;
13602 CC="$CC $ac_cv_prog_cc_c89"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13604 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13606 if test "x$ac_cv_prog_cc_c89" != xno; then :
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13617 ac_cpp='$CPP $CPPFLAGS'
13618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13622 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13623 if ${am_cv_prog_cc_c_o+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13637 # Make sure it works both with $CC and with simple cc.
13638 # Following AC_PROG_CC_C_O, we do the test twice because some
13639 # compilers refuse to overwrite an existing .o file with -o,
13640 # though they will create one.
13641 am_cv_prog_cc_c_o=yes
13642 for am_i in 1 2; do
13643 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13644 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } \
13648 && test -f conftest2.$ac_objext; then
13651 am_cv_prog_cc_c_o=no
13655 rm -f core conftest*
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13659 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13660 if test "$am_cv_prog_cc_c_o" != yes; then
13661 # Losing compiler, so override with the script.
13662 # FIXME: It is wrong to rewrite CC.
13663 # But if we don't then we get into trouble of one sort or another.
13664 # A longer-term fix would be to have automake use am__CC in this case,
13665 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13666 CC="$am_aux_dir/compile $CC"
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13676 ac_cpp='$CXXCPP $CPPFLAGS'
13677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13680 if test -z "$CXX"; then
13681 if test -n "$CCC"; then
13684 if test -n "$ac_tool_prefix"; then
13685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if ${ac_cv_prog_CXX+:} false; then :
13692 $as_echo_n "(cached) " >&6
13694 if test -n "$CXX"; then
13695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13701 test -z "$as_dir" && as_dir=.
13702 for ac_exec_ext in '' $ac_executable_extensions; do
13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 CXX=$ac_cv_prog_CXX
13715 if test -n "$CXX"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13717 $as_echo "$CXX" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13724 test -n "$CXX" && break
13727 if test -z "$CXX"; then
13729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13731 # Extract the first word of "$ac_prog", so it can be a program name with args.
13732 set dummy $ac_prog; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13734 $as_echo_n "checking for $ac_word... " >&6; }
13735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13736 $as_echo_n "(cached) " >&6
13738 if test -n "$ac_ct_CXX"; then
13739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748 ac_cv_prog_ac_ct_CXX="$ac_prog"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13759 if test -n "$ac_ct_CXX"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13761 $as_echo "$ac_ct_CXX" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13768 test -n "$ac_ct_CXX" && break
13771 if test "x$ac_ct_CXX" = x; then
13774 case $cross_compiling:$ac_tool_warned in
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13778 ac_tool_warned=yes ;;
13786 # Provide some information about the compiler.
13787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13790 for ac_option in --version -v -V -qversion; do
13791 { { ac_try="$ac_compiler $ac_option >&5"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13797 $as_echo "$ac_try_echo"; } >&5
13798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13800 if test -s conftest.err; then
13802 ... rest of stderr output deleted ...
13803 10q' conftest.err >conftest.er1
13804 cat conftest.er1 >&5
13806 rm -f conftest.er1 conftest.err
13807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13808 test $ac_status = 0; }
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13813 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13814 $as_echo_n "(cached) " >&6
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13830 if ac_fn_cxx_try_compile "$LINENO"; then :
13831 ac_compiler_gnu=yes
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13841 if test $ac_compiler_gnu = yes; then
13846 ac_test_CXXFLAGS=${CXXFLAGS+set}
13847 ac_save_CXXFLAGS=$CXXFLAGS
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13850 if ${ac_cv_prog_cxx_g+:} false; then :
13851 $as_echo_n "(cached) " >&6
13853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13854 ac_cxx_werror_flag=yes
13855 ac_cv_prog_cxx_g=no
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13868 if ac_fn_cxx_try_compile "$LINENO"; then :
13869 ac_cv_prog_cxx_g=yes
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13883 if ac_fn_cxx_try_compile "$LINENO"; then :
13886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13899 if ac_fn_cxx_try_compile "$LINENO"; then :
13900 ac_cv_prog_cxx_g=yes
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13911 if test "$ac_test_CXXFLAGS" = set; then
13912 CXXFLAGS=$ac_save_CXXFLAGS
13913 elif test $ac_cv_prog_cxx_g = yes; then
13914 if test "$GXX" = yes; then
13920 if test "$GXX" = yes; then
13927 ac_cpp='$CPP $CPPFLAGS'
13928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13934 func_stripname_cnf ()
13937 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13938 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13940 } # func_stripname_cnf
13942 if test -n "$CXX" && ( test no != "$CXX" &&
13943 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13944 (test g++ != "$CXX"))); then
13946 ac_cpp='$CXXCPP $CPPFLAGS'
13947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13951 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13952 if test -z "$CXXCPP"; then
13953 if ${ac_cv_prog_CXXCPP+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 # Double quotes because CXXCPP needs to be expanded
13957 for CXXCPP in "$CXX -E" "/lib/cpp"
13959 ac_preproc_ok=false
13960 for ac_cxx_preproc_warn_flag in '' yes
13962 # Use a header file that comes with gcc, so configuring glibc
13963 # with a fresh cross-compiler works.
13964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13965 # <limits.h> exists even on freestanding compilers.
13966 # On the NeXT, cc -E runs the code through the compiler's parser,
13967 # not just through cpp. "Syntax error" is here to catch this case.
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 # include <limits.h>
13973 # include <assert.h>
13977 if ac_fn_cxx_try_cpp "$LINENO"; then :
13980 # Broken: fails on valid input.
13983 rm -f conftest.err conftest.i conftest.$ac_ext
13985 # OK, works on sane cases. Now check whether nonexistent headers
13986 # can be detected and how.
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 #include <ac_nonexistent.h>
13991 if ac_fn_cxx_try_cpp "$LINENO"; then :
13992 # Broken: success on invalid input.
13995 # Passes both tests.
13999 rm -f conftest.err conftest.i conftest.$ac_ext
14002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14003 rm -f conftest.i conftest.err conftest.$ac_ext
14004 if $ac_preproc_ok; then :
14009 ac_cv_prog_CXXCPP=$CXXCPP
14012 CXXCPP=$ac_cv_prog_CXXCPP
14014 ac_cv_prog_CXXCPP=$CXXCPP
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14017 $as_echo "$CXXCPP" >&6; }
14018 ac_preproc_ok=false
14019 for ac_cxx_preproc_warn_flag in '' yes
14021 # Use a header file that comes with gcc, so configuring glibc
14022 # with a fresh cross-compiler works.
14023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024 # <limits.h> exists even on freestanding compilers.
14025 # On the NeXT, cc -E runs the code through the compiler's parser,
14026 # not just through cpp. "Syntax error" is here to catch this case.
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14030 # include <limits.h>
14032 # include <assert.h>
14036 if ac_fn_cxx_try_cpp "$LINENO"; then :
14039 # Broken: fails on valid input.
14042 rm -f conftest.err conftest.i conftest.$ac_ext
14044 # OK, works on sane cases. Now check whether nonexistent headers
14045 # can be detected and how.
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <ac_nonexistent.h>
14050 if ac_fn_cxx_try_cpp "$LINENO"; then :
14051 # Broken: success on invalid input.
14054 # Passes both tests.
14058 rm -f conftest.err conftest.i conftest.$ac_ext
14061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14062 rm -f conftest.i conftest.err conftest.$ac_ext
14063 if $ac_preproc_ok; then :
14066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14068 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14069 See \`config.log' for more details" "$LINENO" 5; }
14073 ac_cpp='$CPP $CPPFLAGS'
14074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14079 _lt_caught_CXX_error=yes
14083 ac_cpp='$CXXCPP $CPPFLAGS'
14084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14088 archive_cmds_need_lc_CXX=no
14089 allow_undefined_flag_CXX=
14090 always_export_symbols_CXX=no
14091 archive_expsym_cmds_CXX=
14092 compiler_needs_object_CXX=no
14093 export_dynamic_flag_spec_CXX=
14094 hardcode_direct_CXX=no
14095 hardcode_direct_absolute_CXX=no
14096 hardcode_libdir_flag_spec_CXX=
14097 hardcode_libdir_separator_CXX=
14098 hardcode_minus_L_CXX=no
14099 hardcode_shlibpath_var_CXX=unsupported
14100 hardcode_automatic_CXX=no
14101 inherit_rpath_CXX=no
14103 module_expsym_cmds_CXX=
14104 link_all_deplibs_CXX=unknown
14105 old_archive_cmds_CXX=$old_archive_cmds
14106 reload_flag_CXX=$reload_flag
14107 reload_cmds_CXX=$reload_cmds
14108 no_undefined_flag_CXX=
14109 whole_archive_flag_spec_CXX=
14110 enable_shared_with_static_runtimes_CXX=no
14112 # Source file extension for C++ test sources.
14115 # Object file extension for compiled C++ test sources.
14119 # No sense in running all these tests if we already determined that
14120 # the CXX compiler isn't working. Some variables (like enable_shared)
14121 # are currently assumed to apply to all compilers on this platform,
14122 # and will be corrupted by setting them based on a non-working compiler.
14123 if test yes != "$_lt_caught_CXX_error"; then
14124 # Code to be used in simple compile tests
14125 lt_simple_compile_test_code="int some_variable = 0;"
14127 # Code to be used in simple link tests
14128 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14130 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14137 # If no C compiler was specified, use CC.
14140 # If no C compiler flags were specified, use CFLAGS.
14141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14143 # Allow CC to be a program name with arguments.
14147 # save warnings/boilerplate of simple test code
14148 ac_outfile=conftest.$ac_objext
14149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14151 _lt_compiler_boilerplate=`cat conftest.err`
14154 ac_outfile=conftest.$ac_objext
14155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157 _lt_linker_boilerplate=`cat conftest.err`
14161 # Allow CC to be a program name with arguments.
14163 lt_save_CFLAGS=$CFLAGS
14167 lt_save_with_gnu_ld=$with_gnu_ld
14168 lt_save_path_LD=$lt_cv_path_LD
14169 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14170 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14172 $as_unset lt_cv_prog_gnu_ld
14174 if test -n "${lt_cv_path_LDCXX+set}"; then
14175 lt_cv_path_LD=$lt_cv_path_LDCXX
14177 $as_unset lt_cv_path_LD
14179 test -z "${LDCXX+set}" || LD=$LDCXX
14184 func_cc_basename $compiler
14185 cc_basename=$func_cc_basename_result
14188 if test -n "$compiler"; then
14189 # We don't want -fno-exception when compiling C++ code, so set the
14190 # no_builtin_flag separately
14191 if test yes = "$GXX"; then
14192 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14194 lt_prog_compiler_no_builtin_flag_CXX=
14197 if test yes = "$GXX"; then
14198 # Set up default GNU C++ configuration
14202 # Check whether --with-gnu-ld was given.
14203 if test "${with_gnu_ld+set}" = set; then :
14204 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14210 if test yes = "$GCC"; then
14211 # Check if gcc -print-prog-name=ld gives a path.
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14213 $as_echo_n "checking for ld used by $CC... " >&6; }
14216 # gcc leaves a trailing carriage return, which upsets mingw
14217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14222 # Accept absolute paths.
14224 re_direlt='/[^/][^/]*/\.\./'
14225 # Canonicalize the pathname of ld
14226 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14227 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14228 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14230 test -z "$LD" && LD=$ac_prog
14233 # If it fails, then pretend we aren't using GCC.
14237 # If it is relative, then search for the first ld in PATH.
14238 with_gnu_ld=unknown
14241 elif test yes = "$with_gnu_ld"; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14243 $as_echo_n "checking for GNU ld... " >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14246 $as_echo_n "checking for non-GNU ld... " >&6; }
14248 if ${lt_cv_path_LD+:} false; then :
14249 $as_echo_n "(cached) " >&6
14251 if test -z "$LD"; then
14252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14253 for ac_dir in $PATH; do
14255 test -z "$ac_dir" && ac_dir=.
14256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14257 lt_cv_path_LD=$ac_dir/$ac_prog
14258 # Check to see if the program is GNU ld. I'd rather use --version,
14259 # but apparently some variants of GNU ld only accept -v.
14260 # Break only if it was the GNU/non-GNU ld that we prefer.
14261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14262 *GNU* | *'with BFD'*)
14263 test no != "$with_gnu_ld" && break
14266 test yes != "$with_gnu_ld" && break
14273 lt_cv_path_LD=$LD # Let the user override the test with a path.
14278 if test -n "$LD"; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14280 $as_echo "$LD" >&6; }
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14285 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14288 if ${lt_cv_prog_gnu_ld+:} false; then :
14289 $as_echo_n "(cached) " >&6
14291 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14292 case `$LD -v 2>&1 </dev/null` in
14293 *GNU* | *'with BFD'*)
14294 lt_cv_prog_gnu_ld=yes
14297 lt_cv_prog_gnu_ld=no
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14303 with_gnu_ld=$lt_cv_prog_gnu_ld
14311 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14312 # archiving commands below assume that GNU ld is being used.
14313 if test yes = "$with_gnu_ld"; then
14314 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14315 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14317 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14318 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14320 # If archive_cmds runs LD, not CC, wlarc should be empty
14321 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14322 # investigate it a little bit more. (MM)
14325 # ancient GNU ld didn't support --whole-archive et. al.
14326 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14327 $GREP 'no-whole-archive' > /dev/null; then
14328 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14330 whole_archive_flag_spec_CXX=
14336 # A generic and very simple default shared library creation
14337 # command for GNU C++ for the case where it uses the native
14338 # linker, instead of GNU ld. If possible, this setting should
14339 # overridden to take advantage of the native linker features on
14340 # the platform it is being used on.
14341 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14344 # Commands to make compiler produce verbose output that lists
14345 # what "hidden" libraries, object files and flags are used when
14346 # linking a shared library.
14347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14355 # PORTME: fill in a description of your system's C++ link characteristics
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14357 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14361 # FIXME: insert proper C++ library support
14365 if test ia64 = "$host_cpu"; then
14366 # On IA64, the linker does run time linking by default, so we don't
14367 # have to do anything special.
14368 aix_use_runtimelinking=no
14369 exp_sym_flag='-Bexport'
14372 aix_use_runtimelinking=no
14374 # Test if we are trying to use run time linking or normal
14375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14376 # have runtime linking enabled, and use it for executables.
14377 # For shared libraries, we enable/disable runtime linking
14378 # depending on the kind of the shared library created -
14379 # when "with_aix_soname,aix_use_runtimelinking" is:
14380 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14381 # "aix,yes" lib.so shared, rtl:yes, for executables
14382 # lib.a static archive
14383 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14384 # lib.a(lib.so.V) shared, rtl:no, for executables
14385 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14386 # lib.a(lib.so.V) shared, rtl:no
14387 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14388 # lib.a static archive
14389 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14390 for ld_flag in $LDFLAGS; do
14393 aix_use_runtimelinking=yes
14398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14399 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14400 # so we don't have lib.a shared libs to link our executables.
14401 # We have to force runtime linking in this case.
14402 aix_use_runtimelinking=yes
14403 LDFLAGS="$LDFLAGS -Wl,-brtl"
14408 exp_sym_flag='-bexport'
14409 no_entry_flag='-bnoentry'
14412 # When large executables or shared objects are built, AIX ld can
14413 # have problems creating the table of contents. If linking a library
14414 # or program results in "error TOC overflow" add -mminimal-toc to
14415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14418 archive_cmds_CXX=''
14419 hardcode_direct_CXX=yes
14420 hardcode_direct_absolute_CXX=yes
14421 hardcode_libdir_separator_CXX=':'
14422 link_all_deplibs_CXX=yes
14423 file_list_spec_CXX='$wl-f,'
14424 case $with_aix_soname,$aix_use_runtimelinking in
14425 aix,*) ;; # no import file
14426 svr4,* | *,yes) # use import file
14427 # The Import File defines what to hardcode.
14428 hardcode_direct_CXX=no
14429 hardcode_direct_absolute_CXX=no
14433 if test yes = "$GXX"; then
14434 case $host_os in aix4.[012]|aix4.[012].*)
14435 # We only want to do this on AIX 4.2 and lower, the check
14436 # below for broken collect2 doesn't work under 4.3+
14437 collect2name=`$CC -print-prog-name=collect2`
14438 if test -f "$collect2name" &&
14439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14441 # We have reworked collect2
14444 # We have old collect2
14445 hardcode_direct_CXX=unsupported
14446 # It fails to find uninstalled libraries when the uninstalled
14447 # path is not listed in the libpath. Setting hardcode_minus_L
14448 # to unsupported forces relinking
14449 hardcode_minus_L_CXX=yes
14450 hardcode_libdir_flag_spec_CXX='-L$libdir'
14451 hardcode_libdir_separator_CXX=
14454 shared_flag='-shared'
14455 if test yes = "$aix_use_runtimelinking"; then
14456 shared_flag=$shared_flag' $wl-G'
14458 # Need to ensure runtime linking is disabled for the traditional
14459 # shared library, or the linker may eventually find shared libraries
14460 # /with/ Import File - we do not want to mix them.
14461 shared_flag_aix='-shared'
14462 shared_flag_svr4='-shared $wl-G'
14465 if test ia64 = "$host_cpu"; then
14466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14467 # chokes on -Wl,-G. The following line is correct:
14470 if test yes = "$aix_use_runtimelinking"; then
14471 shared_flag='$wl-G'
14473 shared_flag='$wl-bM:SRE'
14475 shared_flag_aix='$wl-bM:SRE'
14476 shared_flag_svr4='$wl-G'
14480 export_dynamic_flag_spec_CXX='$wl-bexpall'
14481 # It seems that -bexpall does not export symbols beginning with
14482 # underscore (_), so it is better to generate a list of symbols to
14484 always_export_symbols_CXX=yes
14485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14486 # Warning - without using the other runtime loading flags (-brtl),
14487 # -berok will link without error, but may produce a broken library.
14488 # The "-G" linker flag allows undefined symbols.
14489 no_undefined_flag_CXX='-bernotok'
14490 # Determine the default libpath from the value encoded in an empty
14492 if test set = "${lt_cv_aix_libpath+set}"; then
14493 aix_libpath=$lt_cv_aix_libpath
14495 if ${lt_cv_aix_libpath__CXX+:} false; then :
14496 $as_echo_n "(cached) " >&6
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14509 if ac_fn_cxx_try_link "$LINENO"; then :
14511 lt_aix_libpath_sed='
14512 /Import File Strings/,/^$/ {
14514 s/^0 *\([^ ]*\) *$/\1/
14518 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14519 # Check for a 64-bit object if we didn't find anything.
14520 if test -z "$lt_cv_aix_libpath__CXX"; then
14521 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext conftest.$ac_ext
14526 if test -z "$lt_cv_aix_libpath__CXX"; then
14527 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14532 aix_libpath=$lt_cv_aix_libpath__CXX
14535 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14537 archive_expsym_cmds_CXX='$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
14539 if test ia64 = "$host_cpu"; then
14540 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14541 allow_undefined_flag_CXX="-z nodefs"
14542 archive_expsym_cmds_CXX="\$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"
14544 # Determine the default libpath from the value encoded in an
14545 # empty executable.
14546 if test set = "${lt_cv_aix_libpath+set}"; then
14547 aix_libpath=$lt_cv_aix_libpath
14549 if ${lt_cv_aix_libpath__CXX+:} false; then :
14550 $as_echo_n "(cached) " >&6
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14563 if ac_fn_cxx_try_link "$LINENO"; then :
14565 lt_aix_libpath_sed='
14566 /Import File Strings/,/^$/ {
14568 s/^0 *\([^ ]*\) *$/\1/
14572 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14573 # Check for a 64-bit object if we didn't find anything.
14574 if test -z "$lt_cv_aix_libpath__CXX"; then
14575 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 if test -z "$lt_cv_aix_libpath__CXX"; then
14581 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14586 aix_libpath=$lt_cv_aix_libpath__CXX
14589 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14590 # Warning - without using the other run time loading flags,
14591 # -berok will link without error, but may produce a broken library.
14592 no_undefined_flag_CXX=' $wl-bernotok'
14593 allow_undefined_flag_CXX=' $wl-berok'
14594 if test yes = "$with_gnu_ld"; then
14595 # We only use this code for GNU lds that support --whole-archive.
14596 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14598 # Exported symbols can be pulled into shared objects from archives
14599 whole_archive_flag_spec_CXX='$convenience'
14601 archive_cmds_need_lc_CXX=yes
14602 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14603 # -brtl affects multiple linker settings, -berok does not and is overridden later
14604 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14605 if test svr4 != "$with_aix_soname"; then
14606 # This is similar to how AIX traditionally builds its shared
14607 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14608 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14610 if test aix != "$with_aix_soname"; then
14611 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14613 # used by -dlpreopen to get the symbols
14614 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14616 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14623 allow_undefined_flag_CXX=unsupported
14624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14625 # support --undefined. This deserves some investigation. FIXME
14626 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14633 case $cc_basename in
14635 # FIXME: insert proper C++ library support
14641 cygwin* | mingw* | pw32* | cegcc*)
14642 case $GXX,$cc_basename in
14645 # hardcode_libdir_flag_spec is actually meaningless, as there is
14646 # no search path for DLLs.
14647 hardcode_libdir_flag_spec_CXX=' '
14648 allow_undefined_flag_CXX=unsupported
14649 always_export_symbols_CXX=yes
14650 file_list_spec_CXX='@'
14651 # Tell ltmain to make .lib files, not .a files.
14653 # Tell ltmain to make .dll files, not .so files.
14655 # FIXME: Setting linknames here is a bad hack.
14656 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14657 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14658 cp "$export_symbols" "$output_objdir/$soname.def";
14659 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14661 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14663 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14665 # The linker will not automatically build a static lib if we build a DLL.
14666 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14667 enable_shared_with_static_runtimes_CXX=yes
14669 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14670 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14671 lt_tool_outputfile="@TOOL_OUTPUT@"~
14672 case $lt_outputfile in
14675 lt_outputfile=$lt_outputfile.exe
14676 lt_tool_outputfile=$lt_tool_outputfile.exe
14679 func_to_tool_file "$lt_outputfile"~
14680 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14681 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14682 $RM "$lt_outputfile.manifest";
14687 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14688 # as there is no search path for DLLs.
14689 hardcode_libdir_flag_spec_CXX='-L$libdir'
14690 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14691 allow_undefined_flag_CXX=unsupported
14692 always_export_symbols_CXX=no
14693 enable_shared_with_static_runtimes_CXX=yes
14695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14696 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14697 # If the export-symbols file already is a .def file, use it as
14698 # is; otherwise, prepend EXPORTS...
14699 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14700 cp $export_symbols $output_objdir/$soname.def;
14702 echo EXPORTS > $output_objdir/$soname.def;
14703 cat $export_symbols >> $output_objdir/$soname.def;
14705 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14712 darwin* | rhapsody*)
14715 archive_cmds_need_lc_CXX=no
14716 hardcode_direct_CXX=no
14717 hardcode_automatic_CXX=yes
14718 hardcode_shlibpath_var_CXX=unsupported
14719 if test yes = "$lt_cv_ld_force_load"; then
14720 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14723 whole_archive_flag_spec_CXX=''
14725 link_all_deplibs_CXX=yes
14726 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14727 case $cc_basename in
14728 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14729 *) _lt_dar_can_shared=$GCC ;;
14731 if test yes = "$_lt_dar_can_shared"; then
14732 output_verbose_link_cmd=func_echo_all
14733 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14734 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14735 archive_expsym_cmds_CXX="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"
14736 module_expsym_cmds_CXX="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"
14737 if test yes != "$lt_cv_apple_cc_single_mod"; then
14738 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14739 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14749 hardcode_libdir_flag_spec_CXX='-L$libdir'
14750 hardcode_minus_L_CXX=yes
14751 allow_undefined_flag_CXX=unsupported
14753 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14756 $ECHO EXPORTS >> $output_objdir/$libname.def~
14757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14759 emximp -o $lib $output_objdir/$libname.def'
14760 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14763 $ECHO EXPORTS >> $output_objdir/$libname.def~
14764 prefix_cmds="$SED"~
14765 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14766 prefix_cmds="$prefix_cmds -e 1d";
14768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14771 emximp -o $lib $output_objdir/$libname.def'
14772 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14773 enable_shared_with_static_runtimes_CXX=yes
14777 case $cc_basename in
14779 # FIXME: insert proper C++ library support
14783 # Green Hills C++ Compiler
14784 # FIXME: insert proper C++ library support
14788 # FIXME: insert proper C++ library support
14795 # C++ shared libraries reported to be fairly broken before
14801 archive_cmds_need_lc_CXX=no
14804 freebsd* | dragonfly*)
14805 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14811 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14812 link_all_deplibs_CXX=yes
14816 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14817 hardcode_libdir_separator_CXX=:
14818 export_dynamic_flag_spec_CXX='$wl-E'
14819 hardcode_direct_CXX=yes
14820 hardcode_minus_L_CXX=yes # Not in the search PATH,
14821 # but as the default
14822 # location of the library.
14824 case $cc_basename in
14826 # FIXME: insert proper C++ library support
14830 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14831 # Commands to make compiler produce verbose output that lists
14832 # what "hidden" libraries, object files and flags are used when
14833 # linking a shared library.
14835 # There doesn't appear to be a way to prevent this compiler from
14836 # explicitly linking system object files so we need to strip them
14837 # from the output so that they don't get included in the library
14839 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14842 if test yes = "$GXX"; then
14843 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14845 # FIXME: insert proper C++ library support
14853 if test no = "$with_gnu_ld"; then
14854 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14855 hardcode_libdir_separator_CXX=:
14861 export_dynamic_flag_spec_CXX='$wl-E'
14867 hardcode_direct_CXX=no
14868 hardcode_shlibpath_var_CXX=no
14871 hardcode_direct_CXX=yes
14872 hardcode_direct_absolute_CXX=yes
14873 hardcode_minus_L_CXX=yes # Not in the search PATH,
14874 # but as the default
14875 # location of the library.
14879 case $cc_basename in
14881 # FIXME: insert proper C++ library support
14887 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14890 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14893 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14896 # Commands to make compiler produce verbose output that lists
14897 # what "hidden" libraries, object files and flags are used when
14898 # linking a shared library.
14900 # There doesn't appear to be a way to prevent this compiler from
14901 # explicitly linking system object files so we need to strip them
14902 # from the output so that they don't get included in the library
14904 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14907 if test yes = "$GXX"; then
14908 if test no = "$with_gnu_ld"; then
14911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14914 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14917 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14922 # FIXME: insert proper C++ library support
14930 hardcode_direct_CXX=no
14931 hardcode_shlibpath_var_CXX=no
14932 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14933 export_dynamic_flag_spec_CXX='$wl-E'
14934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14935 # Instead, shared libraries are loaded at an image base (0x10000000 by
14936 # default) and relocated if they conflict, which is a slow very memory
14937 # consuming and fragmenting process. To avoid this, we pick a random,
14938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14940 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14941 archive_expsym_cmds_CXX='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'
14944 case $cc_basename in
14947 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14949 # Archives containing C++ object files must be created using
14950 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14951 # necessary to make sure instantiated templates are included
14953 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14956 if test yes = "$GXX"; then
14957 if test no = "$with_gnu_ld"; then
14958 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14960 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14963 link_all_deplibs_CXX=yes
14966 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14967 hardcode_libdir_separator_CXX=:
14968 inherit_rpath_CXX=yes
14971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14972 case $cc_basename in
14974 # Kuck and Associates, Inc. (KAI) C++ Compiler
14976 # KCC will only create a shared library if the output file
14977 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14978 # to its proper name (with version) after linking.
14979 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14980 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14981 # Commands to make compiler produce verbose output that lists
14982 # what "hidden" libraries, object files and flags are used when
14983 # linking a shared library.
14985 # There doesn't appear to be a way to prevent this compiler from
14986 # explicitly linking system object files so we need to strip them
14987 # from the output so that they don't get included in the library
14989 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14991 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14992 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14994 # Archives containing C++ object files must be created using
14995 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14996 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15001 # version 8.0 and above of icpc choke on multiply defined symbols
15002 # if we add $predep_objects and $postdep_objects, however 7.1 and
15003 # earlier do not add the objects themselves.
15004 case `$CC -V 2>&1` in
15006 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15007 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15009 *) # Version 8.0 or newer
15012 ia64*) tmp_idyn=' -i_dynamic';;
15014 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15015 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15018 archive_cmds_need_lc_CXX=no
15019 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15020 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15021 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15024 # Portland Group C++ compiler
15026 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15027 prelink_cmds_CXX='tpldir=Template.dir~
15029 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15030 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15031 old_archive_cmds_CXX='tpldir=Template.dir~
15033 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15034 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15036 archive_cmds_CXX='tpldir=Template.dir~
15038 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15039 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15040 archive_expsym_cmds_CXX='tpldir=Template.dir~
15042 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15043 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15045 *) # Version 6 and above use weak symbols
15046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15047 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15051 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15052 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15053 whole_archive_flag_spec_CXX='$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'
15057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15058 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15060 runpath_var=LD_RUN_PATH
15061 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15062 hardcode_libdir_separator_CXX=:
15064 # Commands to make compiler produce verbose output that lists
15065 # what "hidden" libraries, object files and flags are used when
15066 # linking a shared library.
15068 # There doesn't appear to be a way to prevent this compiler from
15069 # explicitly linking system object files so we need to strip them
15070 # from the output so that they don't get included in the library
15072 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15074 xl* | mpixl* | bgxl*)
15075 # IBM XL 8.0 on PPC, with GNU ld
15076 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15077 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15078 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15079 if test yes = "$supports_anon_versioning"; then
15080 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15081 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15082 echo "local: *; };" >> $output_objdir/$libname.ver~
15083 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15087 case `$CC -V 2>&1 | sed 5q` in
15090 no_undefined_flag_CXX=' -zdefs'
15091 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15092 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15093 hardcode_libdir_flag_spec_CXX='-R$libdir'
15094 whole_archive_flag_spec_CXX='$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'
15095 compiler_needs_object_CXX=yes
15097 # Not sure whether something based on
15098 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15100 output_verbose_link_cmd='func_echo_all'
15102 # Archives containing C++ object files must be created using
15103 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15104 # necessary to make sure instantiated templates are included
15106 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15114 # FIXME: insert proper C++ library support
15119 # FIXME: insert proper C++ library support
15124 case $cc_basename in
15126 # FIXME: insert proper C++ library support
15130 # FIXME: insert proper C++ library support
15137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15138 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15140 hardcode_libdir_flag_spec_CXX='-R$libdir'
15141 hardcode_direct_CXX=yes
15142 hardcode_shlibpath_var_CXX=no
15144 # Workaround some broken pre-1.5 toolchains
15145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15152 openbsd* | bitrig*)
15153 if test -f /usr/libexec/ld.so; then
15154 hardcode_direct_CXX=yes
15155 hardcode_shlibpath_var_CXX=no
15156 hardcode_direct_absolute_CXX=yes
15157 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15158 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15160 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15161 export_dynamic_flag_spec_CXX='$wl-E'
15162 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15164 output_verbose_link_cmd=func_echo_all
15170 osf3* | osf4* | osf5*)
15171 case $cc_basename in
15173 # Kuck and Associates, Inc. (KAI) C++ Compiler
15175 # KCC will only create a shared library if the output file
15176 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15177 # to its proper name (with version) after linking.
15178 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15180 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15181 hardcode_libdir_separator_CXX=:
15183 # Archives containing C++ object files must be created using
15184 # the KAI C++ compiler.
15186 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15187 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15191 # Rational C++ 2.4.1
15192 # FIXME: insert proper C++ library support
15198 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15199 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15200 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15203 allow_undefined_flag_CXX=' -expect_unresolved \*'
15204 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15205 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15206 echo "-hidden">> $lib.exp~
15207 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15209 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15213 hardcode_libdir_separator_CXX=:
15215 # Commands to make compiler produce verbose output that lists
15216 # what "hidden" libraries, object files and flags are used when
15217 # linking a shared library.
15219 # There doesn't appear to be a way to prevent this compiler from
15220 # explicitly linking system object files so we need to strip them
15221 # from the output so that they don't get included in the library
15223 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15226 if test yes,no = "$GXX,$with_gnu_ld"; then
15227 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15230 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15233 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15237 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15238 hardcode_libdir_separator_CXX=:
15240 # Commands to make compiler produce verbose output that lists
15241 # what "hidden" libraries, object files and flags are used when
15242 # linking a shared library.
15243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15246 # FIXME: insert proper C++ library support
15254 # FIXME: insert proper C++ library support
15259 case $cc_basename in
15262 # FIXME: insert proper C++ library support
15267 # FIXME: insert proper C++ library support
15271 # FIXME: insert proper C++ library support
15278 case $cc_basename in
15280 # Sun C++ 4.2, 5.x and Centerline C++
15281 archive_cmds_need_lc_CXX=yes
15282 no_undefined_flag_CXX=' -zdefs'
15283 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15284 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15285 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15287 hardcode_libdir_flag_spec_CXX='-R$libdir'
15288 hardcode_shlibpath_var_CXX=no
15290 solaris2.[0-5] | solaris2.[0-5].*) ;;
15292 # The compiler driver will combine and reorder linker options,
15293 # but understands '-z linker_flag'.
15294 # Supported since Solaris 2.6 (maybe 2.5.1?)
15295 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15298 link_all_deplibs_CXX=yes
15300 output_verbose_link_cmd='func_echo_all'
15302 # Archives containing C++ object files must be created using
15303 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15304 # necessary to make sure instantiated templates are included
15306 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15309 # Green Hills C++ Compiler
15310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15312 # The C++ compiler must be used to create the archive.
15313 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15316 # GNU C++ compiler with Solaris linker
15317 if test yes,no = "$GXX,$with_gnu_ld"; then
15318 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15319 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15320 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15321 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15322 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15324 # Commands to make compiler produce verbose output that lists
15325 # what "hidden" libraries, object files and flags are used when
15326 # linking a shared library.
15327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15329 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15331 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15332 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15333 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15335 # Commands to make compiler produce verbose output that lists
15336 # what "hidden" libraries, object files and flags are used when
15337 # linking a shared library.
15338 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15341 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15343 solaris2.[0-5] | solaris2.[0-5].*) ;;
15345 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15354 no_undefined_flag_CXX='$wl-z,text'
15355 archive_cmds_need_lc_CXX=no
15356 hardcode_shlibpath_var_CXX=no
15357 runpath_var='LD_RUN_PATH'
15359 case $cc_basename in
15361 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15365 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15366 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 sysv5* | sco3.2v5* | sco5v6*)
15372 # Note: We CANNOT use -z defs as we might desire, because we do not
15373 # link with -lc, and that would cause any symbols used from libc to
15374 # always be unresolved, which means just about no library would
15375 # ever link correctly. If we're not using GNU ld we use -z text
15376 # though, which does catch some bad symbols but isn't as heavy-handed
15378 no_undefined_flag_CXX='$wl-z,text'
15379 allow_undefined_flag_CXX='$wl-z,nodefs'
15380 archive_cmds_need_lc_CXX=no
15381 hardcode_shlibpath_var_CXX=no
15382 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15383 hardcode_libdir_separator_CXX=':'
15384 link_all_deplibs_CXX=yes
15385 export_dynamic_flag_spec_CXX='$wl-Bexport'
15386 runpath_var='LD_RUN_PATH'
15388 case $cc_basename in
15390 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15391 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15393 '"$old_archive_cmds_CXX"
15394 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15395 '"$reload_cmds_CXX"
15398 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15405 case $cc_basename in
15407 # NonStop-UX NCC 3.20
15408 # FIXME: insert proper C++ library support
15412 # FIXME: insert proper C++ library support
15419 # FIXME: insert proper C++ library support
15424 # FIXME: insert proper C++ library support
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15430 $as_echo "$ld_shlibs_CXX" >&6; }
15431 test no = "$ld_shlibs_CXX" && can_build_shared=no
15437 ## There is no encapsulation within the following macros, do not change
15438 ## the running order or otherwise move them around unless you know exactly
15439 ## what you are doing...
15440 # Dependencies to place before and after the object being linked:
15441 predep_objects_CXX=
15442 postdep_objects_CXX=
15445 compiler_lib_search_path_CXX=
15447 cat > conftest.$ac_ext <<_LT_EOF
15451 Foo (void) { a = 0; }
15458 _lt_libdeps_save_CFLAGS=$CFLAGS
15459 case "$CC $CFLAGS " in #(
15460 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15461 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15462 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15466 (eval $ac_compile) 2>&5
15468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469 test $ac_status = 0; }; then
15470 # Parse the compiler output and extract the necessary
15471 # objects, libraries and library flags.
15473 # Sentinel used to keep track of whether or not we are before
15474 # the conftest object file.
15475 pre_test_object_deps_done=no
15477 for p in `eval "$output_verbose_link_cmd"`; do
15481 # Some compilers place space between "-{L,R}" and the path.
15482 # Remove the space.
15483 if test x-L = "$p" ||
15484 test x-R = "$p"; then
15489 # Expand the sysroot to ease extracting the directories later.
15490 if test -z "$prev"; then
15492 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15493 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15494 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15498 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15500 if test no = "$pre_test_object_deps_done"; then
15503 # Internal compiler library paths should come after those
15504 # provided the user. The postdeps already come after the
15505 # user supplied libs so there is no need to process them.
15506 if test -z "$compiler_lib_search_path_CXX"; then
15507 compiler_lib_search_path_CXX=$prev$p
15509 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15512 # The "-l" case would never come before the object being
15513 # linked, so don't bother handling this case.
15516 if test -z "$postdeps_CXX"; then
15517 postdeps_CXX=$prev$p
15519 postdeps_CXX="${postdeps_CXX} $prev$p"
15525 *.lto.$objext) ;; # Ignore GCC LTO objects
15527 # This assumes that the test object file only shows up
15528 # once in the compiler output.
15529 if test "$p" = "conftest.$objext"; then
15530 pre_test_object_deps_done=yes
15534 if test no = "$pre_test_object_deps_done"; then
15535 if test -z "$predep_objects_CXX"; then
15536 predep_objects_CXX=$p
15538 predep_objects_CXX="$predep_objects_CXX $p"
15541 if test -z "$postdep_objects_CXX"; then
15542 postdep_objects_CXX=$p
15544 postdep_objects_CXX="$postdep_objects_CXX $p"
15549 *) ;; # Ignore the rest.
15557 echo "libtool.m4: error: problem compiling CXX test program"
15560 $RM -f confest.$objext
15561 CFLAGS=$_lt_libdeps_save_CFLAGS
15563 # PORTME: override above test on systems where it is broken
15566 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15567 # hack all around it, let's just trust "g++" to DTRT.
15568 predep_objects_CXX=
15569 postdep_objects_CXX=
15575 case " $postdeps_CXX " in
15576 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15578 compiler_lib_search_dirs_CXX=
15579 if test -n "${compiler_lib_search_path_CXX}"; then
15580 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15613 lt_prog_compiler_wl_CXX=
15614 lt_prog_compiler_pic_CXX=
15615 lt_prog_compiler_static_CXX=
15618 # C++ specific cases for pic, static, wl, etc.
15619 if test yes = "$GXX"; then
15620 lt_prog_compiler_wl_CXX='-Wl,'
15621 lt_prog_compiler_static_CXX='-static'
15625 # All AIX code is PIC.
15626 if test ia64 = "$host_cpu"; then
15627 # AIX 5 now supports IA64 processor
15628 lt_prog_compiler_static_CXX='-Bstatic'
15630 lt_prog_compiler_pic_CXX='-fPIC'
15636 # see comment about AmigaOS4 .so support
15637 lt_prog_compiler_pic_CXX='-fPIC'
15640 # FIXME: we need at least 68020 code to build shared libraries, but
15641 # adding the '-m68020' flag to GCC prevents building anything better,
15643 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15649 # PIC is the default for these OSes.
15651 mingw* | cygwin* | os2* | pw32* | cegcc*)
15652 # This hack is so that the source file can tell whether it is being
15653 # built for inclusion in a dll (and should export symbols for example).
15654 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15655 # (--disable-auto-import) libraries
15656 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15659 lt_prog_compiler_static_CXX='$wl-static'
15663 darwin* | rhapsody*)
15664 # PIC is the default on this platform
15665 # Common symbols not allowed in MH_DYLIB files
15666 lt_prog_compiler_pic_CXX='-fno-common'
15669 # DJGPP does not support shared libraries at all
15670 lt_prog_compiler_pic_CXX=
15673 # PIC is the default for Haiku.
15674 # The "-static" flag exists, but is broken.
15675 lt_prog_compiler_static_CXX=
15678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15679 # Instead, we relocate shared libraries at runtime.
15682 if test -d /usr/nec; then
15683 lt_prog_compiler_pic_CXX=-Kconform_pic
15687 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15688 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15689 # sets the default TLS model and affects inlining.
15694 lt_prog_compiler_pic_CXX='-fPIC'
15699 # QNX uses GNU C++, but need to define -shared option too, otherwise
15700 # it will coredump.
15701 lt_prog_compiler_pic_CXX='-fPIC -shared'
15704 lt_prog_compiler_pic_CXX='-fPIC'
15710 # All AIX code is PIC.
15711 if test ia64 = "$host_cpu"; then
15712 # AIX 5 now supports IA64 processor
15713 lt_prog_compiler_static_CXX='-Bstatic'
15715 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15719 case $cc_basename in
15721 # Green Hills C++ Compiler
15722 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15726 mingw* | cygwin* | os2* | pw32* | cegcc*)
15727 # This hack is so that the source file can tell whether it is being
15728 # built for inclusion in a dll (and should export symbols for example).
15729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15732 case $cc_basename in
15734 lt_prog_compiler_pic_CXX='-KPIC'
15737 # Green Hills C++ Compiler
15738 lt_prog_compiler_pic_CXX='-pic'
15744 freebsd* | dragonfly*)
15745 # FreeBSD uses GNU C++
15747 hpux9* | hpux10* | hpux11*)
15748 case $cc_basename in
15750 lt_prog_compiler_wl_CXX='-Wl,'
15751 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15752 if test ia64 != "$host_cpu"; then
15753 lt_prog_compiler_pic_CXX='+Z'
15757 lt_prog_compiler_wl_CXX='-Wl,'
15758 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15764 lt_prog_compiler_pic_CXX='+Z'
15773 # This is c89, which is MS Visual C++ (no shared libs)
15774 # Anyone wants to do a port?
15776 irix5* | irix6* | nonstopux*)
15777 case $cc_basename in
15779 lt_prog_compiler_wl_CXX='-Wl,'
15780 lt_prog_compiler_static_CXX='-non_shared'
15781 # CC pic flag -KPIC is the default.
15787 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15788 case $cc_basename in
15791 lt_prog_compiler_wl_CXX='--backend -Wl,'
15792 lt_prog_compiler_pic_CXX='-fPIC'
15795 # old Intel C++ for x86_64, which still supported -KPIC.
15796 lt_prog_compiler_wl_CXX='-Wl,'
15797 lt_prog_compiler_pic_CXX='-KPIC'
15798 lt_prog_compiler_static_CXX='-static'
15801 # Intel C++, used to be incompatible with GCC.
15802 # ICC 10 doesn't accept -KPIC any more.
15803 lt_prog_compiler_wl_CXX='-Wl,'
15804 lt_prog_compiler_pic_CXX='-fPIC'
15805 lt_prog_compiler_static_CXX='-static'
15808 # Portland Group C++ compiler
15809 lt_prog_compiler_wl_CXX='-Wl,'
15810 lt_prog_compiler_pic_CXX='-fpic'
15811 lt_prog_compiler_static_CXX='-Bstatic'
15815 # Make sure the PIC flag is empty. It appears that all Alpha
15816 # Linux and Compaq Tru64 Unix objects are PIC.
15817 lt_prog_compiler_pic_CXX=
15818 lt_prog_compiler_static_CXX='-non_shared'
15820 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15821 # IBM XL 8.0, 9.0 on PPC and BlueGene
15822 lt_prog_compiler_wl_CXX='-Wl,'
15823 lt_prog_compiler_pic_CXX='-qpic'
15824 lt_prog_compiler_static_CXX='-qstaticlink'
15827 case `$CC -V 2>&1 | sed 5q` in
15830 lt_prog_compiler_pic_CXX='-KPIC'
15831 lt_prog_compiler_static_CXX='-Bstatic'
15832 lt_prog_compiler_wl_CXX='-Qoption ld '
15843 case $cc_basename in
15845 lt_prog_compiler_pic_CXX='-W c,exportall'
15851 netbsd* | netbsdelf*-gnu)
15854 # QNX uses GNU C++, but need to define -shared option too, otherwise
15855 # it will coredump.
15856 lt_prog_compiler_pic_CXX='-fPIC -shared'
15858 osf3* | osf4* | osf5*)
15859 case $cc_basename in
15861 lt_prog_compiler_wl_CXX='--backend -Wl,'
15864 # Rational C++ 2.4.1
15865 lt_prog_compiler_pic_CXX='-pic'
15868 # Digital/Compaq C++
15869 lt_prog_compiler_wl_CXX='-Wl,'
15870 # Make sure the PIC flag is empty. It appears that all Alpha
15871 # Linux and Compaq Tru64 Unix objects are PIC.
15872 lt_prog_compiler_pic_CXX=
15873 lt_prog_compiler_static_CXX='-non_shared'
15882 case $cc_basename in
15884 # Sun C++ 4.2, 5.x and Centerline C++
15885 lt_prog_compiler_pic_CXX='-KPIC'
15886 lt_prog_compiler_static_CXX='-Bstatic'
15887 lt_prog_compiler_wl_CXX='-Qoption ld '
15890 # Green Hills C++ Compiler
15891 lt_prog_compiler_pic_CXX='-PIC'
15898 case $cc_basename in
15901 lt_prog_compiler_pic_CXX='-pic'
15902 lt_prog_compiler_static_CXX='-Bstatic'
15906 lt_prog_compiler_pic_CXX='-pic'
15912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15913 case $cc_basename in
15915 lt_prog_compiler_wl_CXX='-Wl,'
15916 lt_prog_compiler_pic_CXX='-KPIC'
15917 lt_prog_compiler_static_CXX='-Bstatic'
15922 case $cc_basename in
15924 # NonStop-UX NCC 3.20
15925 lt_prog_compiler_pic_CXX='-KPIC'
15934 lt_prog_compiler_can_build_shared_CXX=no
15940 # For platforms that do not support PIC, -DPIC is meaningless:
15942 lt_prog_compiler_pic_CXX=
15945 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15951 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15952 $as_echo_n "(cached) " >&6
15954 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15957 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15958 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15961 # Check to make sure the PIC flag actually works.
15963 if test -n "$lt_prog_compiler_pic_CXX"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15966 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15967 $as_echo_n "(cached) " >&6
15969 lt_cv_prog_compiler_pic_works_CXX=no
15970 ac_outfile=conftest.$ac_objext
15971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15972 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15973 # Insert the option either (1) after the last *FLAGS variable, or
15974 # (2) before a word containing "conftest.", or (3) at the end.
15975 # Note that $ac_compile itself does not contain backslashes and begins
15976 # with a dollar sign (not a hyphen), so the echo should work correctly.
15977 # The option is referenced via a variable to avoid confusing sed.
15978 lt_compile=`echo "$ac_compile" | $SED \
15979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15981 -e 's:$: $lt_compiler_flag:'`
15982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15983 (eval "$lt_compile" 2>conftest.err)
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 if (exit $ac_status) && test -s "$ac_outfile"; then
15988 # The compiler can only warn and ignore the option if not recognized
15989 # So say no if there are warnings other than the usual output.
15990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15993 lt_cv_prog_compiler_pic_works_CXX=yes
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16000 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16002 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16003 case $lt_prog_compiler_pic_CXX in
16005 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16008 lt_prog_compiler_pic_CXX=
16009 lt_prog_compiler_can_build_shared_CXX=no
16019 # Check to make sure the static flag actually works.
16021 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16024 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16025 $as_echo_n "(cached) " >&6
16027 lt_cv_prog_compiler_static_works_CXX=no
16028 save_LDFLAGS=$LDFLAGS
16029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16032 # The linker can only warn and ignore the option if not recognized
16033 # So say no if there are warnings
16034 if test -s conftest.err; then
16035 # Append any errors to the config.log.
16036 cat conftest.err 1>&5
16037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16039 if diff conftest.exp conftest.er2 >/dev/null; then
16040 lt_cv_prog_compiler_static_works_CXX=yes
16043 lt_cv_prog_compiler_static_works_CXX=yes
16047 LDFLAGS=$save_LDFLAGS
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16051 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16053 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16056 lt_prog_compiler_static_CXX=
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16064 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16065 $as_echo_n "(cached) " >&6
16067 lt_cv_prog_compiler_c_o_CXX=no
16068 $RM -r conftest 2>/dev/null
16072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16074 lt_compiler_flag="-o out/conftest2.$ac_objext"
16075 # Insert the option either (1) after the last *FLAGS variable, or
16076 # (2) before a word containing "conftest.", or (3) at the end.
16077 # Note that $ac_compile itself does not contain backslashes and begins
16078 # with a dollar sign (not a hyphen), so the echo should work correctly.
16079 lt_compile=`echo "$ac_compile" | $SED \
16080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16082 -e 's:$: $lt_compiler_flag:'`
16083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16084 (eval "$lt_compile" 2>out/conftest.err)
16086 cat out/conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16090 # The compiler can only warn and ignore the option if not recognized
16091 # So say no if there are warnings
16092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16095 lt_cv_prog_compiler_c_o_CXX=yes
16100 # SGI C++ compiler will create directory out/ii_files/ for
16101 # template instantiation
16102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16103 $RM out/* && rmdir out
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16110 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16116 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16117 $as_echo_n "(cached) " >&6
16119 lt_cv_prog_compiler_c_o_CXX=no
16120 $RM -r conftest 2>/dev/null
16124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16126 lt_compiler_flag="-o out/conftest2.$ac_objext"
16127 # Insert the option either (1) after the last *FLAGS variable, or
16128 # (2) before a word containing "conftest.", or (3) at the end.
16129 # Note that $ac_compile itself does not contain backslashes and begins
16130 # with a dollar sign (not a hyphen), so the echo should work correctly.
16131 lt_compile=`echo "$ac_compile" | $SED \
16132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16134 -e 's:$: $lt_compiler_flag:'`
16135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16136 (eval "$lt_compile" 2>out/conftest.err)
16138 cat out/conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16142 # The compiler can only warn and ignore the option if not recognized
16143 # So say no if there are warnings
16144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16147 lt_cv_prog_compiler_c_o_CXX=yes
16152 # SGI C++ compiler will create directory out/ii_files/ for
16153 # template instantiation
16154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16155 $RM out/* && rmdir out
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16162 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16167 hard_links=nottested
16168 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16169 # do not overwrite the value of need_locks provided by the user
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16171 $as_echo_n "checking if we can lock with hard links... " >&6; }
16174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16176 ln conftest.a conftest.b 2>&5 || hard_links=no
16177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16179 $as_echo "$hard_links" >&6; }
16180 if test no = "$hard_links"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16182 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16195 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16198 # If we're using GNU nm, then we don't want the "-C" option.
16199 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16200 # Without the "-l" option, or with the "-B" option, AIX nm treats
16201 # weak defined symbols like other global defined symbols, whereas
16202 # GNU nm marks them as "W".
16203 # While the 'weak' keyword is ignored in the Export File, we need
16204 # it in the Import File for the 'aix-soname' feature, so we have
16205 # to replace the "-B" option with "-P" for AIX nm.
16206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16207 export_symbols_cmds_CXX='$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'
16209 export_symbols_cmds_CXX='`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'
16213 export_symbols_cmds_CXX=$ltdll_cmds
16215 cygwin* | mingw* | cegcc*)
16216 case $cc_basename in
16218 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16221 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16222 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16226 linux* | k*bsd*-gnu | gnu*)
16227 link_all_deplibs_CXX=no
16230 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16235 $as_echo "$ld_shlibs_CXX" >&6; }
16236 test no = "$ld_shlibs_CXX" && can_build_shared=no
16238 with_gnu_ld_CXX=$with_gnu_ld
16246 # Do we need to explicitly link libc?
16248 case "x$archive_cmds_need_lc_CXX" in
16250 # Assume -lc should be added
16251 archive_cmds_need_lc_CXX=yes
16253 if test yes,yes = "$GCC,$enable_shared"; then
16254 case $archive_cmds_CXX in
16256 # FIXME: we may have to deal with multi-command sequences.
16259 # Test whether the compiler implicitly links with -lc since on some
16260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16261 # to ld, don't add -lc before -lgcc.
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16263 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16264 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16265 $as_echo_n "(cached) " >&6
16268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16271 (eval $ac_compile) 2>&5
16273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16274 test $ac_status = 0; } 2>conftest.err; then
16277 libobjs=conftest.$ac_objext
16279 wl=$lt_prog_compiler_wl_CXX
16280 pic_flag=$lt_prog_compiler_pic_CXX
16286 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16287 allow_undefined_flag_CXX=
16288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16289 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292 test $ac_status = 0; }
16294 lt_cv_archive_cmds_need_lc_CXX=no
16296 lt_cv_archive_cmds_need_lc_CXX=yes
16298 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16300 cat conftest.err 1>&5
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16306 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16307 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16378 library_names_spec=
16379 libname_spec='lib$name'
16383 postuninstall_cmds=
16387 shlibpath_overrides_runpath=unknown
16389 dynamic_linker="$host_os ld.so"
16390 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16391 need_lib_prefix=unknown
16392 hardcode_into_libs=no
16394 # when you set need_version to no, make sure it does not cause -set_version
16395 # flags to be left without arguments
16396 need_version=unknown
16402 version_type=linux # correct to gnu/linux during the next big refactor
16403 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16404 shlibpath_var=LIBPATH
16406 # AIX 3 has no versioning support, so we append a major version to the name.
16407 soname_spec='$libname$release$shared_ext$major'
16411 version_type=linux # correct to gnu/linux during the next big refactor
16414 hardcode_into_libs=yes
16415 if test ia64 = "$host_cpu"; then
16416 # AIX 5 supports IA64
16417 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16418 shlibpath_var=LD_LIBRARY_PATH
16420 # With GCC up to 2.95.x, collect2 would create an import file
16421 # for dependence libraries. The import file would start with
16422 # the line '#! .'. This would cause the generated library to
16423 # depend on '.', always an invalid library. This was fixed in
16424 # development snapshots of GCC prior to 3.0.
16426 aix4 | aix4.[01] | aix4.[01].*)
16427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16429 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16432 can_build_shared=no
16436 # Using Import Files as archive members, it is possible to support
16437 # filename-based versioning of shared library archives on AIX. While
16438 # this would work for both with and without runtime linking, it will
16439 # prevent static linking of such archives. So we do filename-based
16440 # shared library versioning with .so extension only, which is used
16441 # when both runtime linking and shared linking is enabled.
16442 # Unfortunately, runtime linking may impact performance, so we do
16443 # not want this to be the default eventually. Also, we use the
16444 # versioned .so libs for executables only if there is the -brtl
16445 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16446 # To allow for filename-based versioning support, we need to create
16447 # libNAME.so.V as an archive file, containing:
16448 # *) an Import File, referring to the versioned filename of the
16449 # archive as well as the shared archive member, telling the
16450 # bitwidth (32 or 64) of that shared object, and providing the
16451 # list of exported symbols of that shared object, eventually
16452 # decorated with the 'weak' keyword
16453 # *) the shared object with the F_LOADONLY flag set, to really avoid
16454 # it being seen by the linker.
16455 # At run time we better use the real file rather than another symlink,
16456 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16458 case $with_aix_soname,$aix_use_runtimelinking in
16459 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16460 # soname into executable. Probably we can add versioning support to
16461 # collect2, so additional links can be useful in future.
16462 aix,yes) # traditional libtool
16463 dynamic_linker='AIX unversionable lib.so'
16464 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16465 # instead of lib<name>.a to let people know that these are not
16466 # typical AIX shared libraries.
16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16469 aix,no) # traditional AIX only
16470 dynamic_linker='AIX lib.a(lib.so.V)'
16471 # We preserve .a as extension for shared libraries through AIX4.2
16472 # and later when we are not doing run time linking.
16473 library_names_spec='$libname$release.a $libname.a'
16474 soname_spec='$libname$release$shared_ext$major'
16476 svr4,*) # full svr4 only
16477 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16478 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16479 # We do not specify a path in Import Files, so LIBPATH fires.
16480 shlibpath_overrides_runpath=yes
16482 *,yes) # both, prefer svr4
16483 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16484 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16485 # unpreferred sharedlib libNAME.a needs extra handling
16486 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"'
16487 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"'
16488 # We do not specify a path in Import Files, so LIBPATH fires.
16489 shlibpath_overrides_runpath=yes
16491 *,no) # both, prefer aix
16492 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16493 library_names_spec='$libname$release.a $libname.a'
16494 soname_spec='$libname$release$shared_ext$major'
16495 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16496 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)'
16497 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"'
16500 shlibpath_var=LIBPATH
16507 # Since July 2007 AmigaOS4 officially supports .so libraries.
16508 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16512 library_names_spec='$libname.ixlibrary $libname.a'
16513 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16514 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'
16520 library_names_spec='$libname$shared_ext'
16521 dynamic_linker="$host_os ld.so"
16522 shlibpath_var=LIBRARY_PATH
16526 version_type=linux # correct to gnu/linux during the next big refactor
16528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16529 soname_spec='$libname$release$shared_ext$major'
16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16534 # the default ld.so.conf also contains /usr/contrib/lib and
16535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16536 # libtool to hard-code these into programs
16539 cygwin* | mingw* | pw32* | cegcc*)
16540 version_type=windows
16545 case $GCC,$cc_basename in
16548 library_names_spec='$libname.dll.a'
16549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16550 postinstall_cmds='base_file=`basename \$file`~
16551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16552 dldir=$destdir/`dirname \$dlpath`~
16553 test -d \$dldir || mkdir -p \$dldir~
16554 $install_prog $dir/$dlname \$dldir/$dlname~
16555 chmod a+x \$dldir/$dlname~
16556 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16557 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16560 dlpath=$dir/\$dldll~
16562 shlibpath_overrides_runpath=yes
16566 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16567 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16571 # MinGW DLLs use traditional 'lib' prefix
16572 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16575 # pw32 DLLs use 'pw' prefix rather than 'lib'
16576 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16579 dynamic_linker='Win32 ld.exe'
16584 libname_spec='$name'
16585 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16586 library_names_spec='$libname.dll.lib'
16590 sys_lib_search_path_spec=
16593 for lt_path in $LIB
16596 # Let DOS variable expansion print the short 8.3 style file name.
16597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16601 # Convert to MSYS style.
16602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16605 # Convert to unix form, then to dos form, then back to unix form
16606 # but this time dos style (no spaces!) so that the unix form looks
16607 # like /cygdrive/c/PROGRA~1:/cygdr...
16608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16613 sys_lib_search_path_spec=$LIB
16614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16615 # It is most probably a Windows format PATH.
16616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16620 # FIXME: find the short name or the path components, as spaces are
16621 # common. (e.g. "Program Files" -> "PROGRA~1")
16625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16626 postinstall_cmds='base_file=`basename \$file`~
16627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16628 dldir=$destdir/`dirname \$dlpath`~
16629 test -d \$dldir || mkdir -p \$dldir~
16630 $install_prog $dir/$dlname \$dldir/$dlname'
16631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16632 dlpath=$dir/\$dldll~
16634 shlibpath_overrides_runpath=yes
16635 dynamic_linker='Win32 link.exe'
16639 # Assume MSVC wrapper
16640 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16641 dynamic_linker='Win32 ld.exe'
16644 # FIXME: first we should search . and the directory the executable is in
16648 darwin* | rhapsody*)
16649 dynamic_linker="$host_os dyld"
16650 version_type=darwin
16653 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16654 soname_spec='$libname$release$major$shared_ext'
16655 shlibpath_overrides_runpath=yes
16656 shlibpath_var=DYLD_LIBRARY_PATH
16657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16663 version_type=linux # correct to gnu/linux during the next big refactor
16666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16667 soname_spec='$libname$release$shared_ext$major'
16668 shlibpath_var=LD_LIBRARY_PATH
16671 freebsd* | dragonfly*)
16672 # DragonFly does not have aout. When/if they implement a new
16673 # versioning mechanism, adjust this.
16674 if test -x /usr/bin/objformat; then
16675 objformat=`/usr/bin/objformat`
16678 freebsd[23].*) objformat=aout ;;
16679 *) objformat=elf ;;
16682 version_type=freebsd-$objformat
16683 case $version_type in
16685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16686 soname_spec='$libname$release$shared_ext$major'
16691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16695 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16700 freebsd3.[01]* | freebsdelf3.[01]*)
16701 shlibpath_overrides_runpath=yes
16702 hardcode_into_libs=yes
16704 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16705 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16706 shlibpath_overrides_runpath=no
16707 hardcode_into_libs=yes
16709 *) # from 4.6 on, and DragonFly
16710 shlibpath_overrides_runpath=yes
16711 hardcode_into_libs=yes
16717 version_type=linux # correct to gnu/linux during the next big refactor
16720 dynamic_linker="$host_os runtime_loader"
16721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16722 soname_spec='$libname$release$shared_ext$major'
16723 shlibpath_var=LIBRARY_PATH
16724 shlibpath_overrides_runpath=no
16725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16726 hardcode_into_libs=yes
16729 hpux9* | hpux10* | hpux11*)
16730 # Give a soname corresponding to the major version so that dld.sl refuses to
16731 # link against other versions.
16738 hardcode_into_libs=yes
16739 dynamic_linker="$host_os dld.so"
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16743 soname_spec='$libname$release$shared_ext$major'
16744 if test 32 = "$HPUX_IA64_MODE"; then
16745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16746 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16749 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16754 hardcode_into_libs=yes
16755 dynamic_linker="$host_os dld.sl"
16756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16759 soname_spec='$libname$release$shared_ext$major'
16760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16765 dynamic_linker="$host_os dld.sl"
16766 shlibpath_var=SHLIB_PATH
16767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16769 soname_spec='$libname$release$shared_ext$major'
16772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16773 postinstall_cmds='chmod 555 $lib'
16774 # or fails outright, so override atomically:
16775 install_override_mode=555
16779 version_type=linux # correct to gnu/linux during the next big refactor
16782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16783 soname_spec='$libname$release$shared_ext$major'
16784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=no
16787 hardcode_into_libs=yes
16790 irix5* | irix6* | nonstopux*)
16792 nonstopux*) version_type=nonstopux ;;
16794 if test yes = "$lt_cv_prog_gnu_ld"; then
16795 version_type=linux # correct to gnu/linux during the next big refactor
16802 soname_spec='$libname$release$shared_ext$major'
16803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16805 irix5* | nonstopux*)
16806 libsuff= shlibsuff=
16809 case $LD in # libtool.m4 will add one of these switches to LD
16810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811 libsuff= shlibsuff= libmagic=32-bit;;
16812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813 libsuff=32 shlibsuff=N32 libmagic=N32;;
16814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816 *) libsuff= shlibsuff= libmagic=never-match;;
16820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821 shlibpath_overrides_runpath=no
16822 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16823 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16824 hardcode_into_libs=yes
16827 # No shared lib support for Linux oldld, aout, or coff.
16828 linux*oldld* | linux*aout* | linux*coff*)
16833 version_type=none # Android doesn't support versioned libraries.
16836 library_names_spec='$libname$release$shared_ext'
16837 soname_spec='$libname$release$shared_ext'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=yes
16842 # This implies no fast_install, which is unacceptable.
16843 # Some rework will be needed to allow for fast_install
16844 # before this can be enabled.
16845 hardcode_into_libs=yes
16847 dynamic_linker='Android linker'
16848 # Don't embed -rpath directories since the linker doesn't support them.
16849 hardcode_libdir_flag_spec_CXX='-L$libdir'
16852 # This must be glibc/ELF.
16853 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16854 version_type=linux # correct to gnu/linux during the next big refactor
16857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16858 soname_spec='$libname$release$shared_ext$major'
16859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=no
16863 # Some binutils ld are patched to set DT_RUNPATH
16864 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16865 $as_echo_n "(cached) " >&6
16867 lt_cv_shlibpath_overrides_runpath=no
16868 save_LDFLAGS=$LDFLAGS
16869 save_libdir=$libdir
16870 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16871 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16883 if ac_fn_cxx_try_link "$LINENO"; then :
16884 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16885 lt_cv_shlibpath_overrides_runpath=yes
16888 rm -f core conftest.err conftest.$ac_objext \
16889 conftest$ac_exeext conftest.$ac_ext
16890 LDFLAGS=$save_LDFLAGS
16891 libdir=$save_libdir
16895 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16897 # This implies no fast_install, which is unacceptable.
16898 # Some rework will be needed to allow for fast_install
16899 # before this can be enabled.
16900 hardcode_into_libs=yes
16902 # Ideally, we could use ldconfig to report *all* directores which are
16903 # searched for libraries, however this is still not possible. Aside from not
16904 # being certain /sbin/ldconfig is available, command
16905 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16906 # even though it is searched at run-time. Try to do the best guess by
16907 # appending ld.so.conf contents (and includes) to the search path.
16908 if test -f /etc/ld.so.conf; then
16909 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' ' '`
16910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16913 # We used to test for /lib/ld.so.1 and disable shared libraries on
16914 # powerpc, because MkLinux only supported shared libraries with the
16915 # GNU dynamic linker. Since this was broken with cross compilers,
16916 # most powerpc-linux boxes support dynamic linking these days and
16917 # people can always --disable-shared, the test was removed, and we
16918 # assume the GNU/Linux dynamic linker is in use.
16919 dynamic_linker='GNU/Linux ld.so'
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 shlibpath_overrides_runpath=no
16930 hardcode_into_libs=yes
16931 dynamic_linker='NetBSD ld.elf_so'
16938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16941 dynamic_linker='NetBSD (a.out) ld.so'
16943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16944 soname_spec='$libname$release$shared_ext$major'
16945 dynamic_linker='NetBSD ld.elf_so'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 shlibpath_overrides_runpath=yes
16949 hardcode_into_libs=yes
16953 version_type=linux # correct to gnu/linux during the next big refactor
16954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 shlibpath_overrides_runpath=yes
16963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16964 soname_spec='$libname$release$shared_ext$major'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 shlibpath_overrides_runpath=no
16967 hardcode_into_libs=yes
16968 dynamic_linker='ldqnx.so'
16971 openbsd* | bitrig*)
16973 sys_lib_dlsearch_path_spec=/usr/lib
16975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16982 shlibpath_var=LD_LIBRARY_PATH
16983 shlibpath_overrides_runpath=yes
16987 libname_spec='$name'
16988 version_type=windows
16992 # OS/2 can only load a DLL with a base name of 8 characters or less.
16993 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16994 v=$($ECHO $release$versuffix | tr -d .-);
16995 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16996 $ECHO $n$v`$shared_ext'
16997 library_names_spec='${libname}_dll.$libext'
16998 dynamic_linker='OS/2 ld.exe'
16999 shlibpath_var=BEGINLIBPATH
17000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17002 postinstall_cmds='base_file=`basename \$file`~
17003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17004 dldir=$destdir/`dirname \$dlpath`~
17005 test -d \$dldir || mkdir -p \$dldir~
17006 $install_prog $dir/$dlname \$dldir/$dlname~
17007 chmod a+x \$dldir/$dlname~
17008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17012 dlpath=$dir/\$dldll~
17016 osf3* | osf4* | osf5*)
17020 soname_spec='$libname$release$shared_ext$major'
17021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17032 version_type=linux # correct to gnu/linux during the next big refactor
17035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17036 soname_spec='$libname$release$shared_ext$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17039 hardcode_into_libs=yes
17040 # ldd complains unless libraries are executable
17041 postinstall_cmds='chmod +x $lib'
17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 shlibpath_overrides_runpath=yes
17050 if test yes = "$with_gnu_ld"; then
17057 version_type=linux # correct to gnu/linux during the next big refactor
17058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17059 soname_spec='$libname$release$shared_ext$major'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 case $host_vendor in
17063 shlibpath_overrides_runpath=no
17065 runpath_var=LD_RUN_PATH
17073 shlibpath_overrides_runpath=no
17074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17080 if test -d /usr/nec; then
17081 version_type=linux # correct to gnu/linux during the next big refactor
17082 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17083 soname_spec='$libname$shared_ext.$major'
17084 shlibpath_var=LD_LIBRARY_PATH
17088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17093 soname_spec='$libname$release$shared_ext$major'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=yes
17096 hardcode_into_libs=yes
17097 if test yes = "$with_gnu_ld"; then
17098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17107 sys_lib_dlsearch_path_spec='/usr/lib'
17111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17112 version_type=linux # correct to gnu/linux during the next big refactor
17115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath=no
17118 hardcode_into_libs=yes
17122 version_type=linux # correct to gnu/linux during the next big refactor
17123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17124 soname_spec='$libname$release$shared_ext$major'
17125 shlibpath_var=LD_LIBRARY_PATH
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17133 $as_echo "$dynamic_linker" >&6; }
17134 test no = "$dynamic_linker" && can_build_shared=no
17136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17137 if test yes = "$GCC"; then
17138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17141 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17142 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17145 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17146 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17149 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17150 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17152 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17153 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17155 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17156 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17198 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17199 hardcode_action_CXX=
17200 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17201 test -n "$runpath_var_CXX" ||
17202 test yes = "$hardcode_automatic_CXX"; then
17204 # We can hardcode non-existent directories.
17205 if test no != "$hardcode_direct_CXX" &&
17206 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17207 # have to relink, otherwise we might link with an installed library
17208 # when we should be linking with a yet-to-be-installed one
17209 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17210 test no != "$hardcode_minus_L_CXX"; then
17211 # Linking always hardcodes the temporary library directory.
17212 hardcode_action_CXX=relink
17214 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17215 hardcode_action_CXX=immediate
17218 # We cannot hardcode anything, or else we can only hardcode existing
17220 hardcode_action_CXX=unsupported
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17223 $as_echo "$hardcode_action_CXX" >&6; }
17225 if test relink = "$hardcode_action_CXX" ||
17226 test yes = "$inherit_rpath_CXX"; then
17227 # Fast installation is not supported
17228 enable_fast_install=no
17229 elif test yes = "$shlibpath_overrides_runpath" ||
17230 test no = "$enable_shared"; then
17231 # Fast installation is not necessary
17232 enable_fast_install=needless
17241 fi # test -n "$compiler"
17244 CFLAGS=$lt_save_CFLAGS
17248 with_gnu_ld=$lt_save_with_gnu_ld
17249 lt_cv_path_LDCXX=$lt_cv_path_LD
17250 lt_cv_path_LD=$lt_save_path_LD
17251 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17252 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17253 fi # test yes != "$_lt_caught_CXX_error"
17256 ac_cpp='$CPP $CPPFLAGS'
17257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17262 depcc="$CXX" am_compiler_list=
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17265 $as_echo_n "checking dependency style of $depcc... " >&6; }
17266 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17267 $as_echo_n "(cached) " >&6
17269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17270 # We make a subdir and do the tests there. Otherwise we can end up
17271 # making bogus files that we don't know about and never remove. For
17272 # instance it was reported that on HP-UX the gcc test will end up
17273 # making a dummy file named 'D' -- because '-MD' means "put the output
17275 rm -rf conftest.dir
17277 # Copy depcomp to subdir because otherwise we won't find it if we're
17278 # using a relative directory.
17279 cp "$am_depcomp" conftest.dir
17281 # We will build objects and dependencies in a subdirectory because
17282 # it helps to detect inapplicable dependency modes. For instance
17283 # both Tru64's cc and ICC support -MD to output dependencies as a
17284 # side effect of compilation, but ICC will put the dependencies in
17285 # the current directory while Tru64 will put them in the object
17289 am_cv_CXX_dependencies_compiler_type=none
17290 if test "$am_compiler_list" = ""; then
17291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17293 am__universal=false
17294 case " $depcc " in #(
17295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17298 for depmode in $am_compiler_list; do
17299 # Setup a source with many dependencies, because some compilers
17300 # like to wrap large dependency lists on column 80 (with \), and
17301 # we should not choose a depcomp mode which is confused by this.
17303 # We need to recreate these files for each test, as the compiler may
17304 # overwrite some of them when testing with obscure command lines.
17305 # This happens at least with the AIX C compiler.
17307 for i in 1 2 3 4 5 6; do
17308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
17310 # Solaris 10 /bin/sh.
17311 echo '/* dummy */' > sub/conftst$i.h
17313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
17316 # mode. It turns out that the SunPro C++ compiler does not properly
17317 # handle '-M -o', and we need to detect this. Also, some Intel
17318 # versions had trouble with output in subdirs.
17319 am__obj=sub/conftest.${OBJEXT-o}
17320 am__minus_obj="-o $am__obj"
17323 # This depmode causes a compiler race in universal mode.
17324 test "$am__universal" = false || continue
17327 # After this tag, mechanisms are not by side-effect, so they'll
17328 # only be used when explicitly requested.
17329 if test "x$enable_dependency_tracking" = xyes; then
17335 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17336 # This compiler won't grok '-c -o', but also, the minuso test has
17337 # not run yet. These depmodes are late enough in the game, and
17338 # so weak that their functioning should not be impacted.
17339 am__obj=conftest.${OBJEXT-o}
17344 if depmode=$depmode \
17345 source=sub/conftest.c object=$am__obj \
17346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17348 >/dev/null 2>conftest.err &&
17349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17353 # icc doesn't choke on unknown options, it will just issue warnings
17354 # or remarks (even with -Werror). So we grep stderr for any message
17355 # that says an option was ignored or not supported.
17356 # When given -MP, icc 7.0 and 7.1 complain thusly:
17357 # icc: Command line warning: ignoring option '-M'; no argument required
17358 # The diagnosis changed in icc 8.0:
17359 # icc: Command line remark: option '-MP' not supported
17360 if (grep 'ignoring option' conftest.err ||
17361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17362 am_cv_CXX_dependencies_compiler_type=$depmode
17369 rm -rf conftest.dir
17371 am_cv_CXX_dependencies_compiler_type=none
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17376 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17377 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17380 test "x$enable_dependency_tracking" != xno \
17381 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17382 am__fastdepCXX_TRUE=
17383 am__fastdepCXX_FALSE='#'
17385 am__fastdepCXX_TRUE='#'
17386 am__fastdepCXX_FALSE=
17391 ac_cpp='$CPP $CPPFLAGS'
17392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17396 $as_echo_n "checking how to run the C preprocessor... " >&6; }
17397 # On Suns, sometimes $CPP names a directory.
17398 if test -n "$CPP" && test -d "$CPP"; then
17401 if test -z "$CPP"; then
17402 if ${ac_cv_prog_CPP+:} false; then :
17403 $as_echo_n "(cached) " >&6
17405 # Double quotes because CPP needs to be expanded
17406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17408 ac_preproc_ok=false
17409 for ac_c_preproc_warn_flag in '' yes
17411 # Use a header file that comes with gcc, so configuring glibc
17412 # with a fresh cross-compiler works.
17413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17414 # <limits.h> exists even on freestanding compilers.
17415 # On the NeXT, cc -E runs the code through the compiler's parser,
17416 # not just through cpp. "Syntax error" is here to catch this case.
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17420 # include <limits.h>
17422 # include <assert.h>
17426 if ac_fn_c_try_cpp "$LINENO"; then :
17429 # Broken: fails on valid input.
17432 rm -f conftest.err conftest.i conftest.$ac_ext
17434 # OK, works on sane cases. Now check whether nonexistent headers
17435 # can be detected and how.
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 #include <ac_nonexistent.h>
17440 if ac_fn_c_try_cpp "$LINENO"; then :
17441 # Broken: success on invalid input.
17444 # Passes both tests.
17448 rm -f conftest.err conftest.i conftest.$ac_ext
17451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17452 rm -f conftest.i conftest.err conftest.$ac_ext
17453 if $ac_preproc_ok; then :
17458 ac_cv_prog_CPP=$CPP
17461 CPP=$ac_cv_prog_CPP
17463 ac_cv_prog_CPP=$CPP
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17466 $as_echo "$CPP" >&6; }
17467 ac_preproc_ok=false
17468 for ac_c_preproc_warn_flag in '' yes
17470 # Use a header file that comes with gcc, so configuring glibc
17471 # with a fresh cross-compiler works.
17472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 # <limits.h> exists even on freestanding compilers.
17474 # On the NeXT, cc -E runs the code through the compiler's parser,
17475 # not just through cpp. "Syntax error" is here to catch this case.
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17479 # include <limits.h>
17481 # include <assert.h>
17485 if ac_fn_c_try_cpp "$LINENO"; then :
17488 # Broken: fails on valid input.
17491 rm -f conftest.err conftest.i conftest.$ac_ext
17493 # OK, works on sane cases. Now check whether nonexistent headers
17494 # can be detected and how.
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17497 #include <ac_nonexistent.h>
17499 if ac_fn_c_try_cpp "$LINENO"; then :
17500 # Broken: success on invalid input.
17503 # Passes both tests.
17507 rm -f conftest.err conftest.i conftest.$ac_ext
17510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17511 rm -f conftest.i conftest.err conftest.$ac_ext
17512 if $ac_preproc_ok; then :
17515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17518 See \`config.log' for more details" "$LINENO" 5; }
17522 ac_cpp='$CPP $CPPFLAGS'
17523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17529 $as_echo_n "checking whether ln -s works... " >&6; }
17531 if test "$LN_S" = "ln -s"; then
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17533 $as_echo "yes" >&6; }
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17536 $as_echo "no, using $LN_S" >&6; }
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17543 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17544 $as_echo_n "(cached) " >&6
17546 cat >conftest.make <<\_ACEOF
17549 @echo '@@@%%%=$(MAKE)=@@@%%%'
17551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17553 *@@@%%%=?*=@@@%%%*)
17554 eval ac_cv_prog_make_${ac_make}_set=yes;;
17556 eval ac_cv_prog_make_${ac_make}_set=no;;
17558 rm -f conftest.make
17560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17562 $as_echo "yes" >&6; }
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566 $as_echo "no" >&6; }
17567 SET_MAKE="MAKE=${MAKE-make}"
17579 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17580 if test -n "$ac_tool_prefix"; then
17581 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17582 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584 $as_echo_n "checking for $ac_word... " >&6; }
17585 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17586 $as_echo_n "(cached) " >&6
17588 case $PKG_CONFIG in
17590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17597 test -z "$as_dir" && as_dir=.
17598 for ac_exec_ext in '' $ac_executable_extensions; do
17599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17612 if test -n "$PKG_CONFIG"; then
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17614 $as_echo "$PKG_CONFIG" >&6; }
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617 $as_echo "no" >&6; }
17622 if test -z "$ac_cv_path_PKG_CONFIG"; then
17623 ac_pt_PKG_CONFIG=$PKG_CONFIG
17624 # Extract the first word of "pkg-config", so it can be a program name with args.
17625 set dummy pkg-config; ac_word=$2
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17627 $as_echo_n "checking for $ac_word... " >&6; }
17628 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17629 $as_echo_n "(cached) " >&6
17631 case $ac_pt_PKG_CONFIG in
17633 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637 for as_dir in $PATH
17640 test -z "$as_dir" && as_dir=.
17641 for ac_exec_ext in '' $ac_executable_extensions; do
17642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17643 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17654 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17655 if test -n "$ac_pt_PKG_CONFIG"; then
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17657 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660 $as_echo "no" >&6; }
17663 if test "x$ac_pt_PKG_CONFIG" = x; then
17666 case $cross_compiling:$ac_tool_warned in
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17670 ac_tool_warned=yes ;;
17672 PKG_CONFIG=$ac_pt_PKG_CONFIG
17675 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17679 if test -n "$PKG_CONFIG"; then
17680 _pkg_min_version=0.20
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17682 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17683 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17685 $as_echo "yes" >&6; }
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688 $as_echo "no" >&6; }
17699 if test -n "$PYTHON"; then
17700 # If the user set $PYTHON, use it and don't search something else.
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
17702 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
17704 # split strings by '.' and convert to numeric. Append some zeros
17705 # because we need at least 4 digits for the hex conversion.
17706 # map returns an iterator in Python 3.0 and a list in 2.x
17707 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17709 # xrange is not present in Python 3.0 and range returns an iterator
17710 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17711 sys.exit(sys.hexversion < minverhex)"
17712 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17713 ($PYTHON -c "$prog") >&5 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; then :
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17718 $as_echo "yes" >&6; }
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17721 $as_echo "no" >&6; }
17722 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17724 am_display_PYTHON=$PYTHON
17726 # Otherwise, try each interpreter until we find one that satisfies
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
17729 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
17730 if ${am_cv_pathless_PYTHON+:} false; then :
17731 $as_echo_n "(cached) " >&6
17734 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
17735 test "$am_cv_pathless_PYTHON" = none && break
17737 # split strings by '.' and convert to numeric. Append some zeros
17738 # because we need at least 4 digits for the hex conversion.
17739 # map returns an iterator in Python 3.0 and a list in 2.x
17740 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17742 # xrange is not present in Python 3.0 and range returns an iterator
17743 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17744 sys.exit(sys.hexversion < minverhex)"
17745 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17746 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; then :
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17755 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17756 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17757 if test "$am_cv_pathless_PYTHON" = none; then
17760 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17761 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763 $as_echo_n "checking for $ac_word... " >&6; }
17764 if ${ac_cv_path_PYTHON+:} false; then :
17765 $as_echo_n "(cached) " >&6
17769 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17773 for as_dir in $PATH
17776 test -z "$as_dir" && as_dir=.
17777 for ac_exec_ext in '' $ac_executable_extensions; do
17778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17779 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17790 PYTHON=$ac_cv_path_PYTHON
17791 if test -n "$PYTHON"; then
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17793 $as_echo "$PYTHON" >&6; }
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796 $as_echo "no" >&6; }
17801 am_display_PYTHON=$am_cv_pathless_PYTHON
17805 if test "$PYTHON" = :; then
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17811 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17812 if ${am_cv_python_version+:} false; then :
17813 $as_echo_n "(cached) " >&6
17815 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17818 $as_echo "$am_cv_python_version" >&6; }
17819 PYTHON_VERSION=$am_cv_python_version
17823 PYTHON_PREFIX='${prefix}'
17825 PYTHON_EXEC_PREFIX='${exec_prefix}'
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17830 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17831 if ${am_cv_python_platform+:} false; then :
17832 $as_echo_n "(cached) " >&6
17834 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17837 $as_echo "$am_cv_python_platform" >&6; }
17838 PYTHON_PLATFORM=$am_cv_python_platform
17841 # Just factor out some code duplication.
17842 am_python_setup_sysconfig="\
17844 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17845 # with python 3.x. See automake bug#10227.
17848 except ImportError:
17849 can_use_sysconfig = 0
17851 can_use_sysconfig = 1
17852 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17853 # <https://github.com/pypa/virtualenv/issues/118>
17855 from platform import python_implementation
17856 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17857 can_use_sysconfig = 0
17858 except ImportError:
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17863 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17864 if ${am_cv_python_pythondir+:} false; then :
17865 $as_echo_n "(cached) " >&6
17867 if test "x$prefix" = xNONE
17869 am_py_prefix=$ac_default_prefix
17871 am_py_prefix=$prefix
17873 am_cv_python_pythondir=`$PYTHON -c "
17874 $am_python_setup_sysconfig
17875 if can_use_sysconfig:
17876 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17878 from distutils import sysconfig
17879 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17880 sys.stdout.write(sitedir)"`
17881 case $am_cv_python_pythondir in
17883 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17884 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17887 case $am_py_prefix in
17890 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17898 $as_echo "$am_cv_python_pythondir" >&6; }
17899 pythondir=$am_cv_python_pythondir
17903 pkgpythondir=\${pythondir}/$PACKAGE
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17907 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17908 if ${am_cv_python_pyexecdir+:} false; then :
17909 $as_echo_n "(cached) " >&6
17911 if test "x$exec_prefix" = xNONE
17913 am_py_exec_prefix=$am_py_prefix
17915 am_py_exec_prefix=$exec_prefix
17917 am_cv_python_pyexecdir=`$PYTHON -c "
17918 $am_python_setup_sysconfig
17919 if can_use_sysconfig:
17920 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17922 from distutils import sysconfig
17923 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17924 sys.stdout.write(sitedir)"`
17925 case $am_cv_python_pyexecdir in
17926 $am_py_exec_prefix*)
17927 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17928 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17931 case $am_py_exec_prefix in
17934 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17942 $as_echo "$am_cv_python_pyexecdir" >&6; }
17943 pyexecdir=$am_cv_python_pyexecdir
17947 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17955 if test "x$request_lib_only" = "xyes"; then
17957 request_hpack_tools=no
17958 request_examples=no
17959 request_python_bindings=no
17962 if test "x$request_python_bindings" != "xno"; then
17965 # Allow the use of a (user set) custom python version
17969 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17970 set dummy python$PYTHON_VERSION; ac_word=$2
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17972 $as_echo_n "checking for $ac_word... " >&6; }
17973 if ${ac_cv_path_PYTHON+:} false; then :
17974 $as_echo_n "(cached) " >&6
17978 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17982 for as_dir in $PATH
17985 test -z "$as_dir" && as_dir=.
17986 for ac_exec_ext in '' $ac_executable_extensions; do
17987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17988 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17999 PYTHON=$ac_cv_path_PYTHON
18000 if test -n "$PYTHON"; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18002 $as_echo "$PYTHON" >&6; }
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18009 if test -z "$PYTHON"; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&5
18011 $as_echo "$as_me: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&2;}
18013 no_python_devel=yes
18016 if test -z "$no_python_devel"; then :
18019 # Check for a version of Python >= 2.1.0
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
18022 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
18023 ac_supports_python_ver=`$PYTHON -c "import sys; \
18024 ver = sys.version.split ()[0]; \
18025 print (ver >= '2.1.0')"`
18026 if test "$ac_supports_python_ver" != "True"; then
18027 if test -z "$PYTHON_NOVERSIONCHECK"; then
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18029 $as_echo "no" >&6; }
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18031 This version of the AC_PYTHON_DEVEL macro
18032 doesn't work properly with versions of Python before
18033 2.1.0. You may need to re-run configure, setting the
18034 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
18035 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
18036 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
18037 to something else than an empty string.
18039 $as_echo "$as_me: WARNING:
18040 This version of the AC_PYTHON_DEVEL macro
18041 doesn't work properly with versions of Python before
18042 2.1.0. You may need to re-run configure, setting the
18043 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
18044 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
18045 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
18046 to something else than an empty string.
18048 no_python_devel=yes
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
18051 $as_echo "skip at user request" >&6; }
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18055 $as_echo "yes" >&6; }
18060 if test -z "$no_python_devel"; then :
18063 # if the macro parameter ``version'' is set, honour it
18065 if test -n ">= '2.7'"; then
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
18067 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
18068 ac_supports_python_ver=`$PYTHON -c "import sys; \
18069 ver = sys.version.split ()[0]; \
18070 print (ver >= '2.7')"`
18071 if test "$ac_supports_python_ver" = "True"; then
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18073 $as_echo "yes" >&6; }
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package requires Python >= '2.7'.
18078 If you have it installed, but it isn't the default Python
18079 interpreter in your system path, please pass the PYTHON_VERSION
18080 variable to configure. See \`\`configure --help'' for reference.
18082 $as_echo "$as_me: WARNING: this package requires Python >= '2.7'.
18083 If you have it installed, but it isn't the default Python
18084 interpreter in your system path, please pass the PYTHON_VERSION
18085 variable to configure. See \`\`configure --help'' for reference.
18088 no_python_devel=yes
18094 if test -z "$no_python_devel"; then :
18097 # Check if you have distutils, else fail
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
18100 $as_echo_n "checking for the distutils Python package... " >&6; }
18101 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
18102 if test -z "$ac_distutils_result"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18104 $as_echo "yes" >&6; }
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot import Python module \"distutils\".
18109 Please check your Python installation. The error was:
18110 $ac_distutils_result" >&5
18111 $as_echo "$as_me: WARNING: cannot import Python module \"distutils\".
18112 Please check your Python installation. The error was:
18113 $ac_distutils_result" >&2;}
18115 no_python_devel=yes
18120 if test -z "$no_python_devel"; then :
18123 # Check for Python include path
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
18126 $as_echo_n "checking for Python include path... " >&6; }
18127 if test -z "$PYTHON_CPPFLAGS"; then
18128 python_path=`$PYTHON -c "import distutils.sysconfig; \
18129 print (distutils.sysconfig.get_python_inc ());"`
18130 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
18131 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
18132 if test -n "${python_path}"; then
18133 if test "${plat_python_path}" != "${python_path}"; then
18134 python_path="-I$python_path -I$plat_python_path"
18136 python_path="-I$python_path"
18139 PYTHON_CPPFLAGS=$python_path
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
18142 $as_echo "$PYTHON_CPPFLAGS" >&6; }
18146 # Check for Python library path
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
18149 $as_echo_n "checking for Python library path... " >&6; }
18150 if test -z "$PYTHON_LDFLAGS"; then
18151 # (makes two attempts to ensure we've got a version number
18152 # from the interpreter)
18153 ac_python_version=`cat<<EOD | $PYTHON -
18155 # join all versioning strings, on some systems
18156 # major/minor numbers could be in different list elements
18157 from distutils.sysconfig import *
18158 e = get_config_var('VERSION')
18163 if test -z "$ac_python_version"; then
18164 if test -n "$PYTHON_VERSION"; then
18165 ac_python_version=$PYTHON_VERSION
18167 ac_python_version=`$PYTHON -c "import sys; \
18168 print (sys.version[:3])"`
18172 # Make the versioning information available to the compiler
18174 cat >>confdefs.h <<_ACEOF
18175 #define HAVE_PYTHON "$ac_python_version"
18179 # First, the library directory:
18180 ac_python_libdir=`cat<<EOD | $PYTHON -
18182 # There should be only one
18183 import distutils.sysconfig
18184 e = distutils.sysconfig.get_config_var('LIBDIR')
18189 # Now, for the library:
18190 ac_python_library=`cat<<EOD | $PYTHON -
18192 import distutils.sysconfig
18193 c = distutils.sysconfig.get_config_vars()
18194 if 'LDVERSION' in c:
18195 print ('python'+c['LDVERSION'])
18197 print ('python'+c['VERSION'])
18200 # This small piece shamelessly adapted from PostgreSQL python macro;
18201 # credits goes to momjian, I think. I'd like to put the right name
18202 # in the credits, if someone can point me in the right direction... ?
18204 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
18206 # use the official shared library
18207 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
18208 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
18210 # old way: use libpython from python_configdir
18211 ac_python_libdir=`$PYTHON -c \
18212 "from distutils.sysconfig import get_python_lib as f; \
18214 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
18215 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
18218 if test -z "PYTHON_LDFLAGS"; then
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18220 Cannot determine location of your Python DSO. Please check it was installed with
18221 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
18223 $as_echo "$as_me: WARNING:
18224 Cannot determine location of your Python DSO. Please check it was installed with
18225 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
18227 no_python_devel=yes
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
18231 $as_echo "$PYTHON_LDFLAGS" >&6; }
18236 if test -z "$no_python_devel"; then :
18239 # Check for site packages
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
18242 $as_echo_n "checking for Python site-packages path... " >&6; }
18243 if test -z "$PYTHON_SITE_PKG"; then
18244 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
18245 print (distutils.sysconfig.get_python_lib(0,0));"`
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
18248 $as_echo "$PYTHON_SITE_PKG" >&6; }
18252 # libraries which must be linked in when embedding
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
18255 $as_echo_n "checking python extra libraries... " >&6; }
18256 if test -z "$PYTHON_EXTRA_LIBS"; then
18257 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
18258 conf = distutils.sysconfig.get_config_var; \
18259 print (conf('LIBS'))"`
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
18262 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
18266 # linking flags needed when embedding
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
18269 $as_echo_n "checking python extra linking flags... " >&6; }
18270 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
18271 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
18272 conf = distutils.sysconfig.get_config_var; \
18273 print (conf('LINKFORSHARED'))"`
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
18276 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
18280 # final check to see if everything compiles alright
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
18283 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
18284 # save current global flags
18285 ac_save_LIBS="$LIBS"
18286 ac_save_CPPFLAGS="$CPPFLAGS"
18287 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
18288 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 #include <Python.h>
18308 if ac_fn_c_try_link "$LINENO"; then :
18313 rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18316 ac_cpp='$CPP $CPPFLAGS'
18317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18321 # turn back to default flags
18322 CPPFLAGS="$ac_save_CPPFLAGS"
18323 LIBS="$ac_save_LIBS"
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
18326 $as_echo "$pythonexists" >&6; }
18328 if test ! "x$pythonexists" = "xyes"; then
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18330 Could not link test program to Python. Maybe the main Python library has been
18331 installed in some non-standard library path. If so, pass it to configure,
18332 via the LDFLAGS environment variable.
18333 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
18334 ============================================================================
18336 You probably have to install the development version of the Python package
18337 for your distribution. The exact name of this package varies among them.
18338 ============================================================================
18340 $as_echo "$as_me: WARNING:
18341 Could not link test program to Python. Maybe the main Python library has been
18342 installed in some non-standard library path. If so, pass it to configure,
18343 via the LDFLAGS environment variable.
18344 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
18345 ============================================================================
18347 You probably have to install the development version of the Python package
18348 for your distribution. The exact name of this package varies among them.
18349 ============================================================================
18352 no_python_devel=yes
18361 if test -z "$no_python_devel"; then :
18362 have_python_dev=yes
18370 if test "x${cython_path}" = "x"; then
18371 for ac_prog in cython.py cython
18373 # Extract the first word of "$ac_prog", so it can be a program name with args.
18374 set dummy $ac_prog; ac_word=$2
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18376 $as_echo_n "checking for $ac_word... " >&6; }
18377 if ${ac_cv_prog_CYTHON+:} false; then :
18378 $as_echo_n "(cached) " >&6
18380 if test -n "$CYTHON"; then
18381 ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
18383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18384 for as_dir in $PATH
18387 test -z "$as_dir" && as_dir=.
18388 for ac_exec_ext in '' $ac_executable_extensions; do
18389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18390 ac_cv_prog_CYTHON="$ac_prog"
18391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18400 CYTHON=$ac_cv_prog_CYTHON
18401 if test -n "$CYTHON"; then
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
18403 $as_echo "$CYTHON" >&6; }
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 $as_echo "no" >&6; }
18410 test -n "$CYTHON" && break
18414 CYTHON=${cython_path}
18418 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
18420 $as_echo "#define NGHTTP2_NORETURN __attribute__((noreturn))" >>confdefs.h
18424 $as_echo "#define NGHTTP2_NORETURN /**/" >>confdefs.h
18428 save_CXXFLAGS="$CXXFLAGS"
18431 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
18433 ac_cpp='$CXXCPP $CPPFLAGS'
18434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18441 if test x$ac_success = xno; then
18442 for alternative in ${ax_cxx_compile_alternatives}; do
18443 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
18444 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
18446 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
18447 if eval \${$cachevar+:} false; then :
18448 $as_echo_n "(cached) " >&6
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18456 // If the compiler admits that it is not ready for C++11, why torture it?
18457 // Hopefully, this will speed up the test.
18459 #ifndef __cplusplus
18461 #error "This is not a C++ compiler"
18463 #elif __cplusplus < 201103L
18465 #error "This is not a C++11 compiler"
18472 namespace test_static_assert
18475 template <typename T>
18478 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18483 namespace test_final_override
18488 virtual void f() {}
18491 struct Derived : public Base
18493 virtual void f() override {}
18498 namespace test_double_right_angle_brackets
18501 template < typename T >
18504 typedef check<void> single_type;
18505 typedef check<check<void>> double_type;
18506 typedef check<check<check<void>>> triple_type;
18507 typedef check<check<check<check<void>>>> quadruple_type;
18511 namespace test_decltype
18524 namespace test_type_deduction
18527 template < typename T1, typename T2 >
18530 static const bool value = false;
18533 template < typename T >
18534 struct is_same<T, T>
18536 static const bool value = true;
18539 template < typename T1, typename T2 >
18541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18547 test(const int c, volatile int v)
18549 static_assert(is_same<int, decltype(0)>::value == true, "");
18550 static_assert(is_same<int, decltype(c)>::value == false, "");
18551 static_assert(is_same<int, decltype(v)>::value == false, "");
18554 auto sumi = ac + av + 'x';
18555 auto sumf = ac + av + 1.0;
18556 static_assert(is_same<int, decltype(ac)>::value == true, "");
18557 static_assert(is_same<int, decltype(av)>::value == true, "");
18558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18561 return (sumf > 0.0) ? sumi : add(c, v);
18566 namespace test_noexcept
18569 int f() { return 0; }
18570 int g() noexcept { return 0; }
18572 static_assert(noexcept(f()) == false, "");
18573 static_assert(noexcept(g()) == true, "");
18577 namespace test_constexpr
18580 template < typename CharT >
18581 unsigned long constexpr
18582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18587 template < typename CharT >
18588 unsigned long constexpr
18589 strlen_c(const CharT *const s) noexcept
18591 return strlen_c_r(s, 0UL);
18594 static_assert(strlen_c("") == 0UL, "");
18595 static_assert(strlen_c("1") == 1UL, "");
18596 static_assert(strlen_c("example") == 7UL, "");
18597 static_assert(strlen_c("another\0example") == 7UL, "");
18601 namespace test_rvalue_references
18607 static constexpr int value = N;
18610 answer<1> f(int&) { return answer<1>(); }
18611 answer<2> f(const int&) { return answer<2>(); }
18612 answer<3> f(int&&) { return answer<3>(); }
18619 static_assert(decltype(f(i))::value == 1, "");
18620 static_assert(decltype(f(c))::value == 2, "");
18621 static_assert(decltype(f(0))::value == 3, "");
18626 namespace test_uniform_initialization
18631 static const int zero {};
18632 static const int one {1};
18635 static_assert(test::zero == 0, "");
18636 static_assert(test::one == 1, "");
18640 namespace test_lambdas
18646 auto lambda1 = [](){};
18647 auto lambda2 = lambda1;
18655 auto a = [](int i, int j){ return i + j; }(1, 2);
18656 auto b = []() -> int { return '0'; }();
18657 auto c = [=](){ return a + b; }();
18658 auto d = [&](){ return c; }();
18659 auto e = [a, &b](int x) mutable {
18660 const auto identity = [](int y){ return y; };
18661 for (auto i = 0; i < a; ++i)
18663 return x + identity(a + b);
18665 return a + b + c + d + e;
18671 const auto nullary = [](){ return 0; };
18672 const auto unary = [](int x){ return x; };
18673 using nullary_t = decltype(nullary);
18674 using unary_t = decltype(unary);
18675 const auto higher1st = [](nullary_t f){ return f(); };
18676 const auto higher2nd = [unary](nullary_t f1){
18677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18679 return higher1st(nullary) + higher2nd(nullary)(unary);
18684 namespace test_variadic_templates
18690 template <int N0, int... N1toN>
18691 struct sum<N0, N1toN...>
18693 static constexpr auto value = N0 + sum<N1toN...>::value;
18699 static constexpr auto value = 0;
18702 static_assert(sum<>::value == 0, "");
18703 static_assert(sum<1>::value == 1, "");
18704 static_assert(sum<23>::value == 23, "");
18705 static_assert(sum<1, 2>::value == 3, "");
18706 static_assert(sum<5, 5, 11>::value == 21, "");
18707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18713 // because of this.
18714 namespace test_template_alias_sfinae
18719 template<typename T>
18720 using member = typename T::member_type;
18722 template<typename T>
18725 template<typename T>
18726 void func(member<T>*) {}
18730 void test() { func<foo>(0); }
18734 } // namespace cxx11
18736 #endif // __cplusplus >= 201103L
18741 // If the compiler admits that it is not ready for C++14, why torture it?
18742 // Hopefully, this will speed up the test.
18744 #ifndef __cplusplus
18746 #error "This is not a C++ compiler"
18748 #elif __cplusplus < 201402L
18750 #error "This is not a C++14 compiler"
18757 namespace test_polymorphic_lambdas
18763 const auto lambda = [](auto&&... args){
18764 const auto istiny = [](auto x){
18765 return (sizeof(x) == 1UL) ? 1 : 0;
18767 const int aretiny[] = { istiny(args)... };
18770 return lambda(1, 1L, 1.0f, '1');
18775 namespace test_binary_literals
18778 constexpr auto ivii = 0b0000000000101010;
18779 static_assert(ivii == 42, "wrong value");
18783 namespace test_generalized_constexpr
18786 template < typename CharT >
18787 constexpr unsigned long
18788 strlen_c(const CharT *const s) noexcept
18791 for (auto p = s; *p; ++p)
18796 static_assert(strlen_c("") == 0UL, "");
18797 static_assert(strlen_c("x") == 1UL, "");
18798 static_assert(strlen_c("test") == 4UL, "");
18799 static_assert(strlen_c("another\0test") == 7UL, "");
18803 namespace test_lambda_init_capture
18810 const auto lambda1 = [a = x](int b){ return a + b; };
18811 const auto lambda2 = [a = lambda1(x)](){ return a; };
18817 namespace test_digit_separators
18820 constexpr auto ten_million = 100'000'000;
18821 static_assert(ten_million == 100000000, "");
18825 namespace test_return_type_deduction
18828 auto f(int& x) { return x; }
18829 decltype(auto) g(int& x) { return x; }
18831 template < typename T1, typename T2 >
18834 static constexpr auto value = false;
18837 template < typename T >
18838 struct is_same<T, T>
18840 static constexpr auto value = true;
18847 static_assert(is_same<int, decltype(f(x))>::value, "");
18848 static_assert(is_same<int&, decltype(g(x))>::value, "");
18854 } // namespace cxx14
18856 #endif // __cplusplus >= 201402L
18861 if ac_fn_cxx_try_compile "$LINENO"; then :
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 eval ac_res=\$$cachevar
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18871 $as_echo "$ac_res" >&6; }
18872 if eval test x\$$cachevar = xyes; then
18874 if test -n "$CXXCPP" ; then
18875 CXXCPP="$CXXCPP $switch"
18881 if test x$ac_success = xyes; then
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892 if test x$ax_cxx_compile_cxx14_required = xtrue; then
18893 if test x$ac_success = xno; then
18894 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
18897 if test x$ac_success = xno; then
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
18900 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
18904 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
18910 CXX1XCXXFLAGS="$CXXFLAGS"
18911 CXXFLAGS="$save_CXXFLAGS"
18915 ac_cpp='$CXXCPP $CPPFLAGS'
18916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18921 save_CXXFLAGS="$CXXFLAGS"
18922 CXXFLAGS="$CXXFLAGS $CXX1XCXXFLAGS"
18924 # Check that std::future is available.
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
18926 $as_echo_n "checking whether std::future is available... " >&6; }
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18937 std::vector<std::future<int>> v;
18943 if ac_fn_cxx_try_compile "$LINENO"; then :
18945 $as_echo "#define HAVE_STD_FUTURE 1" >>confdefs.h
18947 have_std_future=yes
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18949 $as_echo "yes" >&6; }
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18953 $as_echo "no" >&6; }
18955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957 # Check that std::map::emplace is available for g++-4.7.
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
18959 $as_echo_n "checking whether std::map::emplace is available... " >&6; }
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961 /* end confdefs.h. */
18969 std::map<int, int>().emplace(1, 2);
18975 if ac_fn_cxx_try_compile "$LINENO"; then :
18977 $as_echo "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
18979 have_std_map_emplace=yes
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18981 $as_echo "yes" >&6; }
18983 have_std_map_emplace=no
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18985 $as_echo "no" >&6; }
18987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18989 # Check that std::atomic_* overloads for std::shared_ptr are
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::atomic_* overloads for std::shared_ptr are available" >&5
18992 $as_echo_n "checking whether std::atomic_* overloads for std::shared_ptr are available... " >&6; }
18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
19002 auto a = std::make_shared<int>(1000000007);
19003 auto p = std::atomic_load(&a);
19005 std::atomic_store(&a, p);
19011 if ac_fn_cxx_try_compile "$LINENO"; then :
19013 $as_echo "#define HAVE_ATOMIC_STD_SHARED_PTR 1" >>confdefs.h
19015 have_atomic_std_shared_ptr=yes
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19017 $as_echo "yes" >&6; }
19019 have_atomic_std_shared_ptr=no
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 # Check that thread_local storage specifier is available
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread_local storage class specifier is available." >&5
19027 $as_echo_n "checking whether thread_local storage class specifier is available.... " >&6; }
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19035 thread_local int a = 0;
19042 if ac_fn_cxx_try_compile "$LINENO"; then :
19044 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
19046 have_thread_local=yes
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19048 $as_echo "yes" >&6; }
19050 have_Thread_local=no
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19052 $as_echo "no" >&6; }
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 CXXFLAGS=$save_CXXFLAGS
19059 ac_cpp='$CPP $CPPFLAGS'
19060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065 # Checks for libraries.
19067 # Additional libraries required for tests.
19070 # Additional libraries required for programs under src directory.
19076 # android does not need -pthread, but needs followng 3 libs for C++
19077 APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
19080 PTHREAD_LDFLAGS="-pthread"
19081 APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
19087 APPLDFLAGS="$APPLDFLAGS -lsocket -lnsl"
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
19095 $as_echo_n "checking for ZLIB... " >&6; }
19097 if test -n "$ZLIB_CFLAGS"; then
19098 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
19099 elif test -n "$PKG_CONFIG"; then
19100 if test -n "$PKG_CONFIG" && \
19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
19102 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19105 test $ac_status = 0; }; then
19106 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
19107 test "x$?" != "x0" && pkg_failed=yes
19114 if test -n "$ZLIB_LIBS"; then
19115 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
19116 elif test -n "$PKG_CONFIG"; then
19117 if test -n "$PKG_CONFIG" && \
19118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
19119 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
19121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122 test $ac_status = 0; }; then
19123 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
19124 test "x$?" != "x0" && pkg_failed=yes
19134 if test $pkg_failed = yes; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19139 _pkg_short_errors_supported=yes
19141 _pkg_short_errors_supported=no
19143 if test $_pkg_short_errors_supported = yes; then
19144 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
19146 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
19148 # Put the nasty error message in config.log where it belongs
19149 echo "$ZLIB_PKG_ERRORS" >&5
19152 elif test $pkg_failed = untried; then
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19154 $as_echo "no" >&6; }
19157 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
19158 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160 $as_echo "yes" >&6; }
19164 if test "x${have_zlib}" = "xno"; then
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
19166 $as_echo "$as_me: $ZLIB_PKG_ERRORS" >&6;}
19169 # dl: openssl requires libdl when it is statically linked.
19170 case "${host_os}" in
19172 # dlopen is in libc on *BSD
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19177 $as_echo_n "checking for library containing dlopen... " >&6; }
19178 if ${ac_cv_search_dlopen+:} false; then :
19179 $as_echo_n "(cached) " >&6
19181 ac_func_search_save_LIBS=$LIBS
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19200 for ac_lib in '' dl; do
19201 if test -z "$ac_lib"; then
19202 ac_res="none required"
19205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19207 if ac_fn_c_try_link "$LINENO"; then :
19208 ac_cv_search_dlopen=$ac_res
19210 rm -f core conftest.err conftest.$ac_objext \
19212 if ${ac_cv_search_dlopen+:} false; then :
19216 if ${ac_cv_search_dlopen+:} false; then :
19219 ac_cv_search_dlopen=no
19221 rm conftest.$ac_ext
19222 LIBS=$ac_func_search_save_LIBS
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19225 $as_echo "$ac_cv_search_dlopen" >&6; }
19226 ac_res=$ac_cv_search_dlopen
19227 if test "$ac_res" != no; then :
19228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19229 APPLDFLAGS="-ldl $APPLDFLAGS"
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
19240 $as_echo_n "checking for CUNIT... " >&6; }
19242 if test -n "$CUNIT_CFLAGS"; then
19243 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
19244 elif test -n "$PKG_CONFIG"; then
19245 if test -n "$PKG_CONFIG" && \
19246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
19247 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
19249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19250 test $ac_status = 0; }; then
19251 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
19252 test "x$?" != "x0" && pkg_failed=yes
19259 if test -n "$CUNIT_LIBS"; then
19260 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
19261 elif test -n "$PKG_CONFIG"; then
19262 if test -n "$PKG_CONFIG" && \
19263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
19264 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
19266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19267 test $ac_status = 0; }; then
19268 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
19269 test "x$?" != "x0" && pkg_failed=yes
19279 if test $pkg_failed = yes; then
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19284 _pkg_short_errors_supported=yes
19286 _pkg_short_errors_supported=no
19288 if test $_pkg_short_errors_supported = yes; then
19289 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
19291 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
19293 # Put the nasty error message in config.log where it belongs
19294 echo "$CUNIT_PKG_ERRORS" >&5
19297 elif test $pkg_failed = untried; then
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19299 $as_echo "no" >&6; }
19302 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
19303 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19308 # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
19309 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
19310 if test "x${have_cunit}" = "xno"; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
19312 $as_echo "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
19314 $as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
19315 if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
19316 $as_echo_n "(cached) " >&6
19318 ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lcunit $LIBS"
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19323 /* Override any GCC internal prototype to avoid an error.
19324 Use char because int might match the return type of a GCC
19325 builtin and then its argument prototype would still apply. */
19329 char CU_initialize_registry ();
19333 return CU_initialize_registry ();
19338 if ac_fn_c_try_link "$LINENO"; then :
19339 ac_cv_lib_cunit_CU_initialize_registry=yes
19341 ac_cv_lib_cunit_CU_initialize_registry=no
19343 rm -f core conftest.err conftest.$ac_objext \
19344 conftest$ac_exeext conftest.$ac_ext
19345 LIBS=$ac_check_lib_save_LIBS
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
19348 $as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
19349 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
19355 if test "x${have_cunit}" = "xyes"; then
19356 CUNIT_LIBS="-lcunit"
19362 if test "x${have_cunit}" = "xyes"; then
19363 # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
19364 # program can be built without -lncurses, but it emits runtime
19368 CUNIT_LIBS="$CUNIT_LIBS -lncurses"
19374 if test "x${have_cunit}" = "xyes" ; then
19376 HAVE_CUNIT_FALSE='#'
19378 HAVE_CUNIT_TRUE='#'
19384 # libev does not have pkg-config file. Check it in an old way.
19386 # android requires -lm for floor
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
19388 $as_echo_n "checking for ev_time in -lev... " >&6; }
19389 if ${ac_cv_lib_ev_ev_time+:} false; then :
19390 $as_echo_n "(cached) " >&6
19392 ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lev -lm $LIBS"
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h. */
19397 /* Override any GCC internal prototype to avoid an error.
19398 Use char because int might match the return type of a GCC
19399 builtin and then its argument prototype would still apply. */
19412 if ac_fn_c_try_link "$LINENO"; then :
19413 ac_cv_lib_ev_ev_time=yes
19415 ac_cv_lib_ev_ev_time=no
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19419 LIBS=$ac_check_lib_save_LIBS
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
19422 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
19423 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
19429 if test "x${have_libev}" = "xyes"; then
19430 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
19431 if test "x$ac_cv_header_ev_h" = xyes; then :
19438 if test "x${have_libev}" = "xyes"; then
19447 # openssl (for src)
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
19451 $as_echo_n "checking for OPENSSL... " >&6; }
19453 if test -n "$OPENSSL_CFLAGS"; then
19454 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19455 elif test -n "$PKG_CONFIG"; then
19456 if test -n "$PKG_CONFIG" && \
19457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
19458 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
19460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19461 test $ac_status = 0; }; then
19462 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
19463 test "x$?" != "x0" && pkg_failed=yes
19470 if test -n "$OPENSSL_LIBS"; then
19471 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19472 elif test -n "$PKG_CONFIG"; then
19473 if test -n "$PKG_CONFIG" && \
19474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
19475 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; }; then
19479 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
19480 test "x$?" != "x0" && pkg_failed=yes
19490 if test $pkg_failed = yes; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19495 _pkg_short_errors_supported=yes
19497 _pkg_short_errors_supported=no
19499 if test $_pkg_short_errors_supported = yes; then
19500 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
19502 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
19504 # Put the nasty error message in config.log where it belongs
19505 echo "$OPENSSL_PKG_ERRORS" >&5
19508 elif test $pkg_failed = untried; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19510 $as_echo "no" >&6; }
19513 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19514 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516 $as_echo "yes" >&6; }
19519 if test "x${have_openssl}" = "xno"; then
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
19521 $as_echo "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCARES" >&5
19528 $as_echo_n "checking for LIBCARES... " >&6; }
19530 if test -n "$LIBCARES_CFLAGS"; then
19531 pkg_cv_LIBCARES_CFLAGS="$LIBCARES_CFLAGS"
19532 elif test -n "$PKG_CONFIG"; then
19533 if test -n "$PKG_CONFIG" && \
19534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
19535 ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
19537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538 test $ac_status = 0; }; then
19539 pkg_cv_LIBCARES_CFLAGS=`$PKG_CONFIG --cflags "libcares >= 1.7.5" 2>/dev/null`
19540 test "x$?" != "x0" && pkg_failed=yes
19547 if test -n "$LIBCARES_LIBS"; then
19548 pkg_cv_LIBCARES_LIBS="$LIBCARES_LIBS"
19549 elif test -n "$PKG_CONFIG"; then
19550 if test -n "$PKG_CONFIG" && \
19551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.7.5\""; } >&5
19552 ($PKG_CONFIG --exists --print-errors "libcares >= 1.7.5") 2>&5
19554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19555 test $ac_status = 0; }; then
19556 pkg_cv_LIBCARES_LIBS=`$PKG_CONFIG --libs "libcares >= 1.7.5" 2>/dev/null`
19557 test "x$?" != "x0" && pkg_failed=yes
19567 if test $pkg_failed = yes; then
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19572 _pkg_short_errors_supported=yes
19574 _pkg_short_errors_supported=no
19576 if test $_pkg_short_errors_supported = yes; then
19577 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
19579 LIBCARES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.7.5" 2>&1`
19581 # Put the nasty error message in config.log where it belongs
19582 echo "$LIBCARES_PKG_ERRORS" >&5
19585 elif test $pkg_failed = untried; then
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 $as_echo "no" >&6; }
19590 LIBCARES_CFLAGS=$pkg_cv_LIBCARES_CFLAGS
19591 LIBCARES_LIBS=$pkg_cv_LIBCARES_LIBS
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593 $as_echo "yes" >&6; }
19596 if test "x${have_libcares}" = "xno"; then
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBCARES_PKG_ERRORS" >&5
19598 $as_echo "$as_me: $LIBCARES_PKG_ERRORS" >&6;}
19601 # libevent_openssl (for examples)
19602 # 2.0.8 is required because we use evconnlistener_set_error_cb()
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT_OPENSSL" >&5
19606 $as_echo_n "checking for LIBEVENT_OPENSSL... " >&6; }
19608 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
19609 pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
19610 elif test -n "$PKG_CONFIG"; then
19611 if test -n "$PKG_CONFIG" && \
19612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
19613 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
19615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19616 test $ac_status = 0; }; then
19617 pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
19618 test "x$?" != "x0" && pkg_failed=yes
19625 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
19626 pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
19627 elif test -n "$PKG_CONFIG"; then
19628 if test -n "$PKG_CONFIG" && \
19629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
19630 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
19632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633 test $ac_status = 0; }; then
19634 pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
19635 test "x$?" != "x0" && pkg_failed=yes
19645 if test $pkg_failed = yes; then
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647 $as_echo "no" >&6; }
19649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19650 _pkg_short_errors_supported=yes
19652 _pkg_short_errors_supported=no
19654 if test $_pkg_short_errors_supported = yes; then
19655 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
19657 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
19659 # Put the nasty error message in config.log where it belongs
19660 echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
19662 have_libevent_openssl=no
19663 elif test $pkg_failed = untried; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19665 $as_echo "no" >&6; }
19666 have_libevent_openssl=no
19668 LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
19669 LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19671 $as_echo "yes" >&6; }
19672 have_libevent_openssl=yes
19674 if test "x${have_libevent_openssl}" = "xno"; then
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
19676 $as_echo "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
19679 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
19683 $as_echo_n "checking for JANSSON... " >&6; }
19685 if test -n "$JANSSON_CFLAGS"; then
19686 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
19687 elif test -n "$PKG_CONFIG"; then
19688 if test -n "$PKG_CONFIG" && \
19689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
19690 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
19692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19693 test $ac_status = 0; }; then
19694 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
19695 test "x$?" != "x0" && pkg_failed=yes
19702 if test -n "$JANSSON_LIBS"; then
19703 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
19704 elif test -n "$PKG_CONFIG"; then
19705 if test -n "$PKG_CONFIG" && \
19706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
19707 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
19709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19710 test $ac_status = 0; }; then
19711 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
19712 test "x$?" != "x0" && pkg_failed=yes
19722 if test $pkg_failed = yes; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19724 $as_echo "no" >&6; }
19726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19727 _pkg_short_errors_supported=yes
19729 _pkg_short_errors_supported=no
19731 if test $_pkg_short_errors_supported = yes; then
19732 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
19734 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
19736 # Put the nasty error message in config.log where it belongs
19737 echo "$JANSSON_PKG_ERRORS" >&5
19740 elif test $pkg_failed = untried; then
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19742 $as_echo "no" >&6; }
19745 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
19746 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19748 $as_echo "yes" >&6; }
19751 if test "x${have_jansson}" = "xyes"; then
19753 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
19757 $as_echo "$as_me: $JANSSON_PKG_ERRORS" >&6;}
19761 # libsystemd (for src/nghttpx)
19763 if test "x${request_systemd}" != "xno"; then
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
19767 $as_echo_n "checking for SYSTEMD... " >&6; }
19769 if test -n "$SYSTEMD_CFLAGS"; then
19770 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
19771 elif test -n "$PKG_CONFIG"; then
19772 if test -n "$PKG_CONFIG" && \
19773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
19774 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
19776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19777 test $ac_status = 0; }; then
19778 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
19779 test "x$?" != "x0" && pkg_failed=yes
19786 if test -n "$SYSTEMD_LIBS"; then
19787 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
19788 elif test -n "$PKG_CONFIG"; then
19789 if test -n "$PKG_CONFIG" && \
19790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
19791 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
19793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19794 test $ac_status = 0; }; then
19795 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
19796 test "x$?" != "x0" && pkg_failed=yes
19806 if test $pkg_failed = yes; then
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19810 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19811 _pkg_short_errors_supported=yes
19813 _pkg_short_errors_supported=no
19815 if test $_pkg_short_errors_supported = yes; then
19816 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
19818 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
19820 # Put the nasty error message in config.log where it belongs
19821 echo "$SYSTEMD_PKG_ERRORS" >&5
19824 elif test $pkg_failed = untried; then
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 $as_echo "no" >&6; }
19829 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
19830 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19832 $as_echo "yes" >&6; }
19833 have_libsystemd=yes
19835 if test "x${have_libsystemd}" = "xyes"; then
19837 $as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: $SYSTEMD_PKG_ERRORS" >&5
19841 $as_echo "$as_me: $SYSTEMD_PKG_ERRORS" >&6;}
19845 if test "x${request_systemd}" = "xyes" &&
19846 test "x${have_libsystemd}" != "xyes"; then
19847 as_fn_error $? "systemd was requested (--with-systemd) but not found" "$LINENO" 5
19850 # libxml2 (for src/nghttp)
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19854 $as_echo_n "checking for LIBXML2... " >&6; }
19856 if test -n "$LIBXML2_CFLAGS"; then
19857 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19858 elif test -n "$PKG_CONFIG"; then
19859 if test -n "$PKG_CONFIG" && \
19860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
19861 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
19863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; then
19865 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.26" 2>/dev/null`
19866 test "x$?" != "x0" && pkg_failed=yes
19873 if test -n "$LIBXML2_LIBS"; then
19874 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19875 elif test -n "$PKG_CONFIG"; then
19876 if test -n "$PKG_CONFIG" && \
19877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.26\""; } >&5
19878 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.26") 2>&5
19880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881 test $ac_status = 0; }; then
19882 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.26" 2>/dev/null`
19883 test "x$?" != "x0" && pkg_failed=yes
19893 if test $pkg_failed = yes; then
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19895 $as_echo "no" >&6; }
19897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19898 _pkg_short_errors_supported=yes
19900 _pkg_short_errors_supported=no
19902 if test $_pkg_short_errors_supported = yes; then
19903 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
19905 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.26" 2>&1`
19907 # Put the nasty error message in config.log where it belongs
19908 echo "$LIBXML2_PKG_ERRORS" >&5
19911 elif test $pkg_failed = untried; then
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19916 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19917 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19919 $as_echo "yes" >&6; }
19922 if test "x${have_libxml2}" = "xyes"; then
19924 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBXML2_PKG_ERRORS" >&5
19928 $as_echo "$as_me: $LIBXML2_PKG_ERRORS" >&6;}
19931 if test "x${request_libxml2}" = "xyes" &&
19932 test "x${have_libxml2}" != "xyes"; then
19933 as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
19936 if test "x${have_libxml2}" = "xyes" ; then
19938 HAVE_LIBXML2_FALSE='#'
19940 HAVE_LIBXML2_TRUE='#'
19941 HAVE_LIBXML2_FALSE=
19947 if test "x${request_jemalloc}" != "xno"; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
19950 $as_echo_n "checking for library containing malloc_stats_print... " >&6; }
19951 if ${ac_cv_search_malloc_stats_print+:} false; then :
19952 $as_echo_n "(cached) " >&6
19954 ac_func_search_save_LIBS=$LIBS
19955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956 /* end confdefs.h. */
19958 /* Override any GCC internal prototype to avoid an error.
19959 Use char because int might match the return type of a GCC
19960 builtin and then its argument prototype would still apply. */
19964 char malloc_stats_print ();
19968 return malloc_stats_print ();
19973 for ac_lib in '' jemalloc; do
19974 if test -z "$ac_lib"; then
19975 ac_res="none required"
19978 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
19980 if ac_fn_c_try_link "$LINENO"; then :
19981 ac_cv_search_malloc_stats_print=$ac_res
19983 rm -f core conftest.err conftest.$ac_objext \
19985 if ${ac_cv_search_malloc_stats_print+:} false; then :
19989 if ${ac_cv_search_malloc_stats_print+:} false; then :
19992 ac_cv_search_malloc_stats_print=no
19994 rm conftest.$ac_ext
19995 LIBS=$ac_func_search_save_LIBS
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
19998 $as_echo "$ac_cv_search_malloc_stats_print" >&6; }
19999 ac_res=$ac_cv_search_malloc_stats_print
20000 if test "$ac_res" != no; then :
20001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20006 if test "x${have_jemalloc}" = "xyes"; then
20007 jemalloc_libs=${ac_cv_search_malloc_stats_print}
20009 # On Darwin, malloc_stats_print is je_malloc_stats_print
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
20011 $as_echo_n "checking for library containing je_malloc_stats_print... " >&6; }
20012 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20013 $as_echo_n "(cached) " >&6
20015 ac_func_search_save_LIBS=$LIBS
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20025 char je_malloc_stats_print ();
20029 return je_malloc_stats_print ();
20034 for ac_lib in '' jemalloc; do
20035 if test -z "$ac_lib"; then
20036 ac_res="none required"
20039 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
20041 if ac_fn_c_try_link "$LINENO"; then :
20042 ac_cv_search_je_malloc_stats_print=$ac_res
20044 rm -f core conftest.err conftest.$ac_objext \
20046 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20050 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
20053 ac_cv_search_je_malloc_stats_print=no
20055 rm conftest.$ac_ext
20056 LIBS=$ac_func_search_save_LIBS
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
20059 $as_echo "$ac_cv_search_je_malloc_stats_print" >&6; }
20060 ac_res=$ac_cv_search_je_malloc_stats_print
20061 if test "$ac_res" != no; then :
20062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20067 if test "x${have_jemalloc}" = "xyes"; then
20068 jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
20074 if test "x${have_jemalloc}" = "xyes" &&
20075 test "x${jemalloc_libs}" != "xnone required"; then
20076 JEMALLOC_LIBS=${jemalloc_libs}
20081 if test "x${request_jemalloc}" = "xyes" &&
20082 test "x${have_jemalloc}" != "xyes"; then
20083 as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
20086 # Check Boost Asio library
20089 if test "x${request_asio_lib}" = "xyes"; then
20092 # Check whether --with-boost was given.
20093 if test "${with_boost+set}" = set; then :
20094 withval=$with_boost;
20095 if test "$withval" = "no"; then
20097 elif test "$withval" = "yes"; then
20102 ac_boost_path="$withval"
20112 # Check whether --with-boost-libdir was given.
20113 if test "${with_boost_libdir+set}" = set; then :
20114 withval=$with_boost_libdir;
20115 if test -d "$withval"
20117 ac_boost_lib_path="$withval"
20119 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
20123 ac_boost_lib_path=""
20128 if test "x$want_boost" = "xyes"; then
20129 boost_lib_version_req=1.54.0
20130 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20131 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20132 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20133 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20134 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20135 boost_lib_version_req_sub_minor="0"
20137 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
20139 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
20146 libsubdirs="lib64 libx32 lib lib64"
20148 ppc64|s390x|sparc64|aarch64|ppc64le)
20149 libsubdirs="lib64 lib lib64 ppc64le"
20154 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
20156 case ${host_cpu} in
20158 libsubdirs="lib/i386-${host_os} $libsubdirs"
20162 if test "$ac_boost_path" != ""; then
20163 BOOST_CPPFLAGS="-I$ac_boost_path/include"
20164 for ac_boost_path_tmp in $libsubdirs; do
20165 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
20166 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
20170 elif test "$cross_compiling" != yes; then
20171 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
20172 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20173 for libsubdir in $libsubdirs ; do
20174 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20176 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
20177 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20183 if test "$ac_boost_lib_path" != ""; then
20184 BOOST_LDFLAGS="-L$ac_boost_lib_path"
20187 CPPFLAGS_SAVED="$CPPFLAGS"
20188 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20191 LDFLAGS_SAVED="$LDFLAGS"
20192 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20205 #include <boost/version.hpp>
20211 #if BOOST_VERSION >= $WANT_BOOST_VERSION
20212 // Everything is okay
20214 # error Boost version is too old
20221 if ac_fn_cxx_try_compile "$LINENO"; then :
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20224 $as_echo "yes" >&6; }
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 ac_cpp='$CPP $CPPFLAGS'
20232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20239 if test "x$succeeded" != "xyes"; then
20241 if test "$ac_boost_path" != ""; then
20242 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20243 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20244 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20245 V_CHECK=`expr $_version_tmp \> $_version`
20246 if test "$V_CHECK" = "1" ; then
20247 _version=$_version_tmp
20249 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20250 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20254 if test "$cross_compiling" != yes; then
20255 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
20256 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20257 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20258 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20259 V_CHECK=`expr $_version_tmp \> $_version`
20260 if test "$V_CHECK" = "1" ; then
20261 _version=$_version_tmp
20262 best_path=$ac_boost_path
20268 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20269 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20270 if test "$ac_boost_lib_path" = ""; then
20271 for libsubdir in $libsubdirs ; do
20272 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20274 BOOST_LDFLAGS="-L$best_path/$libsubdir"
20278 if test "x$BOOST_ROOT" != "x"; then
20279 for libsubdir in $libsubdirs ; do
20280 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
20282 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
20283 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20284 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20285 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20286 V_CHECK=`expr $stage_version_shorten \>\= $_version`
20287 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
20289 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20290 BOOST_CPPFLAGS="-I$BOOST_ROOT"
20291 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
20297 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20299 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20303 ac_cpp='$CXXCPP $CPPFLAGS'
20304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309 /* end confdefs.h. */
20311 #include <boost/version.hpp>
20317 #if BOOST_VERSION >= $WANT_BOOST_VERSION
20318 // Everything is okay
20320 # error Boost version is too old
20327 if ac_fn_cxx_try_compile "$LINENO"; then :
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20330 $as_echo "yes" >&6; }
20335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20337 ac_cpp='$CPP $CPPFLAGS'
20338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20344 if test "$succeeded" != "yes" ; then
20345 if test "$_version" = "0" ; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20347 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
20350 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20352 # execute ACTION-IF-NOT-FOUND (if present):
20358 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
20360 # execute ACTION-IF-FOUND (if present):
20361 have_boost_base=yes
20364 CPPFLAGS="$CPPFLAGS_SAVED"
20365 LDFLAGS="$LDFLAGS_SAVED"
20370 if test "x${have_boost_base}" = "xyes"; then
20373 # Check whether --with-boost-asio was given.
20374 if test "${with_boost_asio+set}" = set; then :
20375 withval=$with_boost_asio;
20376 if test "$withval" = "no"; then
20378 elif test "$withval" = "yes"; then
20380 ax_boost_user_asio_lib=""
20383 ax_boost_user_asio_lib="$withval"
20392 if test "x$want_boost" = "xyes"; then
20394 CPPFLAGS_SAVED="$CPPFLAGS"
20395 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20398 LDFLAGS_SAVED="$LDFLAGS"
20399 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
20403 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
20404 if ${ax_cv_boost_asio+:} false; then :
20405 $as_echo_n "(cached) " >&6
20408 ac_cpp='$CXXCPP $CPPFLAGS'
20409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h. */
20415 #include <boost/asio.hpp>
20422 boost::asio::io_service io;
20423 boost::system::error_code timer_result;
20424 boost::asio::deadline_timer t(io);
20433 if ac_fn_cxx_try_compile "$LINENO"; then :
20434 ax_cv_boost_asio=yes
20436 ax_cv_boost_asio=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 ac_cpp='$CPP $CPPFLAGS'
20441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
20448 $as_echo "$ax_cv_boost_asio" >&6; }
20449 if test "x$ax_cv_boost_asio" = "xyes"; then
20451 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
20454 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20455 if test "x$ax_boost_user_asio_lib" = "x"; then
20456 for ax_lib in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.dylib* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_system.*\)\.a.*$;\1;' ` ; do
20457 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
20459 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
20460 if eval \${$as_ac_Lib+:} false; then :
20461 $as_echo_n "(cached) " >&6
20463 ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-l$ax_lib $LIBS"
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h. */
20477 if ac_fn_c_try_link "$LINENO"; then :
20478 eval "$as_ac_Lib=yes"
20480 eval "$as_ac_Lib=no"
20482 rm -f core conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 eval ac_res=\$$as_ac_Lib
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20488 $as_echo "$ac_res" >&6; }
20489 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20490 BOOST_ASIO_LIB="-l$ax_lib" link_thread="yes" break
20497 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
20498 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
20500 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
20501 if eval \${$as_ac_Lib+:} false; then :
20502 $as_echo_n "(cached) " >&6
20504 ac_check_lib_save_LIBS=$LIBS
20505 LIBS="-l$ax_lib $LIBS"
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20518 if ac_fn_c_try_link "$LINENO"; then :
20519 eval "$as_ac_Lib=yes"
20521 eval "$as_ac_Lib=no"
20523 rm -f core conftest.err conftest.$ac_objext \
20524 conftest$ac_exeext conftest.$ac_ext
20525 LIBS=$ac_check_lib_save_LIBS
20527 eval ac_res=\$$as_ac_Lib
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20529 $as_echo "$ac_res" >&6; }
20530 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20531 BOOST_ASIO_LIB="-l$ax_lib" link_asio="yes" break
20539 if test "x$ax_lib" = "x"; then
20540 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20542 if test "x$link_asio" = "xno"; then
20543 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20547 CPPFLAGS="$CPPFLAGS_SAVED"
20548 LDFLAGS="$LDFLAGS_SAVED"
20553 # Check whether --with-boost-system was given.
20554 if test "${with_boost_system+set}" = set; then :
20555 withval=$with_boost_system;
20556 if test "$withval" = "no"; then
20558 elif test "$withval" = "yes"; then
20560 ax_boost_user_system_lib=""
20563 ax_boost_user_system_lib="$withval"
20572 if test "x$want_boost" = "xyes"; then
20575 CPPFLAGS_SAVED="$CPPFLAGS"
20576 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20579 LDFLAGS_SAVED="$LDFLAGS"
20580 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
20584 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
20585 if ${ax_cv_boost_system+:} false; then :
20586 $as_echo_n "(cached) " >&6
20589 ac_cpp='$CXXCPP $CPPFLAGS'
20590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20594 CXXFLAGS_SAVE=$CXXFLAGS
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20598 #include <boost/system/error_code.hpp>
20602 boost::system::system_category
20607 if ac_fn_cxx_try_compile "$LINENO"; then :
20608 ax_cv_boost_system=yes
20610 ax_cv_boost_system=no
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 CXXFLAGS=$CXXFLAGS_SAVE
20615 ac_cpp='$CPP $CPPFLAGS'
20616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
20623 $as_echo "$ax_cv_boost_system" >&6; }
20624 if test "x$ax_cv_boost_system" = "xyes"; then
20628 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
20630 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20632 LDFLAGS_SAVE=$LDFLAGS
20633 if test "x$ax_boost_user_system_lib" = "x"; then
20634 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
20635 ax_lib=${libextension}
20636 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20638 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20639 if eval \${$as_ac_Lib+:} false; then :
20640 $as_echo_n "(cached) " >&6
20642 ac_check_lib_save_LIBS=$LIBS
20643 LIBS="-l$ax_lib $LIBS"
20644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20645 /* end confdefs.h. */
20647 /* Override any GCC internal prototype to avoid an error.
20648 Use char because int might match the return type of a GCC
20649 builtin and then its argument prototype would still apply. */
20662 if ac_fn_c_try_link "$LINENO"; then :
20663 eval "$as_ac_Lib=yes"
20665 eval "$as_ac_Lib=no"
20667 rm -f core conftest.err conftest.$ac_objext \
20668 conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20671 eval ac_res=\$$as_ac_Lib
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20673 $as_echo "$ac_res" >&6; }
20674 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20675 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
20681 if test "x$link_system" != "xyes"; then
20682 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
20683 ax_lib=${libextension}
20684 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20686 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20687 if eval \${$as_ac_Lib+:} false; then :
20688 $as_echo_n "(cached) " >&6
20690 ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-l$ax_lib $LIBS"
20692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693 /* end confdefs.h. */
20695 /* Override any GCC internal prototype to avoid an error.
20696 Use char because int might match the return type of a GCC
20697 builtin and then its argument prototype would still apply. */
20710 if ac_fn_c_try_link "$LINENO"; then :
20711 eval "$as_ac_Lib=yes"
20713 eval "$as_ac_Lib=no"
20715 rm -f core conftest.err conftest.$ac_objext \
20716 conftest$ac_exeext conftest.$ac_ext
20717 LIBS=$ac_check_lib_save_LIBS
20719 eval ac_res=\$$as_ac_Lib
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20721 $as_echo "$ac_res" >&6; }
20722 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20723 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
20732 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
20733 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20735 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20736 if eval \${$as_ac_Lib+:} false; then :
20737 $as_echo_n "(cached) " >&6
20739 ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-l$ax_lib $LIBS"
20741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742 /* end confdefs.h. */
20744 /* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20759 if ac_fn_c_try_link "$LINENO"; then :
20760 eval "$as_ac_Lib=yes"
20762 eval "$as_ac_Lib=no"
20764 rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
20766 LIBS=$ac_check_lib_save_LIBS
20768 eval ac_res=\$$as_ac_Lib
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20770 $as_echo "$ac_res" >&6; }
20771 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20772 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
20780 if test "x$ax_lib" = "x"; then
20781 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20783 if test "x$link_system" = "xno"; then
20784 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20788 CPPFLAGS="$CPPFLAGS_SAVED"
20789 LDFLAGS="$LDFLAGS_SAVED"
20794 # Check whether --with-boost-thread was given.
20795 if test "${with_boost_thread+set}" = set; then :
20796 withval=$with_boost_thread;
20797 if test "$withval" = "no"; then
20799 elif test "$withval" = "yes"; then
20801 ax_boost_user_thread_lib=""
20804 ax_boost_user_thread_lib="$withval"
20813 if test "x$want_boost" = "xyes"; then
20816 CPPFLAGS_SAVED="$CPPFLAGS"
20817 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20820 LDFLAGS_SAVED="$LDFLAGS"
20821 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
20825 $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
20826 if ${ax_cv_boost_thread+:} false; then :
20827 $as_echo_n "(cached) " >&6
20830 ac_cpp='$CXXCPP $CPPFLAGS'
20831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835 CXXFLAGS_SAVE=$CXXFLAGS
20837 if test "x$host_os" = "xsolaris" ; then
20838 CXXFLAGS="-pthreads $CXXFLAGS"
20839 elif test "x$host_os" = "xmingw32" ; then
20840 CXXFLAGS="-mthreads $CXXFLAGS"
20842 CXXFLAGS="-pthread $CXXFLAGS"
20844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h. */
20846 #include <boost/thread/thread.hpp>
20850 boost::thread_group thrds;
20856 if ac_fn_cxx_try_compile "$LINENO"; then :
20857 ax_cv_boost_thread=yes
20859 ax_cv_boost_thread=no
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 CXXFLAGS=$CXXFLAGS_SAVE
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
20872 $as_echo "$ax_cv_boost_thread" >&6; }
20873 if test "x$ax_cv_boost_thread" = "xyes"; then
20874 if test "x$host_os" = "xsolaris" ; then
20875 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
20876 elif test "x$host_os" = "xmingw32" ; then
20877 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
20879 BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
20885 $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
20887 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
20889 LDFLAGS_SAVE=$LDFLAGS
20890 case "x$host_os" in
20892 LDFLAGS="-pthread $LDFLAGS"
20896 if test "x$ax_boost_user_thread_lib" = "x"; then
20897 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
20898 ax_lib=${libextension}
20899 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20901 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20902 if eval \${$as_ac_Lib+:} false; then :
20903 $as_echo_n "(cached) " >&6
20905 ac_check_lib_save_LIBS=$LIBS
20906 LIBS="-l$ax_lib $LIBS"
20907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20908 /* end confdefs.h. */
20910 /* Override any GCC internal prototype to avoid an error.
20911 Use char because int might match the return type of a GCC
20912 builtin and then its argument prototype would still apply. */
20925 if ac_fn_c_try_link "$LINENO"; then :
20926 eval "$as_ac_Lib=yes"
20928 eval "$as_ac_Lib=no"
20930 rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
20932 LIBS=$ac_check_lib_save_LIBS
20934 eval ac_res=\$$as_ac_Lib
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20936 $as_echo "$ac_res" >&6; }
20937 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20938 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
20944 if test "x$link_thread" != "xyes"; then
20945 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
20946 ax_lib=${libextension}
20947 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20949 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20950 if eval \${$as_ac_Lib+:} false; then :
20951 $as_echo_n "(cached) " >&6
20953 ac_check_lib_save_LIBS=$LIBS
20954 LIBS="-l$ax_lib $LIBS"
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20958 /* Override any GCC internal prototype to avoid an error.
20959 Use char because int might match the return type of a GCC
20960 builtin and then its argument prototype would still apply. */
20973 if ac_fn_c_try_link "$LINENO"; then :
20974 eval "$as_ac_Lib=yes"
20976 eval "$as_ac_Lib=no"
20978 rm -f core conftest.err conftest.$ac_objext \
20979 conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20982 eval ac_res=\$$as_ac_Lib
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20984 $as_echo "$ac_res" >&6; }
20985 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20986 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
20995 for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
20996 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20998 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20999 if eval \${$as_ac_Lib+:} false; then :
21000 $as_echo_n "(cached) " >&6
21002 ac_check_lib_save_LIBS=$LIBS
21003 LIBS="-l$ax_lib $LIBS"
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h. */
21007 /* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
21022 if ac_fn_c_try_link "$LINENO"; then :
21023 eval "$as_ac_Lib=yes"
21025 eval "$as_ac_Lib=no"
21027 rm -f core conftest.err conftest.$ac_objext \
21028 conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21031 eval ac_res=\$$as_ac_Lib
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21033 $as_echo "$ac_res" >&6; }
21034 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21035 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
21043 if test "x$ax_lib" = "x"; then
21044 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
21046 if test "x$link_thread" = "xno"; then
21047 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
21049 case "x$host_os" in
21051 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
21059 CPPFLAGS="$CPPFLAGS_SAVED"
21060 LDFLAGS="$LDFLAGS_SAVED"
21064 if test "x${ax_cv_boost_asio}" = "xyes" &&
21065 test "x${ax_cv_boost_system}" = "xyes" &&
21066 test "x${ax_cv_boost_thread}" = "xyes"; then
21072 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL,
21073 # libev, and libc-ares.
21075 if test "x${request_app}" != "xno" &&
21076 test "x${have_zlib}" = "xyes" &&
21077 test "x${have_openssl}" = "xyes" &&
21078 test "x${have_libev}" = "xyes" &&
21079 test "x${have_libcares}" = "xyes"; then
21083 if test "x${request_app}" = "xyes" &&
21084 test "x${enable_app}" != "xyes"; then
21085 as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
21088 if test "x${enable_app}" = "xyes" ; then
21090 ENABLE_APP_FALSE='#'
21092 ENABLE_APP_TRUE='#'
21097 enable_hpack_tools=no
21098 # HPACK tools requires jansson
21099 if test "x${request_hpack_tools}" != "xno" &&
21100 test "x${have_jansson}" = "xyes"; then
21101 enable_hpack_tools=yes
21104 if test "x${request_hpack_tools}" = "xyes" &&
21105 test "x${enable_hpack_tools}" != "xyes"; then
21106 as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
21109 if test "x${enable_hpack_tools}" = "xyes" ; then
21110 ENABLE_HPACK_TOOLS_TRUE=
21111 ENABLE_HPACK_TOOLS_FALSE='#'
21113 ENABLE_HPACK_TOOLS_TRUE='#'
21114 ENABLE_HPACK_TOOLS_FALSE=
21118 # C++ library libnghttp2_asio
21121 if test "x${request_asio_lib}" != "xno" &&
21122 test "x${have_asio_lib}" = "xyes"; then
21123 enable_asio_lib=yes
21126 if test "x${enable_asio_lib}" = "xyes" ; then
21127 ENABLE_ASIO_LIB_TRUE=
21128 ENABLE_ASIO_LIB_FALSE='#'
21130 ENABLE_ASIO_LIB_TRUE='#'
21131 ENABLE_ASIO_LIB_FALSE=
21135 # The example programs depend on OpenSSL and libevent_openssl
21137 if test "x${request_examples}" != "xno" &&
21138 test "x${have_openssl}" = "xyes" &&
21139 test "x${have_libevent_openssl}" = "xyes"; then
21140 enable_examples=yes
21143 if test "x${request_examples}" = "xyes" &&
21144 test "x${enable_examples}" != "xyes"; then
21145 as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
21148 if test "x${enable_examples}" = "xyes" ; then
21149 ENABLE_EXAMPLES_TRUE=
21150 ENABLE_EXAMPLES_FALSE='#'
21152 ENABLE_EXAMPLES_TRUE='#'
21153 ENABLE_EXAMPLES_FALSE=
21157 # third-party only be built when needed
21159 enable_third_party=no
21162 if test "x${enable_examples}" = "xyes" ||
21163 test "x${enable_app}" = "xyes" ||
21164 test "x${enable_hpack_tools}" = "xyes" ||
21165 test "x${enable_asio_lib}" = "xyes"; then
21166 enable_third_party=yes
21168 # mruby (for src/nghttpx)
21169 if test "x${request_mruby}" = "xyes"; then
21170 # We are going to build mruby
21173 $as_echo "#define HAVE_MRUBY 1" >>confdefs.h
21175 LIBMRUBY_LIBS="-lmruby -lm"
21181 # neverbleed (for src/nghttpx)
21182 if test "x${request_neverbleed}" = "xyes"; then
21183 have_neverbleed=yes
21185 $as_echo "#define HAVE_NEVERBLEED 1" >>confdefs.h
21190 if test "x${enable_third_party}" = "xyes" ; then
21191 ENABLE_THIRD_PARTY_TRUE=
21192 ENABLE_THIRD_PARTY_FALSE='#'
21194 ENABLE_THIRD_PARTY_TRUE='#'
21195 ENABLE_THIRD_PARTY_FALSE=
21198 if test "x${have_mruby}" = "xyes"; then
21200 HAVE_MRUBY_FALSE='#'
21202 HAVE_MRUBY_TRUE='#'
21206 if test "x${have_neverbleed}" = "xyes"; then
21207 HAVE_NEVERBLEED_TRUE=
21208 HAVE_NEVERBLEED_FALSE='#'
21210 HAVE_NEVERBLEED_TRUE='#'
21211 HAVE_NEVERBLEED_FALSE=
21216 enable_python_bindings=no
21217 if test "x${request_python_bindings}" != "xno" &&
21218 test "x${CYTHON}" != "x" &&
21219 test "x${PYTHON}" != "x:" &&
21220 test "x${have_python_dev}" = "xyes"; then
21221 enable_python_bindings=yes
21224 if test "x${request_python_bindings}" = "xyes" &&
21225 test "x${enable_python_bindings}" != "xyes"; then
21226 as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
21229 if test "x${enable_python_bindings}" = "xyes"; then
21230 ENABLE_PYTHON_BINDINGS_TRUE=
21231 ENABLE_PYTHON_BINDINGS_FALSE='#'
21233 ENABLE_PYTHON_BINDINGS_TRUE='#'
21234 ENABLE_PYTHON_BINDINGS_FALSE=
21238 # Produce cython conditional, so that we can distribute generated C
21240 if test "x${CYTHON}" != "x"; then
21242 HAVE_CYTHON_FALSE='#'
21244 HAVE_CYTHON_TRUE='#'
21250 enable_failmalloc=no
21251 if test "x${request_failmalloc}" = "xyes"; then
21252 enable_failmalloc=yes
21255 if test "x${enable_failmalloc}" = "xyes" ; then
21256 ENABLE_FAILMALLOC_TRUE=
21257 ENABLE_FAILMALLOC_FALSE='#'
21259 ENABLE_FAILMALLOC_TRUE='#'
21260 ENABLE_FAILMALLOC_FALSE=
21264 # Checks for header files.
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21267 $as_echo_n "checking whether to enable assertions... " >&6; }
21268 # Check whether --enable-assert was given.
21269 if test "${enable_assert+set}" = set; then :
21270 enableval=$enable_assert; ac_enable_assert=$enableval
21271 if test "x$enableval" = xno; then :
21273 $as_echo "#define NDEBUG 1" >>confdefs.h
21275 elif test "x$enableval" != xyes; then :
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21277 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21278 ac_enable_assert=yes
21281 ac_enable_assert=yes
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21285 $as_echo "$ac_enable_assert" >&6; }
21306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21307 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21308 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21309 cat >>confdefs.h <<_ACEOF
21310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21318 # Checks for typedefs, structures, and compiler characteristics.
21319 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21320 if test "x$ac_cv_type_size_t" = xyes; then :
21324 cat >>confdefs.h <<_ACEOF
21325 #define size_t unsigned int
21330 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21331 if test "x$ac_cv_type_ssize_t" = xyes; then :
21335 cat >>confdefs.h <<_ACEOF
21336 #define ssize_t int
21341 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21342 case $ac_cv_c_uint8_t in #(
21346 $as_echo "#define _UINT8_T 1" >>confdefs.h
21349 cat >>confdefs.h <<_ACEOF
21350 #define uint8_t $ac_cv_c_uint8_t
21355 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21356 case $ac_cv_c_uint16_t in #(
21361 cat >>confdefs.h <<_ACEOF
21362 #define uint16_t $ac_cv_c_uint16_t
21367 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21368 case $ac_cv_c_uint32_t in #(
21372 $as_echo "#define _UINT32_T 1" >>confdefs.h
21375 cat >>confdefs.h <<_ACEOF
21376 #define uint32_t $ac_cv_c_uint32_t
21381 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21382 case $ac_cv_c_uint64_t in #(
21386 $as_echo "#define _UINT64_T 1" >>confdefs.h
21389 cat >>confdefs.h <<_ACEOF
21390 #define uint64_t $ac_cv_c_uint64_t
21395 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
21396 case $ac_cv_c_int8_t in #(
21400 cat >>confdefs.h <<_ACEOF
21401 #define int8_t $ac_cv_c_int8_t
21406 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
21407 case $ac_cv_c_int16_t in #(
21411 cat >>confdefs.h <<_ACEOF
21412 #define int16_t $ac_cv_c_int16_t
21417 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
21418 case $ac_cv_c_int32_t in #(
21422 cat >>confdefs.h <<_ACEOF
21423 #define int32_t $ac_cv_c_int32_t
21428 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21429 case $ac_cv_c_int64_t in #(
21433 cat >>confdefs.h <<_ACEOF
21434 #define int64_t $ac_cv_c_int64_t
21439 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21440 if test "x$ac_cv_type_off_t" = xyes; then :
21444 cat >>confdefs.h <<_ACEOF
21445 #define off_t long int
21450 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21451 if test "x$ac_cv_type_pid_t" = xyes; then :
21455 cat >>confdefs.h <<_ACEOF
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21462 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21463 if ${ac_cv_type_uid_t+:} false; then :
21464 $as_echo_n "(cached) " >&6
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21468 #include <sys/types.h>
21471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21472 $EGREP "uid_t" >/dev/null 2>&1; then :
21473 ac_cv_type_uid_t=yes
21475 ac_cv_type_uid_t=no
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21481 $as_echo "$ac_cv_type_uid_t" >&6; }
21482 if test $ac_cv_type_uid_t = no; then
21484 $as_echo "#define uid_t int" >>confdefs.h
21487 $as_echo "#define gid_t int" >>confdefs.h
21491 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21492 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_PTRDIFF_T 1
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21502 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21503 if ${ac_cv_c_bigendian+:} false; then :
21504 $as_echo_n "(cached) " >&6
21506 ac_cv_c_bigendian=unknown
21507 # See if we're dealing with a universal compiler.
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21510 #ifndef __APPLE_CC__
21511 not a universal capable compiler
21516 if ac_fn_c_try_compile "$LINENO"; then :
21518 # Check for potential -arch flags. It is not universal unless
21519 # there are at least two -arch flags with different values.
21522 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21523 if test -n "$ac_prev"; then
21525 i?86 | x86_64 | ppc | ppc64)
21526 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21529 ac_cv_c_bigendian=universal
21535 elif test "x$ac_word" = "x-arch"; then
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 if test $ac_cv_c_bigendian = unknown; then
21542 # See if sys/param.h defines the BYTE_ORDER macro.
21543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <sys/types.h>
21546 #include <sys/param.h>
21551 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21552 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21554 bogus endian macros
21561 if ac_fn_c_try_compile "$LINENO"; then :
21562 # It does; now see whether it defined to BIG_ENDIAN or not.
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565 #include <sys/types.h>
21566 #include <sys/param.h>
21571 #if BYTE_ORDER != BIG_ENDIAN
21579 if ac_fn_c_try_compile "$LINENO"; then :
21580 ac_cv_c_bigendian=yes
21582 ac_cv_c_bigendian=no
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 if test $ac_cv_c_bigendian = unknown; then
21589 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21591 /* end confdefs.h. */
21592 #include <limits.h>
21597 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21598 bogus endian macros
21605 if ac_fn_c_try_compile "$LINENO"; then :
21606 # It does; now see whether it defined to _BIG_ENDIAN or not.
21607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h. */
21609 #include <limits.h>
21614 #ifndef _BIG_ENDIAN
21622 if ac_fn_c_try_compile "$LINENO"; then :
21623 ac_cv_c_bigendian=yes
21625 ac_cv_c_bigendian=no
21627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 if test $ac_cv_c_bigendian = unknown; then
21632 # Compile a test program.
21633 if test "$cross_compiling" = yes; then :
21634 # Try to guess by grepping values from an object file.
21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21637 short int ascii_mm[] =
21638 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21639 short int ascii_ii[] =
21640 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21641 int use_ascii (int i) {
21642 return ascii_mm[i] + ascii_ii[i];
21644 short int ebcdic_ii[] =
21645 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21646 short int ebcdic_mm[] =
21647 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21648 int use_ebcdic (int i) {
21649 return ebcdic_mm[i] + ebcdic_ii[i];
21656 return use_ascii (foo) == use_ebcdic (foo);
21661 if ac_fn_c_try_compile "$LINENO"; then :
21662 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21663 ac_cv_c_bigendian=yes
21665 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21666 if test "$ac_cv_c_bigendian" = unknown; then
21667 ac_cv_c_bigendian=no
21669 # finding both strings is unlikely to happen, but who knows?
21670 ac_cv_c_bigendian=unknown
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21677 /* end confdefs.h. */
21678 $ac_includes_default
21683 /* Are we little or big endian? From Harbison&Steele. */
21687 char c[sizeof (long int)];
21690 return u.c[sizeof (long int) - 1] == 1;
21696 if ac_fn_c_try_run "$LINENO"; then :
21697 ac_cv_c_bigendian=no
21699 ac_cv_c_bigendian=yes
21701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21702 conftest.$ac_objext conftest.beam conftest.$ac_ext
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21708 $as_echo "$ac_cv_c_bigendian" >&6; }
21709 case $ac_cv_c_bigendian in #(
21711 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21717 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21721 as_fn_error $? "unknown endianness
21722 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21726 $as_echo_n "checking for inline... " >&6; }
21727 if ${ac_cv_c_inline+:} false; then :
21728 $as_echo_n "(cached) " >&6
21731 for ac_kw in inline __inline__ __inline; do
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21734 #ifndef __cplusplus
21736 static $ac_kw foo_t static_foo () {return 0; }
21737 $ac_kw foo_t foo () {return 0; }
21741 if ac_fn_c_try_compile "$LINENO"; then :
21742 ac_cv_c_inline=$ac_kw
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 test "$ac_cv_c_inline" != no && break
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21750 $as_echo "$ac_cv_c_inline" >&6; }
21752 case $ac_cv_c_inline in
21755 case $ac_cv_c_inline in
21757 *) ac_val=$ac_cv_c_inline;;
21759 cat >>confdefs.h <<_ACEOF
21760 #ifndef __cplusplus
21761 #define inline $ac_val
21767 # Check whether --enable-largefile was given.
21768 if test "${enable_largefile+set}" = set; then :
21769 enableval=$enable_largefile;
21772 if test "$enable_largefile" != no; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21776 if ${ac_cv_sys_largefile_CC+:} false; then :
21777 $as_echo_n "(cached) " >&6
21779 ac_cv_sys_largefile_CC=no
21780 if test "$GCC" != yes; then
21783 # IRIX 6.2 and later do not support large files by default,
21784 # so use the C compiler's -n32 option if that helps.
21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21786 /* end confdefs.h. */
21787 #include <sys/types.h>
21788 /* Check that off_t can represent 2**63 - 1 correctly.
21789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21790 since some C++ compilers masquerading as C compilers
21791 incorrectly reject 9223372036854775807. */
21792 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21794 && LARGE_OFF_T % 2147483647 == 1)
21804 if ac_fn_c_try_compile "$LINENO"; then :
21807 rm -f core conftest.err conftest.$ac_objext
21809 if ac_fn_c_try_compile "$LINENO"; then :
21810 ac_cv_sys_largefile_CC=' -n32'; break
21812 rm -f core conftest.err conftest.$ac_objext
21816 rm -f conftest.$ac_ext
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
21821 if test "$ac_cv_sys_largefile_CC" != no; then
21822 CC=$CC$ac_cv_sys_largefile_CC
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21827 if ${ac_cv_sys_file_offset_bits+:} false; then :
21828 $as_echo_n "(cached) " >&6
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h. */
21833 #include <sys/types.h>
21834 /* Check that off_t can represent 2**63 - 1 correctly.
21835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21836 since some C++ compilers masquerading as C compilers
21837 incorrectly reject 9223372036854775807. */
21838 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21840 && LARGE_OFF_T % 2147483647 == 1)
21850 if ac_fn_c_try_compile "$LINENO"; then :
21851 ac_cv_sys_file_offset_bits=no; break
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21855 /* end confdefs.h. */
21856 #define _FILE_OFFSET_BITS 64
21857 #include <sys/types.h>
21858 /* Check that off_t can represent 2**63 - 1 correctly.
21859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21860 since some C++ compilers masquerading as C compilers
21861 incorrectly reject 9223372036854775807. */
21862 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21864 && LARGE_OFF_T % 2147483647 == 1)
21874 if ac_fn_c_try_compile "$LINENO"; then :
21875 ac_cv_sys_file_offset_bits=64; break
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878 ac_cv_sys_file_offset_bits=unknown
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21884 case $ac_cv_sys_file_offset_bits in #(
21887 cat >>confdefs.h <<_ACEOF
21888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21893 if test $ac_cv_sys_file_offset_bits = unknown; then
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21896 if ${ac_cv_sys_large_files+:} false; then :
21897 $as_echo_n "(cached) " >&6
21900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21901 /* end confdefs.h. */
21902 #include <sys/types.h>
21903 /* Check that off_t can represent 2**63 - 1 correctly.
21904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21905 since some C++ compilers masquerading as C compilers
21906 incorrectly reject 9223372036854775807. */
21907 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21909 && LARGE_OFF_T % 2147483647 == 1)
21919 if ac_fn_c_try_compile "$LINENO"; then :
21920 ac_cv_sys_large_files=no; break
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h. */
21925 #define _LARGE_FILES 1
21926 #include <sys/types.h>
21927 /* Check that off_t can represent 2**63 - 1 correctly.
21928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21929 since some C++ compilers masquerading as C compilers
21930 incorrectly reject 9223372036854775807. */
21931 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21933 && LARGE_OFF_T % 2147483647 == 1)
21943 if ac_fn_c_try_compile "$LINENO"; then :
21944 ac_cv_sys_large_files=1; break
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 ac_cv_sys_large_files=unknown
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21952 $as_echo "$ac_cv_sys_large_files" >&6; }
21953 case $ac_cv_sys_large_files in #(
21956 cat >>confdefs.h <<_ACEOF
21957 #define _LARGE_FILES $ac_cv_sys_large_files
21968 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21970 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21971 have_struct_tm_tm_gmtoff=yes
21973 have_struct_tm_tm_gmtoff=no
21977 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21978 #include <sys/types.h>
21979 #include <sys/socket.h>
21980 #include <netinet/in.h>
21983 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
21985 $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
21990 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "
21991 #include <sys/types.h>
21992 #include <sys/socket.h>
21993 #include <netinet/in.h>
21996 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
21998 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
22003 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
22005 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
22009 # Check size of pointer to decide we need 8 bytes alignment
22011 # The cast to long int works around a bug in the HP C Compiler
22012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22014 # This bug is HP SR number 8606223364.
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
22016 $as_echo_n "checking size of int *... " >&6; }
22017 if ${ac_cv_sizeof_int_p+:} false; then :
22018 $as_echo_n "(cached) " >&6
22020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
22023 if test "$ac_cv_type_int_p" = yes; then
22024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22026 as_fn_error 77 "cannot compute sizeof (int *)
22027 See \`config.log' for more details" "$LINENO" 5; }
22029 ac_cv_sizeof_int_p=0
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
22035 $as_echo "$ac_cv_sizeof_int_p" >&6; }
22039 cat >>confdefs.h <<_ACEOF
22040 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
22045 # The cast to long int works around a bug in the HP C Compiler
22046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22048 # This bug is HP SR number 8606223364.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22050 $as_echo_n "checking size of time_t... " >&6; }
22051 if ${ac_cv_sizeof_time_t+:} false; then :
22052 $as_echo_n "(cached) " >&6
22054 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22057 if test "$ac_cv_type_time_t" = yes; then
22058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22060 as_fn_error 77 "cannot compute sizeof (time_t)
22061 See \`config.log' for more details" "$LINENO" 5; }
22063 ac_cv_sizeof_time_t=0
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22069 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22073 cat >>confdefs.h <<_ACEOF
22074 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22079 # Checks for library functions.
22081 # Don't check malloc, since it does not play nicely with C++ stdlib
22084 for ac_header in unistd.h
22086 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22087 if test "x$ac_cv_header_unistd_h" = xyes; then :
22088 cat >>confdefs.h <<_ACEOF
22089 #define HAVE_UNISTD_H 1
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
22097 $as_echo_n "checking for working chown... " >&6; }
22098 if ${ac_cv_func_chown_works+:} false; then :
22099 $as_echo_n "(cached) " >&6
22101 if test "$cross_compiling" = yes; then :
22102 ac_cv_func_chown_works=no
22104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h. */
22106 $ac_includes_default
22112 char *f = "conftest.chown";
22113 struct stat before, after;
22115 if (creat (f, 0600) < 0)
22117 if (stat (f, &before) < 0)
22119 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
22121 if (stat (f, &after) < 0)
22123 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
22129 if ac_fn_c_try_run "$LINENO"; then :
22130 ac_cv_func_chown_works=yes
22132 ac_cv_func_chown_works=no
22134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22135 conftest.$ac_objext conftest.beam conftest.$ac_ext
22138 rm -f conftest.chown
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
22142 $as_echo "$ac_cv_func_chown_works" >&6; }
22143 if test $ac_cv_func_chown_works = yes; then
22145 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22150 $as_echo_n "checking for error_at_line... " >&6; }
22151 if ${ac_cv_lib_error_at_line+:} false; then :
22152 $as_echo_n "(cached) " >&6
22154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22155 /* end confdefs.h. */
22160 error_at_line (0, 0, "", 0, "an error occurred");
22165 if ac_fn_c_try_link "$LINENO"; then :
22166 ac_cv_lib_error_at_line=yes
22168 ac_cv_lib_error_at_line=no
22170 rm -f core conftest.err conftest.$ac_objext \
22171 conftest$ac_exeext conftest.$ac_ext
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22174 $as_echo "$ac_cv_lib_error_at_line" >&6; }
22175 if test $ac_cv_lib_error_at_line = no; then
22176 case " $LIBOBJS " in
22177 *" error.$ac_objext "* ) ;;
22178 *) LIBOBJS="$LIBOBJS error.$ac_objext"
22184 for ac_header in vfork.h
22186 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22187 if test "x$ac_cv_header_vfork_h" = xyes; then :
22188 cat >>confdefs.h <<_ACEOF
22189 #define HAVE_VFORK_H 1
22196 for ac_func in fork vfork
22198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22201 cat >>confdefs.h <<_ACEOF
22202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22208 if test "x$ac_cv_func_fork" = xyes; then
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22210 $as_echo_n "checking for working fork... " >&6; }
22211 if ${ac_cv_func_fork_works+:} false; then :
22212 $as_echo_n "(cached) " >&6
22214 if test "$cross_compiling" = yes; then :
22215 ac_cv_func_fork_works=cross
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h. */
22219 $ac_includes_default
22224 /* By Ruediger Kuhlmann. */
22225 return fork () < 0;
22231 if ac_fn_c_try_run "$LINENO"; then :
22232 ac_cv_func_fork_works=yes
22234 ac_cv_func_fork_works=no
22236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22237 conftest.$ac_objext conftest.beam conftest.$ac_ext
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22242 $as_echo "$ac_cv_func_fork_works" >&6; }
22245 ac_cv_func_fork_works=$ac_cv_func_fork
22247 if test "x$ac_cv_func_fork_works" = xcross; then
22249 *-*-amigaos* | *-*-msdosdjgpp*)
22250 # Override, as these systems have only a dummy fork() stub
22251 ac_cv_func_fork_works=no
22254 ac_cv_func_fork_works=yes
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22258 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22260 ac_cv_func_vfork_works=$ac_cv_func_vfork
22261 if test "x$ac_cv_func_vfork" = xyes; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22263 $as_echo_n "checking for working vfork... " >&6; }
22264 if ${ac_cv_func_vfork_works+:} false; then :
22265 $as_echo_n "(cached) " >&6
22267 if test "$cross_compiling" = yes; then :
22268 ac_cv_func_vfork_works=cross
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 /* Thanks to Paul Eggert for this test. */
22273 $ac_includes_default
22274 #include <sys/wait.h>
22275 #ifdef HAVE_VFORK_H
22276 # include <vfork.h>
22278 /* On some sparc systems, changes by the child to local and incoming
22279 argument registers are propagated back to the parent. The compiler
22280 is told about this with #include <vfork.h>, but some compilers
22281 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22282 static variable whose address is put into a register that is
22283 clobbered by the vfork. */
22286 sparc_address_test (int arg)
22288 sparc_address_test (arg) int arg;
22291 static pid_t child;
22309 pid_t parent = getpid ();
22312 sparc_address_test (0);
22317 /* Here is another test for sparc vfork register problems. This
22318 test uses lots of local variables, at least as many local
22319 variables as main has allocated so far including compiler
22320 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22321 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22322 reuse the register of parent for one of the local variables,
22323 since it will think that parent can't possibly be used any more
22324 in this routine. Assigning to the local variable will thus
22325 munge parent in the parent process. */
22327 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22328 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22329 /* Convince the compiler that p..p7 are live; otherwise, it might
22330 use the same hardware register for all 8 local variables. */
22331 if (p != p1 || p != p2 || p != p3 || p != p4
22332 || p != p5 || p != p6 || p != p7)
22335 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22336 from child file descriptors. If the child closes a descriptor
22337 before it execs or exits, this munges the parent's descriptor
22338 as well. Test for this by closing stdout in the child. */
22339 _exit(close(fileno(stdout)) != 0);
22344 while (wait(&status) != child)
22347 /* Was there some problem with vforking? */
22350 /* Did the child fail? (This shouldn't happen.) */
22353 /* Did the vfork/compiler bug occur? */
22354 || parent != getpid()
22356 /* Did the file descriptor bug occur? */
22357 || fstat(fileno(stdout), &st) != 0
22362 if ac_fn_c_try_run "$LINENO"; then :
22363 ac_cv_func_vfork_works=yes
22365 ac_cv_func_vfork_works=no
22367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22368 conftest.$ac_objext conftest.beam conftest.$ac_ext
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22373 $as_echo "$ac_cv_func_vfork_works" >&6; }
22376 if test "x$ac_cv_func_fork_works" = xcross; then
22377 ac_cv_func_vfork_works=$ac_cv_func_vfork
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22379 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22382 if test "x$ac_cv_func_vfork_works" = xyes; then
22384 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22388 $as_echo "#define vfork fork" >>confdefs.h
22391 if test "x$ac_cv_func_fork_works" = xyes; then
22393 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22397 # Don't check realloc, since LeakSanitizer detects memory leak during check
22399 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
22400 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
22406 cat >>confdefs.h <<_ACEOF
22407 #define HAVE_DECL_STRERROR_R $ac_have_decl
22410 for ac_func in strerror_r
22412 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22413 if test "x$ac_cv_func_strerror_r" = xyes; then :
22414 cat >>confdefs.h <<_ACEOF
22415 #define HAVE_STRERROR_R 1
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
22422 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
22423 if ${ac_cv_func_strerror_r_char_p+:} false; then :
22424 $as_echo_n "(cached) " >&6
22427 ac_cv_func_strerror_r_char_p=no
22428 if test $ac_cv_have_decl_strerror_r = yes; then
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22431 $ac_includes_default
22437 char x = *strerror_r (0, buf, sizeof buf);
22438 char *p = strerror_r (0, buf, sizeof buf);
22445 if ac_fn_c_try_compile "$LINENO"; then :
22446 ac_cv_func_strerror_r_char_p=yes
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 # strerror_r is not declared. Choose between
22451 # systems that have relatively inaccessible declarations for the
22452 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
22453 # former has a strerror_r that returns char*, while the latter
22454 # has a strerror_r that returns `int'.
22455 # This test should segfault on the DEC system.
22456 if test "$cross_compiling" = yes; then :
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 $ac_includes_default
22462 extern char *strerror_r ();
22467 char x = *strerror_r (0, buf, sizeof buf);
22468 return ! isalpha (x);
22473 if ac_fn_c_try_run "$LINENO"; then :
22474 ac_cv_func_strerror_r_char_p=yes
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22477 conftest.$ac_objext conftest.beam conftest.$ac_ext
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
22484 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
22485 if test $ac_cv_func_strerror_r_char_p = yes; then
22487 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
22492 $as_echo_n "checking for working strnlen... " >&6; }
22493 if ${ac_cv_func_strnlen_working+:} false; then :
22494 $as_echo_n "(cached) " >&6
22496 if test "$cross_compiling" = yes; then :
22497 # Guess no on AIX systems, yes otherwise.
22499 aix*) ac_cv_func_strnlen_working=no;;
22500 *) ac_cv_func_strnlen_working=yes;;
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22505 $ac_includes_default
22511 #define S_LEN (sizeof S - 1)
22513 /* At least one implementation is buggy: that of AIX 4.3 would
22514 give strnlen (S, 1) == 3. */
22517 for (i = 0; i < S_LEN + 1; ++i)
22519 int expected = i <= S_LEN ? i : S_LEN;
22520 if (strnlen (S, i) != expected)
22529 if ac_fn_c_try_run "$LINENO"; then :
22530 ac_cv_func_strnlen_working=yes
22532 ac_cv_func_strnlen_working=no
22534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22535 conftest.$ac_objext conftest.beam conftest.$ac_ext
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
22540 $as_echo "$ac_cv_func_strnlen_working" >&6; }
22541 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
22542 *" strnlen.$ac_objext "* ) ;;
22543 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
22572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22575 cat >>confdefs.h <<_ACEOF
22576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22583 # timerfd_create was added in linux kernel 2.6.25
22585 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
22586 if test "x$ac_cv_func_timerfd_create" = xyes; then :
22587 have_timerfd_create=yes
22589 have_timerfd_create=no
22593 # For cygwin: we can link initgroups, so AC_CHECK_FUNCS succeeds, but
22594 # cygwin disables initgroups due to feature test macro magic with our
22595 # configuration. FreeBSD declares initgroups() in unistd.h.
22596 ac_fn_c_check_decl "$LINENO" "initgroups" "ac_cv_have_decl_initgroups" "
22597 #ifdef HAVE_UNISTD_H
22598 # include <unistd.h>
22603 if test "x$ac_cv_have_decl_initgroups" = xyes; then :
22609 cat >>confdefs.h <<_ACEOF
22610 #define HAVE_DECL_INITGROUPS $ac_have_decl
22614 save_CFLAGS=$CFLAGS
22615 save_CXXFLAGS=$CXXFLAGS
22620 if test "x$werror" != "xno"; then
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
22623 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
22624 if ${ax_cv_check_cflags___Wall+:} false; then :
22625 $as_echo_n "(cached) " >&6
22628 ax_check_save_flags=$CFLAGS
22629 CFLAGS="$CFLAGS -Wall"
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h. */
22641 if ac_fn_c_try_compile "$LINENO"; then :
22642 ax_cv_check_cflags___Wall=yes
22644 ax_cv_check_cflags___Wall=no
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22647 CFLAGS=$ax_check_save_flags
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
22650 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
22651 if test "x$ax_cv_check_cflags___Wall" = xyes; then :
22652 CFLAGS="$CFLAGS -Wall"
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
22658 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
22659 if ${ax_cv_check_cflags___Wextra+:} false; then :
22660 $as_echo_n "(cached) " >&6
22663 ax_check_save_flags=$CFLAGS
22664 CFLAGS="$CFLAGS -Wextra"
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22676 if ac_fn_c_try_compile "$LINENO"; then :
22677 ax_cv_check_cflags___Wextra=yes
22679 ax_cv_check_cflags___Wextra=no
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 CFLAGS=$ax_check_save_flags
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
22685 $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
22686 if test "x$ax_cv_check_cflags___Wextra" = xyes; then :
22687 CFLAGS="$CFLAGS -Wextra"
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
22693 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
22694 if ${ax_cv_check_cflags___Werror+:} false; then :
22695 $as_echo_n "(cached) " >&6
22698 ax_check_save_flags=$CFLAGS
22699 CFLAGS="$CFLAGS -Werror"
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22711 if ac_fn_c_try_compile "$LINENO"; then :
22712 ax_cv_check_cflags___Werror=yes
22714 ax_cv_check_cflags___Werror=no
22716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22717 CFLAGS=$ax_check_save_flags
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
22720 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
22721 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
22722 CFLAGS="$CFLAGS -Werror"
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
22728 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
22729 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
22730 $as_echo_n "(cached) " >&6
22733 ax_check_save_flags=$CFLAGS
22734 CFLAGS="$CFLAGS -Wmissing-prototypes"
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h. */
22746 if ac_fn_c_try_compile "$LINENO"; then :
22747 ax_cv_check_cflags___Wmissing_prototypes=yes
22749 ax_cv_check_cflags___Wmissing_prototypes=no
22751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 CFLAGS=$ax_check_save_flags
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
22755 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
22756 if test "x$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
22757 CFLAGS="$CFLAGS -Wmissing-prototypes"
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
22763 $as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
22764 if ${ax_cv_check_cflags___Wstrict_prototypes+:} false; then :
22765 $as_echo_n "(cached) " >&6
22768 ax_check_save_flags=$CFLAGS
22769 CFLAGS="$CFLAGS -Wstrict-prototypes"
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22781 if ac_fn_c_try_compile "$LINENO"; then :
22782 ax_cv_check_cflags___Wstrict_prototypes=yes
22784 ax_cv_check_cflags___Wstrict_prototypes=no
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 CFLAGS=$ax_check_save_flags
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
22790 $as_echo "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
22791 if test "x$ax_cv_check_cflags___Wstrict_prototypes" = xyes; then :
22792 CFLAGS="$CFLAGS -Wstrict-prototypes"
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
22798 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
22799 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
22800 $as_echo_n "(cached) " >&6
22803 ax_check_save_flags=$CFLAGS
22804 CFLAGS="$CFLAGS -Wmissing-declarations"
22805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806 /* end confdefs.h. */
22816 if ac_fn_c_try_compile "$LINENO"; then :
22817 ax_cv_check_cflags___Wmissing_declarations=yes
22819 ax_cv_check_cflags___Wmissing_declarations=no
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 CFLAGS=$ax_check_save_flags
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
22825 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
22826 if test "x$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
22827 CFLAGS="$CFLAGS -Wmissing-declarations"
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
22833 $as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; }
22834 if ${ax_cv_check_cflags___Wpointer_arith+:} false; then :
22835 $as_echo_n "(cached) " >&6
22838 ax_check_save_flags=$CFLAGS
22839 CFLAGS="$CFLAGS -Wpointer-arith"
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22851 if ac_fn_c_try_compile "$LINENO"; then :
22852 ax_cv_check_cflags___Wpointer_arith=yes
22854 ax_cv_check_cflags___Wpointer_arith=no
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 CFLAGS=$ax_check_save_flags
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
22860 $as_echo "$ax_cv_check_cflags___Wpointer_arith" >&6; }
22861 if test "x$ax_cv_check_cflags___Wpointer_arith" = xyes; then :
22862 CFLAGS="$CFLAGS -Wpointer-arith"
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
22868 $as_echo_n "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
22869 if ${ax_cv_check_cflags___Wdeclaration_after_statement+:} false; then :
22870 $as_echo_n "(cached) " >&6
22873 ax_check_save_flags=$CFLAGS
22874 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22886 if ac_fn_c_try_compile "$LINENO"; then :
22887 ax_cv_check_cflags___Wdeclaration_after_statement=yes
22889 ax_cv_check_cflags___Wdeclaration_after_statement=no
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 CFLAGS=$ax_check_save_flags
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
22895 $as_echo "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
22896 if test "x$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes; then :
22897 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
22903 $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
22904 if ${ax_cv_check_cflags___Wformat_security+:} false; then :
22905 $as_echo_n "(cached) " >&6
22908 ax_check_save_flags=$CFLAGS
22909 CFLAGS="$CFLAGS -Wformat-security"
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22921 if ac_fn_c_try_compile "$LINENO"; then :
22922 ax_cv_check_cflags___Wformat_security=yes
22924 ax_cv_check_cflags___Wformat_security=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 CFLAGS=$ax_check_save_flags
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
22930 $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
22931 if test "x$ax_cv_check_cflags___Wformat_security" = xyes; then :
22932 CFLAGS="$CFLAGS -Wformat-security"
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
22938 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
22939 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
22940 $as_echo_n "(cached) " >&6
22943 ax_check_save_flags=$CFLAGS
22944 CFLAGS="$CFLAGS -Wwrite-strings"
22945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22946 /* end confdefs.h. */
22956 if ac_fn_c_try_compile "$LINENO"; then :
22957 ax_cv_check_cflags___Wwrite_strings=yes
22959 ax_cv_check_cflags___Wwrite_strings=no
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 CFLAGS=$ax_check_save_flags
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
22965 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
22966 if test "x$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
22967 CFLAGS="$CFLAGS -Wwrite-strings"
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
22973 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
22974 if ${ax_cv_check_cflags___Wshadow+:} false; then :
22975 $as_echo_n "(cached) " >&6
22978 ax_check_save_flags=$CFLAGS
22979 CFLAGS="$CFLAGS -Wshadow"
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22991 if ac_fn_c_try_compile "$LINENO"; then :
22992 ax_cv_check_cflags___Wshadow=yes
22994 ax_cv_check_cflags___Wshadow=no
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997 CFLAGS=$ax_check_save_flags
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
23000 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
23001 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
23002 CFLAGS="$CFLAGS -Wshadow"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
23008 $as_echo_n "checking whether C compiler accepts -Winline... " >&6; }
23009 if ${ax_cv_check_cflags___Winline+:} false; then :
23010 $as_echo_n "(cached) " >&6
23013 ax_check_save_flags=$CFLAGS
23014 CFLAGS="$CFLAGS -Winline"
23015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016 /* end confdefs.h. */
23026 if ac_fn_c_try_compile "$LINENO"; then :
23027 ax_cv_check_cflags___Winline=yes
23029 ax_cv_check_cflags___Winline=no
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 CFLAGS=$ax_check_save_flags
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
23035 $as_echo "$ax_cv_check_cflags___Winline" >&6; }
23036 if test "x$ax_cv_check_cflags___Winline" = xyes; then :
23037 CFLAGS="$CFLAGS -Winline"
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
23043 $as_echo_n "checking whether C compiler accepts -Wnested-externs... " >&6; }
23044 if ${ax_cv_check_cflags___Wnested_externs+:} false; then :
23045 $as_echo_n "(cached) " >&6
23048 ax_check_save_flags=$CFLAGS
23049 CFLAGS="$CFLAGS -Wnested-externs"
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23061 if ac_fn_c_try_compile "$LINENO"; then :
23062 ax_cv_check_cflags___Wnested_externs=yes
23064 ax_cv_check_cflags___Wnested_externs=no
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067 CFLAGS=$ax_check_save_flags
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
23070 $as_echo "$ax_cv_check_cflags___Wnested_externs" >&6; }
23071 if test "x$ax_cv_check_cflags___Wnested_externs" = xyes; then :
23072 CFLAGS="$CFLAGS -Wnested-externs"
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
23078 $as_echo_n "checking whether C compiler accepts -Wfloat-equal... " >&6; }
23079 if ${ax_cv_check_cflags___Wfloat_equal+:} false; then :
23080 $as_echo_n "(cached) " >&6
23083 ax_check_save_flags=$CFLAGS
23084 CFLAGS="$CFLAGS -Wfloat-equal"
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23096 if ac_fn_c_try_compile "$LINENO"; then :
23097 ax_cv_check_cflags___Wfloat_equal=yes
23099 ax_cv_check_cflags___Wfloat_equal=no
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 CFLAGS=$ax_check_save_flags
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
23105 $as_echo "$ax_cv_check_cflags___Wfloat_equal" >&6; }
23106 if test "x$ax_cv_check_cflags___Wfloat_equal" = xyes; then :
23107 CFLAGS="$CFLAGS -Wfloat-equal"
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
23113 $as_echo_n "checking whether C compiler accepts -Wundef... " >&6; }
23114 if ${ax_cv_check_cflags___Wundef+:} false; then :
23115 $as_echo_n "(cached) " >&6
23118 ax_check_save_flags=$CFLAGS
23119 CFLAGS="$CFLAGS -Wundef"
23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121 /* end confdefs.h. */
23131 if ac_fn_c_try_compile "$LINENO"; then :
23132 ax_cv_check_cflags___Wundef=yes
23134 ax_cv_check_cflags___Wundef=no
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137 CFLAGS=$ax_check_save_flags
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
23140 $as_echo "$ax_cv_check_cflags___Wundef" >&6; }
23141 if test "x$ax_cv_check_cflags___Wundef" = xyes; then :
23142 CFLAGS="$CFLAGS -Wundef"
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
23148 $as_echo_n "checking whether C compiler accepts -Wendif-labels... " >&6; }
23149 if ${ax_cv_check_cflags___Wendif_labels+:} false; then :
23150 $as_echo_n "(cached) " >&6
23153 ax_check_save_flags=$CFLAGS
23154 CFLAGS="$CFLAGS -Wendif-labels"
23155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156 /* end confdefs.h. */
23166 if ac_fn_c_try_compile "$LINENO"; then :
23167 ax_cv_check_cflags___Wendif_labels=yes
23169 ax_cv_check_cflags___Wendif_labels=no
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 CFLAGS=$ax_check_save_flags
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
23175 $as_echo "$ax_cv_check_cflags___Wendif_labels" >&6; }
23176 if test "x$ax_cv_check_cflags___Wendif_labels" = xyes; then :
23177 CFLAGS="$CFLAGS -Wendif-labels"
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
23183 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
23184 if ${ax_cv_check_cflags___Wempty_body+:} false; then :
23185 $as_echo_n "(cached) " >&6
23188 ax_check_save_flags=$CFLAGS
23189 CFLAGS="$CFLAGS -Wempty-body"
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23201 if ac_fn_c_try_compile "$LINENO"; then :
23202 ax_cv_check_cflags___Wempty_body=yes
23204 ax_cv_check_cflags___Wempty_body=no
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207 CFLAGS=$ax_check_save_flags
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
23210 $as_echo "$ax_cv_check_cflags___Wempty_body" >&6; }
23211 if test "x$ax_cv_check_cflags___Wempty_body" = xyes; then :
23212 CFLAGS="$CFLAGS -Wempty-body"
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
23218 $as_echo_n "checking whether C compiler accepts -Wcast-align... " >&6; }
23219 if ${ax_cv_check_cflags___Wcast_align+:} false; then :
23220 $as_echo_n "(cached) " >&6
23223 ax_check_save_flags=$CFLAGS
23224 CFLAGS="$CFLAGS -Wcast-align"
23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h. */
23236 if ac_fn_c_try_compile "$LINENO"; then :
23237 ax_cv_check_cflags___Wcast_align=yes
23239 ax_cv_check_cflags___Wcast_align=no
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 CFLAGS=$ax_check_save_flags
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
23245 $as_echo "$ax_cv_check_cflags___Wcast_align" >&6; }
23246 if test "x$ax_cv_check_cflags___Wcast_align" = xyes; then :
23247 CFLAGS="$CFLAGS -Wcast-align"
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
23253 $as_echo_n "checking whether C compiler accepts -Wclobbered... " >&6; }
23254 if ${ax_cv_check_cflags___Wclobbered+:} false; then :
23255 $as_echo_n "(cached) " >&6
23258 ax_check_save_flags=$CFLAGS
23259 CFLAGS="$CFLAGS -Wclobbered"
23260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23261 /* end confdefs.h. */
23271 if ac_fn_c_try_compile "$LINENO"; then :
23272 ax_cv_check_cflags___Wclobbered=yes
23274 ax_cv_check_cflags___Wclobbered=no
23276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277 CFLAGS=$ax_check_save_flags
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
23280 $as_echo "$ax_cv_check_cflags___Wclobbered" >&6; }
23281 if test "x$ax_cv_check_cflags___Wclobbered" = xyes; then :
23282 CFLAGS="$CFLAGS -Wclobbered"
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
23288 $as_echo_n "checking whether C compiler accepts -Wvla... " >&6; }
23289 if ${ax_cv_check_cflags___Wvla+:} false; then :
23290 $as_echo_n "(cached) " >&6
23293 ax_check_save_flags=$CFLAGS
23294 CFLAGS="$CFLAGS -Wvla"
23295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23306 if ac_fn_c_try_compile "$LINENO"; then :
23307 ax_cv_check_cflags___Wvla=yes
23309 ax_cv_check_cflags___Wvla=no
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 CFLAGS=$ax_check_save_flags
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
23315 $as_echo "$ax_cv_check_cflags___Wvla" >&6; }
23316 if test "x$ax_cv_check_cflags___Wvla" = xyes; then :
23317 CFLAGS="$CFLAGS -Wvla"
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
23323 $as_echo_n "checking whether C compiler accepts -Wpragmas... " >&6; }
23324 if ${ax_cv_check_cflags___Wpragmas+:} false; then :
23325 $as_echo_n "(cached) " >&6
23328 ax_check_save_flags=$CFLAGS
23329 CFLAGS="$CFLAGS -Wpragmas"
23330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23331 /* end confdefs.h. */
23341 if ac_fn_c_try_compile "$LINENO"; then :
23342 ax_cv_check_cflags___Wpragmas=yes
23344 ax_cv_check_cflags___Wpragmas=no
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 CFLAGS=$ax_check_save_flags
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
23350 $as_echo "$ax_cv_check_cflags___Wpragmas" >&6; }
23351 if test "x$ax_cv_check_cflags___Wpragmas" = xyes; then :
23352 CFLAGS="$CFLAGS -Wpragmas"
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
23358 $as_echo_n "checking whether C compiler accepts -Wunreachable-code... " >&6; }
23359 if ${ax_cv_check_cflags___Wunreachable_code+:} false; then :
23360 $as_echo_n "(cached) " >&6
23363 ax_check_save_flags=$CFLAGS
23364 CFLAGS="$CFLAGS -Wunreachable-code"
23365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23366 /* end confdefs.h. */
23376 if ac_fn_c_try_compile "$LINENO"; then :
23377 ax_cv_check_cflags___Wunreachable_code=yes
23379 ax_cv_check_cflags___Wunreachable_code=no
23381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 CFLAGS=$ax_check_save_flags
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
23385 $as_echo "$ax_cv_check_cflags___Wunreachable_code" >&6; }
23386 if test "x$ax_cv_check_cflags___Wunreachable_code" = xyes; then :
23387 CFLAGS="$CFLAGS -Wunreachable-code"
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
23393 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
23394 if ${ax_cv_check_cflags___Waddress+:} false; then :
23395 $as_echo_n "(cached) " >&6
23398 ax_check_save_flags=$CFLAGS
23399 CFLAGS="$CFLAGS -Waddress"
23400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23401 /* end confdefs.h. */
23411 if ac_fn_c_try_compile "$LINENO"; then :
23412 ax_cv_check_cflags___Waddress=yes
23414 ax_cv_check_cflags___Waddress=no
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 CFLAGS=$ax_check_save_flags
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
23420 $as_echo "$ax_cv_check_cflags___Waddress" >&6; }
23421 if test "x$ax_cv_check_cflags___Waddress" = xyes; then :
23422 CFLAGS="$CFLAGS -Waddress"
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
23428 $as_echo_n "checking whether C compiler accepts -Wattributes... " >&6; }
23429 if ${ax_cv_check_cflags___Wattributes+:} false; then :
23430 $as_echo_n "(cached) " >&6
23433 ax_check_save_flags=$CFLAGS
23434 CFLAGS="$CFLAGS -Wattributes"
23435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23436 /* end confdefs.h. */
23446 if ac_fn_c_try_compile "$LINENO"; then :
23447 ax_cv_check_cflags___Wattributes=yes
23449 ax_cv_check_cflags___Wattributes=no
23451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23452 CFLAGS=$ax_check_save_flags
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
23455 $as_echo "$ax_cv_check_cflags___Wattributes" >&6; }
23456 if test "x$ax_cv_check_cflags___Wattributes" = xyes; then :
23457 CFLAGS="$CFLAGS -Wattributes"
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
23463 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
23464 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
23465 $as_echo_n "(cached) " >&6
23468 ax_check_save_flags=$CFLAGS
23469 CFLAGS="$CFLAGS -Wdiv-by-zero"
23470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h. */
23481 if ac_fn_c_try_compile "$LINENO"; then :
23482 ax_cv_check_cflags___Wdiv_by_zero=yes
23484 ax_cv_check_cflags___Wdiv_by_zero=no
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 CFLAGS=$ax_check_save_flags
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
23490 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
23491 if test "x$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
23492 CFLAGS="$CFLAGS -Wdiv-by-zero"
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
23498 $as_echo_n "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
23499 if ${ax_cv_check_cflags___Wshorten_64_to_32+:} false; then :
23500 $as_echo_n "(cached) " >&6
23503 ax_check_save_flags=$CFLAGS
23504 CFLAGS="$CFLAGS -Wshorten-64-to-32"
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23516 if ac_fn_c_try_compile "$LINENO"; then :
23517 ax_cv_check_cflags___Wshorten_64_to_32=yes
23519 ax_cv_check_cflags___Wshorten_64_to_32=no
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 CFLAGS=$ax_check_save_flags
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
23525 $as_echo "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
23526 if test "x$ax_cv_check_cflags___Wshorten_64_to_32" = xyes; then :
23527 CFLAGS="$CFLAGS -Wshorten-64-to-32"
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wconversion" >&5
23534 $as_echo_n "checking whether C compiler accepts -Wconversion... " >&6; }
23535 if ${ax_cv_check_cflags___Wconversion+:} false; then :
23536 $as_echo_n "(cached) " >&6
23539 ax_check_save_flags=$CFLAGS
23540 CFLAGS="$CFLAGS -Wconversion"
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23552 if ac_fn_c_try_compile "$LINENO"; then :
23553 ax_cv_check_cflags___Wconversion=yes
23555 ax_cv_check_cflags___Wconversion=no
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 CFLAGS=$ax_check_save_flags
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wconversion" >&5
23561 $as_echo "$ax_cv_check_cflags___Wconversion" >&6; }
23562 if test "x$ax_cv_check_cflags___Wconversion" = xyes; then :
23563 CFLAGS="$CFLAGS -Wconversion"
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextended-offsetof" >&5
23569 $as_echo_n "checking whether C compiler accepts -Wextended-offsetof... " >&6; }
23570 if ${ax_cv_check_cflags___Wextended_offsetof+:} false; then :
23571 $as_echo_n "(cached) " >&6
23574 ax_check_save_flags=$CFLAGS
23575 CFLAGS="$CFLAGS -Wextended-offsetof"
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23587 if ac_fn_c_try_compile "$LINENO"; then :
23588 ax_cv_check_cflags___Wextended_offsetof=yes
23590 ax_cv_check_cflags___Wextended_offsetof=no
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 CFLAGS=$ax_check_save_flags
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextended_offsetof" >&5
23596 $as_echo "$ax_cv_check_cflags___Wextended_offsetof" >&6; }
23597 if test "x$ax_cv_check_cflags___Wextended_offsetof" = xyes; then :
23598 CFLAGS="$CFLAGS -Wextended-offsetof"
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
23604 $as_echo_n "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
23605 if ${ax_cv_check_cflags___Wformat_nonliteral+:} false; then :
23606 $as_echo_n "(cached) " >&6
23609 ax_check_save_flags=$CFLAGS
23610 CFLAGS="$CFLAGS -Wformat-nonliteral"
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h. */
23622 if ac_fn_c_try_compile "$LINENO"; then :
23623 ax_cv_check_cflags___Wformat_nonliteral=yes
23625 ax_cv_check_cflags___Wformat_nonliteral=no
23627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23628 CFLAGS=$ax_check_save_flags
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
23631 $as_echo "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
23632 if test "x$ax_cv_check_cflags___Wformat_nonliteral" = xyes; then :
23633 CFLAGS="$CFLAGS -Wformat-nonliteral"
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wlanguage-extension-token" >&5
23639 $as_echo_n "checking whether C compiler accepts -Wlanguage-extension-token... " >&6; }
23640 if ${ax_cv_check_cflags___Wlanguage_extension_token+:} false; then :
23641 $as_echo_n "(cached) " >&6
23644 ax_check_save_flags=$CFLAGS
23645 CFLAGS="$CFLAGS -Wlanguage-extension-token"
23646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23647 /* end confdefs.h. */
23657 if ac_fn_c_try_compile "$LINENO"; then :
23658 ax_cv_check_cflags___Wlanguage_extension_token=yes
23660 ax_cv_check_cflags___Wlanguage_extension_token=no
23662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 CFLAGS=$ax_check_save_flags
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wlanguage_extension_token" >&5
23666 $as_echo "$ax_cv_check_cflags___Wlanguage_extension_token" >&6; }
23667 if test "x$ax_cv_check_cflags___Wlanguage_extension_token" = xyes; then :
23668 CFLAGS="$CFLAGS -Wlanguage-extension-token"
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-field-initializers" >&5
23674 $as_echo_n "checking whether C compiler accepts -Wmissing-field-initializers... " >&6; }
23675 if ${ax_cv_check_cflags___Wmissing_field_initializers+:} false; then :
23676 $as_echo_n "(cached) " >&6
23679 ax_check_save_flags=$CFLAGS
23680 CFLAGS="$CFLAGS -Wmissing-field-initializers"
23681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h. */
23692 if ac_fn_c_try_compile "$LINENO"; then :
23693 ax_cv_check_cflags___Wmissing_field_initializers=yes
23695 ax_cv_check_cflags___Wmissing_field_initializers=no
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 CFLAGS=$ax_check_save_flags
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_field_initializers" >&5
23701 $as_echo "$ax_cv_check_cflags___Wmissing_field_initializers" >&6; }
23702 if test "x$ax_cv_check_cflags___Wmissing_field_initializers" = xyes; then :
23703 CFLAGS="$CFLAGS -Wmissing-field-initializers"
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-noreturn" >&5
23709 $as_echo_n "checking whether C compiler accepts -Wmissing-noreturn... " >&6; }
23710 if ${ax_cv_check_cflags___Wmissing_noreturn+:} false; then :
23711 $as_echo_n "(cached) " >&6
23714 ax_check_save_flags=$CFLAGS
23715 CFLAGS="$CFLAGS -Wmissing-noreturn"
23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h. */
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728 ax_cv_check_cflags___Wmissing_noreturn=yes
23730 ax_cv_check_cflags___Wmissing_noreturn=no
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733 CFLAGS=$ax_check_save_flags
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_noreturn" >&5
23736 $as_echo "$ax_cv_check_cflags___Wmissing_noreturn" >&6; }
23737 if test "x$ax_cv_check_cflags___Wmissing_noreturn" = xyes; then :
23738 CFLAGS="$CFLAGS -Wmissing-noreturn"
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-variable-declarations" >&5
23744 $as_echo_n "checking whether C compiler accepts -Wmissing-variable-declarations... " >&6; }
23745 if ${ax_cv_check_cflags___Wmissing_variable_declarations+:} false; then :
23746 $as_echo_n "(cached) " >&6
23749 ax_check_save_flags=$CFLAGS
23750 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23762 if ac_fn_c_try_compile "$LINENO"; then :
23763 ax_cv_check_cflags___Wmissing_variable_declarations=yes
23765 ax_cv_check_cflags___Wmissing_variable_declarations=no
23767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23768 CFLAGS=$ax_check_save_flags
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_variable_declarations" >&5
23771 $as_echo "$ax_cv_check_cflags___Wmissing_variable_declarations" >&6; }
23772 if test "x$ax_cv_check_cflags___Wmissing_variable_declarations" = xyes; then :
23773 CFLAGS="$CFLAGS -Wmissing-variable-declarations"
23778 # Not used because we cannot change public structs
23779 # AX_CHECK_COMPILE_FLAG([-Wpadded], [CFLAGS="$CFLAGS -Wpadded"])
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-conversion" >&5
23781 $as_echo_n "checking whether C compiler accepts -Wsign-conversion... " >&6; }
23782 if ${ax_cv_check_cflags___Wsign_conversion+:} false; then :
23783 $as_echo_n "(cached) " >&6
23786 ax_check_save_flags=$CFLAGS
23787 CFLAGS="$CFLAGS -Wsign-conversion"
23788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h. */
23799 if ac_fn_c_try_compile "$LINENO"; then :
23800 ax_cv_check_cflags___Wsign_conversion=yes
23802 ax_cv_check_cflags___Wsign_conversion=no
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 CFLAGS=$ax_check_save_flags
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsign_conversion" >&5
23808 $as_echo "$ax_cv_check_cflags___Wsign_conversion" >&6; }
23809 if test "x$ax_cv_check_cflags___Wsign_conversion" = xyes; then :
23810 CFLAGS="$CFLAGS -Wsign-conversion"
23815 # Not used because this basically disallows default case
23816 # AX_CHECK_COMPILE_FLAG([-Wswitch-enum], [CFLAGS="$CFLAGS -Wswitch-enum"])
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code-break" >&5
23818 $as_echo_n "checking whether C compiler accepts -Wunreachable-code-break... " >&6; }
23819 if ${ax_cv_check_cflags___Wunreachable_code_break+:} false; then :
23820 $as_echo_n "(cached) " >&6
23823 ax_check_save_flags=$CFLAGS
23824 CFLAGS="$CFLAGS -Wunreachable-code-break"
23825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23826 /* end confdefs.h. */
23836 if ac_fn_c_try_compile "$LINENO"; then :
23837 ax_cv_check_cflags___Wunreachable_code_break=yes
23839 ax_cv_check_cflags___Wunreachable_code_break=no
23841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 CFLAGS=$ax_check_save_flags
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code_break" >&5
23845 $as_echo "$ax_cv_check_cflags___Wunreachable_code_break" >&6; }
23846 if test "x$ax_cv_check_cflags___Wunreachable_code_break" = xyes; then :
23847 CFLAGS="$CFLAGS -Wunreachable-code-break"
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-macros" >&5
23853 $as_echo_n "checking whether C compiler accepts -Wunused-macros... " >&6; }
23854 if ${ax_cv_check_cflags___Wunused_macros+:} false; then :
23855 $as_echo_n "(cached) " >&6
23858 ax_check_save_flags=$CFLAGS
23859 CFLAGS="$CFLAGS -Wunused-macros"
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23871 if ac_fn_c_try_compile "$LINENO"; then :
23872 ax_cv_check_cflags___Wunused_macros=yes
23874 ax_cv_check_cflags___Wunused_macros=no
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 CFLAGS=$ax_check_save_flags
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_macros" >&5
23880 $as_echo "$ax_cv_check_cflags___Wunused_macros" >&6; }
23881 if test "x$ax_cv_check_cflags___Wunused_macros" = xyes; then :
23882 CFLAGS="$CFLAGS -Wunused-macros"
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
23888 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
23889 if ${ax_cv_check_cflags___Wunused_parameter+:} false; then :
23890 $as_echo_n "(cached) " >&6
23893 ax_check_save_flags=$CFLAGS
23894 CFLAGS="$CFLAGS -Wunused-parameter"
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907 ax_cv_check_cflags___Wunused_parameter=yes
23909 ax_cv_check_cflags___Wunused_parameter=no
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912 CFLAGS=$ax_check_save_flags
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_parameter" >&5
23915 $as_echo "$ax_cv_check_cflags___Wunused_parameter" >&6; }
23916 if test "x$ax_cv_check_cflags___Wunused_parameter" = xyes; then :
23917 CFLAGS="$CFLAGS -Wunused-parameter"
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wredundant-decls" >&5
23923 $as_echo_n "checking whether C compiler accepts -Wredundant-decls... " >&6; }
23924 if ${ax_cv_check_cflags___Wredundant_decls+:} false; then :
23925 $as_echo_n "(cached) " >&6
23928 ax_check_save_flags=$CFLAGS
23929 CFLAGS="$CFLAGS -Wredundant-decls"
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23941 if ac_fn_c_try_compile "$LINENO"; then :
23942 ax_cv_check_cflags___Wredundant_decls=yes
23944 ax_cv_check_cflags___Wredundant_decls=no
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23947 CFLAGS=$ax_check_save_flags
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wredundant_decls" >&5
23950 $as_echo "$ax_cv_check_cflags___Wredundant_decls" >&6; }
23951 if test "x$ax_cv_check_cflags___Wredundant_decls" = xyes; then :
23952 CFLAGS="$CFLAGS -Wredundant-decls"
23957 # Only work with Clang for the moment
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
23959 $as_echo_n "checking whether C compiler accepts -Wheader-guard... " >&6; }
23960 if ${ax_cv_check_cflags___Wheader_guard+:} false; then :
23961 $as_echo_n "(cached) " >&6
23964 ax_check_save_flags=$CFLAGS
23965 CFLAGS="$CFLAGS -Wheader-guard"
23966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967 /* end confdefs.h. */
23977 if ac_fn_c_try_compile "$LINENO"; then :
23978 ax_cv_check_cflags___Wheader_guard=yes
23980 ax_cv_check_cflags___Wheader_guard=no
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23983 CFLAGS=$ax_check_save_flags
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
23986 $as_echo "$ax_cv_check_cflags___Wheader_guard" >&6; }
23987 if test "x$ax_cv_check_cflags___Wheader_guard" = xyes; then :
23988 CFLAGS="$CFLAGS -Wheader-guard"
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsometimes-uninitialized" >&5
23994 $as_echo_n "checking whether C compiler accepts -Wsometimes-uninitialized... " >&6; }
23995 if ${ax_cv_check_cflags___Wsometimes_uninitialized+:} false; then :
23996 $as_echo_n "(cached) " >&6
23999 ax_check_save_flags=$CFLAGS
24000 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24012 if ac_fn_c_try_compile "$LINENO"; then :
24013 ax_cv_check_cflags___Wsometimes_uninitialized=yes
24015 ax_cv_check_cflags___Wsometimes_uninitialized=no
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018 CFLAGS=$ax_check_save_flags
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wsometimes_uninitialized" >&5
24021 $as_echo "$ax_cv_check_cflags___Wsometimes_uninitialized" >&6; }
24022 if test "x$ax_cv_check_cflags___Wsometimes_uninitialized" = xyes; then :
24023 CFLAGS="$CFLAGS -Wsometimes-uninitialized"
24029 # This is required because we pass format string as "const char*.
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-format-nonliteral" >&5
24031 $as_echo_n "checking whether C compiler accepts -Wno-format-nonliteral... " >&6; }
24032 if ${ax_cv_check_cflags___Wno_format_nonliteral+:} false; then :
24033 $as_echo_n "(cached) " >&6
24036 ax_check_save_flags=$CFLAGS
24037 CFLAGS="$CFLAGS -Wno-format-nonliteral"
24038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24039 /* end confdefs.h. */
24049 if ac_fn_c_try_compile "$LINENO"; then :
24050 ax_cv_check_cflags___Wno_format_nonliteral=yes
24052 ax_cv_check_cflags___Wno_format_nonliteral=no
24054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 CFLAGS=$ax_check_save_flags
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_format_nonliteral" >&5
24058 $as_echo "$ax_cv_check_cflags___Wno_format_nonliteral" >&6; }
24059 if test "x$ax_cv_check_cflags___Wno_format_nonliteral" = xyes; then :
24060 CFLAGS="$CFLAGS -Wno-format-nonliteral"
24068 ac_cpp='$CXXCPP $CPPFLAGS'
24069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wall" >&5
24074 $as_echo_n "checking whether C++ compiler accepts -Wall... " >&6; }
24075 if ${ax_cv_check_cxxflags___Wall+:} false; then :
24076 $as_echo_n "(cached) " >&6
24079 ax_check_save_flags=$CXXFLAGS
24080 CXXFLAGS="$CXXFLAGS -Wall"
24081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24082 /* end confdefs.h. */
24092 if ac_fn_cxx_try_compile "$LINENO"; then :
24093 ax_cv_check_cxxflags___Wall=yes
24095 ax_cv_check_cxxflags___Wall=no
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098 CXXFLAGS=$ax_check_save_flags
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wall" >&5
24101 $as_echo "$ax_cv_check_cxxflags___Wall" >&6; }
24102 if test "x$ax_cv_check_cxxflags___Wall" = xyes; then :
24103 CXXFLAGS="$CXXFLAGS -Wall"
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror" >&5
24109 $as_echo_n "checking whether C++ compiler accepts -Werror... " >&6; }
24110 if ${ax_cv_check_cxxflags___Werror+:} false; then :
24111 $as_echo_n "(cached) " >&6
24114 ax_check_save_flags=$CXXFLAGS
24115 CXXFLAGS="$CXXFLAGS -Werror"
24116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24127 if ac_fn_cxx_try_compile "$LINENO"; then :
24128 ax_cv_check_cxxflags___Werror=yes
24130 ax_cv_check_cxxflags___Werror=no
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 CXXFLAGS=$ax_check_save_flags
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror" >&5
24136 $as_echo "$ax_cv_check_cxxflags___Werror" >&6; }
24137 if test "x$ax_cv_check_cxxflags___Werror" = xyes; then :
24138 CXXFLAGS="$CXXFLAGS -Werror"
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wformat-security" >&5
24144 $as_echo_n "checking whether C++ compiler accepts -Wformat-security... " >&6; }
24145 if ${ax_cv_check_cxxflags___Wformat_security+:} false; then :
24146 $as_echo_n "(cached) " >&6
24149 ax_check_save_flags=$CXXFLAGS
24150 CXXFLAGS="$CXXFLAGS -Wformat-security"
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h. */
24162 if ac_fn_cxx_try_compile "$LINENO"; then :
24163 ax_cv_check_cxxflags___Wformat_security=yes
24165 ax_cv_check_cxxflags___Wformat_security=no
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 CXXFLAGS=$ax_check_save_flags
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wformat_security" >&5
24171 $as_echo "$ax_cv_check_cxxflags___Wformat_security" >&6; }
24172 if test "x$ax_cv_check_cxxflags___Wformat_security" = xyes; then :
24173 CXXFLAGS="$CXXFLAGS -Wformat-security"
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wsometimes-uninitialized" >&5
24179 $as_echo_n "checking whether C++ compiler accepts -Wsometimes-uninitialized... " >&6; }
24180 if ${ax_cv_check_cxxflags___Wsometimes_uninitialized+:} false; then :
24181 $as_echo_n "(cached) " >&6
24184 ax_check_save_flags=$CXXFLAGS
24185 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
24186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h. */
24197 if ac_fn_cxx_try_compile "$LINENO"; then :
24198 ax_cv_check_cxxflags___Wsometimes_uninitialized=yes
24200 ax_cv_check_cxxflags___Wsometimes_uninitialized=no
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 CXXFLAGS=$ax_check_save_flags
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wsometimes_uninitialized" >&5
24206 $as_echo "$ax_cv_check_cxxflags___Wsometimes_uninitialized" >&6; }
24207 if test "x$ax_cv_check_cxxflags___Wsometimes_uninitialized" = xyes; then :
24208 CXXFLAGS="$CXXFLAGS -Wsometimes-uninitialized"
24213 # Disable noexcept-type warning of g++-7. This is not harmful as
24214 # long as all source files are compiled with the same compiler.
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-noexcept-type" >&5
24216 $as_echo_n "checking whether C++ compiler accepts -Wno-noexcept-type... " >&6; }
24217 if ${ax_cv_check_cxxflags___Wno_noexcept_type+:} false; then :
24218 $as_echo_n "(cached) " >&6
24221 ax_check_save_flags=$CXXFLAGS
24222 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
24223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24224 /* end confdefs.h. */
24234 if ac_fn_cxx_try_compile "$LINENO"; then :
24235 ax_cv_check_cxxflags___Wno_noexcept_type=yes
24237 ax_cv_check_cxxflags___Wno_noexcept_type=no
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 CXXFLAGS=$ax_check_save_flags
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_noexcept_type" >&5
24243 $as_echo "$ax_cv_check_cxxflags___Wno_noexcept_type" >&6; }
24244 if test "x$ax_cv_check_cxxflags___Wno_noexcept_type" = xyes; then :
24245 CXXFLAGS="$CXXFLAGS -Wno-noexcept-type"
24251 ac_cpp='$CPP $CPPFLAGS'
24252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24259 WARNCXXFLAGS=$CXXFLAGS
24261 CFLAGS=$save_CFLAGS
24262 CXXFLAGS=$save_CXXFLAGS
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
24269 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
24270 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
24271 $as_echo_n "(cached) " >&6
24274 ax_check_save_flags=$CFLAGS
24275 CFLAGS="$CFLAGS -fvisibility=hidden"
24276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24277 /* end confdefs.h. */
24287 if ac_fn_c_try_compile "$LINENO"; then :
24288 ax_cv_check_cflags___fvisibility_hidden=yes
24290 ax_cv_check_cflags___fvisibility_hidden=no
24292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24293 CFLAGS=$ax_check_save_flags
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
24296 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
24297 if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
24298 EXTRACFLAG="-fvisibility=hidden"
24306 if test "x$debug" != "xno"; then
24308 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
24313 # Some platform does not have working std::future. We disable
24314 # threading for those platforms.
24315 if test "x$threads" != "xyes" ||
24316 test "x$have_std_future" != "xyes"; then
24319 $as_echo "#define NOTHREADS 1" >>confdefs.h
24323 # propagate $enable_static to tests/Makefile.am
24324 if test "x$enable_static" = "xyes"; then
24325 ENABLE_STATIC_TRUE=
24326 ENABLE_STATIC_FALSE='#'
24328 ENABLE_STATIC_TRUE='#'
24329 ENABLE_STATIC_FALSE=
24336 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libnghttp2.pc lib/includes/Makefile lib/includes/nghttp2/nghttp2ver.h tests/Makefile tests/testdata/Makefile third-party/Makefile src/Makefile src/includes/Makefile src/libnghttp2_asio.pc examples/Makefile python/Makefile python/setup.py integration-tests/Makefile integration-tests/config.go integration-tests/setenv doc/Makefile doc/conf.py doc/index.rst doc/package_README.rst doc/tutorial-client.rst doc/tutorial-server.rst doc/tutorial-hpack.rst doc/nghttpx-howto.rst doc/h2load-howto.rst doc/libnghttp2_asio.rst doc/python-apiref.rst doc/building-android-binary.rst doc/nghttp2.h.rst doc/nghttp2ver.h.rst doc/asio_http2.h.rst doc/asio_http2_server.h.rst doc/asio_http2_client.h.rst doc/contribute.rst contrib/Makefile script/Makefile"
24338 cat >confcache <<\_ACEOF
24339 # This file is a shell script that caches the results of configure
24340 # tests run on this system so they can be shared between configure
24341 # scripts and configure runs, see configure's option --config-cache.
24342 # It is not useful on other systems. If it contains results you don't
24343 # want to keep, you may remove or edit it.
24345 # config.status only pays attention to the cache file if you give it
24346 # the --recheck option to rerun configure.
24348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24350 # following values.
24354 # The following way of writing the cache mishandles newlines in values,
24355 # but we know of no workaround that is simple, portable, and efficient.
24356 # So, we kill variables containing newlines.
24357 # Ultrix sh set writes to stderr and can't be redirected directly,
24358 # and sets the high bit in the cache file unless we assign to the vars.
24360 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24361 eval ac_val=\$$ac_var
24365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24369 _ | IFS | as_nl) ;; #(
24370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24371 *) { eval $ac_var=; unset $ac_var;} ;;
24377 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24378 *${as_nl}ac_space=\ *)
24379 # `set' does not quote correctly, so add quotes: double-quote
24380 # substitution turns \\\\ into \\, and sed turns \\ into \.
24383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24386 # `set' quotes correctly as required by POSIX, so do not add quotes.
24387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24400 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24401 if test -w "$cache_file"; then
24402 if test "x$cache_file" != "x/dev/null"; then
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24404 $as_echo "$as_me: updating cache $cache_file" >&6;}
24405 if test ! -f "$cache_file" || test -h "$cache_file"; then
24406 cat confcache >"$cache_file"
24408 case $cache_file in #(
24410 mv -f confcache "$cache_file"$$ &&
24411 mv -f "$cache_file"$$ "$cache_file" ;; #(
24413 mv -f confcache "$cache_file" ;;
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24419 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24424 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24425 # Let make expand exec_prefix.
24426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24428 DEFS=-DHAVE_CONFIG_H
24433 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24434 # 1. Remove the extension, and $U if already installed.
24435 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24436 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24437 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24438 # will be set to the directory where LIBOBJS objects are built.
24439 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24440 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24442 LIBOBJS=$ac_libobjs
24444 LTLIBOBJS=$ac_ltlibobjs
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24448 $as_echo_n "checking that generated files are newer than configure... " >&6; }
24449 if test -n "$am_sleep_pid"; then
24450 # Hide warnings about reused PIDs.
24451 wait $am_sleep_pid 2>/dev/null
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
24454 $as_echo "done" >&6; }
24455 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24456 as_fn_error $? "conditional \"AMDEP\" was never defined.
24457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24460 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24463 if test -n "$EXEEXT"; then
24465 am__EXEEXT_FALSE='#'
24467 am__EXEEXT_TRUE='#'
24471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24472 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24475 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
24476 as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
24477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24479 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
24480 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
24481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24483 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
24484 as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
24485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24487 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
24488 as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
24489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24491 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
24492 as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
24493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24495 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
24496 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
24497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24499 if test -z "${ENABLE_THIRD_PARTY_TRUE}" && test -z "${ENABLE_THIRD_PARTY_FALSE}"; then
24500 as_fn_error $? "conditional \"ENABLE_THIRD_PARTY\" was never defined.
24501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24503 if test -z "${HAVE_MRUBY_TRUE}" && test -z "${HAVE_MRUBY_FALSE}"; then
24504 as_fn_error $? "conditional \"HAVE_MRUBY\" was never defined.
24505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24507 if test -z "${HAVE_NEVERBLEED_TRUE}" && test -z "${HAVE_NEVERBLEED_FALSE}"; then
24508 as_fn_error $? "conditional \"HAVE_NEVERBLEED\" was never defined.
24509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24511 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
24512 as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
24513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24515 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
24516 as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
24517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24519 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
24520 as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
24521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24524 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
24525 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
24526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24529 : "${CONFIG_STATUS=./config.status}"
24531 ac_clean_files_save=$ac_clean_files
24532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24538 # Generated by $as_me.
24539 # Run this file to recreate the current configuration.
24540 # Compiler output produced by configure, useful for debugging
24541 # configure, is in config.log if it exists.
24544 ac_cs_recheck=false
24547 SHELL=\${CONFIG_SHELL-$SHELL}
24550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24551 ## -------------------- ##
24552 ## M4sh Initialization. ##
24553 ## -------------------- ##
24555 # Be more Bourne compatible
24556 DUALCASE=1; export DUALCASE # for MKS sh
24557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24561 # is contrary to our usage. Disable this feature.
24562 alias -g '${1+"$@"}'='"$@"'
24563 setopt NO_GLOB_SUBST
24565 case `(set -o) 2>/dev/null` in #(
24577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24581 # Prefer a ksh shell builtin over an external printf program on Solaris,
24582 # but without wasting forks for bash or zsh.
24583 if test -z "$BASH_VERSION$ZSH_VERSION" \
24584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24585 as_echo='print -r --'
24586 as_echo_n='print -rn --'
24587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24588 as_echo='printf %s\n'
24589 as_echo_n='printf %s'
24591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24593 as_echo_n='/usr/ucb/echo -n'
24595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24596 as_echo_n_body='eval
24600 expr "X$arg" : "X\\(.*\\)$as_nl";
24601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24605 export as_echo_n_body
24606 as_echo_n='sh -c $as_echo_n_body as_echo'
24608 export as_echo_body
24609 as_echo='sh -c $as_echo_body as_echo'
24612 # The user is always right.
24613 if test "${PATH_SEPARATOR+set}" != set; then
24615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24623 # We need space, tab and new line, in precisely that order. Quoting is
24624 # there to prevent editors from complaining about space-tab.
24625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24626 # splitting by setting IFS to empty value.)
24629 # Find who we are. Look in the path if we contain no directory separator.
24632 *[\\/]* ) as_myself=$0 ;;
24633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24634 for as_dir in $PATH
24637 test -z "$as_dir" && as_dir=.
24638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24644 # We did not find ourselves, most probably we were run as `sh COMMAND'
24645 # in which case we are not to be found in the path.
24646 if test "x$as_myself" = x; then
24649 if test ! -f "$as_myself"; then
24650 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24654 # Unset variables that we do not need and which cause bugs (e.g. in
24655 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24656 # suppresses any "Segmentation fault" message there. '((' could
24657 # trigger a bug in pdksh 5.2.14.
24658 for as_var in BASH_ENV ENV MAIL MAILPATH
24659 do eval test x\${$as_var+set} = xset \
24660 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24676 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24677 # ----------------------------------------
24678 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24679 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24680 # script with STATUS, using 1 if that was 0.
24683 as_status=$1; test $as_status -eq 0 && as_status=1
24685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24686 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24688 $as_echo "$as_me: error: $2" >&2
24689 as_fn_exit $as_status
24693 # as_fn_set_status STATUS
24694 # -----------------------
24695 # Set $? to STATUS, without forking.
24696 as_fn_set_status ()
24699 } # as_fn_set_status
24701 # as_fn_exit STATUS
24702 # -----------------
24703 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24707 as_fn_set_status $1
24713 # Portably unset VAR.
24716 { eval $1=; unset $1;}
24718 as_unset=as_fn_unset
24719 # as_fn_append VAR VALUE
24720 # ----------------------
24721 # Append the text in VALUE to the end of the definition contained in VAR. Take
24722 # advantage of any shell optimizations that allow amortized linear growth over
24723 # repeated appends, instead of the typical quadratic growth present in naive
24725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24726 eval 'as_fn_append ()
24737 # as_fn_arith ARG...
24738 # ------------------
24739 # Perform arithmetic evaluation on the ARGs, and store the result in the
24740 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24741 # must be portable across $(()) and expr.
24742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24743 eval 'as_fn_arith ()
24750 as_val=`expr "$@" || test $? -eq 1`
24755 if expr a : '\(a\)' >/dev/null 2>&1 &&
24756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24762 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24763 as_basename=basename
24768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24774 as_me=`$as_basename -- "$0" ||
24775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24776 X"$0" : 'X\(//\)$' \| \
24777 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24779 sed '/^.*\/\([^/][^/]*\)\/*$/{
24793 # Avoid depending upon Character Ranges.
24794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24797 as_cr_digits='0123456789'
24798 as_cr_alnum=$as_cr_Letters$as_cr_digits
24800 ECHO_C= ECHO_N= ECHO_T=
24801 case `echo -n x` in #(((((
24803 case `echo 'xy\c'` in
24804 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24813 rm -f conf$$ conf$$.exe conf$$.file
24814 if test -d conf$$.dir; then
24815 rm -f conf$$.dir/conf$$.file
24818 mkdir conf$$.dir 2>/dev/null
24820 if (echo >conf$$.file) 2>/dev/null; then
24821 if ln -s conf$$.file conf$$ 2>/dev/null; then
24823 # ... but there are two gotchas:
24824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24826 # In both cases, we have to default to `cp -pR'.
24827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24829 elif ln conf$$.file conf$$ 2>/dev/null; then
24837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24838 rmdir conf$$.dir 2>/dev/null
24843 # Create "$as_dir" as a directory, including parents if necessary.
24848 -*) as_dir=./$as_dir;;
24850 test -d "$as_dir" || eval $as_mkdir_p || {
24854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24855 *) as_qdir=$as_dir;;
24857 as_dirs="'$as_qdir' $as_dirs"
24858 as_dir=`$as_dirname -- "$as_dir" ||
24859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24860 X"$as_dir" : 'X\(//\)[^/]' \| \
24861 X"$as_dir" : 'X\(//\)$' \| \
24862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24863 $as_echo X"$as_dir" |
24864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24868 /^X\(\/\/\)[^/].*/{
24881 test -d "$as_dir" && break
24883 test -z "$as_dirs" || eval "mkdir $as_dirs"
24884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24888 if mkdir -p . 2>/dev/null; then
24889 as_mkdir_p='mkdir -p "$as_dir"'
24891 test -d ./-p && rmdir ./-p
24896 # as_fn_executable_p FILE
24897 # -----------------------
24898 # Test if FILE is an executable regular file.
24899 as_fn_executable_p ()
24901 test -f "$1" && test -x "$1"
24902 } # as_fn_executable_p
24903 as_test_x='test -x'
24904 as_executable_p=as_fn_executable_p
24906 # Sed expression to map a string onto a valid CPP name.
24907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24909 # Sed expression to map a string onto a valid variable name.
24910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24914 ## ----------------------------------- ##
24915 ## Main body of $CONFIG_STATUS script. ##
24916 ## ----------------------------------- ##
24918 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24921 # Save the log message, to keep $0 and so on meaningful, and to
24922 # report actual input values of CONFIG_FILES etc. instead of their
24923 # values after options handling.
24925 This file was extended by nghttp2 $as_me 1.41.0, which was
24926 generated by GNU Autoconf 2.69. Invocation command line was
24928 CONFIG_FILES = $CONFIG_FILES
24929 CONFIG_HEADERS = $CONFIG_HEADERS
24930 CONFIG_LINKS = $CONFIG_LINKS
24931 CONFIG_COMMANDS = $CONFIG_COMMANDS
24934 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24939 case $ac_config_files in *"
24940 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24943 case $ac_config_headers in *"
24944 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24949 # Files that config.status was made for.
24950 config_files="$ac_config_files"
24951 config_headers="$ac_config_headers"
24952 config_commands="$ac_config_commands"
24956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24958 \`$as_me' instantiates files and other configuration actions
24959 from templates according to the current configuration. Unless the files
24960 and actions are specified as TAGs, all are instantiated by default.
24962 Usage: $0 [OPTION]... [TAG]...
24964 -h, --help print this help, then exit
24965 -V, --version print version number and configuration settings, then exit
24966 --config print configuration, then exit
24967 -q, --quiet, --silent
24968 do not print progress messages
24969 -d, --debug don't remove temporary files
24970 --recheck update $as_me by reconfiguring in the same conditions
24971 --file=FILE[:TEMPLATE]
24972 instantiate the configuration file FILE
24973 --header=FILE[:TEMPLATE]
24974 instantiate the configuration header FILE
24976 Configuration files:
24979 Configuration headers:
24982 Configuration commands:
24985 Report bugs to <t-tujikawa@users.sourceforge.net>."
24988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24989 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24991 nghttp2 config.status 1.41.0
24992 configured by $0, generated by GNU Autoconf 2.69,
24993 with options \\"\$ac_cs_config\\"
24995 Copyright (C) 2012 Free Software Foundation, Inc.
24996 This config.status script is free software; the Free Software Foundation
24997 gives unlimited permission to copy, distribute and modify it."
25004 test -n "\$AWK" || AWK=awk
25007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25008 # The default lists apply if the user does not specify any file.
25014 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25015 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25031 # Handling of the options.
25032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25035 $as_echo "$ac_cs_version"; exit ;;
25036 --config | --confi | --conf | --con | --co | --c )
25037 $as_echo "$ac_cs_config"; exit ;;
25038 --debug | --debu | --deb | --de | --d | -d )
25040 --file | --fil | --fi | --f )
25043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25044 '') as_fn_error $? "missing file argument" ;;
25046 as_fn_append CONFIG_FILES " '$ac_optarg'"
25047 ac_need_defaults=false;;
25048 --header | --heade | --head | --hea )
25051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25053 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25054 ac_need_defaults=false;;
25056 # Conflict between --help and --header
25057 as_fn_error $? "ambiguous option: \`$1'
25058 Try \`$0 --help' for more information.";;
25059 --help | --hel | -h )
25060 $as_echo "$ac_cs_usage"; exit ;;
25061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25065 # This is an error.
25066 -*) as_fn_error $? "unrecognized option: \`$1'
25067 Try \`$0 --help' for more information." ;;
25069 *) as_fn_append ac_config_targets " $1"
25070 ac_need_defaults=false ;;
25076 ac_configure_extra_args=
25078 if $ac_cs_silent; then
25080 ac_configure_extra_args="$ac_configure_extra_args --silent"
25084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25085 if \$ac_cs_recheck; then
25086 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25088 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25089 CONFIG_SHELL='$SHELL'
25090 export CONFIG_SHELL
25095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25100 ## Running $as_me. ##
25106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25112 # The HP-UX ksh and POSIX shell print the target directory to stdout
25113 # if CDPATH is set.
25114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25116 sed_quote_subst='$sed_quote_subst'
25117 double_quote_subst='$double_quote_subst'
25118 delay_variable_subst='$delay_variable_subst'
25119 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25120 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25121 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25122 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25125 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
25126 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25127 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25128 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
25129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25149 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
25150 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
25151 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25152 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25153 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25154 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25155 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25156 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
25157 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
25158 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
25159 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
25160 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25161 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25162 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
25163 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25164 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25165 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25166 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25167 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25168 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25169 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25170 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25171 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25172 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25173 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25174 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25175 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
25176 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25177 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"`'
25178 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
25179 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
25180 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
25181 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
25182 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25183 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25184 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25185 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25186 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25187 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25188 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25189 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25190 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
25191 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25192 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25193 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25194 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25195 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25196 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25197 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25198 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25199 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25200 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25201 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25202 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25203 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25204 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25205 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25206 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25207 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25208 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25209 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25210 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25211 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25212 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25213 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25214 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25215 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25216 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25217 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25218 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25219 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25220 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25221 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25222 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25223 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25224 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25225 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25226 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25227 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
25228 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25229 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25230 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25231 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25232 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25233 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25234 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25235 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25236 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25237 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25238 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25239 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25240 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25241 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25242 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25243 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25244 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25245 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25246 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
25247 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
25248 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25249 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25250 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25251 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25252 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25253 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25254 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25255 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25256 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25257 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25258 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25259 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25260 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25261 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25262 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25263 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25264 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25265 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25266 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25267 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25268 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25269 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25270 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25271 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25272 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25273 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25274 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25275 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25276 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25277 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25278 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25279 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25280 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25281 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25282 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25283 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25284 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25285 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25286 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25287 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25288 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25289 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25290 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25291 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25292 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25293 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25294 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25295 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25296 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25297 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25298 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25299 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25300 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25301 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25302 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25303 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25304 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25305 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25306 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25307 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25310 LTCFLAGS='$LTCFLAGS'
25311 compiler='$compiler_DEFAULT'
25313 # A function that is used when there is no print builtin or printf.
25314 func_fallback_echo ()
25316 eval 'cat <<_LTECHO_EOF
25321 # Quote evaled strings.
25336 deplibs_check_method \
25341 sharedlib_from_linklib_cmd \
25344 archiver_list_spec \
25350 lt_cv_sys_global_symbol_pipe \
25351 lt_cv_sys_global_symbol_to_cdecl \
25352 lt_cv_sys_global_symbol_to_import \
25353 lt_cv_sys_global_symbol_to_c_name_address \
25354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25355 lt_cv_nm_interface \
25356 nm_file_list_spec \
25357 lt_cv_truncate_bin \
25358 lt_prog_compiler_no_builtin_flag \
25359 lt_prog_compiler_pic \
25360 lt_prog_compiler_wl \
25361 lt_prog_compiler_static \
25362 lt_cv_prog_compiler_c_o \
25371 export_dynamic_flag_spec \
25372 whole_archive_flag_spec \
25373 compiler_needs_object \
25375 allow_undefined_flag \
25376 no_undefined_flag \
25377 hardcode_libdir_flag_spec \
25378 hardcode_libdir_separator \
25382 variables_saved_for_relink \
25384 library_names_spec \
25386 install_override_mode \
25390 compiler_lib_search_dirs \
25395 compiler_lib_search_path \
25399 lt_prog_compiler_no_builtin_flag_CXX \
25400 lt_prog_compiler_pic_CXX \
25401 lt_prog_compiler_wl_CXX \
25402 lt_prog_compiler_static_CXX \
25403 lt_cv_prog_compiler_c_o_CXX \
25404 export_dynamic_flag_spec_CXX \
25405 whole_archive_flag_spec_CXX \
25406 compiler_needs_object_CXX \
25408 allow_undefined_flag_CXX \
25409 no_undefined_flag_CXX \
25410 hardcode_libdir_flag_spec_CXX \
25411 hardcode_libdir_separator_CXX \
25412 exclude_expsyms_CXX \
25413 include_expsyms_CXX \
25414 file_list_spec_CXX \
25415 compiler_lib_search_dirs_CXX \
25416 predep_objects_CXX \
25417 postdep_objects_CXX \
25420 compiler_lib_search_path_CXX; do
25421 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25422 *[\\\\\\\`\\"\\\$]*)
25423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25431 # Double-quote double-evaled strings.
25432 for var in reload_cmds \
25433 old_postinstall_cmds \
25434 old_postuninstall_cmds \
25436 extract_expsyms_cmds \
25437 old_archive_from_new_cmds \
25438 old_archive_from_expsyms_cmds \
25440 archive_expsym_cmds \
25442 module_expsym_cmds \
25443 export_symbols_cmds \
25447 postuninstall_cmds \
25449 sys_lib_search_path_spec \
25450 configure_time_dlsearch_path \
25451 configure_time_lt_sys_library_path \
25453 old_archive_cmds_CXX \
25454 old_archive_from_new_cmds_CXX \
25455 old_archive_from_expsyms_cmds_CXX \
25457 archive_expsym_cmds_CXX \
25459 module_expsym_cmds_CXX \
25460 export_symbols_cmds_CXX \
25462 postlink_cmds_CXX; do
25463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25464 *[\\\\\\\`\\"\\\$]*)
25465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25473 ac_aux_dir='$ac_aux_dir'
25475 # See if we are running on zsh, and set the options that allow our
25476 # commands through without removal of \ escapes INIT.
25477 if test -n "\${ZSH_VERSION+set}"; then
25478 setopt NO_GLOB_SUBST
25491 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25497 # Handling of arguments.
25498 for ac_config_target in $ac_config_targets
25500 case $ac_config_target in
25501 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25502 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25503 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25505 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25506 "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
25507 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
25508 "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
25509 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25510 "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
25511 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
25512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25513 "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
25514 "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
25515 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25516 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
25517 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
25518 "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
25519 "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
25520 "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
25521 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25522 "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
25523 "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
25524 "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
25525 "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
25526 "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
25527 "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
25528 "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
25529 "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
25530 "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
25531 "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
25532 "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
25533 "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
25534 "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
25535 "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
25536 "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
25537 "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
25538 "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
25539 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
25540 "script/Makefile") CONFIG_FILES="$CONFIG_FILES script/Makefile" ;;
25542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25547 # If the user did not use the arguments to specify the items to instantiate,
25548 # then the envvar interface is used. Set only those that are not.
25549 # We use the long form for the default assignment because of an extremely
25550 # bizarre bug on SunOS 4.1.3.
25551 if $ac_need_defaults; then
25552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25557 # Have a temporary directory for convenience. Make it in the build tree
25558 # simply because there is no reason against having it here, and in addition,
25559 # creating and moving files from /tmp can sometimes cause problems.
25560 # Hook for its removal unless debugging.
25561 # Note that there is a small window in which the directory will not be cleaned:
25562 # after its creation but before its name has been assigned to `$tmp'.
25566 trap 'exit_status=$?
25567 : "${ac_tmp:=$tmp}"
25568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25570 trap 'as_fn_exit 1' 1 2 13 15
25572 # Create a (secure) tmp directory for tmp files.
25575 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25579 tmp=./conf$$-$RANDOM
25580 (umask 077 && mkdir "$tmp")
25581 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25584 # Set up the scripts for CONFIG_FILES section.
25585 # No need to generate them if there are no CONFIG_FILES.
25586 # This happens for instance with `./config.status config.h'.
25587 if test -n "$CONFIG_FILES"; then
25590 ac_cr=`echo X | tr X '\015'`
25591 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25592 # But we know of no other shell where ac_cr would be empty at this
25593 # point, so we can use a bashism as a fallback.
25594 if test "x$ac_cr" = x; then
25595 eval ac_cr=\$\'\\r\'
25597 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25598 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25601 ac_cs_awk_cr=$ac_cr
25604 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25609 echo "cat >conf$$subs.awk <<_ACEOF" &&
25610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25612 } >conf$$subs.sh ||
25613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25614 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25616 for ac_last_try in false false false false false :; do
25617 . ./conf$$subs.sh ||
25618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25620 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25621 if test $ac_delim_n = $ac_delim_num; then
25623 elif $ac_last_try; then
25624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25629 rm -f conf$$subs.sh
25631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25632 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25636 s/^/S["/; s/!.*/"]=/
25646 s/\(.\{148\}\)..*/\1/
25648 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25660 s/\(.\{148\}\)..*/\1/
25662 s/["\\]/\\&/g; s/^/"/; s/$/"/
25666 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25671 ' <conf$$subs.awk | sed '
25676 ' >>$CONFIG_STATUS || ac_write_fail=1
25677 rm -f conf$$subs.awk
25678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25680 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25681 for (key in S) S_is_set[key] = 1
25687 nfields = split(line, field, "@")
25689 len = length(field[1])
25690 for (i = 2; i < nfields; i++) {
25692 keylen = length(key)
25693 if (S_is_set[key]) {
25695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25696 len += length(value) + length(field[++i])
25707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25708 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25709 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25712 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25713 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25716 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25717 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25718 # trailing colons and then remove the whole line if VPATH becomes empty
25719 # (actually we leave an empty line to preserve line numbers).
25720 if test "x$srcdir" = x.; then
25721 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25740 fi # test -n "$CONFIG_FILES"
25742 # Set up the scripts for CONFIG_HEADERS section.
25743 # No need to generate them if there are no CONFIG_HEADERS.
25744 # This happens for instance with `./config.status Makefile'.
25745 if test -n "$CONFIG_HEADERS"; then
25746 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25750 # Transform confdefs.h into an awk script `defines.awk', embedded as
25751 # here-document in config.status, that substitutes the proper values into
25752 # config.h.in to produce config.h.
25754 # Create a delimiter string that does not exist in confdefs.h, to ease
25755 # handling of long lines.
25757 for ac_last_try in false false :; do
25758 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25759 if test -z "$ac_tt"; then
25761 elif $ac_last_try; then
25762 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25768 # For the awk script, D is an array of macro values keyed by name,
25769 # likewise P contains macro parameters if any. Preserve backslash
25770 # newline sequences.
25772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25774 s/.\{148\}/&'"$ac_delim"'/g
25777 s/^[ ]*#[ ]*define[ ][ ]*/ /
25784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25786 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25791 D["\1"]=" \3\\\\\\n"\\/p
25793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25798 s/.\{148\}/&'"$ac_delim"'/g
25803 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25806 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25808 ' <confdefs.h | sed '
25809 s/'"$ac_delim"'/"\\\
25810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25813 for (key in D) D_is_set[key] = 1
25816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25818 split(line, arg, " ")
25819 if (arg[1] == "#") {
25823 defundef = substr(arg[1], 2)
25826 split(mac1, mac2, "(") #)
25828 prefix = substr(line, 1, index(line, defundef) - 1)
25829 if (D_is_set[macro]) {
25830 # Preserve the white space surrounding the "#".
25831 print prefix "define", macro P[macro] D[macro]
25834 # Replace #undef with comments. This is necessary, for example,
25835 # in the case of _POSIX_SOURCE, which is predefined and required
25836 # on some systems where configure will not decide to define it.
25837 if (defundef == "undef") {
25838 print "/*", prefix defundef, macro, "*/"
25846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25847 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25848 fi # test -n "$CONFIG_HEADERS"
25851 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25856 :[FHLC]) ac_mode=$ac_tag; continue;;
25858 case $ac_mode$ac_tag in
25860 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25861 :[FH]-) ac_tag=-:-;;
25862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25879 -) ac_f="$ac_tmp/stdin";;
25880 *) # Look for the file first in the build tree, then in the source tree
25881 # (if the path is not absolute). The absolute path cannot be DOS-style,
25882 # because $ac_f cannot contain `:'.
25886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25888 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25891 as_fn_append ac_file_inputs " '$ac_f'"
25894 # Let's still pretend it is `configure' which instantiates (i.e., don't
25895 # use $as_me), people would be surprised to read:
25896 # /* config.h. Generated by config.status. */
25897 configure_input='Generated from '`
25898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25900 if test x"$ac_file" != x-; then
25901 configure_input="$ac_file. $configure_input"
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25903 $as_echo "$as_me: creating $ac_file" >&6;}
25905 # Neutralize special characters interpreted by sed in replacement strings.
25906 case $configure_input in #(
25907 *\&* | *\|* | *\\* )
25908 ac_sed_conf_input=`$as_echo "$configure_input" |
25909 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25910 *) ac_sed_conf_input=$configure_input;;
25914 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25920 ac_dir=`$as_dirname -- "$ac_file" ||
25921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25922 X"$ac_file" : 'X\(//\)[^/]' \| \
25923 X"$ac_file" : 'X\(//\)$' \| \
25924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25925 $as_echo X"$ac_file" |
25926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25930 /^X\(\/\/\)[^/].*/{
25943 as_dir="$ac_dir"; as_fn_mkdir_p
25947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25949 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25950 # A ".." for each directory in $ac_dir_suffix.
25951 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25952 case $ac_top_builddir_sub in
25953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25957 ac_abs_top_builddir=$ac_pwd
25958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25959 # for backward compatibility:
25960 ac_top_builddir=$ac_top_build_prefix
25963 .) # We are building in place.
25965 ac_top_srcdir=$ac_top_builddir_sub
25966 ac_abs_top_srcdir=$ac_pwd ;;
25967 [\\/]* | ?:[\\/]* ) # Absolute name.
25968 ac_srcdir=$srcdir$ac_dir_suffix;
25969 ac_top_srcdir=$srcdir
25970 ac_abs_top_srcdir=$srcdir ;;
25971 *) # Relative name.
25972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25973 ac_top_srcdir=$ac_top_build_prefix$srcdir
25974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25989 ac_MKDIR_P=$MKDIR_P
25991 [\\/$]* | ?:[\\/]* ) ;;
25992 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25997 # If the template does not know about datarootdir, expand it.
25998 # FIXME: This hack should be removed a few years after 2.60.
25999 ac_datarootdir_hack=; ac_datarootdir_seen=
26010 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26011 *datarootdir*) ac_datarootdir_seen=yes;;
26012 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26014 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26017 ac_datarootdir_hack='
26018 s&@datadir@&$datadir&g
26019 s&@docdir@&$docdir&g
26020 s&@infodir@&$infodir&g
26021 s&@localedir@&$localedir&g
26022 s&@mandir@&$mandir&g
26023 s&\\\${datarootdir}&$datarootdir&g' ;;
26027 # Neutralize VPATH when `$srcdir' = `.'.
26028 # Shell code in configure.ac might set extrasub.
26029 # FIXME: do we really want to maintain this feature?
26030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26031 ac_sed_extra="$ac_vpsub
26034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26037 s|@configure_input@|$ac_sed_conf_input|;t t
26038 s&@top_builddir@&$ac_top_builddir_sub&;t t
26039 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26040 s&@srcdir@&$ac_srcdir&;t t
26041 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26042 s&@top_srcdir@&$ac_top_srcdir&;t t
26043 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26044 s&@builddir@&$ac_builddir&;t t
26045 s&@abs_builddir@&$ac_abs_builddir&;t t
26046 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26047 s&@INSTALL@&$ac_INSTALL&;t t
26048 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26049 $ac_datarootdir_hack
26051 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26052 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26055 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26057 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26059 which seems to be undefined. Please make sure it is defined" >&5
26060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26061 which seems to be undefined. Please make sure it is defined" >&2;}
26063 rm -f "$ac_tmp/stdin"
26065 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26066 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26074 if test x"$ac_file" != x-; then
26076 $as_echo "/* $configure_input */" \
26077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26078 } >"$ac_tmp/config.h" \
26079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26080 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26082 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26085 mv "$ac_tmp/config.h" "$ac_file" \
26086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26089 $as_echo "/* $configure_input */" \
26090 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26091 || as_fn_error $? "could not create -" "$LINENO" 5
26093 # Compute "$ac_file"'s index in $config_headers.
26096 for _am_header in $config_headers :; do
26097 case $_am_header in
26098 $_am_arg | $_am_arg:* )
26101 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26104 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26105 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26106 X"$_am_arg" : 'X\(//\)[^/]' \| \
26107 X"$_am_arg" : 'X\(//\)$' \| \
26108 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26109 $as_echo X"$_am_arg" |
26110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26114 /^X\(\/\/\)[^/].*/{
26126 s/.*/./; q'`/stamp-h$_am_stamp_count
26129 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26130 $as_echo "$as_me: executing $ac_file commands" >&6;}
26135 case $ac_file$ac_mode in
26138 # See if we are running on zsh, and set the options that allow our
26139 # commands through without removal of \ escapes.
26140 if test -n "${ZSH_VERSION+set}"; then
26141 setopt NO_GLOB_SUBST
26145 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26148 cat <<_LT_EOF >> "$cfgfile"
26150 # Generated automatically by $as_me ($PACKAGE) $VERSION
26151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26153 # Provide generalized library-building support services.
26154 # Written by Gordon Matzigkeit, 1996
26156 # Copyright (C) 2014 Free Software Foundation, Inc.
26157 # This is free software; see the source for copying conditions. There is NO
26158 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26160 # GNU Libtool is free software; you can redistribute it and/or modify
26161 # it under the terms of the GNU General Public License as published by
26162 # the Free Software Foundation; either version 2 of of the License, or
26163 # (at your option) any later version.
26165 # As a special exception to the GNU General Public License, if you
26166 # distribute this file as part of a program or library that is built
26167 # using GNU Libtool, you may include this file under the same
26168 # distribution terms that you use for the rest of that program.
26170 # GNU Libtool is distributed in the hope that it will be useful, but
26171 # WITHOUT ANY WARRANTY; without even the implied warranty of
26172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26173 # GNU General Public License for more details.
26175 # You should have received a copy of the GNU General Public License
26176 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26179 # The names of the tagged configurations supported by this script.
26180 available_tags='CXX '
26182 # Configured defaults for sys_lib_dlsearch_path munging.
26183 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
26185 # ### BEGIN LIBTOOL CONFIG
26187 # Which release of libtool.m4 was used?
26188 macro_version=$macro_version
26189 macro_revision=$macro_revision
26191 # Whether or not to build shared libraries.
26192 build_libtool_libs=$enable_shared
26194 # Whether or not to build static libraries.
26195 build_old_libs=$enable_static
26197 # What type of objects to build.
26200 # Whether or not to optimize for fast installation.
26201 fast_install=$enable_fast_install
26203 # Shared archive member basename,for filename based shared library versioning on AIX.
26204 shared_archive_member_spec=$shared_archive_member_spec
26206 # Shell to use when invoking shell scripts.
26209 # An echo program that protects backslashes.
26212 # The PATH separator for the build system.
26213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
26216 host_alias=$host_alias
26220 # The build system.
26221 build_alias=$build_alias
26225 # A sed program that does not truncate output.
26228 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26229 Xsed="\$SED -e 1s/^X//"
26231 # A grep program that handles long lines.
26237 # A literal string matcher.
26240 # A BSD- or MS-compatible name lister.
26243 # Whether we need soft or hard links.
26246 # What is the maximum length of a command?
26247 max_cmd_len=$max_cmd_len
26249 # Object file suffix (normally "o").
26252 # Executable file suffix (normally "").
26255 # whether the shell understands "unset".
26258 # turn spaces into newlines.
26261 # turn newlines into spaces.
26264 # convert \$build file names to \$host format.
26265 to_host_file_cmd=$lt_cv_to_host_file_cmd
26267 # convert \$build files to toolchain format.
26268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
26270 # An object symbol dumper.
26271 OBJDUMP=$lt_OBJDUMP
26273 # Method to check whether dependent libraries are shared objects.
26274 deplibs_check_method=$lt_deplibs_check_method
26276 # Command to use when deplibs_check_method = "file_magic".
26277 file_magic_cmd=$lt_file_magic_cmd
26279 # How to find potential files when deplibs_check_method = "file_magic".
26280 file_magic_glob=$lt_file_magic_glob
26282 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
26283 want_nocaseglob=$lt_want_nocaseglob
26285 # DLL creation program.
26286 DLLTOOL=$lt_DLLTOOL
26288 # Command to associate shared and link libraries.
26289 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
26294 # Flags to create an archive.
26295 AR_FLAGS=$lt_AR_FLAGS
26297 # How to feed a file listing to the archiver.
26298 archiver_list_spec=$lt_archiver_list_spec
26300 # A symbol stripping program.
26303 # Commands used to install an old-style archive.
26305 old_postinstall_cmds=$lt_old_postinstall_cmds
26306 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26308 # Whether to use a lock for old archive extraction.
26309 lock_old_archive_extraction=$lock_old_archive_extraction
26314 # LTCC compiler flags.
26315 LTCFLAGS=$lt_CFLAGS
26317 # Take the output of nm and produce a listing of raw symbols and C names.
26318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26320 # Transform the output of nm in a proper C declaration.
26321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26323 # Transform the output of nm into a list of symbols to manually relocate.
26324 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
26326 # Transform the output of nm in a C name address pair.
26327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26329 # Transform the output of nm in a C name address pair when lib prefix is needed.
26330 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26332 # The name lister interface.
26333 nm_interface=$lt_lt_cv_nm_interface
26335 # Specify filename containing input files for \$NM.
26336 nm_file_list_spec=$lt_nm_file_list_spec
26338 # The root where to search for dependent libraries,and where our libraries should be installed.
26339 lt_sysroot=$lt_sysroot
26341 # Command to truncate a binary pipe.
26342 lt_truncate_bin=$lt_lt_cv_truncate_bin
26344 # The name of the directory that contains temporary libtool files.
26347 # Used to examine libraries when file_magic_cmd begins with "file".
26348 MAGIC_CMD=$MAGIC_CMD
26350 # Must we lock files when doing compilation?
26351 need_locks=$lt_need_locks
26354 MANIFEST_TOOL=$lt_MANIFEST_TOOL
26356 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26357 DSYMUTIL=$lt_DSYMUTIL
26359 # Tool to change global to local symbols on Mac OS X.
26362 # Tool to manipulate fat objects and archives on Mac OS X.
26365 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26368 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26369 OTOOL64=$lt_OTOOL64
26371 # Old archive suffix (normally "a").
26374 # Shared library suffix (normally ".so").
26375 shrext_cmds=$lt_shrext_cmds
26377 # The commands to extract the exported symbol list from a shared archive.
26378 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26380 # Variables whose values should be saved in libtool wrapper scripts and
26381 # restored at link time.
26382 variables_saved_for_relink=$lt_variables_saved_for_relink
26384 # Do we need the "lib" prefix for modules?
26385 need_lib_prefix=$need_lib_prefix
26387 # Do we need a version for libraries?
26388 need_version=$need_version
26390 # Library versioning type.
26391 version_type=$version_type
26393 # Shared library runtime path variable.
26394 runpath_var=$runpath_var
26396 # Shared library path variable.
26397 shlibpath_var=$shlibpath_var
26399 # Is shlibpath searched before the hard-coded library search path?
26400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26402 # Format of library name prefix.
26403 libname_spec=$lt_libname_spec
26405 # List of archive names. First name is the real one, the rest are links.
26406 # The last name is the one that the linker finds with -lNAME
26407 library_names_spec=$lt_library_names_spec
26409 # The coded name of the library, if different from the real name.
26410 soname_spec=$lt_soname_spec
26412 # Permission mode override for installation of shared libraries.
26413 install_override_mode=$lt_install_override_mode
26415 # Command to use after installation of a shared archive.
26416 postinstall_cmds=$lt_postinstall_cmds
26418 # Command to use after uninstallation of a shared archive.
26419 postuninstall_cmds=$lt_postuninstall_cmds
26421 # Commands used to finish a libtool library installation in a directory.
26422 finish_cmds=$lt_finish_cmds
26424 # As "finish_cmds", except a single script fragment to be evaled but
26426 finish_eval=$lt_finish_eval
26428 # Whether we should hardcode library paths into libraries.
26429 hardcode_into_libs=$hardcode_into_libs
26431 # Compile-time system search path for libraries.
26432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26434 # Detected run-time system search path for libraries.
26435 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26437 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26438 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26440 # Whether dlopen is supported.
26441 dlopen_support=$enable_dlopen
26443 # Whether dlopen of programs is supported.
26444 dlopen_self=$enable_dlopen_self
26446 # Whether dlopen of statically linked programs is supported.
26447 dlopen_self_static=$enable_dlopen_self_static
26449 # Commands to strip libraries.
26450 old_striplib=$lt_old_striplib
26451 striplib=$lt_striplib
26454 # The linker used to build libraries.
26457 # How to create reloadable object files.
26458 reload_flag=$lt_reload_flag
26459 reload_cmds=$lt_reload_cmds
26461 # Commands used to build an old-style archive.
26462 old_archive_cmds=$lt_old_archive_cmds
26464 # A language specific compiler.
26467 # Is the compiler the GNU compiler?
26470 # Compiler flag to turn off builtin functions.
26471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26473 # Additional compiler flags for building library objects.
26474 pic_flag=$lt_lt_prog_compiler_pic
26476 # How to pass a linker flag through the compiler.
26477 wl=$lt_lt_prog_compiler_wl
26479 # Compiler flag to prevent dynamic linking.
26480 link_static_flag=$lt_lt_prog_compiler_static
26482 # Does compiler simultaneously support -c and -o options?
26483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26485 # Whether or not to add -lc for building shared libraries.
26486 build_libtool_need_lc=$archive_cmds_need_lc
26488 # Whether or not to disallow shared libs when runtime libs are static.
26489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26491 # Compiler flag to allow reflexive dlopens.
26492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26494 # Compiler flag to generate shared objects directly from archives.
26495 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26497 # Whether the compiler copes with passing no objects directly.
26498 compiler_needs_object=$lt_compiler_needs_object
26500 # Create an old-style archive from a shared archive.
26501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26503 # Create a temporary old-style archive to link instead of a shared archive.
26504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26506 # Commands used to build a shared archive.
26507 archive_cmds=$lt_archive_cmds
26508 archive_expsym_cmds=$lt_archive_expsym_cmds
26510 # Commands used to build a loadable module if different from building
26511 # a shared archive.
26512 module_cmds=$lt_module_cmds
26513 module_expsym_cmds=$lt_module_expsym_cmds
26515 # Whether we are building with GNU ld or not.
26516 with_gnu_ld=$lt_with_gnu_ld
26518 # Flag that allows shared libraries with undefined symbols to be built.
26519 allow_undefined_flag=$lt_allow_undefined_flag
26521 # Flag that enforces no undefined symbols.
26522 no_undefined_flag=$lt_no_undefined_flag
26524 # Flag to hardcode \$libdir into a binary during linking.
26525 # This must work even if \$libdir does not exist
26526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26528 # Whether we need a single "-rpath" flag with a separated argument.
26529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26531 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26532 # DIR into the resulting binary.
26533 hardcode_direct=$hardcode_direct
26535 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26536 # DIR into the resulting binary and the resulting library dependency is
26537 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26538 # library is relocated.
26539 hardcode_direct_absolute=$hardcode_direct_absolute
26541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26542 # into the resulting binary.
26543 hardcode_minus_L=$hardcode_minus_L
26545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26546 # into the resulting binary.
26547 hardcode_shlibpath_var=$hardcode_shlibpath_var
26549 # Set to "yes" if building a shared library automatically hardcodes DIR
26550 # into the library and all subsequent libraries and executables linked
26552 hardcode_automatic=$hardcode_automatic
26554 # Set to yes if linker adds runtime paths of dependent libraries
26555 # to runtime path list.
26556 inherit_rpath=$inherit_rpath
26558 # Whether libtool must link a program against all its dependency libraries.
26559 link_all_deplibs=$link_all_deplibs
26561 # Set to "yes" if exported symbols are required.
26562 always_export_symbols=$always_export_symbols
26564 # The commands to list exported symbols.
26565 export_symbols_cmds=$lt_export_symbols_cmds
26567 # Symbols that should not be listed in the preloaded symbols.
26568 exclude_expsyms=$lt_exclude_expsyms
26570 # Symbols that must always be exported.
26571 include_expsyms=$lt_include_expsyms
26573 # Commands necessary for linking programs (against libraries) with templates.
26574 prelink_cmds=$lt_prelink_cmds
26576 # Commands necessary for finishing linking programs.
26577 postlink_cmds=$lt_postlink_cmds
26579 # Specify filename containing input files.
26580 file_list_spec=$lt_file_list_spec
26582 # How to hardcode a shared library path into an executable.
26583 hardcode_action=$hardcode_action
26585 # The directories searched by this compiler when creating a shared library.
26586 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26588 # Dependencies to place before and after the objects being linked to
26589 # create a shared library.
26590 predep_objects=$lt_predep_objects
26591 postdep_objects=$lt_postdep_objects
26592 predeps=$lt_predeps
26593 postdeps=$lt_postdeps
26595 # The library search path used internally by the compiler when linking
26596 # a shared library.
26597 compiler_lib_search_path=$lt_compiler_lib_search_path
26599 # ### END LIBTOOL CONFIG
26603 cat <<'_LT_EOF' >> "$cfgfile"
26605 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26607 # func_munge_path_list VARIABLE PATH
26608 # -----------------------------------
26609 # VARIABLE is name of variable containing _space_ separated list of
26610 # directories to be munged by the contents of PATH, which is string
26613 # string "DIR[ DIR]" will be prepended to VARIABLE
26615 # string "DIR[ DIR]" will be appended to VARIABLE
26616 # "DIRP[:DIRP]::[DIRA:]DIRA"
26617 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26618 # "DIRA[ DIRA]" will be appended to VARIABLE
26620 # VARIABLE will be replaced by "DIR[ DIR]"
26621 func_munge_path_list ()
26627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26643 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26644 func_cc_basename ()
26646 for cc_temp in $*""; do
26648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26654 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26658 # ### END FUNCTIONS SHARED WITH CONFIGURE
26664 cat <<\_LT_EOF >> "$cfgfile"
26665 # AIX sometimes has problems with the GCC collect2 program. For some
26666 # reason, if we set the COLLECT_NAMES environment variable, the problems
26667 # vanish in a puff of smoke.
26668 if test set != "${COLLECT_NAMES+set}"; then
26670 export COLLECT_NAMES
26677 ltmain=$ac_aux_dir/ltmain.sh
26680 # We use sed instead of cat because bash on DJGPP gets confused if
26681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26682 # text mode, it properly converts lines to CR/LF. This bash problem
26683 # is reportedly fixed, but why not run on old versions too?
26684 sed '$q' "$ltmain" >> "$cfgfile" \
26685 || (rm -f "$cfgfile"; exit 1)
26687 mv -f "$cfgfile" "$ofile" ||
26688 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26692 cat <<_LT_EOF >> "$ofile"
26694 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26696 # The linker used to build libraries.
26699 # How to create reloadable object files.
26700 reload_flag=$lt_reload_flag_CXX
26701 reload_cmds=$lt_reload_cmds_CXX
26703 # Commands used to build an old-style archive.
26704 old_archive_cmds=$lt_old_archive_cmds_CXX
26706 # A language specific compiler.
26707 CC=$lt_compiler_CXX
26709 # Is the compiler the GNU compiler?
26712 # Compiler flag to turn off builtin functions.
26713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26715 # Additional compiler flags for building library objects.
26716 pic_flag=$lt_lt_prog_compiler_pic_CXX
26718 # How to pass a linker flag through the compiler.
26719 wl=$lt_lt_prog_compiler_wl_CXX
26721 # Compiler flag to prevent dynamic linking.
26722 link_static_flag=$lt_lt_prog_compiler_static_CXX
26724 # Does compiler simultaneously support -c and -o options?
26725 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26727 # Whether or not to add -lc for building shared libraries.
26728 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26730 # Whether or not to disallow shared libs when runtime libs are static.
26731 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26733 # Compiler flag to allow reflexive dlopens.
26734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26736 # Compiler flag to generate shared objects directly from archives.
26737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26739 # Whether the compiler copes with passing no objects directly.
26740 compiler_needs_object=$lt_compiler_needs_object_CXX
26742 # Create an old-style archive from a shared archive.
26743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26745 # Create a temporary old-style archive to link instead of a shared archive.
26746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26748 # Commands used to build a shared archive.
26749 archive_cmds=$lt_archive_cmds_CXX
26750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26752 # Commands used to build a loadable module if different from building
26753 # a shared archive.
26754 module_cmds=$lt_module_cmds_CXX
26755 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26757 # Whether we are building with GNU ld or not.
26758 with_gnu_ld=$lt_with_gnu_ld_CXX
26760 # Flag that allows shared libraries with undefined symbols to be built.
26761 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26763 # Flag that enforces no undefined symbols.
26764 no_undefined_flag=$lt_no_undefined_flag_CXX
26766 # Flag to hardcode \$libdir into a binary during linking.
26767 # This must work even if \$libdir does not exist
26768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26770 # Whether we need a single "-rpath" flag with a separated argument.
26771 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26773 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26774 # DIR into the resulting binary.
26775 hardcode_direct=$hardcode_direct_CXX
26777 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26778 # DIR into the resulting binary and the resulting library dependency is
26779 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26780 # library is relocated.
26781 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26784 # into the resulting binary.
26785 hardcode_minus_L=$hardcode_minus_L_CXX
26787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26788 # into the resulting binary.
26789 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26791 # Set to "yes" if building a shared library automatically hardcodes DIR
26792 # into the library and all subsequent libraries and executables linked
26794 hardcode_automatic=$hardcode_automatic_CXX
26796 # Set to yes if linker adds runtime paths of dependent libraries
26797 # to runtime path list.
26798 inherit_rpath=$inherit_rpath_CXX
26800 # Whether libtool must link a program against all its dependency libraries.
26801 link_all_deplibs=$link_all_deplibs_CXX
26803 # Set to "yes" if exported symbols are required.
26804 always_export_symbols=$always_export_symbols_CXX
26806 # The commands to list exported symbols.
26807 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26809 # Symbols that should not be listed in the preloaded symbols.
26810 exclude_expsyms=$lt_exclude_expsyms_CXX
26812 # Symbols that must always be exported.
26813 include_expsyms=$lt_include_expsyms_CXX
26815 # Commands necessary for linking programs (against libraries) with templates.
26816 prelink_cmds=$lt_prelink_cmds_CXX
26818 # Commands necessary for finishing linking programs.
26819 postlink_cmds=$lt_postlink_cmds_CXX
26821 # Specify filename containing input files.
26822 file_list_spec=$lt_file_list_spec_CXX
26824 # How to hardcode a shared library path into an executable.
26825 hardcode_action=$hardcode_action_CXX
26827 # The directories searched by this compiler when creating a shared library.
26828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26830 # Dependencies to place before and after the objects being linked to
26831 # create a shared library.
26832 predep_objects=$lt_predep_objects_CXX
26833 postdep_objects=$lt_postdep_objects_CXX
26834 predeps=$lt_predeps_CXX
26835 postdeps=$lt_postdeps_CXX
26837 # The library search path used internally by the compiler when linking
26838 # a shared library.
26839 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26841 # ### END LIBTOOL TAG CONFIG: CXX
26845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26846 # Older Autoconf quotes --file arguments for eval, but not when files
26847 # are listed without --file. Let's play safe and only enable the eval
26848 # if we detect the quoting.
26849 # TODO: see whether this extra hack can be removed once we start
26850 # requiring Autoconf 2.70 or later.
26851 case $CONFIG_FILES in #(
26853 eval set x "$CONFIG_FILES" ;; #(
26855 set x $CONFIG_FILES ;; #(
26860 # Used to flag and report bootstrapping failures.
26864 # Strip MF so we end up with the name of the file.
26865 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26866 # Check whether this is an Automake generated Makefile which includes
26867 # dependency-tracking related rules and includes.
26868 # Grep'ing the whole file directly is not great: AIX grep has a line
26869 # limit of 2048, but all sed's we know have understand at least 4000.
26870 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26872 am_dirpart=`$as_dirname -- "$am_mf" ||
26873 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26874 X"$am_mf" : 'X\(//\)[^/]' \| \
26875 X"$am_mf" : 'X\(//\)$' \| \
26876 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26877 $as_echo X"$am_mf" |
26878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26882 /^X\(\/\/\)[^/].*/{
26895 am_filepart=`$as_basename -- "$am_mf" ||
26896 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26897 X"$am_mf" : 'X\(//\)$' \| \
26898 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26899 $as_echo X/"$am_mf" |
26900 sed '/^.*\/\([^/][^/]*\)\/*$/{
26913 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26914 && sed -e '/# am--include-marker/d' "$am_filepart" \
26915 | $MAKE -f - am--depfiles" >&5
26916 (cd "$am_dirpart" \
26917 && sed -e '/# am--include-marker/d' "$am_filepart" \
26918 | $MAKE -f - am--depfiles) >&5 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } || am_rc=$?
26923 if test $am_rc -ne 0; then
26924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26926 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26927 for automatic dependency tracking. Try re-running configure with the
26928 '--disable-dependency-tracking' option to at least be able to build
26929 the package (albeit without support for automatic dependency tracking).
26930 See \`config.log' for more details" "$LINENO" 5; }
26932 { am_dirpart=; unset am_dirpart;}
26933 { am_filepart=; unset am_filepart;}
26934 { am_mf=; unset am_mf;}
26935 { am_rc=; unset am_rc;}
26936 rm -f conftest-deps.mk
26946 ac_clean_files=$ac_clean_files_save
26948 test $ac_write_fail = 0 ||
26949 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26952 # configure is writing to config.log, and then calls config.status.
26953 # config.status does its own redirection, appending to config.log.
26954 # Unfortunately, on DOS this fails, as config.log is still kept open
26955 # by configure, so config.status won't be able to write to it; its
26956 # output is simply discarded. So we exec the FD to /dev/null,
26957 # effectively closing config.log, so it can be properly (re)opened and
26958 # appended to by config.status. When coming back to configure, we
26959 # need to make the FD available again.
26960 if test "$no_create" != yes; then
26962 ac_config_status_args=
26963 test "$silent" = yes &&
26964 ac_config_status_args="$ac_config_status_args --quiet"
26966 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26968 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26969 # would make configure fail if this is the last instruction.
26970 $ac_cs_success || as_fn_exit 1
26972 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26974 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
26980 Package version: ${VERSION}
26981 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
26982 Install prefix: ${prefix}
26990 LDFLAGS: ${LDFLAGS}
26991 C++ compiler: ${CXX}
26992 CXXFLAGS: ${CXXFLAGS}
26994 C preprocessor: ${CPP}
26995 CPPFLAGS: ${CPPFLAGS}
26996 WARNCFLAGS: ${WARNCFLAGS}
26997 WARNCXXFLAGS: ${WARNCXXFLAGS}
26998 CXX1XCXXFLAGS: ${CXX1XCXXFLAGS}
26999 EXTRACFLAG: ${EXTRACFLAG}
27002 Shared: ${enable_shared}
27003 Static: ${enable_static}
27006 PYTHON_VERSION: ${PYTHON_VERSION}
27007 pyexecdir: ${pyexecdir}
27008 Python-dev: ${have_python_dev}
27009 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
27010 PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
27013 CUnit: ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
27014 Failmalloc: ${enable_failmalloc}
27016 OpenSSL: ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
27017 Libxml2: ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
27018 Libev: ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
27019 Libc-ares: ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
27020 Libevent(SSL): ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
27021 Jansson: ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
27022 Jemalloc: ${have_jemalloc} (LIBS='${JEMALLOC_LIBS}')
27023 Zlib: ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
27024 Systemd: ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
27025 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
27026 Boost LDFLAGS: ${BOOST_LDFLAGS}
27027 Boost::ASIO: ${BOOST_ASIO_LIB}
27028 Boost::System: ${BOOST_SYSTEM_LIB}
27029 Boost::Thread: ${BOOST_THREAD_LIB}
27031 http-parser: ${enable_third_party}
27032 MRuby: ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
27033 Neverbleed: ${have_neverbleed}
27035 Applications: ${enable_app}
27036 HPACK tools: ${enable_hpack_tools}
27037 Libnghttp2_asio:${enable_asio_lib}
27038 Examples: ${enable_examples}
27039 Python bindings:${enable_python_bindings}
27040 Threading: ${enable_threads}
27042 $as_echo "$as_me: summary of build options:
27044 Package version: ${VERSION}
27045 Library version: $LT_CURRENT:$LT_REVISION:$LT_AGE
27046 Install prefix: ${prefix}
27054 LDFLAGS: ${LDFLAGS}
27055 C++ compiler: ${CXX}
27056 CXXFLAGS: ${CXXFLAGS}
27058 C preprocessor: ${CPP}
27059 CPPFLAGS: ${CPPFLAGS}
27060 WARNCFLAGS: ${WARNCFLAGS}
27061 WARNCXXFLAGS: ${WARNCXXFLAGS}
27062 CXX1XCXXFLAGS: ${CXX1XCXXFLAGS}
27063 EXTRACFLAG: ${EXTRACFLAG}
27066 Shared: ${enable_shared}
27067 Static: ${enable_static}
27070 PYTHON_VERSION: ${PYTHON_VERSION}
27071 pyexecdir: ${pyexecdir}
27072 Python-dev: ${have_python_dev}
27073 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
27074 PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
27077 CUnit: ${have_cunit} (CFLAGS='${CUNIT_CFLAGS}' LIBS='${CUNIT_LIBS}')
27078 Failmalloc: ${enable_failmalloc}
27080 OpenSSL: ${have_openssl} (CFLAGS='${OPENSSL_CFLAGS}' LIBS='${OPENSSL_LIBS}')
27081 Libxml2: ${have_libxml2} (CFLAGS='${LIBXML2_CFLAGS}' LIBS='${LIBXML2_LIBS}')
27082 Libev: ${have_libev} (CFLAGS='${LIBEV_CFLAGS}' LIBS='${LIBEV_LIBS}')
27083 Libc-ares: ${have_libcares} (CFLAGS='${LIBCARES_CFLAGS}' LIBS='${LIBCARES_LIBS}')
27084 Libevent(SSL): ${have_libevent_openssl} (CFLAGS='${LIBEVENT_OPENSSL_CFLAGS}' LIBS='${LIBEVENT_OPENSSL_LIBS}')
27085 Jansson: ${have_jansson} (CFLAGS='${JANSSON_CFLAGS}' LIBS='${JANSSON_LIBS}')
27086 Jemalloc: ${have_jemalloc} (LIBS='${JEMALLOC_LIBS}')
27087 Zlib: ${have_zlib} (CFLAGS='${ZLIB_CFLAGS}' LIBS='${ZLIB_LIBS}')
27088 Systemd: ${have_libsystemd} (CFLAGS='${SYSTEMD_CFLAGS}' LIBS='${SYSTEMD_LIBS}')
27089 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
27090 Boost LDFLAGS: ${BOOST_LDFLAGS}
27091 Boost::ASIO: ${BOOST_ASIO_LIB}
27092 Boost::System: ${BOOST_SYSTEM_LIB}
27093 Boost::Thread: ${BOOST_THREAD_LIB}
27095 http-parser: ${enable_third_party}
27096 MRuby: ${have_mruby} (CFLAGS='${LIBMRUBY_CFLAGS}' LIBS='${LIBMRUBY_LIBS}')
27097 Neverbleed: ${have_neverbleed}
27099 Applications: ${enable_app}
27100 HPACK tools: ${enable_hpack_tools}
27101 Libnghttp2_asio:${enable_asio_lib}
27102 Examples: ${enable_examples}
27103 Python bindings:${enable_python_bindings}
27104 Threading: ${enable_threads}