2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nghttp2 1.0.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.0.0'
594 PACKAGE_STRING='nghttp2 1.0.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
640 ENABLE_TINY_NGHTTPD_FALSE
641 ENABLE_TINY_NGHTTPD_TRUE
643 ENABLE_FAILMALLOC_FALSE
644 ENABLE_FAILMALLOC_TRUE
647 ENABLE_PYTHON_BINDINGS_FALSE
648 ENABLE_PYTHON_BINDINGS_TRUE
649 ENABLE_EXAMPLES_FALSE
651 ENABLE_ASIO_LIB_FALSE
653 ENABLE_HPACK_TOOLS_FALSE
654 ENABLE_HPACK_TOOLS_TRUE
674 LIBEVENT_OPENSSL_LIBS
675 LIBEVENT_OPENSSL_CFLAGS
737 INSTALL_STRIP_PROGRAM
821 program_transform_name
834 enable_option_checking
842 enable_dependency_tracking
851 enable_python_bindings
868 ac_precious_vars='build_alias
893 LIBEVENT_OPENSSL_CFLAGS
894 LIBEVENT_OPENSSL_LIBS
901 # Initialize some variables set by options.
903 ac_init_version=false
904 ac_unrecognized_opts=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1208 -site=* | --site=* | --sit=*)
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1335 # Be sure to have absolute directory names.
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1439 \`configure' configures nghttp2 1.0.0 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/nghttp2]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of nghttp2 1.0.0:";;
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-silent-rules less verbose build output (undo: "make V=1")
1528 --disable-silent-rules verbose build output (undo: "make V=0")
1529 --enable-werror Turn on compile time warnings
1530 --enable-debug Turn on debug output
1531 --disable-threads Turn off threading in apps
1532 --enable-app Build applications (nghttp, nghttpd and nghttpx)
1534 --enable-hpack-tools Build HPACK tools [default=check]
1535 --enable-asio-lib Build C++ libnghttp2_asio library [default=no]
1536 --enable-examples Build examples [default=check]
1537 --enable-python-bindings
1538 Build Python bindings [default=check]
1539 --disable-failmalloc Do not build failmalloc test program
1540 --disable-xmltest Do not try to compile and run a test LIBXML program
1541 --disable-assert turn off assertions
1542 --disable-largefile omit support for large files
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1547 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-sysroot=DIR Search for dependent libraries within DIR
1551 (or the compiler's sysroot if not specified).
1552 --with-libxml2 Use libxml2 [default=check]
1553 --with-jemalloc Use jemalloc [default=check]
1554 --with-spdylay Use spdylay [default=check]
1555 --with-cython=PATH Use cython in given PATH
1556 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
1557 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1558 --with-boost[=ARG] use Boost library from a standard location
1559 (ARG=yes), from the specified location (ARG=<path>),
1560 or disable it (ARG=no) [ARG=yes]
1561 --with-boost-libdir=LIB_DIR
1562 Force given directory for boost libraries. Note that
1563 this will override library path detection, so use
1564 this parameter only if default library detection
1565 fails and you know exactly where your boost
1566 libraries are located.
1567 --with-boost-asio[=special-lib]
1568 use the ASIO library from boost - it is possible to
1569 specify a certain library for the linker e.g.
1570 --with-boost-asio=boost_system-gcc41-mt-1_34
1571 --with-boost-system[=special-lib]
1572 use the System library from boost - it is possible
1573 to specify a certain library for the linker e.g.
1574 --with-boost-system=boost_system-gcc-mt
1575 --with-boost-thread[=special-lib]
1576 use the Thread library from boost - it is possible
1577 to specify a certain library for the linker e.g.
1578 --with-boost-thread=boost_thread-gcc-mt
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1589 CYTHON the Cython executable
1590 CXX C++ compiler command
1591 CXXFLAGS C++ compiler flags
1592 CXXCPP C++ preprocessor
1593 PKG_CONFIG path to pkg-config utility
1595 directories to add to pkg-config's search path
1597 path overriding pkg-config's built-in search path
1598 PYTHON the Python interpreter
1600 The installed Python version to use, for example '2.3'. This
1601 string will be appended to the Python interpreter canonical
1603 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1604 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1606 C compiler flags for CUNIT, overriding pkg-config
1607 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1609 C compiler flags for OPENSSL, overriding pkg-config
1611 linker flags for OPENSSL, overriding pkg-config
1612 LIBEVENT_OPENSSL_CFLAGS
1613 C compiler flags for LIBEVENT_OPENSSL, overriding pkg-config
1614 LIBEVENT_OPENSSL_LIBS
1615 linker flags for LIBEVENT_OPENSSL, overriding pkg-config
1617 C compiler flags for JANSSON, overriding pkg-config
1619 linker flags for JANSSON, overriding pkg-config
1621 C compiler flags for LIBSPDYLAY, overriding pkg-config
1623 linker flags for LIBSPDYLAY, overriding pkg-config
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1628 Report bugs to <t-tujikawa@users.sourceforge.net>.
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1658 .) # We are building in place.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1691 nghttp2 configure 1.0.0
1692 generated by GNU Autoconf 2.69
1694 Copyright (C) 2012 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1705 # ac_fn_c_try_compile LINENO
1706 # --------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_compile") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest.$ac_objext; then :
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_compile
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } > conftest.i && {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1780 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1781 # -------------------------------------------------------
1782 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1783 # the include files in INCLUDES and setting the cache variable VAR
1785 ac_fn_c_check_header_mongrel ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if eval \${$3+:} false; then :
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1798 # Is the header compilable?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1800 $as_echo_n "checking $2 usability... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_header_compiler=yes
1809 ac_header_compiler=no
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1813 $as_echo "$ac_header_compiler" >&6; }
1815 # Is the header present?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1817 $as_echo_n "checking $2 presence... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1822 if ac_fn_c_try_cpp "$LINENO"; then :
1823 ac_header_preproc=yes
1825 ac_header_preproc=no
1827 rm -f conftest.err conftest.i conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1829 $as_echo "$ac_header_preproc" >&6; }
1831 # So? What about this header?
1832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1835 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1841 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1843 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1845 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1847 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ( $as_echo "## ----------------------------------------------- ##
1851 ## Report this to t-tujikawa@users.sourceforge.net ##
1852 ## ----------------------------------------------- ##"
1853 ) | sed "s/^/$as_me: WARNING: /" >&2
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1861 eval "$3=\$ac_header_compiler"
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_mongrel
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=$ac_status
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1930 if ac_fn_c_try_compile "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_header_compile
1944 # ac_fn_c_try_link LINENO
1945 # -----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded.
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 rm -f conftest.$ac_objext conftest$ac_exeext
1951 if { { ac_try="$ac_link"
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>conftest.err
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && {
1967 test -z "$ac_c_werror_flag" ||
1968 test ! -s conftest.err
1969 } && test -s conftest$ac_exeext && {
1970 test "$cross_compiling" = yes ||
1971 test -x conftest$ac_exeext
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982 # interfere with the next link command; also delete a directory that is
1983 # left behind by Apple's compiler. We do this before executing the actions.
1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status $ac_retval
1988 } # ac_fn_c_try_link
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2013 # include <limits.h>
2015 # include <assert.h>
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2042 if ac_fn_c_try_link "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_cxx_try_compile LINENO
2058 # ----------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_compile ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext
2064 if { { ac_try="$ac_compile"
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_compile") 2>conftest.err
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_cxx_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest.$ac_objext; then :
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_cxx_try_compile
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } > conftest.i && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 as_fn_set_status $ac_retval
2130 } # ac_fn_cxx_try_cpp
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 test -x conftest$ac_exeext
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_cxx_try_link
2178 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2179 # -------------------------------------------
2180 # Tests whether TYPE exists after having included INCLUDES, setting cache
2181 # variable VAR accordingly.
2182 ac_fn_c_check_type ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if eval \${$3+:} false; then :
2188 $as_echo_n "(cached) " >&6
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2216 if ac_fn_c_try_compile "$LINENO"; then :
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 } # ac_fn_c_check_type
2232 # ac_fn_c_find_uintX_t LINENO BITS VAR
2233 # ------------------------------------
2234 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2236 ac_fn_c_find_uintX_t ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2240 $as_echo_n "checking for uint$2_t... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2245 # Order is important - never check a type that is potentially smaller
2246 # than half of the expected target width.
2247 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2248 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $ac_includes_default
2255 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2257 return test_array [0];
2263 if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$3=\$ac_type" ;;
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 if eval test \"x\$"$3"\" = x"no"; then :
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 } # ac_fn_c_find_uintX_t
2286 # ac_fn_c_find_intX_t LINENO BITS VAR
2287 # -----------------------------------
2288 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 ac_fn_c_find_intX_t ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2294 $as_echo_n "checking for int$2_t... " >&6; }
2295 if eval \${$3+:} false; then :
2296 $as_echo_n "(cached) " >&6
2299 # Order is important - never check a type that is potentially smaller
2300 # than half of the expected target width.
2301 for ac_type in int$2_t 'int' 'long int' \
2302 'long long int' 'short int' 'signed char'; do
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $ac_includes_default
2306 enum { N = $2 / 2 - 1 };
2310 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2312 return test_array [0];
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2322 enum { N = $2 / 2 - 1 };
2326 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2327 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2329 return test_array [0];
2335 if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=\$ac_type" ;;
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 if eval test \"x\$"$3"\" = x"no"; then :
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_find_intX_t
2362 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2363 # ----------------------------------------------------
2364 # Tries to find if the field MEMBER exists in type AGGR, after including
2365 # INCLUDES, setting cache variable VAR accordingly.
2366 ac_fn_c_check_member ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2370 $as_echo_n "checking for $2.$3... " >&6; }
2371 if eval \${$4+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2387 if ac_fn_c_try_compile "$LINENO"; then :
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2397 if (sizeof ac_aggr.$3)
2403 if ac_fn_c_try_compile "$LINENO"; then :
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_member
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2424 ac_fn_c_compute_int ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if test "$cross_compiling" = yes; then
2428 # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2437 return test_array [0];
2443 if ac_fn_c_try_compile "$LINENO"; then :
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 return test_array [0];
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid; break
2463 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2464 if test $ac_lo -le $ac_mid; then
2468 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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_lo=$ac_mid; break
2507 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2508 if test $ac_mid -le $ac_hi; then
2512 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 # Binary search between lo and hi bounds.
2523 while test "x$ac_lo" != "x$ac_hi"; do
2524 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2533 return test_array [0];
2539 if ac_fn_c_try_compile "$LINENO"; then :
2542 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2554 static long int longval () { return $2; }
2555 static unsigned long int ulongval () { return $2; }
2562 FILE *f = fopen ("conftest.val", "w");
2567 long int i = longval ();
2570 fprintf (f, "%ld", i);
2574 unsigned long int i = ulongval ();
2577 fprintf (f, "%lu", i);
2579 /* Do not output a trailing newline, as this causes \r\n confusion
2580 on some platforms. */
2581 return ferror (f) || fclose (f) != 0;
2587 if ac_fn_c_try_run "$LINENO"; then :
2588 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2593 conftest.$ac_objext conftest.beam conftest.$ac_ext
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 as_fn_set_status $ac_retval
2600 } # ac_fn_c_compute_int
2602 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2603 # ---------------------------------------------
2604 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2606 ac_fn_c_check_decl ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 as_decl_name=`echo $2|sed 's/ *(.*//'`
2610 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2612 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2613 if eval \${$3+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 #ifndef $as_decl_name
2624 (void) $as_decl_use;
2626 (void) $as_decl_name;
2634 if ac_fn_c_try_compile "$LINENO"; then :
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646 } # ac_fn_c_check_decl
2647 cat >config.log <<_ACEOF
2648 This file contains any messages produced by compilers while
2649 running configure, to aid debugging if configure makes a mistake.
2651 It was created by nghttp2 $as_me 1.0.0, which was
2652 generated by GNU Autoconf 2.69. Invocation command line was
2664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 $as_echo "PATH: $as_dir"
2704 # Keep a trace of the command line.
2705 # Strip out --no-create and --no-recursion so they do not pile up.
2706 # Strip out --silent because we don't want to record it for future runs.
2707 # Also quote any args containing shell meta-characters.
2708 # Make two passes to allow for proper duplicate-argument suppression.
2712 ac_must_keep_next=false
2718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2720 | -silent | --silent | --silen | --sile | --sil)
2723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2726 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2728 as_fn_append ac_configure_args1 " '$ac_arg'"
2729 if test $ac_must_keep_next = true; then
2730 ac_must_keep_next=false # Got value, back to normal.
2733 *=* | --config-cache | -C | -disable-* | --disable-* \
2734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2736 | -with-* | --with-* | -without-* | --without-* | --x)
2737 case "$ac_configure_args0 " in
2738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2741 -* ) ac_must_keep_next=true ;;
2744 as_fn_append ac_configure_args " '$ac_arg'"
2749 { ac_configure_args0=; unset ac_configure_args0;}
2750 { ac_configure_args1=; unset ac_configure_args1;}
2752 # When interrupted or exit'd, cleanup temporary files, and complete
2753 # config.log. We remove comments because anyway the quotes in there
2754 # would cause problems or look ugly.
2755 # WARNING: Use '\'' to represent an apostrophe within the trap.
2756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2757 trap 'exit_status=$?
2758 # Save into config.log some information that might help in debugging.
2762 $as_echo "## ---------------- ##
2763 ## Cache variables. ##
2764 ## ---------------- ##"
2766 # The following way of writing the cache mishandles newlines in values,
2768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2769 eval ac_val=\$$ac_var
2773 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2774 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2777 _ | IFS | as_nl) ;; #(
2778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2779 *) { eval $ac_var=; unset $ac_var;} ;;
2784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2785 *${as_nl}ac_space=\ *)
2787 "s/'\''/'\''\\\\'\'''\''/g;
2788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2798 $as_echo "## ----------------- ##
2799 ## Output variables. ##
2800 ## ----------------- ##"
2802 for ac_var in $ac_subst_vars
2804 eval ac_val=\$$ac_var
2806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2808 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -n "$ac_subst_files"; then
2813 $as_echo "## ------------------- ##
2814 ## File substitutions. ##
2815 ## ------------------- ##"
2817 for ac_var in $ac_subst_files
2819 eval ac_val=\$$ac_var
2821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 $as_echo "$ac_var='\''$ac_val'\''"
2828 if test -s confdefs.h; then
2829 $as_echo "## ----------- ##
2836 test "$ac_signal" != 0 &&
2837 $as_echo "$as_me: caught signal $ac_signal"
2838 $as_echo "$as_me: exit $exit_status"
2840 rm -f core *.core core.conftest.* &&
2841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2844 for ac_signal in 1 2 13 15; do
2845 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2850 rm -f -r conftest* confdefs.h
2852 $as_echo "/* confdefs.h */" > confdefs.h
2854 # Predefined preprocessor variables.
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_NAME "$PACKAGE_NAME"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_STRING "$PACKAGE_STRING"
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_URL "$PACKAGE_URL"
2881 # Let the site file select an alternate cache file if it wants to.
2882 # Prefer an explicitly selected file to automatically selected ones.
2885 if test -n "$CONFIG_SITE"; then
2886 # We do not want a PATH search for config.site.
2887 case $CONFIG_SITE in #((
2888 -*) ac_site_file1=./$CONFIG_SITE;;
2889 */*) ac_site_file1=$CONFIG_SITE;;
2890 *) ac_site_file1=./$CONFIG_SITE;;
2892 elif test "x$prefix" != xNONE; then
2893 ac_site_file1=$prefix/share/config.site
2894 ac_site_file2=$prefix/etc/config.site
2896 ac_site_file1=$ac_default_prefix/share/config.site
2897 ac_site_file2=$ac_default_prefix/etc/config.site
2899 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2901 test "x$ac_site_file" = xNONE && continue
2902 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2905 sed 's/^/| /' "$ac_site_file" >&5
2907 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "failed to load site script $ac_site_file
2910 See \`config.log' for more details" "$LINENO" 5; }
2914 if test -r "$cache_file"; then
2915 # Some versions of bash will fail to source /dev/null (special files
2916 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2917 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2919 $as_echo "$as_me: loading cache $cache_file" >&6;}
2921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2922 *) . "./$cache_file";;
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2927 $as_echo "$as_me: creating cache $cache_file" >&6;}
2931 # Check that the precious variables saved in the cache have kept the same
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x $ac_old_val`
2953 ac_new_val_w=`echo x $ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2957 ac_cache_corrupted=:
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3001 if test -f "$ac_dir/install-sh"; then
3003 ac_install_sh="$ac_aux_dir/install-sh -c"
3005 elif test -f "$ac_dir/install.sh"; then
3007 ac_install_sh="$ac_aux_dir/install.sh -c"
3009 elif test -f "$ac_dir/shtool"; then
3011 ac_install_sh="$ac_aux_dir/shtool install -c"
3015 if test -z "$ac_aux_dir"; then
3016 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3019 # These three variables are undocumented and unsupported,
3020 # and are intended to be withdrawn in a future Autoconf release.
3021 # They can cause serious problems if a builder's source tree is in a directory
3022 # whose full name contains unusual characters.
3023 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3024 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3025 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3028 # Expand $ac_aux_dir to an absolute path.
3029 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_CC+:} false; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$ac_cv_prog_CC"; then
3077 # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_CC="gcc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3113 if test "x$ac_ct_CC" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}cc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_CC="${ac_tool_prefix}cc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189 ac_prog_rejected=yes
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test $ac_prog_rejected = yes; then
3201 # We found a bogon in the path, so make sure we never use it.
3202 set dummy $ac_cv_prog_CC
3204 if test $# != 0; then
3205 # We chose a different compiler from the bogus one.
3206 # However, it has the same basename, so the bogon will be chosen
3207 # first if we set CC to just the basename; use the full file name.
3209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 for ac_prog in cl.exe
3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3266 test -n "$CC" && break
3269 if test -z "$CC"; then
3271 for ac_prog in cl.exe
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CC="$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$ac_ct_CC" && break
3313 if test "x$ac_ct_CC" = x; then
3316 case $cross_compiling:$ac_tool_warned in
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "no acceptable C compiler found in \$PATH
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 # Provide some information about the compiler.
3335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3338 for ac_option in --version -v -V -qversion; do
3339 { { ac_try="$ac_compiler $ac_option >&5"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3348 if test -s conftest.err; then
3350 ... rest of stderr output deleted ...
3351 10q' conftest.err >conftest.er1
3352 cat conftest.er1 >&5
3354 rm -f conftest.er1 conftest.err
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3370 ac_clean_files_save=$ac_clean_files
3371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3372 # Try to create an executable without -o first, disregard a.out.
3373 # It will help us diagnose broken compilers, and finding out an intuition
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3376 $as_echo_n "checking whether the C compiler works... " >&6; }
3377 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3379 # The possible output files:
3380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3383 for ac_file in $ac_files
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3387 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392 if { { ac_try="$ac_link_default"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link_default") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; then :
3403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3405 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3406 # so that the user can short-circuit this test for compilers unknown to
3408 for ac_file in $ac_files ''
3410 test -f "$ac_file" || continue
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3415 # We found the default executable, but exeext='' is most
3419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3423 # We set ac_cv_exeext here because the later test for it is not
3424 # safe: cross compilers may not add the suffix if given an `-o'
3425 # argument, so we may need to know it at that point already.
3426 # Even if this section looks crufty: it has the advantage of
3433 test "$ac_cv_exeext" = no && ac_cv_exeext=
3438 if test -z "$ac_file"; then :
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error 77 "C compiler cannot create executables
3447 See \`config.log' for more details" "$LINENO" 5; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3453 $as_echo_n "checking for C compiler default output file name... " >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3455 $as_echo "$ac_file" >&6; }
3456 ac_exeext=$ac_cv_exeext
3458 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461 $as_echo_n "checking for suffix of executables... " >&6; }
3462 if { { ac_try="$ac_link"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link") 2>&5
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3475 # work properly (i.e., refer to `conftest.exe'), while it won't with
3477 for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3490 See \`config.log' for more details" "$LINENO" 5; }
3492 rm -f conftest conftest$ac_cv_exeext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494 $as_echo "$ac_cv_exeext" >&6; }
3496 rm -f conftest.$ac_ext
3497 EXEEXT=$ac_cv_exeext
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3505 FILE *f = fopen ("conftest.out", "w");
3506 return ferror (f) || fclose (f) != 0;
3512 ac_clean_files="$ac_clean_files conftest.out"
3513 # Check that the compiler produces executables we can run. If not, either
3514 # the compiler is broken, or we cross compile.
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3516 $as_echo_n "checking whether we are cross compiling... " >&6; }
3517 if test "$cross_compiling" != yes; then
3518 { { ac_try="$ac_link"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }
3529 if { ac_try='./conftest$ac_cv_exeext'
3530 { { case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_try") 2>&5
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; }; then
3542 if test "$cross_compiling" = maybe; then
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "cannot run C compiled programs.
3548 If you meant to cross compile, use \`--host'.
3549 See \`config.log' for more details" "$LINENO" 5; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554 $as_echo "$cross_compiling" >&6; }
3556 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3557 ac_clean_files=$ac_clean_files_save
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3559 $as_echo_n "checking for suffix of object files... " >&6; }
3560 if ${ac_cv_objext+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 rm -f conftest.o conftest.obj
3575 if { { ac_try="$ac_compile"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_compile") 2>&5
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; then :
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $? "cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details" "$LINENO" 5; }
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3606 $as_echo "$ac_cv_objext" >&6; }
3607 OBJEXT=$ac_cv_objext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if ${ac_cv_c_compiler_gnu+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3628 if ac_fn_c_try_compile "$LINENO"; then :
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639 if test $ac_compiler_gnu = yes; then
3644 ac_test_CFLAGS=${CFLAGS+set}
3645 ac_save_CFLAGS=$CFLAGS
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3648 if ${ac_cv_prog_cc_g+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 ac_save_c_werror_flag=$ac_c_werror_flag
3652 ac_c_werror_flag=yes
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3666 if ac_fn_c_try_compile "$LINENO"; then :
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3697 if ac_fn_c_try_compile "$LINENO"; then :
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708 $as_echo "$ac_cv_prog_cc_g" >&6; }
3709 if test "$ac_test_CFLAGS" = set; then
3710 CFLAGS=$ac_save_CFLAGS
3711 elif test $ac_cv_prog_cc_g = yes; then
3712 if test "$GCC" = yes; then
3718 if test "$GCC" = yes; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726 if ${ac_cv_prog_cc_c89+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 ac_cv_prog_cc_c89=no
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3737 struct buf { int x; };
3738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3739 static char *e (p, i)
3745 static char *f (char * (*g) (char **, int), char **p, ...)
3750 s = g (p, va_arg (v,int));
3755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3756 function prototypes and stuff, but not '\xHH' hex character constants.
3757 These don't provoke an error unfortunately, instead are silently treated
3758 as 'x'. The following induces an error, until -std is added to get
3759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3760 array size at least. It's necessary to write '\x00'==0 to get something
3761 that's true only with -std. */
3762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3765 inside strings and character constants. */
3767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769 int test (int i, double x);
3770 struct s1 {int (*f) (int a);};
3771 struct s2 {int (*f) (double a);};
3772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 CC="$ac_save_CC $ac_arg"
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_c89=$ac_arg
3790 rm -f core conftest.err conftest.$ac_objext
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 rm -f conftest.$ac_ext
3798 case "x$ac_cv_prog_cc_c89" in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3801 $as_echo "none needed" >&6; } ;;
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 $as_echo "unsupported" >&6; } ;;
3806 CC="$CC $ac_cv_prog_cc_c89"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 if test "x$ac_cv_prog_cc_c89" != xno; then :
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3826 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3827 if ${am_cv_prog_cc_c_o+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 # Make sure it works both with $CC and with simple cc.
3842 # Following AC_PROG_CC_C_O, we do the test twice because some
3843 # compilers refuse to overwrite an existing .o file with -o,
3844 # though they will create one.
3845 am_cv_prog_cc_c_o=yes
3847 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3848 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } \
3852 && test -f conftest2.$ac_objext; then
3855 am_cv_prog_cc_c_o=no
3859 rm -f core conftest*
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3863 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3864 if test "$am_cv_prog_cc_c_o" != yes; then
3865 # Losing compiler, so override with the script.
3866 # FIXME: It is wrong to rewrite CC.
3867 # But if we don't then we get into trouble of one sort or another.
3868 # A longer-term fix would be to have automake use am__CC in this case,
3869 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3870 CC="$am_aux_dir/compile $CC"
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3887 # On Suns, sometimes $CPP names a directory.
3888 if test -n "$CPP" && test -d "$CPP"; then
3891 if test -z "$CPP"; then
3892 if ${ac_cv_prog_CPP+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 # Double quotes because CPP needs to be expanded
3896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3899 for ac_c_preproc_warn_flag in '' yes
3901 # Use a header file that comes with gcc, so configuring glibc
3902 # with a fresh cross-compiler works.
3903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3904 # <limits.h> exists even on freestanding compilers.
3905 # On the NeXT, cc -E runs the code through the compiler's parser,
3906 # not just through cpp. "Syntax error" is here to catch this case.
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3910 # include <limits.h>
3912 # include <assert.h>
3916 if ac_fn_c_try_cpp "$LINENO"; then :
3919 # Broken: fails on valid input.
3922 rm -f conftest.err conftest.i conftest.$ac_ext
3924 # OK, works on sane cases. Now check whether nonexistent headers
3925 # can be detected and how.
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <ac_nonexistent.h>
3930 if ac_fn_c_try_cpp "$LINENO"; then :
3931 # Broken: success on invalid input.
3934 # Passes both tests.
3938 rm -f conftest.err conftest.i conftest.$ac_ext
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.i conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then :
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3956 $as_echo "$CPP" >&6; }
3958 for ac_c_preproc_warn_flag in '' yes
3960 # Use a header file that comes with gcc, so configuring glibc
3961 # with a fresh cross-compiler works.
3962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963 # <limits.h> exists even on freestanding compilers.
3964 # On the NeXT, cc -E runs the code through the compiler's parser,
3965 # not just through cpp. "Syntax error" is here to catch this case.
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3969 # include <limits.h>
3971 # include <assert.h>
3975 if ac_fn_c_try_cpp "$LINENO"; then :
3978 # Broken: fails on valid input.
3981 rm -f conftest.err conftest.i conftest.$ac_ext
3983 # OK, works on sane cases. Now check whether nonexistent headers
3984 # can be detected and how.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <ac_nonexistent.h>
3989 if ac_fn_c_try_cpp "$LINENO"; then :
3990 # Broken: success on invalid input.
3993 # Passes both tests.
3997 rm -f conftest.err conftest.i conftest.$ac_ext
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.i conftest.err conftest.$ac_ext
4002 if $ac_preproc_ok; then :
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4008 See \`config.log' for more details" "$LINENO" 5; }
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4019 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4020 if ${ac_cv_path_GREP+:} false; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -z "$GREP"; then
4024 ac_path_GREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in grep ggrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4034 as_fn_executable_p "$ac_path_GREP" || continue
4035 # Check for GNU ac_path_GREP and select it if it is found.
4036 # Check for GNU $ac_path_GREP
4037 case `"$ac_path_GREP" --version 2>&1` in
4039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4042 $as_echo_n 0123456789 >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'GREP' >> "conftest.nl"
4049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 as_fn_arith $ac_count + 1 && ac_count=$as_val
4052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_GREP="$ac_path_GREP"
4055 ac_path_GREP_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 $ac_path_GREP_found && break 3
4068 if test -z "$ac_cv_path_GREP"; then
4069 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4072 ac_cv_path_GREP=$GREP
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078 GREP="$ac_cv_path_GREP"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if ${ac_cv_path_EGREP+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087 then ac_cv_path_EGREP="$GREP -E"
4089 if test -z "$EGREP"; then
4090 ac_path_EGREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in egrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100 as_fn_executable_p "$ac_path_EGREP" || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102 # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4108 $as_echo_n 0123456789 >"conftest.in"
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 $as_echo 'EGREP' >> "conftest.nl"
4115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 as_fn_arith $ac_count + 1 && ac_count=$as_val
4118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_EGREP="$ac_path_EGREP"
4121 ac_path_EGREP_max=$ac_count
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4129 $ac_path_EGREP_found && break 3
4134 if test -z "$ac_cv_path_EGREP"; then
4135 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4138 ac_cv_path_EGREP=$EGREP
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4144 $as_echo "$ac_cv_path_EGREP" >&6; }
4145 EGREP="$ac_cv_path_EGREP"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4149 $as_echo_n "checking for ANSI C header files... " >&6; }
4150 if ${ac_cv_header_stdc+:} false; then :
4151 $as_echo_n "(cached) " >&6
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_header_stdc=yes
4171 ac_cv_header_stdc=no
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 if test $ac_cv_header_stdc = yes; then
4176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 $EGREP "memchr" >/dev/null 2>&1; then :
4186 ac_cv_header_stdc=no
4192 if test $ac_cv_header_stdc = yes; then
4193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4200 $EGREP "free" >/dev/null 2>&1; then :
4203 ac_cv_header_stdc=no
4209 if test $ac_cv_header_stdc = yes; then
4210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4211 if test "$cross_compiling" = yes; then :
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4218 #if ((' ' & 0x0FF) == 0x020)
4219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 # define ISLOWER(c) \
4223 (('a' <= (c) && (c) <= 'i') \
4224 || ('j' <= (c) && (c) <= 'r') \
4225 || ('s' <= (c) && (c) <= 'z'))
4226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4234 for (i = 0; i < 256; i++)
4235 if (XOR (islower (i), ISLOWER (i))
4236 || toupper (i) != TOUPPER (i))
4241 if ac_fn_c_try_run "$LINENO"; then :
4244 ac_cv_header_stdc=no
4246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4247 conftest.$ac_objext conftest.beam conftest.$ac_ext
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4253 $as_echo "$ac_cv_header_stdc" >&6; }
4254 if test $ac_cv_header_stdc = yes; then
4256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4262 inttypes.h stdint.h unistd.h
4264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4268 cat >>confdefs.h <<_ACEOF
4269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4278 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4279 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4286 if test "$MINIX" = yes; then
4288 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4291 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4294 $as_echo "#define _MINIX 1" >>confdefs.h
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4300 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4301 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4302 $as_echo_n "(cached) " >&6
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4307 # define __EXTENSIONS__ 1
4308 $ac_includes_default
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318 ac_cv_safe_to_define___extensions__=yes
4320 ac_cv_safe_to_define___extensions__=no
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4325 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4326 test $ac_cv_safe_to_define___extensions__ = yes &&
4327 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4329 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4331 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4333 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4335 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4343 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4348 macro_version='2.4.2'
4349 macro_revision='1.3337'
4363 ltmain="$ac_aux_dir/ltmain.sh"
4365 # Make sure we can run config.sub.
4366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370 $as_echo_n "checking build system type... " >&6; }
4371 if ${ac_cv_build+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_build_alias=$build_alias
4375 test "x$ac_build_alias" = x &&
4376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4377 test "x$ac_build_alias" = x &&
4378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384 $as_echo "$ac_cv_build" >&6; }
4385 case $ac_cv_build in
4387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4390 ac_save_IFS=$IFS; IFS='-'
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404 $as_echo_n "checking host system type... " >&6; }
4405 if ${ac_cv_host+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 if test "x$host_alias" = x; then
4409 ac_cv_host=$ac_cv_build
4411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417 $as_echo "$ac_cv_host" >&6; }
4420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4423 ac_save_IFS=$IFS; IFS='-'
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4436 # Backslashify metacharacters that are still active within
4437 # double-quoted strings.
4438 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4440 # Same as above, but do not quote variable references.
4441 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4443 # Sed substitution to delay expansion of an escaped shell variable in a
4444 # double_quote_subst'ed string.
4445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4447 # Sed substitution to delay expansion of an escaped single quote.
4448 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4450 # Sed substitution to avoid accidental globbing in evaled expressions
4451 no_glob_subst='s/\*/\\\*/g'
4453 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4454 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4455 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4458 $as_echo_n "checking how to print strings... " >&6; }
4459 # Test print first, because it will be a builtin if present.
4460 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4461 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4463 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4466 # Use this function as a fallback that always works.
4467 func_fallback_echo ()
4469 eval 'cat <<_LTECHO_EOF
4473 ECHO='func_fallback_echo'
4476 # func_echo_all arg...
4477 # Invoke $ECHO with all args, space-separated.
4484 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4485 $as_echo "printf" >&6; } ;;
4486 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4487 $as_echo "print -r" >&6; } ;;
4488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4489 $as_echo "cat" >&6; } ;;
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4506 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4507 if ${ac_cv_path_SED+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4511 for ac_i in 1 2 3 4 5 6 7; do
4512 ac_script="$ac_script$as_nl$ac_script"
4514 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4515 { ac_script=; unset ac_script;}
4516 if test -z "$SED"; then
4517 ac_path_SED_found=false
4518 # Loop through the user's path and test for each of PROGNAME-LIST
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_prog in sed gsed; do
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4527 as_fn_executable_p "$ac_path_SED" || continue
4528 # Check for GNU ac_path_SED and select it if it is found.
4529 # Check for GNU $ac_path_SED
4530 case `"$ac_path_SED" --version 2>&1` in
4532 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4535 $as_echo_n 0123456789 >"conftest.in"
4538 cat "conftest.in" "conftest.in" >"conftest.tmp"
4539 mv "conftest.tmp" "conftest.in"
4540 cp "conftest.in" "conftest.nl"
4541 $as_echo '' >> "conftest.nl"
4542 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4544 as_fn_arith $ac_count + 1 && ac_count=$as_val
4545 if test $ac_count -gt ${ac_path_SED_max-0}; then
4546 # Best one so far, save it but keep looking for a better one
4547 ac_cv_path_SED="$ac_path_SED"
4548 ac_path_SED_max=$ac_count
4550 # 10*(2^10) chars as input seems more than enough
4551 test $ac_count -gt 10 && break
4553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556 $ac_path_SED_found && break 3
4561 if test -z "$ac_cv_path_SED"; then
4562 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4570 $as_echo "$ac_cv_path_SED" >&6; }
4571 SED="$ac_cv_path_SED"
4574 test -z "$SED" && SED=sed
4575 Xsed="$SED -e 1s/^X//"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4588 $as_echo_n "checking for fgrep... " >&6; }
4589 if ${ac_cv_path_FGREP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4593 then ac_cv_path_FGREP="$GREP -F"
4595 if test -z "$FGREP"; then
4596 ac_path_FGREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in fgrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4606 as_fn_executable_p "$ac_path_FGREP" || continue
4607 # Check for GNU ac_path_FGREP and select it if it is found.
4608 # Check for GNU $ac_path_FGREP
4609 case `"$ac_path_FGREP" --version 2>&1` in
4611 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'FGREP' >> "conftest.nl"
4621 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_FGREP="$ac_path_FGREP"
4627 ac_path_FGREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_FGREP_found && break 3
4640 if test -z "$ac_cv_path_FGREP"; then
4641 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_FGREP=$FGREP
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4650 $as_echo "$ac_cv_path_FGREP" >&6; }
4651 FGREP="$ac_cv_path_FGREP"
4654 test -z "$GREP" && GREP=grep
4674 # Check whether --with-gnu-ld was given.
4675 if test "${with_gnu_ld+set}" = set; then :
4676 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4682 if test "$GCC" = yes; then
4683 # Check if gcc -print-prog-name=ld gives a path.
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4685 $as_echo_n "checking for ld used by $CC... " >&6; }
4688 # gcc leaves a trailing carriage return which upsets mingw
4689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4694 # Accept absolute paths.
4696 re_direlt='/[^/][^/]*/\.\./'
4697 # Canonicalize the pathname of ld
4698 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4699 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4700 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4702 test -z "$LD" && LD="$ac_prog"
4705 # If it fails, then pretend we aren't using GCC.
4709 # If it is relative, then search for the first ld in PATH.
4713 elif test "$with_gnu_ld" = yes; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4715 $as_echo_n "checking for GNU ld... " >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4718 $as_echo_n "checking for non-GNU ld... " >&6; }
4720 if ${lt_cv_path_LD+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -z "$LD"; then
4724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4725 for ac_dir in $PATH; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4729 lt_cv_path_LD="$ac_dir/$ac_prog"
4730 # Check to see if the program is GNU ld. I'd rather use --version,
4731 # but apparently some variants of GNU ld only accept -v.
4732 # Break only if it was the GNU/non-GNU ld that we prefer.
4733 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4734 *GNU* | *'with BFD'*)
4735 test "$with_gnu_ld" != no && break
4738 test "$with_gnu_ld" != yes && break
4745 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4750 if test -n "$LD"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4752 $as_echo "$LD" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4757 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4759 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4760 if ${lt_cv_prog_gnu_ld+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4764 case `$LD -v 2>&1 </dev/null` in
4765 *GNU* | *'with BFD'*)
4766 lt_cv_prog_gnu_ld=yes
4769 lt_cv_prog_gnu_ld=no
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4774 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4775 with_gnu_ld=$lt_cv_prog_gnu_ld
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4786 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4787 if ${lt_cv_path_NM+:} false; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -n "$NM"; then
4791 # Let the user override the test.
4794 lt_nm_to_check="${ac_tool_prefix}nm"
4795 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4796 lt_nm_to_check="$lt_nm_to_check nm"
4798 for lt_tmp_nm in $lt_nm_to_check; do
4799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4802 test -z "$ac_dir" && ac_dir=.
4803 tmp_nm="$ac_dir/$lt_tmp_nm"
4804 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4805 # Check to see if the nm accepts a BSD-compat flag.
4806 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4807 # nm: unknown option "B" ignored
4808 # Tru64's nm complains that /dev/null is an invalid object file
4809 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4810 */dev/null* | *'Invalid file or object type'*)
4811 lt_cv_path_NM="$tmp_nm -B"
4815 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4817 lt_cv_path_NM="$tmp_nm -p"
4821 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4822 continue # so that we can try to find one that supports BSD flags
4831 : ${lt_cv_path_NM=no}
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4835 $as_echo "$lt_cv_path_NM" >&6; }
4836 if test "$lt_cv_path_NM" != "no"; then
4839 # Didn't find any BSD compatible name lister, look for dumpbin.
4840 if test -n "$DUMPBIN"; then :
4841 # Let the user override the test.
4843 if test -n "$ac_tool_prefix"; then
4844 for ac_prog in dumpbin "link -dump"
4846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_DUMPBIN+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$DUMPBIN"; then
4854 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 DUMPBIN=$ac_cv_prog_DUMPBIN
4874 if test -n "$DUMPBIN"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4876 $as_echo "$DUMPBIN" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 test -n "$DUMPBIN" && break
4886 if test -z "$DUMPBIN"; then
4887 ac_ct_DUMPBIN=$DUMPBIN
4888 for ac_prog in dumpbin "link -dump"
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 if test -n "$ac_ct_DUMPBIN"; then
4898 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4918 if test -n "$ac_ct_DUMPBIN"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4920 $as_echo "$ac_ct_DUMPBIN" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4927 test -n "$ac_ct_DUMPBIN" && break
4930 if test "x$ac_ct_DUMPBIN" = x; then
4933 case $cross_compiling:$ac_tool_warned in
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937 ac_tool_warned=yes ;;
4939 DUMPBIN=$ac_ct_DUMPBIN
4943 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4945 DUMPBIN="$DUMPBIN -symbols"
4953 if test "$DUMPBIN" != ":"; then
4957 test -z "$NM" && NM=nm
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4965 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4966 if ${lt_cv_nm_interface+:} false; then :
4967 $as_echo_n "(cached) " >&6
4969 lt_cv_nm_interface="BSD nm"
4970 echo "int some_variable = 0;" > conftest.$ac_ext
4971 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4972 (eval "$ac_compile" 2>conftest.err)
4973 cat conftest.err >&5
4974 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4975 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4976 cat conftest.err >&5
4977 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4978 cat conftest.out >&5
4979 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4980 lt_cv_nm_interface="MS dumpbin"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4985 $as_echo "$lt_cv_nm_interface" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4988 $as_echo_n "checking whether ln -s works... " >&6; }
4990 if test "$LN_S" = "ln -s"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992 $as_echo "yes" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4995 $as_echo "no, using $LN_S" >&6; }
4998 # find the maximum length of command line arguments
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5000 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5001 if ${lt_cv_sys_max_cmd_len+:} false; then :
5002 $as_echo_n "(cached) " >&6
5009 # On DJGPP, this test can blow up pretty badly due to problems in libc
5010 # (any single argument exceeding 2000 bytes causes a buffer overrun
5011 # during glob expansion). Even if it were fixed, the result of this
5012 # check would be larger than it should be.
5013 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5017 # Under GNU Hurd, this test is not required because there is
5018 # no limit to the length of command line arguments.
5019 # Libtool will interpret -1 as no limit whatsoever
5020 lt_cv_sys_max_cmd_len=-1;
5023 cygwin* | mingw* | cegcc*)
5024 # On Win9x/ME, this test blows up -- it succeeds, but takes
5025 # about 5 minutes as the teststring grows exponentially.
5026 # Worse, since 9x/ME are not pre-emptively multitasking,
5027 # you end up with a "frozen" computer, even though with patience
5028 # the test eventually succeeds (with a max line length of 256k).
5029 # Instead, let's just punt: use the minimum linelength reported by
5030 # all of the supported platforms: 8192 (on NT/2K/XP).
5031 lt_cv_sys_max_cmd_len=8192;
5035 # On MiNT this can take a long time and run out of memory.
5036 lt_cv_sys_max_cmd_len=8192;
5040 # On AmigaOS with pdksh, this test takes hours, literally.
5041 # So we just punt and use a minimum line length of 8192.
5042 lt_cv_sys_max_cmd_len=8192;
5045 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5046 # This has been around since 386BSD, at least. Likely further.
5047 if test -x /sbin/sysctl; then
5048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5049 elif test -x /usr/sbin/sysctl; then
5050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5052 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5054 # And add a safety zone
5055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5060 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5061 lt_cv_sys_max_cmd_len=196608
5065 # The test takes a long time on OS/2.
5066 lt_cv_sys_max_cmd_len=8192
5070 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5071 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5072 # nice to cause kernel panics so lets avoid the loop below.
5073 # First set a reasonable default.
5074 lt_cv_sys_max_cmd_len=16384
5076 if test -x /sbin/sysconfig; then
5077 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5078 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5083 lt_cv_sys_max_cmd_len=102400
5085 sysv5* | sco5v6* | sysv4.2uw2*)
5086 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5087 if test -n "$kargmax"; then
5088 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5090 lt_cv_sys_max_cmd_len=32768
5094 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5095 if test -n "$lt_cv_sys_max_cmd_len" && \
5096 test undefined != "$lt_cv_sys_max_cmd_len"; then
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5100 # Make teststring a little bigger before we do anything with it.
5101 # a 1K string should be a reasonable start.
5102 for i in 1 2 3 4 5 6 7 8 ; do
5103 teststring=$teststring$teststring
5105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5106 # If test is not a shell built-in, we'll probably end up computing a
5107 # maximum length that is only half of the actual maximum length, but
5109 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5110 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5111 test $i != 17 # 1/2 MB should be enough
5114 teststring=$teststring$teststring
5116 # Only check the string length outside the loop.
5117 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5119 # Add a significant safety factor because C++ compilers can tack on
5120 # massive amounts of additional arguments before passing them to the
5121 # linker. It appears as though 1/2 is a usable value.
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5129 if test -n $lt_cv_sys_max_cmd_len ; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5131 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5134 $as_echo "none" >&6; }
5136 max_cmd_len=$lt_cv_sys_max_cmd_len
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5148 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5149 # Try some XSI features
5152 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5154 && eval 'test $(( 1 + 1 )) -eq 2 \
5155 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5158 $as_echo "$xsi_shell" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5162 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5164 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5166 && lt_shell_append=yes
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5168 $as_echo "$lt_shell_append" >&6; }
5171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5181 # test EBCDIC or ASCII
5182 case `echo X|tr X '\101'` in
5183 A) # ASCII based system
5184 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5185 lt_SP2NL='tr \040 \012'
5186 lt_NL2SP='tr \015\012 \040\040'
5188 *) # EBCDIC based system
5189 lt_SP2NL='tr \100 \n'
5190 lt_NL2SP='tr \r\n \100\100'
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5203 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5204 if ${lt_cv_to_host_file_cmd+:} false; then :
5205 $as_echo_n "(cached) " >&6
5210 *-*-mingw* ) # actually msys
5211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5214 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5216 * ) # otherwise, assume *nix
5217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5223 *-*-mingw* ) # actually msys
5224 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5227 lt_cv_to_host_file_cmd=func_convert_file_noop
5229 * ) # otherwise, assume *nix
5230 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5234 * ) # unhandled hosts (and "normal" native builds)
5235 lt_cv_to_host_file_cmd=func_convert_file_noop
5241 to_host_file_cmd=$lt_cv_to_host_file_cmd
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5243 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5250 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5251 if ${lt_cv_to_tool_file_cmd+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 #assume ordinary cross tools, or native build.
5255 lt_cv_to_tool_file_cmd=func_convert_file_noop
5259 *-*-mingw* ) # actually msys
5260 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5270 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5277 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5278 if ${lt_cv_ld_reload_flag+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 lt_cv_ld_reload_flag='-r'
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5284 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5285 reload_flag=$lt_cv_ld_reload_flag
5286 case $reload_flag in
5288 *) reload_flag=" $reload_flag" ;;
5290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5292 cygwin* | mingw* | pw32* | cegcc*)
5293 if test "$GCC" != yes; then
5298 if test "$GCC" = yes; then
5299 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_OBJDUMP+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 if test -n "$OBJDUMP"; then
5323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 OBJDUMP=$ac_cv_prog_OBJDUMP
5343 if test -n "$OBJDUMP"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5345 $as_echo "$OBJDUMP" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5353 if test -z "$ac_cv_prog_OBJDUMP"; then
5354 ac_ct_OBJDUMP=$OBJDUMP
5355 # Extract the first word of "objdump", so it can be a program name with args.
5356 set dummy objdump; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$ac_ct_OBJDUMP"; then
5363 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5383 if test -n "$ac_ct_OBJDUMP"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5385 $as_echo "$ac_ct_OBJDUMP" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5391 if test "x$ac_ct_OBJDUMP" = x; then
5394 case $cross_compiling:$ac_tool_warned in
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5400 OBJDUMP=$ac_ct_OBJDUMP
5403 OBJDUMP="$ac_cv_prog_OBJDUMP"
5406 test -z "$OBJDUMP" && OBJDUMP=objdump
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5417 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5418 if ${lt_cv_deplibs_check_method+:} false; then :
5419 $as_echo_n "(cached) " >&6
5421 lt_cv_file_magic_cmd='$MAGIC_CMD'
5422 lt_cv_file_magic_test_file=
5423 lt_cv_deplibs_check_method='unknown'
5424 # Need to set the preceding variable on all platforms that support
5425 # interlibrary dependencies.
5426 # 'none' -- dependencies not supported.
5427 # `unknown' -- same as none, but documents that we really don't know.
5428 # 'pass_all' -- all dependencies passed with no checks.
5429 # 'test_compile' -- check by making test program.
5430 # 'file_magic [[regex]]' -- check by looking for files in library path
5431 # which responds to the $file_magic_cmd with a given extended regex.
5432 # If you have `file' or equivalent on your system and you're not sure
5433 # whether `pass_all' will *always* work, you probably want this one.
5437 lt_cv_deplibs_check_method=pass_all
5441 lt_cv_deplibs_check_method=pass_all
5445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5446 lt_cv_file_magic_cmd='/usr/bin/file -L'
5447 lt_cv_file_magic_test_file=/shlib/libc.so
5451 # func_win32_libid is a shell function defined in ltmain.sh
5452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5453 lt_cv_file_magic_cmd='func_win32_libid'
5457 # Base MSYS/MinGW do not provide the 'file' command needed by
5458 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5459 # unless we find 'file', for example because we are cross-compiling.
5460 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5461 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463 lt_cv_file_magic_cmd='func_win32_libid'
5465 # Keep this pattern in sync with the one in func_win32_libid.
5466 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5467 lt_cv_file_magic_cmd='$OBJDUMP -f'
5472 # use the weaker test based on 'objdump'. See mingw*.
5473 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5474 lt_cv_file_magic_cmd='$OBJDUMP -f'
5477 darwin* | rhapsody*)
5478 lt_cv_deplibs_check_method=pass_all
5481 freebsd* | dragonfly*)
5482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5485 # Not sure whether the presence of OpenBSD here was a mistake.
5486 # Let's accept both of them until this is cleared up.
5487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5488 lt_cv_file_magic_cmd=/usr/bin/file
5489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5493 lt_cv_deplibs_check_method=pass_all
5498 lt_cv_deplibs_check_method=pass_all
5501 hpux10.20* | hpux11*)
5502 lt_cv_file_magic_cmd=/usr/bin/file
5505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5506 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5509 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]'
5510 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5514 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5520 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5524 irix5* | irix6* | nonstopux*)
5526 *-32|*"-32 ") libmagic=32-bit;;
5527 *-n32|*"-n32 ") libmagic=N32;;
5528 *-64|*"-64 ") libmagic=64-bit;;
5529 *) libmagic=never-match;;
5531 lt_cv_deplibs_check_method=pass_all
5534 # This must be glibc/ELF.
5535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5536 lt_cv_deplibs_check_method=pass_all
5539 netbsd* | netbsdelf*-gnu)
5540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5549 lt_cv_file_magic_cmd=/usr/bin/file
5550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5554 lt_cv_deplibs_check_method=pass_all
5558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5565 osf3* | osf4* | osf5*)
5566 lt_cv_deplibs_check_method=pass_all
5570 lt_cv_deplibs_check_method=pass_all
5574 lt_cv_deplibs_check_method=pass_all
5577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5578 lt_cv_deplibs_check_method=pass_all
5582 case $host_vendor in
5584 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]'
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5588 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_file_magic_cmd='/bin/file'
5592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5595 lt_cv_file_magic_cmd='/bin/file'
5596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5597 lt_cv_file_magic_test_file=/lib/libc.so
5600 lt_cv_deplibs_check_method=pass_all
5603 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_deplibs_check_method=pass_all
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5615 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5619 if test "$build" = "$host"; then
5622 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5625 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5631 file_magic_cmd=$lt_cv_file_magic_cmd
5632 deplibs_check_method=$lt_cv_deplibs_check_method
5633 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5656 if test -n "$ac_tool_prefix"; then
5657 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5658 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 $as_echo_n "checking for $ac_word... " >&6; }
5661 if ${ac_cv_prog_DLLTOOL+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 if test -n "$DLLTOOL"; then
5665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 DLLTOOL=$ac_cv_prog_DLLTOOL
5685 if test -n "$DLLTOOL"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5687 $as_echo "$DLLTOOL" >&6; }
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5695 if test -z "$ac_cv_prog_DLLTOOL"; then
5696 ac_ct_DLLTOOL=$DLLTOOL
5697 # Extract the first word of "dlltool", so it can be a program name with args.
5698 set dummy dlltool; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$ac_ct_DLLTOOL"; then
5705 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5725 if test -n "$ac_ct_DLLTOOL"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5727 $as_echo "$ac_ct_DLLTOOL" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5733 if test "x$ac_ct_DLLTOOL" = x; then
5736 case $cross_compiling:$ac_tool_warned in
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5740 ac_tool_warned=yes ;;
5742 DLLTOOL=$ac_ct_DLLTOOL
5745 DLLTOOL="$ac_cv_prog_DLLTOOL"
5748 test -z "$DLLTOOL" && DLLTOOL=dlltool
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5760 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5761 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5762 $as_echo_n "(cached) " >&6
5764 lt_cv_sharedlib_from_linklib_cmd='unknown'
5767 cygwin* | mingw* | pw32* | cegcc*)
5768 # two different shell functions defined in ltmain.sh
5769 # decide which to use based on capabilities of $DLLTOOL
5770 case `$DLLTOOL --help 2>&1` in
5771 *--identify-strict*)
5772 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5775 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5780 # fallback: assume linklib IS sharedlib
5781 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5787 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5788 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5789 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5797 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_AR+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$AR"; then
5808 ac_cv_prog_AR="$AR" # Let the user override the test.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 if test -n "$AR"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5830 $as_echo "$AR" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5837 test -n "$AR" && break
5840 if test -z "$AR"; then
5844 # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -n "$ac_ct_AR"; then
5852 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_AR="$ac_prog"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5872 if test -n "$ac_ct_AR"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5874 $as_echo "$ac_ct_AR" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5881 test -n "$ac_ct_AR" && break
5884 if test "x$ac_ct_AR" = x; then
5887 case $cross_compiling:$ac_tool_warned in
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5911 $as_echo_n "checking for archiver @FILE support... " >&6; }
5912 if ${lt_cv_ar_at_file+:} false; then :
5913 $as_echo_n "(cached) " >&6
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 echo conftest.$ac_objext > conftest.lst
5929 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5931 (eval $lt_ar_try) 2>&5
5933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5934 test $ac_status = 0; }
5935 if test "$ac_status" -eq 0; then
5936 # Ensure the archiver fails upon bogus file names.
5937 rm -f conftest.$ac_objext libconftest.a
5938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5939 (eval $lt_ar_try) 2>&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }
5943 if test "$ac_status" -ne 0; then
5947 rm -f conftest.* libconftest.a
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5954 $as_echo "$lt_cv_ar_at_file" >&6; }
5956 if test "x$lt_cv_ar_at_file" = xno; then
5959 archiver_list_spec=$lt_cv_ar_at_file
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}strip; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_STRIP+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$STRIP"; then
5977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 STRIP=$ac_cv_prog_STRIP
5997 if test -n "$STRIP"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5999 $as_echo "$STRIP" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6007 if test -z "$ac_cv_prog_STRIP"; then
6009 # Extract the first word of "strip", so it can be a program name with args.
6010 set dummy strip; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$ac_ct_STRIP"; then
6017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_ac_ct_STRIP="strip"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6037 if test -n "$ac_ct_STRIP"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6039 $as_echo "$ac_ct_STRIP" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6045 if test "x$ac_ct_STRIP" = x; then
6048 case $cross_compiling:$ac_tool_warned in
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052 ac_tool_warned=yes ;;
6057 STRIP="$ac_cv_prog_STRIP"
6060 test -z "$STRIP" && STRIP=:
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_RANLIB+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6098 $as_echo "$RANLIB" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_ac_ct_RANLIB="ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6138 $as_echo "$ac_ct_RANLIB" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6144 if test "x$ac_ct_RANLIB" = x; then
6147 case $cross_compiling:$ac_tool_warned in
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6153 RANLIB=$ac_ct_RANLIB
6156 RANLIB="$ac_cv_prog_RANLIB"
6159 test -z "$RANLIB" && RANLIB=:
6166 # Determine commands to create old-style static archives.
6167 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6168 old_postinstall_cmds='chmod 644 $oldlib'
6169 old_postuninstall_cmds=
6171 if test -n "$RANLIB"; then
6174 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6180 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6185 lock_old_archive_extraction=yes ;;
6187 lock_old_archive_extraction=no ;;
6210 for ac_prog in gawk mawk nawk awk
6212 # Extract the first word of "$ac_prog", so it can be a program name with args.
6213 set dummy $ac_prog; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_AWK+:} false; then :
6217 $as_echo_n "(cached) " >&6
6219 if test -n "$AWK"; then
6220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_AWK="$ac_prog"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 if test -n "$AWK"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6242 $as_echo "$AWK" >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6249 test -n "$AWK" && break
6270 # If no C compiler was specified, use CC.
6273 # If no C compiler flags were specified, use CFLAGS.
6274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276 # Allow CC to be a program name with arguments.
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached) " >&6
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296 # Define system-specific variables.
6301 cygwin* | mingw* | pw32* | cegcc*)
6302 symcode='[ABCDGISTW]'
6305 if test "$host_cpu" = ia64; then
6306 symcode='[ABCDEGRST]'
6310 symcode='[BCDEGRST]'
6313 symcode='[BCDEGQRST]'
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6338 # Transform an extracted symbol line into a proper C declaration.
6339 # Some systems (esp. on ia64) link data and code symbols differently,
6340 # so use this general approach.
6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6343 # Transform an extracted symbol line into symbol name and symbol address
6344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6345 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6347 # Handle CRLF in mingw tool chain
6351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6355 # Try without a prefix underscore, then with it.
6356 for ac_symprfx in "" "_"; do
6358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6359 symxfrm="\\1 $ac_symprfx\\2 \\2"
6361 # Write the raw and C identifiers.
6362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6363 # Fake it for dumpbin and say T for any non-static function
6364 # and D for any global variable.
6365 # Also find C++ and __fastcall symbols from MSVC++,
6366 # which start with @ or ?.
6367 lt_cv_sys_global_symbol_pipe="$AWK '"\
6368 " {last_section=section; section=\$ 3};"\
6369 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6370 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6371 " \$ 0!~/External *\|/{next};"\
6372 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6373 " {if(hide[section]) next};"\
6374 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6375 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6376 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6377 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6378 " ' prfx=^$ac_symprfx"
6380 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6382 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6384 # Check to see that the pipe works correctly.
6388 cat > conftest.$ac_ext <<_LT_EOF
6393 void nm_test_func(void);
6394 void nm_test_func(void){}
6398 int main(){nm_test_var='a';nm_test_func();return(0);}
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6402 (eval $ac_compile) 2>&5
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; }; then
6406 # Now try to grab the symbols.
6408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6409 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; } && test -s "$nlist"; then
6413 # Try sorting and uniquifying the output.
6414 if sort "$nlist" | uniq > "$nlist"T; then
6415 mv -f "$nlist"T "$nlist"
6420 # Make sure that we snagged all the symbols we need.
6421 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6422 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6423 cat <<_LT_EOF > conftest.$ac_ext
6424 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6425 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6426 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6427 relocations are performed -- see ld's documentation on pseudo-relocs. */
6428 # define LT_DLSYM_CONST
6429 #elif defined(__osf__)
6430 /* This system does not cope well with relocations in const data. */
6431 # define LT_DLSYM_CONST
6433 # define LT_DLSYM_CONST const
6441 # Now generate the symbol file.
6442 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6444 cat <<_LT_EOF >> conftest.$ac_ext
6446 /* The mapping between symbol names and symbols. */
6447 LT_DLSYM_CONST struct {
6451 lt__PROGRAM__LTX_preloaded_symbols[] =
6453 { "@PROGRAM@", (void *) 0 },
6455 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6456 cat <<\_LT_EOF >> conftest.$ac_ext
6460 /* This works around a problem in FreeBSD linker */
6461 #ifdef FREEBSD_WORKAROUND
6462 static const void *lt_preloaded_setup() {
6463 return lt__PROGRAM__LTX_preloaded_symbols;
6471 # Now try linking the two files.
6472 mv conftest.$ac_objext conftstm.$ac_objext
6473 lt_globsym_save_LIBS=$LIBS
6474 lt_globsym_save_CFLAGS=$CFLAGS
6475 LIBS="conftstm.$ac_objext"
6476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6478 (eval $ac_link) 2>&5
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6484 LIBS=$lt_globsym_save_LIBS
6485 CFLAGS=$lt_globsym_save_CFLAGS
6487 echo "cannot find nm_test_func in $nlist" >&5
6490 echo "cannot find nm_test_var in $nlist" >&5
6493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6496 echo "$progname: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 rm -rf conftest* conftst*
6501 # Do not use the global_symbol_pipe unless it works.
6502 if test "$pipe_works" = yes; then
6505 lt_cv_sys_global_symbol_pipe=
6511 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6512 lt_cv_sys_global_symbol_to_cdecl=
6514 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6516 $as_echo "failed" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6519 $as_echo "ok" >&6; }
6522 # Response file support.
6523 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6524 nm_file_list_spec='@'
6525 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6526 nm_file_list_spec='@'
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6556 $as_echo_n "checking for sysroot... " >&6; }
6558 # Check whether --with-sysroot was given.
6559 if test "${with_sysroot+set}" = set; then :
6560 withval=$with_sysroot;
6567 case ${with_sysroot} in #(
6569 if test "$GCC" = yes; then
6570 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6574 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6580 $as_echo "${with_sysroot}" >&6; }
6581 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6586 $as_echo "${lt_sysroot:-no}" >&6; }
6592 # Check whether --enable-libtool-lock was given.
6593 if test "${enable_libtool_lock+set}" = set; then :
6594 enableval=$enable_libtool_lock;
6597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6599 # Some flags need to be propagated to the compiler or linker for good
6603 # Find out which ABI we are using.
6604 echo 'int i;' > conftest.$ac_ext
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606 (eval $ac_compile) 2>&5
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 case `/usr/bin/file conftest.$ac_objext` in
6622 # Find out which ABI we are using.
6623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 if test "$lt_cv_prog_gnu_ld" = yes; then
6630 case `/usr/bin/file conftest.$ac_objext` in
6632 LD="${LD-ld} -melf32bsmip"
6635 LD="${LD-ld} -melf32bmipn32"
6638 LD="${LD-ld} -melf64bmip"
6642 case `/usr/bin/file conftest.$ac_objext` in
6658 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6659 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6660 # Find out which ABI we are using.
6661 echo 'int i;' > conftest.$ac_ext
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 case `/usr/bin/file conftest.o` in
6670 x86_64-*kfreebsd*-gnu)
6671 LD="${LD-ld} -m elf_i386_fbsd"
6674 case `/usr/bin/file conftest.o` in
6676 LD="${LD-ld} -m elf32_x86_64"
6679 LD="${LD-ld} -m elf_i386"
6684 LD="${LD-ld} -m elf32lppclinux"
6687 LD="${LD-ld} -m elf32ppclinux"
6690 LD="${LD-ld} -m elf_s390"
6693 LD="${LD-ld} -m elf32_sparc"
6699 x86_64-*kfreebsd*-gnu)
6700 LD="${LD-ld} -m elf_x86_64_fbsd"
6703 LD="${LD-ld} -m elf_x86_64"
6706 LD="${LD-ld} -m elf64lppc"
6709 LD="${LD-ld} -m elf64ppc"
6711 s390*-*linux*|s390*-*tpf*)
6712 LD="${LD-ld} -m elf64_s390"
6715 LD="${LD-ld} -m elf64_sparc"
6725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6726 SAVE_CFLAGS="$CFLAGS"
6727 CFLAGS="$CFLAGS -belf"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6729 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6730 if ${lt_cv_cc_needs_belf+:} false; then :
6731 $as_echo_n "(cached) " >&6
6734 ac_cpp='$CPP $CPPFLAGS'
6735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6750 if ac_fn_c_try_link "$LINENO"; then :
6751 lt_cv_cc_needs_belf=yes
6753 lt_cv_cc_needs_belf=no
6755 rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6765 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6766 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6767 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6768 CFLAGS="$SAVE_CFLAGS"
6772 # Find out which ABI we are using.
6773 echo 'int i;' > conftest.$ac_ext
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775 (eval $ac_compile) 2>&5
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
6779 case `/usr/bin/file conftest.o` in
6781 case $lt_cv_prog_gnu_ld in
6785 LD="${LD-ld} -m elf_x86_64"
6788 LD="${LD-ld} -m elf64_sparc"
6791 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6792 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6797 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6809 need_locks="$enable_libtool_lock"
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}mt; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 if test -n "$MANIFEST_TOOL"; then
6820 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6840 if test -n "$MANIFEST_TOOL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6842 $as_echo "$MANIFEST_TOOL" >&6; }
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6850 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6851 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6852 # Extract the first word of "mt", so it can be a program name with args.
6853 set dummy mt; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 if test -n "$ac_ct_MANIFEST_TOOL"; then
6860 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6880 if test -n "$ac_ct_MANIFEST_TOOL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6882 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6888 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6891 case $cross_compiling:$ac_tool_warned in
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6897 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6900 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6903 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6905 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6906 if ${lt_cv_path_mainfest_tool+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 lt_cv_path_mainfest_tool=no
6910 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6911 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6912 cat conftest.err >&5
6913 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6914 lt_cv_path_mainfest_tool=yes
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6919 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6920 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6930 rhapsody* | darwin*)
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6937 $as_echo_n "(cached) " >&6
6939 if test -n "$DSYMUTIL"; then
6940 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6960 if test -n "$DSYMUTIL"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6962 $as_echo "$DSYMUTIL" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6970 if test -z "$ac_cv_prog_DSYMUTIL"; then
6971 ac_ct_DSYMUTIL=$DSYMUTIL
6972 # Extract the first word of "dsymutil", so it can be a program name with args.
6973 set dummy dsymutil; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6977 $as_echo_n "(cached) " >&6
6979 if test -n "$ac_ct_DSYMUTIL"; then
6980 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7000 if test -n "$ac_ct_DSYMUTIL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7002 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7008 if test "x$ac_ct_DSYMUTIL" = x; then
7011 case $cross_compiling:$ac_tool_warned in
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7017 DSYMUTIL=$ac_ct_DSYMUTIL
7020 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7023 if test -n "$ac_tool_prefix"; then
7024 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7025 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_NMEDIT+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 if test -n "$NMEDIT"; then
7032 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 NMEDIT=$ac_cv_prog_NMEDIT
7052 if test -n "$NMEDIT"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7054 $as_echo "$NMEDIT" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7062 if test -z "$ac_cv_prog_NMEDIT"; then
7063 ac_ct_NMEDIT=$NMEDIT
7064 # Extract the first word of "nmedit", so it can be a program name with args.
7065 set dummy nmedit; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 if test -n "$ac_ct_NMEDIT"; then
7072 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7092 if test -n "$ac_ct_NMEDIT"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7094 $as_echo "$ac_ct_NMEDIT" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7100 if test "x$ac_ct_NMEDIT" = x; then
7103 case $cross_compiling:$ac_tool_warned in
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107 ac_tool_warned=yes ;;
7109 NMEDIT=$ac_ct_NMEDIT
7112 NMEDIT="$ac_cv_prog_NMEDIT"
7115 if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_LIPO+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 if test -n "$LIPO"; then
7124 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 LIPO=$ac_cv_prog_LIPO
7144 if test -n "$LIPO"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7146 $as_echo "$LIPO" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7154 if test -z "$ac_cv_prog_LIPO"; then
7156 # Extract the first word of "lipo", so it can be a program name with args.
7157 set dummy lipo; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 if test -n "$ac_ct_LIPO"; then
7164 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_LIPO="lipo"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7184 if test -n "$ac_ct_LIPO"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7186 $as_echo "$ac_ct_LIPO" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7192 if test "x$ac_ct_LIPO" = x; then
7195 case $cross_compiling:$ac_tool_warned in
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199 ac_tool_warned=yes ;;
7204 LIPO="$ac_cv_prog_LIPO"
7207 if test -n "$ac_tool_prefix"; then
7208 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7209 set dummy ${ac_tool_prefix}otool; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_OTOOL+:} false; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$OTOOL"; then
7216 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 OTOOL=$ac_cv_prog_OTOOL
7236 if test -n "$OTOOL"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7238 $as_echo "$OTOOL" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7246 if test -z "$ac_cv_prog_OTOOL"; then
7248 # Extract the first word of "otool", so it can be a program name with args.
7249 set dummy otool; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$ac_ct_OTOOL"; then
7256 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_ac_ct_OTOOL="otool"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7276 if test -n "$ac_ct_OTOOL"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7278 $as_echo "$ac_ct_OTOOL" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$ac_ct_OTOOL" = x; then
7287 case $cross_compiling:$ac_tool_warned in
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 ac_tool_warned=yes ;;
7296 OTOOL="$ac_cv_prog_OTOOL"
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_OTOOL64+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$OTOOL64"; then
7308 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 OTOOL64=$ac_cv_prog_OTOOL64
7328 if test -n "$OTOOL64"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7330 $as_echo "$OTOOL64" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_OTOOL64"; then
7339 ac_ct_OTOOL64=$OTOOL64
7340 # Extract the first word of "otool64", so it can be a program name with args.
7341 set dummy otool64; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_OTOOL64"; then
7348 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_OTOOL64="otool64"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7368 if test -n "$ac_ct_OTOOL64"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7370 $as_echo "$ac_ct_OTOOL64" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_OTOOL64" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7385 OTOOL64=$ac_ct_OTOOL64
7388 OTOOL64="$ac_cv_prog_OTOOL64"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7418 $as_echo_n "checking for -single_module linker flag... " >&6; }
7419 if ${lt_cv_apple_cc_single_mod+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 lt_cv_apple_cc_single_mod=no
7423 if test -z "${LT_MULTI_MODULE}"; then
7424 # By default we will add the -single_module flag. You can override
7425 # by either setting the environment variable LT_MULTI_MODULE
7426 # non-empty at configure time, or by adding -multi_module to the
7428 rm -rf libconftest.dylib*
7429 echo "int foo(void){return 1;}" > conftest.c
7430 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7431 -dynamiclib -Wl,-single_module conftest.c" >&5
7432 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7433 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7435 # If there is a non-empty error log, and "single_module"
7436 # appears in it, assume the flag caused a linker warning
7437 if test -s conftest.err && $GREP single_module conftest.err; then
7438 cat conftest.err >&5
7439 # Otherwise, if the output was created with a 0 exit code from
7440 # the compiler, it worked.
7441 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7442 lt_cv_apple_cc_single_mod=yes
7444 cat conftest.err >&5
7446 rm -rf libconftest.dylib*
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7451 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7454 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7455 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 lt_cv_ld_exported_symbols_list=no
7459 save_LDFLAGS=$LDFLAGS
7460 echo "_main" > conftest.sym
7461 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 lt_cv_ld_exported_symbols_list=yes
7476 lt_cv_ld_exported_symbols_list=no
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 LDFLAGS="$save_LDFLAGS"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7484 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7487 $as_echo_n "checking for -force_load linker flag... " >&6; }
7488 if ${lt_cv_ld_force_load+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 lt_cv_ld_force_load=no
7492 cat > conftest.c << _LT_EOF
7493 int forced_loaded() { return 2;}
7495 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7496 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7497 echo "$AR cru libconftest.a conftest.o" >&5
7498 $AR cru libconftest.a conftest.o 2>&5
7499 echo "$RANLIB libconftest.a" >&5
7500 $RANLIB libconftest.a 2>&5
7501 cat > conftest.c << _LT_EOF
7502 int main() { return 0;}
7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7507 if test -s conftest.err && $GREP force_load conftest.err; then
7508 cat conftest.err >&5
7509 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7510 lt_cv_ld_force_load=yes
7512 cat conftest.err >&5
7514 rm -f conftest.err libconftest.a conftest conftest.c
7515 rm -rf conftest.dSYM
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7519 $as_echo "$lt_cv_ld_force_load" >&6; }
7521 rhapsody* | darwin1.[012])
7522 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7524 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7525 darwin*) # darwin 5.x on
7526 # if running on 10.5 or later, the deployment target defaults
7527 # to the OS version, if on x86, and 10.4, the deployment
7528 # target defaults to 10.4. Don't you love it?
7529 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7530 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7531 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7533 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7535 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7539 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7540 _lt_dar_single_mod='$single_module'
7542 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7543 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7545 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7547 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7548 _lt_dsymutil='~$DSYMUTIL $lib || :'
7555 for ac_header in dlfcn.h
7557 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7559 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7560 cat >>confdefs.h <<_ACEOF
7561 #define HAVE_DLFCN_H 1
7582 # Check whether --enable-shared was given.
7583 if test "${enable_shared+set}" = set; then :
7584 enableval=$enable_shared; p=${PACKAGE-default}
7586 yes) enable_shared=yes ;;
7587 no) enable_shared=no ;;
7590 # Look at the argument we got. We use all the common list separators.
7591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7592 for pkg in $enableval; do
7594 if test "X$pkg" = "X$p"; then
7613 # Check whether --enable-static was given.
7614 if test "${enable_static+set}" = set; then :
7615 enableval=$enable_static; p=${PACKAGE-default}
7617 yes) enable_static=yes ;;
7618 no) enable_static=no ;;
7621 # Look at the argument we got. We use all the common list separators.
7622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7623 for pkg in $enableval; do
7625 if test "X$pkg" = "X$p"; then
7645 # Check whether --with-pic was given.
7646 if test "${with_pic+set}" = set; then :
7647 withval=$with_pic; lt_p=${PACKAGE-default}
7649 yes|no) pic_mode=$withval ;;
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654 for lt_pkg in $withval; do
7656 if test "X$lt_pkg" = "X$lt_p"; then
7668 test -z "$pic_mode" && pic_mode=default
7676 # Check whether --enable-fast-install was given.
7677 if test "${enable_fast_install+set}" = set; then :
7678 enableval=$enable_fast_install; p=${PACKAGE-default}
7680 yes) enable_fast_install=yes ;;
7681 no) enable_fast_install=no ;;
7683 enable_fast_install=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7688 if test "X$pkg" = "X$p"; then
7689 enable_fast_install=yes
7696 enable_fast_install=yes
7709 # This can be used to rebuild libtool when needed
7710 LIBTOOL_DEPS="$ltmain"
7712 # Always use our own libtool.
7713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7744 test -z "$LN_S" && LN_S="ln -s"
7759 if test -n "${ZSH_VERSION+set}" ; then
7760 setopt NO_GLOB_SUBST
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7764 $as_echo_n "checking for objdir... " >&6; }
7765 if ${lt_cv_objdir+:} false; then :
7766 $as_echo_n "(cached) " >&6
7768 rm -f .libs 2>/dev/null
7769 mkdir .libs 2>/dev/null
7770 if test -d .libs; then
7773 # MS-DOS does not allow filenames that begin with a dot.
7776 rmdir .libs 2>/dev/null
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7779 $as_echo "$lt_cv_objdir" >&6; }
7780 objdir=$lt_cv_objdir
7786 cat >>confdefs.h <<_ACEOF
7787 #define LT_OBJDIR "$lt_cv_objdir/"
7795 # AIX sometimes has problems with the GCC collect2 program. For some
7796 # reason, if we set the COLLECT_NAMES environment variable, the problems
7797 # vanish in a puff of smoke.
7798 if test "X${COLLECT_NAMES+set}" != Xset; then
7800 export COLLECT_NAMES
7807 can_build_shared=yes
7809 # All known linkers require a `.a' archive for static linking (except MSVC,
7810 # which needs '.lib').
7813 with_gnu_ld="$lt_cv_prog_gnu_ld"
7816 old_CFLAGS="$CFLAGS"
7818 # Set sane defaults for various variables
7819 test -z "$CC" && CC=cc
7820 test -z "$LTCC" && LTCC=$CC
7821 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7822 test -z "$LD" && LD=ld
7823 test -z "$ac_objext" && ac_objext=o
7825 for cc_temp in $compiler""; do
7827 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7828 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7833 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7836 # Only perform the check for file, if the check method requires it
7837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7838 case $deplibs_check_method in
7840 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7842 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7843 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7844 $as_echo_n "(cached) " >&6
7848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7851 lt_save_MAGIC_CMD="$MAGIC_CMD"
7852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7854 for ac_dir in $ac_dummy; do
7856 test -z "$ac_dir" && ac_dir=.
7857 if test -f $ac_dir/${ac_tool_prefix}file; then
7858 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7859 if test -n "$file_magic_test_file"; then
7860 case $deplibs_check_method in
7862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7865 $EGREP "$file_magic_regex" > /dev/null; then
7870 *** Warning: the command libtool uses to detect shared libraries,
7871 *** $file_magic_cmd, produces output that libtool cannot recognize.
7872 *** The result is that libtool may fail to recognize shared libraries
7873 *** as such. This will affect the creation of libtool libraries that
7874 *** depend on shared libraries, but programs linked with such libtool
7875 *** libraries will work regardless of this problem. Nevertheless, you
7876 *** may want to report the problem to your system manager and/or to
7877 *** bug-libtool@gnu.org
7887 MAGIC_CMD="$lt_save_MAGIC_CMD"
7892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7893 if test -n "$MAGIC_CMD"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7895 $as_echo "$MAGIC_CMD" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7905 if test -z "$lt_cv_path_MAGIC_CMD"; then
7906 if test -n "$ac_tool_prefix"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7908 $as_echo_n "checking for file... " >&6; }
7909 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7910 $as_echo_n "(cached) " >&6
7914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917 lt_save_MAGIC_CMD="$MAGIC_CMD"
7918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7919 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7920 for ac_dir in $ac_dummy; do
7922 test -z "$ac_dir" && ac_dir=.
7923 if test -f $ac_dir/file; then
7924 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7925 if test -n "$file_magic_test_file"; then
7926 case $deplibs_check_method in
7928 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7930 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7931 $EGREP "$file_magic_regex" > /dev/null; then
7936 *** Warning: the command libtool uses to detect shared libraries,
7937 *** $file_magic_cmd, produces output that libtool cannot recognize.
7938 *** The result is that libtool may fail to recognize shared libraries
7939 *** as such. This will affect the creation of libtool libraries that
7940 *** depend on shared libraries, but programs linked with such libtool
7941 *** libraries will work regardless of this problem. Nevertheless, you
7942 *** may want to report the problem to your system manager and/or to
7943 *** bug-libtool@gnu.org
7953 MAGIC_CMD="$lt_save_MAGIC_CMD"
7958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959 if test -n "$MAGIC_CMD"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7961 $as_echo "$MAGIC_CMD" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7977 # Use C for the default configuration in the libtool script
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987 # Source file extension for C test sources.
7990 # Object file extension for compiled C test sources.
7994 # Code to be used in simple compile tests
7995 lt_simple_compile_test_code="int some_variable = 0;"
7997 # Code to be used in simple link tests
7998 lt_simple_link_test_code='int main(){return(0);}'
8006 # If no C compiler was specified, use CC.
8009 # If no C compiler flags were specified, use CFLAGS.
8010 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8012 # Allow CC to be a program name with arguments.
8015 # Save the default compiler, since it gets overwritten when the other
8016 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8017 compiler_DEFAULT=$CC
8019 # save warnings/boilerplate of simple test code
8020 ac_outfile=conftest.$ac_objext
8021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8023 _lt_compiler_boilerplate=`cat conftest.err`
8026 ac_outfile=conftest.$ac_objext
8027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8029 _lt_linker_boilerplate=`cat conftest.err`
8034 ## There is no encapsulation within the following macros, do not change
8035 ## the running order or otherwise move them around unless you know exactly
8036 ## what you are doing...
8037 if test -n "$compiler"; then
8039 lt_prog_compiler_no_builtin_flag=
8041 if test "$GCC" = yes; then
8042 case $cc_basename in
8044 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8046 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8050 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8051 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 lt_cv_prog_compiler_rtti_exceptions=no
8055 ac_outfile=conftest.$ac_objext
8056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8057 lt_compiler_flag="-fno-rtti -fno-exceptions"
8058 # Insert the option either (1) after the last *FLAGS variable, or
8059 # (2) before a word containing "conftest.", or (3) at the end.
8060 # Note that $ac_compile itself does not contain backslashes and begins
8061 # with a dollar sign (not a hyphen), so the echo should work correctly.
8062 # The option is referenced via a variable to avoid confusing sed.
8063 lt_compile=`echo "$ac_compile" | $SED \
8064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8066 -e 's:$: $lt_compiler_flag:'`
8067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8068 (eval "$lt_compile" 2>conftest.err)
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 if (exit $ac_status) && test -s "$ac_outfile"; then
8073 # The compiler can only warn and ignore the option if not recognized
8074 # So say no if there are warnings other than the usual output.
8075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8077 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8078 lt_cv_prog_compiler_rtti_exceptions=yes
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8085 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8087 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8088 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8100 lt_prog_compiler_wl=
8101 lt_prog_compiler_pic=
8102 lt_prog_compiler_static=
8105 if test "$GCC" = yes; then
8106 lt_prog_compiler_wl='-Wl,'
8107 lt_prog_compiler_static='-static'
8111 # All AIX code is PIC.
8112 if test "$host_cpu" = ia64; then
8113 # AIX 5 now supports IA64 processor
8114 lt_prog_compiler_static='-Bstatic'
8121 # see comment about AmigaOS4 .so support
8122 lt_prog_compiler_pic='-fPIC'
8125 # FIXME: we need at least 68020 code to build shared libraries, but
8126 # adding the `-m68020' flag to GCC prevents building anything better,
8128 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8133 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8134 # PIC is the default for these OSes.
8137 mingw* | cygwin* | pw32* | os2* | cegcc*)
8138 # This hack is so that the source file can tell whether it is being
8139 # built for inclusion in a dll (and should export symbols for example).
8140 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8141 # (--disable-auto-import) libraries
8142 lt_prog_compiler_pic='-DDLL_EXPORT'
8145 darwin* | rhapsody*)
8146 # PIC is the default on this platform
8147 # Common symbols not allowed in MH_DYLIB files
8148 lt_prog_compiler_pic='-fno-common'
8152 # PIC is the default for Haiku.
8153 # The "-static" flag exists, but is broken.
8154 lt_prog_compiler_static=
8158 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8159 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8160 # sets the default TLS model and affects inlining.
8166 lt_prog_compiler_pic='-fPIC'
8172 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8173 # Instead, we relocate shared libraries at runtime.
8177 # Just because we use GCC doesn't mean we suddenly get shared libraries
8178 # on systems that don't support them.
8179 lt_prog_compiler_can_build_shared=no
8184 # QNX uses GNU C++, but need to define -shared option too, otherwise
8186 lt_prog_compiler_pic='-fPIC -shared'
8190 if test -d /usr/nec; then
8191 lt_prog_compiler_pic=-Kconform_pic
8196 lt_prog_compiler_pic='-fPIC'
8200 case $cc_basename in
8201 nvcc*) # Cuda Compiler Driver 2.2
8202 lt_prog_compiler_wl='-Xlinker '
8203 if test -n "$lt_prog_compiler_pic"; then
8204 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8209 # PORTME Check for flag to pass linker flags through the system compiler.
8212 lt_prog_compiler_wl='-Wl,'
8213 if test "$host_cpu" = ia64; then
8214 # AIX 5 now supports IA64 processor
8215 lt_prog_compiler_static='-Bstatic'
8217 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8221 mingw* | cygwin* | pw32* | os2* | cegcc*)
8222 # This hack is so that the source file can tell whether it is being
8223 # built for inclusion in a dll (and should export symbols for example).
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8227 hpux9* | hpux10* | hpux11*)
8228 lt_prog_compiler_wl='-Wl,'
8229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8236 lt_prog_compiler_pic='+Z'
8239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8240 lt_prog_compiler_static='${wl}-a ${wl}archive'
8243 irix5* | irix6* | nonstopux*)
8244 lt_prog_compiler_wl='-Wl,'
8245 # PIC (with -KPIC) is the default.
8246 lt_prog_compiler_static='-non_shared'
8249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8250 case $cc_basename in
8251 # old Intel for x86_64 which still supported -KPIC.
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='-KPIC'
8255 lt_prog_compiler_static='-static'
8257 # icc used to be incompatible with GCC.
8258 # ICC 10 doesn't accept -KPIC any more.
8260 lt_prog_compiler_wl='-Wl,'
8261 lt_prog_compiler_pic='-fPIC'
8262 lt_prog_compiler_static='-static'
8264 # Lahey Fortran 8.1.
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='--shared'
8268 lt_prog_compiler_static='--static'
8271 # NAG Fortran compiler
8272 lt_prog_compiler_wl='-Wl,-Wl,,'
8273 lt_prog_compiler_pic='-PIC'
8274 lt_prog_compiler_static='-Bstatic'
8276 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8277 # Portland Group compilers (*not* the Pentium gcc compiler,
8278 # which looks to be a dead project)
8279 lt_prog_compiler_wl='-Wl,'
8280 lt_prog_compiler_pic='-fpic'
8281 lt_prog_compiler_static='-Bstatic'
8284 lt_prog_compiler_wl='-Wl,'
8285 # All Alpha code is PIC.
8286 lt_prog_compiler_static='-non_shared'
8288 xl* | bgxl* | bgf* | mpixl*)
8289 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_pic='-qpic'
8292 lt_prog_compiler_static='-qstaticlink'
8295 case `$CC -V 2>&1 | sed 5q` in
8296 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8297 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8298 lt_prog_compiler_pic='-KPIC'
8299 lt_prog_compiler_static='-Bstatic'
8300 lt_prog_compiler_wl=''
8302 *Sun\ F* | *Sun*Fortran*)
8303 lt_prog_compiler_pic='-KPIC'
8304 lt_prog_compiler_static='-Bstatic'
8305 lt_prog_compiler_wl='-Qoption ld '
8309 lt_prog_compiler_pic='-KPIC'
8310 lt_prog_compiler_static='-Bstatic'
8311 lt_prog_compiler_wl='-Wl,'
8313 *Intel*\ [CF]*Compiler*)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_pic='-fPIC'
8316 lt_prog_compiler_static='-static'
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fpic'
8321 lt_prog_compiler_static='-Bstatic'
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-Bstatic'
8334 # QNX uses GNU C++, but need to define -shared option too, otherwise
8336 lt_prog_compiler_pic='-fPIC -shared'
8339 osf3* | osf4* | osf5*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All OSF/1 code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8346 lt_prog_compiler_static='-non_shared'
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 case $cc_basename in
8353 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8354 lt_prog_compiler_wl='-Qoption ld ';;
8356 lt_prog_compiler_wl='-Wl,';;
8361 lt_prog_compiler_wl='-Qoption ld '
8362 lt_prog_compiler_pic='-PIC'
8363 lt_prog_compiler_static='-Bstatic'
8366 sysv4 | sysv4.2uw2* | sysv4.3*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8373 if test -d /usr/nec ;then
8374 lt_prog_compiler_pic='-Kconform_pic'
8375 lt_prog_compiler_static='-Bstatic'
8379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_can_build_shared=no
8391 lt_prog_compiler_pic='-pic'
8392 lt_prog_compiler_static='-Bstatic'
8396 lt_prog_compiler_can_build_shared=no
8402 # For platforms which do not support PIC, -DPIC is meaningless:
8404 lt_prog_compiler_pic=
8407 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8412 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8413 if ${lt_cv_prog_compiler_pic+:} false; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8419 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8420 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8423 # Check to make sure the PIC flag actually works.
8425 if test -n "$lt_prog_compiler_pic"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8427 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8428 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8429 $as_echo_n "(cached) " >&6
8431 lt_cv_prog_compiler_pic_works=no
8432 ac_outfile=conftest.$ac_objext
8433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8435 # Insert the option either (1) after the last *FLAGS variable, or
8436 # (2) before a word containing "conftest.", or (3) at the end.
8437 # Note that $ac_compile itself does not contain backslashes and begins
8438 # with a dollar sign (not a hyphen), so the echo should work correctly.
8439 # The option is referenced via a variable to avoid confusing sed.
8440 lt_compile=`echo "$ac_compile" | $SED \
8441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443 -e 's:$: $lt_compiler_flag:'`
8444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8445 (eval "$lt_compile" 2>conftest.err)
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 if (exit $ac_status) && test -s "$ac_outfile"; then
8450 # The compiler can only warn and ignore the option if not recognized
8451 # So say no if there are warnings other than the usual output.
8452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8455 lt_cv_prog_compiler_pic_works=yes
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8462 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8464 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8465 case $lt_prog_compiler_pic in
8467 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8470 lt_prog_compiler_pic=
8471 lt_prog_compiler_can_build_shared=no
8487 # Check to make sure the static flag actually works.
8489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8492 if ${lt_cv_prog_compiler_static_works+:} false; then :
8493 $as_echo_n "(cached) " >&6
8495 lt_cv_prog_compiler_static_works=no
8496 save_LDFLAGS="$LDFLAGS"
8497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8498 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8500 # The linker can only warn and ignore the option if not recognized
8501 # So say no if there are warnings
8502 if test -s conftest.err; then
8503 # Append any errors to the config.log.
8504 cat conftest.err 1>&5
8505 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_static_works=yes
8511 lt_cv_prog_compiler_static_works=yes
8515 LDFLAGS="$save_LDFLAGS"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8519 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8521 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8524 lt_prog_compiler_static=
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8535 if ${lt_cv_prog_compiler_c_o+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 lt_cv_prog_compiler_c_o=no
8539 $RM -r conftest 2>/dev/null
8543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8545 lt_compiler_flag="-o out/conftest2.$ac_objext"
8546 # Insert the option either (1) after the last *FLAGS variable, or
8547 # (2) before a word containing "conftest.", or (3) at the end.
8548 # Note that $ac_compile itself does not contain backslashes and begins
8549 # with a dollar sign (not a hyphen), so the echo should work correctly.
8550 lt_compile=`echo "$ac_compile" | $SED \
8551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553 -e 's:$: $lt_compiler_flag:'`
8554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8555 (eval "$lt_compile" 2>out/conftest.err)
8557 cat out/conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8561 # The compiler can only warn and ignore the option if not recognized
8562 # So say no if there are warnings
8563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8566 lt_cv_prog_compiler_c_o=yes
8571 # SGI C++ compiler will create directory out/ii_files/ for
8572 # template instantiation
8573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8574 $RM out/* && rmdir out
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8590 if ${lt_cv_prog_compiler_c_o+:} false; then :
8591 $as_echo_n "(cached) " >&6
8593 lt_cv_prog_compiler_c_o=no
8594 $RM -r conftest 2>/dev/null
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 lt_compiler_flag="-o out/conftest2.$ac_objext"
8601 # Insert the option either (1) after the last *FLAGS variable, or
8602 # (2) before a word containing "conftest.", or (3) at the end.
8603 # Note that $ac_compile itself does not contain backslashes and begins
8604 # with a dollar sign (not a hyphen), so the echo should work correctly.
8605 lt_compile=`echo "$ac_compile" | $SED \
8606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8608 -e 's:$: $lt_compiler_flag:'`
8609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8610 (eval "$lt_compile" 2>out/conftest.err)
8612 cat out/conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8616 # The compiler can only warn and ignore the option if not recognized
8617 # So say no if there are warnings
8618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8621 lt_cv_prog_compiler_c_o=yes
8626 # SGI C++ compiler will create directory out/ii_files/ for
8627 # template instantiation
8628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8629 $RM out/* && rmdir out
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641 hard_links="nottested"
8642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8643 # do not overwrite the value of need_locks provided by the user
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8645 $as_echo_n "checking if we can lock with hard links... " >&6; }
8648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8650 ln conftest.a conftest.b 2>&5 || hard_links=no
8651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8653 $as_echo "$hard_links" >&6; }
8654 if test "$hard_links" = no; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8672 allow_undefined_flag=
8673 always_export_symbols=no
8675 archive_expsym_cmds=
8676 compiler_needs_object=no
8677 enable_shared_with_static_runtimes=no
8678 export_dynamic_flag_spec=
8679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8680 hardcode_automatic=no
8682 hardcode_direct_absolute=no
8683 hardcode_libdir_flag_spec=
8684 hardcode_libdir_separator=
8686 hardcode_shlibpath_var=unsupported
8688 link_all_deplibs=unknown
8691 old_archive_from_new_cmds=
8692 old_archive_from_expsyms_cmds=
8693 thread_safe_flag_spec=
8694 whole_archive_flag_spec=
8695 # include_expsyms should be a list of space-separated symbols to be *always*
8696 # included in the symbol list
8698 # exclude_expsyms can be an extended regexp of symbols to exclude
8699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8701 # as well as any symbol that contains `d'.
8702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8704 # platforms (ab)use it in PIC code, but their linkers get confused if
8705 # the symbol is explicitly referenced. Since portable code cannot
8706 # rely on this symbol name, it's probably fine to never include it in
8707 # preloaded symbol tables.
8708 # Exclude shared library initialization/finalization symbols.
8709 extract_expsyms_cmds=
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8714 # When not using gcc, we currently assume that we are using
8715 # Microsoft Visual C++.
8716 if test "$GCC" != yes; then
8721 # we just hope/assume this is gcc and not c89 (= MSVC++)
8727 linux* | k*bsd*-gnu | gnu*)
8734 # On some targets, GNU ld is compatible enough with the native linker
8735 # that we're better off using the native interface for both.
8736 lt_use_gnu_ld_interface=no
8737 if test "$with_gnu_ld" = yes; then
8740 # The AIX port of GNU ld has always aspired to compatibility
8741 # with the native linker. However, as the warning in the GNU ld
8742 # block says, versions before 2.19.5* couldn't really create working
8743 # shared libraries, regardless of the interface used.
8744 case `$LD -v 2>&1` in
8745 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8746 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8747 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8749 lt_use_gnu_ld_interface=yes
8754 lt_use_gnu_ld_interface=yes
8759 if test "$lt_use_gnu_ld_interface" = yes; then
8760 # If archive_cmds runs LD, not CC, wlarc should be empty
8763 # Set some defaults for GNU ld with shared library support. These
8764 # are reset later if shared libraries are not supported. Putting them
8765 # here allows them to be overridden if necessary.
8766 runpath_var=LD_RUN_PATH
8767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768 export_dynamic_flag_spec='${wl}--export-dynamic'
8769 # ancient GNU ld didn't support --whole-archive et. al.
8770 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8771 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8773 whole_archive_flag_spec=
8775 supports_anon_versioning=no
8776 case `$LD -v 2>&1` in
8777 *GNU\ gold*) supports_anon_versioning=yes ;;
8778 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8779 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8780 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8781 *\ 2.11.*) ;; # other 2.11 versions
8782 *) supports_anon_versioning=yes ;;
8785 # See if GNU ld supports shared libraries.
8788 # On AIX/PPC, the GNU linker is very broken
8789 if test "$host_cpu" != ia64; then
8793 *** Warning: the GNU linker, at least up to release 2.19, is reported
8794 *** to be unable to reliably create shared libraries on AIX.
8795 *** Therefore, libtool is disabling shared libraries support. If you
8796 *** really care for shared libraries, you may want to install binutils
8797 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8798 *** You will then need to restart the configuration process.
8807 # see comment about AmigaOS4 .so support
8808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 archive_expsym_cmds=''
8812 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)'
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_minus_L=yes
8820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821 allow_undefined_flag=unsupported
8822 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8823 # support --undefined. This deserves some investigation. FIXME
8824 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 cygwin* | mingw* | pw32* | cegcc*)
8831 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8832 # as there is no search path for DLLs.
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 export_dynamic_flag_spec='${wl}--export-all-symbols'
8835 allow_undefined_flag=unsupported
8836 always_export_symbols=no
8837 enable_shared_with_static_runtimes=yes
8838 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'
8839 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8841 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8843 # If the export-symbols file already is a .def file (1st line
8844 # is EXPORTS), use it as is; otherwise, prepend...
8845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8846 cp $export_symbols $output_objdir/$soname.def;
8848 echo EXPORTS > $output_objdir/$soname.def;
8849 cat $export_symbols >> $output_objdir/$soname.def;
8851 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 link_all_deplibs=yes
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 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'
8877 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8887 tmp_addflag=' $pic_flag'
8888 tmp_sharedflag='-shared'
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 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'
8892 tmp_addflag=' $pic_flag'
8894 pgf77* | pgf90* | pgf95* | pgfortran*)
8895 # Portland Group f77 and f90 compilers
8896 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'
8897 tmp_addflag=' $pic_flag -Mnomain' ;;
8898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8899 tmp_addflag=' -i_dynamic' ;;
8900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8901 tmp_addflag=' -i_dynamic -nofor_main' ;;
8902 ifc* | ifort*) # Intel Fortran compiler
8903 tmp_addflag=' -nofor_main' ;;
8904 lf95*) # Lahey Fortran 8.1
8905 whole_archive_flag_spec=
8906 tmp_sharedflag='--shared' ;;
8907 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8908 tmp_sharedflag='-qmkshrobj'
8910 nvcc*) # Cuda Compiler Driver 2.2
8911 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'
8912 compiler_needs_object=yes
8915 case `$CC -V 2>&1 | sed 5q` in
8916 *Sun\ C*) # Sun C 5.9
8917 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'
8918 compiler_needs_object=yes
8919 tmp_sharedflag='-G' ;;
8920 *Sun\ F*) # Sun Fortran 8.3
8921 tmp_sharedflag='-G' ;;
8923 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8925 if test "x$supports_anon_versioning" = xyes; then
8926 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8928 echo "local: *; };" >> $output_objdir/$libname.ver~
8929 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8932 case $cc_basename in
8933 xlf* | bgf* | bgxlf* | mpixlf*)
8934 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8935 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8938 if test "x$supports_anon_versioning" = xyes; then
8939 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8941 echo "local: *; };" >> $output_objdir/$libname.ver~
8942 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8951 netbsd* | netbsdelf*-gnu)
8952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8953 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8956 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8967 *** create shared libraries on Solaris systems. Therefore, libtool
8968 *** is disabling shared libraries support. We urge you to upgrade GNU
8969 *** binutils to release 2.9.1 or newer. Another option is to modify
8970 *** your PATH or compiler configuration so that the native linker is
8971 *** used, and then restart.
8974 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8983 case `$LD -v 2>&1` in
8984 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8989 *** reliably create shared libraries on SCO systems. Therefore, libtool
8990 *** is disabling shared libraries support. We urge you to upgrade GNU
8991 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8992 *** your PATH or compiler configuration so that the native linker is
8993 *** used, and then restart.
8998 # For security reasons, it is highly recommended that you always
8999 # use absolute paths for naming shared libraries, and exclude the
9000 # DT_RUNPATH tag from executables and libraries. But doing so
9001 # requires that you compile everything twice, which is a pain.
9002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_shlibpath_var=no
9021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 if test "$ld_shlibs" = no; then
9032 hardcode_libdir_flag_spec=
9033 export_dynamic_flag_spec=
9034 whole_archive_flag_spec=
9037 # PORTME fill in a description of your system's linker (not GNU ld)
9040 allow_undefined_flag=unsupported
9041 always_export_symbols=yes
9042 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'
9043 # Note: this linker hardcodes the directories in LIBPATH if there
9044 # are no directories specified by -L.
9045 hardcode_minus_L=yes
9046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9047 # Neither direct hardcoding nor static linking is supported with a
9049 hardcode_direct=unsupported
9054 if test "$host_cpu" = ia64; then
9055 # On IA64, the linker does run time linking by default, so we don't
9056 # have to do anything special.
9057 aix_use_runtimelinking=no
9058 exp_sym_flag='-Bexport'
9061 # If we're using GNU nm, then we don't want the "-C" option.
9062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9063 # Also, AIX nm treats weak defined symbols like other global
9064 # defined symbols, whereas GNU nm marks them as "W".
9065 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9066 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9068 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9070 aix_use_runtimelinking=no
9072 # Test if we are trying to use run time linking or normal
9073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9074 # need to do runtime linking.
9075 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9076 for ld_flag in $LDFLAGS; do
9077 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9078 aix_use_runtimelinking=yes
9085 exp_sym_flag='-bexport'
9086 no_entry_flag='-bnoentry'
9089 # When large executables or shared objects are built, AIX ld can
9090 # have problems creating the table of contents. If linking a library
9091 # or program results in "error TOC overflow" add -mminimal-toc to
9092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097 hardcode_direct_absolute=yes
9098 hardcode_libdir_separator=':'
9099 link_all_deplibs=yes
9100 file_list_spec='${wl}-f,'
9102 if test "$GCC" = yes; then
9103 case $host_os in aix4.[012]|aix4.[012].*)
9104 # We only want to do this on AIX 4.2 and lower, the check
9105 # below for broken collect2 doesn't work under 4.3+
9106 collect2name=`${CC} -print-prog-name=collect2`
9107 if test -f "$collect2name" &&
9108 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9110 # We have reworked collect2
9113 # We have old collect2
9114 hardcode_direct=unsupported
9115 # It fails to find uninstalled libraries when the uninstalled
9116 # path is not listed in the libpath. Setting hardcode_minus_L
9117 # to unsupported forces relinking
9118 hardcode_minus_L=yes
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_libdir_separator=
9124 shared_flag='-shared'
9125 if test "$aix_use_runtimelinking" = yes; then
9126 shared_flag="$shared_flag "'${wl}-G'
9131 if test "$host_cpu" = ia64; then
9132 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9133 # chokes on -Wl,-G. The following line is correct:
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag='${wl}-G'
9139 shared_flag='${wl}-bM:SRE'
9144 export_dynamic_flag_spec='${wl}-bexpall'
9145 # It seems that -bexpall does not export symbols beginning with
9146 # underscore (_), so it is better to generate a list of symbols to export.
9147 always_export_symbols=yes
9148 if test "$aix_use_runtimelinking" = yes; then
9149 # Warning - without using the other runtime loading flags (-brtl),
9150 # -berok will link without error, but may produce a broken library.
9151 allow_undefined_flag='-berok'
9152 # Determine the default libpath from the value encoded in an
9154 if test "${lt_cv_aix_libpath+set}" = set; then
9155 aix_libpath=$lt_cv_aix_libpath
9157 if ${lt_cv_aix_libpath_+:} false; then :
9158 $as_echo_n "(cached) " >&6
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9171 if ac_fn_c_try_link "$LINENO"; then :
9173 lt_aix_libpath_sed='
9174 /Import File Strings/,/^$/ {
9176 s/^0 *\([^ ]*\) *$/\1/
9180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 # Check for a 64-bit object if we didn't find anything.
9182 if test -z "$lt_cv_aix_libpath_"; then
9183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 rm -f core conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9188 if test -z "$lt_cv_aix_libpath_"; then
9189 lt_cv_aix_libpath_="/usr/lib:/lib"
9194 aix_libpath=$lt_cv_aix_libpath_
9197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9198 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9200 if test "$host_cpu" = ia64; then
9201 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9202 allow_undefined_flag="-z nodefs"
9203 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"
9205 # Determine the default libpath from the value encoded in an
9207 if test "${lt_cv_aix_libpath+set}" = set; then
9208 aix_libpath=$lt_cv_aix_libpath
9210 if ${lt_cv_aix_libpath_+:} false; then :
9211 $as_echo_n "(cached) " >&6
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9224 if ac_fn_c_try_link "$LINENO"; then :
9226 lt_aix_libpath_sed='
9227 /Import File Strings/,/^$/ {
9229 s/^0 *\([^ ]*\) *$/\1/
9233 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9234 # Check for a 64-bit object if we didn't find anything.
9235 if test -z "$lt_cv_aix_libpath_"; then
9236 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 if test -z "$lt_cv_aix_libpath_"; then
9242 lt_cv_aix_libpath_="/usr/lib:/lib"
9247 aix_libpath=$lt_cv_aix_libpath_
9250 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9251 # Warning - without using the other run time loading flags,
9252 # -berok will link without error, but may produce a broken library.
9253 no_undefined_flag=' ${wl}-bernotok'
9254 allow_undefined_flag=' ${wl}-berok'
9255 if test "$with_gnu_ld" = yes; then
9256 # We only use this code for GNU lds that support --whole-archive.
9257 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9259 # Exported symbols can be pulled into shared objects from archives
9260 whole_archive_flag_spec='$convenience'
9262 archive_cmds_need_lc=yes
9263 # This is similar to how AIX traditionally builds its shared libraries.
9264 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9272 # see comment about AmigaOS4 .so support
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds=''
9277 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)'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9285 export_dynamic_flag_spec=-rdynamic
9288 cygwin* | mingw* | pw32* | cegcc*)
9289 # When not using gcc, we currently assume that we are using
9290 # Microsoft Visual C++.
9291 # hardcode_libdir_flag_spec is actually meaningless, as there is
9292 # no search path for DLLs.
9293 case $cc_basename in
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 always_export_symbols=yes
9300 # Tell ltmain to make .lib files, not .a files.
9302 # Tell ltmain to make .dll files, not .so files.
9304 # FIXME: Setting linknames here is a bad hack.
9305 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9306 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9309 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9311 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9313 # The linker will not automatically build a static lib if we build a DLL.
9314 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9315 enable_shared_with_static_runtimes=yes
9316 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9317 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9319 old_postinstall_cmds='chmod 644 $oldlib'
9320 postlink_cmds='lt_outputfile="@OUTPUT@"~
9321 lt_tool_outputfile="@TOOL_OUTPUT@"~
9322 case $lt_outputfile in
9325 lt_outputfile="$lt_outputfile.exe"
9326 lt_tool_outputfile="$lt_tool_outputfile.exe"
9329 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9330 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9331 $RM "$lt_outputfile.manifest";
9335 # Assume MSVC wrapper
9336 hardcode_libdir_flag_spec=' '
9337 allow_undefined_flag=unsupported
9338 # Tell ltmain to make .lib files, not .a files.
9340 # Tell ltmain to make .dll files, not .so files.
9342 # FIXME: Setting linknames here is a bad hack.
9343 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9344 # The linker will automatically build a .lib file if we build a DLL.
9345 old_archive_from_new_cmds='true'
9346 # FIXME: Should let the user specify the lib program.
9347 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9348 enable_shared_with_static_runtimes=yes
9353 darwin* | rhapsody*)
9356 archive_cmds_need_lc=no
9358 hardcode_automatic=yes
9359 hardcode_shlibpath_var=unsupported
9360 if test "$lt_cv_ld_force_load" = "yes"; then
9361 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\"`'
9364 whole_archive_flag_spec=''
9366 link_all_deplibs=yes
9367 allow_undefined_flag="$_lt_dar_allow_undefined"
9368 case $cc_basename in
9369 ifort*) _lt_dar_can_shared=yes ;;
9370 *) _lt_dar_can_shared=$GCC ;;
9372 if test "$_lt_dar_can_shared" = "yes"; then
9373 output_verbose_link_cmd=func_echo_all
9374 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9375 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9376 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}"
9377 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}"
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
9391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9392 # support. Future versions do this automatically, but an explicit c++rt0.o
9393 # does not break anything, and helps significantly (at the cost of a little
9396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9397 hardcode_libdir_flag_spec='-R$libdir'
9399 hardcode_shlibpath_var=no
9402 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_minus_L=yes
9407 hardcode_shlibpath_var=no
9410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9411 freebsd* | dragonfly*)
9412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413 hardcode_libdir_flag_spec='-R$libdir'
9415 hardcode_shlibpath_var=no
9419 if test "$GCC" = yes; then
9420 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9422 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9425 hardcode_libdir_separator=:
9428 # hardcode_minus_L: Not really in the search PATH,
9429 # but as the default location of the library.
9430 hardcode_minus_L=yes
9431 export_dynamic_flag_spec='${wl}-E'
9435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9436 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9440 if test "$with_gnu_ld" = no; then
9441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9442 hardcode_libdir_separator=:
9444 hardcode_direct_absolute=yes
9445 export_dynamic_flag_spec='${wl}-E'
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9475 # Older versions of the 11.00 compiler do not understand -b yet
9476 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9478 $as_echo_n "checking if $CC understands -b... " >&6; }
9479 if ${lt_cv_prog_compiler__b+:} false; then :
9480 $as_echo_n "(cached) " >&6
9482 lt_cv_prog_compiler__b=no
9483 save_LDFLAGS="$LDFLAGS"
9484 LDFLAGS="$LDFLAGS -b"
9485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487 # The linker can only warn and ignore the option if not recognized
9488 # So say no if there are warnings
9489 if test -s conftest.err; then
9490 # Append any errors to the config.log.
9491 cat conftest.err 1>&5
9492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494 if diff conftest.exp conftest.er2 >/dev/null; then
9495 lt_cv_prog_compiler__b=yes
9498 lt_cv_prog_compiler__b=yes
9502 LDFLAGS="$save_LDFLAGS"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9506 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9508 if test x"$lt_cv_prog_compiler__b" = xyes; then
9509 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9517 if test "$with_gnu_ld" = no; then
9518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9519 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9528 hardcode_direct_absolute=yes
9529 export_dynamic_flag_spec='${wl}-E'
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9539 irix5* | irix6* | nonstopux*)
9540 if test "$GCC" = yes; then
9541 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'
9542 # Try to use the -exported_symbol ld option, if it does not
9543 # work, assume that -exports_file does not work either and
9544 # implicitly export all symbols.
9545 # This should be the same for all languages, so no per-tag cache variable.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9547 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9548 if ${lt_cv_irix_exported_symbol+:} false; then :
9549 $as_echo_n "(cached) " >&6
9551 save_LDFLAGS="$LDFLAGS"
9552 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 int foo (void) { return 0; }
9557 if ac_fn_c_try_link "$LINENO"; then :
9558 lt_cv_irix_exported_symbol=yes
9560 lt_cv_irix_exported_symbol=no
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LDFLAGS="$save_LDFLAGS"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9567 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9568 if test "$lt_cv_irix_exported_symbol" = yes; then
9569 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'
9572 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'
9573 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'
9575 archive_cmds_need_lc='no'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9579 link_all_deplibs=yes
9582 netbsd* | netbsdelf*-gnu)
9583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9586 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9588 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_shlibpath_var=no
9594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 hardcode_libdir_separator=:
9598 hardcode_shlibpath_var=no
9605 if test -f /usr/libexec/ld.so; then
9607 hardcode_shlibpath_var=no
9608 hardcode_direct_absolute=yes
9609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613 export_dynamic_flag_spec='${wl}-E'
9616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_libdir_flag_spec='-R$libdir'
9621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9632 hardcode_libdir_flag_spec='-L$libdir'
9633 hardcode_minus_L=yes
9634 allow_undefined_flag=unsupported
9635 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9636 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9640 if test "$GCC" = yes; then
9641 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9642 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'
9644 allow_undefined_flag=' -expect_unresolved \*'
9645 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'
9647 archive_cmds_need_lc='no'
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 hardcode_libdir_separator=:
9652 osf4* | osf5*) # as osf3* with the addition of -msym flag
9653 if test "$GCC" = yes; then
9654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655 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'
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658 allow_undefined_flag=' -expect_unresolved \*'
9659 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'
9660 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~
9661 $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'
9663 # Both c and cxx compiler support -rpath directly
9664 hardcode_libdir_flag_spec='-rpath $libdir'
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_separator=:
9671 no_undefined_flag=' -z defs'
9672 if test "$GCC" = yes; then
9674 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9676 $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'
9678 case `$CC -V 2>&1` in
9681 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9683 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9687 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9693 hardcode_libdir_flag_spec='-R$libdir'
9694 hardcode_shlibpath_var=no
9696 solaris2.[0-5] | solaris2.[0-5].*) ;;
9698 # The compiler driver will combine and reorder linker options,
9699 # but understands `-z linker_flag'. GCC discards it without `$wl',
9700 # but is careful enough not to reorder.
9701 # Supported since Solaris 2.6 (maybe 2.5.1?)
9702 if test "$GCC" = yes; then
9703 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9709 link_all_deplibs=yes
9713 if test "x$host_vendor" = xsequent; then
9714 # Use $CC to link under sequent, because it throws in some extra .o
9715 # files that make .init and .fini sections work.
9716 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-L$libdir'
9722 hardcode_minus_L=yes
9723 hardcode_shlibpath_var=no
9727 case $host_vendor in
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_direct=yes # is this really true???
9733 ## LD is ld it makes a PLAMLIB
9734 ## CC just makes a GrossModule.
9735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736 reload_cmds='$CC -r -o $output$reload_objs'
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9744 runpath_var='LD_RUN_PATH'
9745 hardcode_shlibpath_var=no
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_shlibpath_var=no
9751 export_dynamic_flag_spec='-Bexport'
9755 if test -d /usr/nec; then
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_shlibpath_var=no
9758 runpath_var=LD_RUN_PATH
9759 hardcode_runpath_var=yes
9764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9765 no_undefined_flag='${wl}-z,text'
9766 archive_cmds_need_lc=no
9767 hardcode_shlibpath_var=no
9768 runpath_var='LD_RUN_PATH'
9770 if test "$GCC" = yes; then
9771 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 sysv5* | sco3.2v5* | sco5v6*)
9780 # Note: We can NOT use -z defs as we might desire, because we do not
9781 # link with -lc, and that would cause any symbols used from libc to
9782 # always be unresolved, which means just about no library would
9783 # ever link correctly. If we're not using GNU ld we use -z text
9784 # though, which does catch some bad symbols but isn't as heavy-handed
9786 no_undefined_flag='${wl}-z,text'
9787 allow_undefined_flag='${wl}-z,nodefs'
9788 archive_cmds_need_lc=no
9789 hardcode_shlibpath_var=no
9790 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9791 hardcode_libdir_separator=':'
9792 link_all_deplibs=yes
9793 export_dynamic_flag_spec='${wl}-Bexport'
9794 runpath_var='LD_RUN_PATH'
9796 if test "$GCC" = yes; then
9797 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9800 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_shlibpath_var=no
9816 if test x$host_vendor = xsni; then
9818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9819 export_dynamic_flag_spec='${wl}-Blargedynsym'
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9826 $as_echo "$ld_shlibs" >&6; }
9827 test "$ld_shlibs" = no && can_build_shared=no
9829 with_gnu_ld=$with_gnu_ld
9846 # Do we need to explicitly link libc?
9848 case "x$archive_cmds_need_lc" in
9850 # Assume -lc should be added
9851 archive_cmds_need_lc=yes
9853 if test "$enable_shared" = yes && test "$GCC" = yes; then
9854 case $archive_cmds in
9856 # FIXME: we may have to deal with multi-command sequences.
9859 # Test whether the compiler implicitly links with -lc since on some
9860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9861 # to ld, don't add -lc before -lgcc.
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9864 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9865 $as_echo_n "(cached) " >&6
9868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9871 (eval $ac_compile) 2>&5
9873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9874 test $ac_status = 0; } 2>conftest.err; then
9877 libobjs=conftest.$ac_objext
9879 wl=$lt_prog_compiler_wl
9880 pic_flag=$lt_prog_compiler_pic
9886 lt_save_allow_undefined_flag=$allow_undefined_flag
9887 allow_undefined_flag=
9888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9889 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892 test $ac_status = 0; }
9894 lt_cv_archive_cmds_need_lc=no
9896 lt_cv_archive_cmds_need_lc=yes
9898 allow_undefined_flag=$lt_save_allow_undefined_flag
9900 cat conftest.err 1>&5
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9906 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9907 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10066 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10068 if test "$GCC" = yes; then
10070 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10071 *) lt_awk_arg="/^libraries:/" ;;
10074 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10075 *) lt_sed_strip_eq="s,=/,/,g" ;;
10077 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10078 case $lt_search_path_spec in
10080 # if the path contains ";" then we assume it to be the separator
10081 # otherwise default to the standard path separator (i.e. ":") - it is
10082 # assumed that no part of a normal pathname contains ";" but that should
10083 # okay in the real world where ";" in dirpaths is itself problematic.
10084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10087 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10090 # Ok, now we have the path, separated by spaces, we can step through it
10091 # and add multilib dir if necessary.
10092 lt_tmp_lt_search_path_spec=
10093 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10094 for lt_sys_path in $lt_search_path_spec; do
10095 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10098 test -d "$lt_sys_path" && \
10099 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10102 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10103 BEGIN {RS=" "; FS="/|\n";} {
10106 for (lt_i = NF; lt_i > 0; lt_i--) {
10107 if ($lt_i != "" && $lt_i != ".") {
10108 if ($lt_i == "..") {
10111 if (lt_count == 0) {
10112 lt_foo="/" $lt_i lt_foo;
10119 if (lt_foo != "") { lt_freq[lt_foo]++; }
10120 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10122 # AWK program above erroneously prepends '/' to C:/dos/paths
10125 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10126 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10128 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10130 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10132 library_names_spec=
10133 libname_spec='lib$name'
10137 postuninstall_cmds=
10141 shlibpath_overrides_runpath=unknown
10143 dynamic_linker="$host_os ld.so"
10144 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10145 need_lib_prefix=unknown
10146 hardcode_into_libs=no
10148 # when you set need_version to no, make sure it does not cause -set_version
10149 # flags to be left without arguments
10150 need_version=unknown
10154 version_type=linux # correct to gnu/linux during the next big refactor
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10156 shlibpath_var=LIBPATH
10158 # AIX 3 has no versioning support, so we append a major version to the name.
10159 soname_spec='${libname}${release}${shared_ext}$major'
10163 version_type=linux # correct to gnu/linux during the next big refactor
10166 hardcode_into_libs=yes
10167 if test "$host_cpu" = ia64; then
10168 # AIX 5 supports IA64
10169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10170 shlibpath_var=LD_LIBRARY_PATH
10172 # With GCC up to 2.95.x, collect2 would create an import file
10173 # for dependence libraries. The import file would start with
10174 # the line `#! .'. This would cause the generated library to
10175 # depend on `.', always an invalid library. This was fixed in
10176 # development snapshots of GCC prior to 3.0.
10178 aix4 | aix4.[01] | aix4.[01].*)
10179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10181 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10184 can_build_shared=no
10188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10189 # soname into executable. Probably we can add versioning support to
10190 # collect2, so additional links can be useful in future.
10191 if test "$aix_use_runtimelinking" = yes; then
10192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10193 # instead of lib<name>.a to let people know that these are not
10194 # typical AIX shared libraries.
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 # We preserve .a as extension for shared libraries through AIX4.2
10198 # and later when we are not doing run time linking.
10199 library_names_spec='${libname}${release}.a $libname.a'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10202 shlibpath_var=LIBPATH
10209 # Since July 2007 AmigaOS4 officially supports .so libraries.
10210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 library_names_spec='$libname.ixlibrary $libname.a'
10215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10216 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10222 library_names_spec='${libname}${shared_ext}'
10223 dynamic_linker="$host_os ld.so"
10224 shlibpath_var=LIBRARY_PATH
10228 version_type=linux # correct to gnu/linux during the next big refactor
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10236 # the default ld.so.conf also contains /usr/contrib/lib and
10237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10238 # libtool to hard-code these into programs
10241 cygwin* | mingw* | pw32* | cegcc*)
10242 version_type=windows
10247 case $GCC,$cc_basename in
10250 library_names_spec='$libname.dll.a'
10251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10252 postinstall_cmds='base_file=`basename \${file}`~
10253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10254 dldir=$destdir/`dirname \$dlpath`~
10255 test -d \$dldir || mkdir -p \$dldir~
10256 $install_prog $dir/$dlname \$dldir/$dlname~
10257 chmod a+x \$dldir/$dlname~
10258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10262 dlpath=$dir/\$dldll~
10264 shlibpath_overrides_runpath=yes
10268 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10269 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10271 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10274 # MinGW DLLs use traditional 'lib' prefix
10275 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10278 # pw32 DLLs use 'pw' prefix rather than 'lib'
10279 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282 dynamic_linker='Win32 ld.exe'
10287 libname_spec='$name'
10288 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10289 library_names_spec='${libname}.dll.lib'
10293 sys_lib_search_path_spec=
10296 for lt_path in $LIB
10299 # Let DOS variable expansion print the short 8.3 style file name.
10300 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10301 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10304 # Convert to MSYS style.
10305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10308 # Convert to unix form, then to dos form, then back to unix form
10309 # but this time dos style (no spaces!) so that the unix form looks
10310 # like /cygdrive/c/PROGRA~1:/cygdr...
10311 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10312 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10313 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10316 sys_lib_search_path_spec="$LIB"
10317 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10318 # It is most probably a Windows format PATH.
10319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10323 # FIXME: find the short name or the path components, as spaces are
10324 # common. (e.g. "Program Files" -> "PROGRA~1")
10328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10329 postinstall_cmds='base_file=`basename \${file}`~
10330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10331 dldir=$destdir/`dirname \$dlpath`~
10332 test -d \$dldir || mkdir -p \$dldir~
10333 $install_prog $dir/$dlname \$dldir/$dlname'
10334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10335 dlpath=$dir/\$dldll~
10337 shlibpath_overrides_runpath=yes
10338 dynamic_linker='Win32 link.exe'
10342 # Assume MSVC wrapper
10343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10344 dynamic_linker='Win32 ld.exe'
10347 # FIXME: first we should search . and the directory the executable is in
10351 darwin* | rhapsody*)
10352 dynamic_linker="$host_os dyld"
10353 version_type=darwin
10356 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10357 soname_spec='${libname}${release}${major}$shared_ext'
10358 shlibpath_overrides_runpath=yes
10359 shlibpath_var=DYLD_LIBRARY_PATH
10360 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10363 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10367 version_type=linux # correct to gnu/linux during the next big refactor
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
10375 freebsd* | dragonfly*)
10376 # DragonFly does not have aout. When/if they implement a new
10377 # versioning mechanism, adjust this.
10378 if test -x /usr/bin/objformat; then
10379 objformat=`/usr/bin/objformat`
10382 freebsd[23].*) objformat=aout ;;
10383 *) objformat=elf ;;
10386 version_type=freebsd-$objformat
10387 case $version_type in
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10398 shlibpath_var=LD_LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10403 freebsd3.[01]* | freebsdelf3.[01]*)
10404 shlibpath_overrides_runpath=yes
10405 hardcode_into_libs=yes
10407 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10408 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10409 shlibpath_overrides_runpath=no
10410 hardcode_into_libs=yes
10412 *) # from 4.6 on, and DragonFly
10413 shlibpath_overrides_runpath=yes
10414 hardcode_into_libs=yes
10420 version_type=linux # correct to gnu/linux during the next big refactor
10423 dynamic_linker="$host_os runtime_loader"
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10429 hardcode_into_libs=yes
10432 hpux9* | hpux10* | hpux11*)
10433 # Give a soname corresponding to the major version so that dld.sl refuses to
10434 # link against other versions.
10441 hardcode_into_libs=yes
10442 dynamic_linker="$host_os dld.so"
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 if test "X$HPUX_IA64_MODE" = X32; then
10448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10456 hardcode_into_libs=yes
10457 dynamic_linker="$host_os dld.sl"
10458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10467 dynamic_linker="$host_os dld.sl"
10468 shlibpath_var=SHLIB_PATH
10469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10474 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10475 postinstall_cmds='chmod 555 $lib'
10476 # or fails outright, so override atomically:
10477 install_override_mode=555
10481 version_type=linux # correct to gnu/linux during the next big refactor
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=no
10489 hardcode_into_libs=yes
10492 irix5* | irix6* | nonstopux*)
10494 nonstopux*) version_type=nonstopux ;;
10496 if test "$lt_cv_prog_gnu_ld" = yes; then
10497 version_type=linux # correct to gnu/linux during the next big refactor
10504 soname_spec='${libname}${release}${shared_ext}$major'
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10507 irix5* | nonstopux*)
10508 libsuff= shlibsuff=
10511 case $LD in # libtool.m4 will add one of these switches to LD
10512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10513 libsuff= shlibsuff= libmagic=32-bit;;
10514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10515 libsuff=32 shlibsuff=N32 libmagic=N32;;
10516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10518 *) libsuff= shlibsuff= libmagic=never-match;;
10522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10523 shlibpath_overrides_runpath=no
10524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10526 hardcode_into_libs=yes
10529 # No shared lib support for Linux oldld, aout, or coff.
10530 linux*oldld* | linux*aout* | linux*coff*)
10534 # This must be glibc/ELF.
10535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10536 version_type=linux # correct to gnu/linux during the next big refactor
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=no
10545 # Some binutils ld are patched to set DT_RUNPATH
10546 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10547 $as_echo_n "(cached) " >&6
10549 lt_cv_shlibpath_overrides_runpath=no
10550 save_LDFLAGS=$LDFLAGS
10551 save_libdir=$libdir
10552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10567 lt_cv_shlibpath_overrides_runpath=yes
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LDFLAGS=$save_LDFLAGS
10573 libdir=$save_libdir
10577 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10579 # This implies no fast_install, which is unacceptable.
10580 # Some rework will be needed to allow for fast_install
10581 # before this can be enabled.
10582 hardcode_into_libs=yes
10584 # Append ld.so.conf contents to the search path
10585 if test -f /etc/ld.so.conf; then
10586 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' ' '`
10587 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10590 # We used to test for /lib/ld.so.1 and disable shared libraries on
10591 # powerpc, because MkLinux only supported shared libraries with the
10592 # GNU dynamic linker. Since this was broken with cross compilers,
10593 # most powerpc-linux boxes support dynamic linking these days and
10594 # people can always --disable-shared, the test was removed, and we
10595 # assume the GNU/Linux dynamic linker is in use.
10596 dynamic_linker='GNU/Linux ld.so'
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=no
10607 hardcode_into_libs=yes
10608 dynamic_linker='NetBSD ld.elf_so'
10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10618 dynamic_linker='NetBSD (a.out) ld.so'
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 dynamic_linker='NetBSD ld.elf_so'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 hardcode_into_libs=yes
10630 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 shlibpath_overrides_runpath=no
10644 hardcode_into_libs=yes
10645 dynamic_linker='ldqnx.so'
10650 sys_lib_dlsearch_path_spec="/usr/lib"
10652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10655 *) need_version=no ;;
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10662 openbsd2.[89] | openbsd2.[89].*)
10663 shlibpath_overrides_runpath=no
10666 shlibpath_overrides_runpath=yes
10670 shlibpath_overrides_runpath=yes
10675 libname_spec='$name'
10678 library_names_spec='$libname${shared_ext} $libname.a'
10679 dynamic_linker='OS/2 ld.exe'
10680 shlibpath_var=LIBPATH
10683 osf3* | osf4* | osf5*)
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10699 version_type=linux # correct to gnu/linux during the next big refactor
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 hardcode_into_libs=yes
10707 # ldd complains unless libraries are executable
10708 postinstall_cmds='chmod +x $lib'
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 if test "$with_gnu_ld" = yes; then
10724 version_type=linux # correct to gnu/linux during the next big refactor
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 case $host_vendor in
10730 shlibpath_overrides_runpath=no
10732 runpath_var=LD_RUN_PATH
10740 shlibpath_overrides_runpath=no
10741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 if test -d /usr/nec ;then
10748 version_type=linux # correct to gnu/linux during the next big refactor
10749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10750 soname_spec='$libname${shared_ext}.$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10756 version_type=freebsd-elf
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes
10763 hardcode_into_libs=yes
10764 if test "$with_gnu_ld" = yes; then
10765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10774 sys_lib_dlsearch_path_spec='/usr/lib'
10778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10779 version_type=linux # correct to gnu/linux during the next big refactor
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=no
10785 hardcode_into_libs=yes
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LD_LIBRARY_PATH
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10800 $as_echo "$dynamic_linker" >&6; }
10801 test "$dynamic_linker" = no && can_build_shared=no
10803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10804 if test "$GCC" = yes; then
10805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10909 if test -n "$hardcode_libdir_flag_spec" ||
10910 test -n "$runpath_var" ||
10911 test "X$hardcode_automatic" = "Xyes" ; then
10913 # We can hardcode non-existent directories.
10914 if test "$hardcode_direct" != no &&
10915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10916 # have to relink, otherwise we might link with an installed library
10917 # when we should be linking with a yet-to-be-installed one
10918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10919 test "$hardcode_minus_L" != no; then
10920 # Linking always hardcodes the temporary library directory.
10921 hardcode_action=relink
10923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10924 hardcode_action=immediate
10927 # We cannot hardcode anything, or else we can only hardcode existing
10929 hardcode_action=unsupported
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10932 $as_echo "$hardcode_action" >&6; }
10934 if test "$hardcode_action" = relink ||
10935 test "$inherit_rpath" = yes; then
10936 # Fast installation is not supported
10937 enable_fast_install=no
10938 elif test "$shlibpath_overrides_runpath" = yes ||
10939 test "$enable_shared" = no; then
10940 # Fast installation is not necessary
10941 enable_fast_install=needless
10949 if test "x$enable_dlopen" != xyes; then
10950 enable_dlopen=unknown
10951 enable_dlopen_self=unknown
10952 enable_dlopen_self_static=unknown
10959 lt_cv_dlopen="load_add_on"
10961 lt_cv_dlopen_self=yes
10964 mingw* | pw32* | cegcc*)
10965 lt_cv_dlopen="LoadLibrary"
10970 lt_cv_dlopen="dlopen"
10975 # if libdl is installed we need to link against it
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if ${ac_cv_lib_dl_dlopen+:} false; then :
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 ac_cv_lib_dl_dlopen=yes
11004 ac_cv_lib_dl_dlopen=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11016 lt_cv_dlopen="dyld"
11018 lt_cv_dlopen_self=yes
11025 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11026 if test "x$ac_cv_func_shl_load" = xyes; then :
11027 lt_cv_dlopen="shl_load"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11030 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11031 if ${ac_cv_lib_dld_shl_load+:} false; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS=$LIBS
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11049 return shl_load ();
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_dld_shl_load=yes
11057 ac_cv_lib_dld_shl_load=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11064 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11065 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11068 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11069 if test "x$ac_cv_func_dlopen" = xyes; then :
11070 lt_cv_dlopen="dlopen"
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11073 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11074 if ${ac_cv_lib_dl_dlopen+:} false; then :
11075 $as_echo_n "(cached) " >&6
11077 ac_check_lib_save_LIBS=$LIBS
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11097 if ac_fn_c_try_link "$LINENO"; then :
11098 ac_cv_lib_dl_dlopen=yes
11100 ac_cv_lib_dl_dlopen=no
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11107 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11108 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11112 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11113 if ${ac_cv_lib_svld_dlopen+:} false; then :
11114 $as_echo_n "(cached) " >&6
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lsvld $LIBS"
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11136 if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_svld_dlopen=yes
11139 ac_cv_lib_svld_dlopen=no
11141 rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11146 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11147 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11151 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_dld_link+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS=$LIBS
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11170 return dld_link ();
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_dld_dld_link=yes
11178 ac_cv_lib_dld_dld_link=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11185 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11186 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11187 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11208 if test "x$lt_cv_dlopen" != xno; then
11214 case $lt_cv_dlopen in
11216 save_CPPFLAGS="$CPPFLAGS"
11217 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11219 save_LDFLAGS="$LDFLAGS"
11220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11223 LIBS="$lt_cv_dlopen_libs $LIBS"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11226 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11227 if ${lt_cv_dlopen_self+:} false; then :
11228 $as_echo_n "(cached) " >&6
11230 if test "$cross_compiling" = yes; then :
11231 lt_cv_dlopen_self=cross
11233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11234 lt_status=$lt_dlunknown
11235 cat > conftest.$ac_ext <<_LT_EOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11246 # define LT_DLGLOBAL RTLD_GLOBAL
11249 # define LT_DLGLOBAL DL_GLOBAL
11251 # define LT_DLGLOBAL 0
11255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11256 find out it does not work in some platform. */
11257 #ifndef LT_DLLAZY_OR_NOW
11259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11262 # define LT_DLLAZY_OR_NOW DL_LAZY
11265 # define LT_DLLAZY_OR_NOW RTLD_NOW
11268 # define LT_DLLAZY_OR_NOW DL_NOW
11270 # define LT_DLLAZY_OR_NOW 0
11277 /* When -fvisbility=hidden is used, assume the code has been annotated
11278 correspondingly for the symbols needed. */
11279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11280 int fnord () __attribute__((visibility("default")));
11283 int fnord () { return 42; }
11286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287 int status = $lt_dlunknown;
11291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11295 else puts (dlerror ());
11297 /* dlclose (self); */
11305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11306 (eval $ac_link) 2>&5
11308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11310 (./conftest; exit; ) >&5 2>/dev/null
11312 case x$lt_status in
11313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11315 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11318 # compilation failed
11319 lt_cv_dlopen_self=no
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11327 $as_echo "$lt_cv_dlopen_self" >&6; }
11329 if test "x$lt_cv_dlopen_self" = xyes; then
11330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11332 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11333 if ${lt_cv_dlopen_self_static+:} false; then :
11334 $as_echo_n "(cached) " >&6
11336 if test "$cross_compiling" = yes; then :
11337 lt_cv_dlopen_self_static=cross
11339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11340 lt_status=$lt_dlunknown
11341 cat > conftest.$ac_ext <<_LT_EOF
11342 #line $LINENO "configure"
11343 #include "confdefs.h"
11352 # define LT_DLGLOBAL RTLD_GLOBAL
11355 # define LT_DLGLOBAL DL_GLOBAL
11357 # define LT_DLGLOBAL 0
11361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11362 find out it does not work in some platform. */
11363 #ifndef LT_DLLAZY_OR_NOW
11365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11368 # define LT_DLLAZY_OR_NOW DL_LAZY
11371 # define LT_DLLAZY_OR_NOW RTLD_NOW
11374 # define LT_DLLAZY_OR_NOW DL_NOW
11376 # define LT_DLLAZY_OR_NOW 0
11383 /* When -fvisbility=hidden is used, assume the code has been annotated
11384 correspondingly for the symbols needed. */
11385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11386 int fnord () __attribute__((visibility("default")));
11389 int fnord () { return 42; }
11392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11393 int status = $lt_dlunknown;
11397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11401 else puts (dlerror ());
11403 /* dlclose (self); */
11411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11412 (eval $ac_link) 2>&5
11414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11415 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11416 (./conftest; exit; ) >&5 2>/dev/null
11418 case x$lt_status in
11419 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11420 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11421 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11424 # compilation failed
11425 lt_cv_dlopen_self_static=no
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11433 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11436 CPPFLAGS="$save_CPPFLAGS"
11437 LDFLAGS="$save_LDFLAGS"
11442 case $lt_cv_dlopen_self in
11443 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11444 *) enable_dlopen_self=unknown ;;
11447 case $lt_cv_dlopen_self_static in
11448 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11449 *) enable_dlopen_self_static=unknown ;;
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11472 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11473 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11474 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11475 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11479 # FIXME - insert some real tests, host_os isn't really good enough
11482 if test -n "$STRIP" ; then
11483 striplib="$STRIP -x"
11484 old_striplib="$STRIP -S"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11486 $as_echo "yes" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11510 # Report which library types will actually be built
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11512 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11514 $as_echo "$can_build_shared" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11517 $as_echo_n "checking whether to build shared libraries... " >&6; }
11518 test "$can_build_shared" = "no" && enable_shared=no
11520 # On AIX, shared libraries and static libraries use the same namespace, and
11521 # are all built from PIC.
11524 test "$enable_shared" = yes && enable_static=no
11525 if test -n "$RANLIB"; then
11526 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11527 postinstall_cmds='$RANLIB $lib'
11532 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11533 test "$enable_shared" = yes && enable_static=no
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11538 $as_echo "$enable_shared" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11541 $as_echo_n "checking whether to build static libraries... " >&6; }
11542 # Make sure either enable_shared or enable_static is yes.
11543 test "$enable_shared" = yes || enable_static=yes
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11545 $as_echo "$enable_static" >&6; }
11552 ac_cpp='$CPP $CPPFLAGS'
11553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11573 ac_config_commands="$ac_config_commands libtool"
11578 # Only expand once:
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
11585 $as_echo_n "checking target system type... " >&6; }
11586 if ${ac_cv_target+:} false; then :
11587 $as_echo_n "(cached) " >&6
11589 if test "x$target_alias" = x; then
11590 ac_cv_target=$ac_cv_host
11592 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
11593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
11598 $as_echo "$ac_cv_target" >&6; }
11599 case $ac_cv_target in
11601 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
11603 target=$ac_cv_target
11604 ac_save_IFS=$IFS; IFS='-'
11605 set x $ac_cv_target
11610 # Remember, the first character of IFS is used to create $*,
11611 # except with old shells:
11614 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
11617 # The aliases save the names the user supplied, while $host etc.
11618 # will get canonicalized.
11619 test -n "$target_alias" &&
11620 test "$program_prefix$program_suffix$program_transform_name" = \
11622 program_prefix=${target_alias}-
11624 am__api_version='1.14'
11626 # Find a good install program. We prefer a C program (faster),
11627 # so one script is as good as another. But avoid the broken or
11628 # incompatible versions:
11629 # SysV /etc/install, /usr/sbin/install
11630 # SunOS /usr/etc/install
11631 # IRIX /sbin/install
11633 # AmigaOS /C/install, which installs bootblocks on floppy discs
11634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11637 # OS/2's system install, which has a completely different semantic
11638 # ./install, which can be erroneously created by make from ./install.sh.
11639 # Reject install programs that cannot install multiple files.
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11641 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11642 if test -z "$INSTALL"; then
11643 if ${ac_cv_path_install+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 # Account for people who put trailing slashes in PATH elements.
11652 case $as_dir/ in #((
11653 ./ | .// | /[cC]/* | \
11654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11655 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11658 # OSF1 and SCO ODT 3.0 have their own names for install.
11659 # Don't use installbsd from OSF since it installs stuff as root
11661 for ac_prog in ginstall scoinst install; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11664 if test $ac_prog = install &&
11665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11666 # AIX install. It has an incompatible calling convention.
11668 elif test $ac_prog = install &&
11669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11670 # program-specific install script used by HP pwplus--don't use.
11673 rm -rf conftest.one conftest.two conftest.dir
11674 echo one > conftest.one
11675 echo two > conftest.two
11677 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11678 test -s conftest.one && test -s conftest.two &&
11679 test -s conftest.dir/conftest.one &&
11680 test -s conftest.dir/conftest.two
11682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11695 rm -rf conftest.one conftest.two conftest.dir
11698 if test "${ac_cv_path_install+set}" = set; then
11699 INSTALL=$ac_cv_path_install
11701 # As a last resort, use the slow shell script. Don't cache a
11702 # value for INSTALL within a source directory, because that will
11703 # break other packages using the cache if that directory is
11704 # removed, or if the value is a relative name.
11705 INSTALL=$ac_install_sh
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11709 $as_echo "$INSTALL" >&6; }
11711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11712 # It thinks the first close brace ends the variable substitution.
11713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11720 $as_echo_n "checking whether build environment is sane... " >&6; }
11721 # Reject unsafe characters in $srcdir or the absolute working directory
11722 # name. Accept space and tab only in the latter.
11726 *[\\\"\#\$\&\'\`$am_lf]*)
11727 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11730 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11731 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11734 # Do 'set' in a subshell so we don't clobber the current shell's
11735 # arguments. Must try -L first in case configure is actually a
11736 # symlink; some systems play weird games with the mod time of symlinks
11737 # (eg FreeBSD returns the mod time of the symlink's containing
11741 for am_try in 1 2; do
11742 echo "timestamp, slept: $am_has_slept" > conftest.file
11743 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11744 if test "$*" = "X"; then
11746 set X `ls -t "$srcdir/configure" conftest.file`
11748 if test "$*" != "X $srcdir/configure conftest.file" \
11749 && test "$*" != "X conftest.file $srcdir/configure"; then
11751 # If neither matched, then we have a broken ls. This can happen
11752 # if, for instance, CONFIG_SHELL is bash and it inherits a
11753 # broken ls alias from the environment. This has actually
11754 # happened. Such a system could not be considered "sane".
11755 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11756 alias in your environment" "$LINENO" 5
11758 if test "$2" = conftest.file || test $am_try -eq 2; then
11765 test "$2" = conftest.file
11771 as_fn_error $? "newly created file is older than distributed files!
11772 Check your system clock" "$LINENO" 5
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11775 $as_echo "yes" >&6; }
11776 # If we didn't sleep, we still need to ensure time stamps of config.status and
11777 # generated files are strictly newer.
11779 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11784 rm -f conftest.file
11786 test "$program_prefix" != NONE &&
11787 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11788 # Use a double $ so make ignores it.
11789 test "$program_suffix" != NONE &&
11790 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11791 # Double any \ or $.
11792 # By default was `s,x,x', remove it if useless.
11793 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11794 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11796 if test x"${MISSING+set}" != xset; then
11797 case $am_aux_dir in
11799 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11801 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11804 # Use eval to expand $SHELL
11805 if eval "$MISSING --is-lightweight"; then
11806 am_missing_run="$MISSING "
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11813 if test x"${install_sh}" != xset; then
11814 case $am_aux_dir in
11816 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11818 install_sh="\${SHELL} $am_aux_dir/install-sh"
11822 # Installed binaries are usually stripped using 'strip' when the user
11823 # run "make install-strip". However 'strip' might not be the right
11824 # tool to use in cross-compilation environments, therefore Automake
11825 # will honor the 'STRIP' environment variable to overrule this program.
11826 if test "$cross_compiling" != no; then
11827 if test -n "$ac_tool_prefix"; then
11828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}strip; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_STRIP+:} false; then :
11833 $as_echo_n "(cached) " >&6
11835 if test -n "$STRIP"; then
11836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 STRIP=$ac_cv_prog_STRIP
11856 if test -n "$STRIP"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11858 $as_echo "$STRIP" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11866 if test -z "$ac_cv_prog_STRIP"; then
11868 # Extract the first word of "strip", so it can be a program name with args.
11869 set dummy strip; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11873 $as_echo_n "(cached) " >&6
11875 if test -n "$ac_ct_STRIP"; then
11876 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879 for as_dir in $PATH
11882 test -z "$as_dir" && as_dir=.
11883 for ac_exec_ext in '' $ac_executable_extensions; do
11884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11885 ac_cv_prog_ac_ct_STRIP="strip"
11886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11896 if test -n "$ac_ct_STRIP"; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11898 $as_echo "$ac_ct_STRIP" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11904 if test "x$ac_ct_STRIP" = x; then
11907 case $cross_compiling:$ac_tool_warned in
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11911 ac_tool_warned=yes ;;
11916 STRIP="$ac_cv_prog_STRIP"
11920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11924 if test -z "$MKDIR_P"; then
11925 if ${ac_cv_path_mkdir+:} false; then :
11926 $as_echo_n "(cached) " >&6
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11932 test -z "$as_dir" && as_dir=.
11933 for ac_prog in mkdir gmkdir; do
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11936 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11937 'mkdir (GNU coreutils) '* | \
11938 'mkdir (coreutils) '* | \
11939 'mkdir (fileutils) '4.1*)
11940 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11950 test -d ./--version && rmdir ./--version
11951 if test "${ac_cv_path_mkdir+set}" = set; then
11952 MKDIR_P="$ac_cv_path_mkdir -p"
11954 # As a last resort, use the slow shell script. Don't cache a
11955 # value for MKDIR_P within a source directory, because that will
11956 # break other packages using the cache if that directory is
11957 # removed, or if the value is a relative name.
11958 MKDIR_P="$ac_install_sh -d"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11962 $as_echo "$MKDIR_P" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11965 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11967 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11968 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11969 $as_echo_n "(cached) " >&6
11971 cat >conftest.make <<\_ACEOF
11974 @echo '@@@%%%=$(MAKE)=@@@%%%'
11976 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11978 *@@@%%%=?*=@@@%%%*)
11979 eval ac_cv_prog_make_${ac_make}_set=yes;;
11981 eval ac_cv_prog_make_${ac_make}_set=no;;
11983 rm -f conftest.make
11985 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 SET_MAKE="MAKE=${MAKE-make}"
11995 rm -rf .tst 2>/dev/null
11996 mkdir .tst 2>/dev/null
11997 if test -d .tst; then
12002 rmdir .tst 2>/dev/null
12004 DEPDIR="${am__leading_dot}deps"
12006 ac_config_commands="$ac_config_commands depfiles"
12009 am_make=${MAKE-make}
12010 cat > confinc << 'END'
12012 @echo this is the am__doit target
12015 # If we don't find an include directive, just comment out the code.
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12017 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12021 # First try GNU make style include.
12022 echo "include confinc" > confmf
12023 # Ignore all kinds of additional output from 'make'.
12024 case `$am_make -s -f confmf 2> /dev/null` in #(
12025 *the\ am__doit\ target*)
12026 am__include=include
12031 # Now try BSD make style include.
12032 if test "$am__include" = "#"; then
12033 echo '.include "confinc"' > confmf
12034 case `$am_make -s -f confmf 2> /dev/null` in #(
12035 *the\ am__doit\ target*)
12036 am__include=.include
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12045 $as_echo "$_am_result" >&6; }
12046 rm -f confinc confmf
12048 # Check whether --enable-dependency-tracking was given.
12049 if test "${enable_dependency_tracking+set}" = set; then :
12050 enableval=$enable_dependency_tracking;
12053 if test "x$enable_dependency_tracking" != xno; then
12054 am_depcomp="$ac_aux_dir/depcomp"
12058 if test "x$enable_dependency_tracking" != xno; then
12067 # Check whether --enable-silent-rules was given.
12068 if test "${enable_silent_rules+set}" = set; then :
12069 enableval=$enable_silent_rules;
12072 case $enable_silent_rules in # (((
12073 yes) AM_DEFAULT_VERBOSITY=0;;
12074 no) AM_DEFAULT_VERBOSITY=1;;
12075 *) AM_DEFAULT_VERBOSITY=1;;
12077 am_make=${MAKE-make}
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12080 if ${am_cv_make_support_nested_variables+:} false; then :
12081 $as_echo_n "(cached) " >&6
12083 if $as_echo 'TRUE=$(BAR$(V))
12089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12090 am_cv_make_support_nested_variables=yes
12092 am_cv_make_support_nested_variables=no
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12097 if test $am_cv_make_support_nested_variables = yes; then
12099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12101 AM_V=$AM_DEFAULT_VERBOSITY
12102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12108 # is not polluted with repeated "-I."
12109 am__isrc=' -I$(srcdir)'
12110 # test to see if srcdir already configured
12111 if test -f $srcdir/config.status; then
12112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12116 # test whether we have cygpath
12117 if test -z "$CYGPATH_W"; then
12118 if (cygpath --version) >/dev/null 2>/dev/null; then
12119 CYGPATH_W='cygpath -w'
12126 # Define the identity of the package.
12131 cat >>confdefs.h <<_ACEOF
12132 #define PACKAGE "$PACKAGE"
12136 cat >>confdefs.h <<_ACEOF
12137 #define VERSION "$VERSION"
12140 # Some tools Automake needs.
12142 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12145 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12148 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12151 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12154 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12156 # For better backward compatibility. To be removed once Automake 1.9.x
12157 # dies out for good. For more background, see:
12158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12160 mkdir_p='$(MKDIR_P)'
12162 # We need awk for the "check" target. The system "awk" is bad on
12164 # Always define AMTAR for backward compatibility. Yes, it's still used
12165 # in the wild :-( We should find a proper way to deprecate it ...
12166 AMTAR='$${TAR-tar}'
12169 # We'll loop over all known methods to create a tar archive until one works.
12170 _am_tools='gnutar pax cpio none'
12172 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12178 depcc="$CC" am_compiler_list=
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12181 $as_echo_n "checking dependency style of $depcc... " >&6; }
12182 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12183 $as_echo_n "(cached) " >&6
12185 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12186 # We make a subdir and do the tests there. Otherwise we can end up
12187 # making bogus files that we don't know about and never remove. For
12188 # instance it was reported that on HP-UX the gcc test will end up
12189 # making a dummy file named 'D' -- because '-MD' means "put the output
12191 rm -rf conftest.dir
12193 # Copy depcomp to subdir because otherwise we won't find it if we're
12194 # using a relative directory.
12195 cp "$am_depcomp" conftest.dir
12197 # We will build objects and dependencies in a subdirectory because
12198 # it helps to detect inapplicable dependency modes. For instance
12199 # both Tru64's cc and ICC support -MD to output dependencies as a
12200 # side effect of compilation, but ICC will put the dependencies in
12201 # the current directory while Tru64 will put them in the object
12205 am_cv_CC_dependencies_compiler_type=none
12206 if test "$am_compiler_list" = ""; then
12207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12209 am__universal=false
12210 case " $depcc " in #(
12211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12214 for depmode in $am_compiler_list; do
12215 # Setup a source with many dependencies, because some compilers
12216 # like to wrap large dependency lists on column 80 (with \), and
12217 # we should not choose a depcomp mode which is confused by this.
12219 # We need to recreate these files for each test, as the compiler may
12220 # overwrite some of them when testing with obscure command lines.
12221 # This happens at least with the AIX C compiler.
12223 for i in 1 2 3 4 5 6; do
12224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12225 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12226 # Solaris 10 /bin/sh.
12227 echo '/* dummy */' > sub/conftst$i.h
12229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12231 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12232 # mode. It turns out that the SunPro C++ compiler does not properly
12233 # handle '-M -o', and we need to detect this. Also, some Intel
12234 # versions had trouble with output in subdirs.
12235 am__obj=sub/conftest.${OBJEXT-o}
12236 am__minus_obj="-o $am__obj"
12239 # This depmode causes a compiler race in universal mode.
12240 test "$am__universal" = false || continue
12243 # After this tag, mechanisms are not by side-effect, so they'll
12244 # only be used when explicitly requested.
12245 if test "x$enable_dependency_tracking" = xyes; then
12251 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12252 # This compiler won't grok '-c -o', but also, the minuso test has
12253 # not run yet. These depmodes are late enough in the game, and
12254 # so weak that their functioning should not be impacted.
12255 am__obj=conftest.${OBJEXT-o}
12260 if depmode=$depmode \
12261 source=sub/conftest.c object=$am__obj \
12262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12264 >/dev/null 2>conftest.err &&
12265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12269 # icc doesn't choke on unknown options, it will just issue warnings
12270 # or remarks (even with -Werror). So we grep stderr for any message
12271 # that says an option was ignored or not supported.
12272 # When given -MP, icc 7.0 and 7.1 complain thusly:
12273 # icc: Command line warning: ignoring option '-M'; no argument required
12274 # The diagnosis changed in icc 8.0:
12275 # icc: Command line remark: option '-MP' not supported
12276 if (grep 'ignoring option' conftest.err ||
12277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12278 am_cv_CC_dependencies_compiler_type=$depmode
12285 rm -rf conftest.dir
12287 am_cv_CC_dependencies_compiler_type=none
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12292 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12296 test "x$enable_dependency_tracking" != xno \
12297 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12298 am__fastdepCC_TRUE=
12299 am__fastdepCC_FALSE='#'
12301 am__fastdepCC_TRUE='#'
12302 am__fastdepCC_FALSE=
12307 # POSIX will say in a future version that running "rm -f" with no argument
12308 # is OK; and we want to be able to make that assumption in our Makefile
12309 # recipes. So use an aggressive probe to check that the usage we want is
12310 # actually supported "in the wild" to an acceptable degree.
12311 # See automake bug#10828.
12312 # To make any issue more visible, cause the running configure to be aborted
12313 # by default if the 'rm' program in use doesn't match our expectations; the
12314 # user can still override this though.
12315 if rm -f && rm -fr && rm -rf; then : OK; else
12319 Your 'rm' program seems unable to run without file operands specified
12320 on the command line, even when the '-f' option is present. This is contrary
12321 to the behaviour of most rm programs out there, and not conforming with
12322 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12324 Please tell bug-automake@gnu.org about your system, including the value
12325 of your $PATH and any error possibly output before this message. This
12326 can help us improve future automake versions.
12329 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12330 echo 'Configuration will proceed anyway, since you have set the' >&2
12331 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12335 Aborting the configuration process, to ensure you take notice of the issue.
12337 You can download and install GNU coreutils to get an 'rm' implementation
12338 that behaves properly: <http://www.gnu.org/software/coreutils/>.
12340 If you want to complete the configuration process using your problematic
12341 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12342 to "yes", and re-run configure.
12345 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12349 # comment out for now since this requires automake 1.13 or higher and
12350 # travis has older one.
12351 # AM_EXTRA_RECURSIVE_TARGETS([it])
12353 # Check whether --enable-silent-rules was given.
12354 if test "${enable_silent_rules+set}" = set; then :
12355 enableval=$enable_silent_rules;
12358 case $enable_silent_rules in # (((
12359 yes) AM_DEFAULT_VERBOSITY=0;;
12360 no) AM_DEFAULT_VERBOSITY=1;;
12361 *) AM_DEFAULT_VERBOSITY=0;;
12363 am_make=${MAKE-make}
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12366 if ${am_cv_make_support_nested_variables+:} false; then :
12367 $as_echo_n "(cached) " >&6
12369 if $as_echo 'TRUE=$(BAR$(V))
12375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12376 am_cv_make_support_nested_variables=yes
12378 am_cv_make_support_nested_variables=no
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12383 if test $am_cv_make_support_nested_variables = yes; then
12385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12387 AM_V=$AM_DEFAULT_VERBOSITY
12388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12394 ac_config_headers="$ac_config_headers config.h"
12404 major=`echo $PACKAGE_VERSION |cut -d. -f1 | sed -e "s/^0-9//g"`
12405 minor=`echo $PACKAGE_VERSION |cut -d. -f2 | sed -e "s/^0-9//g"`
12406 patch=`echo $PACKAGE_VERSION |cut -d. -f3 | cut -d- -f1 | sed -e "s/^0-9//g"`
12408 PACKAGE_VERSION_NUM=`printf "0x%02x%02x%02x" "$major" "$minor" "$patch"`
12412 # Check whether --enable-werror was given.
12413 if test "${enable_werror+set}" = set; then :
12414 enableval=$enable_werror; werror=$enableval
12420 # Check whether --enable-debug was given.
12421 if test "${enable_debug+set}" = set; then :
12422 enableval=$enable_debug; debug=$enableval
12428 # Check whether --enable-threads was given.
12429 if test "${enable_threads+set}" = set; then :
12430 enableval=$enable_threads; threads=$enableval
12436 # Check whether --enable-app was given.
12437 if test "${enable_app+set}" = set; then :
12438 enableval=$enable_app; request_app=$enableval
12444 # Check whether --enable-hpack-tools was given.
12445 if test "${enable_hpack_tools+set}" = set; then :
12446 enableval=$enable_hpack_tools; request_hpack_tools=$enableval
12448 request_hpack_tools=check
12452 # Check whether --enable-asio-lib was given.
12453 if test "${enable_asio_lib+set}" = set; then :
12454 enableval=$enable_asio_lib; request_asio_lib=$enableval
12456 request_asio_lib=no
12460 # Check whether --enable-examples was given.
12461 if test "${enable_examples+set}" = set; then :
12462 enableval=$enable_examples; request_examples=$enableval
12464 request_examples=check
12468 # Check whether --enable-python-bindings was given.
12469 if test "${enable_python_bindings+set}" = set; then :
12470 enableval=$enable_python_bindings; request_python_bindings=$enableval
12472 request_python_bindings=check
12476 # Check whether --enable-failmalloc was given.
12477 if test "${enable_failmalloc+set}" = set; then :
12478 enableval=$enable_failmalloc; request_failmalloc=$enableval
12480 request_failmalloc=yes
12485 # Check whether --with-libxml2 was given.
12486 if test "${with_libxml2+set}" = set; then :
12487 withval=$with_libxml2; request_libxml2=$withval
12489 request_libxml2=check
12494 # Check whether --with-jemalloc was given.
12495 if test "${with_jemalloc+set}" = set; then :
12496 withval=$with_jemalloc; request_jemalloc=$withval
12498 request_jemalloc=check
12503 # Check whether --with-spdylay was given.
12504 if test "${with_spdylay+set}" = set; then :
12505 withval=$with_spdylay; request_spdylay=$withval
12507 request_spdylay=check
12512 # Check whether --with-cython was given.
12513 if test "${with_cython+set}" = set; then :
12514 withval=$with_cython; cython_path=$withval
12521 ac_cpp='$CPP $CPPFLAGS'
12522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12525 if test -n "$ac_tool_prefix"; then
12526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if ${ac_cv_prog_CC+:} false; then :
12531 $as_echo_n "(cached) " >&6
12533 if test -n "$CC"; then
12534 ac_cv_prog_CC="$CC" # Let the user override the test.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 if test -n "$CC"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12556 $as_echo "$CC" >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12564 if test -z "$ac_cv_prog_CC"; then
12566 # Extract the first word of "gcc", so it can be a program name with args.
12567 set dummy gcc; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12571 $as_echo_n "(cached) " >&6
12573 if test -n "$ac_ct_CC"; then
12574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12580 test -z "$as_dir" && as_dir=.
12581 for ac_exec_ext in '' $ac_executable_extensions; do
12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583 ac_cv_prog_ac_ct_CC="gcc"
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12594 if test -n "$ac_ct_CC"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12596 $as_echo "$ac_ct_CC" >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12602 if test "x$ac_ct_CC" = x; then
12605 case $cross_compiling:$ac_tool_warned in
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12609 ac_tool_warned=yes ;;
12614 CC="$ac_cv_prog_CC"
12617 if test -z "$CC"; then
12618 if test -n "$ac_tool_prefix"; then
12619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12620 set dummy ${ac_tool_prefix}cc; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_CC+:} false; then :
12624 $as_echo_n "(cached) " >&6
12626 if test -n "$CC"; then
12627 ac_cv_prog_CC="$CC" # Let the user override the test.
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_CC="${ac_tool_prefix}cc"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 if test -n "$CC"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12649 $as_echo "$CC" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12658 if test -z "$CC"; then
12659 # Extract the first word of "cc", so it can be a program name with args.
12660 set dummy cc; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if ${ac_cv_prog_CC+:} false; then :
12664 $as_echo_n "(cached) " >&6
12666 if test -n "$CC"; then
12667 ac_cv_prog_CC="$CC" # Let the user override the test.
12669 ac_prog_rejected=no
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12678 ac_prog_rejected=yes
12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 if test $ac_prog_rejected = yes; then
12690 # We found a bogon in the path, so make sure we never use it.
12691 set dummy $ac_cv_prog_CC
12693 if test $# != 0; then
12694 # We chose a different compiler from the bogus one.
12695 # However, it has the same basename, so the bogon will be chosen
12696 # first if we set CC to just the basename; use the full file name.
12698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12704 if test -n "$CC"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12706 $as_echo "$CC" >&6; }
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12714 if test -z "$CC"; then
12715 if test -n "$ac_tool_prefix"; then
12716 for ac_prog in cl.exe
12718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721 $as_echo_n "checking for $ac_word... " >&6; }
12722 if ${ac_cv_prog_CC+:} false; then :
12723 $as_echo_n "(cached) " >&6
12725 if test -n "$CC"; then
12726 ac_cv_prog_CC="$CC" # Let the user override the test.
12728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729 for as_dir in $PATH
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
12734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 if test -n "$CC"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12748 $as_echo "$CC" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12755 test -n "$CC" && break
12758 if test -z "$CC"; then
12760 for ac_prog in cl.exe
12762 # Extract the first word of "$ac_prog", so it can be a program name with args.
12763 set dummy $ac_prog; ac_word=$2
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765 $as_echo_n "checking for $ac_word... " >&6; }
12766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12767 $as_echo_n "(cached) " >&6
12769 if test -n "$ac_ct_CC"; then
12770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779 ac_cv_prog_ac_ct_CC="$ac_prog"
12780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12790 if test -n "$ac_ct_CC"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12792 $as_echo "$ac_ct_CC" >&6; }
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12799 test -n "$ac_ct_CC" && break
12802 if test "x$ac_ct_CC" = x; then
12805 case $cross_compiling:$ac_tool_warned in
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12809 ac_tool_warned=yes ;;
12818 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12820 as_fn_error $? "no acceptable C compiler found in \$PATH
12821 See \`config.log' for more details" "$LINENO" 5; }
12823 # Provide some information about the compiler.
12824 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12827 for ac_option in --version -v -V -qversion; do
12828 { { ac_try="$ac_compiler $ac_option >&5"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12834 $as_echo "$ac_try_echo"; } >&5
12835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12837 if test -s conftest.err; then
12839 ... rest of stderr output deleted ...
12840 10q' conftest.err >conftest.er1
12841 cat conftest.er1 >&5
12843 rm -f conftest.er1 conftest.err
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12849 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12850 if ${ac_cv_c_compiler_gnu+:} false; then :
12851 $as_echo_n "(cached) " >&6
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 ac_compiler_gnu=yes
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12877 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12878 if test $ac_compiler_gnu = yes; then
12883 ac_test_CFLAGS=${CFLAGS+set}
12884 ac_save_CFLAGS=$CFLAGS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12886 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12887 if ${ac_cv_prog_cc_g+:} false; then :
12888 $as_echo_n "(cached) " >&6
12890 ac_save_c_werror_flag=$ac_c_werror_flag
12891 ac_c_werror_flag=yes
12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 ac_cv_prog_cc_g=yes
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12920 if ac_fn_c_try_compile "$LINENO"; then :
12923 ac_c_werror_flag=$ac_save_c_werror_flag
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937 ac_cv_prog_cc_g=yes
12939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12944 ac_c_werror_flag=$ac_save_c_werror_flag
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12947 $as_echo "$ac_cv_prog_cc_g" >&6; }
12948 if test "$ac_test_CFLAGS" = set; then
12949 CFLAGS=$ac_save_CFLAGS
12950 elif test $ac_cv_prog_cc_g = yes; then
12951 if test "$GCC" = yes; then
12957 if test "$GCC" = yes; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12964 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12965 if ${ac_cv_prog_cc_c89+:} false; then :
12966 $as_echo_n "(cached) " >&6
12968 ac_cv_prog_cc_c89=no
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #include <stdarg.h>
12975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12976 struct buf { int x; };
12977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12978 static char *e (p, i)
12984 static char *f (char * (*g) (char **, int), char **p, ...)
12989 s = g (p, va_arg (v,int));
12994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12995 function prototypes and stuff, but not '\xHH' hex character constants.
12996 These don't provoke an error unfortunately, instead are silently treated
12997 as 'x'. The following induces an error, until -std is added to get
12998 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12999 array size at least. It's necessary to write '\x00'==0 to get something
13000 that's true only with -std. */
13001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13004 inside strings and character constants. */
13006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13008 int test (int i, double x);
13009 struct s1 {int (*f) (int a);};
13010 struct s2 {int (*f) (double a);};
13011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13023 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13025 CC="$ac_save_CC $ac_arg"
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 ac_cv_prog_cc_c89=$ac_arg
13029 rm -f core conftest.err conftest.$ac_objext
13030 test "x$ac_cv_prog_cc_c89" != "xno" && break
13032 rm -f conftest.$ac_ext
13037 case "x$ac_cv_prog_cc_c89" in
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13040 $as_echo "none needed" >&6; } ;;
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13043 $as_echo "unsupported" >&6; } ;;
13045 CC="$CC $ac_cv_prog_cc_c89"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13047 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13049 if test "x$ac_cv_prog_cc_c89" != xno; then :
13054 ac_cpp='$CPP $CPPFLAGS'
13055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060 ac_cpp='$CPP $CPPFLAGS'
13061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13065 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13066 if ${am_cv_prog_cc_c_o+:} false; then :
13067 $as_echo_n "(cached) " >&6
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13080 # Make sure it works both with $CC and with simple cc.
13081 # Following AC_PROG_CC_C_O, we do the test twice because some
13082 # compilers refuse to overwrite an existing .o file with -o,
13083 # though they will create one.
13084 am_cv_prog_cc_c_o=yes
13085 for am_i in 1 2; do
13086 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13087 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } \
13091 && test -f conftest2.$ac_objext; then
13094 am_cv_prog_cc_c_o=no
13098 rm -f core conftest*
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13102 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13103 if test "$am_cv_prog_cc_c_o" != yes; then
13104 # Losing compiler, so override with the script.
13105 # FIXME: It is wrong to rewrite CC.
13106 # But if we don't then we get into trouble of one sort or another.
13107 # A longer-term fix would be to have automake use am__CC in this case,
13108 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13109 CC="$am_aux_dir/compile $CC"
13112 ac_cpp='$CPP $CPPFLAGS'
13113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119 ac_cpp='$CXXCPP $CPPFLAGS'
13120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13123 if test -z "$CXX"; then
13124 if test -n "$CCC"; then
13127 if test -n "$ac_tool_prefix"; then
13128 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if ${ac_cv_prog_CXX+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 if test -n "$CXX"; then
13138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 CXX=$ac_cv_prog_CXX
13158 if test -n "$CXX"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13160 $as_echo "$CXX" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13167 test -n "$CXX" && break
13170 if test -z "$CXX"; then
13172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13174 # Extract the first word of "$ac_prog", so it can be a program name with args.
13175 set dummy $ac_prog; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 if test -n "$ac_ct_CXX"; then
13182 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191 ac_cv_prog_ac_ct_CXX="$ac_prog"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13202 if test -n "$ac_ct_CXX"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13204 $as_echo "$ac_ct_CXX" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13211 test -n "$ac_ct_CXX" && break
13214 if test "x$ac_ct_CXX" = x; then
13217 case $cross_compiling:$ac_tool_warned in
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13221 ac_tool_warned=yes ;;
13229 # Provide some information about the compiler.
13230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13233 for ac_option in --version -v -V -qversion; do
13234 { { ac_try="$ac_compiler $ac_option >&5"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13240 $as_echo "$ac_try_echo"; } >&5
13241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13243 if test -s conftest.err; then
13245 ... rest of stderr output deleted ...
13246 10q' conftest.err >conftest.er1
13247 cat conftest.er1 >&5
13249 rm -f conftest.er1 conftest.err
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13255 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13256 if ${ac_cv_cxx_compiler_gnu+:} false; then :
13257 $as_echo_n "(cached) " >&6
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13273 if ac_fn_cxx_try_compile "$LINENO"; then :
13274 ac_compiler_gnu=yes
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13283 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13284 if test $ac_compiler_gnu = yes; then
13289 ac_test_CXXFLAGS=${CXXFLAGS+set}
13290 ac_save_CXXFLAGS=$CXXFLAGS
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13292 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13293 if ${ac_cv_prog_cxx_g+:} false; then :
13294 $as_echo_n "(cached) " >&6
13296 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13297 ac_cxx_werror_flag=yes
13298 ac_cv_prog_cxx_g=no
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13311 if ac_fn_cxx_try_compile "$LINENO"; then :
13312 ac_cv_prog_cxx_g=yes
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13326 if ac_fn_cxx_try_compile "$LINENO"; then :
13329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13342 if ac_fn_cxx_try_compile "$LINENO"; then :
13343 ac_cv_prog_cxx_g=yes
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13353 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13354 if test "$ac_test_CXXFLAGS" = set; then
13355 CXXFLAGS=$ac_save_CXXFLAGS
13356 elif test $ac_cv_prog_cxx_g = yes; then
13357 if test "$GXX" = yes; then
13363 if test "$GXX" = yes; then
13370 ac_cpp='$CPP $CPPFLAGS'
13371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13377 func_stripname_cnf ()
13380 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13381 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13383 } # func_stripname_cnf
13385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13387 (test "X$CXX" != "Xg++"))) ; then
13389 ac_cpp='$CXXCPP $CPPFLAGS'
13390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13394 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13395 if test -z "$CXXCPP"; then
13396 if ${ac_cv_prog_CXXCPP+:} false; then :
13397 $as_echo_n "(cached) " >&6
13399 # Double quotes because CXXCPP needs to be expanded
13400 for CXXCPP in "$CXX -E" "/lib/cpp"
13402 ac_preproc_ok=false
13403 for ac_cxx_preproc_warn_flag in '' yes
13405 # Use a header file that comes with gcc, so configuring glibc
13406 # with a fresh cross-compiler works.
13407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13408 # <limits.h> exists even on freestanding compilers.
13409 # On the NeXT, cc -E runs the code through the compiler's parser,
13410 # not just through cpp. "Syntax error" is here to catch this case.
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 # include <limits.h>
13416 # include <assert.h>
13420 if ac_fn_cxx_try_cpp "$LINENO"; then :
13423 # Broken: fails on valid input.
13426 rm -f conftest.err conftest.i conftest.$ac_ext
13428 # OK, works on sane cases. Now check whether nonexistent headers
13429 # can be detected and how.
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 #include <ac_nonexistent.h>
13434 if ac_fn_cxx_try_cpp "$LINENO"; then :
13435 # Broken: success on invalid input.
13438 # Passes both tests.
13442 rm -f conftest.err conftest.i conftest.$ac_ext
13445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446 rm -f conftest.i conftest.err conftest.$ac_ext
13447 if $ac_preproc_ok; then :
13452 ac_cv_prog_CXXCPP=$CXXCPP
13455 CXXCPP=$ac_cv_prog_CXXCPP
13457 ac_cv_prog_CXXCPP=$CXXCPP
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13460 $as_echo "$CXXCPP" >&6; }
13461 ac_preproc_ok=false
13462 for ac_cxx_preproc_warn_flag in '' yes
13464 # Use a header file that comes with gcc, so configuring glibc
13465 # with a fresh cross-compiler works.
13466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13467 # <limits.h> exists even on freestanding compilers.
13468 # On the NeXT, cc -E runs the code through the compiler's parser,
13469 # not just through cpp. "Syntax error" is here to catch this case.
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13473 # include <limits.h>
13475 # include <assert.h>
13479 if ac_fn_cxx_try_cpp "$LINENO"; then :
13482 # Broken: fails on valid input.
13485 rm -f conftest.err conftest.i conftest.$ac_ext
13487 # OK, works on sane cases. Now check whether nonexistent headers
13488 # can be detected and how.
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 #include <ac_nonexistent.h>
13493 if ac_fn_cxx_try_cpp "$LINENO"; then :
13494 # Broken: success on invalid input.
13497 # Passes both tests.
13501 rm -f conftest.err conftest.i conftest.$ac_ext
13504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13505 rm -f conftest.i conftest.err conftest.$ac_ext
13506 if $ac_preproc_ok; then :
13509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13511 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13512 See \`config.log' for more details" "$LINENO" 5; }
13516 ac_cpp='$CPP $CPPFLAGS'
13517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522 _lt_caught_CXX_error=yes
13526 ac_cpp='$CXXCPP $CPPFLAGS'
13527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13531 archive_cmds_need_lc_CXX=no
13532 allow_undefined_flag_CXX=
13533 always_export_symbols_CXX=no
13534 archive_expsym_cmds_CXX=
13535 compiler_needs_object_CXX=no
13536 export_dynamic_flag_spec_CXX=
13537 hardcode_direct_CXX=no
13538 hardcode_direct_absolute_CXX=no
13539 hardcode_libdir_flag_spec_CXX=
13540 hardcode_libdir_separator_CXX=
13541 hardcode_minus_L_CXX=no
13542 hardcode_shlibpath_var_CXX=unsupported
13543 hardcode_automatic_CXX=no
13544 inherit_rpath_CXX=no
13546 module_expsym_cmds_CXX=
13547 link_all_deplibs_CXX=unknown
13548 old_archive_cmds_CXX=$old_archive_cmds
13549 reload_flag_CXX=$reload_flag
13550 reload_cmds_CXX=$reload_cmds
13551 no_undefined_flag_CXX=
13552 whole_archive_flag_spec_CXX=
13553 enable_shared_with_static_runtimes_CXX=no
13555 # Source file extension for C++ test sources.
13558 # Object file extension for compiled C++ test sources.
13562 # No sense in running all these tests if we already determined that
13563 # the CXX compiler isn't working. Some variables (like enable_shared)
13564 # are currently assumed to apply to all compilers on this platform,
13565 # and will be corrupted by setting them based on a non-working compiler.
13566 if test "$_lt_caught_CXX_error" != yes; then
13567 # Code to be used in simple compile tests
13568 lt_simple_compile_test_code="int some_variable = 0;"
13570 # Code to be used in simple link tests
13571 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13580 # If no C compiler was specified, use CC.
13583 # If no C compiler flags were specified, use CFLAGS.
13584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13586 # Allow CC to be a program name with arguments.
13590 # save warnings/boilerplate of simple test code
13591 ac_outfile=conftest.$ac_objext
13592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13594 _lt_compiler_boilerplate=`cat conftest.err`
13597 ac_outfile=conftest.$ac_objext
13598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13600 _lt_linker_boilerplate=`cat conftest.err`
13604 # Allow CC to be a program name with arguments.
13606 lt_save_CFLAGS=$CFLAGS
13610 lt_save_with_gnu_ld=$with_gnu_ld
13611 lt_save_path_LD=$lt_cv_path_LD
13612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13613 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13615 $as_unset lt_cv_prog_gnu_ld
13617 if test -n "${lt_cv_path_LDCXX+set}"; then
13618 lt_cv_path_LD=$lt_cv_path_LDCXX
13620 $as_unset lt_cv_path_LD
13622 test -z "${LDCXX+set}" || LD=$LDCXX
13627 for cc_temp in $compiler""; do
13629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13635 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13638 if test -n "$compiler"; then
13639 # We don't want -fno-exception when compiling C++ code, so set the
13640 # no_builtin_flag separately
13641 if test "$GXX" = yes; then
13642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13644 lt_prog_compiler_no_builtin_flag_CXX=
13647 if test "$GXX" = yes; then
13648 # Set up default GNU C++ configuration
13652 # Check whether --with-gnu-ld was given.
13653 if test "${with_gnu_ld+set}" = set; then :
13654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13660 if test "$GCC" = yes; then
13661 # Check if gcc -print-prog-name=ld gives a path.
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13663 $as_echo_n "checking for ld used by $CC... " >&6; }
13666 # gcc leaves a trailing carriage return which upsets mingw
13667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13672 # Accept absolute paths.
13674 re_direlt='/[^/][^/]*/\.\./'
13675 # Canonicalize the pathname of ld
13676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13680 test -z "$LD" && LD="$ac_prog"
13683 # If it fails, then pretend we aren't using GCC.
13687 # If it is relative, then search for the first ld in PATH.
13688 with_gnu_ld=unknown
13691 elif test "$with_gnu_ld" = yes; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13693 $as_echo_n "checking for GNU ld... " >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13696 $as_echo_n "checking for non-GNU ld... " >&6; }
13698 if ${lt_cv_path_LD+:} false; then :
13699 $as_echo_n "(cached) " >&6
13701 if test -z "$LD"; then
13702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13703 for ac_dir in $PATH; do
13705 test -z "$ac_dir" && ac_dir=.
13706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13707 lt_cv_path_LD="$ac_dir/$ac_prog"
13708 # Check to see if the program is GNU ld. I'd rather use --version,
13709 # but apparently some variants of GNU ld only accept -v.
13710 # Break only if it was the GNU/non-GNU ld that we prefer.
13711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13712 *GNU* | *'with BFD'*)
13713 test "$with_gnu_ld" != no && break
13716 test "$with_gnu_ld" != yes && break
13723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13727 LD="$lt_cv_path_LD"
13728 if test -n "$LD"; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13730 $as_echo "$LD" >&6; }
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 $as_echo "no" >&6; }
13735 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13738 if ${lt_cv_prog_gnu_ld+:} false; then :
13739 $as_echo_n "(cached) " >&6
13741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13742 case `$LD -v 2>&1 </dev/null` in
13743 *GNU* | *'with BFD'*)
13744 lt_cv_prog_gnu_ld=yes
13747 lt_cv_prog_gnu_ld=no
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13753 with_gnu_ld=$lt_cv_prog_gnu_ld
13761 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13762 # archiving commands below assume that GNU ld is being used.
13763 if test "$with_gnu_ld" = yes; then
13764 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13765 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'
13767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13770 # If archive_cmds runs LD, not CC, wlarc should be empty
13771 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13772 # investigate it a little bit more. (MM)
13775 # ancient GNU ld didn't support --whole-archive et. al.
13776 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13777 $GREP 'no-whole-archive' > /dev/null; then
13778 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13780 whole_archive_flag_spec_CXX=
13786 # A generic and very simple default shared library creation
13787 # command for GNU C++ for the case where it uses the native
13788 # linker, instead of GNU ld. If possible, this setting should
13789 # overridden to take advantage of the native linker features on
13790 # the platform it is being used on.
13791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13794 # Commands to make compiler produce verbose output that lists
13795 # what "hidden" libraries, object files and flags are used when
13796 # linking a shared library.
13797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13805 # PORTME: fill in a description of your system's C++ link characteristics
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13811 # FIXME: insert proper C++ library support
13815 if test "$host_cpu" = ia64; then
13816 # On IA64, the linker does run time linking by default, so we don't
13817 # have to do anything special.
13818 aix_use_runtimelinking=no
13819 exp_sym_flag='-Bexport'
13822 aix_use_runtimelinking=no
13824 # Test if we are trying to use run time linking or normal
13825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13826 # need to do runtime linking.
13827 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13828 for ld_flag in $LDFLAGS; do
13831 aix_use_runtimelinking=yes
13839 exp_sym_flag='-bexport'
13840 no_entry_flag='-bnoentry'
13843 # When large executables or shared objects are built, AIX ld can
13844 # have problems creating the table of contents. If linking a library
13845 # or program results in "error TOC overflow" add -mminimal-toc to
13846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13849 archive_cmds_CXX=''
13850 hardcode_direct_CXX=yes
13851 hardcode_direct_absolute_CXX=yes
13852 hardcode_libdir_separator_CXX=':'
13853 link_all_deplibs_CXX=yes
13854 file_list_spec_CXX='${wl}-f,'
13856 if test "$GXX" = yes; then
13857 case $host_os in aix4.[012]|aix4.[012].*)
13858 # We only want to do this on AIX 4.2 and lower, the check
13859 # below for broken collect2 doesn't work under 4.3+
13860 collect2name=`${CC} -print-prog-name=collect2`
13861 if test -f "$collect2name" &&
13862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13864 # We have reworked collect2
13867 # We have old collect2
13868 hardcode_direct_CXX=unsupported
13869 # It fails to find uninstalled libraries when the uninstalled
13870 # path is not listed in the libpath. Setting hardcode_minus_L
13871 # to unsupported forces relinking
13872 hardcode_minus_L_CXX=yes
13873 hardcode_libdir_flag_spec_CXX='-L$libdir'
13874 hardcode_libdir_separator_CXX=
13877 shared_flag='-shared'
13878 if test "$aix_use_runtimelinking" = yes; then
13879 shared_flag="$shared_flag "'${wl}-G'
13883 if test "$host_cpu" = ia64; then
13884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13885 # chokes on -Wl,-G. The following line is correct:
13888 if test "$aix_use_runtimelinking" = yes; then
13889 shared_flag='${wl}-G'
13891 shared_flag='${wl}-bM:SRE'
13896 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13897 # It seems that -bexpall does not export symbols beginning with
13898 # underscore (_), so it is better to generate a list of symbols to
13900 always_export_symbols_CXX=yes
13901 if test "$aix_use_runtimelinking" = yes; then
13902 # Warning - without using the other runtime loading flags (-brtl),
13903 # -berok will link without error, but may produce a broken library.
13904 allow_undefined_flag_CXX='-berok'
13905 # Determine the default libpath from the value encoded in an empty
13907 if test "${lt_cv_aix_libpath+set}" = set; then
13908 aix_libpath=$lt_cv_aix_libpath
13910 if ${lt_cv_aix_libpath__CXX+:} false; then :
13911 $as_echo_n "(cached) " >&6
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13924 if ac_fn_cxx_try_link "$LINENO"; then :
13926 lt_aix_libpath_sed='
13927 /Import File Strings/,/^$/ {
13929 s/^0 *\([^ ]*\) *$/\1/
13933 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13934 # Check for a 64-bit object if we didn't find anything.
13935 if test -z "$lt_cv_aix_libpath__CXX"; then
13936 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 if test -z "$lt_cv_aix_libpath__CXX"; then
13942 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13947 aix_libpath=$lt_cv_aix_libpath__CXX
13950 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13952 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13954 if test "$host_cpu" = ia64; then
13955 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13956 allow_undefined_flag_CXX="-z nodefs"
13957 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"
13959 # Determine the default libpath from the value encoded in an
13960 # empty executable.
13961 if test "${lt_cv_aix_libpath+set}" = set; then
13962 aix_libpath=$lt_cv_aix_libpath
13964 if ${lt_cv_aix_libpath__CXX+:} false; then :
13965 $as_echo_n "(cached) " >&6
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13978 if ac_fn_cxx_try_link "$LINENO"; then :
13980 lt_aix_libpath_sed='
13981 /Import File Strings/,/^$/ {
13983 s/^0 *\([^ ]*\) *$/\1/
13987 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13988 # Check for a 64-bit object if we didn't find anything.
13989 if test -z "$lt_cv_aix_libpath__CXX"; then
13990 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13993 rm -f core conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13995 if test -z "$lt_cv_aix_libpath__CXX"; then
13996 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14001 aix_libpath=$lt_cv_aix_libpath__CXX
14004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14005 # Warning - without using the other run time loading flags,
14006 # -berok will link without error, but may produce a broken library.
14007 no_undefined_flag_CXX=' ${wl}-bernotok'
14008 allow_undefined_flag_CXX=' ${wl}-berok'
14009 if test "$with_gnu_ld" = yes; then
14010 # We only use this code for GNU lds that support --whole-archive.
14011 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14013 # Exported symbols can be pulled into shared objects from archives
14014 whole_archive_flag_spec_CXX='$convenience'
14016 archive_cmds_need_lc_CXX=yes
14017 # This is similar to how AIX traditionally builds its shared
14019 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14025 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14026 allow_undefined_flag_CXX=unsupported
14027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14028 # support --undefined. This deserves some investigation. FIXME
14029 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14036 case $cc_basename in
14038 # FIXME: insert proper C++ library support
14044 cygwin* | mingw* | pw32* | cegcc*)
14045 case $GXX,$cc_basename in
14048 # hardcode_libdir_flag_spec is actually meaningless, as there is
14049 # no search path for DLLs.
14050 hardcode_libdir_flag_spec_CXX=' '
14051 allow_undefined_flag_CXX=unsupported
14052 always_export_symbols_CXX=yes
14053 file_list_spec_CXX='@'
14054 # Tell ltmain to make .lib files, not .a files.
14056 # Tell ltmain to make .dll files, not .so files.
14058 # FIXME: Setting linknames here is a bad hack.
14059 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14060 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14061 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14063 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14067 # The linker will not automatically build a static lib if we build a DLL.
14068 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14069 enable_shared_with_static_runtimes_CXX=yes
14071 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14072 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14073 lt_tool_outputfile="@TOOL_OUTPUT@"~
14074 case $lt_outputfile in
14077 lt_outputfile="$lt_outputfile.exe"
14078 lt_tool_outputfile="$lt_tool_outputfile.exe"
14081 func_to_tool_file "$lt_outputfile"~
14082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14084 $RM "$lt_outputfile.manifest";
14089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14090 # as there is no search path for DLLs.
14091 hardcode_libdir_flag_spec_CXX='-L$libdir'
14092 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14093 allow_undefined_flag_CXX=unsupported
14094 always_export_symbols_CXX=no
14095 enable_shared_with_static_runtimes_CXX=yes
14097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14098 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'
14099 # If the export-symbols file already is a .def file (1st line
14100 # is EXPORTS), use it as is; otherwise, prepend...
14101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14102 cp $export_symbols $output_objdir/$soname.def;
14104 echo EXPORTS > $output_objdir/$soname.def;
14105 cat $export_symbols >> $output_objdir/$soname.def;
14107 $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'
14114 darwin* | rhapsody*)
14117 archive_cmds_need_lc_CXX=no
14118 hardcode_direct_CXX=no
14119 hardcode_automatic_CXX=yes
14120 hardcode_shlibpath_var_CXX=unsupported
14121 if test "$lt_cv_ld_force_load" = "yes"; then
14122 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\"`'
14125 whole_archive_flag_spec_CXX=''
14127 link_all_deplibs_CXX=yes
14128 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14129 case $cc_basename in
14130 ifort*) _lt_dar_can_shared=yes ;;
14131 *) _lt_dar_can_shared=$GCC ;;
14133 if test "$_lt_dar_can_shared" = "yes"; then
14134 output_verbose_link_cmd=func_echo_all
14135 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}"
14136 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14137 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}"
14138 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}"
14139 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14140 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}"
14141 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}"
14151 case $cc_basename in
14153 # FIXME: insert proper C++ library support
14157 # Green Hills C++ Compiler
14158 # FIXME: insert proper C++ library support
14162 # FIXME: insert proper C++ library support
14169 # C++ shared libraries reported to be fairly broken before
14175 archive_cmds_need_lc_CXX=no
14178 freebsd* | dragonfly*)
14179 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14185 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14186 link_all_deplibs_CXX=yes
14190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14191 hardcode_libdir_separator_CXX=:
14192 export_dynamic_flag_spec_CXX='${wl}-E'
14193 hardcode_direct_CXX=yes
14194 hardcode_minus_L_CXX=yes # Not in the search PATH,
14195 # but as the default
14196 # location of the library.
14198 case $cc_basename in
14200 # FIXME: insert proper C++ library support
14204 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14205 # Commands to make compiler produce verbose output that lists
14206 # what "hidden" libraries, object files and flags are used when
14207 # linking a shared library.
14209 # There doesn't appear to be a way to prevent this compiler from
14210 # explicitly linking system object files so we need to strip them
14211 # from the output so that they don't get included in the library
14213 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"'
14216 if test "$GXX" = yes; then
14217 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14219 # FIXME: insert proper C++ library support
14227 if test $with_gnu_ld = no; then
14228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14229 hardcode_libdir_separator_CXX=:
14235 export_dynamic_flag_spec_CXX='${wl}-E'
14241 hardcode_direct_CXX=no
14242 hardcode_shlibpath_var_CXX=no
14245 hardcode_direct_CXX=yes
14246 hardcode_direct_absolute_CXX=yes
14247 hardcode_minus_L_CXX=yes # Not in the search PATH,
14248 # but as the default
14249 # location of the library.
14253 case $cc_basename in
14255 # FIXME: insert proper C++ library support
14261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14270 # Commands to make compiler produce verbose output that lists
14271 # what "hidden" libraries, object files and flags are used when
14272 # linking a shared library.
14274 # There doesn't appear to be a way to prevent this compiler from
14275 # explicitly linking system object files so we need to strip them
14276 # from the output so that they don't get included in the library
14278 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"'
14281 if test "$GXX" = yes; then
14282 if test $with_gnu_ld = no; then
14285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14288 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14291 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'
14296 # FIXME: insert proper C++ library support
14304 hardcode_direct_CXX=no
14305 hardcode_shlibpath_var_CXX=no
14306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14307 export_dynamic_flag_spec_CXX='${wl}-E'
14308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14309 # Instead, shared libraries are loaded at an image base (0x10000000 by
14310 # default) and relocated if they conflict, which is a slow very memory
14311 # consuming and fragmenting process. To avoid this, we pick a random,
14312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14314 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'
14315 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'
14318 case $cc_basename in
14321 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'
14323 # Archives containing C++ object files must be created using
14324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14325 # necessary to make sure instantiated templates are included
14327 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14330 if test "$GXX" = yes; then
14331 if test "$with_gnu_ld" = no; then
14332 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'
14334 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'
14337 link_all_deplibs_CXX=yes
14340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14341 hardcode_libdir_separator_CXX=:
14342 inherit_rpath_CXX=yes
14345 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14346 case $cc_basename in
14348 # Kuck and Associates, Inc. (KAI) C++ Compiler
14350 # KCC will only create a shared library if the output file
14351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14352 # to its proper name (with version) after linking.
14353 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'
14354 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'
14355 # Commands to make compiler produce verbose output that lists
14356 # what "hidden" libraries, object files and flags are used when
14357 # linking a shared library.
14359 # There doesn't appear to be a way to prevent this compiler from
14360 # explicitly linking system object files so we need to strip them
14361 # from the output so that they don't get included in the library
14363 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"'
14365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14368 # Archives containing C++ object files must be created using
14369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14375 # version 8.0 and above of icpc choke on multiply defined symbols
14376 # if we add $predep_objects and $postdep_objects, however 7.1 and
14377 # earlier do not add the objects themselves.
14378 case `$CC -V 2>&1` in
14380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14381 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'
14383 *) # Version 8.0 or newer
14386 ia64*) tmp_idyn=' -i_dynamic';;
14388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14389 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'
14392 archive_cmds_need_lc_CXX=no
14393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14398 # Portland Group C++ compiler
14400 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14401 prelink_cmds_CXX='tpldir=Template.dir~
14403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14404 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14405 old_archive_cmds_CXX='tpldir=Template.dir~
14407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14410 archive_cmds_CXX='tpldir=Template.dir~
14412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14414 archive_expsym_cmds_CXX='tpldir=Template.dir~
14416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14417 $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'
14419 *) # Version 6 and above use weak symbols
14420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14421 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'
14425 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14427 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'
14431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14432 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'
14434 runpath_var=LD_RUN_PATH
14435 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14436 hardcode_libdir_separator_CXX=:
14438 # Commands to make compiler produce verbose output that lists
14439 # what "hidden" libraries, object files and flags are used when
14440 # linking a shared library.
14442 # There doesn't appear to be a way to prevent this compiler from
14443 # explicitly linking system object files so we need to strip them
14444 # from the output so that they don't get included in the library
14446 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'
14448 xl* | mpixl* | bgxl*)
14449 # IBM XL 8.0 on PPC, with GNU ld
14450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14452 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14453 if test "x$supports_anon_versioning" = xyes; then
14454 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14456 echo "local: *; };" >> $output_objdir/$libname.ver~
14457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14461 case `$CC -V 2>&1 | sed 5q` in
14464 no_undefined_flag_CXX=' -zdefs'
14465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14466 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'
14467 hardcode_libdir_flag_spec_CXX='-R$libdir'
14468 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'
14469 compiler_needs_object_CXX=yes
14471 # Not sure whether something based on
14472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14474 output_verbose_link_cmd='func_echo_all'
14476 # Archives containing C++ object files must be created using
14477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14478 # necessary to make sure instantiated templates are included
14480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14488 # FIXME: insert proper C++ library support
14493 # FIXME: insert proper C++ library support
14498 case $cc_basename in
14500 # FIXME: insert proper C++ library support
14504 # FIXME: insert proper C++ library support
14511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14514 hardcode_libdir_flag_spec_CXX='-R$libdir'
14515 hardcode_direct_CXX=yes
14516 hardcode_shlibpath_var_CXX=no
14518 # Workaround some broken pre-1.5 toolchains
14519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14527 # C++ shared libraries are fairly broken
14532 if test -f /usr/libexec/ld.so; then
14533 hardcode_direct_CXX=yes
14534 hardcode_shlibpath_var_CXX=no
14535 hardcode_direct_absolute_CXX=yes
14536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14539 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14540 export_dynamic_flag_spec_CXX='${wl}-E'
14541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14543 output_verbose_link_cmd=func_echo_all
14549 osf3* | osf4* | osf5*)
14550 case $cc_basename in
14552 # Kuck and Associates, Inc. (KAI) C++ Compiler
14554 # KCC will only create a shared library if the output file
14555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14556 # to its proper name (with version) after linking.
14557 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'
14559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14560 hardcode_libdir_separator_CXX=:
14562 # Archives containing C++ object files must be created using
14563 # the KAI C++ compiler.
14565 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14566 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14570 # Rational C++ 2.4.1
14571 # FIXME: insert proper C++ library support
14577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14578 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'
14579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582 allow_undefined_flag_CXX=' -expect_unresolved \*'
14583 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'
14584 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14585 echo "-hidden">> $lib.exp~
14586 $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~
14588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14592 hardcode_libdir_separator_CXX=:
14594 # Commands to make compiler produce verbose output that lists
14595 # what "hidden" libraries, object files and flags are used when
14596 # linking a shared library.
14598 # There doesn't appear to be a way to prevent this compiler from
14599 # explicitly linking system object files so we need to strip them
14600 # from the output so that they don't get included in the library
14602 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"'
14605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14609 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'
14612 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'
14616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14617 hardcode_libdir_separator_CXX=:
14619 # Commands to make compiler produce verbose output that lists
14620 # what "hidden" libraries, object files and flags are used when
14621 # linking a shared library.
14622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14625 # FIXME: insert proper C++ library support
14633 # FIXME: insert proper C++ library support
14638 case $cc_basename in
14641 # FIXME: insert proper C++ library support
14646 # FIXME: insert proper C++ library support
14650 # FIXME: insert proper C++ library support
14657 case $cc_basename in
14659 # Sun C++ 4.2, 5.x and Centerline C++
14660 archive_cmds_need_lc_CXX=yes
14661 no_undefined_flag_CXX=' -zdefs'
14662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14664 $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'
14666 hardcode_libdir_flag_spec_CXX='-R$libdir'
14667 hardcode_shlibpath_var_CXX=no
14669 solaris2.[0-5] | solaris2.[0-5].*) ;;
14671 # The compiler driver will combine and reorder linker options,
14672 # but understands `-z linker_flag'.
14673 # Supported since Solaris 2.6 (maybe 2.5.1?)
14674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14677 link_all_deplibs_CXX=yes
14679 output_verbose_link_cmd='func_echo_all'
14681 # Archives containing C++ object files must be created using
14682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14683 # necessary to make sure instantiated templates are included
14685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14688 # Green Hills C++ Compiler
14689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14691 # The C++ compiler must be used to create the archive.
14692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14695 # GNU C++ compiler with Solaris linker
14696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14698 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14699 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14701 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14703 # Commands to make compiler produce verbose output that lists
14704 # what "hidden" libraries, object files and flags are used when
14705 # linking a shared library.
14706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14714 # Commands to make compiler produce verbose output that lists
14715 # what "hidden" libraries, object files and flags are used when
14716 # linking a shared library.
14717 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14722 solaris2.[0-5] | solaris2.[0-5].*) ;;
14724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14733 no_undefined_flag_CXX='${wl}-z,text'
14734 archive_cmds_need_lc_CXX=no
14735 hardcode_shlibpath_var_CXX=no
14736 runpath_var='LD_RUN_PATH'
14738 case $cc_basename in
14740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 sysv5* | sco3.2v5* | sco5v6*)
14751 # Note: We can NOT use -z defs as we might desire, because we do not
14752 # link with -lc, and that would cause any symbols used from libc to
14753 # always be unresolved, which means just about no library would
14754 # ever link correctly. If we're not using GNU ld we use -z text
14755 # though, which does catch some bad symbols but isn't as heavy-handed
14757 no_undefined_flag_CXX='${wl}-z,text'
14758 allow_undefined_flag_CXX='${wl}-z,nodefs'
14759 archive_cmds_need_lc_CXX=no
14760 hardcode_shlibpath_var_CXX=no
14761 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14762 hardcode_libdir_separator_CXX=':'
14763 link_all_deplibs_CXX=yes
14764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14765 runpath_var='LD_RUN_PATH'
14767 case $cc_basename in
14769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14771 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14772 '"$old_archive_cmds_CXX"
14773 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14774 '"$reload_cmds_CXX"
14777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14784 case $cc_basename in
14786 # NonStop-UX NCC 3.20
14787 # FIXME: insert proper C++ library support
14791 # FIXME: insert proper C++ library support
14798 # FIXME: insert proper C++ library support
14803 # FIXME: insert proper C++ library support
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14809 $as_echo "$ld_shlibs_CXX" >&6; }
14810 test "$ld_shlibs_CXX" = no && can_build_shared=no
14816 ## There is no encapsulation within the following macros, do not change
14817 ## the running order or otherwise move them around unless you know exactly
14818 ## what you are doing...
14819 # Dependencies to place before and after the object being linked:
14820 predep_objects_CXX=
14821 postdep_objects_CXX=
14824 compiler_lib_search_path_CXX=
14826 cat > conftest.$ac_ext <<_LT_EOF
14830 Foo (void) { a = 0; }
14837 _lt_libdeps_save_CFLAGS=$CFLAGS
14838 case "$CC $CFLAGS " in #(
14839 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14840 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14841 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14845 (eval $ac_compile) 2>&5
14847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848 test $ac_status = 0; }; then
14849 # Parse the compiler output and extract the necessary
14850 # objects, libraries and library flags.
14852 # Sentinel used to keep track of whether or not we are before
14853 # the conftest object file.
14854 pre_test_object_deps_done=no
14856 for p in `eval "$output_verbose_link_cmd"`; do
14857 case ${prev}${p} in
14860 # Some compilers place space between "-{L,R}" and the path.
14861 # Remove the space.
14862 if test $p = "-L" ||
14863 test $p = "-R"; then
14868 # Expand the sysroot to ease extracting the directories later.
14869 if test -z "$prev"; then
14871 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14872 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14873 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14877 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14879 if test "$pre_test_object_deps_done" = no; then
14882 # Internal compiler library paths should come after those
14883 # provided the user. The postdeps already come after the
14884 # user supplied libs so there is no need to process them.
14885 if test -z "$compiler_lib_search_path_CXX"; then
14886 compiler_lib_search_path_CXX="${prev}${p}"
14888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14891 # The "-l" case would never come before the object being
14892 # linked, so don't bother handling this case.
14895 if test -z "$postdeps_CXX"; then
14896 postdeps_CXX="${prev}${p}"
14898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14904 *.lto.$objext) ;; # Ignore GCC LTO objects
14906 # This assumes that the test object file only shows up
14907 # once in the compiler output.
14908 if test "$p" = "conftest.$objext"; then
14909 pre_test_object_deps_done=yes
14913 if test "$pre_test_object_deps_done" = no; then
14914 if test -z "$predep_objects_CXX"; then
14915 predep_objects_CXX="$p"
14917 predep_objects_CXX="$predep_objects_CXX $p"
14920 if test -z "$postdep_objects_CXX"; then
14921 postdep_objects_CXX="$p"
14923 postdep_objects_CXX="$postdep_objects_CXX $p"
14928 *) ;; # Ignore the rest.
14936 echo "libtool.m4: error: problem compiling CXX test program"
14939 $RM -f confest.$objext
14940 CFLAGS=$_lt_libdeps_save_CFLAGS
14942 # PORTME: override above test on systems where it is broken
14945 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14946 # hack all around it, let's just trust "g++" to DTRT.
14947 predep_objects_CXX=
14948 postdep_objects_CXX=
14953 case `$CC -V 2>&1 | sed 5q` in
14957 # The more standards-conforming stlport4 library is
14958 # incompatible with the Cstd library. Avoid specifying
14959 # it if it's in CXXFLAGS. Ignore libCrun as
14960 # -library=stlport4 depends on it.
14961 case " $CXX $CXXFLAGS " in
14962 *" -library=stlport4 "*)
14963 solaris_use_stlport4=yes
14967 if test "$solaris_use_stlport4" != yes; then
14968 postdeps_CXX='-library=Cstd -library=Crun'
14975 case $cc_basename in
14977 # The more standards-conforming stlport4 library is
14978 # incompatible with the Cstd library. Avoid specifying
14979 # it if it's in CXXFLAGS. Ignore libCrun as
14980 # -library=stlport4 depends on it.
14981 case " $CXX $CXXFLAGS " in
14982 *" -library=stlport4 "*)
14983 solaris_use_stlport4=yes
14987 # Adding this requires a known-good setup of shared libraries for
14988 # Sun compiler versions before 5.6, else PIC objects from an old
14989 # archive will be linked into the output, leading to subtle bugs.
14990 if test "$solaris_use_stlport4" != yes; then
14991 postdeps_CXX='-library=Cstd -library=Crun'
14999 case " $postdeps_CXX " in
15000 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15002 compiler_lib_search_dirs_CXX=
15003 if test -n "${compiler_lib_search_path_CXX}"; then
15004 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15037 lt_prog_compiler_wl_CXX=
15038 lt_prog_compiler_pic_CXX=
15039 lt_prog_compiler_static_CXX=
15042 # C++ specific cases for pic, static, wl, etc.
15043 if test "$GXX" = yes; then
15044 lt_prog_compiler_wl_CXX='-Wl,'
15045 lt_prog_compiler_static_CXX='-static'
15049 # All AIX code is PIC.
15050 if test "$host_cpu" = ia64; then
15051 # AIX 5 now supports IA64 processor
15052 lt_prog_compiler_static_CXX='-Bstatic'
15059 # see comment about AmigaOS4 .so support
15060 lt_prog_compiler_pic_CXX='-fPIC'
15063 # FIXME: we need at least 68020 code to build shared libraries, but
15064 # adding the `-m68020' flag to GCC prevents building anything better,
15066 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15071 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15072 # PIC is the default for these OSes.
15074 mingw* | cygwin* | os2* | pw32* | cegcc*)
15075 # This hack is so that the source file can tell whether it is being
15076 # built for inclusion in a dll (and should export symbols for example).
15077 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15078 # (--disable-auto-import) libraries
15079 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15081 darwin* | rhapsody*)
15082 # PIC is the default on this platform
15083 # Common symbols not allowed in MH_DYLIB files
15084 lt_prog_compiler_pic_CXX='-fno-common'
15087 # DJGPP does not support shared libraries at all
15088 lt_prog_compiler_pic_CXX=
15091 # PIC is the default for Haiku.
15092 # The "-static" flag exists, but is broken.
15093 lt_prog_compiler_static_CXX=
15096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15097 # Instead, we relocate shared libraries at runtime.
15100 if test -d /usr/nec; then
15101 lt_prog_compiler_pic_CXX=-Kconform_pic
15105 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15106 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15107 # sets the default TLS model and affects inlining.
15112 lt_prog_compiler_pic_CXX='-fPIC'
15117 # QNX uses GNU C++, but need to define -shared option too, otherwise
15118 # it will coredump.
15119 lt_prog_compiler_pic_CXX='-fPIC -shared'
15122 lt_prog_compiler_pic_CXX='-fPIC'
15128 # All AIX code is PIC.
15129 if test "$host_cpu" = ia64; then
15130 # AIX 5 now supports IA64 processor
15131 lt_prog_compiler_static_CXX='-Bstatic'
15133 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15137 case $cc_basename in
15139 # Green Hills C++ Compiler
15140 # _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"
15144 mingw* | cygwin* | os2* | pw32* | cegcc*)
15145 # This hack is so that the source file can tell whether it is being
15146 # built for inclusion in a dll (and should export symbols for example).
15147 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15150 case $cc_basename in
15152 lt_prog_compiler_pic_CXX='-KPIC'
15155 # Green Hills C++ Compiler
15156 lt_prog_compiler_pic_CXX='-pic'
15162 freebsd* | dragonfly*)
15163 # FreeBSD uses GNU C++
15165 hpux9* | hpux10* | hpux11*)
15166 case $cc_basename in
15168 lt_prog_compiler_wl_CXX='-Wl,'
15169 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15170 if test "$host_cpu" != ia64; then
15171 lt_prog_compiler_pic_CXX='+Z'
15175 lt_prog_compiler_wl_CXX='-Wl,'
15176 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15182 lt_prog_compiler_pic_CXX='+Z'
15191 # This is c89, which is MS Visual C++ (no shared libs)
15192 # Anyone wants to do a port?
15194 irix5* | irix6* | nonstopux*)
15195 case $cc_basename in
15197 lt_prog_compiler_wl_CXX='-Wl,'
15198 lt_prog_compiler_static_CXX='-non_shared'
15199 # CC pic flag -KPIC is the default.
15205 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15206 case $cc_basename in
15209 lt_prog_compiler_wl_CXX='--backend -Wl,'
15210 lt_prog_compiler_pic_CXX='-fPIC'
15213 # old Intel C++ for x86_64 which still supported -KPIC.
15214 lt_prog_compiler_wl_CXX='-Wl,'
15215 lt_prog_compiler_pic_CXX='-KPIC'
15216 lt_prog_compiler_static_CXX='-static'
15219 # Intel C++, used to be incompatible with GCC.
15220 # ICC 10 doesn't accept -KPIC any more.
15221 lt_prog_compiler_wl_CXX='-Wl,'
15222 lt_prog_compiler_pic_CXX='-fPIC'
15223 lt_prog_compiler_static_CXX='-static'
15226 # Portland Group C++ compiler
15227 lt_prog_compiler_wl_CXX='-Wl,'
15228 lt_prog_compiler_pic_CXX='-fpic'
15229 lt_prog_compiler_static_CXX='-Bstatic'
15233 # Make sure the PIC flag is empty. It appears that all Alpha
15234 # Linux and Compaq Tru64 Unix objects are PIC.
15235 lt_prog_compiler_pic_CXX=
15236 lt_prog_compiler_static_CXX='-non_shared'
15238 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15239 # IBM XL 8.0, 9.0 on PPC and BlueGene
15240 lt_prog_compiler_wl_CXX='-Wl,'
15241 lt_prog_compiler_pic_CXX='-qpic'
15242 lt_prog_compiler_static_CXX='-qstaticlink'
15245 case `$CC -V 2>&1 | sed 5q` in
15248 lt_prog_compiler_pic_CXX='-KPIC'
15249 lt_prog_compiler_static_CXX='-Bstatic'
15250 lt_prog_compiler_wl_CXX='-Qoption ld '
15261 case $cc_basename in
15263 lt_prog_compiler_pic_CXX='-W c,exportall'
15269 netbsd* | netbsdelf*-gnu)
15272 # QNX uses GNU C++, but need to define -shared option too, otherwise
15273 # it will coredump.
15274 lt_prog_compiler_pic_CXX='-fPIC -shared'
15276 osf3* | osf4* | osf5*)
15277 case $cc_basename in
15279 lt_prog_compiler_wl_CXX='--backend -Wl,'
15282 # Rational C++ 2.4.1
15283 lt_prog_compiler_pic_CXX='-pic'
15286 # Digital/Compaq C++
15287 lt_prog_compiler_wl_CXX='-Wl,'
15288 # Make sure the PIC flag is empty. It appears that all Alpha
15289 # Linux and Compaq Tru64 Unix objects are PIC.
15290 lt_prog_compiler_pic_CXX=
15291 lt_prog_compiler_static_CXX='-non_shared'
15300 case $cc_basename in
15302 # Sun C++ 4.2, 5.x and Centerline C++
15303 lt_prog_compiler_pic_CXX='-KPIC'
15304 lt_prog_compiler_static_CXX='-Bstatic'
15305 lt_prog_compiler_wl_CXX='-Qoption ld '
15308 # Green Hills C++ Compiler
15309 lt_prog_compiler_pic_CXX='-PIC'
15316 case $cc_basename in
15319 lt_prog_compiler_pic_CXX='-pic'
15320 lt_prog_compiler_static_CXX='-Bstatic'
15324 lt_prog_compiler_pic_CXX='-pic'
15330 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15331 case $cc_basename in
15333 lt_prog_compiler_wl_CXX='-Wl,'
15334 lt_prog_compiler_pic_CXX='-KPIC'
15335 lt_prog_compiler_static_CXX='-Bstatic'
15340 case $cc_basename in
15342 # NonStop-UX NCC 3.20
15343 lt_prog_compiler_pic_CXX='-KPIC'
15352 lt_prog_compiler_can_build_shared_CXX=no
15358 # For platforms which do not support PIC, -DPIC is meaningless:
15360 lt_prog_compiler_pic_CXX=
15363 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15369 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15370 $as_echo_n "(cached) " >&6
15372 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15375 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15376 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15379 # Check to make sure the PIC flag actually works.
15381 if test -n "$lt_prog_compiler_pic_CXX"; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15384 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15385 $as_echo_n "(cached) " >&6
15387 lt_cv_prog_compiler_pic_works_CXX=no
15388 ac_outfile=conftest.$ac_objext
15389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15390 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15391 # Insert the option either (1) after the last *FLAGS variable, or
15392 # (2) before a word containing "conftest.", or (3) at the end.
15393 # Note that $ac_compile itself does not contain backslashes and begins
15394 # with a dollar sign (not a hyphen), so the echo should work correctly.
15395 # The option is referenced via a variable to avoid confusing sed.
15396 lt_compile=`echo "$ac_compile" | $SED \
15397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399 -e 's:$: $lt_compiler_flag:'`
15400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15401 (eval "$lt_compile" 2>conftest.err)
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 if (exit $ac_status) && test -s "$ac_outfile"; then
15406 # The compiler can only warn and ignore the option if not recognized
15407 # So say no if there are warnings other than the usual output.
15408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15411 lt_cv_prog_compiler_pic_works_CXX=yes
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15418 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15420 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15421 case $lt_prog_compiler_pic_CXX in
15423 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15426 lt_prog_compiler_pic_CXX=
15427 lt_prog_compiler_can_build_shared_CXX=no
15437 # Check to make sure the static flag actually works.
15439 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15441 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15442 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15443 $as_echo_n "(cached) " >&6
15445 lt_cv_prog_compiler_static_works_CXX=no
15446 save_LDFLAGS="$LDFLAGS"
15447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15450 # The linker can only warn and ignore the option if not recognized
15451 # So say no if there are warnings
15452 if test -s conftest.err; then
15453 # Append any errors to the config.log.
15454 cat conftest.err 1>&5
15455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15457 if diff conftest.exp conftest.er2 >/dev/null; then
15458 lt_cv_prog_compiler_static_works_CXX=yes
15461 lt_cv_prog_compiler_static_works_CXX=yes
15465 LDFLAGS="$save_LDFLAGS"
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15469 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15471 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15474 lt_prog_compiler_static_CXX=
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15482 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15483 $as_echo_n "(cached) " >&6
15485 lt_cv_prog_compiler_c_o_CXX=no
15486 $RM -r conftest 2>/dev/null
15490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 lt_compiler_flag="-o out/conftest2.$ac_objext"
15493 # Insert the option either (1) after the last *FLAGS variable, or
15494 # (2) before a word containing "conftest.", or (3) at the end.
15495 # Note that $ac_compile itself does not contain backslashes and begins
15496 # with a dollar sign (not a hyphen), so the echo should work correctly.
15497 lt_compile=`echo "$ac_compile" | $SED \
15498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15500 -e 's:$: $lt_compiler_flag:'`
15501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15502 (eval "$lt_compile" 2>out/conftest.err)
15504 cat out/conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15508 # The compiler can only warn and ignore the option if not recognized
15509 # So say no if there are warnings
15510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15513 lt_cv_prog_compiler_c_o_CXX=yes
15518 # SGI C++ compiler will create directory out/ii_files/ for
15519 # template instantiation
15520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15521 $RM out/* && rmdir out
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15528 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15534 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15535 $as_echo_n "(cached) " >&6
15537 lt_cv_prog_compiler_c_o_CXX=no
15538 $RM -r conftest 2>/dev/null
15542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15544 lt_compiler_flag="-o out/conftest2.$ac_objext"
15545 # Insert the option either (1) after the last *FLAGS variable, or
15546 # (2) before a word containing "conftest.", or (3) at the end.
15547 # Note that $ac_compile itself does not contain backslashes and begins
15548 # with a dollar sign (not a hyphen), so the echo should work correctly.
15549 lt_compile=`echo "$ac_compile" | $SED \
15550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15552 -e 's:$: $lt_compiler_flag:'`
15553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15554 (eval "$lt_compile" 2>out/conftest.err)
15556 cat out/conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15560 # The compiler can only warn and ignore the option if not recognized
15561 # So say no if there are warnings
15562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15565 lt_cv_prog_compiler_c_o_CXX=yes
15570 # SGI C++ compiler will create directory out/ii_files/ for
15571 # template instantiation
15572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15573 $RM out/* && rmdir out
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15580 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15585 hard_links="nottested"
15586 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15587 # do not overwrite the value of need_locks provided by the user
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15589 $as_echo_n "checking if we can lock with hard links... " >&6; }
15592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15594 ln conftest.a conftest.b 2>&5 || hard_links=no
15595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15597 $as_echo "$hard_links" >&6; }
15598 if test "$hard_links" = no; then
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15600 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15610 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15612 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15613 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15616 # If we're using GNU nm, then we don't want the "-C" option.
15617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15618 # Also, AIX nm treats weak defined symbols like other global defined
15619 # symbols, whereas GNU nm marks them as "W".
15620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15621 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15623 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15627 export_symbols_cmds_CXX="$ltdll_cmds"
15629 cygwin* | mingw* | cegcc*)
15630 case $cc_basename in
15632 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15635 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'
15636 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15640 linux* | k*bsd*-gnu | gnu*)
15641 link_all_deplibs_CXX=no
15644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15649 $as_echo "$ld_shlibs_CXX" >&6; }
15650 test "$ld_shlibs_CXX" = no && can_build_shared=no
15652 with_gnu_ld_CXX=$with_gnu_ld
15660 # Do we need to explicitly link libc?
15662 case "x$archive_cmds_need_lc_CXX" in
15664 # Assume -lc should be added
15665 archive_cmds_need_lc_CXX=yes
15667 if test "$enable_shared" = yes && test "$GCC" = yes; then
15668 case $archive_cmds_CXX in
15670 # FIXME: we may have to deal with multi-command sequences.
15673 # Test whether the compiler implicitly links with -lc since on some
15674 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15675 # to ld, don't add -lc before -lgcc.
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15677 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15678 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15679 $as_echo_n "(cached) " >&6
15682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15685 (eval $ac_compile) 2>&5
15687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15688 test $ac_status = 0; } 2>conftest.err; then
15691 libobjs=conftest.$ac_objext
15693 wl=$lt_prog_compiler_wl_CXX
15694 pic_flag=$lt_prog_compiler_pic_CXX
15700 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15701 allow_undefined_flag_CXX=
15702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15703 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706 test $ac_status = 0; }
15708 lt_cv_archive_cmds_need_lc_CXX=no
15710 lt_cv_archive_cmds_need_lc_CXX=yes
15712 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15714 cat conftest.err 1>&5
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15720 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15721 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15790 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15792 library_names_spec=
15793 libname_spec='lib$name'
15797 postuninstall_cmds=
15801 shlibpath_overrides_runpath=unknown
15803 dynamic_linker="$host_os ld.so"
15804 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15805 need_lib_prefix=unknown
15806 hardcode_into_libs=no
15808 # when you set need_version to no, make sure it does not cause -set_version
15809 # flags to be left without arguments
15810 need_version=unknown
15814 version_type=linux # correct to gnu/linux during the next big refactor
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15816 shlibpath_var=LIBPATH
15818 # AIX 3 has no versioning support, so we append a major version to the name.
15819 soname_spec='${libname}${release}${shared_ext}$major'
15823 version_type=linux # correct to gnu/linux during the next big refactor
15826 hardcode_into_libs=yes
15827 if test "$host_cpu" = ia64; then
15828 # AIX 5 supports IA64
15829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15830 shlibpath_var=LD_LIBRARY_PATH
15832 # With GCC up to 2.95.x, collect2 would create an import file
15833 # for dependence libraries. The import file would start with
15834 # the line `#! .'. This would cause the generated library to
15835 # depend on `.', always an invalid library. This was fixed in
15836 # development snapshots of GCC prior to 3.0.
15838 aix4 | aix4.[01] | aix4.[01].*)
15839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15841 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15844 can_build_shared=no
15848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15849 # soname into executable. Probably we can add versioning support to
15850 # collect2, so additional links can be useful in future.
15851 if test "$aix_use_runtimelinking" = yes; then
15852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15853 # instead of lib<name>.a to let people know that these are not
15854 # typical AIX shared libraries.
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 # We preserve .a as extension for shared libraries through AIX4.2
15858 # and later when we are not doing run time linking.
15859 library_names_spec='${libname}${release}.a $libname.a'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15862 shlibpath_var=LIBPATH
15869 # Since July 2007 AmigaOS4 officially supports .so libraries.
15870 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 library_names_spec='$libname.ixlibrary $libname.a'
15875 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15876 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15882 library_names_spec='${libname}${shared_ext}'
15883 dynamic_linker="$host_os ld.so"
15884 shlibpath_var=LIBRARY_PATH
15888 version_type=linux # correct to gnu/linux during the next big refactor
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15896 # the default ld.so.conf also contains /usr/contrib/lib and
15897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15898 # libtool to hard-code these into programs
15901 cygwin* | mingw* | pw32* | cegcc*)
15902 version_type=windows
15907 case $GCC,$cc_basename in
15910 library_names_spec='$libname.dll.a'
15911 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15912 postinstall_cmds='base_file=`basename \${file}`~
15913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15914 dldir=$destdir/`dirname \$dlpath`~
15915 test -d \$dldir || mkdir -p \$dldir~
15916 $install_prog $dir/$dlname \$dldir/$dlname~
15917 chmod a+x \$dldir/$dlname~
15918 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15919 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15922 dlpath=$dir/\$dldll~
15924 shlibpath_overrides_runpath=yes
15928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15933 # MinGW DLLs use traditional 'lib' prefix
15934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937 # pw32 DLLs use 'pw' prefix rather than 'lib'
15938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15941 dynamic_linker='Win32 ld.exe'
15946 libname_spec='$name'
15947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948 library_names_spec='${libname}.dll.lib'
15952 sys_lib_search_path_spec=
15955 for lt_path in $LIB
15958 # Let DOS variable expansion print the short 8.3 style file name.
15959 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15960 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15963 # Convert to MSYS style.
15964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15967 # Convert to unix form, then to dos form, then back to unix form
15968 # but this time dos style (no spaces!) so that the unix form looks
15969 # like /cygdrive/c/PROGRA~1:/cygdr...
15970 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15971 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15972 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15975 sys_lib_search_path_spec="$LIB"
15976 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15977 # It is most probably a Windows format PATH.
15978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15982 # FIXME: find the short name or the path components, as spaces are
15983 # common. (e.g. "Program Files" -> "PROGRA~1")
15987 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15988 postinstall_cmds='base_file=`basename \${file}`~
15989 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15990 dldir=$destdir/`dirname \$dlpath`~
15991 test -d \$dldir || mkdir -p \$dldir~
15992 $install_prog $dir/$dlname \$dldir/$dlname'
15993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15994 dlpath=$dir/\$dldll~
15996 shlibpath_overrides_runpath=yes
15997 dynamic_linker='Win32 link.exe'
16001 # Assume MSVC wrapper
16002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16003 dynamic_linker='Win32 ld.exe'
16006 # FIXME: first we should search . and the directory the executable is in
16010 darwin* | rhapsody*)
16011 dynamic_linker="$host_os dyld"
16012 version_type=darwin
16015 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16016 soname_spec='${libname}${release}${major}$shared_ext'
16017 shlibpath_overrides_runpath=yes
16018 shlibpath_var=DYLD_LIBRARY_PATH
16019 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16025 version_type=linux # correct to gnu/linux during the next big refactor
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16033 freebsd* | dragonfly*)
16034 # DragonFly does not have aout. When/if they implement a new
16035 # versioning mechanism, adjust this.
16036 if test -x /usr/bin/objformat; then
16037 objformat=`/usr/bin/objformat`
16040 freebsd[23].*) objformat=aout ;;
16041 *) objformat=elf ;;
16044 version_type=freebsd-$objformat
16045 case $version_type in
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16056 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16061 freebsd3.[01]* | freebsdelf3.[01]*)
16062 shlibpath_overrides_runpath=yes
16063 hardcode_into_libs=yes
16065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16067 shlibpath_overrides_runpath=no
16068 hardcode_into_libs=yes
16070 *) # from 4.6 on, and DragonFly
16071 shlibpath_overrides_runpath=yes
16072 hardcode_into_libs=yes
16078 version_type=linux # correct to gnu/linux during the next big refactor
16081 dynamic_linker="$host_os runtime_loader"
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 shlibpath_var=LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16087 hardcode_into_libs=yes
16090 hpux9* | hpux10* | hpux11*)
16091 # Give a soname corresponding to the major version so that dld.sl refuses to
16092 # link against other versions.
16099 hardcode_into_libs=yes
16100 dynamic_linker="$host_os dld.so"
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 if test "X$HPUX_IA64_MODE" = X32; then
16106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16114 hardcode_into_libs=yes
16115 dynamic_linker="$host_os dld.sl"
16116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16125 dynamic_linker="$host_os dld.sl"
16126 shlibpath_var=SHLIB_PATH
16127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16133 postinstall_cmds='chmod 555 $lib'
16134 # or fails outright, so override atomically:
16135 install_override_mode=555
16139 version_type=linux # correct to gnu/linux during the next big refactor
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16145 shlibpath_var=LD_LIBRARY_PATH
16146 shlibpath_overrides_runpath=no
16147 hardcode_into_libs=yes
16150 irix5* | irix6* | nonstopux*)
16152 nonstopux*) version_type=nonstopux ;;
16154 if test "$lt_cv_prog_gnu_ld" = yes; then
16155 version_type=linux # correct to gnu/linux during the next big refactor
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16165 irix5* | nonstopux*)
16166 libsuff= shlibsuff=
16169 case $LD in # libtool.m4 will add one of these switches to LD
16170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16171 libsuff= shlibsuff= libmagic=32-bit;;
16172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16173 libsuff=32 shlibsuff=N32 libmagic=N32;;
16174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16176 *) libsuff= shlibsuff= libmagic=never-match;;
16180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16181 shlibpath_overrides_runpath=no
16182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16184 hardcode_into_libs=yes
16187 # No shared lib support for Linux oldld, aout, or coff.
16188 linux*oldld* | linux*aout* | linux*coff*)
16192 # This must be glibc/ELF.
16193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16194 version_type=linux # correct to gnu/linux during the next big refactor
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=no
16203 # Some binutils ld are patched to set DT_RUNPATH
16204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16205 $as_echo_n "(cached) " >&6
16207 lt_cv_shlibpath_overrides_runpath=no
16208 save_LDFLAGS=$LDFLAGS
16209 save_libdir=$libdir
16210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16223 if ac_fn_cxx_try_link "$LINENO"; then :
16224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16225 lt_cv_shlibpath_overrides_runpath=yes
16228 rm -f core conftest.err conftest.$ac_objext \
16229 conftest$ac_exeext conftest.$ac_ext
16230 LDFLAGS=$save_LDFLAGS
16231 libdir=$save_libdir
16235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16237 # This implies no fast_install, which is unacceptable.
16238 # Some rework will be needed to allow for fast_install
16239 # before this can be enabled.
16240 hardcode_into_libs=yes
16242 # Append ld.so.conf contents to the search path
16243 if test -f /etc/ld.so.conf; then
16244 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' ' '`
16245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16248 # We used to test for /lib/ld.so.1 and disable shared libraries on
16249 # powerpc, because MkLinux only supported shared libraries with the
16250 # GNU dynamic linker. Since this was broken with cross compilers,
16251 # most powerpc-linux boxes support dynamic linking these days and
16252 # people can always --disable-shared, the test was removed, and we
16253 # assume the GNU/Linux dynamic linker is in use.
16254 dynamic_linker='GNU/Linux ld.so'
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 shlibpath_overrides_runpath=no
16265 hardcode_into_libs=yes
16266 dynamic_linker='NetBSD ld.elf_so'
16273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276 dynamic_linker='NetBSD (a.out) ld.so'
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 dynamic_linker='NetBSD ld.elf_so'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=yes
16284 hardcode_into_libs=yes
16288 version_type=linux # correct to gnu/linux during the next big refactor
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=yes
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=no
16302 hardcode_into_libs=yes
16303 dynamic_linker='ldqnx.so'
16308 sys_lib_dlsearch_path_spec="/usr/lib"
16310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16313 *) need_version=no ;;
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16320 openbsd2.[89] | openbsd2.[89].*)
16321 shlibpath_overrides_runpath=no
16324 shlibpath_overrides_runpath=yes
16328 shlibpath_overrides_runpath=yes
16333 libname_spec='$name'
16336 library_names_spec='$libname${shared_ext} $libname.a'
16337 dynamic_linker='OS/2 ld.exe'
16338 shlibpath_var=LIBPATH
16341 osf3* | osf4* | osf5*)
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16357 version_type=linux # correct to gnu/linux during the next big refactor
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16364 hardcode_into_libs=yes
16365 # ldd complains unless libraries are executable
16366 postinstall_cmds='chmod +x $lib'
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=yes
16375 if test "$with_gnu_ld" = yes; then
16382 version_type=linux # correct to gnu/linux during the next big refactor
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 case $host_vendor in
16388 shlibpath_overrides_runpath=no
16390 runpath_var=LD_RUN_PATH
16398 shlibpath_overrides_runpath=no
16399 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16405 if test -d /usr/nec ;then
16406 version_type=linux # correct to gnu/linux during the next big refactor
16407 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16408 soname_spec='$libname${shared_ext}.$major'
16409 shlibpath_var=LD_LIBRARY_PATH
16413 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16414 version_type=freebsd-elf
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 hardcode_into_libs=yes
16422 if test "$with_gnu_ld" = yes; then
16423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16425 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16428 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16432 sys_lib_dlsearch_path_spec='/usr/lib'
16436 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16437 version_type=linux # correct to gnu/linux during the next big refactor
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=no
16443 hardcode_into_libs=yes
16447 version_type=linux # correct to gnu/linux during the next big refactor
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16458 $as_echo "$dynamic_linker" >&6; }
16459 test "$dynamic_linker" = no && can_build_shared=no
16461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16462 if test "$GCC" = yes; then
16463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16466 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16469 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16470 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16512 hardcode_action_CXX=
16513 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16514 test -n "$runpath_var_CXX" ||
16515 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16517 # We can hardcode non-existent directories.
16518 if test "$hardcode_direct_CXX" != no &&
16519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16520 # have to relink, otherwise we might link with an installed library
16521 # when we should be linking with a yet-to-be-installed one
16522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16523 test "$hardcode_minus_L_CXX" != no; then
16524 # Linking always hardcodes the temporary library directory.
16525 hardcode_action_CXX=relink
16527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16528 hardcode_action_CXX=immediate
16531 # We cannot hardcode anything, or else we can only hardcode existing
16533 hardcode_action_CXX=unsupported
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16536 $as_echo "$hardcode_action_CXX" >&6; }
16538 if test "$hardcode_action_CXX" = relink ||
16539 test "$inherit_rpath_CXX" = yes; then
16540 # Fast installation is not supported
16541 enable_fast_install=no
16542 elif test "$shlibpath_overrides_runpath" = yes ||
16543 test "$enable_shared" = no; then
16544 # Fast installation is not necessary
16545 enable_fast_install=needless
16554 fi # test -n "$compiler"
16557 CFLAGS=$lt_save_CFLAGS
16561 with_gnu_ld=$lt_save_with_gnu_ld
16562 lt_cv_path_LDCXX=$lt_cv_path_LD
16563 lt_cv_path_LD=$lt_save_path_LD
16564 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16565 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16566 fi # test "$_lt_caught_CXX_error" != yes
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16575 depcc="$CXX" am_compiler_list=
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16578 $as_echo_n "checking dependency style of $depcc... " >&6; }
16579 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16580 $as_echo_n "(cached) " >&6
16582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16583 # We make a subdir and do the tests there. Otherwise we can end up
16584 # making bogus files that we don't know about and never remove. For
16585 # instance it was reported that on HP-UX the gcc test will end up
16586 # making a dummy file named 'D' -- because '-MD' means "put the output
16588 rm -rf conftest.dir
16590 # Copy depcomp to subdir because otherwise we won't find it if we're
16591 # using a relative directory.
16592 cp "$am_depcomp" conftest.dir
16594 # We will build objects and dependencies in a subdirectory because
16595 # it helps to detect inapplicable dependency modes. For instance
16596 # both Tru64's cc and ICC support -MD to output dependencies as a
16597 # side effect of compilation, but ICC will put the dependencies in
16598 # the current directory while Tru64 will put them in the object
16602 am_cv_CXX_dependencies_compiler_type=none
16603 if test "$am_compiler_list" = ""; then
16604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16606 am__universal=false
16607 case " $depcc " in #(
16608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16611 for depmode in $am_compiler_list; do
16612 # Setup a source with many dependencies, because some compilers
16613 # like to wrap large dependency lists on column 80 (with \), and
16614 # we should not choose a depcomp mode which is confused by this.
16616 # We need to recreate these files for each test, as the compiler may
16617 # overwrite some of them when testing with obscure command lines.
16618 # This happens at least with the AIX C compiler.
16620 for i in 1 2 3 4 5 6; do
16621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16622 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16623 # Solaris 10 /bin/sh.
16624 echo '/* dummy */' > sub/conftst$i.h
16626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16628 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16629 # mode. It turns out that the SunPro C++ compiler does not properly
16630 # handle '-M -o', and we need to detect this. Also, some Intel
16631 # versions had trouble with output in subdirs.
16632 am__obj=sub/conftest.${OBJEXT-o}
16633 am__minus_obj="-o $am__obj"
16636 # This depmode causes a compiler race in universal mode.
16637 test "$am__universal" = false || continue
16640 # After this tag, mechanisms are not by side-effect, so they'll
16641 # only be used when explicitly requested.
16642 if test "x$enable_dependency_tracking" = xyes; then
16648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16649 # This compiler won't grok '-c -o', but also, the minuso test has
16650 # not run yet. These depmodes are late enough in the game, and
16651 # so weak that their functioning should not be impacted.
16652 am__obj=conftest.${OBJEXT-o}
16657 if depmode=$depmode \
16658 source=sub/conftest.c object=$am__obj \
16659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16661 >/dev/null 2>conftest.err &&
16662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16666 # icc doesn't choke on unknown options, it will just issue warnings
16667 # or remarks (even with -Werror). So we grep stderr for any message
16668 # that says an option was ignored or not supported.
16669 # When given -MP, icc 7.0 and 7.1 complain thusly:
16670 # icc: Command line warning: ignoring option '-M'; no argument required
16671 # The diagnosis changed in icc 8.0:
16672 # icc: Command line remark: option '-MP' not supported
16673 if (grep 'ignoring option' conftest.err ||
16674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16675 am_cv_CXX_dependencies_compiler_type=$depmode
16682 rm -rf conftest.dir
16684 am_cv_CXX_dependencies_compiler_type=none
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16689 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16690 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16693 test "x$enable_dependency_tracking" != xno \
16694 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16695 am__fastdepCXX_TRUE=
16696 am__fastdepCXX_FALSE='#'
16698 am__fastdepCXX_TRUE='#'
16699 am__fastdepCXX_FALSE=
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
16710 # On Suns, sometimes $CPP names a directory.
16711 if test -n "$CPP" && test -d "$CPP"; then
16714 if test -z "$CPP"; then
16715 if ${ac_cv_prog_CPP+:} false; then :
16716 $as_echo_n "(cached) " >&6
16718 # Double quotes because CPP needs to be expanded
16719 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16721 ac_preproc_ok=false
16722 for ac_c_preproc_warn_flag in '' yes
16724 # Use a header file that comes with gcc, so configuring glibc
16725 # with a fresh cross-compiler works.
16726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16727 # <limits.h> exists even on freestanding compilers.
16728 # On the NeXT, cc -E runs the code through the compiler's parser,
16729 # not just through cpp. "Syntax error" is here to catch this case.
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16733 # include <limits.h>
16735 # include <assert.h>
16739 if ac_fn_c_try_cpp "$LINENO"; then :
16742 # Broken: fails on valid input.
16745 rm -f conftest.err conftest.i conftest.$ac_ext
16747 # OK, works on sane cases. Now check whether nonexistent headers
16748 # can be detected and how.
16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h. */
16751 #include <ac_nonexistent.h>
16753 if ac_fn_c_try_cpp "$LINENO"; then :
16754 # Broken: success on invalid input.
16757 # Passes both tests.
16761 rm -f conftest.err conftest.i conftest.$ac_ext
16764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16765 rm -f conftest.i conftest.err conftest.$ac_ext
16766 if $ac_preproc_ok; then :
16771 ac_cv_prog_CPP=$CPP
16774 CPP=$ac_cv_prog_CPP
16776 ac_cv_prog_CPP=$CPP
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16779 $as_echo "$CPP" >&6; }
16780 ac_preproc_ok=false
16781 for ac_c_preproc_warn_flag in '' yes
16783 # Use a header file that comes with gcc, so configuring glibc
16784 # with a fresh cross-compiler works.
16785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 # <limits.h> exists even on freestanding compilers.
16787 # On the NeXT, cc -E runs the code through the compiler's parser,
16788 # not just through cpp. "Syntax error" is here to catch this case.
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16792 # include <limits.h>
16794 # include <assert.h>
16798 if ac_fn_c_try_cpp "$LINENO"; then :
16801 # Broken: fails on valid input.
16804 rm -f conftest.err conftest.i conftest.$ac_ext
16806 # OK, works on sane cases. Now check whether nonexistent headers
16807 # can be detected and how.
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 #include <ac_nonexistent.h>
16812 if ac_fn_c_try_cpp "$LINENO"; then :
16813 # Broken: success on invalid input.
16816 # Passes both tests.
16820 rm -f conftest.err conftest.i conftest.$ac_ext
16823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16824 rm -f conftest.i conftest.err conftest.$ac_ext
16825 if $ac_preproc_ok; then :
16828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16830 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16831 See \`config.log' for more details" "$LINENO" 5; }
16835 ac_cpp='$CPP $CPPFLAGS'
16836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16842 $as_echo_n "checking whether ln -s works... " >&6; }
16844 if test "$LN_S" = "ln -s"; then
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16846 $as_echo "yes" >&6; }
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16849 $as_echo "no, using $LN_S" >&6; }
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16856 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16857 $as_echo_n "(cached) " >&6
16859 cat >conftest.make <<\_ACEOF
16862 @echo '@@@%%%=$(MAKE)=@@@%%%'
16864 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16866 *@@@%%%=?*=@@@%%%*)
16867 eval ac_cv_prog_make_${ac_make}_set=yes;;
16869 eval ac_cv_prog_make_${ac_make}_set=no;;
16871 rm -f conftest.make
16873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16880 SET_MAKE="MAKE=${MAKE-make}"
16892 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16893 if test -n "$ac_tool_prefix"; then
16894 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16895 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16897 $as_echo_n "checking for $ac_word... " >&6; }
16898 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16899 $as_echo_n "(cached) " >&6
16901 case $PKG_CONFIG in
16903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16907 for as_dir in $PATH
16910 test -z "$as_dir" && as_dir=.
16911 for ac_exec_ext in '' $ac_executable_extensions; do
16912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16925 if test -n "$PKG_CONFIG"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16927 $as_echo "$PKG_CONFIG" >&6; }
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930 $as_echo "no" >&6; }
16935 if test -z "$ac_cv_path_PKG_CONFIG"; then
16936 ac_pt_PKG_CONFIG=$PKG_CONFIG
16937 # Extract the first word of "pkg-config", so it can be a program name with args.
16938 set dummy pkg-config; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16942 $as_echo_n "(cached) " >&6
16944 case $ac_pt_PKG_CONFIG in
16946 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16950 for as_dir in $PATH
16953 test -z "$as_dir" && as_dir=.
16954 for ac_exec_ext in '' $ac_executable_extensions; do
16955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16956 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16967 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16968 if test -n "$ac_pt_PKG_CONFIG"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16970 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16976 if test "x$ac_pt_PKG_CONFIG" = x; then
16979 case $cross_compiling:$ac_tool_warned in
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16983 ac_tool_warned=yes ;;
16985 PKG_CONFIG=$ac_pt_PKG_CONFIG
16988 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16992 if test -n "$PKG_CONFIG"; then
16993 _pkg_min_version=0.20
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16995 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16996 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17001 $as_echo "no" >&6; }
17006 if test "x$request_python_bindings" != "xno"; then
17013 if test -n "$PYTHON"; then
17014 # If the user set $PYTHON, use it and don't search something else.
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
17016 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
17018 # split strings by '.' and convert to numeric. Append some zeros
17019 # because we need at least 4 digits for the hex conversion.
17020 # map returns an iterator in Python 3.0 and a list in 2.x
17021 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17023 # xrange is not present in Python 3.0 and range returns an iterator
17024 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17025 sys.exit(sys.hexversion < minverhex)"
17026 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17027 ($PYTHON -c "$prog") >&5 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; then :
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17032 $as_echo "yes" >&6; }
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17036 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17038 am_display_PYTHON=$PYTHON
17040 # Otherwise, try each interpreter until we find one that satisfies
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
17043 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
17044 if ${am_cv_pathless_PYTHON+:} false; then :
17045 $as_echo_n "(cached) " >&6
17048 for am_cv_pathless_PYTHON in python python2 python3 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
17049 test "$am_cv_pathless_PYTHON" = none && break
17051 # split strings by '.' and convert to numeric. Append some zeros
17052 # because we need at least 4 digits for the hex conversion.
17053 # map returns an iterator in Python 3.0 and a list in 2.x
17054 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
17056 # xrange is not present in Python 3.0 and range returns an iterator
17057 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17058 sys.exit(sys.hexversion < minverhex)"
17059 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17060 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; then :
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17069 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17070 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17071 if test "$am_cv_pathless_PYTHON" = none; then
17074 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17075 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17077 $as_echo_n "checking for $ac_word... " >&6; }
17078 if ${ac_cv_path_PYTHON+:} false; then :
17079 $as_echo_n "(cached) " >&6
17083 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087 for as_dir in $PATH
17090 test -z "$as_dir" && as_dir=.
17091 for ac_exec_ext in '' $ac_executable_extensions; do
17092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17093 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17104 PYTHON=$ac_cv_path_PYTHON
17105 if test -n "$PYTHON"; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17107 $as_echo "$PYTHON" >&6; }
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110 $as_echo "no" >&6; }
17115 am_display_PYTHON=$am_cv_pathless_PYTHON
17119 if test "$PYTHON" = :; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17125 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17126 if ${am_cv_python_version+:} false; then :
17127 $as_echo_n "(cached) " >&6
17129 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17132 $as_echo "$am_cv_python_version" >&6; }
17133 PYTHON_VERSION=$am_cv_python_version
17137 PYTHON_PREFIX='${prefix}'
17139 PYTHON_EXEC_PREFIX='${exec_prefix}'
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17144 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17145 if ${am_cv_python_platform+:} false; then :
17146 $as_echo_n "(cached) " >&6
17148 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17151 $as_echo "$am_cv_python_platform" >&6; }
17152 PYTHON_PLATFORM=$am_cv_python_platform
17155 # Just factor out some code duplication.
17156 am_python_setup_sysconfig="\
17158 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17159 # with python 3.x. See automake bug#10227.
17162 except ImportError:
17163 can_use_sysconfig = 0
17165 can_use_sysconfig = 1
17166 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17167 # <https://github.com/pypa/virtualenv/issues/118>
17169 from platform import python_implementation
17170 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17171 can_use_sysconfig = 0
17172 except ImportError:
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17177 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17178 if ${am_cv_python_pythondir+:} false; then :
17179 $as_echo_n "(cached) " >&6
17181 if test "x$prefix" = xNONE
17183 am_py_prefix=$ac_default_prefix
17185 am_py_prefix=$prefix
17187 am_cv_python_pythondir=`$PYTHON -c "
17188 $am_python_setup_sysconfig
17189 if can_use_sysconfig:
17190 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17192 from distutils import sysconfig
17193 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17194 sys.stdout.write(sitedir)"`
17195 case $am_cv_python_pythondir in
17197 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17198 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17201 case $am_py_prefix in
17204 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17212 $as_echo "$am_cv_python_pythondir" >&6; }
17213 pythondir=$am_cv_python_pythondir
17217 pkgpythondir=\${pythondir}/$PACKAGE
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17221 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17222 if ${am_cv_python_pyexecdir+:} false; then :
17223 $as_echo_n "(cached) " >&6
17225 if test "x$exec_prefix" = xNONE
17227 am_py_exec_prefix=$am_py_prefix
17229 am_py_exec_prefix=$exec_prefix
17231 am_cv_python_pyexecdir=`$PYTHON -c "
17232 $am_python_setup_sysconfig
17233 if can_use_sysconfig:
17234 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17236 from distutils import sysconfig
17237 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17238 sys.stdout.write(sitedir)"`
17239 case $am_cv_python_pyexecdir in
17240 $am_py_exec_prefix*)
17241 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17242 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17245 case $am_py_exec_prefix in
17248 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17256 $as_echo "$am_cv_python_pyexecdir" >&6; }
17257 pyexecdir=$am_cv_python_pyexecdir
17261 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17270 # Allow the use of a (user set) custom python version
17274 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17275 set dummy python$PYTHON_VERSION; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_PYTHON+:} false; then :
17279 $as_echo_n "(cached) " >&6
17283 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17287 for as_dir in $PATH
17290 test -z "$as_dir" && as_dir=.
17291 for ac_exec_ext in '' $ac_executable_extensions; do
17292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17293 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 PYTHON=$ac_cv_path_PYTHON
17305 if test -n "$PYTHON"; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17307 $as_echo "$PYTHON" >&6; }
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17314 if test -z "$PYTHON"; then
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&5
17316 $as_echo "$as_me: WARNING: Cannot find python$PYTHON_VERSION in your system path" >&2;}
17318 no_python_devel=yes
17321 if test -z "$no_python_devel"; then :
17324 # Check for a version of Python >= 2.1.0
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
17327 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
17328 ac_supports_python_ver=`$PYTHON -c "import sys; \
17329 ver = sys.version.split ()[0]; \
17330 print (ver >= '2.1.0')"`
17331 if test "$ac_supports_python_ver" != "True"; then
17332 if test -z "$PYTHON_NOVERSIONCHECK"; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17336 This version of the AC_PYTHON_DEVEL macro
17337 doesn't work properly with versions of Python before
17338 2.1.0. You may need to re-run configure, setting the
17339 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
17340 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
17341 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
17342 to something else than an empty string.
17344 $as_echo "$as_me: WARNING:
17345 This version of the AC_PYTHON_DEVEL macro
17346 doesn't work properly with versions of Python before
17347 2.1.0. You may need to re-run configure, setting the
17348 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
17349 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
17350 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
17351 to something else than an empty string.
17353 no_python_devel=yes
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
17356 $as_echo "skip at user request" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17365 if test -z "$no_python_devel"; then :
17368 # if the macro parameter ``version'' is set, honour it
17370 if test -n ">= '2.7'"; then
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
17372 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
17373 ac_supports_python_ver=`$PYTHON -c "import sys; \
17374 ver = sys.version.split ()[0]; \
17375 print (ver >= '2.7')"`
17376 if test "$ac_supports_python_ver" = "True"; then
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378 $as_echo "yes" >&6; }
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this package requires Python >= '2.7'.
17383 If you have it installed, but it isn't the default Python
17384 interpreter in your system path, please pass the PYTHON_VERSION
17385 variable to configure. See \`\`configure --help'' for reference.
17387 $as_echo "$as_me: WARNING: this package requires Python >= '2.7'.
17388 If you have it installed, but it isn't the default Python
17389 interpreter in your system path, please pass the PYTHON_VERSION
17390 variable to configure. See \`\`configure --help'' for reference.
17393 no_python_devel=yes
17399 if test -z "$no_python_devel"; then :
17402 # Check if you have distutils, else fail
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17405 $as_echo_n "checking for the distutils Python package... " >&6; }
17406 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
17407 if test -z "$ac_distutils_result"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409 $as_echo "yes" >&6; }
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot import Python module \"distutils\".
17414 Please check your Python installation. The error was:
17415 $ac_distutils_result" >&5
17416 $as_echo "$as_me: WARNING: cannot import Python module \"distutils\".
17417 Please check your Python installation. The error was:
17418 $ac_distutils_result" >&2;}
17420 no_python_devel=yes
17425 if test -z "$no_python_devel"; then :
17428 # Check for Python include path
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17431 $as_echo_n "checking for Python include path... " >&6; }
17432 if test -z "$PYTHON_CPPFLAGS"; then
17433 python_path=`$PYTHON -c "import distutils.sysconfig; \
17434 print (distutils.sysconfig.get_python_inc ());"`
17435 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
17436 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
17437 if test -n "${python_path}"; then
17438 if test "${plat_python_path}" != "${python_path}"; then
17439 python_path="-I$python_path -I$plat_python_path"
17441 python_path="-I$python_path"
17444 PYTHON_CPPFLAGS=$python_path
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17447 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17451 # Check for Python library path
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17454 $as_echo_n "checking for Python library path... " >&6; }
17455 if test -z "$PYTHON_LDFLAGS"; then
17456 # (makes two attempts to ensure we've got a version number
17457 # from the interpreter)
17458 ac_python_version=`cat<<EOD | $PYTHON -
17460 # join all versioning strings, on some systems
17461 # major/minor numbers could be in different list elements
17462 from distutils.sysconfig import *
17463 e = get_config_var('VERSION')
17468 if test -z "$ac_python_version"; then
17469 if test -n "$PYTHON_VERSION"; then
17470 ac_python_version=$PYTHON_VERSION
17472 ac_python_version=`$PYTHON -c "import sys; \
17473 print (sys.version[:3])"`
17477 # Make the versioning information available to the compiler
17479 cat >>confdefs.h <<_ACEOF
17480 #define HAVE_PYTHON "$ac_python_version"
17484 # First, the library directory:
17485 ac_python_libdir=`cat<<EOD | $PYTHON -
17487 # There should be only one
17488 import distutils.sysconfig
17489 e = distutils.sysconfig.get_config_var('LIBDIR')
17494 # Now, for the library:
17495 ac_python_library=`cat<<EOD | $PYTHON -
17497 import distutils.sysconfig
17498 c = distutils.sysconfig.get_config_vars()
17499 if 'LDVERSION' in c:
17500 print ('python'+c['LDVERSION'])
17502 print ('python'+c['VERSION'])
17505 # This small piece shamelessly adapted from PostgreSQL python macro;
17506 # credits goes to momjian, I think. I'd like to put the right name
17507 # in the credits, if someone can point me in the right direction... ?
17509 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
17511 # use the official shared library
17512 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
17513 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
17515 # old way: use libpython from python_configdir
17516 ac_python_libdir=`$PYTHON -c \
17517 "from distutils.sysconfig import get_python_lib as f; \
17519 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
17520 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
17523 if test -z "PYTHON_LDFLAGS"; then
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17525 Cannot determine location of your Python DSO. Please check it was installed with
17526 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
17528 $as_echo "$as_me: WARNING:
17529 Cannot determine location of your Python DSO. Please check it was installed with
17530 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
17532 no_python_devel=yes
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17536 $as_echo "$PYTHON_LDFLAGS" >&6; }
17541 if test -z "$no_python_devel"; then :
17544 # Check for site packages
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17547 $as_echo_n "checking for Python site-packages path... " >&6; }
17548 if test -z "$PYTHON_SITE_PKG"; then
17549 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17550 print (distutils.sysconfig.get_python_lib(0,0));"`
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17553 $as_echo "$PYTHON_SITE_PKG" >&6; }
17557 # libraries which must be linked in when embedding
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
17560 $as_echo_n "checking python extra libraries... " >&6; }
17561 if test -z "$PYTHON_EXTRA_LIBS"; then
17562 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
17563 conf = distutils.sysconfig.get_config_var; \
17564 print (conf('LIBS'))"`
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
17567 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
17571 # linking flags needed when embedding
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
17574 $as_echo_n "checking python extra linking flags... " >&6; }
17575 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
17576 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
17577 conf = distutils.sysconfig.get_config_var; \
17578 print (conf('LINKFORSHARED'))"`
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
17581 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
17585 # final check to see if everything compiles alright
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17588 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17589 # save current global flags
17590 ac_save_LIBS="$LIBS"
17591 ac_save_CPPFLAGS="$CPPFLAGS"
17592 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
17593 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
17595 ac_cpp='$CPP $CPPFLAGS'
17596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h. */
17603 #include <Python.h>
17613 if ac_fn_c_try_link "$LINENO"; then :
17618 rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17621 ac_cpp='$CPP $CPPFLAGS'
17622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626 # turn back to default flags
17627 CPPFLAGS="$ac_save_CPPFLAGS"
17628 LIBS="$ac_save_LIBS"
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17631 $as_echo "$pythonexists" >&6; }
17633 if test ! "x$pythonexists" = "xyes"; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17635 Could not link test program to Python. Maybe the main Python library has been
17636 installed in some non-standard library path. If so, pass it to configure,
17637 via the LDFLAGS environment variable.
17638 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17639 ============================================================================
17641 You probably have to install the development version of the Python package
17642 for your distribution. The exact name of this package varies among them.
17643 ============================================================================
17645 $as_echo "$as_me: WARNING:
17646 Could not link test program to Python. Maybe the main Python library has been
17647 installed in some non-standard library path. If so, pass it to configure,
17648 via the LDFLAGS environment variable.
17649 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17650 ============================================================================
17652 You probably have to install the development version of the Python package
17653 for your distribution. The exact name of this package varies among them.
17654 ============================================================================
17657 no_python_devel=yes
17666 if test -z "$no_python_devel"; then :
17667 have_python_dev=yes
17675 if test "x${cython_path}" = "x"; then
17676 for ac_prog in cython.py cython
17678 # Extract the first word of "$ac_prog", so it can be a program name with args.
17679 set dummy $ac_prog; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_prog_CYTHON+:} false; then :
17683 $as_echo_n "(cached) " >&6
17685 if test -n "$CYTHON"; then
17686 ac_cv_prog_CYTHON="$CYTHON" # Let the user override the test.
17688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17689 for as_dir in $PATH
17692 test -z "$as_dir" && as_dir=.
17693 for ac_exec_ext in '' $ac_executable_extensions; do
17694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17695 ac_cv_prog_CYTHON="$ac_prog"
17696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17705 CYTHON=$ac_cv_prog_CYTHON
17706 if test -n "$CYTHON"; then
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
17708 $as_echo "$CYTHON" >&6; }
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17711 $as_echo "no" >&6; }
17715 test -n "$CYTHON" && break
17719 CYTHON=${cython_path}
17724 # If we're running GCC or clang define _U_ to be "__attribute__((unused))"
17725 # so we can use _U_ to flag unused function parameters and not get warnings
17726 # about them. Otherwise, define _U_ to be an empty string so that _U_ used
17727 # to flag an unused function parameters will compile with other compilers.
17729 # XXX - similar hints for other compilers?
17731 if test "x$GCC" = "xyes" -o "x$CC" = "xclang" ; then
17733 $as_echo "#define _U_ __attribute__((unused))" >>confdefs.h
17737 $as_echo "#define _U_ /**/" >>confdefs.h
17741 ax_cxx_compile_cxx11_required=falsednl
17743 ac_cpp='$CXXCPP $CPPFLAGS'
17744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17749 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17750 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17751 $as_echo_n "(cached) " >&6
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 template <typename T>
17759 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17762 typedef check<check<bool>> right_angle_brackets;
17767 typedef check<int> check_type;
17769 check_type&& cr = static_cast<check_type&&>(c);
17774 if ac_fn_cxx_try_compile "$LINENO"; then :
17775 ax_cv_cxx_compile_cxx11=yes
17777 ax_cv_cxx_compile_cxx11=no
17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17782 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17783 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17789 if test x$ac_success = xno; then
17790 for switch in -std=c++11 -std=c++0x; do
17791 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17793 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17794 if eval \${$cachevar+:} false; then :
17795 $as_echo_n "(cached) " >&6
17797 ac_save_CXXFLAGS="$CXXFLAGS"
17798 CXXFLAGS="$CXXFLAGS $switch"
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17802 template <typename T>
17805 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17808 typedef check<check<bool>> right_angle_brackets;
17813 typedef check<int> check_type;
17815 check_type&& cr = static_cast<check_type&&>(c);
17820 if ac_fn_cxx_try_compile "$LINENO"; then :
17825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826 CXXFLAGS="$ac_save_CXXFLAGS"
17828 eval ac_res=\$$cachevar
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17830 $as_echo "$ac_res" >&6; }
17831 if eval test x\$$cachevar = xyes; then
17832 CXXFLAGS="$CXXFLAGS $switch"
17839 ac_cpp='$CPP $CPPFLAGS'
17840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17844 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17845 if test x$ac_success = xno; then
17846 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17849 if test x$ac_success = xno; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17852 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17856 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17865 ac_cpp='$CXXCPP $CPPFLAGS'
17866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17871 # Check that std::chrono::steady_clock is available. In particular,
17872 # gcc 4.6 does not have one, but has monotonic_clock which is the old
17873 # name existed in the pre-standard draft. If steady_clock is not
17874 # available, don't define HAVE_STEADY_CLOCK and replace steady_clock
17875 # with monotonic_clock.
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::chrono::steady_clock is available" >&5
17877 $as_echo_n "checking whether std::chrono::steady_clock is available... " >&6; }
17878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17879 /* end confdefs.h. */
17887 auto tp = std::chrono::steady_clock::now();
17893 if ac_fn_cxx_try_compile "$LINENO"; then :
17895 $as_echo "#define HAVE_STEADY_CLOCK 1" >>confdefs.h
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17901 $as_echo "no" >&6; }
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 # Check that std::future is available.
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::future is available" >&5
17907 $as_echo_n "checking whether std::future is available... " >&6; }
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17918 std::vector<std::future<int>> v;
17924 if ac_fn_cxx_try_compile "$LINENO"; then :
17926 $as_echo "#define HAVE_STD_FUTURE 1" >>confdefs.h
17928 have_std_future=yes
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930 $as_echo "yes" >&6; }
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938 # Check that std::map::emplace is available for g++-4.7.
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::map::emplace is available" >&5
17940 $as_echo_n "checking whether std::map::emplace is available... " >&6; }
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17950 std::map<int, int>().emplace(1, 2);
17956 if ac_fn_cxx_try_compile "$LINENO"; then :
17958 $as_echo "#define HAVE_STD_MAP_EMPLACE 1" >>confdefs.h
17960 have_std_map_emplace=yes
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17962 $as_echo "yes" >&6; }
17964 have_std_map_emplace=no
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17966 $as_echo "no" >&6; }
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977 # Checks for libraries.
17979 # Additional libraries required for tests.
17982 # Additional libraries required for programs under src directory.
17986 # Search for dlsym function, which is used in tests. Linux needs -ldl,
17987 # but netbsd does not need it.
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
17989 $as_echo_n "checking for library containing dlsym... " >&6; }
17990 if ${ac_cv_search_dlsym+:} false; then :
17991 $as_echo_n "(cached) " >&6
17993 ac_func_search_save_LIBS=$LIBS
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18012 for ac_lib in '' dl; do
18013 if test -z "$ac_lib"; then
18014 ac_res="none required"
18017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18019 if ac_fn_c_try_link "$LINENO"; then :
18020 ac_cv_search_dlsym=$ac_res
18022 rm -f core conftest.err conftest.$ac_objext \
18024 if ${ac_cv_search_dlsym+:} false; then :
18028 if ${ac_cv_search_dlsym+:} false; then :
18031 ac_cv_search_dlsym=no
18033 rm conftest.$ac_ext
18034 LIBS=$ac_func_search_save_LIBS
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
18037 $as_echo "$ac_cv_search_dlsym" >&6; }
18038 ac_res=$ac_cv_search_dlsym
18039 if test "$ac_res" != no; then :
18040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18044 TESTLDADD="$LIBS $TESTLDADD"
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18049 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18050 if ${ac_cv_search_clock_gettime+:} false; then :
18051 $as_echo_n "(cached) " >&6
18053 ac_func_search_save_LIBS=$LIBS
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18063 char clock_gettime ();
18067 return clock_gettime ();
18072 for ac_lib in '' rt; do
18073 if test -z "$ac_lib"; then
18074 ac_res="none required"
18077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18079 if ac_fn_c_try_link "$LINENO"; then :
18080 ac_cv_search_clock_gettime=$ac_res
18082 rm -f core conftest.err conftest.$ac_objext \
18084 if ${ac_cv_search_clock_gettime+:} false; then :
18088 if ${ac_cv_search_clock_gettime+:} false; then :
18091 ac_cv_search_clock_gettime=no
18093 rm conftest.$ac_ext
18094 LIBS=$ac_func_search_save_LIBS
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18097 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18098 ac_res=$ac_cv_search_clock_gettime
18099 if test "$ac_res" != no; then :
18100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18102 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18106 APPLDFLAGS="$LIBS $APPLDFLAGS"
18112 # android does not need -pthread, but needs followng 3 libs for C++
18113 APPLDFLAGS="$APPLDFLAGS -lstdc++ -latomic -lsupc++"
18116 PTHREAD_LDFLAGS="-pthread"
18117 APPLDFLAGS="$APPLDFLAGS $PTHREAD_LDFLAGS"
18122 if test "x$android_build" = "xyes"; then
18123 # Use zlib provided by NDK
18124 APPLDFLAGS="-lz $APPLDFLAGS"
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
18130 $as_echo_n "checking for ZLIB... " >&6; }
18132 if test -n "$ZLIB_CFLAGS"; then
18133 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18134 elif test -n "$PKG_CONFIG"; then
18135 if test -n "$PKG_CONFIG" && \
18136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
18137 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
18139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18140 test $ac_status = 0; }; then
18141 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.3" 2>/dev/null`
18142 test "x$?" != "x0" && pkg_failed=yes
18149 if test -n "$ZLIB_LIBS"; then
18150 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18151 elif test -n "$PKG_CONFIG"; then
18152 if test -n "$PKG_CONFIG" && \
18153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.3\""; } >&5
18154 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.3") 2>&5
18156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18157 test $ac_status = 0; }; then
18158 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.3" 2>/dev/null`
18159 test "x$?" != "x0" && pkg_failed=yes
18169 if test $pkg_failed = yes; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171 $as_echo "no" >&6; }
18173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18174 _pkg_short_errors_supported=yes
18176 _pkg_short_errors_supported=no
18178 if test $_pkg_short_errors_supported = yes; then
18179 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
18181 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.3" 2>&1`
18183 # Put the nasty error message in config.log where it belongs
18184 echo "$ZLIB_PKG_ERRORS" >&5
18187 elif test $pkg_failed = untried; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189 $as_echo "no" >&6; }
18192 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18193 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18195 $as_echo "yes" >&6; }
18199 if test "x${have_zlib}" = "xno"; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: $ZLIB_PKG_ERRORS" >&5
18201 $as_echo "$as_me: $ZLIB_PKG_ERRORS" >&6;}
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
18209 $as_echo_n "checking for CUNIT... " >&6; }
18211 if test -n "$CUNIT_CFLAGS"; then
18212 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
18213 elif test -n "$PKG_CONFIG"; then
18214 if test -n "$PKG_CONFIG" && \
18215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
18216 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
18218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18219 test $ac_status = 0; }; then
18220 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.1" 2>/dev/null`
18221 test "x$?" != "x0" && pkg_failed=yes
18228 if test -n "$CUNIT_LIBS"; then
18229 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
18230 elif test -n "$PKG_CONFIG"; then
18231 if test -n "$PKG_CONFIG" && \
18232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.1\""; } >&5
18233 ($PKG_CONFIG --exists --print-errors "cunit >= 2.1") 2>&5
18235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18236 test $ac_status = 0; }; then
18237 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.1" 2>/dev/null`
18238 test "x$?" != "x0" && pkg_failed=yes
18248 if test $pkg_failed = yes; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18253 _pkg_short_errors_supported=yes
18255 _pkg_short_errors_supported=no
18257 if test $_pkg_short_errors_supported = yes; then
18258 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
18260 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cunit >= 2.1" 2>&1`
18262 # Put the nasty error message in config.log where it belongs
18263 echo "$CUNIT_PKG_ERRORS" >&5
18266 elif test $pkg_failed = untried; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268 $as_echo "no" >&6; }
18271 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
18272 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274 $as_echo "yes" >&6; }
18277 # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
18278 # do this because Debian (Ubuntu) lacks pkg-config file for cunit.
18279 if test "x${have_cunit}" = "xno"; then
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CUNIT_PKG_ERRORS}" >&5
18281 $as_echo "$as_me: WARNING: ${CUNIT_PKG_ERRORS}" >&2;}
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5
18283 $as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; }
18284 if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then :
18285 $as_echo_n "(cached) " >&6
18287 ac_check_lib_save_LIBS=$LIBS
18288 LIBS="-lcunit $LIBS"
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18292 /* Override any GCC internal prototype to avoid an error.
18293 Use char because int might match the return type of a GCC
18294 builtin and then its argument prototype would still apply. */
18298 char CU_initialize_registry ();
18302 return CU_initialize_registry ();
18307 if ac_fn_c_try_link "$LINENO"; then :
18308 ac_cv_lib_cunit_CU_initialize_registry=yes
18310 ac_cv_lib_cunit_CU_initialize_registry=no
18312 rm -f core conftest.err conftest.$ac_objext \
18313 conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5
18317 $as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; }
18318 if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then :
18324 if test "x${have_cunit}" = "xyes"; then
18325 CUNIT_LIBS="-lcunit"
18331 if test "x${have_cunit}" = "xyes"; then
18332 # cunit in Mac OS X requires ncurses. Note that in Mac OS X, test
18333 # program can be built without -lncurses, but it emits runtime
18337 CUNIT_LIBS="$CUNIT_LIBS -lncurses"
18343 if test "x${have_cunit}" = "xyes" ; then
18345 HAVE_CUNIT_FALSE='#'
18347 HAVE_CUNIT_TRUE='#'
18353 # libev does not have pkg-config file. Check it in an old way.
18355 # android requires -lm for floor
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
18357 $as_echo_n "checking for ev_time in -lev... " >&6; }
18358 if ${ac_cv_lib_ev_ev_time+:} false; then :
18359 $as_echo_n "(cached) " >&6
18361 ac_check_lib_save_LIBS=$LIBS
18362 LIBS="-lev -lm $LIBS"
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18366 /* Override any GCC internal prototype to avoid an error.
18367 Use char because int might match the return type of a GCC
18368 builtin and then its argument prototype would still apply. */
18381 if ac_fn_c_try_link "$LINENO"; then :
18382 ac_cv_lib_ev_ev_time=yes
18384 ac_cv_lib_ev_ev_time=no
18386 rm -f core conftest.err conftest.$ac_objext \
18387 conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
18391 $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
18392 if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
18398 if test "x${have_libev}" = "xyes"; then
18399 ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
18400 if test "x$ac_cv_header_ev_h" = xyes; then :
18407 if test "x${have_libev}" = "xyes"; then
18416 # openssl (for src)
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
18420 $as_echo_n "checking for OPENSSL... " >&6; }
18422 if test -n "$OPENSSL_CFLAGS"; then
18423 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
18424 elif test -n "$PKG_CONFIG"; then
18425 if test -n "$PKG_CONFIG" && \
18426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18427 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18430 test $ac_status = 0; }; then
18431 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.0.1" 2>/dev/null`
18432 test "x$?" != "x0" && pkg_failed=yes
18439 if test -n "$OPENSSL_LIBS"; then
18440 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
18441 elif test -n "$PKG_CONFIG"; then
18442 if test -n "$PKG_CONFIG" && \
18443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.0.1\""; } >&5
18444 ($PKG_CONFIG --exists --print-errors "openssl >= 1.0.1") 2>&5
18446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18447 test $ac_status = 0; }; then
18448 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.0.1" 2>/dev/null`
18449 test "x$?" != "x0" && pkg_failed=yes
18459 if test $pkg_failed = yes; then
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18461 $as_echo "no" >&6; }
18463 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18464 _pkg_short_errors_supported=yes
18466 _pkg_short_errors_supported=no
18468 if test $_pkg_short_errors_supported = yes; then
18469 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18471 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.0.1" 2>&1`
18473 # Put the nasty error message in config.log where it belongs
18474 echo "$OPENSSL_PKG_ERRORS" >&5
18477 elif test $pkg_failed = untried; then
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18482 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
18483 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18485 $as_echo "yes" >&6; }
18488 if test "x${have_openssl}" = "xno"; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENSSL_PKG_ERRORS" >&5
18490 $as_echo "$as_me: $OPENSSL_PKG_ERRORS" >&6;}
18493 # libevent_openssl (for examples)
18494 # 2.0.8 is required because we use evconnlistener_set_error_cb()
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVENT_OPENSSL" >&5
18498 $as_echo_n "checking for LIBEVENT_OPENSSL... " >&6; }
18500 if test -n "$LIBEVENT_OPENSSL_CFLAGS"; then
18501 pkg_cv_LIBEVENT_OPENSSL_CFLAGS="$LIBEVENT_OPENSSL_CFLAGS"
18502 elif test -n "$PKG_CONFIG"; then
18503 if test -n "$PKG_CONFIG" && \
18504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
18505 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
18507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508 test $ac_status = 0; }; then
18509 pkg_cv_LIBEVENT_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libevent_openssl >= 2.0.8" 2>/dev/null`
18510 test "x$?" != "x0" && pkg_failed=yes
18517 if test -n "$LIBEVENT_OPENSSL_LIBS"; then
18518 pkg_cv_LIBEVENT_OPENSSL_LIBS="$LIBEVENT_OPENSSL_LIBS"
18519 elif test -n "$PKG_CONFIG"; then
18520 if test -n "$PKG_CONFIG" && \
18521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevent_openssl >= 2.0.8\""; } >&5
18522 ($PKG_CONFIG --exists --print-errors "libevent_openssl >= 2.0.8") 2>&5
18524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18525 test $ac_status = 0; }; then
18526 pkg_cv_LIBEVENT_OPENSSL_LIBS=`$PKG_CONFIG --libs "libevent_openssl >= 2.0.8" 2>/dev/null`
18527 test "x$?" != "x0" && pkg_failed=yes
18537 if test $pkg_failed = yes; then
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539 $as_echo "no" >&6; }
18541 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18542 _pkg_short_errors_supported=yes
18544 _pkg_short_errors_supported=no
18546 if test $_pkg_short_errors_supported = yes; then
18547 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
18549 LIBEVENT_OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevent_openssl >= 2.0.8" 2>&1`
18551 # Put the nasty error message in config.log where it belongs
18552 echo "$LIBEVENT_OPENSSL_PKG_ERRORS" >&5
18554 have_libevent_openssl=no
18555 elif test $pkg_failed = untried; then
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18558 have_libevent_openssl=no
18560 LIBEVENT_OPENSSL_CFLAGS=$pkg_cv_LIBEVENT_OPENSSL_CFLAGS
18561 LIBEVENT_OPENSSL_LIBS=$pkg_cv_LIBEVENT_OPENSSL_LIBS
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18563 $as_echo "yes" >&6; }
18564 have_libevent_openssl=yes
18566 if test "x${have_libevent_openssl}" = "xno"; then
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBEVENT_OPENSSL_PKG_ERRORS" >&5
18568 $as_echo "$as_me: $LIBEVENT_OPENSSL_PKG_ERRORS" >&6;}
18571 # jansson (for src/nghttp, src/deflatehd and src/inflatehd)
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5
18575 $as_echo_n "checking for JANSSON... " >&6; }
18577 if test -n "$JANSSON_CFLAGS"; then
18578 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
18579 elif test -n "$PKG_CONFIG"; then
18580 if test -n "$PKG_CONFIG" && \
18581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
18582 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
18584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; }; then
18586 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null`
18587 test "x$?" != "x0" && pkg_failed=yes
18594 if test -n "$JANSSON_LIBS"; then
18595 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
18596 elif test -n "$PKG_CONFIG"; then
18597 if test -n "$PKG_CONFIG" && \
18598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5
18599 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5
18601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18602 test $ac_status = 0; }; then
18603 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null`
18604 test "x$?" != "x0" && pkg_failed=yes
18614 if test $pkg_failed = yes; then
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616 $as_echo "no" >&6; }
18618 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18619 _pkg_short_errors_supported=yes
18621 _pkg_short_errors_supported=no
18623 if test $_pkg_short_errors_supported = yes; then
18624 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
18626 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1`
18628 # Put the nasty error message in config.log where it belongs
18629 echo "$JANSSON_PKG_ERRORS" >&5
18632 elif test $pkg_failed = untried; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18637 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
18638 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18643 if test "x${have_jansson}" == "xyes"; then
18645 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: $JANSSON_PKG_ERRORS" >&5
18649 $as_echo "$as_me: $JANSSON_PKG_ERRORS" >&6;}
18652 # libxml2 (for src/nghttp)
18654 if test "x${request_libxml2}" != "xno"; then
18657 # Check whether --with-xml-prefix was given.
18658 if test "${with_xml_prefix+set}" = set; then :
18659 withval=$with_xml_prefix; xml_config_prefix="$withval"
18661 xml_config_prefix=""
18665 # Check whether --with-xml-exec-prefix was given.
18666 if test "${with_xml_exec_prefix+set}" = set; then :
18667 withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
18669 xml_config_exec_prefix=""
18672 # Check whether --enable-xmltest was given.
18673 if test "${enable_xmltest+set}" = set; then :
18674 enableval=$enable_xmltest;
18680 if test x$xml_config_exec_prefix != x ; then
18681 xml_config_args="$xml_config_args"
18682 if test x${XML2_CONFIG+set} != xset ; then
18683 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
18686 if test x$xml_config_prefix != x ; then
18687 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
18688 if test x${XML2_CONFIG+set} != xset ; then
18689 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
18693 # Extract the first word of "xml2-config", so it can be a program name with args.
18694 set dummy xml2-config; ac_word=$2
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18696 $as_echo_n "checking for $ac_word... " >&6; }
18697 if ${ac_cv_path_XML2_CONFIG+:} false; then :
18698 $as_echo_n "(cached) " >&6
18700 case $XML2_CONFIG in
18702 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
18705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18709 test -z "$as_dir" && as_dir=.
18710 for ac_exec_ext in '' $ac_executable_extensions; do
18711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18720 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
18724 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
18725 if test -n "$XML2_CONFIG"; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
18727 $as_echo "$XML2_CONFIG" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18734 min_xml_version=2.7.7
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
18736 $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
18738 if test "$XML2_CONFIG" = "no" ; then
18741 XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
18742 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
18743 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
18744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18745 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
18746 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18747 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
18748 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18749 if test "x$enable_xmltest" = "xyes" ; then
18750 ac_save_CPPFLAGS="$CPPFLAGS"
18751 ac_save_LIBS="$LIBS"
18752 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18753 LIBS="$XML_LIBS $LIBS"
18755 if test "$cross_compiling" = yes; then :
18756 echo $ac_n "cross compiling; assumed OK... $ac_c"
18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18759 /* end confdefs.h. */
18761 #include <stdlib.h>
18763 #include <string.h>
18764 #include <libxml/xmlversion.h>
18769 int xml_major_version, xml_minor_version, xml_micro_version;
18770 int major, minor, micro;
18773 system("touch conf.xmltest");
18775 /* Capture xml2-config output via autoconf/configure variables */
18776 /* HP/UX 9 (%@#!) writes to sscanf strings */
18777 tmp_version = (char *)strdup("$min_xml_version");
18778 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18779 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
18784 /* Capture the version information from the header files */
18785 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
18786 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
18787 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
18792 /* Compare xml2-config output to the libxml headers */
18793 if ((xml_major_version != $xml_config_major_version) ||
18794 (xml_minor_version != $xml_config_minor_version) ||
18795 (xml_micro_version != $xml_config_micro_version))
18797 printf("*** libxml header files (version %d.%d.%d) do not match\n",
18798 xml_major_version, xml_minor_version, xml_micro_version);
18799 printf("*** xml2-config (version %d.%d.%d)\n",
18800 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
18803 /* Compare the headers to the library to make sure we match */
18804 /* Less than ideal -- doesn't provide us with return value feedback,
18805 * only exits if there's a serious mismatch between header and library.
18807 LIBXML_TEST_VERSION;
18809 /* Test that the library is greater than our minimum version */
18810 if ((xml_major_version > major) ||
18811 ((xml_major_version == major) && (xml_minor_version > minor)) ||
18812 ((xml_major_version == major) && (xml_minor_version == minor) &&
18813 (xml_micro_version >= micro)))
18819 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
18820 xml_major_version, xml_minor_version, xml_micro_version);
18821 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
18822 major, minor, micro);
18823 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
18825 printf("*** If you have already installed a sufficiently new version, this error\n");
18826 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
18827 printf("*** being found. The easiest way to fix this is to remove the old version\n");
18828 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
18829 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
18830 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18831 printf("*** so that the correct libraries are found at run-time))\n");
18837 if ac_fn_c_try_run "$LINENO"; then :
18842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18843 conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 CPPFLAGS="$ac_save_CPPFLAGS"
18847 LIBS="$ac_save_LIBS"
18851 if test "x$no_xml" = x ; then
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
18853 $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 if test "$XML2_CONFIG" = "no" ; then
18859 echo "*** The xml2-config script installed by LIBXML could not be found"
18860 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
18861 echo "*** your path, or set the XML2_CONFIG environment variable to the"
18862 echo "*** full path to xml2-config."
18864 if test -f conf.xmltest ; then
18867 echo "*** Could not run libxml test program, checking why..."
18868 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
18869 LIBS="$LIBS $XML_LIBS"
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18873 #include <libxml/xmlversion.h>
18879 LIBXML_TEST_VERSION; return 0;
18884 if ac_fn_c_try_link "$LINENO"; then :
18885 echo "*** The test program compiled, but did not run. This usually means"
18886 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
18887 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
18888 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18889 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18890 echo "*** is required on your system"
18892 echo "*** If you have an old version installed, it is best to remove it, although"
18893 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18895 echo "*** The test program failed to compile or link. See the file config.log for the"
18896 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
18897 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
18898 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
18900 rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18902 CPPFLAGS="$ac_save_CPPFLAGS"
18903 LIBS="$ac_save_LIBS"
18915 if test "x${have_libxml2}" = "xyes"; then
18917 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18922 if test "x${request_libxml2}" = "xyes" &&
18923 test "x${have_libxml2}" != "xyes"; then
18924 as_fn_error $? "libxml2 was requested (--with-libxml2) but not found" "$LINENO" 5
18927 if test "x${have_libxml2}" = "xyes" ; then
18929 HAVE_LIBXML2_FALSE='#'
18931 HAVE_LIBXML2_TRUE='#'
18932 HAVE_LIBXML2_FALSE=
18938 if test "x${request_jemalloc}" != "xno"; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc_stats_print" >&5
18941 $as_echo_n "checking for library containing malloc_stats_print... " >&6; }
18942 if ${ac_cv_search_malloc_stats_print+:} false; then :
18943 $as_echo_n "(cached) " >&6
18945 ac_func_search_save_LIBS=$LIBS
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18949 /* Override any GCC internal prototype to avoid an error.
18950 Use char because int might match the return type of a GCC
18951 builtin and then its argument prototype would still apply. */
18955 char malloc_stats_print ();
18959 return malloc_stats_print ();
18964 for ac_lib in '' jemalloc; do
18965 if test -z "$ac_lib"; then
18966 ac_res="none required"
18969 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
18971 if ac_fn_c_try_link "$LINENO"; then :
18972 ac_cv_search_malloc_stats_print=$ac_res
18974 rm -f core conftest.err conftest.$ac_objext \
18976 if ${ac_cv_search_malloc_stats_print+:} false; then :
18980 if ${ac_cv_search_malloc_stats_print+:} false; then :
18983 ac_cv_search_malloc_stats_print=no
18985 rm conftest.$ac_ext
18986 LIBS=$ac_func_search_save_LIBS
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc_stats_print" >&5
18989 $as_echo "$ac_cv_search_malloc_stats_print" >&6; }
18990 ac_res=$ac_cv_search_malloc_stats_print
18991 if test "$ac_res" != no; then :
18992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18998 if test "x${have_jemalloc}" = "xyes"; then
18999 jemalloc_libs=${ac_cv_search_malloc_stats_print}
19001 # On Darwin, malloc_stats_print is je_malloc_stats_print
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing je_malloc_stats_print" >&5
19003 $as_echo_n "checking for library containing je_malloc_stats_print... " >&6; }
19004 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19005 $as_echo_n "(cached) " >&6
19007 ac_func_search_save_LIBS=$LIBS
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19017 char je_malloc_stats_print ();
19021 return je_malloc_stats_print ();
19026 for ac_lib in '' jemalloc; do
19027 if test -z "$ac_lib"; then
19028 ac_res="none required"
19031 LIBS="-l$ac_lib $PTHREAD_LDFLAGS $ac_func_search_save_LIBS"
19033 if ac_fn_c_try_link "$LINENO"; then :
19034 ac_cv_search_je_malloc_stats_print=$ac_res
19036 rm -f core conftest.err conftest.$ac_objext \
19038 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19042 if ${ac_cv_search_je_malloc_stats_print+:} false; then :
19045 ac_cv_search_je_malloc_stats_print=no
19047 rm conftest.$ac_ext
19048 LIBS=$ac_func_search_save_LIBS
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_je_malloc_stats_print" >&5
19051 $as_echo "$ac_cv_search_je_malloc_stats_print" >&6; }
19052 ac_res=$ac_cv_search_je_malloc_stats_print
19053 if test "$ac_res" != no; then :
19054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19060 if test "x${have_jemalloc}" = "xyes"; then
19061 jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
19065 if test "x${have_jemalloc}" = "xyes" &&
19066 test "x${jemalloc_libs}" != "xnone required"; then
19067 JEMALLOC_LIBS=${jemalloc_libs}
19072 if test "x${request_jemalloc}" = "xyes" &&
19073 test "x${have_jemalloc}" != "xyes"; then
19074 as_fn_error $? "jemalloc was requested (--with-jemalloc) but not found" "$LINENO" 5
19077 # spdylay (for src/nghttpx and src/h2load)
19079 if test "x${request_spdylay}" != "xno"; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSPDYLAY" >&5
19083 $as_echo_n "checking for LIBSPDYLAY... " >&6; }
19085 if test -n "$LIBSPDYLAY_CFLAGS"; then
19086 pkg_cv_LIBSPDYLAY_CFLAGS="$LIBSPDYLAY_CFLAGS"
19087 elif test -n "$PKG_CONFIG"; then
19088 if test -n "$PKG_CONFIG" && \
19089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libspdylay >= 1.3.2\""; } >&5
19090 ($PKG_CONFIG --exists --print-errors "libspdylay >= 1.3.2") 2>&5
19092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093 test $ac_status = 0; }; then
19094 pkg_cv_LIBSPDYLAY_CFLAGS=`$PKG_CONFIG --cflags "libspdylay >= 1.3.2" 2>/dev/null`
19095 test "x$?" != "x0" && pkg_failed=yes
19102 if test -n "$LIBSPDYLAY_LIBS"; then
19103 pkg_cv_LIBSPDYLAY_LIBS="$LIBSPDYLAY_LIBS"
19104 elif test -n "$PKG_CONFIG"; then
19105 if test -n "$PKG_CONFIG" && \
19106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libspdylay >= 1.3.2\""; } >&5
19107 ($PKG_CONFIG --exists --print-errors "libspdylay >= 1.3.2") 2>&5
19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; }; then
19111 pkg_cv_LIBSPDYLAY_LIBS=`$PKG_CONFIG --libs "libspdylay >= 1.3.2" 2>/dev/null`
19112 test "x$?" != "x0" && pkg_failed=yes
19122 if test $pkg_failed = yes; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19127 _pkg_short_errors_supported=yes
19129 _pkg_short_errors_supported=no
19131 if test $_pkg_short_errors_supported = yes; then
19132 LIBSPDYLAY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libspdylay >= 1.3.2" 2>&1`
19134 LIBSPDYLAY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libspdylay >= 1.3.2" 2>&1`
19136 # Put the nasty error message in config.log where it belongs
19137 echo "$LIBSPDYLAY_PKG_ERRORS" >&5
19140 elif test $pkg_failed = untried; then
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19145 LIBSPDYLAY_CFLAGS=$pkg_cv_LIBSPDYLAY_CFLAGS
19146 LIBSPDYLAY_LIBS=$pkg_cv_LIBSPDYLAY_LIBS
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19148 $as_echo "yes" >&6; }
19151 if test "x${have_spdylay}" = "xyes"; then
19153 $as_echo "#define HAVE_SPDYLAY 1" >>confdefs.h
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBSPDYLAY_PKG_ERRORS" >&5
19157 $as_echo "$as_me: $LIBSPDYLAY_PKG_ERRORS" >&6;}
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: The SPDY support in nghttpx and h2load will be disabled." >&5
19159 $as_echo "$as_me: The SPDY support in nghttpx and h2load will be disabled." >&6;}
19163 if test "x${request_spdylay}" = "xyes" &&
19164 test "x${have_spdylay}" != "xyes"; then
19165 as_fn_error $? "spdylay was requested (--with-spdylay) but not found" "$LINENO" 5
19168 if test "x${have_spdylay}" = "xyes" ; then
19170 HAVE_SPDYLAY_FALSE='#'
19172 HAVE_SPDYLAY_TRUE='#'
19173 HAVE_SPDYLAY_FALSE=
19177 # Check Boost Asio library
19180 if test "x${request_asio_lib}" = "xyes"; then
19183 # Check whether --with-boost was given.
19184 if test "${with_boost+set}" = set; then :
19185 withval=$with_boost;
19186 if test "$withval" = "no"; then
19188 elif test "$withval" = "yes"; then
19193 ac_boost_path="$withval"
19203 # Check whether --with-boost-libdir was given.
19204 if test "${with_boost_libdir+set}" = set; then :
19205 withval=$with_boost_libdir;
19206 if test -d "$withval"
19208 ac_boost_lib_path="$withval"
19210 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
19214 ac_boost_lib_path=""
19219 if test "x$want_boost" = "xyes"; then
19220 boost_lib_version_req=1.54.0
19221 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
19222 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
19223 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
19224 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
19225 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
19226 boost_lib_version_req_sub_minor="0"
19228 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
19230 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
19237 libsubdirs="lib64 libx32 lib lib64"
19239 ppc64|s390x|sparc64|aarch64|ppc64le)
19240 libsubdirs="lib64 lib lib64 ppc64le"
19245 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
19247 case ${host_cpu} in
19249 libsubdirs="lib/i386-${host_os} $libsubdirs"
19253 if test "$ac_boost_path" != ""; then
19254 BOOST_CPPFLAGS="-I$ac_boost_path/include"
19255 for ac_boost_path_tmp in $libsubdirs; do
19256 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
19257 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
19261 elif test "$cross_compiling" != yes; then
19262 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
19263 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
19264 for libsubdir in $libsubdirs ; do
19265 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19267 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
19268 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
19274 if test "$ac_boost_lib_path" != ""; then
19275 BOOST_LDFLAGS="-L$ac_boost_lib_path"
19278 CPPFLAGS_SAVED="$CPPFLAGS"
19279 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19282 LDFLAGS_SAVED="$LDFLAGS"
19283 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19296 #include <boost/version.hpp>
19302 #if BOOST_VERSION >= $WANT_BOOST_VERSION
19303 // Everything is okay
19305 # error Boost version is too old
19312 if ac_fn_cxx_try_compile "$LINENO"; then :
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19315 $as_echo "yes" >&6; }
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322 ac_cpp='$CPP $CPPFLAGS'
19323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19330 if test "x$succeeded" != "xyes"; then
19332 if test "$ac_boost_path" != ""; then
19333 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
19334 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
19335 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19336 V_CHECK=`expr $_version_tmp \> $_version`
19337 if test "$V_CHECK" = "1" ; then
19338 _version=$_version_tmp
19340 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19341 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
19345 if test "$cross_compiling" != yes; then
19346 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
19347 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
19348 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
19349 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
19350 V_CHECK=`expr $_version_tmp \> $_version`
19351 if test "$V_CHECK" = "1" ; then
19352 _version=$_version_tmp
19353 best_path=$ac_boost_path
19359 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
19360 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
19361 if test "$ac_boost_lib_path" = ""; then
19362 for libsubdir in $libsubdirs ; do
19363 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19365 BOOST_LDFLAGS="-L$best_path/$libsubdir"
19369 if test "x$BOOST_ROOT" != "x"; then
19370 for libsubdir in $libsubdirs ; do
19371 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
19373 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
19374 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
19375 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
19376 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
19377 V_CHECK=`expr $stage_version_shorten \>\= $_version`
19378 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
19380 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
19381 BOOST_CPPFLAGS="-I$BOOST_ROOT"
19382 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
19388 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19390 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19394 ac_cpp='$CXXCPP $CPPFLAGS'
19395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 #include <boost/version.hpp>
19408 #if BOOST_VERSION >= $WANT_BOOST_VERSION
19409 // Everything is okay
19411 # error Boost version is too old
19418 if ac_fn_cxx_try_compile "$LINENO"; then :
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421 $as_echo "yes" >&6; }
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19428 ac_cpp='$CPP $CPPFLAGS'
19429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435 if test "$succeeded" != "yes" ; then
19436 if test "$_version" = "0" ; then
19437 { $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
19438 $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;}
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
19441 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
19443 # execute ACTION-IF-NOT-FOUND (if present):
19449 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
19451 # execute ACTION-IF-FOUND (if present):
19452 have_boost_base=yes
19455 CPPFLAGS="$CPPFLAGS_SAVED"
19456 LDFLAGS="$LDFLAGS_SAVED"
19461 if test "x${have_boost_base}" = "xyes"; then
19464 # Check whether --with-boost-asio was given.
19465 if test "${with_boost_asio+set}" = set; then :
19466 withval=$with_boost_asio;
19467 if test "$withval" = "no"; then
19469 elif test "$withval" = "yes"; then
19471 ax_boost_user_asio_lib=""
19474 ax_boost_user_asio_lib="$withval"
19483 if test "x$want_boost" = "xyes"; then
19485 CPPFLAGS_SAVED="$CPPFLAGS"
19486 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19489 LDFLAGS_SAVED="$LDFLAGS"
19490 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::ASIO library is available" >&5
19494 $as_echo_n "checking whether the Boost::ASIO library is available... " >&6; }
19495 if ${ax_cv_boost_asio+:} false; then :
19496 $as_echo_n "(cached) " >&6
19499 ac_cpp='$CXXCPP $CPPFLAGS'
19500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 #include <boost/asio.hpp>
19513 boost::asio::io_service io;
19514 boost::system::error_code timer_result;
19515 boost::asio::deadline_timer t(io);
19524 if ac_fn_cxx_try_compile "$LINENO"; then :
19525 ax_cv_boost_asio=yes
19527 ax_cv_boost_asio=no
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_asio" >&5
19539 $as_echo "$ax_cv_boost_asio" >&6; }
19540 if test "x$ax_cv_boost_asio" = "xyes"; then
19542 $as_echo "#define HAVE_BOOST_ASIO /**/" >>confdefs.h
19545 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19546 if test "x$ax_boost_user_asio_lib" = "x"; then
19547 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
19548 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
19550 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
19551 if eval \${$as_ac_Lib+:} false; then :
19552 $as_echo_n "(cached) " >&6
19554 ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-l$ax_lib $LIBS"
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19568 if ac_fn_c_try_link "$LINENO"; then :
19569 eval "$as_ac_Lib=yes"
19571 eval "$as_ac_Lib=no"
19573 rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 eval ac_res=\$$as_ac_Lib
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19579 $as_echo "$ac_res" >&6; }
19580 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19581 BOOST_ASIO_LIB="-l$ax_lib" link_thread="yes" break
19588 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
19589 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
19591 $as_echo_n "checking for main in -l$ax_lib... " >&6; }
19592 if eval \${$as_ac_Lib+:} false; then :
19593 $as_echo_n "(cached) " >&6
19595 ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-l$ax_lib $LIBS"
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19609 if ac_fn_c_try_link "$LINENO"; then :
19610 eval "$as_ac_Lib=yes"
19612 eval "$as_ac_Lib=no"
19614 rm -f core conftest.err conftest.$ac_objext \
19615 conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19618 eval ac_res=\$$as_ac_Lib
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19620 $as_echo "$ac_res" >&6; }
19621 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19622 BOOST_ASIO_LIB="-l$ax_lib" link_asio="yes" break
19630 if test "x$ax_lib" = "x"; then
19631 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
19633 if test "x$link_asio" = "xno"; then
19634 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
19638 CPPFLAGS="$CPPFLAGS_SAVED"
19639 LDFLAGS="$LDFLAGS_SAVED"
19644 # Check whether --with-boost-system was given.
19645 if test "${with_boost_system+set}" = set; then :
19646 withval=$with_boost_system;
19647 if test "$withval" = "no"; then
19649 elif test "$withval" = "yes"; then
19651 ax_boost_user_system_lib=""
19654 ax_boost_user_system_lib="$withval"
19663 if test "x$want_boost" = "xyes"; then
19666 CPPFLAGS_SAVED="$CPPFLAGS"
19667 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19670 LDFLAGS_SAVED="$LDFLAGS"
19671 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
19675 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
19676 if ${ax_cv_boost_system+:} false; then :
19677 $as_echo_n "(cached) " >&6
19680 ac_cpp='$CXXCPP $CPPFLAGS'
19681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19685 CXXFLAGS_SAVE=$CXXFLAGS
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19689 #include <boost/system/error_code.hpp>
19693 boost::system::system_category
19698 if ac_fn_cxx_try_compile "$LINENO"; then :
19699 ax_cv_boost_system=yes
19701 ax_cv_boost_system=no
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 CXXFLAGS=$CXXFLAGS_SAVE
19706 ac_cpp='$CPP $CPPFLAGS'
19707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
19714 $as_echo "$ax_cv_boost_system" >&6; }
19715 if test "x$ax_cv_boost_system" = "xyes"; then
19719 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
19721 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19723 LDFLAGS_SAVE=$LDFLAGS
19724 if test "x$ax_boost_user_system_lib" = "x"; then
19725 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
19726 ax_lib=${libextension}
19727 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19729 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19730 if eval \${$as_ac_Lib+:} false; then :
19731 $as_echo_n "(cached) " >&6
19733 ac_check_lib_save_LIBS=$LIBS
19734 LIBS="-l$ax_lib $LIBS"
19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 eval "$as_ac_Lib=yes"
19756 eval "$as_ac_Lib=no"
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19762 eval ac_res=\$$as_ac_Lib
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19764 $as_echo "$ac_res" >&6; }
19765 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19766 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
19772 if test "x$link_system" != "xyes"; then
19773 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
19774 ax_lib=${libextension}
19775 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19777 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19778 if eval \${$as_ac_Lib+:} false; then :
19779 $as_echo_n "(cached) " >&6
19781 ac_check_lib_save_LIBS=$LIBS
19782 LIBS="-l$ax_lib $LIBS"
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19801 if ac_fn_c_try_link "$LINENO"; then :
19802 eval "$as_ac_Lib=yes"
19804 eval "$as_ac_Lib=no"
19806 rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 eval ac_res=\$$as_ac_Lib
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19812 $as_echo "$ac_res" >&6; }
19813 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19814 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
19823 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
19824 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19826 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19827 if eval \${$as_ac_Lib+:} false; then :
19828 $as_echo_n "(cached) " >&6
19830 ac_check_lib_save_LIBS=$LIBS
19831 LIBS="-l$ax_lib $LIBS"
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 eval "$as_ac_Lib=yes"
19853 eval "$as_ac_Lib=no"
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19857 LIBS=$ac_check_lib_save_LIBS
19859 eval ac_res=\$$as_ac_Lib
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19861 $as_echo "$ac_res" >&6; }
19862 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19863 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
19871 if test "x$ax_lib" = "x"; then
19872 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
19874 if test "x$link_system" = "xno"; then
19875 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
19879 CPPFLAGS="$CPPFLAGS_SAVED"
19880 LDFLAGS="$LDFLAGS_SAVED"
19885 # Check whether --with-boost-thread was given.
19886 if test "${with_boost_thread+set}" = set; then :
19887 withval=$with_boost_thread;
19888 if test "$withval" = "no"; then
19890 elif test "$withval" = "yes"; then
19892 ax_boost_user_thread_lib=""
19895 ax_boost_user_thread_lib="$withval"
19904 if test "x$want_boost" = "xyes"; then
19907 CPPFLAGS_SAVED="$CPPFLAGS"
19908 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
19911 LDFLAGS_SAVED="$LDFLAGS"
19912 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
19916 $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
19917 if ${ax_cv_boost_thread+:} false; then :
19918 $as_echo_n "(cached) " >&6
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19926 CXXFLAGS_SAVE=$CXXFLAGS
19928 if test "x$host_os" = "xsolaris" ; then
19929 CXXFLAGS="-pthreads $CXXFLAGS"
19930 elif test "x$host_os" = "xmingw32" ; then
19931 CXXFLAGS="-mthreads $CXXFLAGS"
19933 CXXFLAGS="-pthread $CXXFLAGS"
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19937 #include <boost/thread/thread.hpp>
19941 boost::thread_group thrds;
19947 if ac_fn_cxx_try_compile "$LINENO"; then :
19948 ax_cv_boost_thread=yes
19950 ax_cv_boost_thread=no
19952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953 CXXFLAGS=$CXXFLAGS_SAVE
19955 ac_cpp='$CPP $CPPFLAGS'
19956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
19963 $as_echo "$ax_cv_boost_thread" >&6; }
19964 if test "x$ax_cv_boost_thread" = "xyes"; then
19965 if test "x$host_os" = "xsolaris" ; then
19966 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
19967 elif test "x$host_os" = "xmingw32" ; then
19968 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
19970 BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
19976 $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
19978 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
19980 LDFLAGS_SAVE=$LDFLAGS
19981 case "x$host_os" in
19983 LDFLAGS="-pthread $LDFLAGS"
19987 if test "x$ax_boost_user_thread_lib" = "x"; then
19988 for libextension in `ls -r $BOOSTLIBDIR/libboost_thread* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'`; do
19989 ax_lib=${libextension}
19990 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
19992 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
19993 if eval \${$as_ac_Lib+:} false; then :
19994 $as_echo_n "(cached) " >&6
19996 ac_check_lib_save_LIBS=$LIBS
19997 LIBS="-l$ax_lib $LIBS"
19998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19999 /* end confdefs.h. */
20001 /* Override any GCC internal prototype to avoid an error.
20002 Use char because int might match the return type of a GCC
20003 builtin and then its argument prototype would still apply. */
20016 if ac_fn_c_try_link "$LINENO"; then :
20017 eval "$as_ac_Lib=yes"
20019 eval "$as_ac_Lib=no"
20021 rm -f core conftest.err conftest.$ac_objext \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20025 eval ac_res=\$$as_ac_Lib
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20027 $as_echo "$ac_res" >&6; }
20028 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20029 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
20035 if test "x$link_thread" != "xyes"; then
20036 for libextension in `ls -r $BOOSTLIBDIR/boost_thread* 2>/dev/null | sed 's,.*/,,' | sed 's,\..*,,'`; do
20037 ax_lib=${libextension}
20038 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20040 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20041 if eval \${$as_ac_Lib+:} false; then :
20042 $as_echo_n "(cached) " >&6
20044 ac_check_lib_save_LIBS=$LIBS
20045 LIBS="-l$ax_lib $LIBS"
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20064 if ac_fn_c_try_link "$LINENO"; then :
20065 eval "$as_ac_Lib=yes"
20067 eval "$as_ac_Lib=no"
20069 rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 eval ac_res=\$$as_ac_Lib
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20075 $as_echo "$ac_res" >&6; }
20076 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20077 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
20086 for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
20087 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
20089 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
20090 if eval \${$as_ac_Lib+:} false; then :
20091 $as_echo_n "(cached) " >&6
20093 ac_check_lib_save_LIBS=$LIBS
20094 LIBS="-l$ax_lib $LIBS"
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20113 if ac_fn_c_try_link "$LINENO"; then :
20114 eval "$as_ac_Lib=yes"
20116 eval "$as_ac_Lib=no"
20118 rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120 LIBS=$ac_check_lib_save_LIBS
20122 eval ac_res=\$$as_ac_Lib
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20124 $as_echo "$ac_res" >&6; }
20125 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20126 BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
20134 if test "x$ax_lib" = "x"; then
20135 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
20137 if test "x$link_thread" = "xno"; then
20138 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
20140 case "x$host_os" in
20142 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
20150 CPPFLAGS="$CPPFLAGS_SAVED"
20151 LDFLAGS="$LDFLAGS_SAVED"
20155 if test "x${ax_cv_boost_asio}" = "xyes" &&
20156 test "x${ax_cv_boost_system}" = "xyes" &&
20157 test "x${ax_cv_boost_thread}" = "xyes"; then
20163 # The nghttp, nghttpd and nghttpx under src depend on zlib, OpenSSL
20166 if test "x${request_app}" != "xno" &&
20167 test "x${have_zlib}" = "xyes" &&
20168 test "x${have_openssl}" = "xyes" &&
20169 test "x${have_libev}" = "xyes"; then
20173 if test "x${request_app}" = "xyes" &&
20174 test "x${enable_app}" != "xyes"; then
20175 as_fn_error $? "applications were requested (--enable-app) but dependencies are not met." "$LINENO" 5
20178 if test "x${enable_app}" = "xyes" ; then
20180 ENABLE_APP_FALSE='#'
20182 ENABLE_APP_TRUE='#'
20187 enable_hpack_tools=no
20188 # HPACK tools requires jansson
20189 if test "x${request_hpack_tools}" != "xno" &&
20190 test "x${have_jansson}" = "xyes"; then
20191 enable_hpack_tools=yes
20194 if test "x${request_hpack_tools}" = "xyes" &&
20195 test "x${enable_hpack_tools}" != "xyes"; then
20196 as_fn_error $? "HPACK tools were requested (--enable-hpack-tools) but dependencies are not met." "$LINENO" 5
20199 if test "x${enable_hpack_tools}" = "xyes" ; then
20200 ENABLE_HPACK_TOOLS_TRUE=
20201 ENABLE_HPACK_TOOLS_FALSE='#'
20203 ENABLE_HPACK_TOOLS_TRUE='#'
20204 ENABLE_HPACK_TOOLS_FALSE=
20208 # C++ library libnghttp2_asio
20211 if test "x${request_asio_lib}" != "xno" &&
20212 test "x${have_asio_lib}" = "xyes"; then
20213 enable_asio_lib=yes
20216 if test "x${enable_asio_lib}" = "xyes" ; then
20217 ENABLE_ASIO_LIB_TRUE=
20218 ENABLE_ASIO_LIB_FALSE='#'
20220 ENABLE_ASIO_LIB_TRUE='#'
20221 ENABLE_ASIO_LIB_FALSE=
20225 # The example programs depend on OpenSSL and libevent_openssl
20227 if test "x${request_examples}" != "xno" &&
20228 test "x${have_openssl}" = "xyes" &&
20229 test "x${have_libevent_openssl}" = "xyes"; then
20230 enable_examples=yes
20233 if test "x${request_examples}" = "xyes" &&
20234 test "x${enable_examples}" != "xyes"; then
20235 as_fn_error $? "examples were requested (--enable-examples) but dependencies are not met." "$LINENO" 5
20238 if test "x${enable_examples}" = "xyes" ; then
20239 ENABLE_EXAMPLES_TRUE=
20240 ENABLE_EXAMPLES_FALSE='#'
20242 ENABLE_EXAMPLES_TRUE='#'
20243 ENABLE_EXAMPLES_FALSE=
20248 enable_python_bindings=no
20249 if test "x${request_python_bindings}" != "xno" &&
20250 test "x${CYTHON}" != "x" &&
20251 test "x${PYTHON}" != "x:" &&
20252 test "x${have_python_dev}" = "xyes"; then
20253 enable_python_bindings=yes
20256 if test "x${request_python_bindings}" = "xyes" &&
20257 test "x${enable_python_bindings}" != "xyes"; then
20258 as_fn_error $? "python bindings were requested (--enable-python-bindings) but dependencies are not met." "$LINENO" 5
20261 if test "x${enable_python_bindings}" = "xyes"; then
20262 ENABLE_PYTHON_BINDINGS_TRUE=
20263 ENABLE_PYTHON_BINDINGS_FALSE='#'
20265 ENABLE_PYTHON_BINDINGS_TRUE='#'
20266 ENABLE_PYTHON_BINDINGS_FALSE=
20270 # Produce cython conditional, so that we can distribute generated C
20272 if test "x${CYTHON}" != "x"; then
20274 HAVE_CYTHON_FALSE='#'
20276 HAVE_CYTHON_TRUE='#'
20282 enable_failmalloc=no
20283 if test "x${request_failmalloc}" = "xyes"; then
20284 enable_failmalloc=yes
20287 if test "x${enable_failmalloc}" = "xyes" ; then
20288 ENABLE_FAILMALLOC_TRUE=
20289 ENABLE_FAILMALLOC_FALSE='#'
20291 ENABLE_FAILMALLOC_TRUE='#'
20292 ENABLE_FAILMALLOC_FALSE=
20296 # Checks for header files.
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20299 $as_echo_n "checking whether to enable assertions... " >&6; }
20300 # Check whether --enable-assert was given.
20301 if test "${enable_assert+set}" = set; then :
20302 enableval=$enable_assert; ac_enable_assert=$enableval
20303 if test "x$enableval" = xno; then :
20305 $as_echo "#define NDEBUG 1" >>confdefs.h
20307 elif test "x$enableval" != xyes; then :
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20309 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20310 ac_enable_assert=yes
20313 ac_enable_assert=yes
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20317 $as_echo "$ac_enable_assert" >&6; }
20338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20341 cat >>confdefs.h <<_ACEOF
20342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 # Checks for typedefs, structures, and compiler characteristics.
20351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20352 if test "x$ac_cv_type_size_t" = xyes; then :
20356 cat >>confdefs.h <<_ACEOF
20357 #define size_t unsigned int
20362 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20363 if test "x$ac_cv_type_ssize_t" = xyes; then :
20367 cat >>confdefs.h <<_ACEOF
20368 #define ssize_t int
20373 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
20374 case $ac_cv_c_uint8_t in #(
20378 $as_echo "#define _UINT8_T 1" >>confdefs.h
20381 cat >>confdefs.h <<_ACEOF
20382 #define uint8_t $ac_cv_c_uint8_t
20387 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
20388 case $ac_cv_c_uint16_t in #(
20393 cat >>confdefs.h <<_ACEOF
20394 #define uint16_t $ac_cv_c_uint16_t
20399 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
20400 case $ac_cv_c_uint32_t in #(
20404 $as_echo "#define _UINT32_T 1" >>confdefs.h
20407 cat >>confdefs.h <<_ACEOF
20408 #define uint32_t $ac_cv_c_uint32_t
20413 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
20414 case $ac_cv_c_uint64_t in #(
20418 $as_echo "#define _UINT64_T 1" >>confdefs.h
20421 cat >>confdefs.h <<_ACEOF
20422 #define uint64_t $ac_cv_c_uint64_t
20427 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
20428 case $ac_cv_c_int8_t in #(
20432 cat >>confdefs.h <<_ACEOF
20433 #define int8_t $ac_cv_c_int8_t
20438 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
20439 case $ac_cv_c_int16_t in #(
20443 cat >>confdefs.h <<_ACEOF
20444 #define int16_t $ac_cv_c_int16_t
20449 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
20450 case $ac_cv_c_int32_t in #(
20454 cat >>confdefs.h <<_ACEOF
20455 #define int32_t $ac_cv_c_int32_t
20460 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
20461 case $ac_cv_c_int64_t in #(
20465 cat >>confdefs.h <<_ACEOF
20466 #define int64_t $ac_cv_c_int64_t
20471 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20472 if test "x$ac_cv_type_off_t" = xyes; then :
20476 cat >>confdefs.h <<_ACEOF
20477 #define off_t long int
20482 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20483 if test "x$ac_cv_type_pid_t" = xyes; then :
20487 cat >>confdefs.h <<_ACEOF
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20494 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20495 if ${ac_cv_type_uid_t+:} false; then :
20496 $as_echo_n "(cached) " >&6
20498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h. */
20500 #include <sys/types.h>
20503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20504 $EGREP "uid_t" >/dev/null 2>&1; then :
20505 ac_cv_type_uid_t=yes
20507 ac_cv_type_uid_t=no
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20513 $as_echo "$ac_cv_type_uid_t" >&6; }
20514 if test $ac_cv_type_uid_t = no; then
20516 $as_echo "#define uid_t int" >>confdefs.h
20519 $as_echo "#define gid_t int" >>confdefs.h
20523 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20524 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_PTRDIFF_T 1
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20534 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20535 if ${ac_cv_c_bigendian+:} false; then :
20536 $as_echo_n "(cached) " >&6
20538 ac_cv_c_bigendian=unknown
20539 # See if we're dealing with a universal compiler.
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h. */
20542 #ifndef __APPLE_CC__
20543 not a universal capable compiler
20548 if ac_fn_c_try_compile "$LINENO"; then :
20550 # Check for potential -arch flags. It is not universal unless
20551 # there are at least two -arch flags with different values.
20554 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20555 if test -n "$ac_prev"; then
20557 i?86 | x86_64 | ppc | ppc64)
20558 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20561 ac_cv_c_bigendian=universal
20567 elif test "x$ac_word" = "x-arch"; then
20572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20573 if test $ac_cv_c_bigendian = unknown; then
20574 # See if sys/param.h defines the BYTE_ORDER macro.
20575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576 /* end confdefs.h. */
20577 #include <sys/types.h>
20578 #include <sys/param.h>
20583 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20586 bogus endian macros
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594 # It does; now see whether it defined to BIG_ENDIAN or not.
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20597 #include <sys/types.h>
20598 #include <sys/param.h>
20603 #if BYTE_ORDER != BIG_ENDIAN
20611 if ac_fn_c_try_compile "$LINENO"; then :
20612 ac_cv_c_bigendian=yes
20614 ac_cv_c_bigendian=no
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 if test $ac_cv_c_bigendian = unknown; then
20621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h. */
20624 #include <limits.h>
20629 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20630 bogus endian macros
20637 if ac_fn_c_try_compile "$LINENO"; then :
20638 # It does; now see whether it defined to _BIG_ENDIAN or not.
20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20641 #include <limits.h>
20646 #ifndef _BIG_ENDIAN
20654 if ac_fn_c_try_compile "$LINENO"; then :
20655 ac_cv_c_bigendian=yes
20657 ac_cv_c_bigendian=no
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 if test $ac_cv_c_bigendian = unknown; then
20664 # Compile a test program.
20665 if test "$cross_compiling" = yes; then :
20666 # Try to guess by grepping values from an object file.
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669 short int ascii_mm[] =
20670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20671 short int ascii_ii[] =
20672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20673 int use_ascii (int i) {
20674 return ascii_mm[i] + ascii_ii[i];
20676 short int ebcdic_ii[] =
20677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20678 short int ebcdic_mm[] =
20679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20680 int use_ebcdic (int i) {
20681 return ebcdic_mm[i] + ebcdic_ii[i];
20688 return use_ascii (foo) == use_ebcdic (foo);
20693 if ac_fn_c_try_compile "$LINENO"; then :
20694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20695 ac_cv_c_bigendian=yes
20697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20698 if test "$ac_cv_c_bigendian" = unknown; then
20699 ac_cv_c_bigendian=no
20701 # finding both strings is unlikely to happen, but who knows?
20702 ac_cv_c_bigendian=unknown
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h. */
20710 $ac_includes_default
20715 /* Are we little or big endian? From Harbison&Steele. */
20719 char c[sizeof (long int)];
20722 return u.c[sizeof (long int) - 1] == 1;
20728 if ac_fn_c_try_run "$LINENO"; then :
20729 ac_cv_c_bigendian=no
20731 ac_cv_c_bigendian=yes
20733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20734 conftest.$ac_objext conftest.beam conftest.$ac_ext
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20740 $as_echo "$ac_cv_c_bigendian" >&6; }
20741 case $ac_cv_c_bigendian in #(
20743 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20749 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20753 as_fn_error $? "unknown endianness
20754 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20758 $as_echo_n "checking for inline... " >&6; }
20759 if ${ac_cv_c_inline+:} false; then :
20760 $as_echo_n "(cached) " >&6
20763 for ac_kw in inline __inline__ __inline; do
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20766 #ifndef __cplusplus
20768 static $ac_kw foo_t static_foo () {return 0; }
20769 $ac_kw foo_t foo () {return 0; }
20773 if ac_fn_c_try_compile "$LINENO"; then :
20774 ac_cv_c_inline=$ac_kw
20776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20777 test "$ac_cv_c_inline" != no && break
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20782 $as_echo "$ac_cv_c_inline" >&6; }
20784 case $ac_cv_c_inline in
20787 case $ac_cv_c_inline in
20789 *) ac_val=$ac_cv_c_inline;;
20791 cat >>confdefs.h <<_ACEOF
20792 #ifndef __cplusplus
20793 #define inline $ac_val
20799 # Check whether --enable-largefile was given.
20800 if test "${enable_largefile+set}" = set; then :
20801 enableval=$enable_largefile;
20804 if test "$enable_largefile" != no; then
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20807 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
20808 if ${ac_cv_sys_largefile_CC+:} false; then :
20809 $as_echo_n "(cached) " >&6
20811 ac_cv_sys_largefile_CC=no
20812 if test "$GCC" != yes; then
20815 # IRIX 6.2 and later do not support large files by default,
20816 # so use the C compiler's -n32 option if that helps.
20817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20819 #include <sys/types.h>
20820 /* Check that off_t can represent 2**63 - 1 correctly.
20821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20822 since some C++ compilers masquerading as C compilers
20823 incorrectly reject 9223372036854775807. */
20824 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20826 && LARGE_OFF_T % 2147483647 == 1)
20836 if ac_fn_c_try_compile "$LINENO"; then :
20839 rm -f core conftest.err conftest.$ac_objext
20841 if ac_fn_c_try_compile "$LINENO"; then :
20842 ac_cv_sys_largefile_CC=' -n32'; break
20844 rm -f core conftest.err conftest.$ac_objext
20848 rm -f conftest.$ac_ext
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20852 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
20853 if test "$ac_cv_sys_largefile_CC" != no; then
20854 CC=$CC$ac_cv_sys_largefile_CC
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20858 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20859 if ${ac_cv_sys_file_offset_bits+:} false; then :
20860 $as_echo_n "(cached) " >&6
20863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20864 /* end confdefs.h. */
20865 #include <sys/types.h>
20866 /* Check that off_t can represent 2**63 - 1 correctly.
20867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20868 since some C++ compilers masquerading as C compilers
20869 incorrectly reject 9223372036854775807. */
20870 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20872 && LARGE_OFF_T % 2147483647 == 1)
20882 if ac_fn_c_try_compile "$LINENO"; then :
20883 ac_cv_sys_file_offset_bits=no; break
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h. */
20888 #define _FILE_OFFSET_BITS 64
20889 #include <sys/types.h>
20890 /* Check that off_t can represent 2**63 - 1 correctly.
20891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20892 since some C++ compilers masquerading as C compilers
20893 incorrectly reject 9223372036854775807. */
20894 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20896 && LARGE_OFF_T % 2147483647 == 1)
20906 if ac_fn_c_try_compile "$LINENO"; then :
20907 ac_cv_sys_file_offset_bits=64; break
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20910 ac_cv_sys_file_offset_bits=unknown
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20915 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
20916 case $ac_cv_sys_file_offset_bits in #(
20919 cat >>confdefs.h <<_ACEOF
20920 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20925 if test $ac_cv_sys_file_offset_bits = unknown; then
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20927 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
20928 if ${ac_cv_sys_large_files+:} false; then :
20929 $as_echo_n "(cached) " >&6
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20934 #include <sys/types.h>
20935 /* Check that off_t can represent 2**63 - 1 correctly.
20936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20937 since some C++ compilers masquerading as C compilers
20938 incorrectly reject 9223372036854775807. */
20939 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20941 && LARGE_OFF_T % 2147483647 == 1)
20951 if ac_fn_c_try_compile "$LINENO"; then :
20952 ac_cv_sys_large_files=no; break
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20957 #define _LARGE_FILES 1
20958 #include <sys/types.h>
20959 /* Check that off_t can represent 2**63 - 1 correctly.
20960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20961 since some C++ compilers masquerading as C compilers
20962 incorrectly reject 9223372036854775807. */
20963 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
20964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20965 && LARGE_OFF_T % 2147483647 == 1)
20975 if ac_fn_c_try_compile "$LINENO"; then :
20976 ac_cv_sys_large_files=1; break
20978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979 ac_cv_sys_large_files=unknown
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20984 $as_echo "$ac_cv_sys_large_files" >&6; }
20985 case $ac_cv_sys_large_files in #(
20988 cat >>confdefs.h <<_ACEOF
20989 #define _LARGE_FILES $ac_cv_sys_large_files
21000 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21002 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21003 have_struct_tm_tm_gmtoff=yes
21005 have_struct_tm_tm_gmtoff=no
21009 if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
21011 $as_echo "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
21015 # Check size of pointer to decide we need 8 bytes alignment
21017 # The cast to long int works around a bug in the HP C Compiler
21018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21020 # This bug is HP SR number 8606223364.
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
21022 $as_echo_n "checking size of int *... " >&6; }
21023 if ${ac_cv_sizeof_int_p+:} false; then :
21024 $as_echo_n "(cached) " >&6
21026 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
21029 if test "$ac_cv_type_int_p" = yes; then
21030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21032 as_fn_error 77 "cannot compute sizeof (int *)
21033 See \`config.log' for more details" "$LINENO" 5; }
21035 ac_cv_sizeof_int_p=0
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
21041 $as_echo "$ac_cv_sizeof_int_p" >&6; }
21045 cat >>confdefs.h <<_ACEOF
21046 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
21051 # Checks for library functions.
21052 if test "x$cross_compiling" != "xyes"; then
21053 for ac_header in stdlib.h
21055 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21056 if test "x$ac_cv_header_stdlib_h" = xyes; then :
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_STDLIB_H 1
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
21066 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
21067 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
21068 $as_echo_n "(cached) " >&6
21070 if test "$cross_compiling" = yes; then :
21071 ac_cv_func_malloc_0_nonnull=no
21073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21076 # include <stdlib.h>
21084 return ! malloc (0);
21089 if ac_fn_c_try_run "$LINENO"; then :
21090 ac_cv_func_malloc_0_nonnull=yes
21092 ac_cv_func_malloc_0_nonnull=no
21094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21095 conftest.$ac_objext conftest.beam conftest.$ac_ext
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
21100 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
21101 if test $ac_cv_func_malloc_0_nonnull = yes; then :
21103 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
21106 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
21108 case " $LIBOBJS " in
21109 *" malloc.$ac_objext "* ) ;;
21110 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21115 $as_echo "#define malloc rpl_malloc" >>confdefs.h
21122 for ac_header in unistd.h
21124 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21125 if test "x$ac_cv_header_unistd_h" = xyes; then :
21126 cat >>confdefs.h <<_ACEOF
21127 #define HAVE_UNISTD_H 1
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
21135 $as_echo_n "checking for working chown... " >&6; }
21136 if ${ac_cv_func_chown_works+:} false; then :
21137 $as_echo_n "(cached) " >&6
21139 if test "$cross_compiling" = yes; then :
21140 ac_cv_func_chown_works=no
21142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143 /* end confdefs.h. */
21144 $ac_includes_default
21150 char *f = "conftest.chown";
21151 struct stat before, after;
21153 if (creat (f, 0600) < 0)
21155 if (stat (f, &before) < 0)
21157 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21159 if (stat (f, &after) < 0)
21161 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21167 if ac_fn_c_try_run "$LINENO"; then :
21168 ac_cv_func_chown_works=yes
21170 ac_cv_func_chown_works=no
21172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21173 conftest.$ac_objext conftest.beam conftest.$ac_ext
21176 rm -f conftest.chown
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
21180 $as_echo "$ac_cv_func_chown_works" >&6; }
21181 if test $ac_cv_func_chown_works = yes; then
21183 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21188 $as_echo_n "checking for error_at_line... " >&6; }
21189 if ${ac_cv_lib_error_at_line+:} false; then :
21190 $as_echo_n "(cached) " >&6
21192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h. */
21198 error_at_line (0, 0, "", 0, "an error occurred");
21203 if ac_fn_c_try_link "$LINENO"; then :
21204 ac_cv_lib_error_at_line=yes
21206 ac_cv_lib_error_at_line=no
21208 rm -f core conftest.err conftest.$ac_objext \
21209 conftest$ac_exeext conftest.$ac_ext
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21212 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21213 if test $ac_cv_lib_error_at_line = no; then
21214 case " $LIBOBJS " in
21215 *" error.$ac_objext "* ) ;;
21216 *) LIBOBJS="$LIBOBJS error.$ac_objext"
21222 for ac_header in vfork.h
21224 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21225 if test "x$ac_cv_header_vfork_h" = xyes; then :
21226 cat >>confdefs.h <<_ACEOF
21227 #define HAVE_VFORK_H 1
21234 for ac_func in fork vfork
21236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21239 cat >>confdefs.h <<_ACEOF
21240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21246 if test "x$ac_cv_func_fork" = xyes; then
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21248 $as_echo_n "checking for working fork... " >&6; }
21249 if ${ac_cv_func_fork_works+:} false; then :
21250 $as_echo_n "(cached) " >&6
21252 if test "$cross_compiling" = yes; then :
21253 ac_cv_func_fork_works=cross
21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21256 /* end confdefs.h. */
21257 $ac_includes_default
21262 /* By Ruediger Kuhlmann. */
21263 return fork () < 0;
21269 if ac_fn_c_try_run "$LINENO"; then :
21270 ac_cv_func_fork_works=yes
21272 ac_cv_func_fork_works=no
21274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21275 conftest.$ac_objext conftest.beam conftest.$ac_ext
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21280 $as_echo "$ac_cv_func_fork_works" >&6; }
21283 ac_cv_func_fork_works=$ac_cv_func_fork
21285 if test "x$ac_cv_func_fork_works" = xcross; then
21287 *-*-amigaos* | *-*-msdosdjgpp*)
21288 # Override, as these systems have only a dummy fork() stub
21289 ac_cv_func_fork_works=no
21292 ac_cv_func_fork_works=yes
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21296 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21298 ac_cv_func_vfork_works=$ac_cv_func_vfork
21299 if test "x$ac_cv_func_vfork" = xyes; then
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21301 $as_echo_n "checking for working vfork... " >&6; }
21302 if ${ac_cv_func_vfork_works+:} false; then :
21303 $as_echo_n "(cached) " >&6
21305 if test "$cross_compiling" = yes; then :
21306 ac_cv_func_vfork_works=cross
21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h. */
21310 /* Thanks to Paul Eggert for this test. */
21311 $ac_includes_default
21312 #include <sys/wait.h>
21313 #ifdef HAVE_VFORK_H
21314 # include <vfork.h>
21316 /* On some sparc systems, changes by the child to local and incoming
21317 argument registers are propagated back to the parent. The compiler
21318 is told about this with #include <vfork.h>, but some compilers
21319 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21320 static variable whose address is put into a register that is
21321 clobbered by the vfork. */
21324 sparc_address_test (int arg)
21326 sparc_address_test (arg) int arg;
21329 static pid_t child;
21347 pid_t parent = getpid ();
21350 sparc_address_test (0);
21355 /* Here is another test for sparc vfork register problems. This
21356 test uses lots of local variables, at least as many local
21357 variables as main has allocated so far including compiler
21358 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21359 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21360 reuse the register of parent for one of the local variables,
21361 since it will think that parent can't possibly be used any more
21362 in this routine. Assigning to the local variable will thus
21363 munge parent in the parent process. */
21365 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21366 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21367 /* Convince the compiler that p..p7 are live; otherwise, it might
21368 use the same hardware register for all 8 local variables. */
21369 if (p != p1 || p != p2 || p != p3 || p != p4
21370 || p != p5 || p != p6 || p != p7)
21373 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21374 from child file descriptors. If the child closes a descriptor
21375 before it execs or exits, this munges the parent's descriptor
21376 as well. Test for this by closing stdout in the child. */
21377 _exit(close(fileno(stdout)) != 0);
21382 while (wait(&status) != child)
21385 /* Was there some problem with vforking? */
21388 /* Did the child fail? (This shouldn't happen.) */
21391 /* Did the vfork/compiler bug occur? */
21392 || parent != getpid()
21394 /* Did the file descriptor bug occur? */
21395 || fstat(fileno(stdout), &st) != 0
21400 if ac_fn_c_try_run "$LINENO"; then :
21401 ac_cv_func_vfork_works=yes
21403 ac_cv_func_vfork_works=no
21405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21406 conftest.$ac_objext conftest.beam conftest.$ac_ext
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21411 $as_echo "$ac_cv_func_vfork_works" >&6; }
21414 if test "x$ac_cv_func_fork_works" = xcross; then
21415 ac_cv_func_vfork_works=$ac_cv_func_vfork
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21417 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21420 if test "x$ac_cv_func_vfork_works" = xyes; then
21422 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21426 $as_echo "#define vfork fork" >>confdefs.h
21429 if test "x$ac_cv_func_fork_works" = xyes; then
21431 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21435 # Don't check realloc, since LeakSanitizer detects memory leak during check
21437 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21438 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_DECL_STRERROR_R $ac_have_decl
21448 for ac_func in strerror_r
21450 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21451 if test "x$ac_cv_func_strerror_r" = xyes; then :
21452 cat >>confdefs.h <<_ACEOF
21453 #define HAVE_STRERROR_R 1
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21460 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21461 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21462 $as_echo_n "(cached) " >&6
21465 ac_cv_func_strerror_r_char_p=no
21466 if test $ac_cv_have_decl_strerror_r = yes; then
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h. */
21469 $ac_includes_default
21475 char x = *strerror_r (0, buf, sizeof buf);
21476 char *p = strerror_r (0, buf, sizeof buf);
21483 if ac_fn_c_try_compile "$LINENO"; then :
21484 ac_cv_func_strerror_r_char_p=yes
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488 # strerror_r is not declared. Choose between
21489 # systems that have relatively inaccessible declarations for the
21490 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21491 # former has a strerror_r that returns char*, while the latter
21492 # has a strerror_r that returns `int'.
21493 # This test should segfault on the DEC system.
21494 if test "$cross_compiling" = yes; then :
21497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 extern char *strerror_r ();
21505 char x = *strerror_r (0, buf, sizeof buf);
21506 return ! isalpha (x);
21511 if ac_fn_c_try_run "$LINENO"; then :
21512 ac_cv_func_strerror_r_char_p=yes
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21515 conftest.$ac_objext conftest.beam conftest.$ac_ext
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21522 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21523 if test $ac_cv_func_strerror_r_char_p = yes; then
21525 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21530 $as_echo_n "checking for working strnlen... " >&6; }
21531 if ${ac_cv_func_strnlen_working+:} false; then :
21532 $as_echo_n "(cached) " >&6
21534 if test "$cross_compiling" = yes; then :
21535 # Guess no on AIX systems, yes otherwise.
21537 aix*) ac_cv_func_strnlen_working=no;;
21538 *) ac_cv_func_strnlen_working=yes;;
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 $ac_includes_default
21549 #define S_LEN (sizeof S - 1)
21551 /* At least one implementation is buggy: that of AIX 4.3 would
21552 give strnlen (S, 1) == 3. */
21555 for (i = 0; i < S_LEN + 1; ++i)
21557 int expected = i <= S_LEN ? i : S_LEN;
21558 if (strnlen (S, i) != expected)
21567 if ac_fn_c_try_run "$LINENO"; then :
21568 ac_cv_func_strnlen_working=yes
21570 ac_cv_func_strnlen_working=no
21572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21573 conftest.$ac_objext conftest.beam conftest.$ac_ext
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21578 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21579 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
21580 *" strnlen.$ac_objext "* ) ;;
21581 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
21609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21612 cat >>confdefs.h <<_ACEOF
21613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21620 # timerfd_create was added in linux kernel 2.6.25
21622 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
21623 if test "x$ac_cv_func_timerfd_create" = xyes; then :
21624 have_timerfd_create=yes
21626 have_timerfd_create=no
21631 # Checks for epoll availability, primarily for examples/tiny-nghttpd
21632 ax_have_epoll_cppflags="${CPPFLAGS}"
21633 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
21634 if test "x$ac_cv_header_linux_version_h" = xyes; then :
21635 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H"
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5
21640 $as_echo_n "checking for Linux epoll(7) interface... " >&6; }
21641 if ${ax_cv_have_epoll+:} false; then :
21642 $as_echo_n "(cached) " >&6
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h. */
21646 #include <sys/epoll.h>
21647 #ifdef HAVE_LINUX_VERSION_H
21648 # include <linux/version.h>
21649 # if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45)
21650 # error linux kernel version is too old to have epoll
21658 struct epoll_event ev;
21659 fd = epoll_create(128);
21660 rc = epoll_wait(fd, &ev, 1, 0);
21665 if ac_fn_c_try_link "$LINENO"; then :
21666 ax_cv_have_epoll=yes
21668 ax_cv_have_epoll=no
21670 rm -f core conftest.err conftest.$ac_objext \
21671 conftest$ac_exeext conftest.$ac_ext
21674 CPPFLAGS="${ax_have_epoll_cppflags}"
21675 if test "${ax_cv_have_epoll}" = "yes"; then :
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21677 $as_echo "yes" >&6; }
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21681 $as_echo "no" >&6; }
21686 if test "x${have_epoll}" = "xyes" &&
21687 test "x${have_timerfd_create}" = "xyes"; then
21688 ENABLE_TINY_NGHTTPD_TRUE=
21689 ENABLE_TINY_NGHTTPD_FALSE='#'
21691 ENABLE_TINY_NGHTTPD_TRUE='#'
21692 ENABLE_TINY_NGHTTPD_FALSE=
21696 ac_save_CFLAGS=$CFLAGS
21699 if test "x$werror" != "xno"; then
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
21701 $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
21702 if ${ax_cv_check_cflags___Wall+:} false; then :
21703 $as_echo_n "(cached) " >&6
21706 ax_check_save_flags=$CFLAGS
21707 CFLAGS="$CFLAGS -Wall"
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21719 if ac_fn_c_try_compile "$LINENO"; then :
21720 ax_cv_check_cflags___Wall=yes
21722 ax_cv_check_cflags___Wall=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 CFLAGS=$ax_check_save_flags
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
21728 $as_echo "$ax_cv_check_cflags___Wall" >&6; }
21729 if test x"$ax_cv_check_cflags___Wall" = xyes; then :
21730 CFLAGS="$CFLAGS -Wall"
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
21736 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
21737 if ${ax_cv_check_cflags___Wextra+:} false; then :
21738 $as_echo_n "(cached) " >&6
21741 ax_check_save_flags=$CFLAGS
21742 CFLAGS="$CFLAGS -Wextra"
21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744 /* end confdefs.h. */
21754 if ac_fn_c_try_compile "$LINENO"; then :
21755 ax_cv_check_cflags___Wextra=yes
21757 ax_cv_check_cflags___Wextra=no
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 CFLAGS=$ax_check_save_flags
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
21763 $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
21764 if test x"$ax_cv_check_cflags___Wextra" = xyes; then :
21765 CFLAGS="$CFLAGS -Wextra"
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
21771 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
21772 if ${ax_cv_check_cflags___Werror+:} false; then :
21773 $as_echo_n "(cached) " >&6
21776 ax_check_save_flags=$CFLAGS
21777 CFLAGS="$CFLAGS -Werror"
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21789 if ac_fn_c_try_compile "$LINENO"; then :
21790 ax_cv_check_cflags___Werror=yes
21792 ax_cv_check_cflags___Werror=no
21794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795 CFLAGS=$ax_check_save_flags
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
21798 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
21799 if test x"$ax_cv_check_cflags___Werror" = xyes; then :
21800 CFLAGS="$CFLAGS -Werror"
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
21806 $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
21807 if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
21808 $as_echo_n "(cached) " >&6
21811 ax_check_save_flags=$CFLAGS
21812 CFLAGS="$CFLAGS -Wmissing-prototypes"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21824 if ac_fn_c_try_compile "$LINENO"; then :
21825 ax_cv_check_cflags___Wmissing_prototypes=yes
21827 ax_cv_check_cflags___Wmissing_prototypes=no
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 CFLAGS=$ax_check_save_flags
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
21833 $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
21834 if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
21835 CFLAGS="$CFLAGS -Wmissing-prototypes"
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-prototypes" >&5
21841 $as_echo_n "checking whether C compiler accepts -Wstrict-prototypes... " >&6; }
21842 if ${ax_cv_check_cflags___Wstrict_prototypes+:} false; then :
21843 $as_echo_n "(cached) " >&6
21846 ax_check_save_flags=$CFLAGS
21847 CFLAGS="$CFLAGS -Wstrict-prototypes"
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21859 if ac_fn_c_try_compile "$LINENO"; then :
21860 ax_cv_check_cflags___Wstrict_prototypes=yes
21862 ax_cv_check_cflags___Wstrict_prototypes=no
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21865 CFLAGS=$ax_check_save_flags
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_prototypes" >&5
21868 $as_echo "$ax_cv_check_cflags___Wstrict_prototypes" >&6; }
21869 if test x"$ax_cv_check_cflags___Wstrict_prototypes" = xyes; then :
21870 CFLAGS="$CFLAGS -Wstrict-prototypes"
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
21876 $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
21877 if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
21878 $as_echo_n "(cached) " >&6
21881 ax_check_save_flags=$CFLAGS
21882 CFLAGS="$CFLAGS -Wmissing-declarations"
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21894 if ac_fn_c_try_compile "$LINENO"; then :
21895 ax_cv_check_cflags___Wmissing_declarations=yes
21897 ax_cv_check_cflags___Wmissing_declarations=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 CFLAGS=$ax_check_save_flags
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
21903 $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
21904 if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
21905 CFLAGS="$CFLAGS -Wmissing-declarations"
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-arith" >&5
21911 $as_echo_n "checking whether C compiler accepts -Wpointer-arith... " >&6; }
21912 if ${ax_cv_check_cflags___Wpointer_arith+:} false; then :
21913 $as_echo_n "(cached) " >&6
21916 ax_check_save_flags=$CFLAGS
21917 CFLAGS="$CFLAGS -Wpointer-arith"
21918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h. */
21929 if ac_fn_c_try_compile "$LINENO"; then :
21930 ax_cv_check_cflags___Wpointer_arith=yes
21932 ax_cv_check_cflags___Wpointer_arith=no
21934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21935 CFLAGS=$ax_check_save_flags
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpointer_arith" >&5
21938 $as_echo "$ax_cv_check_cflags___Wpointer_arith" >&6; }
21939 if test x"$ax_cv_check_cflags___Wpointer_arith" = xyes; then :
21940 CFLAGS="$CFLAGS -Wpointer-arith"
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeclaration-after-statement" >&5
21946 $as_echo_n "checking whether C compiler accepts -Wdeclaration-after-statement... " >&6; }
21947 if ${ax_cv_check_cflags___Wdeclaration_after_statement+:} false; then :
21948 $as_echo_n "(cached) " >&6
21951 ax_check_save_flags=$CFLAGS
21952 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21964 if ac_fn_c_try_compile "$LINENO"; then :
21965 ax_cv_check_cflags___Wdeclaration_after_statement=yes
21967 ax_cv_check_cflags___Wdeclaration_after_statement=no
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 CFLAGS=$ax_check_save_flags
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdeclaration_after_statement" >&5
21973 $as_echo "$ax_cv_check_cflags___Wdeclaration_after_statement" >&6; }
21974 if test x"$ax_cv_check_cflags___Wdeclaration_after_statement" = xyes; then :
21975 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
21981 $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
21982 if ${ax_cv_check_cflags___Wformat_security+:} false; then :
21983 $as_echo_n "(cached) " >&6
21986 ax_check_save_flags=$CFLAGS
21987 CFLAGS="$CFLAGS -Wformat-security"
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21999 if ac_fn_c_try_compile "$LINENO"; then :
22000 ax_cv_check_cflags___Wformat_security=yes
22002 ax_cv_check_cflags___Wformat_security=no
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 CFLAGS=$ax_check_save_flags
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
22008 $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
22009 if test x"$ax_cv_check_cflags___Wformat_security" = xyes; then :
22010 CFLAGS="$CFLAGS -Wformat-security"
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wwrite-strings" >&5
22016 $as_echo_n "checking whether C compiler accepts -Wwrite-strings... " >&6; }
22017 if ${ax_cv_check_cflags___Wwrite_strings+:} false; then :
22018 $as_echo_n "(cached) " >&6
22021 ax_check_save_flags=$CFLAGS
22022 CFLAGS="$CFLAGS -Wwrite-strings"
22023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h. */
22034 if ac_fn_c_try_compile "$LINENO"; then :
22035 ax_cv_check_cflags___Wwrite_strings=yes
22037 ax_cv_check_cflags___Wwrite_strings=no
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 CFLAGS=$ax_check_save_flags
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wwrite_strings" >&5
22043 $as_echo "$ax_cv_check_cflags___Wwrite_strings" >&6; }
22044 if test x"$ax_cv_check_cflags___Wwrite_strings" = xyes; then :
22045 CFLAGS="$CFLAGS -Wwrite-strings"
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
22051 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
22052 if ${ax_cv_check_cflags___Wshadow+:} false; then :
22053 $as_echo_n "(cached) " >&6
22056 ax_check_save_flags=$CFLAGS
22057 CFLAGS="$CFLAGS -Wshadow"
22058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059 /* end confdefs.h. */
22069 if ac_fn_c_try_compile "$LINENO"; then :
22070 ax_cv_check_cflags___Wshadow=yes
22072 ax_cv_check_cflags___Wshadow=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 CFLAGS=$ax_check_save_flags
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
22078 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
22079 if test x"$ax_cv_check_cflags___Wshadow" = xyes; then :
22080 CFLAGS="$CFLAGS -Wshadow"
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winline" >&5
22086 $as_echo_n "checking whether C compiler accepts -Winline... " >&6; }
22087 if ${ax_cv_check_cflags___Winline+:} false; then :
22088 $as_echo_n "(cached) " >&6
22091 ax_check_save_flags=$CFLAGS
22092 CFLAGS="$CFLAGS -Winline"
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22104 if ac_fn_c_try_compile "$LINENO"; then :
22105 ax_cv_check_cflags___Winline=yes
22107 ax_cv_check_cflags___Winline=no
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 CFLAGS=$ax_check_save_flags
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Winline" >&5
22113 $as_echo "$ax_cv_check_cflags___Winline" >&6; }
22114 if test x"$ax_cv_check_cflags___Winline" = xyes; then :
22115 CFLAGS="$CFLAGS -Winline"
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wnested-externs" >&5
22121 $as_echo_n "checking whether C compiler accepts -Wnested-externs... " >&6; }
22122 if ${ax_cv_check_cflags___Wnested_externs+:} false; then :
22123 $as_echo_n "(cached) " >&6
22126 ax_check_save_flags=$CFLAGS
22127 CFLAGS="$CFLAGS -Wnested-externs"
22128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22129 /* end confdefs.h. */
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140 ax_cv_check_cflags___Wnested_externs=yes
22142 ax_cv_check_cflags___Wnested_externs=no
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145 CFLAGS=$ax_check_save_flags
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wnested_externs" >&5
22148 $as_echo "$ax_cv_check_cflags___Wnested_externs" >&6; }
22149 if test x"$ax_cv_check_cflags___Wnested_externs" = xyes; then :
22150 CFLAGS="$CFLAGS -Wnested-externs"
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wfloat-equal" >&5
22156 $as_echo_n "checking whether C compiler accepts -Wfloat-equal... " >&6; }
22157 if ${ax_cv_check_cflags___Wfloat_equal+:} false; then :
22158 $as_echo_n "(cached) " >&6
22161 ax_check_save_flags=$CFLAGS
22162 CFLAGS="$CFLAGS -Wfloat-equal"
22163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h. */
22174 if ac_fn_c_try_compile "$LINENO"; then :
22175 ax_cv_check_cflags___Wfloat_equal=yes
22177 ax_cv_check_cflags___Wfloat_equal=no
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180 CFLAGS=$ax_check_save_flags
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wfloat_equal" >&5
22183 $as_echo "$ax_cv_check_cflags___Wfloat_equal" >&6; }
22184 if test x"$ax_cv_check_cflags___Wfloat_equal" = xyes; then :
22185 CFLAGS="$CFLAGS -Wfloat-equal"
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wundef" >&5
22191 $as_echo_n "checking whether C compiler accepts -Wundef... " >&6; }
22192 if ${ax_cv_check_cflags___Wundef+:} false; then :
22193 $as_echo_n "(cached) " >&6
22196 ax_check_save_flags=$CFLAGS
22197 CFLAGS="$CFLAGS -Wundef"
22198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22209 if ac_fn_c_try_compile "$LINENO"; then :
22210 ax_cv_check_cflags___Wundef=yes
22212 ax_cv_check_cflags___Wundef=no
22214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215 CFLAGS=$ax_check_save_flags
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wundef" >&5
22218 $as_echo "$ax_cv_check_cflags___Wundef" >&6; }
22219 if test x"$ax_cv_check_cflags___Wundef" = xyes; then :
22220 CFLAGS="$CFLAGS -Wundef"
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wendif-labels" >&5
22226 $as_echo_n "checking whether C compiler accepts -Wendif-labels... " >&6; }
22227 if ${ax_cv_check_cflags___Wendif_labels+:} false; then :
22228 $as_echo_n "(cached) " >&6
22231 ax_check_save_flags=$CFLAGS
22232 CFLAGS="$CFLAGS -Wendif-labels"
22233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22234 /* end confdefs.h. */
22244 if ac_fn_c_try_compile "$LINENO"; then :
22245 ax_cv_check_cflags___Wendif_labels=yes
22247 ax_cv_check_cflags___Wendif_labels=no
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 CFLAGS=$ax_check_save_flags
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wendif_labels" >&5
22253 $as_echo "$ax_cv_check_cflags___Wendif_labels" >&6; }
22254 if test x"$ax_cv_check_cflags___Wendif_labels" = xyes; then :
22255 CFLAGS="$CFLAGS -Wendif-labels"
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
22261 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
22262 if ${ax_cv_check_cflags___Wempty_body+:} false; then :
22263 $as_echo_n "(cached) " >&6
22266 ax_check_save_flags=$CFLAGS
22267 CFLAGS="$CFLAGS -Wempty-body"
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22279 if ac_fn_c_try_compile "$LINENO"; then :
22280 ax_cv_check_cflags___Wempty_body=yes
22282 ax_cv_check_cflags___Wempty_body=no
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22285 CFLAGS=$ax_check_save_flags
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wempty_body" >&5
22288 $as_echo "$ax_cv_check_cflags___Wempty_body" >&6; }
22289 if test x"$ax_cv_check_cflags___Wempty_body" = xyes; then :
22290 CFLAGS="$CFLAGS -Wempty-body"
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-align" >&5
22296 $as_echo_n "checking whether C compiler accepts -Wcast-align... " >&6; }
22297 if ${ax_cv_check_cflags___Wcast_align+:} false; then :
22298 $as_echo_n "(cached) " >&6
22301 ax_check_save_flags=$CFLAGS
22302 CFLAGS="$CFLAGS -Wcast-align"
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22314 if ac_fn_c_try_compile "$LINENO"; then :
22315 ax_cv_check_cflags___Wcast_align=yes
22317 ax_cv_check_cflags___Wcast_align=no
22319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22320 CFLAGS=$ax_check_save_flags
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_align" >&5
22323 $as_echo "$ax_cv_check_cflags___Wcast_align" >&6; }
22324 if test x"$ax_cv_check_cflags___Wcast_align" = xyes; then :
22325 CFLAGS="$CFLAGS -Wcast-align"
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wclobbered" >&5
22331 $as_echo_n "checking whether C compiler accepts -Wclobbered... " >&6; }
22332 if ${ax_cv_check_cflags___Wclobbered+:} false; then :
22333 $as_echo_n "(cached) " >&6
22336 ax_check_save_flags=$CFLAGS
22337 CFLAGS="$CFLAGS -Wclobbered"
22338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h. */
22349 if ac_fn_c_try_compile "$LINENO"; then :
22350 ax_cv_check_cflags___Wclobbered=yes
22352 ax_cv_check_cflags___Wclobbered=no
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 CFLAGS=$ax_check_save_flags
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wclobbered" >&5
22358 $as_echo "$ax_cv_check_cflags___Wclobbered" >&6; }
22359 if test x"$ax_cv_check_cflags___Wclobbered" = xyes; then :
22360 CFLAGS="$CFLAGS -Wclobbered"
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wvla" >&5
22366 $as_echo_n "checking whether C compiler accepts -Wvla... " >&6; }
22367 if ${ax_cv_check_cflags___Wvla+:} false; then :
22368 $as_echo_n "(cached) " >&6
22371 ax_check_save_flags=$CFLAGS
22372 CFLAGS="$CFLAGS -Wvla"
22373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h. */
22384 if ac_fn_c_try_compile "$LINENO"; then :
22385 ax_cv_check_cflags___Wvla=yes
22387 ax_cv_check_cflags___Wvla=no
22389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 CFLAGS=$ax_check_save_flags
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wvla" >&5
22393 $as_echo "$ax_cv_check_cflags___Wvla" >&6; }
22394 if test x"$ax_cv_check_cflags___Wvla" = xyes; then :
22395 CFLAGS="$CFLAGS -Wvla"
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
22401 $as_echo_n "checking whether C compiler accepts -Wpragmas... " >&6; }
22402 if ${ax_cv_check_cflags___Wpragmas+:} false; then :
22403 $as_echo_n "(cached) " >&6
22406 ax_check_save_flags=$CFLAGS
22407 CFLAGS="$CFLAGS -Wpragmas"
22408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22419 if ac_fn_c_try_compile "$LINENO"; then :
22420 ax_cv_check_cflags___Wpragmas=yes
22422 ax_cv_check_cflags___Wpragmas=no
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425 CFLAGS=$ax_check_save_flags
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wpragmas" >&5
22428 $as_echo "$ax_cv_check_cflags___Wpragmas" >&6; }
22429 if test x"$ax_cv_check_cflags___Wpragmas" = xyes; then :
22430 CFLAGS="$CFLAGS -Wpragmas"
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunreachable-code" >&5
22436 $as_echo_n "checking whether C compiler accepts -Wunreachable-code... " >&6; }
22437 if ${ax_cv_check_cflags___Wunreachable_code+:} false; then :
22438 $as_echo_n "(cached) " >&6
22441 ax_check_save_flags=$CFLAGS
22442 CFLAGS="$CFLAGS -Wunreachable-code"
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22454 if ac_fn_c_try_compile "$LINENO"; then :
22455 ax_cv_check_cflags___Wunreachable_code=yes
22457 ax_cv_check_cflags___Wunreachable_code=no
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 CFLAGS=$ax_check_save_flags
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunreachable_code" >&5
22463 $as_echo "$ax_cv_check_cflags___Wunreachable_code" >&6; }
22464 if test x"$ax_cv_check_cflags___Wunreachable_code" = xyes; then :
22465 CFLAGS="$CFLAGS -Wunreachable-code"
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
22471 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
22472 if ${ax_cv_check_cflags___Waddress+:} false; then :
22473 $as_echo_n "(cached) " >&6
22476 ax_check_save_flags=$CFLAGS
22477 CFLAGS="$CFLAGS -Waddress"
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490 ax_cv_check_cflags___Waddress=yes
22492 ax_cv_check_cflags___Waddress=no
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 CFLAGS=$ax_check_save_flags
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Waddress" >&5
22498 $as_echo "$ax_cv_check_cflags___Waddress" >&6; }
22499 if test x"$ax_cv_check_cflags___Waddress" = xyes; then :
22500 CFLAGS="$CFLAGS -Waddress"
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wattributes" >&5
22506 $as_echo_n "checking whether C compiler accepts -Wattributes... " >&6; }
22507 if ${ax_cv_check_cflags___Wattributes+:} false; then :
22508 $as_echo_n "(cached) " >&6
22511 ax_check_save_flags=$CFLAGS
22512 CFLAGS="$CFLAGS -Wattributes"
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22524 if ac_fn_c_try_compile "$LINENO"; then :
22525 ax_cv_check_cflags___Wattributes=yes
22527 ax_cv_check_cflags___Wattributes=no
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530 CFLAGS=$ax_check_save_flags
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wattributes" >&5
22533 $as_echo "$ax_cv_check_cflags___Wattributes" >&6; }
22534 if test x"$ax_cv_check_cflags___Wattributes" = xyes; then :
22535 CFLAGS="$CFLAGS -Wattributes"
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdiv-by-zero" >&5
22541 $as_echo_n "checking whether C compiler accepts -Wdiv-by-zero... " >&6; }
22542 if ${ax_cv_check_cflags___Wdiv_by_zero+:} false; then :
22543 $as_echo_n "(cached) " >&6
22546 ax_check_save_flags=$CFLAGS
22547 CFLAGS="$CFLAGS -Wdiv-by-zero"
22548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22559 if ac_fn_c_try_compile "$LINENO"; then :
22560 ax_cv_check_cflags___Wdiv_by_zero=yes
22562 ax_cv_check_cflags___Wdiv_by_zero=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 CFLAGS=$ax_check_save_flags
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wdiv_by_zero" >&5
22568 $as_echo "$ax_cv_check_cflags___Wdiv_by_zero" >&6; }
22569 if test x"$ax_cv_check_cflags___Wdiv_by_zero" = xyes; then :
22570 CFLAGS="$CFLAGS -Wdiv-by-zero"
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshorten-64-to-32" >&5
22576 $as_echo_n "checking whether C compiler accepts -Wshorten-64-to-32... " >&6; }
22577 if ${ax_cv_check_cflags___Wshorten_64_to_32+:} false; then :
22578 $as_echo_n "(cached) " >&6
22581 ax_check_save_flags=$CFLAGS
22582 CFLAGS="$CFLAGS -Wshorten-64-to-32"
22583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h. */
22594 if ac_fn_c_try_compile "$LINENO"; then :
22595 ax_cv_check_cflags___Wshorten_64_to_32=yes
22597 ax_cv_check_cflags___Wshorten_64_to_32=no
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600 CFLAGS=$ax_check_save_flags
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshorten_64_to_32" >&5
22603 $as_echo "$ax_cv_check_cflags___Wshorten_64_to_32" >&6; }
22604 if test x"$ax_cv_check_cflags___Wshorten_64_to_32" = xyes; then :
22605 CFLAGS="$CFLAGS -Wshorten-64-to-32"
22611 # Only work with Clang for the moment
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wheader-guard" >&5
22613 $as_echo_n "checking whether C compiler accepts -Wheader-guard... " >&6; }
22614 if ${ax_cv_check_cflags___Wheader_guard+:} false; then :
22615 $as_echo_n "(cached) " >&6
22618 ax_check_save_flags=$CFLAGS
22619 CFLAGS="$CFLAGS -Wheader-guard"
22620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621 /* end confdefs.h. */
22631 if ac_fn_c_try_compile "$LINENO"; then :
22632 ax_cv_check_cflags___Wheader_guard=yes
22634 ax_cv_check_cflags___Wheader_guard=no
22636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 CFLAGS=$ax_check_save_flags
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wheader_guard" >&5
22640 $as_echo "$ax_cv_check_cflags___Wheader_guard" >&6; }
22641 if test x"$ax_cv_check_cflags___Wheader_guard" = xyes; then :
22642 CFLAGS="$CFLAGS -Wheader-guard"
22650 CFLAGS=$ac_save_CFLAGS
22654 if test "x$debug" != "xno"; then
22656 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
22661 # Some platform does not have working std::future. We disable
22662 # threading for those platforms.
22663 if test "x$threads" != "xyes" ||
22664 test "x$have_std_future" != "xyes"; then
22667 $as_echo "#define NOTHREADS 1" >>confdefs.h
22674 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"
22676 cat >confcache <<\_ACEOF
22677 # This file is a shell script that caches the results of configure
22678 # tests run on this system so they can be shared between configure
22679 # scripts and configure runs, see configure's option --config-cache.
22680 # It is not useful on other systems. If it contains results you don't
22681 # want to keep, you may remove or edit it.
22683 # config.status only pays attention to the cache file if you give it
22684 # the --recheck option to rerun configure.
22686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22688 # following values.
22692 # The following way of writing the cache mishandles newlines in values,
22693 # but we know of no workaround that is simple, portable, and efficient.
22694 # So, we kill variables containing newlines.
22695 # Ultrix sh set writes to stderr and can't be redirected directly,
22696 # and sets the high bit in the cache file unless we assign to the vars.
22698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22699 eval ac_val=\$$ac_var
22703 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22707 _ | IFS | as_nl) ;; #(
22708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22709 *) { eval $ac_var=; unset $ac_var;} ;;
22715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22716 *${as_nl}ac_space=\ *)
22717 # `set' does not quote correctly, so add quotes: double-quote
22718 # substitution turns \\\\ into \\, and sed turns \\ into \.
22721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22724 # `set' quotes correctly as required by POSIX, so do not add quotes.
22725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22739 if test -w "$cache_file"; then
22740 if test "x$cache_file" != "x/dev/null"; then
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22742 $as_echo "$as_me: updating cache $cache_file" >&6;}
22743 if test ! -f "$cache_file" || test -h "$cache_file"; then
22744 cat confcache >"$cache_file"
22746 case $cache_file in #(
22748 mv -f confcache "$cache_file"$$ &&
22749 mv -f "$cache_file"$$ "$cache_file" ;; #(
22751 mv -f confcache "$cache_file" ;;
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22757 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22763 # Let make expand exec_prefix.
22764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22766 DEFS=-DHAVE_CONFIG_H
22771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22772 # 1. Remove the extension, and $U if already installed.
22773 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22774 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22775 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22776 # will be set to the directory where LIBOBJS objects are built.
22777 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22778 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22780 LIBOBJS=$ac_libobjs
22782 LTLIBOBJS=$ac_ltlibobjs
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22786 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22787 if test -n "$am_sleep_pid"; then
22788 # Hide warnings about reused PIDs.
22789 wait $am_sleep_pid 2>/dev/null
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22792 $as_echo "done" >&6; }
22793 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22794 as_fn_error $? "conditional \"AMDEP\" was never defined.
22795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22798 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22801 if test -n "$EXEEXT"; then
22803 am__EXEEXT_FALSE='#'
22805 am__EXEEXT_TRUE='#'
22809 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22810 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22813 if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then
22814 as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined.
22815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22817 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
22818 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
22819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22821 if test -z "${HAVE_SPDYLAY_TRUE}" && test -z "${HAVE_SPDYLAY_FALSE}"; then
22822 as_fn_error $? "conditional \"HAVE_SPDYLAY\" was never defined.
22823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22825 if test -z "${ENABLE_APP_TRUE}" && test -z "${ENABLE_APP_FALSE}"; then
22826 as_fn_error $? "conditional \"ENABLE_APP\" was never defined.
22827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22829 if test -z "${ENABLE_HPACK_TOOLS_TRUE}" && test -z "${ENABLE_HPACK_TOOLS_FALSE}"; then
22830 as_fn_error $? "conditional \"ENABLE_HPACK_TOOLS\" was never defined.
22831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22833 if test -z "${ENABLE_ASIO_LIB_TRUE}" && test -z "${ENABLE_ASIO_LIB_FALSE}"; then
22834 as_fn_error $? "conditional \"ENABLE_ASIO_LIB\" was never defined.
22835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22837 if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
22838 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined.
22839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22841 if test -z "${ENABLE_PYTHON_BINDINGS_TRUE}" && test -z "${ENABLE_PYTHON_BINDINGS_FALSE}"; then
22842 as_fn_error $? "conditional \"ENABLE_PYTHON_BINDINGS\" was never defined.
22843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22845 if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
22846 as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
22847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22849 if test -z "${ENABLE_FAILMALLOC_TRUE}" && test -z "${ENABLE_FAILMALLOC_FALSE}"; then
22850 as_fn_error $? "conditional \"ENABLE_FAILMALLOC\" was never defined.
22851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22854 if test -z "${ENABLE_TINY_NGHTTPD_TRUE}" && test -z "${ENABLE_TINY_NGHTTPD_FALSE}"; then
22855 as_fn_error $? "conditional \"ENABLE_TINY_NGHTTPD\" was never defined.
22856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22859 : "${CONFIG_STATUS=./config.status}"
22861 ac_clean_files_save=$ac_clean_files
22862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22864 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22868 # Generated by $as_me.
22869 # Run this file to recreate the current configuration.
22870 # Compiler output produced by configure, useful for debugging
22871 # configure, is in config.log if it exists.
22874 ac_cs_recheck=false
22877 SHELL=\${CONFIG_SHELL-$SHELL}
22880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22881 ## -------------------- ##
22882 ## M4sh Initialization. ##
22883 ## -------------------- ##
22885 # Be more Bourne compatible
22886 DUALCASE=1; export DUALCASE # for MKS sh
22887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22890 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22891 # is contrary to our usage. Disable this feature.
22892 alias -g '${1+"$@"}'='"$@"'
22893 setopt NO_GLOB_SUBST
22895 case `(set -o) 2>/dev/null` in #(
22907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22908 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22911 # Prefer a ksh shell builtin over an external printf program on Solaris,
22912 # but without wasting forks for bash or zsh.
22913 if test -z "$BASH_VERSION$ZSH_VERSION" \
22914 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22915 as_echo='print -r --'
22916 as_echo_n='print -rn --'
22917 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22918 as_echo='printf %s\n'
22919 as_echo_n='printf %s'
22921 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22922 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22923 as_echo_n='/usr/ucb/echo -n'
22925 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22926 as_echo_n_body='eval
22930 expr "X$arg" : "X\\(.*\\)$as_nl";
22931 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22933 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22935 export as_echo_n_body
22936 as_echo_n='sh -c $as_echo_n_body as_echo'
22938 export as_echo_body
22939 as_echo='sh -c $as_echo_body as_echo'
22942 # The user is always right.
22943 if test "${PATH_SEPARATOR+set}" != set; then
22945 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22946 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22953 # We need space, tab and new line, in precisely that order. Quoting is
22954 # there to prevent editors from complaining about space-tab.
22955 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22956 # splitting by setting IFS to empty value.)
22959 # Find who we are. Look in the path if we contain no directory separator.
22962 *[\\/]* ) as_myself=$0 ;;
22963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22964 for as_dir in $PATH
22967 test -z "$as_dir" && as_dir=.
22968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22974 # We did not find ourselves, most probably we were run as `sh COMMAND'
22975 # in which case we are not to be found in the path.
22976 if test "x$as_myself" = x; then
22979 if test ! -f "$as_myself"; then
22980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22984 # Unset variables that we do not need and which cause bugs (e.g. in
22985 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22986 # suppresses any "Segmentation fault" message there. '((' could
22987 # trigger a bug in pdksh 5.2.14.
22988 for as_var in BASH_ENV ENV MAIL MAILPATH
22989 do eval test x\${$as_var+set} = xset \
22990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23007 # ----------------------------------------
23008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23010 # script with STATUS, using 1 if that was 0.
23013 as_status=$1; test $as_status -eq 0 && as_status=1
23015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23018 $as_echo "$as_me: error: $2" >&2
23019 as_fn_exit $as_status
23023 # as_fn_set_status STATUS
23024 # -----------------------
23025 # Set $? to STATUS, without forking.
23026 as_fn_set_status ()
23029 } # as_fn_set_status
23031 # as_fn_exit STATUS
23032 # -----------------
23033 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23037 as_fn_set_status $1
23043 # Portably unset VAR.
23046 { eval $1=; unset $1;}
23048 as_unset=as_fn_unset
23049 # as_fn_append VAR VALUE
23050 # ----------------------
23051 # Append the text in VALUE to the end of the definition contained in VAR. Take
23052 # advantage of any shell optimizations that allow amortized linear growth over
23053 # repeated appends, instead of the typical quadratic growth present in naive
23055 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23056 eval 'as_fn_append ()
23067 # as_fn_arith ARG...
23068 # ------------------
23069 # Perform arithmetic evaluation on the ARGs, and store the result in the
23070 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23071 # must be portable across $(()) and expr.
23072 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23073 eval 'as_fn_arith ()
23080 as_val=`expr "$@" || test $? -eq 1`
23085 if expr a : '\(a\)' >/dev/null 2>&1 &&
23086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23093 as_basename=basename
23098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23104 as_me=`$as_basename -- "$0" ||
23105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23106 X"$0" : 'X\(//\)$' \| \
23107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23109 sed '/^.*\/\([^/][^/]*\)\/*$/{
23123 # Avoid depending upon Character Ranges.
23124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23127 as_cr_digits='0123456789'
23128 as_cr_alnum=$as_cr_Letters$as_cr_digits
23130 ECHO_C= ECHO_N= ECHO_T=
23131 case `echo -n x` in #(((((
23133 case `echo 'xy\c'` in
23134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23143 rm -f conf$$ conf$$.exe conf$$.file
23144 if test -d conf$$.dir; then
23145 rm -f conf$$.dir/conf$$.file
23148 mkdir conf$$.dir 2>/dev/null
23150 if (echo >conf$$.file) 2>/dev/null; then
23151 if ln -s conf$$.file conf$$ 2>/dev/null; then
23153 # ... but there are two gotchas:
23154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23156 # In both cases, we have to default to `cp -pR'.
23157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23159 elif ln conf$$.file conf$$ 2>/dev/null; then
23167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23168 rmdir conf$$.dir 2>/dev/null
23173 # Create "$as_dir" as a directory, including parents if necessary.
23178 -*) as_dir=./$as_dir;;
23180 test -d "$as_dir" || eval $as_mkdir_p || {
23184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23185 *) as_qdir=$as_dir;;
23187 as_dirs="'$as_qdir' $as_dirs"
23188 as_dir=`$as_dirname -- "$as_dir" ||
23189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190 X"$as_dir" : 'X\(//\)[^/]' \| \
23191 X"$as_dir" : 'X\(//\)$' \| \
23192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23193 $as_echo X"$as_dir" |
23194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23198 /^X\(\/\/\)[^/].*/{
23211 test -d "$as_dir" && break
23213 test -z "$as_dirs" || eval "mkdir $as_dirs"
23214 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23218 if mkdir -p . 2>/dev/null; then
23219 as_mkdir_p='mkdir -p "$as_dir"'
23221 test -d ./-p && rmdir ./-p
23226 # as_fn_executable_p FILE
23227 # -----------------------
23228 # Test if FILE is an executable regular file.
23229 as_fn_executable_p ()
23231 test -f "$1" && test -x "$1"
23232 } # as_fn_executable_p
23233 as_test_x='test -x'
23234 as_executable_p=as_fn_executable_p
23236 # Sed expression to map a string onto a valid CPP name.
23237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23239 # Sed expression to map a string onto a valid variable name.
23240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23244 ## ----------------------------------- ##
23245 ## Main body of $CONFIG_STATUS script. ##
23246 ## ----------------------------------- ##
23248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23251 # Save the log message, to keep $0 and so on meaningful, and to
23252 # report actual input values of CONFIG_FILES etc. instead of their
23253 # values after options handling.
23255 This file was extended by nghttp2 $as_me 1.0.0, which was
23256 generated by GNU Autoconf 2.69. Invocation command line was
23258 CONFIG_FILES = $CONFIG_FILES
23259 CONFIG_HEADERS = $CONFIG_HEADERS
23260 CONFIG_LINKS = $CONFIG_LINKS
23261 CONFIG_COMMANDS = $CONFIG_COMMANDS
23264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23269 case $ac_config_files in *"
23270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23273 case $ac_config_headers in *"
23274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23279 # Files that config.status was made for.
23280 config_files="$ac_config_files"
23281 config_headers="$ac_config_headers"
23282 config_commands="$ac_config_commands"
23286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23288 \`$as_me' instantiates files and other configuration actions
23289 from templates according to the current configuration. Unless the files
23290 and actions are specified as TAGs, all are instantiated by default.
23292 Usage: $0 [OPTION]... [TAG]...
23294 -h, --help print this help, then exit
23295 -V, --version print version number and configuration settings, then exit
23296 --config print configuration, then exit
23297 -q, --quiet, --silent
23298 do not print progress messages
23299 -d, --debug don't remove temporary files
23300 --recheck update $as_me by reconfiguring in the same conditions
23301 --file=FILE[:TEMPLATE]
23302 instantiate the configuration file FILE
23303 --header=FILE[:TEMPLATE]
23304 instantiate the configuration header FILE
23306 Configuration files:
23309 Configuration headers:
23312 Configuration commands:
23315 Report bugs to <t-tujikawa@users.sourceforge.net>."
23318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23321 nghttp2 config.status 1.0.0
23322 configured by $0, generated by GNU Autoconf 2.69,
23323 with options \\"\$ac_cs_config\\"
23325 Copyright (C) 2012 Free Software Foundation, Inc.
23326 This config.status script is free software; the Free Software Foundation
23327 gives unlimited permission to copy, distribute and modify it."
23334 test -n "\$AWK" || AWK=awk
23337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23338 # The default lists apply if the user does not specify any file.
23344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23361 # Handling of the options.
23362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23364 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23365 $as_echo "$ac_cs_version"; exit ;;
23366 --config | --confi | --conf | --con | --co | --c )
23367 $as_echo "$ac_cs_config"; exit ;;
23368 --debug | --debu | --deb | --de | --d | -d )
23370 --file | --fil | --fi | --f )
23373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23374 '') as_fn_error $? "missing file argument" ;;
23376 as_fn_append CONFIG_FILES " '$ac_optarg'"
23377 ac_need_defaults=false;;
23378 --header | --heade | --head | --hea )
23381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23383 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23384 ac_need_defaults=false;;
23386 # Conflict between --help and --header
23387 as_fn_error $? "ambiguous option: \`$1'
23388 Try \`$0 --help' for more information.";;
23389 --help | --hel | -h )
23390 $as_echo "$ac_cs_usage"; exit ;;
23391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23395 # This is an error.
23396 -*) as_fn_error $? "unrecognized option: \`$1'
23397 Try \`$0 --help' for more information." ;;
23399 *) as_fn_append ac_config_targets " $1"
23400 ac_need_defaults=false ;;
23406 ac_configure_extra_args=
23408 if $ac_cs_silent; then
23410 ac_configure_extra_args="$ac_configure_extra_args --silent"
23414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23415 if \$ac_cs_recheck; then
23416 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23419 CONFIG_SHELL='$SHELL'
23420 export CONFIG_SHELL
23425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23430 ## Running $as_me. ##
23436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23442 # The HP-UX ksh and POSIX shell print the target directory to stdout
23443 # if CDPATH is set.
23444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23446 sed_quote_subst='$sed_quote_subst'
23447 double_quote_subst='$double_quote_subst'
23448 delay_variable_subst='$delay_variable_subst'
23449 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23450 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23451 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23452 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23453 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23454 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23455 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23456 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23457 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23478 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23479 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23480 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23481 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23482 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23483 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23484 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23485 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23486 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23487 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23488 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23489 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23490 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23491 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23504 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23505 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"`'
23506 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23507 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23508 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23509 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23510 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23511 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23512 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23513 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23514 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23515 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23516 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23517 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23518 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23519 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23520 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23521 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23522 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23523 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23524 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23525 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23526 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23527 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23528 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23529 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23530 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23531 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23532 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23533 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23534 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23535 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23536 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23537 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23538 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23539 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23540 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23541 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23542 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23543 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23544 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23545 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23546 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23547 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23548 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23549 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23550 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23551 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23552 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23553 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23554 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23555 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23556 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23557 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23558 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23559 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23560 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23561 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23562 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23563 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23564 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23565 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23566 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23567 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23568 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23569 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23570 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23571 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23572 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23573 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23574 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23575 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23576 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23577 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23578 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23579 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23580 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23581 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23582 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23583 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23584 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23585 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23586 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23587 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23588 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23589 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23590 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23591 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23592 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23593 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23594 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23595 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23596 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23597 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23598 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23599 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23600 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23601 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23602 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23603 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23604 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23605 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23606 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23607 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23608 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23609 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23610 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23611 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23612 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23613 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23614 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23615 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23616 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23617 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23618 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23619 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23620 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23621 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23622 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23623 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23624 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23625 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23626 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23627 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23628 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23629 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23630 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23631 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23632 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23635 LTCFLAGS='$LTCFLAGS'
23636 compiler='$compiler_DEFAULT'
23638 # A function that is used when there is no print builtin or printf.
23639 func_fallback_echo ()
23641 eval 'cat <<_LTECHO_EOF
23646 # Quote evaled strings.
23661 deplibs_check_method \
23666 sharedlib_from_linklib_cmd \
23669 archiver_list_spec \
23675 lt_cv_sys_global_symbol_pipe \
23676 lt_cv_sys_global_symbol_to_cdecl \
23677 lt_cv_sys_global_symbol_to_c_name_address \
23678 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23679 nm_file_list_spec \
23680 lt_prog_compiler_no_builtin_flag \
23681 lt_prog_compiler_pic \
23682 lt_prog_compiler_wl \
23683 lt_prog_compiler_static \
23684 lt_cv_prog_compiler_c_o \
23693 export_dynamic_flag_spec \
23694 whole_archive_flag_spec \
23695 compiler_needs_object \
23697 allow_undefined_flag \
23698 no_undefined_flag \
23699 hardcode_libdir_flag_spec \
23700 hardcode_libdir_separator \
23704 variables_saved_for_relink \
23706 library_names_spec \
23708 install_override_mode \
23712 compiler_lib_search_dirs \
23717 compiler_lib_search_path \
23721 lt_prog_compiler_no_builtin_flag_CXX \
23722 lt_prog_compiler_pic_CXX \
23723 lt_prog_compiler_wl_CXX \
23724 lt_prog_compiler_static_CXX \
23725 lt_cv_prog_compiler_c_o_CXX \
23726 export_dynamic_flag_spec_CXX \
23727 whole_archive_flag_spec_CXX \
23728 compiler_needs_object_CXX \
23730 allow_undefined_flag_CXX \
23731 no_undefined_flag_CXX \
23732 hardcode_libdir_flag_spec_CXX \
23733 hardcode_libdir_separator_CXX \
23734 exclude_expsyms_CXX \
23735 include_expsyms_CXX \
23736 file_list_spec_CXX \
23737 compiler_lib_search_dirs_CXX \
23738 predep_objects_CXX \
23739 postdep_objects_CXX \
23742 compiler_lib_search_path_CXX; do
23743 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23744 *[\\\\\\\`\\"\\\$]*)
23745 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23748 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23753 # Double-quote double-evaled strings.
23754 for var in reload_cmds \
23755 old_postinstall_cmds \
23756 old_postuninstall_cmds \
23758 extract_expsyms_cmds \
23759 old_archive_from_new_cmds \
23760 old_archive_from_expsyms_cmds \
23762 archive_expsym_cmds \
23764 module_expsym_cmds \
23765 export_symbols_cmds \
23769 postuninstall_cmds \
23771 sys_lib_search_path_spec \
23772 sys_lib_dlsearch_path_spec \
23774 old_archive_cmds_CXX \
23775 old_archive_from_new_cmds_CXX \
23776 old_archive_from_expsyms_cmds_CXX \
23778 archive_expsym_cmds_CXX \
23780 module_expsym_cmds_CXX \
23781 export_symbols_cmds_CXX \
23783 postlink_cmds_CXX; do
23784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23785 *[\\\\\\\`\\"\\\$]*)
23786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23794 ac_aux_dir='$ac_aux_dir'
23795 xsi_shell='$xsi_shell'
23796 lt_shell_append='$lt_shell_append'
23798 # See if we are running on zsh, and set the options which allow our
23799 # commands through without removal of \ escapes INIT.
23800 if test -n "\${ZSH_VERSION+set}" ; then
23801 setopt NO_GLOB_SUBST
23807 TIMESTAMP='$TIMESTAMP'
23815 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23821 # Handling of arguments.
23822 for ac_config_target in $ac_config_targets
23824 case $ac_config_target in
23825 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23826 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23829 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23830 "lib/libnghttp2.pc") CONFIG_FILES="$CONFIG_FILES lib/libnghttp2.pc" ;;
23831 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
23832 "lib/includes/nghttp2/nghttp2ver.h") CONFIG_FILES="$CONFIG_FILES lib/includes/nghttp2/nghttp2ver.h" ;;
23833 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23834 "tests/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testdata/Makefile" ;;
23835 "third-party/Makefile") CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
23836 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23837 "src/includes/Makefile") CONFIG_FILES="$CONFIG_FILES src/includes/Makefile" ;;
23838 "src/libnghttp2_asio.pc") CONFIG_FILES="$CONFIG_FILES src/libnghttp2_asio.pc" ;;
23839 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23840 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23841 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
23842 "integration-tests/Makefile") CONFIG_FILES="$CONFIG_FILES integration-tests/Makefile" ;;
23843 "integration-tests/config.go") CONFIG_FILES="$CONFIG_FILES integration-tests/config.go" ;;
23844 "integration-tests/setenv") CONFIG_FILES="$CONFIG_FILES integration-tests/setenv" ;;
23845 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23846 "doc/conf.py") CONFIG_FILES="$CONFIG_FILES doc/conf.py" ;;
23847 "doc/index.rst") CONFIG_FILES="$CONFIG_FILES doc/index.rst" ;;
23848 "doc/package_README.rst") CONFIG_FILES="$CONFIG_FILES doc/package_README.rst" ;;
23849 "doc/tutorial-client.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-client.rst" ;;
23850 "doc/tutorial-server.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-server.rst" ;;
23851 "doc/tutorial-hpack.rst") CONFIG_FILES="$CONFIG_FILES doc/tutorial-hpack.rst" ;;
23852 "doc/nghttpx-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttpx-howto.rst" ;;
23853 "doc/h2load-howto.rst") CONFIG_FILES="$CONFIG_FILES doc/h2load-howto.rst" ;;
23854 "doc/libnghttp2_asio.rst") CONFIG_FILES="$CONFIG_FILES doc/libnghttp2_asio.rst" ;;
23855 "doc/python-apiref.rst") CONFIG_FILES="$CONFIG_FILES doc/python-apiref.rst" ;;
23856 "doc/building-android-binary.rst") CONFIG_FILES="$CONFIG_FILES doc/building-android-binary.rst" ;;
23857 "doc/nghttp2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2.h.rst" ;;
23858 "doc/nghttp2ver.h.rst") CONFIG_FILES="$CONFIG_FILES doc/nghttp2ver.h.rst" ;;
23859 "doc/asio_http2.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2.h.rst" ;;
23860 "doc/asio_http2_server.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_server.h.rst" ;;
23861 "doc/asio_http2_client.h.rst") CONFIG_FILES="$CONFIG_FILES doc/asio_http2_client.h.rst" ;;
23862 "doc/contribute.rst") CONFIG_FILES="$CONFIG_FILES doc/contribute.rst" ;;
23863 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
23865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23870 # If the user did not use the arguments to specify the items to instantiate,
23871 # then the envvar interface is used. Set only those that are not.
23872 # We use the long form for the default assignment because of an extremely
23873 # bizarre bug on SunOS 4.1.3.
23874 if $ac_need_defaults; then
23875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23880 # Have a temporary directory for convenience. Make it in the build tree
23881 # simply because there is no reason against having it here, and in addition,
23882 # creating and moving files from /tmp can sometimes cause problems.
23883 # Hook for its removal unless debugging.
23884 # Note that there is a small window in which the directory will not be cleaned:
23885 # after its creation but before its name has been assigned to `$tmp'.
23889 trap 'exit_status=$?
23890 : "${ac_tmp:=$tmp}"
23891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23893 trap 'as_fn_exit 1' 1 2 13 15
23895 # Create a (secure) tmp directory for tmp files.
23898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23902 tmp=./conf$$-$RANDOM
23903 (umask 077 && mkdir "$tmp")
23904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23907 # Set up the scripts for CONFIG_FILES section.
23908 # No need to generate them if there are no CONFIG_FILES.
23909 # This happens for instance with `./config.status config.h'.
23910 if test -n "$CONFIG_FILES"; then
23913 ac_cr=`echo X | tr X '\015'`
23914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23915 # But we know of no other shell where ac_cr would be empty at this
23916 # point, so we can use a bashism as a fallback.
23917 if test "x$ac_cr" = x; then
23918 eval ac_cr=\$\'\\r\'
23920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23924 ac_cs_awk_cr=$ac_cr
23927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23932 echo "cat >conf$$subs.awk <<_ACEOF" &&
23933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23935 } >conf$$subs.sh ||
23936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23939 for ac_last_try in false false false false false :; do
23940 . ./conf$$subs.sh ||
23941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23944 if test $ac_delim_n = $ac_delim_num; then
23946 elif $ac_last_try; then
23947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23952 rm -f conf$$subs.sh
23954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23959 s/^/S["/; s/!.*/"]=/
23969 s/\(.\{148\}\)..*/\1/
23971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23983 s/\(.\{148\}\)..*/\1/
23985 s/["\\]/\\&/g; s/^/"/; s/$/"/
23989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23994 ' <conf$$subs.awk | sed '
23999 ' >>$CONFIG_STATUS || ac_write_fail=1
24000 rm -f conf$$subs.awk
24001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24004 for (key in S) S_is_set[key] = 1
24010 nfields = split(line, field, "@")
24012 len = length(field[1])
24013 for (i = 2; i < nfields; i++) {
24015 keylen = length(key)
24016 if (S_is_set[key]) {
24018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24019 len += length(value) + length(field[++i])
24030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24041 # trailing colons and then remove the whole line if VPATH becomes empty
24042 # (actually we leave an empty line to preserve line numbers).
24043 if test "x$srcdir" = x.; then
24044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24063 fi # test -n "$CONFIG_FILES"
24065 # Set up the scripts for CONFIG_HEADERS section.
24066 # No need to generate them if there are no CONFIG_HEADERS.
24067 # This happens for instance with `./config.status Makefile'.
24068 if test -n "$CONFIG_HEADERS"; then
24069 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24073 # Transform confdefs.h into an awk script `defines.awk', embedded as
24074 # here-document in config.status, that substitutes the proper values into
24075 # config.h.in to produce config.h.
24077 # Create a delimiter string that does not exist in confdefs.h, to ease
24078 # handling of long lines.
24080 for ac_last_try in false false :; do
24081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24082 if test -z "$ac_tt"; then
24084 elif $ac_last_try; then
24085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24091 # For the awk script, D is an array of macro values keyed by name,
24092 # likewise P contains macro parameters if any. Preserve backslash
24093 # newline sequences.
24095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24097 s/.\{148\}/&'"$ac_delim"'/g
24100 s/^[ ]*#[ ]*define[ ][ ]*/ /
24107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24114 D["\1"]=" \3\\\\\\n"\\/p
24116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24121 s/.\{148\}/&'"$ac_delim"'/g
24126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24131 ' <confdefs.h | sed '
24132 s/'"$ac_delim"'/"\\\
24133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24136 for (key in D) D_is_set[key] = 1
24139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24141 split(line, arg, " ")
24142 if (arg[1] == "#") {
24146 defundef = substr(arg[1], 2)
24149 split(mac1, mac2, "(") #)
24151 prefix = substr(line, 1, index(line, defundef) - 1)
24152 if (D_is_set[macro]) {
24153 # Preserve the white space surrounding the "#".
24154 print prefix "define", macro P[macro] D[macro]
24157 # Replace #undef with comments. This is necessary, for example,
24158 # in the case of _POSIX_SOURCE, which is predefined and required
24159 # on some systems where configure will not decide to define it.
24160 if (defundef == "undef") {
24161 print "/*", prefix defundef, macro, "*/"
24169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24171 fi # test -n "$CONFIG_HEADERS"
24174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24179 :[FHLC]) ac_mode=$ac_tag; continue;;
24181 case $ac_mode$ac_tag in
24183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24184 :[FH]-) ac_tag=-:-;;
24185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24202 -) ac_f="$ac_tmp/stdin";;
24203 *) # Look for the file first in the build tree, then in the source tree
24204 # (if the path is not absolute). The absolute path cannot be DOS-style,
24205 # because $ac_f cannot contain `:'.
24209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24214 as_fn_append ac_file_inputs " '$ac_f'"
24217 # Let's still pretend it is `configure' which instantiates (i.e., don't
24218 # use $as_me), people would be surprised to read:
24219 # /* config.h. Generated by config.status. */
24220 configure_input='Generated from '`
24221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24223 if test x"$ac_file" != x-; then
24224 configure_input="$ac_file. $configure_input"
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24226 $as_echo "$as_me: creating $ac_file" >&6;}
24228 # Neutralize special characters interpreted by sed in replacement strings.
24229 case $configure_input in #(
24230 *\&* | *\|* | *\\* )
24231 ac_sed_conf_input=`$as_echo "$configure_input" |
24232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24233 *) ac_sed_conf_input=$configure_input;;
24237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24243 ac_dir=`$as_dirname -- "$ac_file" ||
24244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245 X"$ac_file" : 'X\(//\)[^/]' \| \
24246 X"$ac_file" : 'X\(//\)$' \| \
24247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24248 $as_echo X"$ac_file" |
24249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24253 /^X\(\/\/\)[^/].*/{
24266 as_dir="$ac_dir"; as_fn_mkdir_p
24270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24273 # A ".." for each directory in $ac_dir_suffix.
24274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24275 case $ac_top_builddir_sub in
24276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24280 ac_abs_top_builddir=$ac_pwd
24281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24282 # for backward compatibility:
24283 ac_top_builddir=$ac_top_build_prefix
24286 .) # We are building in place.
24288 ac_top_srcdir=$ac_top_builddir_sub
24289 ac_abs_top_srcdir=$ac_pwd ;;
24290 [\\/]* | ?:[\\/]* ) # Absolute name.
24291 ac_srcdir=$srcdir$ac_dir_suffix;
24292 ac_top_srcdir=$srcdir
24293 ac_abs_top_srcdir=$srcdir ;;
24294 *) # Relative name.
24295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24296 ac_top_srcdir=$ac_top_build_prefix$srcdir
24297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24312 ac_MKDIR_P=$MKDIR_P
24314 [\\/$]* | ?:[\\/]* ) ;;
24315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24320 # If the template does not know about datarootdir, expand it.
24321 # FIXME: This hack should be removed a few years after 2.60.
24322 ac_datarootdir_hack=; ac_datarootdir_seen=
24333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24334 *datarootdir*) ac_datarootdir_seen=yes;;
24335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24340 ac_datarootdir_hack='
24341 s&@datadir@&$datadir&g
24342 s&@docdir@&$docdir&g
24343 s&@infodir@&$infodir&g
24344 s&@localedir@&$localedir&g
24345 s&@mandir@&$mandir&g
24346 s&\\\${datarootdir}&$datarootdir&g' ;;
24350 # Neutralize VPATH when `$srcdir' = `.'.
24351 # Shell code in configure.ac might set extrasub.
24352 # FIXME: do we really want to maintain this feature?
24353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24354 ac_sed_extra="$ac_vpsub
24357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24360 s|@configure_input@|$ac_sed_conf_input|;t t
24361 s&@top_builddir@&$ac_top_builddir_sub&;t t
24362 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24363 s&@srcdir@&$ac_srcdir&;t t
24364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24365 s&@top_srcdir@&$ac_top_srcdir&;t t
24366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24367 s&@builddir@&$ac_builddir&;t t
24368 s&@abs_builddir@&$ac_abs_builddir&;t t
24369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24370 s&@INSTALL@&$ac_INSTALL&;t t
24371 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24372 $ac_datarootdir_hack
24374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24382 which seems to be undefined. Please make sure it is defined" >&5
24383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24384 which seems to be undefined. Please make sure it is defined" >&2;}
24386 rm -f "$ac_tmp/stdin"
24388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24397 if test x"$ac_file" != x-; then
24399 $as_echo "/* $configure_input */" \
24400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24401 } >"$ac_tmp/config.h" \
24402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24405 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24408 mv "$ac_tmp/config.h" "$ac_file" \
24409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24412 $as_echo "/* $configure_input */" \
24413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24414 || as_fn_error $? "could not create -" "$LINENO" 5
24416 # Compute "$ac_file"'s index in $config_headers.
24419 for _am_header in $config_headers :; do
24420 case $_am_header in
24421 $_am_arg | $_am_arg:* )
24424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24429 X"$_am_arg" : 'X\(//\)[^/]' \| \
24430 X"$_am_arg" : 'X\(//\)$' \| \
24431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24432 $as_echo X"$_am_arg" |
24433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24437 /^X\(\/\/\)[^/].*/{
24449 s/.*/./; q'`/stamp-h$_am_stamp_count
24452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24453 $as_echo "$as_me: executing $ac_file commands" >&6;}
24458 case $ac_file$ac_mode in
24461 # See if we are running on zsh, and set the options which allow our
24462 # commands through without removal of \ escapes.
24463 if test -n "${ZSH_VERSION+set}" ; then
24464 setopt NO_GLOB_SUBST
24467 cfgfile="${ofile}T"
24468 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24471 cat <<_LT_EOF >> "$cfgfile"
24474 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24475 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24479 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24480 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24482 # Written by Gordon Matzigkeit, 1996
24484 # This file is part of GNU Libtool.
24486 # GNU Libtool is free software; you can redistribute it and/or
24487 # modify it under the terms of the GNU General Public License as
24488 # published by the Free Software Foundation; either version 2 of
24489 # the License, or (at your option) any later version.
24491 # As a special exception to the GNU General Public License,
24492 # if you distribute this file as part of a program or library that
24493 # is built using GNU Libtool, you may include this file under the
24494 # same distribution terms that you use for the rest of that program.
24496 # GNU Libtool is distributed in the hope that it will be useful,
24497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24499 # GNU General Public License for more details.
24501 # You should have received a copy of the GNU General Public License
24502 # along with GNU Libtool; see the file COPYING. If not, a copy
24503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24504 # obtained by writing to the Free Software Foundation, Inc.,
24505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24508 # The names of the tagged configurations supported by this script.
24509 available_tags="CXX "
24511 # ### BEGIN LIBTOOL CONFIG
24513 # Which release of libtool.m4 was used?
24514 macro_version=$macro_version
24515 macro_revision=$macro_revision
24517 # Whether or not to build shared libraries.
24518 build_libtool_libs=$enable_shared
24520 # Whether or not to build static libraries.
24521 build_old_libs=$enable_static
24523 # What type of objects to build.
24526 # Whether or not to optimize for fast installation.
24527 fast_install=$enable_fast_install
24529 # Shell to use when invoking shell scripts.
24532 # An echo program that protects backslashes.
24535 # The PATH separator for the build system.
24536 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24539 host_alias=$host_alias
24543 # The build system.
24544 build_alias=$build_alias
24548 # A sed program that does not truncate output.
24551 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24552 Xsed="\$SED -e 1s/^X//"
24554 # A grep program that handles long lines.
24560 # A literal string matcher.
24563 # A BSD- or MS-compatible name lister.
24566 # Whether we need soft or hard links.
24569 # What is the maximum length of a command?
24570 max_cmd_len=$max_cmd_len
24572 # Object file suffix (normally "o").
24575 # Executable file suffix (normally "").
24578 # whether the shell understands "unset".
24581 # turn spaces into newlines.
24584 # turn newlines into spaces.
24587 # convert \$build file names to \$host format.
24588 to_host_file_cmd=$lt_cv_to_host_file_cmd
24590 # convert \$build files to toolchain format.
24591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24593 # An object symbol dumper.
24594 OBJDUMP=$lt_OBJDUMP
24596 # Method to check whether dependent libraries are shared objects.
24597 deplibs_check_method=$lt_deplibs_check_method
24599 # Command to use when deplibs_check_method = "file_magic".
24600 file_magic_cmd=$lt_file_magic_cmd
24602 # How to find potential files when deplibs_check_method = "file_magic".
24603 file_magic_glob=$lt_file_magic_glob
24605 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24606 want_nocaseglob=$lt_want_nocaseglob
24608 # DLL creation program.
24609 DLLTOOL=$lt_DLLTOOL
24611 # Command to associate shared and link libraries.
24612 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24617 # Flags to create an archive.
24618 AR_FLAGS=$lt_AR_FLAGS
24620 # How to feed a file listing to the archiver.
24621 archiver_list_spec=$lt_archiver_list_spec
24623 # A symbol stripping program.
24626 # Commands used to install an old-style archive.
24628 old_postinstall_cmds=$lt_old_postinstall_cmds
24629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24631 # Whether to use a lock for old archive extraction.
24632 lock_old_archive_extraction=$lock_old_archive_extraction
24637 # LTCC compiler flags.
24638 LTCFLAGS=$lt_CFLAGS
24640 # Take the output of nm and produce a listing of raw symbols and C names.
24641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24643 # Transform the output of nm in a proper C declaration.
24644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24646 # Transform the output of nm in a C name address pair.
24647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24649 # Transform the output of nm in a C name address pair when lib prefix is needed.
24650 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24652 # Specify filename containing input files for \$NM.
24653 nm_file_list_spec=$lt_nm_file_list_spec
24655 # The root where to search for dependent libraries,and in which our libraries should be installed.
24656 lt_sysroot=$lt_sysroot
24658 # The name of the directory that contains temporary libtool files.
24661 # Used to examine libraries when file_magic_cmd begins with "file".
24662 MAGIC_CMD=$MAGIC_CMD
24664 # Must we lock files when doing compilation?
24665 need_locks=$lt_need_locks
24668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24671 DSYMUTIL=$lt_DSYMUTIL
24673 # Tool to change global to local symbols on Mac OS X.
24676 # Tool to manipulate fat objects and archives on Mac OS X.
24679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24683 OTOOL64=$lt_OTOOL64
24685 # Old archive suffix (normally "a").
24688 # Shared library suffix (normally ".so").
24689 shrext_cmds=$lt_shrext_cmds
24691 # The commands to extract the exported symbol list from a shared archive.
24692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24694 # Variables whose values should be saved in libtool wrapper scripts and
24695 # restored at link time.
24696 variables_saved_for_relink=$lt_variables_saved_for_relink
24698 # Do we need the "lib" prefix for modules?
24699 need_lib_prefix=$need_lib_prefix
24701 # Do we need a version for libraries?
24702 need_version=$need_version
24704 # Library versioning type.
24705 version_type=$version_type
24707 # Shared library runtime path variable.
24708 runpath_var=$runpath_var
24710 # Shared library path variable.
24711 shlibpath_var=$shlibpath_var
24713 # Is shlibpath searched before the hard-coded library search path?
24714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24716 # Format of library name prefix.
24717 libname_spec=$lt_libname_spec
24719 # List of archive names. First name is the real one, the rest are links.
24720 # The last name is the one that the linker finds with -lNAME
24721 library_names_spec=$lt_library_names_spec
24723 # The coded name of the library, if different from the real name.
24724 soname_spec=$lt_soname_spec
24726 # Permission mode override for installation of shared libraries.
24727 install_override_mode=$lt_install_override_mode
24729 # Command to use after installation of a shared archive.
24730 postinstall_cmds=$lt_postinstall_cmds
24732 # Command to use after uninstallation of a shared archive.
24733 postuninstall_cmds=$lt_postuninstall_cmds
24735 # Commands used to finish a libtool library installation in a directory.
24736 finish_cmds=$lt_finish_cmds
24738 # As "finish_cmds", except a single script fragment to be evaled but
24740 finish_eval=$lt_finish_eval
24742 # Whether we should hardcode library paths into libraries.
24743 hardcode_into_libs=$hardcode_into_libs
24745 # Compile-time system search path for libraries.
24746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24748 # Run-time system search path for libraries.
24749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24751 # Whether dlopen is supported.
24752 dlopen_support=$enable_dlopen
24754 # Whether dlopen of programs is supported.
24755 dlopen_self=$enable_dlopen_self
24757 # Whether dlopen of statically linked programs is supported.
24758 dlopen_self_static=$enable_dlopen_self_static
24760 # Commands to strip libraries.
24761 old_striplib=$lt_old_striplib
24762 striplib=$lt_striplib
24765 # The linker used to build libraries.
24768 # How to create reloadable object files.
24769 reload_flag=$lt_reload_flag
24770 reload_cmds=$lt_reload_cmds
24772 # Commands used to build an old-style archive.
24773 old_archive_cmds=$lt_old_archive_cmds
24775 # A language specific compiler.
24778 # Is the compiler the GNU compiler?
24781 # Compiler flag to turn off builtin functions.
24782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24784 # Additional compiler flags for building library objects.
24785 pic_flag=$lt_lt_prog_compiler_pic
24787 # How to pass a linker flag through the compiler.
24788 wl=$lt_lt_prog_compiler_wl
24790 # Compiler flag to prevent dynamic linking.
24791 link_static_flag=$lt_lt_prog_compiler_static
24793 # Does compiler simultaneously support -c and -o options?
24794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24796 # Whether or not to add -lc for building shared libraries.
24797 build_libtool_need_lc=$archive_cmds_need_lc
24799 # Whether or not to disallow shared libs when runtime libs are static.
24800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24802 # Compiler flag to allow reflexive dlopens.
24803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24805 # Compiler flag to generate shared objects directly from archives.
24806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24808 # Whether the compiler copes with passing no objects directly.
24809 compiler_needs_object=$lt_compiler_needs_object
24811 # Create an old-style archive from a shared archive.
24812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24814 # Create a temporary old-style archive to link instead of a shared archive.
24815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24817 # Commands used to build a shared archive.
24818 archive_cmds=$lt_archive_cmds
24819 archive_expsym_cmds=$lt_archive_expsym_cmds
24821 # Commands used to build a loadable module if different from building
24822 # a shared archive.
24823 module_cmds=$lt_module_cmds
24824 module_expsym_cmds=$lt_module_expsym_cmds
24826 # Whether we are building with GNU ld or not.
24827 with_gnu_ld=$lt_with_gnu_ld
24829 # Flag that allows shared libraries with undefined symbols to be built.
24830 allow_undefined_flag=$lt_allow_undefined_flag
24832 # Flag that enforces no undefined symbols.
24833 no_undefined_flag=$lt_no_undefined_flag
24835 # Flag to hardcode \$libdir into a binary during linking.
24836 # This must work even if \$libdir does not exist
24837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24839 # Whether we need a single "-rpath" flag with a separated argument.
24840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24843 # DIR into the resulting binary.
24844 hardcode_direct=$hardcode_direct
24846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24847 # DIR into the resulting binary and the resulting library dependency is
24848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24849 # library is relocated.
24850 hardcode_direct_absolute=$hardcode_direct_absolute
24852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24853 # into the resulting binary.
24854 hardcode_minus_L=$hardcode_minus_L
24856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24857 # into the resulting binary.
24858 hardcode_shlibpath_var=$hardcode_shlibpath_var
24860 # Set to "yes" if building a shared library automatically hardcodes DIR
24861 # into the library and all subsequent libraries and executables linked
24863 hardcode_automatic=$hardcode_automatic
24865 # Set to yes if linker adds runtime paths of dependent libraries
24866 # to runtime path list.
24867 inherit_rpath=$inherit_rpath
24869 # Whether libtool must link a program against all its dependency libraries.
24870 link_all_deplibs=$link_all_deplibs
24872 # Set to "yes" if exported symbols are required.
24873 always_export_symbols=$always_export_symbols
24875 # The commands to list exported symbols.
24876 export_symbols_cmds=$lt_export_symbols_cmds
24878 # Symbols that should not be listed in the preloaded symbols.
24879 exclude_expsyms=$lt_exclude_expsyms
24881 # Symbols that must always be exported.
24882 include_expsyms=$lt_include_expsyms
24884 # Commands necessary for linking programs (against libraries) with templates.
24885 prelink_cmds=$lt_prelink_cmds
24887 # Commands necessary for finishing linking programs.
24888 postlink_cmds=$lt_postlink_cmds
24890 # Specify filename containing input files.
24891 file_list_spec=$lt_file_list_spec
24893 # How to hardcode a shared library path into an executable.
24894 hardcode_action=$hardcode_action
24896 # The directories searched by this compiler when creating a shared library.
24897 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24899 # Dependencies to place before and after the objects being linked to
24900 # create a shared library.
24901 predep_objects=$lt_predep_objects
24902 postdep_objects=$lt_postdep_objects
24903 predeps=$lt_predeps
24904 postdeps=$lt_postdeps
24906 # The library search path used internally by the compiler when linking
24907 # a shared library.
24908 compiler_lib_search_path=$lt_compiler_lib_search_path
24910 # ### END LIBTOOL CONFIG
24916 cat <<\_LT_EOF >> "$cfgfile"
24917 # AIX sometimes has problems with the GCC collect2 program. For some
24918 # reason, if we set the COLLECT_NAMES environment variable, the problems
24919 # vanish in a puff of smoke.
24920 if test "X${COLLECT_NAMES+set}" != Xset; then
24922 export COLLECT_NAMES
24929 ltmain="$ac_aux_dir/ltmain.sh"
24932 # We use sed instead of cat because bash on DJGPP gets confused if
24933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24934 # text mode, it properly converts lines to CR/LF. This bash problem
24935 # is reportedly fixed, but why not run on old versions too?
24936 sed '$q' "$ltmain" >> "$cfgfile" \
24937 || (rm -f "$cfgfile"; exit 1)
24939 if test x"$xsi_shell" = xyes; then
24940 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24944 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24945 \ * ) func_dirname_result="${3}" ;;\
24947 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24948 && mv -f "$cfgfile.tmp" "$cfgfile" \
24949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24950 test 0 -eq $? || _lt_function_replace_fail=:
24953 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24956 \ func_basename_result="${1##*/}"\
24957 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24958 && mv -f "$cfgfile.tmp" "$cfgfile" \
24959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24960 test 0 -eq $? || _lt_function_replace_fail=:
24963 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24964 func_dirname_and_basename ()\
24967 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24968 \ * ) func_dirname_result="${3}" ;;\
24970 \ func_basename_result="${1##*/}"\
24971 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24972 && mv -f "$cfgfile.tmp" "$cfgfile" \
24973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24974 test 0 -eq $? || _lt_function_replace_fail=:
24977 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24980 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24981 \ # positional parameters, so assign one to ordinary parameter first.\
24982 \ func_stripname_result=${3}\
24983 \ func_stripname_result=${func_stripname_result#"${1}"}\
24984 \ func_stripname_result=${func_stripname_result%"${2}"}\
24985 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24986 && mv -f "$cfgfile.tmp" "$cfgfile" \
24987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24988 test 0 -eq $? || _lt_function_replace_fail=:
24991 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24992 func_split_long_opt ()\
24994 \ func_split_long_opt_name=${1%%=*}\
24995 \ func_split_long_opt_arg=${1#*=}\
24996 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24997 && mv -f "$cfgfile.tmp" "$cfgfile" \
24998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24999 test 0 -eq $? || _lt_function_replace_fail=:
25002 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25003 func_split_short_opt ()\
25005 \ func_split_short_opt_arg=${1#??}\
25006 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25007 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25008 && mv -f "$cfgfile.tmp" "$cfgfile" \
25009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25010 test 0 -eq $? || _lt_function_replace_fail=:
25013 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25017 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25018 \ *) func_lo2o_result=${1} ;;\
25020 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25021 && mv -f "$cfgfile.tmp" "$cfgfile" \
25022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25023 test 0 -eq $? || _lt_function_replace_fail=:
25026 sed -e '/^func_xform ()$/,/^} # func_xform /c\
25029 func_xform_result=${1%.*}.lo\
25030 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25031 && mv -f "$cfgfile.tmp" "$cfgfile" \
25032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25033 test 0 -eq $? || _lt_function_replace_fail=:
25036 sed -e '/^func_arith ()$/,/^} # func_arith /c\
25039 func_arith_result=$(( $* ))\
25040 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25041 && mv -f "$cfgfile.tmp" "$cfgfile" \
25042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25043 test 0 -eq $? || _lt_function_replace_fail=:
25046 sed -e '/^func_len ()$/,/^} # func_len /c\
25049 func_len_result=${#1}\
25050 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25051 && mv -f "$cfgfile.tmp" "$cfgfile" \
25052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25053 test 0 -eq $? || _lt_function_replace_fail=:
25057 if test x"$lt_shell_append" = xyes; then
25058 sed -e '/^func_append ()$/,/^} # func_append /c\
25061 eval "${1}+=\\${2}"\
25062 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25063 && mv -f "$cfgfile.tmp" "$cfgfile" \
25064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25065 test 0 -eq $? || _lt_function_replace_fail=:
25068 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25069 func_append_quoted ()\
25071 \ func_quote_for_eval "${2}"\
25072 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25073 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25074 && mv -f "$cfgfile.tmp" "$cfgfile" \
25075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25076 test 0 -eq $? || _lt_function_replace_fail=:
25079 # Save a `func_append' function call where possible by direct use of '+='
25080 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25081 && mv -f "$cfgfile.tmp" "$cfgfile" \
25082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25083 test 0 -eq $? || _lt_function_replace_fail=:
25085 # Save a `func_append' function call even when '+=' is not available
25086 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25087 && mv -f "$cfgfile.tmp" "$cfgfile" \
25088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25089 test 0 -eq $? || _lt_function_replace_fail=:
25092 if test x"$_lt_function_replace_fail" = x":"; then
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25094 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25098 mv -f "$cfgfile" "$ofile" ||
25099 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25103 cat <<_LT_EOF >> "$ofile"
25105 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25107 # The linker used to build libraries.
25110 # How to create reloadable object files.
25111 reload_flag=$lt_reload_flag_CXX
25112 reload_cmds=$lt_reload_cmds_CXX
25114 # Commands used to build an old-style archive.
25115 old_archive_cmds=$lt_old_archive_cmds_CXX
25117 # A language specific compiler.
25118 CC=$lt_compiler_CXX
25120 # Is the compiler the GNU compiler?
25123 # Compiler flag to turn off builtin functions.
25124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25126 # Additional compiler flags for building library objects.
25127 pic_flag=$lt_lt_prog_compiler_pic_CXX
25129 # How to pass a linker flag through the compiler.
25130 wl=$lt_lt_prog_compiler_wl_CXX
25132 # Compiler flag to prevent dynamic linking.
25133 link_static_flag=$lt_lt_prog_compiler_static_CXX
25135 # Does compiler simultaneously support -c and -o options?
25136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25138 # Whether or not to add -lc for building shared libraries.
25139 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25141 # Whether or not to disallow shared libs when runtime libs are static.
25142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25144 # Compiler flag to allow reflexive dlopens.
25145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25147 # Compiler flag to generate shared objects directly from archives.
25148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25150 # Whether the compiler copes with passing no objects directly.
25151 compiler_needs_object=$lt_compiler_needs_object_CXX
25153 # Create an old-style archive from a shared archive.
25154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25156 # Create a temporary old-style archive to link instead of a shared archive.
25157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25159 # Commands used to build a shared archive.
25160 archive_cmds=$lt_archive_cmds_CXX
25161 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25163 # Commands used to build a loadable module if different from building
25164 # a shared archive.
25165 module_cmds=$lt_module_cmds_CXX
25166 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25168 # Whether we are building with GNU ld or not.
25169 with_gnu_ld=$lt_with_gnu_ld_CXX
25171 # Flag that allows shared libraries with undefined symbols to be built.
25172 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25174 # Flag that enforces no undefined symbols.
25175 no_undefined_flag=$lt_no_undefined_flag_CXX
25177 # Flag to hardcode \$libdir into a binary during linking.
25178 # This must work even if \$libdir does not exist
25179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25181 # Whether we need a single "-rpath" flag with a separated argument.
25182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25184 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25185 # DIR into the resulting binary.
25186 hardcode_direct=$hardcode_direct_CXX
25188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25189 # DIR into the resulting binary and the resulting library dependency is
25190 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25191 # library is relocated.
25192 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25194 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25195 # into the resulting binary.
25196 hardcode_minus_L=$hardcode_minus_L_CXX
25198 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25199 # into the resulting binary.
25200 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25202 # Set to "yes" if building a shared library automatically hardcodes DIR
25203 # into the library and all subsequent libraries and executables linked
25205 hardcode_automatic=$hardcode_automatic_CXX
25207 # Set to yes if linker adds runtime paths of dependent libraries
25208 # to runtime path list.
25209 inherit_rpath=$inherit_rpath_CXX
25211 # Whether libtool must link a program against all its dependency libraries.
25212 link_all_deplibs=$link_all_deplibs_CXX
25214 # Set to "yes" if exported symbols are required.
25215 always_export_symbols=$always_export_symbols_CXX
25217 # The commands to list exported symbols.
25218 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25220 # Symbols that should not be listed in the preloaded symbols.
25221 exclude_expsyms=$lt_exclude_expsyms_CXX
25223 # Symbols that must always be exported.
25224 include_expsyms=$lt_include_expsyms_CXX
25226 # Commands necessary for linking programs (against libraries) with templates.
25227 prelink_cmds=$lt_prelink_cmds_CXX
25229 # Commands necessary for finishing linking programs.
25230 postlink_cmds=$lt_postlink_cmds_CXX
25232 # Specify filename containing input files.
25233 file_list_spec=$lt_file_list_spec_CXX
25235 # How to hardcode a shared library path into an executable.
25236 hardcode_action=$hardcode_action_CXX
25238 # The directories searched by this compiler when creating a shared library.
25239 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25241 # Dependencies to place before and after the objects being linked to
25242 # create a shared library.
25243 predep_objects=$lt_predep_objects_CXX
25244 postdep_objects=$lt_postdep_objects_CXX
25245 predeps=$lt_predeps_CXX
25246 postdeps=$lt_postdeps_CXX
25248 # The library search path used internally by the compiler when linking
25249 # a shared library.
25250 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25252 # ### END LIBTOOL TAG CONFIG: CXX
25256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25257 # Older Autoconf quotes --file arguments for eval, but not when files
25258 # are listed without --file. Let's play safe and only enable the eval
25259 # if we detect the quoting.
25260 case $CONFIG_FILES in
25261 *\'*) eval set x "$CONFIG_FILES" ;;
25262 *) set x $CONFIG_FILES ;;
25267 # Strip MF so we end up with the name of the file.
25268 mf=`echo "$mf" | sed -e 's/:.*$//'`
25269 # Check whether this is an Automake generated Makefile or not.
25270 # We used to match only the files named 'Makefile.in', but
25271 # some people rename them; so instead we look at the file content.
25272 # Grep'ing the first line is not enough: some people post-process
25273 # each Makefile.in and add a new line on top of each file to say so.
25274 # Grep'ing the whole file is not good either: AIX grep has a line
25275 # limit of 2048, but all sed's we know have understand at least 4000.
25276 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25277 dirpart=`$as_dirname -- "$mf" ||
25278 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25279 X"$mf" : 'X\(//\)[^/]' \| \
25280 X"$mf" : 'X\(//\)$' \| \
25281 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25287 /^X\(\/\/\)[^/].*/{
25303 # Extract the definition of DEPDIR, am__include, and am__quote
25304 # from the Makefile without running 'make'.
25305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25306 test -z "$DEPDIR" && continue
25307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25308 test -z "$am__include" && continue
25309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25310 # Find all dependency output files, they are included files with
25311 # $(DEPDIR) in their names. We invoke sed twice because it is the
25312 # simplest approach to changing $(DEPDIR) to its actual value in the
25314 for file in `sed -n "
25315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25317 # Make sure the directory exists.
25318 test -f "$dirpart/$file" && continue
25319 fdir=`$as_dirname -- "$file" ||
25320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25321 X"$file" : 'X\(//\)[^/]' \| \
25322 X"$file" : 'X\(//\)$' \| \
25323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25324 $as_echo X"$file" |
25325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25329 /^X\(\/\/\)[^/].*/{
25342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25343 # echo "creating $dirpart/$file"
25344 echo '# dummy' > "$dirpart/$file"
25356 ac_clean_files=$ac_clean_files_save
25358 test $ac_write_fail = 0 ||
25359 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25362 # configure is writing to config.log, and then calls config.status.
25363 # config.status does its own redirection, appending to config.log.
25364 # Unfortunately, on DOS this fails, as config.log is still kept open
25365 # by configure, so config.status won't be able to write to it; its
25366 # output is simply discarded. So we exec the FD to /dev/null,
25367 # effectively closing config.log, so it can be properly (re)opened and
25368 # appended to by config.status. When coming back to configure, we
25369 # need to make the FD available again.
25370 if test "$no_create" != yes; then
25372 ac_config_status_args=
25373 test "$silent" = yes &&
25374 ac_config_status_args="$ac_config_status_args --quiet"
25376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25379 # would make configure fail if this is the last instruction.
25380 $ac_cs_success || as_fn_exit 1
25382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
25390 Version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
25392 Install prefix: ${prefix}
25395 WARNCFLAGS: ${WARNCFLAGS}
25396 LDFLAGS: ${LDFLAGS}
25398 CPPFLAGS: ${CPPFLAGS}
25399 C preprocessor: ${CPP}
25400 C++ compiler: ${CXX}
25401 CXXFLAGS: ${CXXFLAGS}
25403 Library types: Shared=${enable_shared}, Static=${enable_static}
25406 PYTHON_VERSION: ${PYTHON_VERSION}
25407 pyexecdir: ${pyexecdir}
25408 Python-dev: ${have_python_dev}
25409 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
25410 PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
25413 CUnit: ${have_cunit}
25414 Failmalloc: ${enable_failmalloc}
25416 OpenSSL: ${have_openssl}
25417 Libxml2: ${have_libxml2}
25418 Libev: ${have_libev}
25419 Libevent(SSL): ${have_libevent_openssl}
25420 Spdylay: ${have_spdylay}
25421 Jansson: ${have_jansson}
25422 Jemalloc: ${have_jemalloc}
25423 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
25424 Boost LDFLAGS: ${BOOST_LDFLAGS}
25425 Boost::ASIO: ${BOOST_ASIO_LIB}
25426 Boost::System: ${BOOST_SYSTEM_LIB}
25427 Boost::Thread: ${BOOST_THREAD_LIB}
25429 Applications: ${enable_app}
25430 HPACK tools: ${enable_hpack_tools}
25431 Libnghttp2_asio:${enable_asio_lib}
25432 Examples: ${enable_examples}
25433 Python bindings:${enable_python_bindings}
25434 Threading: ${enable_threads}
25436 $as_echo "$as_me: summary of build options:
25438 Version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
25440 Install prefix: ${prefix}
25443 WARNCFLAGS: ${WARNCFLAGS}
25444 LDFLAGS: ${LDFLAGS}
25446 CPPFLAGS: ${CPPFLAGS}
25447 C preprocessor: ${CPP}
25448 C++ compiler: ${CXX}
25449 CXXFLAGS: ${CXXFLAGS}
25451 Library types: Shared=${enable_shared}, Static=${enable_static}
25454 PYTHON_VERSION: ${PYTHON_VERSION}
25455 pyexecdir: ${pyexecdir}
25456 Python-dev: ${have_python_dev}
25457 PYTHON_CPPFLAGS:${PYTHON_CPPFLAGS}
25458 PYTHON_LDFLAGS: ${PYTHON_LDFLAGS}
25461 CUnit: ${have_cunit}
25462 Failmalloc: ${enable_failmalloc}
25464 OpenSSL: ${have_openssl}
25465 Libxml2: ${have_libxml2}
25466 Libev: ${have_libev}
25467 Libevent(SSL): ${have_libevent_openssl}
25468 Spdylay: ${have_spdylay}
25469 Jansson: ${have_jansson}
25470 Jemalloc: ${have_jemalloc}
25471 Boost CPPFLAGS: ${BOOST_CPPFLAGS}
25472 Boost LDFLAGS: ${BOOST_LDFLAGS}
25473 Boost::ASIO: ${BOOST_ASIO_LIB}
25474 Boost::System: ${BOOST_SYSTEM_LIB}
25475 Boost::Thread: ${BOOST_THREAD_LIB}
25477 Applications: ${enable_app}
25478 HPACK tools: ${enable_hpack_tools}
25479 Libnghttp2_asio:${enable_asio_lib}
25480 Examples: ${enable_examples}
25481 Python bindings:${enable_python_bindings}
25482 Threading: ${enable_threads}