2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for libunwind 1.1.
5 @%:@ Report bugs to <libunwind-devel@nongnu.org>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 @%:@ This configure script is free software; the Free Software Foundation
14 @%:@ gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in @%:@(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in @%:@(
150 set -o posix ;; @%:@(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
201 case $as_dir in @%:@(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and libunwind-devel@nongnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 @%:@ Portably unset VAR.
273 { eval $1=; unset $1;}
277 @%:@ as_fn_set_status STATUS
278 @%:@ -----------------------
279 @%:@ Set @S|@? to STATUS, without forking.
283 } @%:@ as_fn_set_status
285 @%:@ as_fn_exit STATUS
286 @%:@ -----------------
287 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 @%:@ as_fn_append VAR VALUE
343 @%:@ ----------------------
344 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
345 @%:@ advantage of any shell optimizations that allow amortized linear growth over
346 @%:@ repeated appends, instead of the typical quadratic growth present in naive
347 @%:@ implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
360 @%:@ as_fn_arith ARG...
361 @%:@ ------------------
362 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
363 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
364 @%:@ must be portable across @S|@(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
379 @%:@ ----------------------------------------
380 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 @%:@ script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in @%:@(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libunwind'
572 PACKAGE_TARNAME='libunwind'
573 PACKAGE_VERSION='1.1'
574 PACKAGE_STRING='libunwind 1.1'
575 PACKAGE_BUGREPORT='libunwind-devel@nongnu.org'
578 ac_unique_file="src/mi/backtrace.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
621 enable_cxx_exceptions
627 LDFLAGS_STATIC_LIBCXA
634 SUPPORT_CXX_EXCEPTIONS_FALSE
635 SUPPORT_CXX_EXCEPTIONS_TRUE
674 am__fastdepCCAS_FALSE
726 MAINTAINER_MODE_FALSE
736 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
804 enable_maintainer_mode
805 enable_dependency_tracking
815 enable_cxx_exceptions
818 enable_conservative_checks
822 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used" >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures libunwind 1.1 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 @<:@@S|@ac_default_prefix@:>@
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libunwind@:>@
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of libunwind 1.1:";;
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-maintainer-mode enable make rules and dependencies not useful
1459 (and sometimes confusing) to the casual installer
1460 --disable-dependency-tracking speeds up one-time build
1461 --enable-dependency-tracking do not reject slow dependency extractors
1462 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1463 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1464 --enable-fast-install@<:@=PKGS@:>@
1465 optimize for fast installation @<:@default=yes@:>@
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-coredump building libunwind-coredump library
1468 --enable-debug turn on debug support (slows down execution)
1469 --enable-cxx-exceptions use libunwind to handle C++ exceptions
1470 --enable-debug-frame Load the ".debug_frame" section if available
1471 --enable-block-signals Block signals before performing mutex operations
1472 --enable-conservative-checks
1473 Validate all memory addresses before use
1474 --enable-msabi-support Enables support for Microsoft ABI extensions
1475 --enable-minidebuginfo Enables support for LZMA-compressed symbol tables
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1482 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1498 CCAS assembler compiler command (defaults to CC)
1499 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <libunwind-devel@nongnu.org>.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 libunwind configure 1.1
1568 generated by GNU Autoconf 2.68
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 @%:@ ac_fn_c_try_compile LINENO
1582 @%:@ --------------------------
1583 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } @%:@ ac_fn_c_try_compile
1619 @%:@ ac_fn_cxx_try_compile LINENO
1620 @%:@ ----------------------------
1621 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } @%:@ ac_fn_cxx_try_compile
1657 @%:@ ac_fn_c_try_link LINENO
1658 @%:@ -----------------------
1659 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 $as_test_x conftest$ac_exeext
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } @%:@ ac_fn_c_try_link
1703 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 @%:@ -------------------------------------------------------
1705 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1706 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1720 if ac_fn_c_try_compile "$LINENO"; then :
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } @%:@ ac_fn_c_check_header_compile
1734 @%:@ ac_fn_c_try_cpp LINENO
1735 @%:@ ----------------------
1736 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } @%:@ ac_fn_c_try_cpp
1771 @%:@ ac_fn_c_try_run LINENO
1772 @%:@ ----------------------
1773 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1774 @%:@ that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } @%:@ ac_fn_c_try_run
1813 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1814 @%:@ ----------------------------------
1815 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } @%:@ ac_fn_c_check_func
1880 @%:@ ac_fn_cxx_try_cpp LINENO
1881 @%:@ ------------------------
1882 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } @%:@ ac_fn_cxx_try_cpp
1917 @%:@ ac_fn_cxx_try_link LINENO
1918 @%:@ -------------------------
1919 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } @%:@ ac_fn_cxx_try_link
1963 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 @%:@ -------------------------------------------------------
1965 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 @%:@ the include files in INCLUDES and setting the cache variable VAR
1968 ac_fn_c_check_header_mongrel ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if eval \${$3+:} false; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1992 ac_header_compiler=no
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2008 ac_header_preproc=no
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ----------------------------------------- ##
2034 ## Report this to libunwind-devel@nongnu.org ##
2035 ## ----------------------------------------- ##"
2036 ) | sed "s/^/$as_me: WARNING: /" >&2
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } @%:@ ac_fn_c_check_header_mongrel
2054 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 @%:@ -------------------------------------------
2056 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2057 @%:@ variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } @%:@ ac_fn_c_check_type
2108 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 @%:@ --------------------------------------------
2110 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2111 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2125 test_array @<:@0@:>@ = 0
2131 if ac_fn_c_try_compile "$LINENO"; then :
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2141 test_array @<:@0@:>@ = 0
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2167 test_array @<:@0@:>@ = 0
2173 if ac_fn_c_try_compile "$LINENO"; then :
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2183 test_array @<:@0@:>@ = 0
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_lo=$ac_mid; break
2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193 if test $ac_mid -le $ac_hi; then
2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 # Binary search between lo and hi bounds.
2208 while test "x$ac_lo" != "x$ac_hi"; do
2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2217 test_array @<:@0@:>@ = 0
2223 if ac_fn_c_try_compile "$LINENO"; then :
2226 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 case $ac_lo in @%:@((
2231 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2238 static long int longval () { return $2; }
2239 static unsigned long int ulongval () { return $2; }
2240 @%:@include <stdio.h>
2241 @%:@include <stdlib.h>
2246 FILE *f = fopen ("conftest.val", "w");
2251 long int i = longval ();
2254 fprintf (f, "%ld", i);
2258 unsigned long int i = ulongval ();
2261 fprintf (f, "%lu", i);
2263 /* Do not output a trailing newline, as this causes \r\n confusion
2264 on some platforms. */
2265 return ferror (f) || fclose (f) != 0;
2271 if ac_fn_c_try_run "$LINENO"; then :
2272 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 as_fn_set_status $ac_retval
2284 } @%:@ ac_fn_c_compute_int
2286 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287 @%:@ ----------------------------------------------------
2288 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2289 @%:@ INCLUDES, setting cache variable VAR accordingly.
2290 ac_fn_c_check_member ()
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 $2.$3" >&5
2294 $as_echo_n "checking for $2.$3... " >&6; }
2295 if eval \${$4+:} false; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2311 if ac_fn_c_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2321 if (sizeof ac_aggr.$3)
2327 if ac_fn_c_try_compile "$LINENO"; then :
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 } @%:@ ac_fn_c_check_member
2343 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2344 @%:@ ---------------------------------------------
2345 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2347 ac_fn_c_check_decl ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 as_decl_name=`echo $2|sed 's/ *(.*//'`
2351 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2353 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2354 if eval \${$3+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2363 @%:@ifndef $as_decl_name
2364 @%:@ifdef __cplusplus
2365 (void) $as_decl_use;
2367 (void) $as_decl_name;
2375 if ac_fn_c_try_compile "$LINENO"; then :
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 } @%:@ ac_fn_c_check_decl
2388 cat >config.log <<_ACEOF
2389 This file contains any messages produced by compilers while
2390 running configure, to aid debugging if configure makes a mistake.
2392 It was created by libunwind $as_me 1.1, which was
2393 generated by GNU Autoconf 2.68. Invocation command line was
2405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2412 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2414 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2417 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2418 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2419 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2420 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 $as_echo "PATH: $as_dir"
2445 # Keep a trace of the command line.
2446 # Strip out --no-create and --no-recursion so they do not pile up.
2447 # Strip out --silent because we don't want to record it for future runs.
2448 # Also quote any args containing shell meta-characters.
2449 # Make two passes to allow for proper duplicate-argument suppression.
2453 ac_must_keep_next=false
2459 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2461 | -silent | --silent | --silen | --sile | --sil)
2464 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2467 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2469 as_fn_append ac_configure_args1 " '$ac_arg'"
2470 if test $ac_must_keep_next = true; then
2471 ac_must_keep_next=false # Got value, back to normal.
2474 *=* | --config-cache | -C | -disable-* | --disable-* \
2475 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2476 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2477 | -with-* | --with-* | -without-* | --without-* | --x)
2478 case "$ac_configure_args0 " in
2479 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2482 -* ) ac_must_keep_next=true ;;
2485 as_fn_append ac_configure_args " '$ac_arg'"
2490 { ac_configure_args0=; unset ac_configure_args0;}
2491 { ac_configure_args1=; unset ac_configure_args1;}
2493 # When interrupted or exit'd, cleanup temporary files, and complete
2494 # config.log. We remove comments because anyway the quotes in there
2495 # would cause problems or look ugly.
2496 # WARNING: Use '\'' to represent an apostrophe within the trap.
2497 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2498 trap 'exit_status=$?
2499 # Save into config.log some information that might help in debugging.
2503 $as_echo "## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##"
2507 # The following way of writing the cache mishandles newlines in values,
2509 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2510 eval ac_val=\$$ac_var
2514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2518 _ | IFS | as_nl) ;; #(
2519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2520 *) { eval $ac_var=; unset $ac_var;} ;;
2525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2526 *${as_nl}ac_space=\ *)
2528 "s/'\''/'\''\\\\'\'''\''/g;
2529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539 $as_echo "## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##"
2543 for ac_var in $ac_subst_vars
2545 eval ac_val=\$$ac_var
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 $as_echo "$ac_var='\''$ac_val'\''"
2553 if test -n "$ac_subst_files"; then
2554 $as_echo "## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##"
2558 for ac_var in $ac_subst_files
2560 eval ac_val=\$$ac_var
2562 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564 $as_echo "$ac_var='\''$ac_val'\''"
2569 if test -s confdefs.h; then
2570 $as_echo "## ----------- ##
2577 test "$ac_signal" != 0 &&
2578 $as_echo "$as_me: caught signal $ac_signal"
2579 $as_echo "$as_me: exit $exit_status"
2581 rm -f core *.core core.conftest.* &&
2582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2585 for ac_signal in 1 2 13 15; do
2586 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2591 rm -f -r conftest* confdefs.h
2593 $as_echo "/* confdefs.h */" > confdefs.h
2595 # Predefined preprocessor variables.
2597 cat >>confdefs.h <<_ACEOF
2598 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2601 cat >>confdefs.h <<_ACEOF
2602 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2605 cat >>confdefs.h <<_ACEOF
2606 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2609 cat >>confdefs.h <<_ACEOF
2610 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2613 cat >>confdefs.h <<_ACEOF
2614 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2617 cat >>confdefs.h <<_ACEOF
2618 @%:@define PACKAGE_URL "$PACKAGE_URL"
2622 # Let the site file select an alternate cache file if it wants to.
2623 # Prefer an explicitly selected file to automatically selected ones.
2626 if test -n "$CONFIG_SITE"; then
2627 # We do not want a PATH search for config.site.
2628 case $CONFIG_SITE in @%:@((
2629 -*) ac_site_file1=./$CONFIG_SITE;;
2630 */*) ac_site_file1=$CONFIG_SITE;;
2631 *) ac_site_file1=./$CONFIG_SITE;;
2633 elif test "x$prefix" != xNONE; then
2634 ac_site_file1=$prefix/share/config.site
2635 ac_site_file2=$prefix/etc/config.site
2637 ac_site_file1=$ac_default_prefix/share/config.site
2638 ac_site_file2=$ac_default_prefix/etc/config.site
2640 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2642 test "x$ac_site_file" = xNONE && continue
2643 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646 sed 's/^/| /' "$ac_site_file" >&5
2648 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $? "failed to load site script $ac_site_file
2651 See \`config.log' for more details" "$LINENO" 5; }
2655 if test -r "$cache_file"; then
2656 # Some versions of bash will fail to source /dev/null (special files
2657 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2658 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2660 $as_echo "$as_me: loading cache $cache_file" >&6;}
2662 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2663 *) . "./$cache_file";;
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2668 $as_echo "$as_me: creating cache $cache_file" >&6;}
2672 # Check that the precious variables saved in the cache have kept the same
2674 ac_cache_corrupted=false
2675 for ac_var in $ac_precious_vars; do
2676 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2677 eval ac_new_set=\$ac_env_${ac_var}_set
2678 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2679 eval ac_new_val=\$ac_env_${ac_var}_value
2680 case $ac_old_set,$ac_new_set in
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2688 ac_cache_corrupted=: ;;
2691 if test "x$ac_old_val" != "x$ac_new_val"; then
2692 # differences in whitespace do not lead to failure.
2693 ac_old_val_w=`echo x $ac_old_val`
2694 ac_new_val_w=`echo x $ac_new_val`
2695 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2698 ac_cache_corrupted=:
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2702 eval $ac_var=\$ac_old_val
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2705 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2707 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 # Pass precious variables to config.status.
2711 if test "$ac_new_set" = set; then
2713 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2714 *) ac_arg=$ac_var=$ac_new_val ;;
2716 case " $ac_configure_args " in
2717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2718 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722 if $ac_cache_corrupted; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2727 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729 ## -------------------- ##
2730 ## Main body of script. ##
2731 ## -------------------- ##
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 for ac_dir in config "$srcdir"/config; do
2743 if test -f "$ac_dir/install-sh"; then
2745 ac_install_sh="$ac_aux_dir/install-sh -c"
2747 elif test -f "$ac_dir/install.sh"; then
2749 ac_install_sh="$ac_aux_dir/install.sh -c"
2751 elif test -f "$ac_dir/shtool"; then
2753 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 if test -z "$ac_aux_dir"; then
2758 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2766 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2767 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2770 # Make sure we can run config.sub.
2771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if ${ac_cv_build+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789 $as_echo "$ac_cv_build" >&6; }
2790 case $ac_cv_build in
2792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795 ac_save_IFS=$IFS; IFS='-'
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809 $as_echo_n "checking host system type... " >&6; }
2810 if ${ac_cv_host+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test "x$host_alias" = x; then
2814 ac_cv_host=$ac_cv_build
2816 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 $as_echo "$ac_cv_host" >&6; }
2825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828 ac_save_IFS=$IFS; IFS='-'
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2842 $as_echo_n "checking target system type... " >&6; }
2843 if ${ac_cv_target+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test "x$target_alias" = x; then
2847 ac_cv_target=$ac_cv_host
2849 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2855 $as_echo "$ac_cv_target" >&6; }
2856 case $ac_cv_target in
2858 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2860 target=$ac_cv_target
2861 ac_save_IFS=$IFS; IFS='-'
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2871 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2874 # The aliases save the names the user supplied, while $host etc.
2875 # will get canonicalized.
2876 test -n "$target_alias" &&
2877 test "$program_prefix$program_suffix$program_transform_name" = \
2879 program_prefix=${target_alias}-
2880 am__api_version='1.11'
2882 # Find a good install program. We prefer a C program (faster),
2883 # so one script is as good as another. But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in @%:@((
2909 ./ | .// | /[cC]/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one > conftest.one
2931 echo two > conftest.two
2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2934 test -s conftest.one && test -s conftest.two &&
2935 test -s conftest.dir/conftest.one &&
2936 test -s conftest.dir/conftest.two
2938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2951 rm -rf conftest.one conftest.two conftest.dir
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL=$ac_cv_path_install
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 INSTALL=$ac_install_sh
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2979 echo timestamp > conftest.file
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2993 # Do `set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2999 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000 if test "$*" = "X"; then
3002 set X `ls -t "$srcdir/configure" conftest.file`
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3016 test "$2" = conftest.file
3022 as_fn_error $? "newly created file is older than distributed files!
3023 Check your system clock" "$LINENO" 5
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3026 $as_echo "yes" >&6; }
3027 test "$program_prefix" != NONE &&
3028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029 # Use a double $ so make ignores it.
3030 test "$program_suffix" != NONE &&
3031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032 # Double any \ or $.
3033 # By default was `s,x,x', remove it if useless.
3034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3037 # expand $ac_aux_dir to an absolute path
3038 am_aux_dir=`cd $ac_aux_dir && pwd`
3040 if test x"${MISSING+set}" != xset; then
3043 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3045 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3048 # Use eval to expand $SHELL
3049 if eval "$MISSING --run true"; then
3050 am_missing_run="$MISSING --run "
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3054 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3057 if test x"${install_sh}" != xset; then
3060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3062 install_sh="\${SHELL} $am_aux_dir/install-sh"
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_STRIP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 $as_echo "$STRIP" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$ac_cv_prog_STRIP"; then
3112 # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$ac_ct_STRIP"; then
3120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_ac_ct_STRIP="strip"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140 if test -n "$ac_ct_STRIP"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142 $as_echo "$ac_ct_STRIP" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3148 if test "x$ac_ct_STRIP" = x; then
3151 case $cross_compiling:$ac_tool_warned in
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3160 STRIP="$ac_cv_prog_STRIP"
3164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169 if ${ac_cv_path_mkdir+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in mkdir gmkdir; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181 'mkdir (GNU coreutils) '* | \
3182 'mkdir (coreutils) '* | \
3183 'mkdir (fileutils) '4.1*)
3184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3194 test -d ./--version && rmdir ./--version
3195 if test "${ac_cv_path_mkdir+set}" = set; then
3196 MKDIR_P="$ac_cv_path_mkdir -p"
3198 # As a last resort, use the slow shell script. Don't cache a
3199 # value for MKDIR_P within a source directory, because that will
3200 # break other packages using the cache if that directory is
3201 # removed, or if the value is a relative name.
3202 MKDIR_P="$ac_install_sh -d"
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 $as_echo "$MKDIR_P" >&6; }
3210 [\\/$]* | ?:[\\/]*) ;;
3211 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3214 for ac_prog in gawk mawk nawk awk
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_AWK+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$AWK"; then
3224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_AWK="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test -n "$AWK"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246 $as_echo "$AWK" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3253 test -n "$AWK" && break
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3259 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3260 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 cat >conftest.make <<\_ACEOF
3266 @echo '@@@%%%=$(MAKE)=@@@%%%'
3268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3271 eval ac_cv_prog_make_${ac_make}_set=yes;;
3273 eval ac_cv_prog_make_${ac_make}_set=no;;
3277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 SET_MAKE="MAKE=${MAKE-make}"
3287 rm -rf .tst 2>/dev/null
3288 mkdir .tst 2>/dev/null
3289 if test -d .tst; then
3294 rmdir .tst 2>/dev/null
3296 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3298 # is not polluted with repeated "-I."
3299 am__isrc=' -I$(srcdir)'
3300 # test to see if srcdir already configured
3301 if test -f $srcdir/config.status; then
3302 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3306 # test whether we have cygpath
3307 if test -z "$CYGPATH_W"; then
3308 if (cygpath --version) >/dev/null 2>/dev/null; then
3309 CYGPATH_W='cygpath -w'
3316 # Define the identity of the package.
3321 cat >>confdefs.h <<_ACEOF
3322 @%:@define PACKAGE "$PACKAGE"
3326 cat >>confdefs.h <<_ACEOF
3327 @%:@define VERSION "$VERSION"
3330 # Some tools Automake needs.
3332 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3335 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3338 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3341 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3344 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3346 # We need awk for the "check" target. The system "awk" is bad on
3348 # Always define AMTAR for backward compatibility. Yes, it's still used
3349 # in the wild :-( We should find a proper way to deprecate it ...
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 @%:@ Check whether --enable-maintainer-mode was given.
3362 if test "${enable_maintainer_mode+set}" = set; then :
3363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3365 USE_MAINTAINER_MODE=no
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3370 if test $USE_MAINTAINER_MODE = yes; then
3371 MAINTAINER_MODE_TRUE=
3372 MAINTAINER_MODE_FALSE='#'
3374 MAINTAINER_MODE_TRUE='#'
3375 MAINTAINER_MODE_FALSE=
3378 MAINT=$MAINTAINER_MODE_TRUE
3381 ac_config_headers="$ac_config_headers include/config.h"
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3428 if test -z "$ac_cv_prog_CC"; then
3430 # Extract the first word of "gcc", so it can be a program name with args.
3431 set dummy gcc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -n "$ac_ct_CC"; then
3438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_ac_ct_CC="gcc"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 $as_echo "$ac_ct_CC" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3481 if test -z "$CC"; then
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}cc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}cc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3522 if test -z "$CC"; then
3523 # Extract the first word of "cc", so it can be a program name with args.
3524 set dummy cc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected=yes
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy $ac_cv_prog_CC
3557 if test $@%:@ != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in cl.exe
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CC" && break
3622 if test -z "$CC"; then
3624 for ac_prog in cl.exe
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CC"; then
3634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_CC="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CC" && break
3666 if test "x$ac_ct_CC" = x; then
3669 case $cross_compiling:$ac_tool_warned in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3682 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "no acceptable C compiler found in \$PATH
3685 See \`config.log' for more details" "$LINENO" 5; }
3687 # Provide some information about the compiler.
3688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3691 for ac_option in --version -v -V -qversion; do
3692 { { ac_try="$ac_compiler $ac_option >&5"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701 if test -s conftest.err; then
3703 ... rest of stderr output deleted ...
3704 10q' conftest.err >conftest.er1
3705 cat conftest.er1 >&5
3707 rm -f conftest.er1 conftest.err
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3729 $as_echo_n "checking whether the C compiler works... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3736 for ac_file in $ac_files
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745 if { { ac_try="$ac_link_default"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3761 for ac_file in $ac_files ''
3763 test -f "$ac_file" || continue
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3768 # We found the default executable, but exeext='' is most
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3786 test "$ac_cv_exeext" = no && ac_cv_exeext=
3791 if test -z "$ac_file"; then :
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error 77 "C compiler cannot create executables
3800 See \`config.log' for more details" "$LINENO" 5; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3806 $as_echo_n "checking for C compiler default output file name... " >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808 $as_echo "$ac_file" >&6; }
3809 ac_exeext=$ac_cv_exeext
3811 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814 $as_echo_n "checking for suffix of executables... " >&6; }
3815 if { { ac_try="$ac_link"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_link") 2>&5
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3828 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 for ac_file in conftest.exe conftest conftest.*; do
3831 test -f "$ac_file" || continue
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 rm -f conftest conftest$ac_cv_exeext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3847 $as_echo "$ac_cv_exeext" >&6; }
3849 rm -f conftest.$ac_ext
3850 EXEEXT=$ac_cv_exeext
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 @%:@include <stdio.h>
3858 FILE *f = fopen ("conftest.out", "w");
3859 return ferror (f) || fclose (f) != 0;
3865 ac_clean_files="$ac_clean_files conftest.out"
3866 # Check that the compiler produces executables we can run. If not, either
3867 # the compiler is broken, or we cross compile.
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3869 $as_echo_n "checking whether we are cross compiling... " >&6; }
3870 if test "$cross_compiling" != yes; then
3871 { { ac_try="$ac_link"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_link") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }
3882 if { ac_try='./conftest$ac_cv_exeext'
3883 { { case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_try") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; }; then
3895 if test "$cross_compiling" = maybe; then
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "cannot run C compiled programs.
3901 If you meant to cross compile, use \`--host'.
3902 See \`config.log' for more details" "$LINENO" 5; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3909 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912 $as_echo_n "checking for suffix of object files... " >&6; }
3913 if ${ac_cv_objext+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 rm -f conftest.o conftest.obj
3928 if { { ac_try="$ac_compile"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compile") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 for ac_file in conftest.o conftest.obj conftest.*; do
3940 test -f "$ac_file" || continue;
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error $? "cannot compute suffix of object files: cannot compile
3954 See \`config.log' for more details" "$LINENO" 5; }
3956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 $as_echo "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964 if ${ac_cv_c_compiler_gnu+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992 if test $ac_compiler_gnu = yes; then
3997 ac_test_CFLAGS=${CFLAGS+set}
3998 ac_save_CFLAGS=$CFLAGS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4001 if ${ac_cv_prog_cc_g+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 ac_save_c_werror_flag=$ac_c_werror_flag
4005 ac_c_werror_flag=yes
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061 $as_echo "$ac_cv_prog_cc_g" >&6; }
4062 if test "$ac_test_CFLAGS" = set; then
4063 CFLAGS=$ac_save_CFLAGS
4064 elif test $ac_cv_prog_cc_g = yes; then
4065 if test "$GCC" = yes; then
4071 if test "$GCC" = yes; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079 if ${ac_cv_prog_cc_c89+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_cv_prog_cc_c89=no
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 #include <sys/types.h>
4089 #include <sys/stat.h>
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4104 s = g (p, va_arg (v,int));
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 rm -f conftest.$ac_ext
4152 case "x$ac_cv_prog_cc_c89" in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 DEPDIR="${am__leading_dot}deps"
4175 ac_config_commands="$ac_config_commands depfiles"
4178 am_make=${MAKE-make}
4179 cat > confinc << 'END'
4181 @echo this is the am__doit target
4184 # If we don't find an include directive, just comment out the code.
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4186 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4190 # First try GNU make style include.
4191 echo "include confinc" > confmf
4192 # Ignore all kinds of additional output from `make'.
4193 case `$am_make -s -f confmf 2> /dev/null` in #(
4194 *the\ am__doit\ target*)
4200 # Now try BSD make style include.
4201 if test "$am__include" = "#"; then
4202 echo '.include "confinc"' > confmf
4203 case `$am_make -s -f confmf 2> /dev/null` in #(
4204 *the\ am__doit\ target*)
4205 am__include=.include
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4214 $as_echo "$_am_result" >&6; }
4215 rm -f confinc confmf
4217 @%:@ Check whether --enable-dependency-tracking was given.
4218 if test "${enable_dependency_tracking+set}" = set; then :
4219 enableval=$enable_dependency_tracking;
4222 if test "x$enable_dependency_tracking" != xno; then
4223 am_depcomp="$ac_aux_dir/depcomp"
4227 if test "x$enable_dependency_tracking" != xno; then
4237 depcc="$CC" am_compiler_list=
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4240 $as_echo_n "checking dependency style of $depcc... " >&6; }
4241 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4245 # We make a subdir and do the tests there. Otherwise we can end up
4246 # making bogus files that we don't know about and never remove. For
4247 # instance it was reported that on HP-UX the gcc test will end up
4248 # making a dummy file named `D' -- because `-MD' means `put the output
4252 # Copy depcomp to subdir because otherwise we won't find it if we're
4253 # using a relative directory.
4254 cp "$am_depcomp" conftest.dir
4256 # We will build objects and dependencies in a subdirectory because
4257 # it helps to detect inapplicable dependency modes. For instance
4258 # both Tru64's cc and ICC support -MD to output dependencies as a
4259 # side effect of compilation, but ICC will put the dependencies in
4260 # the current directory while Tru64 will put them in the object
4264 am_cv_CC_dependencies_compiler_type=none
4265 if test "$am_compiler_list" = ""; then
4266 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269 case " $depcc " in #(
4270 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273 for depmode in $am_compiler_list; do
4274 # Setup a source with many dependencies, because some compilers
4275 # like to wrap large dependency lists on column 80 (with \), and
4276 # we should not choose a depcomp mode which is confused by this.
4278 # We need to recreate these files for each test, as the compiler may
4279 # overwrite some of them when testing with obscure command lines.
4280 # This happens at least with the AIX C compiler.
4282 for i in 1 2 3 4 5 6; do
4283 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4284 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4285 # Solaris 8's {/usr,}/bin/sh.
4286 touch sub/conftst$i.h
4288 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4291 # mode. It turns out that the SunPro C++ compiler does not properly
4292 # handle `-M -o', and we need to detect this. Also, some Intel
4293 # versions had trouble with output in subdirs
4294 am__obj=sub/conftest.${OBJEXT-o}
4295 am__minus_obj="-o $am__obj"
4298 # This depmode causes a compiler race in universal mode.
4299 test "$am__universal" = false || continue
4302 # after this tag, mechanisms are not by side-effect, so they'll
4303 # only be used when explicitly requested
4304 if test "x$enable_dependency_tracking" = xyes; then
4310 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4311 # This compiler won't grok `-c -o', but also, the minuso test has
4312 # not run yet. These depmodes are late enough in the game, and
4313 # so weak that their functioning should not be impacted.
4314 am__obj=conftest.${OBJEXT-o}
4319 if depmode=$depmode \
4320 source=sub/conftest.c object=$am__obj \
4321 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4322 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4323 >/dev/null 2>conftest.err &&
4324 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4325 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4328 # icc doesn't choke on unknown options, it will just issue warnings
4329 # or remarks (even with -Werror). So we grep stderr for any message
4330 # that says an option was ignored or not supported.
4331 # When given -MP, icc 7.0 and 7.1 complain thusly:
4332 # icc: Command line warning: ignoring option '-M'; no argument required
4333 # The diagnosis changed in icc 8.0:
4334 # icc: Command line remark: option '-MP' not supported
4335 if (grep 'ignoring option' conftest.err ||
4336 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4337 am_cv_CC_dependencies_compiler_type=$depmode
4346 am_cv_CC_dependencies_compiler_type=none
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4352 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355 test "x$enable_dependency_tracking" != xno \
4356 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4358 am__fastdepCC_FALSE='#'
4360 am__fastdepCC_TRUE='#'
4361 am__fastdepCC_FALSE=
4366 ac_cpp='$CXXCPP $CPPFLAGS'
4367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4370 if test -z "$CXX"; then
4371 if test -n "$CCC"; then
4374 if test -n "$ac_tool_prefix"; then
4375 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_CXX+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$CXX"; then
4385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 if test -n "$CXX"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4407 $as_echo "$CXX" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$CXX" && break
4417 if test -z "$CXX"; then
4419 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$ac_ct_CXX"; then
4429 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_ac_ct_CXX="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4449 if test -n "$ac_ct_CXX"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4451 $as_echo "$ac_ct_CXX" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$ac_ct_CXX" && break
4461 if test "x$ac_ct_CXX" = x; then
4464 case $cross_compiling:$ac_tool_warned in
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4476 # Provide some information about the compiler.
4477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4480 for ac_option in --version -v -V -qversion; do
4481 { { ac_try="$ac_compiler $ac_option >&5"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4490 if test -s conftest.err; then
4492 ... rest of stderr output deleted ...
4493 10q' conftest.err >conftest.er1
4494 cat conftest.er1 >&5
4496 rm -f conftest.er1 conftest.err
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4502 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4503 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4530 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4531 if test $ac_compiler_gnu = yes; then
4536 ac_test_CXXFLAGS=${CXXFLAGS+set}
4537 ac_save_CXXFLAGS=$CXXFLAGS
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4539 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4540 if ${ac_cv_prog_cxx_g+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4544 ac_cxx_werror_flag=yes
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4558 if ac_fn_cxx_try_compile "$LINENO"; then :
4559 ac_cv_prog_cxx_g=yes
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590 ac_cv_prog_cxx_g=yes
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4600 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4601 if test "$ac_test_CXXFLAGS" = set; then
4602 CXXFLAGS=$ac_save_CXXFLAGS
4603 elif test $ac_cv_prog_cxx_g = yes; then
4604 if test "$GXX" = yes; then
4610 if test "$GXX" = yes; then
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 depcc="$CXX" am_compiler_list=
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4625 $as_echo_n "checking dependency style of $depcc... " >&6; }
4626 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630 # We make a subdir and do the tests there. Otherwise we can end up
4631 # making bogus files that we don't know about and never remove. For
4632 # instance it was reported that on HP-UX the gcc test will end up
4633 # making a dummy file named `D' -- because `-MD' means `put the output
4637 # Copy depcomp to subdir because otherwise we won't find it if we're
4638 # using a relative directory.
4639 cp "$am_depcomp" conftest.dir
4641 # We will build objects and dependencies in a subdirectory because
4642 # it helps to detect inapplicable dependency modes. For instance
4643 # both Tru64's cc and ICC support -MD to output dependencies as a
4644 # side effect of compilation, but ICC will put the dependencies in
4645 # the current directory while Tru64 will put them in the object
4649 am_cv_CXX_dependencies_compiler_type=none
4650 if test "$am_compiler_list" = ""; then
4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4654 case " $depcc " in #(
4655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670 # Solaris 8's {/usr,}/bin/sh.
4671 touch sub/conftst$i.h
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4676 # mode. It turns out that the SunPro C++ compiler does not properly
4677 # handle `-M -o', and we need to detect this. Also, some Intel
4678 # versions had trouble with output in subdirs
4679 am__obj=sub/conftest.${OBJEXT-o}
4680 am__minus_obj="-o $am__obj"
4683 # This depmode causes a compiler race in universal mode.
4684 test "$am__universal" = false || continue
4687 # after this tag, mechanisms are not by side-effect, so they'll
4688 # only be used when explicitly requested
4689 if test "x$enable_dependency_tracking" = xyes; then
4695 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696 # This compiler won't grok `-c -o', but also, the minuso test has
4697 # not run yet. These depmodes are late enough in the game, and
4698 # so weak that their functioning should not be impacted.
4699 am__obj=conftest.${OBJEXT-o}
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=$am__obj \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713 # icc doesn't choke on unknown options, it will just issue warnings
4714 # or remarks (even with -Werror). So we grep stderr for any message
4715 # that says an option was ignored or not supported.
4716 # When given -MP, icc 7.0 and 7.1 complain thusly:
4717 # icc: Command line warning: ignoring option '-M'; no argument required
4718 # The diagnosis changed in icc 8.0:
4719 # icc: Command line remark: option '-MP' not supported
4720 if (grep 'ignoring option' conftest.err ||
4721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722 am_cv_CXX_dependencies_compiler_type=$depmode
4731 am_cv_CXX_dependencies_compiler_type=none
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4736 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4737 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4740 test "x$enable_dependency_tracking" != xno \
4741 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4742 am__fastdepCXX_TRUE=
4743 am__fastdepCXX_FALSE='#'
4745 am__fastdepCXX_TRUE='#'
4746 am__fastdepCXX_FALSE=
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4755 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 cat >conftest.make <<\_ACEOF
4761 @echo '@@@%%%=$(MAKE)=@@@%%%'
4763 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4766 eval ac_cv_prog_make_${ac_make}_set=yes;;
4768 eval ac_cv_prog_make_${ac_make}_set=no;;
4772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774 $as_echo "yes" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 SET_MAKE="MAKE=${MAKE-make}"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4785 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4790 macro_version='2.4.2'
4791 macro_revision='1.3337'
4805 ltmain="$ac_aux_dir/ltmain.sh"
4807 # Backslashify metacharacters that are still active within
4808 # double-quoted strings.
4809 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4811 # Same as above, but do not quote variable references.
4812 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4814 # Sed substitution to delay expansion of an escaped shell variable in a
4815 # double_quote_subst'ed string.
4816 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4818 # Sed substitution to delay expansion of an escaped single quote.
4819 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4821 # Sed substitution to avoid accidental globbing in evaled expressions
4822 no_glob_subst='s/\*/\\\*/g'
4824 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4826 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4829 $as_echo_n "checking how to print strings... " >&6; }
4830 # Test print first, because it will be a builtin if present.
4831 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4832 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4834 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4837 # Use this function as a fallback that always works.
4838 func_fallback_echo ()
4840 eval 'cat <<_LTECHO_EOF
4844 ECHO='func_fallback_echo'
4847 # func_echo_all arg...
4848 # Invoke $ECHO with all args, space-separated.
4855 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4856 $as_echo "printf" >&6; } ;;
4857 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4858 $as_echo "print -r" >&6; } ;;
4859 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4860 $as_echo "cat" >&6; } ;;
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4877 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4878 if ${ac_cv_path_SED+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4882 for ac_i in 1 2 3 4 5 6 7; do
4883 ac_script="$ac_script$as_nl$ac_script"
4885 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4886 { ac_script=; unset ac_script;}
4887 if test -z "$SED"; then
4888 ac_path_SED_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_prog in sed gsed; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4898 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4899 # Check for GNU ac_path_SED and select it if it is found.
4900 # Check for GNU $ac_path_SED
4901 case `"$ac_path_SED" --version 2>&1` in
4903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4906 $as_echo_n 0123456789 >"conftest.in"
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 $as_echo '' >> "conftest.nl"
4913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_SED_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_SED="$ac_path_SED"
4919 ac_path_SED_max=$ac_count
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 $ac_path_SED_found && break 3
4932 if test -z "$ac_cv_path_SED"; then
4933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941 $as_echo "$ac_cv_path_SED" >&6; }
4942 SED="$ac_cv_path_SED"
4945 test -z "$SED" && SED=sed
4946 Xsed="$SED -e 1s/^X//"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4959 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4960 if ${ac_cv_path_GREP+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -z "$GREP"; then
4964 ac_path_GREP_found=false
4965 # Loop through the user's path and test for each of PROGNAME-LIST
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4970 test -z "$as_dir" && as_dir=.
4971 for ac_prog in grep ggrep; do
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4974 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4975 # Check for GNU ac_path_GREP and select it if it is found.
4976 # Check for GNU $ac_path_GREP
4977 case `"$ac_path_GREP" --version 2>&1` in
4979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4982 $as_echo_n 0123456789 >"conftest.in"
4985 cat "conftest.in" "conftest.in" >"conftest.tmp"
4986 mv "conftest.tmp" "conftest.in"
4987 cp "conftest.in" "conftest.nl"
4988 $as_echo 'GREP' >> "conftest.nl"
4989 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991 as_fn_arith $ac_count + 1 && ac_count=$as_val
4992 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4993 # Best one so far, save it but keep looking for a better one
4994 ac_cv_path_GREP="$ac_path_GREP"
4995 ac_path_GREP_max=$ac_count
4997 # 10*(2^10) chars as input seems more than enough
4998 test $ac_count -gt 10 && break
5000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003 $ac_path_GREP_found && break 3
5008 if test -z "$ac_cv_path_GREP"; then
5009 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5012 ac_cv_path_GREP=$GREP
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5017 $as_echo "$ac_cv_path_GREP" >&6; }
5018 GREP="$ac_cv_path_GREP"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5022 $as_echo_n "checking for egrep... " >&6; }
5023 if ${ac_cv_path_EGREP+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5027 then ac_cv_path_EGREP="$GREP -E"
5029 if test -z "$EGREP"; then
5030 ac_path_EGREP_found=false
5031 # Loop through the user's path and test for each of PROGNAME-LIST
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5036 test -z "$as_dir" && as_dir=.
5037 for ac_prog in egrep; do
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5040 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5041 # Check for GNU ac_path_EGREP and select it if it is found.
5042 # Check for GNU $ac_path_EGREP
5043 case `"$ac_path_EGREP" --version 2>&1` in
5045 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5048 $as_echo_n 0123456789 >"conftest.in"
5051 cat "conftest.in" "conftest.in" >"conftest.tmp"
5052 mv "conftest.tmp" "conftest.in"
5053 cp "conftest.in" "conftest.nl"
5054 $as_echo 'EGREP' >> "conftest.nl"
5055 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5057 as_fn_arith $ac_count + 1 && ac_count=$as_val
5058 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5059 # Best one so far, save it but keep looking for a better one
5060 ac_cv_path_EGREP="$ac_path_EGREP"
5061 ac_path_EGREP_max=$ac_count
5063 # 10*(2^10) chars as input seems more than enough
5064 test $ac_count -gt 10 && break
5066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 $ac_path_EGREP_found && break 3
5074 if test -z "$ac_cv_path_EGREP"; then
5075 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5078 ac_cv_path_EGREP=$EGREP
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5084 $as_echo "$ac_cv_path_EGREP" >&6; }
5085 EGREP="$ac_cv_path_EGREP"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5089 $as_echo_n "checking for fgrep... " >&6; }
5090 if ${ac_cv_path_FGREP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5094 then ac_cv_path_FGREP="$GREP -F"
5096 if test -z "$FGREP"; then
5097 ac_path_FGREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in fgrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5108 # Check for GNU ac_path_FGREP and select it if it is found.
5109 # Check for GNU $ac_path_FGREP
5110 case `"$ac_path_FGREP" --version 2>&1` in
5112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5115 $as_echo_n 0123456789 >"conftest.in"
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 $as_echo 'FGREP' >> "conftest.nl"
5122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 as_fn_arith $ac_count + 1 && ac_count=$as_val
5125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_FGREP="$ac_path_FGREP"
5128 ac_path_FGREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 $ac_path_FGREP_found && break 3
5141 if test -z "$ac_cv_path_FGREP"; then
5142 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5145 ac_cv_path_FGREP=$FGREP
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5151 $as_echo "$ac_cv_path_FGREP" >&6; }
5152 FGREP="$ac_cv_path_FGREP"
5155 test -z "$GREP" && GREP=grep
5175 @%:@ Check whether --with-gnu-ld was given.
5176 if test "${with_gnu_ld+set}" = set; then :
5177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5183 if test "$GCC" = yes; then
5184 # Check if gcc -print-prog-name=ld gives a path.
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5186 $as_echo_n "checking for ld used by $CC... " >&6; }
5189 # gcc leaves a trailing carriage return which upsets mingw
5190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5195 # Accept absolute paths.
5197 re_direlt='/[^/][^/]*/\.\./'
5198 # Canonicalize the pathname of ld
5199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5203 test -z "$LD" && LD="$ac_prog"
5206 # If it fails, then pretend we aren't using GCC.
5210 # If it is relative, then search for the first ld in PATH.
5214 elif test "$with_gnu_ld" = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5216 $as_echo_n "checking for GNU ld... " >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5219 $as_echo_n "checking for non-GNU ld... " >&6; }
5221 if ${lt_cv_path_LD+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -z "$LD"; then
5225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226 for ac_dir in $PATH; do
5228 test -z "$ac_dir" && ac_dir=.
5229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230 lt_cv_path_LD="$ac_dir/$ac_prog"
5231 # Check to see if the program is GNU ld. I'd rather use --version,
5232 # but apparently some variants of GNU ld only accept -v.
5233 # Break only if it was the GNU/non-GNU ld that we prefer.
5234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235 *GNU* | *'with BFD'*)
5236 test "$with_gnu_ld" != no && break
5239 test "$with_gnu_ld" != yes && break
5246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5251 if test -n "$LD"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5253 $as_echo "$LD" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5261 if ${lt_cv_prog_gnu_ld+:} false; then :
5262 $as_echo_n "(cached) " >&6
5264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5265 case `$LD -v 2>&1 </dev/null` in
5266 *GNU* | *'with BFD'*)
5267 lt_cv_prog_gnu_ld=yes
5270 lt_cv_prog_gnu_ld=no
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5276 with_gnu_ld=$lt_cv_prog_gnu_ld
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5288 if ${lt_cv_path_NM+:} false; then :
5289 $as_echo_n "(cached) " >&6
5291 if test -n "$NM"; then
5292 # Let the user override the test.
5295 lt_nm_to_check="${ac_tool_prefix}nm"
5296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5297 lt_nm_to_check="$lt_nm_to_check nm"
5299 for lt_tmp_nm in $lt_nm_to_check; do
5300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5303 test -z "$ac_dir" && ac_dir=.
5304 tmp_nm="$ac_dir/$lt_tmp_nm"
5305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5306 # Check to see if the nm accepts a BSD-compat flag.
5307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5308 # nm: unknown option "B" ignored
5309 # Tru64's nm complains that /dev/null is an invalid object file
5310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5311 */dev/null* | *'Invalid file or object type'*)
5312 lt_cv_path_NM="$tmp_nm -B"
5316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5318 lt_cv_path_NM="$tmp_nm -p"
5322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5323 continue # so that we can try to find one that supports BSD flags
5332 : ${lt_cv_path_NM=no}
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5336 $as_echo "$lt_cv_path_NM" >&6; }
5337 if test "$lt_cv_path_NM" != "no"; then
5340 # Didn't find any BSD compatible name lister, look for dumpbin.
5341 if test -n "$DUMPBIN"; then :
5342 # Let the user override the test.
5344 if test -n "$ac_tool_prefix"; then
5345 for ac_prog in dumpbin "link -dump"
5347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_DUMPBIN+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 if test -n "$DUMPBIN"; then
5355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 DUMPBIN=$ac_cv_prog_DUMPBIN
5375 if test -n "$DUMPBIN"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5377 $as_echo "$DUMPBIN" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 test -n "$DUMPBIN" && break
5387 if test -z "$DUMPBIN"; then
5388 ac_ct_DUMPBIN=$DUMPBIN
5389 for ac_prog in dumpbin "link -dump"
5391 # Extract the first word of "$ac_prog", so it can be a program name with args.
5392 set dummy $ac_prog; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_DUMPBIN"; then
5399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5419 if test -n "$ac_ct_DUMPBIN"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5421 $as_echo "$ac_ct_DUMPBIN" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5428 test -n "$ac_ct_DUMPBIN" && break
5431 if test "x$ac_ct_DUMPBIN" = x; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5440 DUMPBIN=$ac_ct_DUMPBIN
5444 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5446 DUMPBIN="$DUMPBIN -symbols"
5454 if test "$DUMPBIN" != ":"; then
5458 test -z "$NM" && NM=nm
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5467 if ${lt_cv_nm_interface+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 lt_cv_nm_interface="BSD nm"
5471 echo "int some_variable = 0;" > conftest.$ac_ext
5472 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5473 (eval "$ac_compile" 2>conftest.err)
5474 cat conftest.err >&5
5475 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5476 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5477 cat conftest.err >&5
5478 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5479 cat conftest.out >&5
5480 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5481 lt_cv_nm_interface="MS dumpbin"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5486 $as_echo "$lt_cv_nm_interface" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5489 $as_echo_n "checking whether ln -s works... " >&6; }
5491 if test "$LN_S" = "ln -s"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5496 $as_echo "no, using $LN_S" >&6; }
5499 # find the maximum length of command line arguments
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5501 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5502 if ${lt_cv_sys_max_cmd_len+:} false; then :
5503 $as_echo_n "(cached) " >&6
5510 # On DJGPP, this test can blow up pretty badly due to problems in libc
5511 # (any single argument exceeding 2000 bytes causes a buffer overrun
5512 # during glob expansion). Even if it were fixed, the result of this
5513 # check would be larger than it should be.
5514 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5518 # Under GNU Hurd, this test is not required because there is
5519 # no limit to the length of command line arguments.
5520 # Libtool will interpret -1 as no limit whatsoever
5521 lt_cv_sys_max_cmd_len=-1;
5524 cygwin* | mingw* | cegcc*)
5525 # On Win9x/ME, this test blows up -- it succeeds, but takes
5526 # about 5 minutes as the teststring grows exponentially.
5527 # Worse, since 9x/ME are not pre-emptively multitasking,
5528 # you end up with a "frozen" computer, even though with patience
5529 # the test eventually succeeds (with a max line length of 256k).
5530 # Instead, let's just punt: use the minimum linelength reported by
5531 # all of the supported platforms: 8192 (on NT/2K/XP).
5532 lt_cv_sys_max_cmd_len=8192;
5536 # On MiNT this can take a long time and run out of memory.
5537 lt_cv_sys_max_cmd_len=8192;
5541 # On AmigaOS with pdksh, this test takes hours, literally.
5542 # So we just punt and use a minimum line length of 8192.
5543 lt_cv_sys_max_cmd_len=8192;
5546 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5547 # This has been around since 386BSD, at least. Likely further.
5548 if test -x /sbin/sysctl; then
5549 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5550 elif test -x /usr/sbin/sysctl; then
5551 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5553 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5555 # And add a safety zone
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5561 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5562 lt_cv_sys_max_cmd_len=196608
5566 # The test takes a long time on OS/2.
5567 lt_cv_sys_max_cmd_len=8192
5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573 # nice to cause kernel panics so lets avoid the loop below.
5574 # First set a reasonable default.
5575 lt_cv_sys_max_cmd_len=16384
5577 if test -x /sbin/sysconfig; then
5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5584 lt_cv_sys_max_cmd_len=102400
5586 sysv5* | sco5v6* | sysv4.2uw2*)
5587 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5588 if test -n "$kargmax"; then
5589 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5591 lt_cv_sys_max_cmd_len=32768
5595 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5596 if test -n "$lt_cv_sys_max_cmd_len"; then
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5600 # Make teststring a little bigger before we do anything with it.
5601 # a 1K string should be a reasonable start.
5602 for i in 1 2 3 4 5 6 7 8 ; do
5603 teststring=$teststring$teststring
5605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606 # If test is not a shell built-in, we'll probably end up computing a
5607 # maximum length that is only half of the actual maximum length, but
5609 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5610 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611 test $i != 17 # 1/2 MB should be enough
5614 teststring=$teststring$teststring
5616 # Only check the string length outside the loop.
5617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5619 # Add a significant safety factor because C++ compilers can tack on
5620 # massive amounts of additional arguments before passing them to the
5621 # linker. It appears as though 1/2 is a usable value.
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5629 if test -n $lt_cv_sys_max_cmd_len ; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5648 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5649 # Try some XSI features
5652 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5654 && eval 'test $(( 1 + 1 )) -eq 2 \
5655 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5658 $as_echo "$xsi_shell" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5662 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5664 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5666 && lt_shell_append=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5668 $as_echo "$lt_shell_append" >&6; }
5671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5681 # test EBCDIC or ASCII
5682 case `echo X|tr X '\101'` in
5683 A) # ASCII based system
5684 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5685 lt_SP2NL='tr \040 \012'
5686 lt_NL2SP='tr \015\012 \040\040'
5688 *) # EBCDIC based system
5689 lt_SP2NL='tr \100 \n'
5690 lt_NL2SP='tr \r\n \100\100'
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5703 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5704 if ${lt_cv_to_host_file_cmd+:} false; then :
5705 $as_echo_n "(cached) " >&6
5710 *-*-mingw* ) # actually msys
5711 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5714 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5716 * ) # otherwise, assume *nix
5717 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5723 *-*-mingw* ) # actually msys
5724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5727 lt_cv_to_host_file_cmd=func_convert_file_noop
5729 * ) # otherwise, assume *nix
5730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5734 * ) # unhandled hosts (and "normal" native builds)
5735 lt_cv_to_host_file_cmd=func_convert_file_noop
5741 to_host_file_cmd=$lt_cv_to_host_file_cmd
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5743 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5750 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5751 if ${lt_cv_to_tool_file_cmd+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 #assume ordinary cross tools, or native build.
5755 lt_cv_to_tool_file_cmd=func_convert_file_noop
5759 *-*-mingw* ) # actually msys
5760 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5770 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5778 if ${lt_cv_ld_reload_flag+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 lt_cv_ld_reload_flag='-r'
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5785 reload_flag=$lt_cv_ld_reload_flag
5786 case $reload_flag in
5788 *) reload_flag=" $reload_flag" ;;
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5792 cygwin* | mingw* | pw32* | cegcc*)
5793 if test "$GCC" != yes; then
5798 if test "$GCC" = yes; then
5799 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_OBJDUMP+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$OBJDUMP"; then
5823 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 OBJDUMP=$ac_cv_prog_OBJDUMP
5843 if test -n "$OBJDUMP"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5845 $as_echo "$OBJDUMP" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_OBJDUMP"; then
5854 ac_ct_OBJDUMP=$OBJDUMP
5855 # Extract the first word of "objdump", so it can be a program name with args.
5856 set dummy objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -n "$ac_ct_OBJDUMP"; then
5863 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5883 if test -n "$ac_ct_OBJDUMP"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5885 $as_echo "$ac_ct_OBJDUMP" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_OBJDUMP" = x; then
5894 case $cross_compiling:$ac_tool_warned in
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5900 OBJDUMP=$ac_ct_OBJDUMP
5903 OBJDUMP="$ac_cv_prog_OBJDUMP"
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5918 if ${lt_cv_deplibs_check_method+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [[regex]]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given extended regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5937 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946 lt_cv_file_magic_cmd='/usr/bin/file -L'
5947 lt_cv_file_magic_test_file=/shlib/libc.so
5951 # func_win32_libid is a shell function defined in ltmain.sh
5952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5953 lt_cv_file_magic_cmd='func_win32_libid'
5957 # Base MSYS/MinGW do not provide the 'file' command needed by
5958 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5959 # unless we find 'file', for example because we are cross-compiling.
5960 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5961 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963 lt_cv_file_magic_cmd='func_win32_libid'
5965 # Keep this pattern in sync with the one in func_win32_libid.
5966 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5967 lt_cv_file_magic_cmd='$OBJDUMP -f'
5972 # use the weaker test based on 'objdump'. See mingw*.
5973 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5977 darwin* | rhapsody*)
5978 lt_cv_deplibs_check_method=pass_all
5981 freebsd* | dragonfly*)
5982 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5985 # Not sure whether the presence of OpenBSD here was a mistake.
5986 # Let's accept both of them until this is cleared up.
5987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988 lt_cv_file_magic_cmd=/usr/bin/file
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5993 lt_cv_deplibs_check_method=pass_all
5998 lt_cv_deplibs_check_method=pass_all
6002 lt_cv_deplibs_check_method=pass_all
6005 hpux10.20* | hpux11*)
6006 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6013 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]'
6014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6028 irix5* | irix6* | nonstopux*)
6030 *-32|*"-32 ") libmagic=32-bit;;
6031 *-n32|*"-n32 ") libmagic=N32;;
6032 *-64|*"-64 ") libmagic=64-bit;;
6033 *) libmagic=never-match;;
6035 lt_cv_deplibs_check_method=pass_all
6038 # This must be glibc/ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6040 lt_cv_deplibs_check_method=pass_all
6043 netbsd* | netbsdelf*-gnu)
6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6058 lt_cv_deplibs_check_method=pass_all
6062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069 osf3* | osf4* | osf5*)
6070 lt_cv_deplibs_check_method=pass_all
6074 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_deplibs_check_method=pass_all
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082 lt_cv_deplibs_check_method=pass_all
6086 case $host_vendor in
6088 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]'
6089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6092 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_file_magic_cmd='/bin/file'
6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6099 lt_cv_file_magic_cmd='/bin/file'
6100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101 lt_cv_file_magic_test_file=/lib/libc.so
6104 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6113 lt_cv_deplibs_check_method=pass_all
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6123 if test "$build" = "$host"; then
6126 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6129 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6135 file_magic_cmd=$lt_cv_file_magic_cmd
6136 deplibs_check_method=$lt_cv_deplibs_check_method
6137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_DLLTOOL+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -n "$DLLTOOL"; then
6169 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 DLLTOOL=$ac_cv_prog_DLLTOOL
6189 if test -n "$DLLTOOL"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6191 $as_echo "$DLLTOOL" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6199 if test -z "$ac_cv_prog_DLLTOOL"; then
6200 ac_ct_DLLTOOL=$DLLTOOL
6201 # Extract the first word of "dlltool", so it can be a program name with args.
6202 set dummy dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$ac_ct_DLLTOOL"; then
6209 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6229 if test -n "$ac_ct_DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6231 $as_echo "$ac_ct_DLLTOOL" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6237 if test "x$ac_ct_DLLTOOL" = x; then
6240 case $cross_compiling:$ac_tool_warned in
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6246 DLLTOOL=$ac_ct_DLLTOOL
6249 DLLTOOL="$ac_cv_prog_DLLTOOL"
6252 test -z "$DLLTOOL" && DLLTOOL=dlltool
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6264 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6265 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 lt_cv_sharedlib_from_linklib_cmd='unknown'
6271 cygwin* | mingw* | pw32* | cegcc*)
6272 # two different shell functions defined in ltmain.sh
6273 # decide which to use based on capabilities of $DLLTOOL
6274 case `$DLLTOOL --help 2>&1` in
6275 *--identify-strict*)
6276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6284 # fallback: assume linklib IS sharedlib
6285 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6291 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6292 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6293 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6302 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AR+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$AR"; then
6313 ac_cv_prog_AR="$AR" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 if test -n "$AR"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335 $as_echo "$AR" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6342 test -n "$AR" && break
6345 if test -z "$AR"; then
6349 # Extract the first word of "$ac_prog", so it can be a program name with args.
6350 set dummy $ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_AR="$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379 $as_echo "$ac_ct_AR" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6386 test -n "$ac_ct_AR" && break
6389 if test "x$ac_ct_AR" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6416 $as_echo_n "checking for archiver @FILE support... " >&6; }
6417 if ${lt_cv_ar_at_file+:} false; then :
6418 $as_echo_n "(cached) " >&6
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 echo conftest.$ac_objext > conftest.lst
6434 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6436 (eval $lt_ar_try) 2>&5
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }
6440 if test "$ac_status" -eq 0; then
6441 # Ensure the archiver fails upon bogus file names.
6442 rm -f conftest.$ac_objext libconftest.a
6443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444 (eval $lt_ar_try) 2>&5
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448 if test "$ac_status" -ne 0; then
6452 rm -f conftest.* libconftest.a
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6459 $as_echo "$lt_cv_ar_at_file" >&6; }
6461 if test "x$lt_cv_ar_at_file" = xno; then
6464 archiver_list_spec=$lt_cv_ar_at_file
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}strip; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_STRIP+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$STRIP"; then
6482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 STRIP=$ac_cv_prog_STRIP
6502 if test -n "$STRIP"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6504 $as_echo "$STRIP" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6512 if test -z "$ac_cv_prog_STRIP"; then
6514 # Extract the first word of "strip", so it can be a program name with args.
6515 set dummy strip; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$ac_ct_STRIP"; then
6522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_ac_ct_STRIP="strip"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6542 if test -n "$ac_ct_STRIP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6544 $as_echo "$ac_ct_STRIP" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6550 if test "x$ac_ct_STRIP" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6562 STRIP="$ac_cv_prog_STRIP"
6565 test -z "$STRIP" && STRIP=:
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_RANLIB+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$RANLIB"; then
6581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6603 $as_echo "$RANLIB" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612 ac_ct_RANLIB=$RANLIB
6613 # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_RANLIB"; then
6621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_RANLIB="ranlib"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6643 $as_echo "$ac_ct_RANLIB" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_RANLIB" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6658 RANLIB=$ac_ct_RANLIB
6661 RANLIB="$ac_cv_prog_RANLIB"
6664 test -z "$RANLIB" && RANLIB=:
6671 # Determine commands to create old-style static archives.
6672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6673 old_postinstall_cmds='chmod 644 $oldlib'
6674 old_postuninstall_cmds=
6676 if test -n "$RANLIB"; then
6679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6682 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6690 lock_old_archive_extraction=yes ;;
6692 lock_old_archive_extraction=no ;;
6733 # If no C compiler was specified, use CC.
6736 # If no C compiler flags were specified, use CFLAGS.
6737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6739 # Allow CC to be a program name with arguments.
6743 # Check for command to grab the raw symbol name followed by C symbol from nm.
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6745 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6746 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6747 $as_echo_n "(cached) " >&6
6750 # These are sane defaults that work on at least a few old systems.
6751 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6753 # Character class describing NM global symbol codes.
6754 symcode='[BCDEGRST]'
6756 # Regexp to match symbols that can be accessed directly from C.
6757 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6759 # Define system-specific variables.
6764 cygwin* | mingw* | pw32* | cegcc*)
6765 symcode='[ABCDGISTW]'
6768 if test "$host_cpu" = ia64; then
6769 symcode='[ABCDEGRST]'
6773 symcode='[BCDEGRST]'
6776 symcode='[BCDEGQRST]'
6787 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798 symcode='[ABCDGIRSTW]' ;;
6801 # Transform an extracted symbol line into a proper C declaration.
6802 # Some systems (esp. on ia64) link data and code symbols differently,
6803 # so use this general approach.
6804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6806 # Transform an extracted symbol line into symbol name and symbol address
6807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6808 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'"
6810 # Handle CRLF in mingw tool chain
6814 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6818 # Try without a prefix underscore, then with it.
6819 for ac_symprfx in "" "_"; do
6821 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6822 symxfrm="\\1 $ac_symprfx\\2 \\2"
6824 # Write the raw and C identifiers.
6825 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6826 # Fake it for dumpbin and say T for any non-static function
6827 # and D for any global variable.
6828 # Also find C++ and __fastcall symbols from MSVC++,
6829 # which start with @ or ?.
6830 lt_cv_sys_global_symbol_pipe="$AWK '"\
6831 " {last_section=section; section=\$ 3};"\
6832 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6833 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6834 " \$ 0!~/External *\|/{next};"\
6835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6836 " {if(hide[section]) next};"\
6837 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6838 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6839 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6840 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6841 " ' prfx=^$ac_symprfx"
6843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6845 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6847 # Check to see that the pipe works correctly.
6851 cat > conftest.$ac_ext <<_LT_EOF
6856 void nm_test_func(void);
6857 void nm_test_func(void){}
6861 int main(){nm_test_var='a';nm_test_func();return(0);}
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 # Now try to grab the symbols.
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6872 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; } && test -s "$nlist"; then
6876 # Try sorting and uniquifying the output.
6877 if sort "$nlist" | uniq > "$nlist"T; then
6878 mv -f "$nlist"T "$nlist"
6883 # Make sure that we snagged all the symbols we need.
6884 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6885 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6886 cat <<_LT_EOF > conftest.$ac_ext
6887 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6888 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6889 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6890 relocations are performed -- see ld's documentation on pseudo-relocs. */
6891 # define LT@&t@_DLSYM_CONST
6892 #elif defined(__osf__)
6893 /* This system does not cope well with relocations in const data. */
6894 # define LT@&t@_DLSYM_CONST
6896 # define LT@&t@_DLSYM_CONST const
6904 # Now generate the symbol file.
6905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6907 cat <<_LT_EOF >> conftest.$ac_ext
6909 /* The mapping between symbol names and symbols. */
6910 LT@&t@_DLSYM_CONST struct {
6914 lt__PROGRAM__LTX_preloaded_symbols[] =
6916 { "@PROGRAM@", (void *) 0 },
6918 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6919 cat <<\_LT_EOF >> conftest.$ac_ext
6923 /* This works around a problem in FreeBSD linker */
6924 #ifdef FREEBSD_WORKAROUND
6925 static const void *lt_preloaded_setup() {
6926 return lt__PROGRAM__LTX_preloaded_symbols;
6934 # Now try linking the two files.
6935 mv conftest.$ac_objext conftstm.$ac_objext
6936 lt_globsym_save_LIBS=$LIBS
6937 lt_globsym_save_CFLAGS=$CFLAGS
6938 LIBS="conftstm.$ac_objext"
6939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6941 (eval $ac_link) 2>&5
6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6947 LIBS=$lt_globsym_save_LIBS
6948 CFLAGS=$lt_globsym_save_CFLAGS
6950 echo "cannot find nm_test_func in $nlist" >&5
6953 echo "cannot find nm_test_var in $nlist" >&5
6956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6959 echo "$progname: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 rm -rf conftest* conftst*
6964 # Do not use the global_symbol_pipe unless it works.
6965 if test "$pipe_works" = yes; then
6968 lt_cv_sys_global_symbol_pipe=
6974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6975 lt_cv_sys_global_symbol_to_cdecl=
6977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6979 $as_echo "failed" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6982 $as_echo "ok" >&6; }
6985 # Response file support.
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987 nm_file_list_spec='@'
6988 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6989 nm_file_list_spec='@'
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7019 $as_echo_n "checking for sysroot... " >&6; }
7021 @%:@ Check whether --with-sysroot was given.
7022 if test "${with_sysroot+set}" = set; then :
7023 withval=$with_sysroot;
7030 case ${with_sysroot} in #(
7032 if test "$GCC" = yes; then
7033 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7037 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7043 $as_echo "${with_sysroot}" >&6; }
7044 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7049 $as_echo "${lt_sysroot:-no}" >&6; }
7055 @%:@ Check whether --enable-libtool-lock was given.
7056 if test "${enable_libtool_lock+set}" = set; then :
7057 enableval=$enable_libtool_lock;
7060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7062 # Some flags need to be propagated to the compiler or linker for good
7066 # Find out which ABI we are using.
7067 echo 'int i;' > conftest.$ac_ext
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069 (eval $ac_compile) 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 case `/usr/bin/file conftest.$ac_objext` in
7085 # Find out which ABI we are using.
7086 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 if test "$lt_cv_prog_gnu_ld" = yes; then
7093 case `/usr/bin/file conftest.$ac_objext` in
7095 LD="${LD-ld} -melf32bsmip"
7098 LD="${LD-ld} -melf32bmipn32"
7101 LD="${LD-ld} -melf64bmip"
7105 case `/usr/bin/file conftest.$ac_objext` in
7121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7123 # Find out which ABI we are using.
7124 echo 'int i;' > conftest.$ac_ext
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126 (eval $ac_compile) 2>&5
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; }; then
7130 case `/usr/bin/file conftest.o` in
7133 x86_64-*kfreebsd*-gnu)
7134 LD="${LD-ld} -m elf_i386_fbsd"
7137 LD="${LD-ld} -m elf_i386"
7139 ppc64-*linux*|powerpc64-*linux*)
7140 LD="${LD-ld} -m elf32ppclinux"
7143 LD="${LD-ld} -m elf_s390"
7146 LD="${LD-ld} -m elf32_sparc"
7152 x86_64-*kfreebsd*-gnu)
7153 LD="${LD-ld} -m elf_x86_64_fbsd"
7156 LD="${LD-ld} -m elf_x86_64"
7158 ppc*-*linux*|powerpc*-*linux*)
7159 LD="${LD-ld} -m elf64ppc"
7161 s390*-*linux*|s390*-*tpf*)
7162 LD="${LD-ld} -m elf64_s390"
7165 LD="${LD-ld} -m elf64_sparc"
7175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7176 SAVE_CFLAGS="$CFLAGS"
7177 CFLAGS="$CFLAGS -belf"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7179 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7180 if ${lt_cv_cc_needs_belf+:} false; then :
7181 $as_echo_n "(cached) " >&6
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 lt_cv_cc_needs_belf=yes
7203 lt_cv_cc_needs_belf=no
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7218 CFLAGS="$SAVE_CFLAGS"
7222 # Find out which ABI we are using.
7223 echo 'int i;' > conftest.$ac_ext
7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225 (eval $ac_compile) 2>&5
7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; }; then
7229 case `/usr/bin/file conftest.o` in
7231 case $lt_cv_prog_gnu_ld in
7235 LD="${LD-ld} -m elf_x86_64"
7238 LD="${LD-ld} -m elf64_sparc"
7241 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7242 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7247 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7259 need_locks="$enable_libtool_lock"
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}mt; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$MANIFEST_TOOL"; then
7270 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7290 if test -n "$MANIFEST_TOOL"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7292 $as_echo "$MANIFEST_TOOL" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7300 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7301 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7302 # Extract the first word of "mt", so it can be a program name with args.
7303 set dummy mt; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$ac_ct_MANIFEST_TOOL"; then
7310 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7330 if test -n "$ac_ct_MANIFEST_TOOL"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7332 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7338 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7341 case $cross_compiling:$ac_tool_warned in
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7347 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7350 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7353 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7355 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7356 if ${lt_cv_path_mainfest_tool+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 lt_cv_path_mainfest_tool=no
7360 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7361 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7362 cat conftest.err >&5
7363 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7364 lt_cv_path_mainfest_tool=yes
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7369 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7370 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7380 rhapsody* | darwin*)
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$DSYMUTIL"; then
7390 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7410 if test -n "$DSYMUTIL"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7412 $as_echo "$DSYMUTIL" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7420 if test -z "$ac_cv_prog_DSYMUTIL"; then
7421 ac_ct_DSYMUTIL=$DSYMUTIL
7422 # Extract the first word of "dsymutil", so it can be a program name with args.
7423 set dummy dsymutil; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 if test -n "$ac_ct_DSYMUTIL"; then
7430 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7450 if test -n "$ac_ct_DSYMUTIL"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7452 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7458 if test "x$ac_ct_DSYMUTIL" = x; then
7461 case $cross_compiling:$ac_tool_warned in
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7467 DSYMUTIL=$ac_ct_DSYMUTIL
7470 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_NMEDIT+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$NMEDIT"; then
7482 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 NMEDIT=$ac_cv_prog_NMEDIT
7502 if test -n "$NMEDIT"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7504 $as_echo "$NMEDIT" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_NMEDIT"; then
7513 ac_ct_NMEDIT=$NMEDIT
7514 # Extract the first word of "nmedit", so it can be a program name with args.
7515 set dummy nmedit; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_NMEDIT"; then
7522 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7542 if test -n "$ac_ct_NMEDIT"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7544 $as_echo "$ac_ct_NMEDIT" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_NMEDIT" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7559 NMEDIT=$ac_ct_NMEDIT
7562 NMEDIT="$ac_cv_prog_NMEDIT"
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_LIPO+:} false; then :
7571 $as_echo_n "(cached) " >&6
7573 if test -n "$LIPO"; then
7574 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 LIPO=$ac_cv_prog_LIPO
7594 if test -n "$LIPO"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7596 $as_echo "$LIPO" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7604 if test -z "$ac_cv_prog_LIPO"; then
7606 # Extract the first word of "lipo", so it can be a program name with args.
7607 set dummy lipo; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 if test -n "$ac_ct_LIPO"; then
7614 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_ac_ct_LIPO="lipo"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7634 if test -n "$ac_ct_LIPO"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7636 $as_echo "$ac_ct_LIPO" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7642 if test "x$ac_ct_LIPO" = x; then
7645 case $cross_compiling:$ac_tool_warned in
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7654 LIPO="$ac_cv_prog_LIPO"
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}otool; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_OTOOL+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$OTOOL"; then
7666 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 OTOOL=$ac_cv_prog_OTOOL
7686 if test -n "$OTOOL"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7688 $as_echo "$OTOOL" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_OTOOL"; then
7698 # Extract the first word of "otool", so it can be a program name with args.
7699 set dummy otool; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_OTOOL"; then
7706 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_OTOOL="otool"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7726 if test -n "$ac_ct_OTOOL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7728 $as_echo "$ac_ct_OTOOL" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_OTOOL" = x; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7746 OTOOL="$ac_cv_prog_OTOOL"
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_OTOOL64+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$OTOOL64"; then
7758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 OTOOL64=$ac_cv_prog_OTOOL64
7778 if test -n "$OTOOL64"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7780 $as_echo "$OTOOL64" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 if test -z "$ac_cv_prog_OTOOL64"; then
7789 ac_ct_OTOOL64=$OTOOL64
7790 # Extract the first word of "otool64", so it can be a program name with args.
7791 set dummy otool64; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$ac_ct_OTOOL64"; then
7798 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_ac_ct_OTOOL64="otool64"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7818 if test -n "$ac_ct_OTOOL64"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7820 $as_echo "$ac_ct_OTOOL64" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_ct_OTOOL64" = x; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7835 OTOOL64=$ac_ct_OTOOL64
7838 OTOOL64="$ac_cv_prog_OTOOL64"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7868 $as_echo_n "checking for -single_module linker flag... " >&6; }
7869 if ${lt_cv_apple_cc_single_mod+:} false; then :
7870 $as_echo_n "(cached) " >&6
7872 lt_cv_apple_cc_single_mod=no
7873 if test -z "${LT_MULTI_MODULE}"; then
7874 # By default we will add the -single_module flag. You can override
7875 # by either setting the environment variable LT_MULTI_MODULE
7876 # non-empty at configure time, or by adding -multi_module to the
7878 rm -rf libconftest.dylib*
7879 echo "int foo(void){return 1;}" > conftest.c
7880 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7881 -dynamiclib -Wl,-single_module conftest.c" >&5
7882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7885 # If there is a non-empty error log, and "single_module"
7886 # appears in it, assume the flag caused a linker warning
7887 if test -s conftest.err && $GREP single_module conftest.err; then
7888 cat conftest.err >&5
7889 # Otherwise, if the output was created with a 0 exit code from
7890 # the compiler, it worked.
7891 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7892 lt_cv_apple_cc_single_mod=yes
7894 cat conftest.err >&5
7896 rm -rf libconftest.dylib*
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7901 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7905 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7906 $as_echo_n "(cached) " >&6
7908 lt_cv_ld_exported_symbols_list=no
7909 save_LDFLAGS=$LDFLAGS
7910 echo "_main" > conftest.sym
7911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 lt_cv_ld_exported_symbols_list=yes
7926 lt_cv_ld_exported_symbols_list=no
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 LDFLAGS="$save_LDFLAGS"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7934 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7937 $as_echo_n "checking for -force_load linker flag... " >&6; }
7938 if ${lt_cv_ld_force_load+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 lt_cv_ld_force_load=no
7942 cat > conftest.c << _LT_EOF
7943 int forced_loaded() { return 2;}
7945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7947 echo "$AR cru libconftest.a conftest.o" >&5
7948 $AR cru libconftest.a conftest.o 2>&5
7949 echo "$RANLIB libconftest.a" >&5
7950 $RANLIB libconftest.a 2>&5
7951 cat > conftest.c << _LT_EOF
7952 int main() { return 0;}
7954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7957 if test -s conftest.err && $GREP force_load conftest.err; then
7958 cat conftest.err >&5
7959 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7960 lt_cv_ld_force_load=yes
7962 cat conftest.err >&5
7964 rm -f conftest.err libconftest.a conftest conftest.c
7965 rm -rf conftest.dSYM
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7969 $as_echo "$lt_cv_ld_force_load" >&6; }
7971 rhapsody* | darwin1.[012])
7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975 darwin*) # darwin 5.x on
7976 # if running on 10.5 or later, the deployment target defaults
7977 # to the OS version, if on x86, and 10.4, the deployment
7978 # target defaults to 10.4. Don't you love it?
7979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7980 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7985 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7990 _lt_dar_single_mod='$single_module'
7992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7997 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7998 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8012 # On Suns, sometimes $CPP names a directory.
8013 if test -n "$CPP" && test -d "$CPP"; then
8016 if test -z "$CPP"; then
8017 if ${ac_cv_prog_CPP+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 # Double quotes because CPP needs to be expanded
8021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8024 for ac_c_preproc_warn_flag in '' yes
8026 # Use a header file that comes with gcc, so configuring glibc
8027 # with a fresh cross-compiler works.
8028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029 # <limits.h> exists even on freestanding compilers.
8030 # On the NeXT, cc -E runs the code through the compiler's parser,
8031 # not just through cpp. "Syntax error" is here to catch this case.
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8035 @%:@ include <limits.h>
8037 @%:@ include <assert.h>
8041 if ac_fn_c_try_cpp "$LINENO"; then :
8044 # Broken: fails on valid input.
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8049 # OK, works on sane cases. Now check whether nonexistent headers
8050 # can be detected and how.
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 @%:@include <ac_nonexistent.h>
8055 if ac_fn_c_try_cpp "$LINENO"; then :
8056 # Broken: success on invalid input.
8059 # Passes both tests.
8063 rm -f conftest.err conftest.i conftest.$ac_ext
8066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8067 rm -f conftest.i conftest.err conftest.$ac_ext
8068 if $ac_preproc_ok; then :
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8081 $as_echo "$CPP" >&6; }
8083 for ac_c_preproc_warn_flag in '' yes
8085 # Use a header file that comes with gcc, so configuring glibc
8086 # with a fresh cross-compiler works.
8087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 # <limits.h> exists even on freestanding compilers.
8089 # On the NeXT, cc -E runs the code through the compiler's parser,
8090 # not just through cpp. "Syntax error" is here to catch this case.
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8094 @%:@ include <limits.h>
8096 @%:@ include <assert.h>
8100 if ac_fn_c_try_cpp "$LINENO"; then :
8103 # Broken: fails on valid input.
8106 rm -f conftest.err conftest.i conftest.$ac_ext
8108 # OK, works on sane cases. Now check whether nonexistent headers
8109 # can be detected and how.
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 @%:@include <ac_nonexistent.h>
8114 if ac_fn_c_try_cpp "$LINENO"; then :
8115 # Broken: success on invalid input.
8118 # Passes both tests.
8122 rm -f conftest.err conftest.i conftest.$ac_ext
8125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8126 rm -f conftest.i conftest.err conftest.$ac_ext
8127 if $ac_preproc_ok; then :
8130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8133 See \`config.log' for more details" "$LINENO" 5; }
8137 ac_cpp='$CPP $CPPFLAGS'
8138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8144 $as_echo_n "checking for ANSI C header files... " >&6; }
8145 if ${ac_cv_header_stdc+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 ac_cv_header_stdc=yes
8166 ac_cv_header_stdc=no
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 if test $ac_cv_header_stdc = yes; then
8171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "memchr" >/dev/null 2>&1; then :
8181 ac_cv_header_stdc=no
8187 if test $ac_cv_header_stdc = yes; then
8188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "free" >/dev/null 2>&1; then :
8198 ac_cv_header_stdc=no
8204 if test $ac_cv_header_stdc = yes; then
8205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206 if test "$cross_compiling" = yes; then :
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8213 #if ((' ' & 0x0FF) == 0x020)
8214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8217 # define ISLOWER(c) \
8218 (('a' <= (c) && (c) <= 'i') \
8219 || ('j' <= (c) && (c) <= 'r') \
8220 || ('s' <= (c) && (c) <= 'z'))
8221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8229 for (i = 0; i < 256; i++)
8230 if (XOR (islower (i), ISLOWER (i))
8231 || toupper (i) != TOUPPER (i))
8236 if ac_fn_c_try_run "$LINENO"; then :
8239 ac_cv_header_stdc=no
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242 conftest.$ac_objext conftest.beam conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8248 $as_echo "$ac_cv_header_stdc" >&6; }
8249 if test $ac_cv_header_stdc = yes; then
8251 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8257 inttypes.h stdint.h unistd.h
8259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8263 cat >>confdefs.h <<_ACEOF
8264 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8272 for ac_header in dlfcn.h
8274 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8276 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8277 cat >>confdefs.h <<_ACEOF
8278 @%:@define HAVE_DLFCN_H 1
8288 func_stripname_cnf ()
8291 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8292 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8294 } # func_stripname_cnf
8310 @%:@ Check whether --enable-shared was given.
8311 if test "${enable_shared+set}" = set; then :
8312 enableval=$enable_shared; p=${PACKAGE-default}
8314 yes) enable_shared=yes ;;
8315 no) enable_shared=no ;;
8318 # Look at the argument we got. We use all the common list separators.
8319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320 for pkg in $enableval; do
8322 if test "X$pkg" = "X$p"; then
8341 @%:@ Check whether --enable-static was given.
8342 if test "${enable_static+set}" = set; then :
8343 enableval=$enable_static; p=${PACKAGE-default}
8345 yes) enable_static=yes ;;
8346 no) enable_static=no ;;
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8353 if test "X$pkg" = "X$p"; then
8373 @%:@ Check whether --with-pic was given.
8374 if test "${with_pic+set}" = set; then :
8375 withval=$with_pic; lt_p=${PACKAGE-default}
8377 yes|no) pic_mode=$withval ;;
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382 for lt_pkg in $withval; do
8384 if test "X$lt_pkg" = "X$lt_p"; then
8396 test -z "$pic_mode" && pic_mode=default
8404 @%:@ Check whether --enable-fast-install was given.
8405 if test "${enable_fast_install+set}" = set; then :
8406 enableval=$enable_fast_install; p=${PACKAGE-default}
8408 yes) enable_fast_install=yes ;;
8409 no) enable_fast_install=no ;;
8411 enable_fast_install=no
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414 for pkg in $enableval; do
8416 if test "X$pkg" = "X$p"; then
8417 enable_fast_install=yes
8424 enable_fast_install=yes
8437 # This can be used to rebuild libtool when needed
8438 LIBTOOL_DEPS="$ltmain"
8440 # Always use our own libtool.
8441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472 test -z "$LN_S" && LN_S="ln -s"
8487 if test -n "${ZSH_VERSION+set}" ; then
8488 setopt NO_GLOB_SUBST
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8492 $as_echo_n "checking for objdir... " >&6; }
8493 if ${lt_cv_objdir+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 rm -f .libs 2>/dev/null
8497 mkdir .libs 2>/dev/null
8498 if test -d .libs; then
8501 # MS-DOS does not allow filenames that begin with a dot.
8504 rmdir .libs 2>/dev/null
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8507 $as_echo "$lt_cv_objdir" >&6; }
8508 objdir=$lt_cv_objdir
8514 cat >>confdefs.h <<_ACEOF
8515 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8523 # AIX sometimes has problems with the GCC collect2 program. For some
8524 # reason, if we set the COLLECT_NAMES environment variable, the problems
8525 # vanish in a puff of smoke.
8526 if test "X${COLLECT_NAMES+set}" != Xset; then
8528 export COLLECT_NAMES
8535 can_build_shared=yes
8537 # All known linkers require a `.a' archive for static linking (except MSVC,
8538 # which needs '.lib').
8541 with_gnu_ld="$lt_cv_prog_gnu_ld"
8544 old_CFLAGS="$CFLAGS"
8546 # Set sane defaults for various variables
8547 test -z "$CC" && CC=cc
8548 test -z "$LTCC" && LTCC=$CC
8549 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550 test -z "$LD" && LD=ld
8551 test -z "$ac_objext" && ac_objext=o
8553 for cc_temp in $compiler""; do
8555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8561 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8564 # Only perform the check for file, if the check method requires it
8565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8566 case $deplibs_check_method in
8568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8570 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572 $as_echo_n "(cached) " >&6
8576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8579 lt_save_MAGIC_CMD="$MAGIC_CMD"
8580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/${ac_tool_prefix}file; then
8586 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such. This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem. Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8615 MAGIC_CMD="$lt_save_MAGIC_CMD"
8620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8621 if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8633 if test -z "$lt_cv_path_MAGIC_CMD"; then
8634 if test -n "$ac_tool_prefix"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8636 $as_echo_n "checking for file... " >&6; }
8637 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8638 $as_echo_n "(cached) " >&6
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such. This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem. Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689 $as_echo "$MAGIC_CMD" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8705 # Use C for the default configuration in the libtool script
8709 ac_cpp='$CPP $CPPFLAGS'
8710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715 # Source file extension for C test sources.
8718 # Object file extension for compiled C test sources.
8722 # Code to be used in simple compile tests
8723 lt_simple_compile_test_code="int some_variable = 0;"
8725 # Code to be used in simple link tests
8726 lt_simple_link_test_code='int main(){return(0);}'
8734 # If no C compiler was specified, use CC.
8737 # If no C compiler flags were specified, use CFLAGS.
8738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8740 # Allow CC to be a program name with arguments.
8743 # Save the default compiler, since it gets overwritten when the other
8744 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8745 compiler_DEFAULT=$CC
8747 # save warnings/boilerplate of simple test code
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8750 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_compiler_boilerplate=`cat conftest.err`
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8756 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_linker_boilerplate=`cat conftest.err`
8761 if test -n "$compiler"; then
8763 lt_prog_compiler_no_builtin_flag=
8765 if test "$GCC" = yes; then
8766 case $cc_basename in
8768 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8770 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8774 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8775 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8776 $as_echo_n "(cached) " >&6
8778 lt_cv_prog_compiler_rtti_exceptions=no
8779 ac_outfile=conftest.$ac_objext
8780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8781 lt_compiler_flag="-fno-rtti -fno-exceptions"
8782 # Insert the option either (1) after the last *FLAGS variable, or
8783 # (2) before a word containing "conftest.", or (3) at the end.
8784 # Note that $ac_compile itself does not contain backslashes and begins
8785 # with a dollar sign (not a hyphen), so the echo should work correctly.
8786 # The option is referenced via a variable to avoid confusing sed.
8787 lt_compile=`echo "$ac_compile" | $SED \
8788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8790 -e 's:$: $lt_compiler_flag:'`
8791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8792 (eval "$lt_compile" 2>conftest.err)
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 if (exit $ac_status) && test -s "$ac_outfile"; then
8797 # The compiler can only warn and ignore the option if not recognized
8798 # So say no if there are warnings other than the usual output.
8799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8802 lt_cv_prog_compiler_rtti_exceptions=yes
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8809 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8824 lt_prog_compiler_wl=
8825 lt_prog_compiler_pic=
8826 lt_prog_compiler_static=
8829 if test "$GCC" = yes; then
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_static='-static'
8835 # All AIX code is PIC.
8836 if test "$host_cpu" = ia64; then
8837 # AIX 5 now supports IA64 processor
8838 lt_prog_compiler_static='-Bstatic'
8845 # see comment about AmigaOS4 .so support
8846 lt_prog_compiler_pic='-fPIC'
8849 # FIXME: we need at least 68020 code to build shared libraries, but
8850 # adding the `-m68020' flag to GCC prevents building anything better,
8852 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8857 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8858 # PIC is the default for these OSes.
8861 mingw* | cygwin* | pw32* | os2* | cegcc*)
8862 # This hack is so that the source file can tell whether it is being
8863 # built for inclusion in a dll (and should export symbols for example).
8864 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8865 # (--disable-auto-import) libraries
8866 lt_prog_compiler_pic='-DDLL_EXPORT'
8869 darwin* | rhapsody*)
8870 # PIC is the default on this platform
8871 # Common symbols not allowed in MH_DYLIB files
8872 lt_prog_compiler_pic='-fno-common'
8876 # PIC is the default for Haiku.
8877 # The "-static" flag exists, but is broken.
8878 lt_prog_compiler_static=
8882 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8883 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8884 # sets the default TLS model and affects inlining.
8890 lt_prog_compiler_pic='-fPIC'
8896 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8897 # Instead, we relocate shared libraries at runtime.
8901 # Just because we use GCC doesn't mean we suddenly get shared libraries
8902 # on systems that don't support them.
8903 lt_prog_compiler_can_build_shared=no
8908 # QNX uses GNU C++, but need to define -shared option too, otherwise
8910 lt_prog_compiler_pic='-fPIC -shared'
8914 if test -d /usr/nec; then
8915 lt_prog_compiler_pic=-Kconform_pic
8920 lt_prog_compiler_pic='-fPIC'
8924 case $cc_basename in
8925 nvcc*) # Cuda Compiler Driver 2.2
8926 lt_prog_compiler_wl='-Xlinker '
8927 if test -n "$lt_prog_compiler_pic"; then
8928 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8933 # PORTME Check for flag to pass linker flags through the system compiler.
8936 lt_prog_compiler_wl='-Wl,'
8937 if test "$host_cpu" = ia64; then
8938 # AIX 5 now supports IA64 processor
8939 lt_prog_compiler_static='-Bstatic'
8941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8946 # This hack is so that the source file can tell whether it is being
8947 # built for inclusion in a dll (and should export symbols for example).
8948 lt_prog_compiler_pic='-DDLL_EXPORT'
8951 hpux9* | hpux10* | hpux11*)
8952 lt_prog_compiler_wl='-Wl,'
8953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8960 lt_prog_compiler_pic='+Z'
8963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8964 lt_prog_compiler_static='${wl}-a ${wl}archive'
8967 irix5* | irix6* | nonstopux*)
8968 lt_prog_compiler_wl='-Wl,'
8969 # PIC (with -KPIC) is the default.
8970 lt_prog_compiler_static='-non_shared'
8973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8974 case $cc_basename in
8975 # old Intel for x86_64 which still supported -KPIC.
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-static'
8981 # icc used to be incompatible with GCC.
8982 # ICC 10 doesn't accept -KPIC any more.
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-fPIC'
8986 lt_prog_compiler_static='-static'
8988 # Lahey Fortran 8.1.
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_pic='--shared'
8992 lt_prog_compiler_static='--static'
8995 # NAG Fortran compiler
8996 lt_prog_compiler_wl='-Wl,-Wl,,'
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
9000 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9001 # Portland Group compilers (*not* the Pentium gcc compiler,
9002 # which looks to be a dead project)
9003 lt_prog_compiler_wl='-Wl,'
9004 lt_prog_compiler_pic='-fpic'
9005 lt_prog_compiler_static='-Bstatic'
9008 lt_prog_compiler_wl='-Wl,'
9009 # All Alpha code is PIC.
9010 lt_prog_compiler_static='-non_shared'
9012 xl* | bgxl* | bgf* | mpixl*)
9013 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-qpic'
9016 lt_prog_compiler_static='-qstaticlink'
9019 case `$CC -V 2>&1 | sed 5q` in
9020 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9021 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 lt_prog_compiler_wl=''
9026 *Sun\ F* | *Sun*Fortran*)
9027 lt_prog_compiler_pic='-KPIC'
9028 lt_prog_compiler_static='-Bstatic'
9029 lt_prog_compiler_wl='-Qoption ld '
9033 lt_prog_compiler_pic='-KPIC'
9034 lt_prog_compiler_static='-Bstatic'
9035 lt_prog_compiler_wl='-Wl,'
9037 *Intel*\ [CF]*Compiler*)
9038 lt_prog_compiler_wl='-Wl,'
9039 lt_prog_compiler_pic='-fPIC'
9040 lt_prog_compiler_static='-static'
9043 lt_prog_compiler_wl='-Wl,'
9044 lt_prog_compiler_pic='-fpic'
9045 lt_prog_compiler_static='-Bstatic'
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9058 # QNX uses GNU C++, but need to define -shared option too, otherwise
9060 lt_prog_compiler_pic='-fPIC -shared'
9063 osf3* | osf4* | osf5*)
9064 lt_prog_compiler_wl='-Wl,'
9065 # All OSF/1 code is PIC.
9066 lt_prog_compiler_static='-non_shared'
9070 lt_prog_compiler_static='-non_shared'
9074 lt_prog_compiler_pic='-KPIC'
9075 lt_prog_compiler_static='-Bstatic'
9076 case $cc_basename in
9077 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9078 lt_prog_compiler_wl='-Qoption ld ';;
9080 lt_prog_compiler_wl='-Wl,';;
9085 lt_prog_compiler_wl='-Qoption ld '
9086 lt_prog_compiler_pic='-PIC'
9087 lt_prog_compiler_static='-Bstatic'
9090 sysv4 | sysv4.2uw2* | sysv4.3*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-Bstatic'
9097 if test -d /usr/nec ;then
9098 lt_prog_compiler_pic='-Kconform_pic'
9099 lt_prog_compiler_static='-Bstatic'
9103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_can_build_shared=no
9115 lt_prog_compiler_pic='-pic'
9116 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_can_build_shared=no
9126 # For platforms which do not support PIC, -DPIC is meaningless:
9128 lt_prog_compiler_pic=
9131 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9137 if ${lt_cv_prog_compiler_pic+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9143 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9144 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9147 # Check to make sure the PIC flag actually works.
9149 if test -n "$lt_prog_compiler_pic"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9151 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9152 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9153 $as_echo_n "(cached) " >&6
9155 lt_cv_prog_compiler_pic_works=no
9156 ac_outfile=conftest.$ac_objext
9157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9158 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9159 # Insert the option either (1) after the last *FLAGS variable, or
9160 # (2) before a word containing "conftest.", or (3) at the end.
9161 # Note that $ac_compile itself does not contain backslashes and begins
9162 # with a dollar sign (not a hyphen), so the echo should work correctly.
9163 # The option is referenced via a variable to avoid confusing sed.
9164 lt_compile=`echo "$ac_compile" | $SED \
9165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9167 -e 's:$: $lt_compiler_flag:'`
9168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9169 (eval "$lt_compile" 2>conftest.err)
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 if (exit $ac_status) && test -s "$ac_outfile"; then
9174 # The compiler can only warn and ignore the option if not recognized
9175 # So say no if there are warnings other than the usual output.
9176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9179 lt_cv_prog_compiler_pic_works=yes
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9186 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9188 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9189 case $lt_prog_compiler_pic in
9191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9194 lt_prog_compiler_pic=
9195 lt_prog_compiler_can_build_shared=no
9211 # Check to make sure the static flag actually works.
9213 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9215 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9216 if ${lt_cv_prog_compiler_static_works+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 lt_cv_prog_compiler_static_works=no
9220 save_LDFLAGS="$LDFLAGS"
9221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9224 # The linker can only warn and ignore the option if not recognized
9225 # So say no if there are warnings
9226 if test -s conftest.err; then
9227 # Append any errors to the config.log.
9228 cat conftest.err 1>&5
9229 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9231 if diff conftest.exp conftest.er2 >/dev/null; then
9232 lt_cv_prog_compiler_static_works=yes
9235 lt_cv_prog_compiler_static_works=yes
9239 LDFLAGS="$save_LDFLAGS"
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9243 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9245 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9248 lt_prog_compiler_static=
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9259 if ${lt_cv_prog_compiler_c_o+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 lt_cv_prog_compiler_c_o=no
9263 $RM -r conftest 2>/dev/null
9267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9269 lt_compiler_flag="-o out/conftest2.$ac_objext"
9270 # Insert the option either (1) after the last *FLAGS variable, or
9271 # (2) before a word containing "conftest.", or (3) at the end.
9272 # Note that $ac_compile itself does not contain backslashes and begins
9273 # with a dollar sign (not a hyphen), so the echo should work correctly.
9274 lt_compile=`echo "$ac_compile" | $SED \
9275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9277 -e 's:$: $lt_compiler_flag:'`
9278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9279 (eval "$lt_compile" 2>out/conftest.err)
9281 cat out/conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9285 # The compiler can only warn and ignore the option if not recognized
9286 # So say no if there are warnings
9287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9290 lt_cv_prog_compiler_c_o=yes
9295 # SGI C++ compiler will create directory out/ii_files/ for
9296 # template instantiation
9297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9298 $RM out/* && rmdir out
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9314 if ${lt_cv_prog_compiler_c_o+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 lt_cv_prog_compiler_c_o=no
9318 $RM -r conftest 2>/dev/null
9322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9324 lt_compiler_flag="-o out/conftest2.$ac_objext"
9325 # Insert the option either (1) after the last *FLAGS variable, or
9326 # (2) before a word containing "conftest.", or (3) at the end.
9327 # Note that $ac_compile itself does not contain backslashes and begins
9328 # with a dollar sign (not a hyphen), so the echo should work correctly.
9329 lt_compile=`echo "$ac_compile" | $SED \
9330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332 -e 's:$: $lt_compiler_flag:'`
9333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9334 (eval "$lt_compile" 2>out/conftest.err)
9336 cat out/conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9340 # The compiler can only warn and ignore the option if not recognized
9341 # So say no if there are warnings
9342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9345 lt_cv_prog_compiler_c_o=yes
9350 # SGI C++ compiler will create directory out/ii_files/ for
9351 # template instantiation
9352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9353 $RM out/* && rmdir out
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9365 hard_links="nottested"
9366 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9367 # do not overwrite the value of need_locks provided by the user
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9369 $as_echo_n "checking if we can lock with hard links... " >&6; }
9372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9374 ln conftest.a conftest.b 2>&5 || hard_links=no
9375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9377 $as_echo "$hard_links" >&6; }
9378 if test "$hard_links" = no; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9380 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9396 allow_undefined_flag=
9397 always_export_symbols=no
9399 archive_expsym_cmds=
9400 compiler_needs_object=no
9401 enable_shared_with_static_runtimes=no
9402 export_dynamic_flag_spec=
9403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9404 hardcode_automatic=no
9406 hardcode_direct_absolute=no
9407 hardcode_libdir_flag_spec=
9408 hardcode_libdir_separator=
9410 hardcode_shlibpath_var=unsupported
9412 link_all_deplibs=unknown
9415 old_archive_from_new_cmds=
9416 old_archive_from_expsyms_cmds=
9417 thread_safe_flag_spec=
9418 whole_archive_flag_spec=
9419 # include_expsyms should be a list of space-separated symbols to be *always*
9420 # included in the symbol list
9422 # exclude_expsyms can be an extended regexp of symbols to exclude
9423 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9425 # as well as any symbol that contains `d'.
9426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9428 # platforms (ab)use it in PIC code, but their linkers get confused if
9429 # the symbol is explicitly referenced. Since portable code cannot
9430 # rely on this symbol name, it's probably fine to never include it in
9431 # preloaded symbol tables.
9432 # Exclude shared library initialization/finalization symbols.
9433 extract_expsyms_cmds=
9436 cygwin* | mingw* | pw32* | cegcc*)
9437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9438 # When not using gcc, we currently assume that we are using
9439 # Microsoft Visual C++.
9440 if test "$GCC" != yes; then
9445 # we just hope/assume this is gcc and not c89 (= MSVC++)
9451 linux* | k*bsd*-gnu | gnu*)
9458 # On some targets, GNU ld is compatible enough with the native linker
9459 # that we're better off using the native interface for both.
9460 lt_use_gnu_ld_interface=no
9461 if test "$with_gnu_ld" = yes; then
9464 # The AIX port of GNU ld has always aspired to compatibility
9465 # with the native linker. However, as the warning in the GNU ld
9466 # block says, versions before 2.19.5* couldn't really create working
9467 # shared libraries, regardless of the interface used.
9468 case `$LD -v 2>&1` in
9469 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9470 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9471 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9473 lt_use_gnu_ld_interface=yes
9478 lt_use_gnu_ld_interface=yes
9483 if test "$lt_use_gnu_ld_interface" = yes; then
9484 # If archive_cmds runs LD, not CC, wlarc should be empty
9487 # Set some defaults for GNU ld with shared library support. These
9488 # are reset later if shared libraries are not supported. Putting them
9489 # here allows them to be overridden if necessary.
9490 runpath_var=LD_RUN_PATH
9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9492 export_dynamic_flag_spec='${wl}--export-dynamic'
9493 # ancient GNU ld didn't support --whole-archive et. al.
9494 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9495 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9497 whole_archive_flag_spec=
9499 supports_anon_versioning=no
9500 case `$LD -v 2>&1` in
9501 *GNU\ gold*) supports_anon_versioning=yes ;;
9502 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9503 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9504 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9505 *\ 2.11.*) ;; # other 2.11 versions
9506 *) supports_anon_versioning=yes ;;
9509 # See if GNU ld supports shared libraries.
9512 # On AIX/PPC, the GNU linker is very broken
9513 if test "$host_cpu" != ia64; then
9517 *** Warning: the GNU linker, at least up to release 2.19, is reported
9518 *** to be unable to reliably create shared libraries on AIX.
9519 *** Therefore, libtool is disabling shared libraries support. If you
9520 *** really care for shared libraries, you may want to install binutils
9521 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9522 *** You will then need to restart the configuration process.
9531 # see comment about AmigaOS4 .so support
9532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9533 archive_expsym_cmds=''
9536 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)'
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_minus_L=yes
9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545 allow_undefined_flag=unsupported
9546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9547 # support --undefined. This deserves some investigation. FIXME
9548 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 cygwin* | mingw* | pw32* | cegcc*)
9555 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9556 # as there is no search path for DLLs.
9557 hardcode_libdir_flag_spec='-L$libdir'
9558 export_dynamic_flag_spec='${wl}--export-all-symbols'
9559 allow_undefined_flag=unsupported
9560 always_export_symbols=no
9561 enable_shared_with_static_runtimes=yes
9562 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'
9563 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9565 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9567 # If the export-symbols file already is a .def file (1st line
9568 # is EXPORTS), use it as is; otherwise, prepend...
9569 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9570 cp $export_symbols $output_objdir/$soname.def;
9572 echo EXPORTS > $output_objdir/$soname.def;
9573 cat $export_symbols >> $output_objdir/$soname.def;
9575 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 link_all_deplibs=yes
9588 hardcode_shlibpath_var=no
9589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590 export_dynamic_flag_spec='${wl}-E'
9591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9592 # Instead, shared libraries are loaded at an image base (0x10000000 by
9593 # default) and relocated if they conflict, which is a slow very memory
9594 # consuming and fragmenting process. To avoid this, we pick a random,
9595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9596 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9598 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'
9601 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9603 if test "$host_os" = linux-dietlibc; then
9604 case $cc_basename in
9605 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9608 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9609 && test "$tmp_diet" = no
9611 tmp_addflag=' $pic_flag'
9612 tmp_sharedflag='-shared'
9613 case $cc_basename,$host_cpu in
9614 pgcc*) # Portland Group C compiler
9615 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'
9616 tmp_addflag=' $pic_flag'
9618 pgf77* | pgf90* | pgf95* | pgfortran*)
9619 # Portland Group f77 and f90 compilers
9620 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'
9621 tmp_addflag=' $pic_flag -Mnomain' ;;
9622 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9623 tmp_addflag=' -i_dynamic' ;;
9624 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9625 tmp_addflag=' -i_dynamic -nofor_main' ;;
9626 ifc* | ifort*) # Intel Fortran compiler
9627 tmp_addflag=' -nofor_main' ;;
9628 lf95*) # Lahey Fortran 8.1
9629 whole_archive_flag_spec=
9630 tmp_sharedflag='--shared' ;;
9631 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9632 tmp_sharedflag='-qmkshrobj'
9634 nvcc*) # Cuda Compiler Driver 2.2
9635 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'
9636 compiler_needs_object=yes
9639 case `$CC -V 2>&1 | sed 5q` in
9640 *Sun\ C*) # Sun C 5.9
9641 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'
9642 compiler_needs_object=yes
9643 tmp_sharedflag='-G' ;;
9644 *Sun\ F*) # Sun Fortran 8.3
9645 tmp_sharedflag='-G' ;;
9647 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 if test "x$supports_anon_versioning" = xyes; then
9650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9652 echo "local: *; };" >> $output_objdir/$libname.ver~
9653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9656 case $cc_basename in
9657 xlf* | bgf* | bgxlf* | mpixlf*)
9658 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9659 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9661 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9662 if test "x$supports_anon_versioning" = xyes; then
9663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9665 echo "local: *; };" >> $output_objdir/$libname.ver~
9666 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9675 netbsd* | netbsdelf*-gnu)
9676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9677 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9686 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9690 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9691 *** create shared libraries on Solaris systems. Therefore, libtool
9692 *** is disabling shared libraries support. We urge you to upgrade GNU
9693 *** binutils to release 2.9.1 or newer. Another option is to modify
9694 *** your PATH or compiler configuration so that the native linker is
9695 *** used, and then restart.
9698 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9707 case `$LD -v 2>&1` in
9708 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9712 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9713 *** reliably create shared libraries on SCO systems. Therefore, libtool
9714 *** is disabling shared libraries support. We urge you to upgrade GNU
9715 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9716 *** your PATH or compiler configuration so that the native linker is
9717 *** used, and then restart.
9722 # For security reasons, it is highly recommended that you always
9723 # use absolute paths for naming shared libraries, and exclude the
9724 # DT_RUNPATH tag from executables and libraries. But doing so
9725 # requires that you compile everything twice, which is a pain.
9726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9738 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_shlibpath_var=no
9745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9754 if test "$ld_shlibs" = no; then
9756 hardcode_libdir_flag_spec=
9757 export_dynamic_flag_spec=
9758 whole_archive_flag_spec=
9761 # PORTME fill in a description of your system's linker (not GNU ld)
9764 allow_undefined_flag=unsupported
9765 always_export_symbols=yes
9766 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'
9767 # Note: this linker hardcodes the directories in LIBPATH if there
9768 # are no directories specified by -L.
9769 hardcode_minus_L=yes
9770 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9771 # Neither direct hardcoding nor static linking is supported with a
9773 hardcode_direct=unsupported
9778 if test "$host_cpu" = ia64; then
9779 # On IA64, the linker does run time linking by default, so we don't
9780 # have to do anything special.
9781 aix_use_runtimelinking=no
9782 exp_sym_flag='-Bexport'
9785 # If we're using GNU nm, then we don't want the "-C" option.
9786 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9787 # Also, AIX nm treats weak defined symbols like other global
9788 # defined symbols, whereas GNU nm marks them as "W".
9789 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9790 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'
9792 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'
9794 aix_use_runtimelinking=no
9796 # Test if we are trying to use run time linking or normal
9797 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9798 # need to do runtime linking.
9799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9800 for ld_flag in $LDFLAGS; do
9801 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9802 aix_use_runtimelinking=yes
9809 exp_sym_flag='-bexport'
9810 no_entry_flag='-bnoentry'
9813 # When large executables or shared objects are built, AIX ld can
9814 # have problems creating the table of contents. If linking a library
9815 # or program results in "error TOC overflow" add -mminimal-toc to
9816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9821 hardcode_direct_absolute=yes
9822 hardcode_libdir_separator=':'
9823 link_all_deplibs=yes
9824 file_list_spec='${wl}-f,'
9826 if test "$GCC" = yes; then
9827 case $host_os in aix4.[012]|aix4.[012].*)
9828 # We only want to do this on AIX 4.2 and lower, the check
9829 # below for broken collect2 doesn't work under 4.3+
9830 collect2name=`${CC} -print-prog-name=collect2`
9831 if test -f "$collect2name" &&
9832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9834 # We have reworked collect2
9837 # We have old collect2
9838 hardcode_direct=unsupported
9839 # It fails to find uninstalled libraries when the uninstalled
9840 # path is not listed in the libpath. Setting hardcode_minus_L
9841 # to unsupported forces relinking
9842 hardcode_minus_L=yes
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_libdir_separator=
9848 shared_flag='-shared'
9849 if test "$aix_use_runtimelinking" = yes; then
9850 shared_flag="$shared_flag "'${wl}-G'
9855 if test "$host_cpu" = ia64; then
9856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857 # chokes on -Wl,-G. The following line is correct:
9860 if test "$aix_use_runtimelinking" = yes; then
9861 shared_flag='${wl}-G'
9863 shared_flag='${wl}-bM:SRE'
9868 export_dynamic_flag_spec='${wl}-bexpall'
9869 # It seems that -bexpall does not export symbols beginning with
9870 # underscore (_), so it is better to generate a list of symbols to export.
9871 always_export_symbols=yes
9872 if test "$aix_use_runtimelinking" = yes; then
9873 # Warning - without using the other runtime loading flags (-brtl),
9874 # -berok will link without error, but may produce a broken library.
9875 allow_undefined_flag='-berok'
9876 # Determine the default libpath from the value encoded in an
9878 if test "${lt_cv_aix_libpath+set}" = set; then
9879 aix_libpath=$lt_cv_aix_libpath
9881 if ${lt_cv_aix_libpath_+:} false; then :
9882 $as_echo_n "(cached) " >&6
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9895 if ac_fn_c_try_link "$LINENO"; then :
9897 lt_aix_libpath_sed='
9898 /Import File Strings/,/^$/ {
9900 s/^0 *\([^ ]*\) *$/\1/
9904 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9905 # Check for a 64-bit object if we didn't find anything.
9906 if test -z "$lt_cv_aix_libpath_"; then
9907 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 if test -z "$lt_cv_aix_libpath_"; then
9913 lt_cv_aix_libpath_="/usr/lib:/lib"
9918 aix_libpath=$lt_cv_aix_libpath_
9921 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9922 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"
9924 if test "$host_cpu" = ia64; then
9925 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9926 allow_undefined_flag="-z nodefs"
9927 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"
9929 # Determine the default libpath from the value encoded in an
9931 if test "${lt_cv_aix_libpath+set}" = set; then
9932 aix_libpath=$lt_cv_aix_libpath
9934 if ${lt_cv_aix_libpath_+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9948 if ac_fn_c_try_link "$LINENO"; then :
9950 lt_aix_libpath_sed='
9951 /Import File Strings/,/^$/ {
9953 s/^0 *\([^ ]*\) *$/\1/
9957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958 # Check for a 64-bit object if we didn't find anything.
9959 if test -z "$lt_cv_aix_libpath_"; then
9960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 if test -z "$lt_cv_aix_libpath_"; then
9966 lt_cv_aix_libpath_="/usr/lib:/lib"
9971 aix_libpath=$lt_cv_aix_libpath_
9974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9975 # Warning - without using the other run time loading flags,
9976 # -berok will link without error, but may produce a broken library.
9977 no_undefined_flag=' ${wl}-bernotok'
9978 allow_undefined_flag=' ${wl}-berok'
9979 if test "$with_gnu_ld" = yes; then
9980 # We only use this code for GNU lds that support --whole-archive.
9981 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9983 # Exported symbols can be pulled into shared objects from archives
9984 whole_archive_flag_spec='$convenience'
9986 archive_cmds_need_lc=yes
9987 # This is similar to how AIX traditionally builds its shared libraries.
9988 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'
9996 # see comment about AmigaOS4 .so support
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds=''
10001 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)'
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_minus_L=yes
10009 export_dynamic_flag_spec=-rdynamic
10012 cygwin* | mingw* | pw32* | cegcc*)
10013 # When not using gcc, we currently assume that we are using
10014 # Microsoft Visual C++.
10015 # hardcode_libdir_flag_spec is actually meaningless, as there is
10016 # no search path for DLLs.
10017 case $cc_basename in
10020 hardcode_libdir_flag_spec=' '
10021 allow_undefined_flag=unsupported
10022 always_export_symbols=yes
10024 # Tell ltmain to make .lib files, not .a files.
10026 # Tell ltmain to make .dll files, not .so files.
10028 # FIXME: Setting linknames here is a bad hack.
10029 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10030 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10031 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10033 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10035 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10037 # The linker will not automatically build a static lib if we build a DLL.
10038 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10039 enable_shared_with_static_runtimes=yes
10040 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10043 old_postinstall_cmds='chmod 644 $oldlib'
10044 postlink_cmds='lt_outputfile="@OUTPUT@"~
10045 lt_tool_outputfile="@TOOL_OUTPUT@"~
10046 case $lt_outputfile in
10049 lt_outputfile="$lt_outputfile.exe"
10050 lt_tool_outputfile="$lt_tool_outputfile.exe"
10053 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10054 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10055 $RM "$lt_outputfile.manifest";
10059 # Assume MSVC wrapper
10060 hardcode_libdir_flag_spec=' '
10061 allow_undefined_flag=unsupported
10062 # Tell ltmain to make .lib files, not .a files.
10064 # Tell ltmain to make .dll files, not .so files.
10066 # FIXME: Setting linknames here is a bad hack.
10067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10068 # The linker will automatically build a .lib file if we build a DLL.
10069 old_archive_from_new_cmds='true'
10070 # FIXME: Should let the user specify the lib program.
10071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10072 enable_shared_with_static_runtimes=yes
10077 darwin* | rhapsody*)
10080 archive_cmds_need_lc=no
10082 hardcode_automatic=yes
10083 hardcode_shlibpath_var=unsupported
10084 if test "$lt_cv_ld_force_load" = "yes"; then
10085 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\"`'
10088 whole_archive_flag_spec=''
10090 link_all_deplibs=yes
10091 allow_undefined_flag="$_lt_dar_allow_undefined"
10092 case $cc_basename in
10093 ifort*) _lt_dar_can_shared=yes ;;
10094 *) _lt_dar_can_shared=$GCC ;;
10096 if test "$_lt_dar_can_shared" = "yes"; then
10097 output_verbose_link_cmd=func_echo_all
10098 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10099 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10100 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}"
10101 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}"
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_libdir_flag_spec='-L$libdir'
10112 hardcode_shlibpath_var=no
10115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10116 # support. Future versions do this automatically, but an explicit c++rt0.o
10117 # does not break anything, and helps significantly (at the cost of a little
10120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10121 hardcode_libdir_flag_spec='-R$libdir'
10122 hardcode_direct=yes
10123 hardcode_shlibpath_var=no
10126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_direct=yes
10130 hardcode_minus_L=yes
10131 hardcode_shlibpath_var=no
10134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10135 freebsd* | dragonfly*)
10136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10137 hardcode_libdir_flag_spec='-R$libdir'
10138 hardcode_direct=yes
10139 hardcode_shlibpath_var=no
10143 if test "$GCC" = yes; then
10144 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'
10146 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'
10148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10149 hardcode_libdir_separator=:
10150 hardcode_direct=yes
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10155 export_dynamic_flag_spec='${wl}-E'
10159 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10160 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10164 if test "$with_gnu_ld" = no; then
10165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10166 hardcode_libdir_separator=:
10167 hardcode_direct=yes
10168 hardcode_direct_absolute=yes
10169 export_dynamic_flag_spec='${wl}-E'
10170 # hardcode_minus_L: Not really in the search PATH,
10171 # but as the default location of the library.
10172 hardcode_minus_L=yes
10177 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10180 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10199 # Older versions of the 11.00 compiler do not understand -b yet
10200 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10202 $as_echo_n "checking if $CC understands -b... " >&6; }
10203 if ${lt_cv_prog_compiler__b+:} false; then :
10204 $as_echo_n "(cached) " >&6
10206 lt_cv_prog_compiler__b=no
10207 save_LDFLAGS="$LDFLAGS"
10208 LDFLAGS="$LDFLAGS -b"
10209 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10211 # The linker can only warn and ignore the option if not recognized
10212 # So say no if there are warnings
10213 if test -s conftest.err; then
10214 # Append any errors to the config.log.
10215 cat conftest.err 1>&5
10216 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10218 if diff conftest.exp conftest.er2 >/dev/null; then
10219 lt_cv_prog_compiler__b=yes
10222 lt_cv_prog_compiler__b=yes
10226 LDFLAGS="$save_LDFLAGS"
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10230 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10232 if test x"$lt_cv_prog_compiler__b" = xyes; then
10233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10241 if test "$with_gnu_ld" = no; then
10242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243 hardcode_libdir_separator=:
10248 hardcode_shlibpath_var=no
10251 hardcode_direct=yes
10252 hardcode_direct_absolute=yes
10253 export_dynamic_flag_spec='${wl}-E'
10255 # hardcode_minus_L: Not really in the search PATH,
10256 # but as the default location of the library.
10257 hardcode_minus_L=yes
10263 irix5* | irix6* | nonstopux*)
10264 if test "$GCC" = yes; then
10265 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'
10266 # Try to use the -exported_symbol ld option, if it does not
10267 # work, assume that -exports_file does not work either and
10268 # implicitly export all symbols.
10269 # This should be the same for all languages, so no per-tag cache variable.
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10271 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10272 if ${lt_cv_irix_exported_symbol+:} false; then :
10273 $as_echo_n "(cached) " >&6
10275 save_LDFLAGS="$LDFLAGS"
10276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 int foo (void) { return 0; }
10281 if ac_fn_c_try_link "$LINENO"; then :
10282 lt_cv_irix_exported_symbol=yes
10284 lt_cv_irix_exported_symbol=no
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LDFLAGS="$save_LDFLAGS"
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10291 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10292 if test "$lt_cv_irix_exported_symbol" = yes; then
10293 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'
10296 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'
10297 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'
10299 archive_cmds_need_lc='no'
10300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10301 hardcode_libdir_separator=:
10303 link_all_deplibs=yes
10306 netbsd* | netbsdelf*-gnu)
10307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10310 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10312 hardcode_libdir_flag_spec='-R$libdir'
10313 hardcode_direct=yes
10314 hardcode_shlibpath_var=no
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=yes
10320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10321 hardcode_libdir_separator=:
10322 hardcode_shlibpath_var=no
10329 if test -f /usr/libexec/ld.so; then
10330 hardcode_direct=yes
10331 hardcode_shlibpath_var=no
10332 hardcode_direct_absolute=yes
10333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10337 export_dynamic_flag_spec='${wl}-E'
10340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_libdir_flag_spec='-R$libdir'
10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_minus_L=yes
10358 allow_undefined_flag=unsupported
10359 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'
10360 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10364 if test "$GCC" = yes; then
10365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10366 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'
10368 allow_undefined_flag=' -expect_unresolved \*'
10369 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'
10371 archive_cmds_need_lc='no'
10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10373 hardcode_libdir_separator=:
10376 osf4* | osf5*) # as osf3* with the addition of -msym flag
10377 if test "$GCC" = yes; then
10378 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10379 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'
10380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10382 allow_undefined_flag=' -expect_unresolved \*'
10383 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'
10384 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~
10385 $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'
10387 # Both c and cxx compiler support -rpath directly
10388 hardcode_libdir_flag_spec='-rpath $libdir'
10390 archive_cmds_need_lc='no'
10391 hardcode_libdir_separator=:
10395 no_undefined_flag=' -z defs'
10396 if test "$GCC" = yes; then
10398 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10400 $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'
10402 case `$CC -V 2>&1` in
10405 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10407 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10411 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10413 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10417 hardcode_libdir_flag_spec='-R$libdir'
10418 hardcode_shlibpath_var=no
10420 solaris2.[0-5] | solaris2.[0-5].*) ;;
10422 # The compiler driver will combine and reorder linker options,
10423 # but understands `-z linker_flag'. GCC discards it without `$wl',
10424 # but is careful enough not to reorder.
10425 # Supported since Solaris 2.6 (maybe 2.5.1?)
10426 if test "$GCC" = yes; then
10427 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10429 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10433 link_all_deplibs=yes
10437 if test "x$host_vendor" = xsequent; then
10438 # Use $CC to link under sequent, because it throws in some extra .o
10439 # files that make .init and .fini sections work.
10440 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_libdir_flag_spec='-L$libdir'
10445 hardcode_direct=yes
10446 hardcode_minus_L=yes
10447 hardcode_shlibpath_var=no
10451 case $host_vendor in
10453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10454 hardcode_direct=yes # is this really true???
10457 ## LD is ld it makes a PLAMLIB
10458 ## CC just makes a GrossModule.
10459 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10460 reload_cmds='$CC -r -o $output$reload_objs'
10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10465 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10468 runpath_var='LD_RUN_PATH'
10469 hardcode_shlibpath_var=no
10473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474 hardcode_shlibpath_var=no
10475 export_dynamic_flag_spec='-Bexport'
10479 if test -d /usr/nec; then
10480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_shlibpath_var=no
10482 runpath_var=LD_RUN_PATH
10483 hardcode_runpath_var=yes
10488 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10489 no_undefined_flag='${wl}-z,text'
10490 archive_cmds_need_lc=no
10491 hardcode_shlibpath_var=no
10492 runpath_var='LD_RUN_PATH'
10494 if test "$GCC" = yes; then
10495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 sysv5* | sco3.2v5* | sco5v6*)
10504 # Note: We can NOT use -z defs as we might desire, because we do not
10505 # link with -lc, and that would cause any symbols used from libc to
10506 # always be unresolved, which means just about no library would
10507 # ever link correctly. If we're not using GNU ld we use -z text
10508 # though, which does catch some bad symbols but isn't as heavy-handed
10510 no_undefined_flag='${wl}-z,text'
10511 allow_undefined_flag='${wl}-z,nodefs'
10512 archive_cmds_need_lc=no
10513 hardcode_shlibpath_var=no
10514 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10515 hardcode_libdir_separator=':'
10516 link_all_deplibs=yes
10517 export_dynamic_flag_spec='${wl}-Bexport'
10518 runpath_var='LD_RUN_PATH'
10520 if test "$GCC" = yes; then
10521 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 hardcode_libdir_flag_spec='-L$libdir'
10532 hardcode_shlibpath_var=no
10540 if test x$host_vendor = xsni; then
10542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10543 export_dynamic_flag_spec='${wl}-Blargedynsym'
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10550 $as_echo "$ld_shlibs" >&6; }
10551 test "$ld_shlibs" = no && can_build_shared=no
10553 with_gnu_ld=$with_gnu_ld
10570 # Do we need to explicitly link libc?
10572 case "x$archive_cmds_need_lc" in
10574 # Assume -lc should be added
10575 archive_cmds_need_lc=yes
10577 if test "$enable_shared" = yes && test "$GCC" = yes; then
10578 case $archive_cmds in
10580 # FIXME: we may have to deal with multi-command sequences.
10583 # Test whether the compiler implicitly links with -lc since on some
10584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10585 # to ld, don't add -lc before -lgcc.
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10587 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10588 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10589 $as_echo_n "(cached) " >&6
10592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10595 (eval $ac_compile) 2>&5
10597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598 test $ac_status = 0; } 2>conftest.err; then
10601 libobjs=conftest.$ac_objext
10603 wl=$lt_prog_compiler_wl
10604 pic_flag=$lt_prog_compiler_pic
10610 lt_save_allow_undefined_flag=$allow_undefined_flag
10611 allow_undefined_flag=
10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10613 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616 test $ac_status = 0; }
10618 lt_cv_archive_cmds_need_lc=no
10620 lt_cv_archive_cmds_need_lc=yes
10622 allow_undefined_flag=$lt_save_allow_undefined_flag
10624 cat conftest.err 1>&5
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10630 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10631 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10790 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10792 if test "$GCC" = yes; then
10794 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10795 *) lt_awk_arg="/^libraries:/" ;;
10798 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10799 *) lt_sed_strip_eq="s,=/,/,g" ;;
10801 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10802 case $lt_search_path_spec in
10804 # if the path contains ";" then we assume it to be the separator
10805 # otherwise default to the standard path separator (i.e. ":") - it is
10806 # assumed that no part of a normal pathname contains ";" but that should
10807 # okay in the real world where ";" in dirpaths is itself problematic.
10808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10811 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10814 # Ok, now we have the path, separated by spaces, we can step through it
10815 # and add multilib dir if necessary.
10816 lt_tmp_lt_search_path_spec=
10817 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10818 for lt_sys_path in $lt_search_path_spec; do
10819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10822 test -d "$lt_sys_path" && \
10823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10826 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10827 BEGIN {RS=" "; FS="/|\n";} {
10830 for (lt_i = NF; lt_i > 0; lt_i--) {
10831 if ($lt_i != "" && $lt_i != ".") {
10832 if ($lt_i == "..") {
10835 if (lt_count == 0) {
10836 lt_foo="/" $lt_i lt_foo;
10843 if (lt_foo != "") { lt_freq[lt_foo]++; }
10844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10846 # AWK program above erroneously prepends '/' to C:/dos/paths
10849 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10850 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10852 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10856 library_names_spec=
10857 libname_spec='lib$name'
10861 postuninstall_cmds=
10865 shlibpath_overrides_runpath=unknown
10867 dynamic_linker="$host_os ld.so"
10868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10869 need_lib_prefix=unknown
10870 hardcode_into_libs=no
10872 # when you set need_version to no, make sure it does not cause -set_version
10873 # flags to be left without arguments
10874 need_version=unknown
10878 version_type=linux # correct to gnu/linux during the next big refactor
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10880 shlibpath_var=LIBPATH
10882 # AIX 3 has no versioning support, so we append a major version to the name.
10883 soname_spec='${libname}${release}${shared_ext}$major'
10887 version_type=linux # correct to gnu/linux during the next big refactor
10890 hardcode_into_libs=yes
10891 if test "$host_cpu" = ia64; then
10892 # AIX 5 supports IA64
10893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10894 shlibpath_var=LD_LIBRARY_PATH
10896 # With GCC up to 2.95.x, collect2 would create an import file
10897 # for dependence libraries. The import file would start with
10898 # the line `#! .'. This would cause the generated library to
10899 # depend on `.', always an invalid library. This was fixed in
10900 # development snapshots of GCC prior to 3.0.
10902 aix4 | aix4.[01] | aix4.[01].*)
10903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10908 can_build_shared=no
10912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10913 # soname into executable. Probably we can add versioning support to
10914 # collect2, so additional links can be useful in future.
10915 if test "$aix_use_runtimelinking" = yes; then
10916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10917 # instead of lib<name>.a to let people know that these are not
10918 # typical AIX shared libraries.
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921 # We preserve .a as extension for shared libraries through AIX4.2
10922 # and later when we are not doing run time linking.
10923 library_names_spec='${libname}${release}.a $libname.a'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LIBPATH
10933 # Since July 2007 AmigaOS4 officially supports .so libraries.
10934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 library_names_spec='$libname.ixlibrary $libname.a'
10939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10940 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'
10946 library_names_spec='${libname}${shared_ext}'
10947 dynamic_linker="$host_os ld.so"
10948 shlibpath_var=LIBRARY_PATH
10952 version_type=linux # correct to gnu/linux during the next big refactor
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10960 # the default ld.so.conf also contains /usr/contrib/lib and
10961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10962 # libtool to hard-code these into programs
10965 cygwin* | mingw* | pw32* | cegcc*)
10966 version_type=windows
10971 case $GCC,$cc_basename in
10974 library_names_spec='$libname.dll.a'
10975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10976 postinstall_cmds='base_file=`basename \${file}`~
10977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10978 dldir=$destdir/`dirname \$dlpath`~
10979 test -d \$dldir || mkdir -p \$dldir~
10980 $install_prog $dir/$dlname \$dldir/$dlname~
10981 chmod a+x \$dldir/$dlname~
10982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10986 dlpath=$dir/\$dldll~
10988 shlibpath_overrides_runpath=yes
10992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10998 # MinGW DLLs use traditional 'lib' prefix
10999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11002 # pw32 DLLs use 'pw' prefix rather than 'lib'
11003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11006 dynamic_linker='Win32 ld.exe'
11011 libname_spec='$name'
11012 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11013 library_names_spec='${libname}.dll.lib'
11017 sys_lib_search_path_spec=
11020 for lt_path in $LIB
11023 # Let DOS variable expansion print the short 8.3 style file name.
11024 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11025 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11028 # Convert to MSYS style.
11029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11032 # Convert to unix form, then to dos form, then back to unix form
11033 # but this time dos style (no spaces!) so that the unix form looks
11034 # like /cygdrive/c/PROGRA~1:/cygdr...
11035 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11036 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11037 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11040 sys_lib_search_path_spec="$LIB"
11041 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11042 # It is most probably a Windows format PATH.
11043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11047 # FIXME: find the short name or the path components, as spaces are
11048 # common. (e.g. "Program Files" -> "PROGRA~1")
11052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11053 postinstall_cmds='base_file=`basename \${file}`~
11054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11055 dldir=$destdir/`dirname \$dlpath`~
11056 test -d \$dldir || mkdir -p \$dldir~
11057 $install_prog $dir/$dlname \$dldir/$dlname'
11058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11059 dlpath=$dir/\$dldll~
11061 shlibpath_overrides_runpath=yes
11062 dynamic_linker='Win32 link.exe'
11066 # Assume MSVC wrapper
11067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11068 dynamic_linker='Win32 ld.exe'
11071 # FIXME: first we should search . and the directory the executable is in
11075 darwin* | rhapsody*)
11076 dynamic_linker="$host_os dyld"
11077 version_type=darwin
11080 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11081 soname_spec='${libname}${release}${major}$shared_ext'
11082 shlibpath_overrides_runpath=yes
11083 shlibpath_var=DYLD_LIBRARY_PATH
11084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11091 version_type=linux # correct to gnu/linux during the next big refactor
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11099 freebsd* | dragonfly*)
11100 # DragonFly does not have aout. When/if they implement a new
11101 # versioning mechanism, adjust this.
11102 if test -x /usr/bin/objformat; then
11103 objformat=`/usr/bin/objformat`
11106 freebsd[23].*) objformat=aout ;;
11107 *) objformat=elf ;;
11110 version_type=freebsd-$objformat
11111 case $version_type in
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11122 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11127 freebsd3.[01]* | freebsdelf3.[01]*)
11128 shlibpath_overrides_runpath=yes
11129 hardcode_into_libs=yes
11131 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11132 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11133 shlibpath_overrides_runpath=no
11134 hardcode_into_libs=yes
11136 *) # from 4.6 on, and DragonFly
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11144 version_type=linux # correct to gnu/linux during the next big refactor
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=no
11151 hardcode_into_libs=yes
11155 version_type=linux # correct to gnu/linux during the next big refactor
11158 dynamic_linker="$host_os runtime_loader"
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11164 hardcode_into_libs=yes
11167 hpux9* | hpux10* | hpux11*)
11168 # Give a soname corresponding to the major version so that dld.sl refuses to
11169 # link against other versions.
11176 hardcode_into_libs=yes
11177 dynamic_linker="$host_os dld.so"
11178 shlibpath_var=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 if test "X$HPUX_IA64_MODE" = X32; then
11183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11191 hardcode_into_libs=yes
11192 dynamic_linker="$host_os dld.sl"
11193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11202 dynamic_linker="$host_os dld.sl"
11203 shlibpath_var=SHLIB_PATH
11204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11210 postinstall_cmds='chmod 555 $lib'
11211 # or fails outright, so override atomically:
11212 install_override_mode=555
11216 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11227 irix5* | irix6* | nonstopux*)
11229 nonstopux*) version_type=nonstopux ;;
11231 if test "$lt_cv_prog_gnu_ld" = yes; then
11232 version_type=linux # correct to gnu/linux during the next big refactor
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 irix5* | nonstopux*)
11243 libsuff= shlibsuff=
11246 case $LD in # libtool.m4 will add one of these switches to LD
11247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248 libsuff= shlibsuff= libmagic=32-bit;;
11249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250 libsuff=32 shlibsuff=N32 libmagic=N32;;
11251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253 *) libsuff= shlibsuff= libmagic=never-match;;
11257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258 shlibpath_overrides_runpath=no
11259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11261 hardcode_into_libs=yes
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11269 # This must be glibc/ELF.
11270 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=no
11280 # Some binutils ld are patched to set DT_RUNPATH
11281 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11282 $as_echo_n "(cached) " >&6
11284 lt_cv_shlibpath_overrides_runpath=no
11285 save_LDFLAGS=$LDFLAGS
11286 save_libdir=$libdir
11287 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11288 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11302 lt_cv_shlibpath_overrides_runpath=yes
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LDFLAGS=$save_LDFLAGS
11308 libdir=$save_libdir
11312 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11314 # This implies no fast_install, which is unacceptable.
11315 # Some rework will be needed to allow for fast_install
11316 # before this can be enabled.
11317 hardcode_into_libs=yes
11319 # Append ld.so.conf contents to the search path
11320 if test -f /etc/ld.so.conf; then
11321 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' ' '`
11322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11325 # We used to test for /lib/ld.so.1 and disable shared libraries on
11326 # powerpc, because MkLinux only supported shared libraries with the
11327 # GNU dynamic linker. Since this was broken with cross compilers,
11328 # most powerpc-linux boxes support dynamic linking these days and
11329 # people can always --disable-shared, the test was removed, and we
11330 # assume the GNU/Linux dynamic linker is in use.
11331 dynamic_linker='GNU/Linux ld.so'
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath=no
11342 hardcode_into_libs=yes
11343 dynamic_linker='NetBSD ld.elf_so'
11350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 dynamic_linker='NetBSD (a.out) ld.so'
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 dynamic_linker='NetBSD ld.elf_so'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=yes
11361 hardcode_into_libs=yes
11365 version_type=linux # correct to gnu/linux during the next big refactor
11366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=yes
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=no
11379 hardcode_into_libs=yes
11380 dynamic_linker='ldqnx.so'
11385 sys_lib_dlsearch_path_spec="/usr/lib"
11387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11390 *) need_version=no ;;
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11397 openbsd2.[89] | openbsd2.[89].*)
11398 shlibpath_overrides_runpath=no
11401 shlibpath_overrides_runpath=yes
11405 shlibpath_overrides_runpath=yes
11410 libname_spec='$name'
11413 library_names_spec='$libname${shared_ext} $libname.a'
11414 dynamic_linker='OS/2 ld.exe'
11415 shlibpath_var=LIBPATH
11418 osf3* | osf4* | osf5*)
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11434 version_type=linux # correct to gnu/linux during the next big refactor
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 # ldd complains unless libraries are executable
11443 postinstall_cmds='chmod +x $lib'
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 if test "$with_gnu_ld" = yes; then
11459 version_type=linux # correct to gnu/linux during the next big refactor
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 case $host_vendor in
11465 shlibpath_overrides_runpath=no
11467 runpath_var=LD_RUN_PATH
11475 shlibpath_overrides_runpath=no
11476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11482 if test -d /usr/nec ;then
11483 version_type=linux # correct to gnu/linux during the next big refactor
11484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11485 soname_spec='$libname${shared_ext}.$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491 version_type=freebsd-elf
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11498 hardcode_into_libs=yes
11499 if test "$with_gnu_ld" = yes; then
11500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11509 sys_lib_dlsearch_path_spec='/usr/lib'
11513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11514 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535 $as_echo "$dynamic_linker" >&6; }
11536 test "$dynamic_linker" = no && can_build_shared=no
11538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 if test "$GCC" = yes; then
11540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11546 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11644 if test -n "$hardcode_libdir_flag_spec" ||
11645 test -n "$runpath_var" ||
11646 test "X$hardcode_automatic" = "Xyes" ; then
11648 # We can hardcode non-existent directories.
11649 if test "$hardcode_direct" != no &&
11650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11651 # have to relink, otherwise we might link with an installed library
11652 # when we should be linking with a yet-to-be-installed one
11653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11654 test "$hardcode_minus_L" != no; then
11655 # Linking always hardcodes the temporary library directory.
11656 hardcode_action=relink
11658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11659 hardcode_action=immediate
11662 # We cannot hardcode anything, or else we can only hardcode existing
11664 hardcode_action=unsupported
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11667 $as_echo "$hardcode_action" >&6; }
11669 if test "$hardcode_action" = relink ||
11670 test "$inherit_rpath" = yes; then
11671 # Fast installation is not supported
11672 enable_fast_install=no
11673 elif test "$shlibpath_overrides_runpath" = yes ||
11674 test "$enable_shared" = no; then
11675 # Fast installation is not necessary
11676 enable_fast_install=needless
11684 if test "x$enable_dlopen" != xyes; then
11685 enable_dlopen=unknown
11686 enable_dlopen_self=unknown
11687 enable_dlopen_self_static=unknown
11694 lt_cv_dlopen="load_add_on"
11696 lt_cv_dlopen_self=yes
11699 mingw* | pw32* | cegcc*)
11700 lt_cv_dlopen="LoadLibrary"
11705 lt_cv_dlopen="dlopen"
11710 # if libdl is installed we need to link against it
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11713 if ${ac_cv_lib_dl_dlopen+:} false; then :
11714 $as_echo_n "(cached) " >&6
11716 ac_check_lib_save_LIBS=$LIBS
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 /* Override any GCC internal prototype to avoid an error.
11722 Use char because int might match the return type of a GCC
11723 builtin and then its argument prototype would still apply. */
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_lib_dl_dlopen=yes
11739 ac_cv_lib_dl_dlopen=no
11741 rm -f core conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11751 lt_cv_dlopen="dyld"
11753 lt_cv_dlopen_self=yes
11760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11761 if test "x$ac_cv_func_shl_load" = xyes; then :
11762 lt_cv_dlopen="shl_load"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11765 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11766 if ${ac_cv_lib_dld_shl_load+:} false; then :
11767 $as_echo_n "(cached) " >&6
11769 ac_check_lib_save_LIBS=$LIBS
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11784 return shl_load ();
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 ac_cv_lib_dld_shl_load=yes
11792 ac_cv_lib_dld_shl_load=no
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11799 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11800 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11803 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11804 if test "x$ac_cv_func_dlopen" = xyes; then :
11805 lt_cv_dlopen="dlopen"
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11809 if ${ac_cv_lib_dl_dlopen+:} false; then :
11810 $as_echo_n "(cached) " >&6
11812 ac_check_lib_save_LIBS=$LIBS
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11817 /* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11832 if ac_fn_c_try_link "$LINENO"; then :
11833 ac_cv_lib_dl_dlopen=yes
11835 ac_cv_lib_dl_dlopen=no
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 LIBS=$ac_check_lib_save_LIBS
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11843 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11847 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11848 if ${ac_cv_lib_svld_dlopen+:} false; then :
11849 $as_echo_n "(cached) " >&6
11851 ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-lsvld $LIBS"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11856 /* Override any GCC internal prototype to avoid an error.
11857 Use char because int might match the return type of a GCC
11858 builtin and then its argument prototype would still apply. */
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_lib_svld_dlopen=yes
11874 ac_cv_lib_svld_dlopen=no
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878 LIBS=$ac_check_lib_save_LIBS
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11881 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11882 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11886 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11887 if ${ac_cv_lib_dld_dld_link+:} false; then :
11888 $as_echo_n "(cached) " >&6
11890 ac_check_lib_save_LIBS=$LIBS
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11905 return dld_link ();
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_lib_dld_dld_link=yes
11913 ac_cv_lib_dld_dld_link=no
11915 rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11920 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11921 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11943 if test "x$lt_cv_dlopen" != xno; then
11949 case $lt_cv_dlopen in
11951 save_CPPFLAGS="$CPPFLAGS"
11952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11954 save_LDFLAGS="$LDFLAGS"
11955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11958 LIBS="$lt_cv_dlopen_libs $LIBS"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11961 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11962 if ${lt_cv_dlopen_self+:} false; then :
11963 $as_echo_n "(cached) " >&6
11965 if test "$cross_compiling" = yes; then :
11966 lt_cv_dlopen_self=cross
11968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11969 lt_status=$lt_dlunknown
11970 cat > conftest.$ac_ext <<_LT_EOF
11971 #line $LINENO "configure"
11972 #include "confdefs.h"
11981 # define LT_DLGLOBAL RTLD_GLOBAL
11984 # define LT_DLGLOBAL DL_GLOBAL
11986 # define LT_DLGLOBAL 0
11990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11991 find out it does not work in some platform. */
11992 #ifndef LT_DLLAZY_OR_NOW
11994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11997 # define LT_DLLAZY_OR_NOW DL_LAZY
12000 # define LT_DLLAZY_OR_NOW RTLD_NOW
12003 # define LT_DLLAZY_OR_NOW DL_NOW
12005 # define LT_DLLAZY_OR_NOW 0
12012 /* When -fvisbility=hidden is used, assume the code has been annotated
12013 correspondingly for the symbols needed. */
12014 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12015 int fnord () __attribute__((visibility("default")));
12018 int fnord () { return 42; }
12021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12022 int status = $lt_dlunknown;
12026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12030 else puts (dlerror ());
12032 /* dlclose (self); */
12040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12041 (eval $ac_link) 2>&5
12043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12045 (./conftest; exit; ) >&5 2>/dev/null
12047 case x$lt_status in
12048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12053 # compilation failed
12054 lt_cv_dlopen_self=no
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12062 $as_echo "$lt_cv_dlopen_self" >&6; }
12064 if test "x$lt_cv_dlopen_self" = xyes; then
12065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12067 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12068 if ${lt_cv_dlopen_self_static+:} false; then :
12069 $as_echo_n "(cached) " >&6
12071 if test "$cross_compiling" = yes; then :
12072 lt_cv_dlopen_self_static=cross
12074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12075 lt_status=$lt_dlunknown
12076 cat > conftest.$ac_ext <<_LT_EOF
12077 #line $LINENO "configure"
12078 #include "confdefs.h"
12087 # define LT_DLGLOBAL RTLD_GLOBAL
12090 # define LT_DLGLOBAL DL_GLOBAL
12092 # define LT_DLGLOBAL 0
12096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12097 find out it does not work in some platform. */
12098 #ifndef LT_DLLAZY_OR_NOW
12100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12103 # define LT_DLLAZY_OR_NOW DL_LAZY
12106 # define LT_DLLAZY_OR_NOW RTLD_NOW
12109 # define LT_DLLAZY_OR_NOW DL_NOW
12111 # define LT_DLLAZY_OR_NOW 0
12118 /* When -fvisbility=hidden is used, assume the code has been annotated
12119 correspondingly for the symbols needed. */
12120 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12121 int fnord () __attribute__((visibility("default")));
12124 int fnord () { return 42; }
12127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12128 int status = $lt_dlunknown;
12132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12136 else puts (dlerror ());
12138 /* dlclose (self); */
12146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12147 (eval $ac_link) 2>&5
12149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12151 (./conftest; exit; ) >&5 2>/dev/null
12153 case x$lt_status in
12154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12159 # compilation failed
12160 lt_cv_dlopen_self_static=no
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12171 CPPFLAGS="$save_CPPFLAGS"
12172 LDFLAGS="$save_LDFLAGS"
12177 case $lt_cv_dlopen_self in
12178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12179 *) enable_dlopen_self=unknown ;;
12182 case $lt_cv_dlopen_self_static in
12183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12184 *) enable_dlopen_self_static=unknown ;;
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 $as_echo "yes" >&6; }
12214 # FIXME - insert some real tests, host_os isn't really good enough
12217 if test -n "$STRIP" ; then
12218 striplib="$STRIP -x"
12219 old_striplib="$STRIP -S"
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12245 # Report which library types will actually be built
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12249 $as_echo "$can_build_shared" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12252 $as_echo_n "checking whether to build shared libraries... " >&6; }
12253 test "$can_build_shared" = "no" && enable_shared=no
12255 # On AIX, shared libraries and static libraries use the same namespace, and
12256 # are all built from PIC.
12259 test "$enable_shared" = yes && enable_static=no
12260 if test -n "$RANLIB"; then
12261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12262 postinstall_cmds='$RANLIB $lib'
12267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12268 test "$enable_shared" = yes && enable_static=no
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12273 $as_echo "$enable_shared" >&6; }
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12276 $as_echo_n "checking whether to build static libraries... " >&6; }
12277 # Make sure either enable_shared or enable_static is yes.
12278 test "$enable_shared" = yes || enable_static=yes
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12280 $as_echo "$enable_static" >&6; }
12287 ac_cpp='$CPP $CPPFLAGS'
12288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12295 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12296 (test "X$CXX" != "Xg++"))) ; then
12298 ac_cpp='$CXXCPP $CPPFLAGS'
12299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12303 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12304 if test -z "$CXXCPP"; then
12305 if ${ac_cv_prog_CXXCPP+:} false; then :
12306 $as_echo_n "(cached) " >&6
12308 # Double quotes because CXXCPP needs to be expanded
12309 for CXXCPP in "$CXX -E" "/lib/cpp"
12311 ac_preproc_ok=false
12312 for ac_cxx_preproc_warn_flag in '' yes
12314 # Use a header file that comes with gcc, so configuring glibc
12315 # with a fresh cross-compiler works.
12316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 # <limits.h> exists even on freestanding compilers.
12318 # On the NeXT, cc -E runs the code through the compiler's parser,
12319 # not just through cpp. "Syntax error" is here to catch this case.
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 @%:@ include <limits.h>
12325 @%:@ include <assert.h>
12329 if ac_fn_cxx_try_cpp "$LINENO"; then :
12332 # Broken: fails on valid input.
12335 rm -f conftest.err conftest.i conftest.$ac_ext
12337 # OK, works on sane cases. Now check whether nonexistent headers
12338 # can be detected and how.
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 @%:@include <ac_nonexistent.h>
12343 if ac_fn_cxx_try_cpp "$LINENO"; then :
12344 # Broken: success on invalid input.
12347 # Passes both tests.
12351 rm -f conftest.err conftest.i conftest.$ac_ext
12354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12355 rm -f conftest.i conftest.err conftest.$ac_ext
12356 if $ac_preproc_ok; then :
12361 ac_cv_prog_CXXCPP=$CXXCPP
12364 CXXCPP=$ac_cv_prog_CXXCPP
12366 ac_cv_prog_CXXCPP=$CXXCPP
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12369 $as_echo "$CXXCPP" >&6; }
12370 ac_preproc_ok=false
12371 for ac_cxx_preproc_warn_flag in '' yes
12373 # Use a header file that comes with gcc, so configuring glibc
12374 # with a fresh cross-compiler works.
12375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12376 # <limits.h> exists even on freestanding compilers.
12377 # On the NeXT, cc -E runs the code through the compiler's parser,
12378 # not just through cpp. "Syntax error" is here to catch this case.
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12382 @%:@ include <limits.h>
12384 @%:@ include <assert.h>
12388 if ac_fn_cxx_try_cpp "$LINENO"; then :
12391 # Broken: fails on valid input.
12394 rm -f conftest.err conftest.i conftest.$ac_ext
12396 # OK, works on sane cases. Now check whether nonexistent headers
12397 # can be detected and how.
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 @%:@include <ac_nonexistent.h>
12402 if ac_fn_cxx_try_cpp "$LINENO"; then :
12403 # Broken: success on invalid input.
12406 # Passes both tests.
12410 rm -f conftest.err conftest.i conftest.$ac_ext
12413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12414 rm -f conftest.i conftest.err conftest.$ac_ext
12415 if $ac_preproc_ok; then :
12418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12420 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12421 See \`config.log' for more details" "$LINENO" 5; }
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431 _lt_caught_CXX_error=yes
12435 ac_cpp='$CXXCPP $CPPFLAGS'
12436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12440 archive_cmds_need_lc_CXX=no
12441 allow_undefined_flag_CXX=
12442 always_export_symbols_CXX=no
12443 archive_expsym_cmds_CXX=
12444 compiler_needs_object_CXX=no
12445 export_dynamic_flag_spec_CXX=
12446 hardcode_direct_CXX=no
12447 hardcode_direct_absolute_CXX=no
12448 hardcode_libdir_flag_spec_CXX=
12449 hardcode_libdir_separator_CXX=
12450 hardcode_minus_L_CXX=no
12451 hardcode_shlibpath_var_CXX=unsupported
12452 hardcode_automatic_CXX=no
12453 inherit_rpath_CXX=no
12455 module_expsym_cmds_CXX=
12456 link_all_deplibs_CXX=unknown
12457 old_archive_cmds_CXX=$old_archive_cmds
12458 reload_flag_CXX=$reload_flag
12459 reload_cmds_CXX=$reload_cmds
12460 no_undefined_flag_CXX=
12461 whole_archive_flag_spec_CXX=
12462 enable_shared_with_static_runtimes_CXX=no
12464 # Source file extension for C++ test sources.
12467 # Object file extension for compiled C++ test sources.
12471 # No sense in running all these tests if we already determined that
12472 # the CXX compiler isn't working. Some variables (like enable_shared)
12473 # are currently assumed to apply to all compilers on this platform,
12474 # and will be corrupted by setting them based on a non-working compiler.
12475 if test "$_lt_caught_CXX_error" != yes; then
12476 # Code to be used in simple compile tests
12477 lt_simple_compile_test_code="int some_variable = 0;"
12479 # Code to be used in simple link tests
12480 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12482 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12489 # If no C compiler was specified, use CC.
12492 # If no C compiler flags were specified, use CFLAGS.
12493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12495 # Allow CC to be a program name with arguments.
12499 # save warnings/boilerplate of simple test code
12500 ac_outfile=conftest.$ac_objext
12501 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12502 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12503 _lt_compiler_boilerplate=`cat conftest.err`
12506 ac_outfile=conftest.$ac_objext
12507 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12508 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12509 _lt_linker_boilerplate=`cat conftest.err`
12513 # Allow CC to be a program name with arguments.
12515 lt_save_CFLAGS=$CFLAGS
12519 lt_save_with_gnu_ld=$with_gnu_ld
12520 lt_save_path_LD=$lt_cv_path_LD
12521 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12522 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12524 $as_unset lt_cv_prog_gnu_ld
12526 if test -n "${lt_cv_path_LDCXX+set}"; then
12527 lt_cv_path_LD=$lt_cv_path_LDCXX
12529 $as_unset lt_cv_path_LD
12531 test -z "${LDCXX+set}" || LD=$LDCXX
12536 for cc_temp in $compiler""; do
12538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12544 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12547 if test -n "$compiler"; then
12548 # We don't want -fno-exception when compiling C++ code, so set the
12549 # no_builtin_flag separately
12550 if test "$GXX" = yes; then
12551 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12553 lt_prog_compiler_no_builtin_flag_CXX=
12556 if test "$GXX" = yes; then
12557 # Set up default GNU C++ configuration
12561 @%:@ Check whether --with-gnu-ld was given.
12562 if test "${with_gnu_ld+set}" = set; then :
12563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12569 if test "$GCC" = yes; then
12570 # Check if gcc -print-prog-name=ld gives a path.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12572 $as_echo_n "checking for ld used by $CC... " >&6; }
12575 # gcc leaves a trailing carriage return which upsets mingw
12576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12581 # Accept absolute paths.
12583 re_direlt='/[^/][^/]*/\.\./'
12584 # Canonicalize the pathname of ld
12585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12589 test -z "$LD" && LD="$ac_prog"
12592 # If it fails, then pretend we aren't using GCC.
12596 # If it is relative, then search for the first ld in PATH.
12597 with_gnu_ld=unknown
12600 elif test "$with_gnu_ld" = yes; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12602 $as_echo_n "checking for GNU ld... " >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12605 $as_echo_n "checking for non-GNU ld... " >&6; }
12607 if ${lt_cv_path_LD+:} false; then :
12608 $as_echo_n "(cached) " >&6
12610 if test -z "$LD"; then
12611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12612 for ac_dir in $PATH; do
12614 test -z "$ac_dir" && ac_dir=.
12615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12616 lt_cv_path_LD="$ac_dir/$ac_prog"
12617 # Check to see if the program is GNU ld. I'd rather use --version,
12618 # but apparently some variants of GNU ld only accept -v.
12619 # Break only if it was the GNU/non-GNU ld that we prefer.
12620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12621 *GNU* | *'with BFD'*)
12622 test "$with_gnu_ld" != no && break
12625 test "$with_gnu_ld" != yes && break
12632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12636 LD="$lt_cv_path_LD"
12637 if test -n "$LD"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12639 $as_echo "$LD" >&6; }
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12644 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12647 if ${lt_cv_prog_gnu_ld+:} false; then :
12648 $as_echo_n "(cached) " >&6
12650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12651 case `$LD -v 2>&1 </dev/null` in
12652 *GNU* | *'with BFD'*)
12653 lt_cv_prog_gnu_ld=yes
12656 lt_cv_prog_gnu_ld=no
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12662 with_gnu_ld=$lt_cv_prog_gnu_ld
12670 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12671 # archiving commands below assume that GNU ld is being used.
12672 if test "$with_gnu_ld" = yes; then
12673 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 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'
12676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12679 # If archive_cmds runs LD, not CC, wlarc should be empty
12680 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12681 # investigate it a little bit more. (MM)
12684 # ancient GNU ld didn't support --whole-archive et. al.
12685 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12686 $GREP 'no-whole-archive' > /dev/null; then
12687 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12689 whole_archive_flag_spec_CXX=
12695 # A generic and very simple default shared library creation
12696 # command for GNU C++ for the case where it uses the native
12697 # linker, instead of GNU ld. If possible, this setting should
12698 # overridden to take advantage of the native linker features on
12699 # the platform it is being used on.
12700 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12714 # PORTME: fill in a description of your system's C++ link characteristics
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12720 # FIXME: insert proper C++ library support
12724 if test "$host_cpu" = ia64; then
12725 # On IA64, the linker does run time linking by default, so we don't
12726 # have to do anything special.
12727 aix_use_runtimelinking=no
12728 exp_sym_flag='-Bexport'
12731 aix_use_runtimelinking=no
12733 # Test if we are trying to use run time linking or normal
12734 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12735 # need to do runtime linking.
12736 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12737 for ld_flag in $LDFLAGS; do
12740 aix_use_runtimelinking=yes
12748 exp_sym_flag='-bexport'
12749 no_entry_flag='-bnoentry'
12752 # When large executables or shared objects are built, AIX ld can
12753 # have problems creating the table of contents. If linking a library
12754 # or program results in "error TOC overflow" add -mminimal-toc to
12755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12758 archive_cmds_CXX=''
12759 hardcode_direct_CXX=yes
12760 hardcode_direct_absolute_CXX=yes
12761 hardcode_libdir_separator_CXX=':'
12762 link_all_deplibs_CXX=yes
12763 file_list_spec_CXX='${wl}-f,'
12765 if test "$GXX" = yes; then
12766 case $host_os in aix4.[012]|aix4.[012].*)
12767 # We only want to do this on AIX 4.2 and lower, the check
12768 # below for broken collect2 doesn't work under 4.3+
12769 collect2name=`${CC} -print-prog-name=collect2`
12770 if test -f "$collect2name" &&
12771 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12773 # We have reworked collect2
12776 # We have old collect2
12777 hardcode_direct_CXX=unsupported
12778 # It fails to find uninstalled libraries when the uninstalled
12779 # path is not listed in the libpath. Setting hardcode_minus_L
12780 # to unsupported forces relinking
12781 hardcode_minus_L_CXX=yes
12782 hardcode_libdir_flag_spec_CXX='-L$libdir'
12783 hardcode_libdir_separator_CXX=
12786 shared_flag='-shared'
12787 if test "$aix_use_runtimelinking" = yes; then
12788 shared_flag="$shared_flag "'${wl}-G'
12792 if test "$host_cpu" = ia64; then
12793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12794 # chokes on -Wl,-G. The following line is correct:
12797 if test "$aix_use_runtimelinking" = yes; then
12798 shared_flag='${wl}-G'
12800 shared_flag='${wl}-bM:SRE'
12805 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12806 # It seems that -bexpall does not export symbols beginning with
12807 # underscore (_), so it is better to generate a list of symbols to
12809 always_export_symbols_CXX=yes
12810 if test "$aix_use_runtimelinking" = yes; then
12811 # Warning - without using the other runtime loading flags (-brtl),
12812 # -berok will link without error, but may produce a broken library.
12813 allow_undefined_flag_CXX='-berok'
12814 # Determine the default libpath from the value encoded in an empty
12816 if test "${lt_cv_aix_libpath+set}" = set; then
12817 aix_libpath=$lt_cv_aix_libpath
12819 if ${lt_cv_aix_libpath__CXX+:} false; then :
12820 $as_echo_n "(cached) " >&6
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12833 if ac_fn_cxx_try_link "$LINENO"; then :
12835 lt_aix_libpath_sed='
12836 /Import File Strings/,/^$/ {
12838 s/^0 *\([^ ]*\) *$/\1/
12842 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843 # Check for a 64-bit object if we didn't find anything.
12844 if test -z "$lt_cv_aix_libpath__CXX"; then
12845 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 if test -z "$lt_cv_aix_libpath__CXX"; then
12851 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12856 aix_libpath=$lt_cv_aix_libpath__CXX
12859 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12861 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"
12863 if test "$host_cpu" = ia64; then
12864 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12865 allow_undefined_flag_CXX="-z nodefs"
12866 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"
12868 # Determine the default libpath from the value encoded in an
12869 # empty executable.
12870 if test "${lt_cv_aix_libpath+set}" = set; then
12871 aix_libpath=$lt_cv_aix_libpath
12873 if ${lt_cv_aix_libpath__CXX+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12887 if ac_fn_cxx_try_link "$LINENO"; then :
12889 lt_aix_libpath_sed='
12890 /Import File Strings/,/^$/ {
12892 s/^0 *\([^ ]*\) *$/\1/
12896 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12897 # Check for a 64-bit object if we didn't find anything.
12898 if test -z "$lt_cv_aix_libpath__CXX"; then
12899 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12902 rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 if test -z "$lt_cv_aix_libpath__CXX"; then
12905 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12910 aix_libpath=$lt_cv_aix_libpath__CXX
12913 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12914 # Warning - without using the other run time loading flags,
12915 # -berok will link without error, but may produce a broken library.
12916 no_undefined_flag_CXX=' ${wl}-bernotok'
12917 allow_undefined_flag_CXX=' ${wl}-berok'
12918 if test "$with_gnu_ld" = yes; then
12919 # We only use this code for GNU lds that support --whole-archive.
12920 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12922 # Exported symbols can be pulled into shared objects from archives
12923 whole_archive_flag_spec_CXX='$convenience'
12925 archive_cmds_need_lc_CXX=yes
12926 # This is similar to how AIX traditionally builds its shared
12928 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'
12934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12935 allow_undefined_flag_CXX=unsupported
12936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12937 # support --undefined. This deserves some investigation. FIXME
12938 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 case $cc_basename in
12947 # FIXME: insert proper C++ library support
12953 cygwin* | mingw* | pw32* | cegcc*)
12954 case $GXX,$cc_basename in
12957 # hardcode_libdir_flag_spec is actually meaningless, as there is
12958 # no search path for DLLs.
12959 hardcode_libdir_flag_spec_CXX=' '
12960 allow_undefined_flag_CXX=unsupported
12961 always_export_symbols_CXX=yes
12962 file_list_spec_CXX='@'
12963 # Tell ltmain to make .lib files, not .a files.
12965 # Tell ltmain to make .dll files, not .so files.
12967 # FIXME: Setting linknames here is a bad hack.
12968 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12969 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12972 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12974 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12976 # The linker will not automatically build a static lib if we build a DLL.
12977 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12978 enable_shared_with_static_runtimes_CXX=yes
12980 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12981 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12982 lt_tool_outputfile="@TOOL_OUTPUT@"~
12983 case $lt_outputfile in
12986 lt_outputfile="$lt_outputfile.exe"
12987 lt_tool_outputfile="$lt_tool_outputfile.exe"
12990 func_to_tool_file "$lt_outputfile"~
12991 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12992 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12993 $RM "$lt_outputfile.manifest";
12998 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12999 # as there is no search path for DLLs.
13000 hardcode_libdir_flag_spec_CXX='-L$libdir'
13001 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13002 allow_undefined_flag_CXX=unsupported
13003 always_export_symbols_CXX=no
13004 enable_shared_with_static_runtimes_CXX=yes
13006 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13007 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'
13008 # If the export-symbols file already is a .def file (1st line
13009 # is EXPORTS), use it as is; otherwise, prepend...
13010 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13011 cp $export_symbols $output_objdir/$soname.def;
13013 echo EXPORTS > $output_objdir/$soname.def;
13014 cat $export_symbols >> $output_objdir/$soname.def;
13016 $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'
13023 darwin* | rhapsody*)
13026 archive_cmds_need_lc_CXX=no
13027 hardcode_direct_CXX=no
13028 hardcode_automatic_CXX=yes
13029 hardcode_shlibpath_var_CXX=unsupported
13030 if test "$lt_cv_ld_force_load" = "yes"; then
13031 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\"`'
13034 whole_archive_flag_spec_CXX=''
13036 link_all_deplibs_CXX=yes
13037 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13038 case $cc_basename in
13039 ifort*) _lt_dar_can_shared=yes ;;
13040 *) _lt_dar_can_shared=$GCC ;;
13042 if test "$_lt_dar_can_shared" = "yes"; then
13043 output_verbose_link_cmd=func_echo_all
13044 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}"
13045 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13046 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}"
13047 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}"
13048 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13049 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}"
13050 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}"
13060 case $cc_basename in
13062 # FIXME: insert proper C++ library support
13066 # Green Hills C++ Compiler
13067 # FIXME: insert proper C++ library support
13071 # FIXME: insert proper C++ library support
13078 # C++ shared libraries reported to be fairly broken before
13084 archive_cmds_need_lc_CXX=no
13087 freebsd* | dragonfly*)
13088 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13097 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 link_all_deplibs_CXX=yes
13102 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13103 hardcode_libdir_separator_CXX=:
13104 export_dynamic_flag_spec_CXX='${wl}-E'
13105 hardcode_direct_CXX=yes
13106 hardcode_minus_L_CXX=yes # Not in the search PATH,
13107 # but as the default
13108 # location of the library.
13110 case $cc_basename in
13112 # FIXME: insert proper C++ library support
13116 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'
13117 # Commands to make compiler produce verbose output that lists
13118 # what "hidden" libraries, object files and flags are used when
13119 # linking a shared library.
13121 # There doesn't appear to be a way to prevent this compiler from
13122 # explicitly linking system object files so we need to strip them
13123 # from the output so that they don't get included in the library
13125 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"'
13128 if test "$GXX" = yes; then
13129 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'
13131 # FIXME: insert proper C++ library support
13139 if test $with_gnu_ld = no; then
13140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13141 hardcode_libdir_separator_CXX=:
13147 export_dynamic_flag_spec_CXX='${wl}-E'
13153 hardcode_direct_CXX=no
13154 hardcode_shlibpath_var_CXX=no
13157 hardcode_direct_CXX=yes
13158 hardcode_direct_absolute_CXX=yes
13159 hardcode_minus_L_CXX=yes # Not in the search PATH,
13160 # but as the default
13161 # location of the library.
13165 case $cc_basename in
13167 # FIXME: insert proper C++ library support
13173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13182 # Commands to make compiler produce verbose output that lists
13183 # what "hidden" libraries, object files and flags are used when
13184 # linking a shared library.
13186 # There doesn't appear to be a way to prevent this compiler from
13187 # explicitly linking system object files so we need to strip them
13188 # from the output so that they don't get included in the library
13190 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"'
13193 if test "$GXX" = yes; then
13194 if test $with_gnu_ld = no; then
13197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203 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'
13208 # FIXME: insert proper C++ library support
13216 hardcode_direct_CXX=no
13217 hardcode_shlibpath_var_CXX=no
13218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13219 export_dynamic_flag_spec_CXX='${wl}-E'
13220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13221 # Instead, shared libraries are loaded at an image base (0x10000000 by
13222 # default) and relocated if they conflict, which is a slow very memory
13223 # consuming and fragmenting process. To avoid this, we pick a random,
13224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13226 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'
13227 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'
13230 case $cc_basename in
13233 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'
13235 # Archives containing C++ object files must be created using
13236 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13237 # necessary to make sure instantiated templates are included
13239 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13242 if test "$GXX" = yes; then
13243 if test "$with_gnu_ld" = no; then
13244 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'
13246 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'
13249 link_all_deplibs_CXX=yes
13252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13253 hardcode_libdir_separator_CXX=:
13254 inherit_rpath_CXX=yes
13257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13258 case $cc_basename in
13260 # Kuck and Associates, Inc. (KAI) C++ Compiler
13262 # KCC will only create a shared library if the output file
13263 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13264 # to its proper name (with version) after linking.
13265 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'
13266 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'
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13271 # There doesn't appear to be a way to prevent this compiler from
13272 # explicitly linking system object files so we need to strip them
13273 # from the output so that they don't get included in the library
13275 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"'
13277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13280 # Archives containing C++ object files must be created using
13281 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13282 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13287 # version 8.0 and above of icpc choke on multiply defined symbols
13288 # if we add $predep_objects and $postdep_objects, however 7.1 and
13289 # earlier do not add the objects themselves.
13290 case `$CC -V 2>&1` in
13292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 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'
13295 *) # Version 8.0 or newer
13298 ia64*) tmp_idyn=' -i_dynamic';;
13300 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 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'
13304 archive_cmds_need_lc_CXX=no
13305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13307 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13310 # Portland Group C++ compiler
13312 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13313 prelink_cmds_CXX='tpldir=Template.dir~
13315 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13316 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13317 old_archive_cmds_CXX='tpldir=Template.dir~
13319 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13320 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13322 archive_cmds_CXX='tpldir=Template.dir~
13324 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13325 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13326 archive_expsym_cmds_CXX='tpldir=Template.dir~
13328 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13329 $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'
13331 *) # Version 6 and above use weak symbols
13332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13333 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'
13337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13339 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'
13343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13344 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'
13346 runpath_var=LD_RUN_PATH
13347 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13348 hardcode_libdir_separator_CXX=:
13350 # Commands to make compiler produce verbose output that lists
13351 # what "hidden" libraries, object files and flags are used when
13352 # linking a shared library.
13354 # There doesn't appear to be a way to prevent this compiler from
13355 # explicitly linking system object files so we need to strip them
13356 # from the output so that they don't get included in the library
13358 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'
13360 xl* | mpixl* | bgxl*)
13361 # IBM XL 8.0 on PPC, with GNU ld
13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13364 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 if test "x$supports_anon_versioning" = xyes; then
13366 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13368 echo "local: *; };" >> $output_objdir/$libname.ver~
13369 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13373 case `$CC -V 2>&1 | sed 5q` in
13376 no_undefined_flag_CXX=' -zdefs'
13377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13378 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'
13379 hardcode_libdir_flag_spec_CXX='-R$libdir'
13380 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'
13381 compiler_needs_object_CXX=yes
13383 # Not sure whether something based on
13384 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13386 output_verbose_link_cmd='func_echo_all'
13388 # Archives containing C++ object files must be created using
13389 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13390 # necessary to make sure instantiated templates are included
13392 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13400 # FIXME: insert proper C++ library support
13405 # FIXME: insert proper C++ library support
13410 case $cc_basename in
13412 # FIXME: insert proper C++ library support
13416 # FIXME: insert proper C++ library support
13423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13424 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13426 hardcode_libdir_flag_spec_CXX='-R$libdir'
13427 hardcode_direct_CXX=yes
13428 hardcode_shlibpath_var_CXX=no
13430 # Workaround some broken pre-1.5 toolchains
13431 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13439 # C++ shared libraries are fairly broken
13444 if test -f /usr/libexec/ld.so; then
13445 hardcode_direct_CXX=yes
13446 hardcode_shlibpath_var_CXX=no
13447 hardcode_direct_absolute_CXX=yes
13448 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13451 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13452 export_dynamic_flag_spec_CXX='${wl}-E'
13453 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13455 output_verbose_link_cmd=func_echo_all
13461 osf3* | osf4* | osf5*)
13462 case $cc_basename in
13464 # Kuck and Associates, Inc. (KAI) C++ Compiler
13466 # KCC will only create a shared library if the output file
13467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13468 # to its proper name (with version) after linking.
13469 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'
13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472 hardcode_libdir_separator_CXX=:
13474 # Archives containing C++ object files must be created using
13475 # the KAI C++ compiler.
13477 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13478 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13482 # Rational C++ 2.4.1
13483 # FIXME: insert proper C++ library support
13489 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13490 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'
13491 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13494 allow_undefined_flag_CXX=' -expect_unresolved \*'
13495 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'
13496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13497 echo "-hidden">> $lib.exp~
13498 $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~
13500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13504 hardcode_libdir_separator_CXX=:
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13510 # There doesn't appear to be a way to prevent this compiler from
13511 # explicitly linking system object files so we need to strip them
13512 # from the output so that they don't get included in the library
13514 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"'
13517 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13521 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'
13524 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'
13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13529 hardcode_libdir_separator_CXX=:
13531 # Commands to make compiler produce verbose output that lists
13532 # what "hidden" libraries, object files and flags are used when
13533 # linking a shared library.
13534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13537 # FIXME: insert proper C++ library support
13545 # FIXME: insert proper C++ library support
13550 case $cc_basename in
13553 # FIXME: insert proper C++ library support
13558 # FIXME: insert proper C++ library support
13562 # FIXME: insert proper C++ library support
13569 case $cc_basename in
13571 # Sun C++ 4.2, 5.x and Centerline C++
13572 archive_cmds_need_lc_CXX=yes
13573 no_undefined_flag_CXX=' -zdefs'
13574 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13575 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13576 $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'
13578 hardcode_libdir_flag_spec_CXX='-R$libdir'
13579 hardcode_shlibpath_var_CXX=no
13581 solaris2.[0-5] | solaris2.[0-5].*) ;;
13583 # The compiler driver will combine and reorder linker options,
13584 # but understands `-z linker_flag'.
13585 # Supported since Solaris 2.6 (maybe 2.5.1?)
13586 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13589 link_all_deplibs_CXX=yes
13591 output_verbose_link_cmd='func_echo_all'
13593 # Archives containing C++ object files must be created using
13594 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13595 # necessary to make sure instantiated templates are included
13597 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13600 # Green Hills C++ Compiler
13601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13603 # The C++ compiler must be used to create the archive.
13604 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13607 # GNU C++ compiler with Solaris linker
13608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13609 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13610 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13611 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13612 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13613 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13615 # Commands to make compiler produce verbose output that lists
13616 # what "hidden" libraries, object files and flags are used when
13617 # linking a shared library.
13618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13620 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13622 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13624 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13626 # Commands to make compiler produce verbose output that lists
13627 # what "hidden" libraries, object files and flags are used when
13628 # linking a shared library.
13629 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13632 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13634 solaris2.[0-5] | solaris2.[0-5].*) ;;
13636 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13645 no_undefined_flag_CXX='${wl}-z,text'
13646 archive_cmds_need_lc_CXX=no
13647 hardcode_shlibpath_var_CXX=no
13648 runpath_var='LD_RUN_PATH'
13650 case $cc_basename in
13652 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 sysv5* | sco3.2v5* | sco5v6*)
13663 # Note: We can NOT use -z defs as we might desire, because we do not
13664 # link with -lc, and that would cause any symbols used from libc to
13665 # always be unresolved, which means just about no library would
13666 # ever link correctly. If we're not using GNU ld we use -z text
13667 # though, which does catch some bad symbols but isn't as heavy-handed
13669 no_undefined_flag_CXX='${wl}-z,text'
13670 allow_undefined_flag_CXX='${wl}-z,nodefs'
13671 archive_cmds_need_lc_CXX=no
13672 hardcode_shlibpath_var_CXX=no
13673 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13674 hardcode_libdir_separator_CXX=':'
13675 link_all_deplibs_CXX=yes
13676 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13677 runpath_var='LD_RUN_PATH'
13679 case $cc_basename in
13681 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13684 '"$old_archive_cmds_CXX"
13685 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13686 '"$reload_cmds_CXX"
13689 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13690 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696 case $cc_basename in
13698 # NonStop-UX NCC 3.20
13699 # FIXME: insert proper C++ library support
13703 # FIXME: insert proper C++ library support
13710 # FIXME: insert proper C++ library support
13715 # FIXME: insert proper C++ library support
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13721 $as_echo "$ld_shlibs_CXX" >&6; }
13722 test "$ld_shlibs_CXX" = no && can_build_shared=no
13728 ## There is no encapsulation within the following macros, do not change
13729 ## the running order or otherwise move them around unless you know exactly
13730 ## what you are doing...
13731 # Dependencies to place before and after the object being linked:
13732 predep_objects_CXX=
13733 postdep_objects_CXX=
13736 compiler_lib_search_path_CXX=
13738 cat > conftest.$ac_ext <<_LT_EOF
13742 Foo (void) { a = 0; }
13749 _lt_libdeps_save_CFLAGS=$CFLAGS
13750 case "$CC $CFLAGS " in #(
13751 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13752 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13753 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13757 (eval $ac_compile) 2>&5
13759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13760 test $ac_status = 0; }; then
13761 # Parse the compiler output and extract the necessary
13762 # objects, libraries and library flags.
13764 # Sentinel used to keep track of whether or not we are before
13765 # the conftest object file.
13766 pre_test_object_deps_done=no
13768 for p in `eval "$output_verbose_link_cmd"`; do
13769 case ${prev}${p} in
13772 # Some compilers place space between "-{L,R}" and the path.
13773 # Remove the space.
13774 if test $p = "-L" ||
13775 test $p = "-R"; then
13780 # Expand the sysroot to ease extracting the directories later.
13781 if test -z "$prev"; then
13783 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13784 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13785 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13789 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13791 if test "$pre_test_object_deps_done" = no; then
13794 # Internal compiler library paths should come after those
13795 # provided the user. The postdeps already come after the
13796 # user supplied libs so there is no need to process them.
13797 if test -z "$compiler_lib_search_path_CXX"; then
13798 compiler_lib_search_path_CXX="${prev}${p}"
13800 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13803 # The "-l" case would never come before the object being
13804 # linked, so don't bother handling this case.
13807 if test -z "$postdeps_CXX"; then
13808 postdeps_CXX="${prev}${p}"
13810 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13816 *.lto.$objext) ;; # Ignore GCC LTO objects
13818 # This assumes that the test object file only shows up
13819 # once in the compiler output.
13820 if test "$p" = "conftest.$objext"; then
13821 pre_test_object_deps_done=yes
13825 if test "$pre_test_object_deps_done" = no; then
13826 if test -z "$predep_objects_CXX"; then
13827 predep_objects_CXX="$p"
13829 predep_objects_CXX="$predep_objects_CXX $p"
13832 if test -z "$postdep_objects_CXX"; then
13833 postdep_objects_CXX="$p"
13835 postdep_objects_CXX="$postdep_objects_CXX $p"
13840 *) ;; # Ignore the rest.
13848 echo "libtool.m4: error: problem compiling CXX test program"
13851 $RM -f confest.$objext
13852 CFLAGS=$_lt_libdeps_save_CFLAGS
13854 # PORTME: override above test on systems where it is broken
13857 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13858 # hack all around it, let's just trust "g++" to DTRT.
13859 predep_objects_CXX=
13860 postdep_objects_CXX=
13865 case `$CC -V 2>&1 | sed 5q` in
13869 # The more standards-conforming stlport4 library is
13870 # incompatible with the Cstd library. Avoid specifying
13871 # it if it's in CXXFLAGS. Ignore libCrun as
13872 # -library=stlport4 depends on it.
13873 case " $CXX $CXXFLAGS " in
13874 *" -library=stlport4 "*)
13875 solaris_use_stlport4=yes
13879 if test "$solaris_use_stlport4" != yes; then
13880 postdeps_CXX='-library=Cstd -library=Crun'
13887 case $cc_basename in
13889 # The more standards-conforming stlport4 library is
13890 # incompatible with the Cstd library. Avoid specifying
13891 # it if it's in CXXFLAGS. Ignore libCrun as
13892 # -library=stlport4 depends on it.
13893 case " $CXX $CXXFLAGS " in
13894 *" -library=stlport4 "*)
13895 solaris_use_stlport4=yes
13899 # Adding this requires a known-good setup of shared libraries for
13900 # Sun compiler versions before 5.6, else PIC objects from an old
13901 # archive will be linked into the output, leading to subtle bugs.
13902 if test "$solaris_use_stlport4" != yes; then
13903 postdeps_CXX='-library=Cstd -library=Crun'
13911 case " $postdeps_CXX " in
13912 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13914 compiler_lib_search_dirs_CXX=
13915 if test -n "${compiler_lib_search_path_CXX}"; then
13916 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13949 lt_prog_compiler_wl_CXX=
13950 lt_prog_compiler_pic_CXX=
13951 lt_prog_compiler_static_CXX=
13954 # C++ specific cases for pic, static, wl, etc.
13955 if test "$GXX" = yes; then
13956 lt_prog_compiler_wl_CXX='-Wl,'
13957 lt_prog_compiler_static_CXX='-static'
13961 # All AIX code is PIC.
13962 if test "$host_cpu" = ia64; then
13963 # AIX 5 now supports IA64 processor
13964 lt_prog_compiler_static_CXX='-Bstatic'
13971 # see comment about AmigaOS4 .so support
13972 lt_prog_compiler_pic_CXX='-fPIC'
13975 # FIXME: we need at least 68020 code to build shared libraries, but
13976 # adding the `-m68020' flag to GCC prevents building anything better,
13978 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13984 # PIC is the default for these OSes.
13986 mingw* | cygwin* | os2* | pw32* | cegcc*)
13987 # This hack is so that the source file can tell whether it is being
13988 # built for inclusion in a dll (and should export symbols for example).
13989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13990 # (--disable-auto-import) libraries
13991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13993 darwin* | rhapsody*)
13994 # PIC is the default on this platform
13995 # Common symbols not allowed in MH_DYLIB files
13996 lt_prog_compiler_pic_CXX='-fno-common'
13999 # DJGPP does not support shared libraries at all
14000 lt_prog_compiler_pic_CXX=
14003 # PIC is the default for Haiku.
14004 # The "-static" flag exists, but is broken.
14005 lt_prog_compiler_static_CXX=
14008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14009 # Instead, we relocate shared libraries at runtime.
14012 if test -d /usr/nec; then
14013 lt_prog_compiler_pic_CXX=-Kconform_pic
14017 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14018 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14019 # sets the default TLS model and affects inlining.
14024 lt_prog_compiler_pic_CXX='-fPIC'
14029 # QNX uses GNU C++, but need to define -shared option too, otherwise
14030 # it will coredump.
14031 lt_prog_compiler_pic_CXX='-fPIC -shared'
14034 lt_prog_compiler_pic_CXX='-fPIC'
14040 # All AIX code is PIC.
14041 if test "$host_cpu" = ia64; then
14042 # AIX 5 now supports IA64 processor
14043 lt_prog_compiler_static_CXX='-Bstatic'
14045 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14049 case $cc_basename in
14051 # Green Hills C++ Compiler
14052 # _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"
14056 mingw* | cygwin* | os2* | pw32* | cegcc*)
14057 # This hack is so that the source file can tell whether it is being
14058 # built for inclusion in a dll (and should export symbols for example).
14059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14062 case $cc_basename in
14064 lt_prog_compiler_pic_CXX='-KPIC'
14067 # Green Hills C++ Compiler
14068 lt_prog_compiler_pic_CXX='-pic'
14074 freebsd* | dragonfly*)
14075 # FreeBSD uses GNU C++
14077 hpux9* | hpux10* | hpux11*)
14078 case $cc_basename in
14080 lt_prog_compiler_wl_CXX='-Wl,'
14081 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14082 if test "$host_cpu" != ia64; then
14083 lt_prog_compiler_pic_CXX='+Z'
14087 lt_prog_compiler_wl_CXX='-Wl,'
14088 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14094 lt_prog_compiler_pic_CXX='+Z'
14103 # This is c89, which is MS Visual C++ (no shared libs)
14104 # Anyone wants to do a port?
14106 irix5* | irix6* | nonstopux*)
14107 case $cc_basename in
14109 lt_prog_compiler_wl_CXX='-Wl,'
14110 lt_prog_compiler_static_CXX='-non_shared'
14111 # CC pic flag -KPIC is the default.
14117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14118 case $cc_basename in
14121 lt_prog_compiler_wl_CXX='--backend -Wl,'
14122 lt_prog_compiler_pic_CXX='-fPIC'
14125 # old Intel C++ for x86_64 which still supported -KPIC.
14126 lt_prog_compiler_wl_CXX='-Wl,'
14127 lt_prog_compiler_pic_CXX='-KPIC'
14128 lt_prog_compiler_static_CXX='-static'
14131 # Intel C++, used to be incompatible with GCC.
14132 # ICC 10 doesn't accept -KPIC any more.
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_pic_CXX='-fPIC'
14135 lt_prog_compiler_static_CXX='-static'
14138 # Portland Group C++ compiler
14139 lt_prog_compiler_wl_CXX='-Wl,'
14140 lt_prog_compiler_pic_CXX='-fpic'
14141 lt_prog_compiler_static_CXX='-Bstatic'
14145 # Make sure the PIC flag is empty. It appears that all Alpha
14146 # Linux and Compaq Tru64 Unix objects are PIC.
14147 lt_prog_compiler_pic_CXX=
14148 lt_prog_compiler_static_CXX='-non_shared'
14150 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14151 # IBM XL 8.0, 9.0 on PPC and BlueGene
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_pic_CXX='-qpic'
14154 lt_prog_compiler_static_CXX='-qstaticlink'
14157 case `$CC -V 2>&1 | sed 5q` in
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-Bstatic'
14162 lt_prog_compiler_wl_CXX='-Qoption ld '
14173 case $cc_basename in
14175 lt_prog_compiler_pic_CXX='-W c,exportall'
14181 netbsd* | netbsdelf*-gnu)
14184 # QNX uses GNU C++, but need to define -shared option too, otherwise
14185 # it will coredump.
14186 lt_prog_compiler_pic_CXX='-fPIC -shared'
14188 osf3* | osf4* | osf5*)
14189 case $cc_basename in
14191 lt_prog_compiler_wl_CXX='--backend -Wl,'
14194 # Rational C++ 2.4.1
14195 lt_prog_compiler_pic_CXX='-pic'
14198 # Digital/Compaq C++
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 # Make sure the PIC flag is empty. It appears that all Alpha
14201 # Linux and Compaq Tru64 Unix objects are PIC.
14202 lt_prog_compiler_pic_CXX=
14203 lt_prog_compiler_static_CXX='-non_shared'
14212 case $cc_basename in
14214 # Sun C++ 4.2, 5.x and Centerline C++
14215 lt_prog_compiler_pic_CXX='-KPIC'
14216 lt_prog_compiler_static_CXX='-Bstatic'
14217 lt_prog_compiler_wl_CXX='-Qoption ld '
14220 # Green Hills C++ Compiler
14221 lt_prog_compiler_pic_CXX='-PIC'
14228 case $cc_basename in
14231 lt_prog_compiler_pic_CXX='-pic'
14232 lt_prog_compiler_static_CXX='-Bstatic'
14236 lt_prog_compiler_pic_CXX='-pic'
14242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14243 case $cc_basename in
14245 lt_prog_compiler_wl_CXX='-Wl,'
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14252 case $cc_basename in
14254 # NonStop-UX NCC 3.20
14255 lt_prog_compiler_pic_CXX='-KPIC'
14264 lt_prog_compiler_can_build_shared_CXX=no
14270 # For platforms which do not support PIC, -DPIC is meaningless:
14272 lt_prog_compiler_pic_CXX=
14275 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14281 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14282 $as_echo_n "(cached) " >&6
14284 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14287 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14288 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14291 # Check to make sure the PIC flag actually works.
14293 if test -n "$lt_prog_compiler_pic_CXX"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14296 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14297 $as_echo_n "(cached) " >&6
14299 lt_cv_prog_compiler_pic_works_CXX=no
14300 ac_outfile=conftest.$ac_objext
14301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14302 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14303 # Insert the option either (1) after the last *FLAGS variable, or
14304 # (2) before a word containing "conftest.", or (3) at the end.
14305 # Note that $ac_compile itself does not contain backslashes and begins
14306 # with a dollar sign (not a hyphen), so the echo should work correctly.
14307 # The option is referenced via a variable to avoid confusing sed.
14308 lt_compile=`echo "$ac_compile" | $SED \
14309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14311 -e 's:$: $lt_compiler_flag:'`
14312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14313 (eval "$lt_compile" 2>conftest.err)
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 if (exit $ac_status) && test -s "$ac_outfile"; then
14318 # The compiler can only warn and ignore the option if not recognized
14319 # So say no if there are warnings other than the usual output.
14320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14323 lt_cv_prog_compiler_pic_works_CXX=yes
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14330 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14332 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14333 case $lt_prog_compiler_pic_CXX in
14335 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14338 lt_prog_compiler_pic_CXX=
14339 lt_prog_compiler_can_build_shared_CXX=no
14349 # Check to make sure the static flag actually works.
14351 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14353 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14354 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14355 $as_echo_n "(cached) " >&6
14357 lt_cv_prog_compiler_static_works_CXX=no
14358 save_LDFLAGS="$LDFLAGS"
14359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14360 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14362 # The linker can only warn and ignore the option if not recognized
14363 # So say no if there are warnings
14364 if test -s conftest.err; then
14365 # Append any errors to the config.log.
14366 cat conftest.err 1>&5
14367 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14369 if diff conftest.exp conftest.er2 >/dev/null; then
14370 lt_cv_prog_compiler_static_works_CXX=yes
14373 lt_cv_prog_compiler_static_works_CXX=yes
14377 LDFLAGS="$save_LDFLAGS"
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14383 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14386 lt_prog_compiler_static_CXX=
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14394 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14395 $as_echo_n "(cached) " >&6
14397 lt_cv_prog_compiler_c_o_CXX=no
14398 $RM -r conftest 2>/dev/null
14402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="-o out/conftest2.$ac_objext"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 lt_compile=`echo "$ac_compile" | $SED \
14410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14412 -e 's:$: $lt_compiler_flag:'`
14413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14414 (eval "$lt_compile" 2>out/conftest.err)
14416 cat out/conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14420 # The compiler can only warn and ignore the option if not recognized
14421 # So say no if there are warnings
14422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14425 lt_cv_prog_compiler_c_o_CXX=yes
14430 # SGI C++ compiler will create directory out/ii_files/ for
14431 # template instantiation
14432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14433 $RM out/* && rmdir out
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14440 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14445 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14446 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14447 $as_echo_n "(cached) " >&6
14449 lt_cv_prog_compiler_c_o_CXX=no
14450 $RM -r conftest 2>/dev/null
14454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14456 lt_compiler_flag="-o out/conftest2.$ac_objext"
14457 # Insert the option either (1) after the last *FLAGS variable, or
14458 # (2) before a word containing "conftest.", or (3) at the end.
14459 # Note that $ac_compile itself does not contain backslashes and begins
14460 # with a dollar sign (not a hyphen), so the echo should work correctly.
14461 lt_compile=`echo "$ac_compile" | $SED \
14462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464 -e 's:$: $lt_compiler_flag:'`
14465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14466 (eval "$lt_compile" 2>out/conftest.err)
14468 cat out/conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14472 # The compiler can only warn and ignore the option if not recognized
14473 # So say no if there are warnings
14474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14477 lt_cv_prog_compiler_c_o_CXX=yes
14482 # SGI C++ compiler will create directory out/ii_files/ for
14483 # template instantiation
14484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14485 $RM out/* && rmdir out
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14492 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14497 hard_links="nottested"
14498 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14499 # do not overwrite the value of need_locks provided by the user
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14501 $as_echo_n "checking if we can lock with hard links... " >&6; }
14504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14506 ln conftest.a conftest.b 2>&5 || hard_links=no
14507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14509 $as_echo "$hard_links" >&6; }
14510 if test "$hard_links" = no; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14512 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14524 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14525 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14528 # If we're using GNU nm, then we don't want the "-C" option.
14529 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14530 # Also, AIX nm treats weak defined symbols like other global defined
14531 # symbols, whereas GNU nm marks them as "W".
14532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14533 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'
14535 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'
14539 export_symbols_cmds_CXX="$ltdll_cmds"
14541 cygwin* | mingw* | cegcc*)
14542 case $cc_basename in
14544 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14547 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'
14548 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14552 linux* | k*bsd*-gnu | gnu*)
14553 link_all_deplibs_CXX=no
14556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14561 $as_echo "$ld_shlibs_CXX" >&6; }
14562 test "$ld_shlibs_CXX" = no && can_build_shared=no
14564 with_gnu_ld_CXX=$with_gnu_ld
14572 # Do we need to explicitly link libc?
14574 case "x$archive_cmds_need_lc_CXX" in
14576 # Assume -lc should be added
14577 archive_cmds_need_lc_CXX=yes
14579 if test "$enable_shared" = yes && test "$GCC" = yes; then
14580 case $archive_cmds_CXX in
14582 # FIXME: we may have to deal with multi-command sequences.
14585 # Test whether the compiler implicitly links with -lc since on some
14586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14587 # to ld, don't add -lc before -lgcc.
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14589 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14590 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14591 $as_echo_n "(cached) " >&6
14594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14597 (eval $ac_compile) 2>&5
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; } 2>conftest.err; then
14603 libobjs=conftest.$ac_objext
14605 wl=$lt_prog_compiler_wl_CXX
14606 pic_flag=$lt_prog_compiler_pic_CXX
14612 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14613 allow_undefined_flag_CXX=
14614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14615 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618 test $ac_status = 0; }
14620 lt_cv_archive_cmds_need_lc_CXX=no
14622 lt_cv_archive_cmds_need_lc_CXX=yes
14624 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14626 cat conftest.err 1>&5
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14632 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14633 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14702 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14704 library_names_spec=
14705 libname_spec='lib$name'
14709 postuninstall_cmds=
14713 shlibpath_overrides_runpath=unknown
14715 dynamic_linker="$host_os ld.so"
14716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14717 need_lib_prefix=unknown
14718 hardcode_into_libs=no
14720 # when you set need_version to no, make sure it does not cause -set_version
14721 # flags to be left without arguments
14722 need_version=unknown
14726 version_type=linux # correct to gnu/linux during the next big refactor
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14728 shlibpath_var=LIBPATH
14730 # AIX 3 has no versioning support, so we append a major version to the name.
14731 soname_spec='${libname}${release}${shared_ext}$major'
14735 version_type=linux # correct to gnu/linux during the next big refactor
14738 hardcode_into_libs=yes
14739 if test "$host_cpu" = ia64; then
14740 # AIX 5 supports IA64
14741 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14742 shlibpath_var=LD_LIBRARY_PATH
14744 # With GCC up to 2.95.x, collect2 would create an import file
14745 # for dependence libraries. The import file would start with
14746 # the line `#! .'. This would cause the generated library to
14747 # depend on `.', always an invalid library. This was fixed in
14748 # development snapshots of GCC prior to 3.0.
14750 aix4 | aix4.[01] | aix4.[01].*)
14751 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14753 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14756 can_build_shared=no
14760 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14761 # soname into executable. Probably we can add versioning support to
14762 # collect2, so additional links can be useful in future.
14763 if test "$aix_use_runtimelinking" = yes; then
14764 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14765 # instead of lib<name>.a to let people know that these are not
14766 # typical AIX shared libraries.
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14769 # We preserve .a as extension for shared libraries through AIX4.2
14770 # and later when we are not doing run time linking.
14771 library_names_spec='${libname}${release}.a $libname.a'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14774 shlibpath_var=LIBPATH
14781 # Since July 2007 AmigaOS4 officially supports .so libraries.
14782 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 library_names_spec='$libname.ixlibrary $libname.a'
14787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14788 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'
14794 library_names_spec='${libname}${shared_ext}'
14795 dynamic_linker="$host_os ld.so"
14796 shlibpath_var=LIBRARY_PATH
14800 version_type=linux # correct to gnu/linux during the next big refactor
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14808 # the default ld.so.conf also contains /usr/contrib/lib and
14809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14810 # libtool to hard-code these into programs
14813 cygwin* | mingw* | pw32* | cegcc*)
14814 version_type=windows
14819 case $GCC,$cc_basename in
14822 library_names_spec='$libname.dll.a'
14823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14824 postinstall_cmds='base_file=`basename \${file}`~
14825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14826 dldir=$destdir/`dirname \$dlpath`~
14827 test -d \$dldir || mkdir -p \$dldir~
14828 $install_prog $dir/$dlname \$dldir/$dlname~
14829 chmod a+x \$dldir/$dlname~
14830 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14831 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14834 dlpath=$dir/\$dldll~
14836 shlibpath_overrides_runpath=yes
14840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14845 # MinGW DLLs use traditional 'lib' prefix
14846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14849 # pw32 DLLs use 'pw' prefix rather than 'lib'
14850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 dynamic_linker='Win32 ld.exe'
14858 libname_spec='$name'
14859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14860 library_names_spec='${libname}.dll.lib'
14864 sys_lib_search_path_spec=
14867 for lt_path in $LIB
14870 # Let DOS variable expansion print the short 8.3 style file name.
14871 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14872 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14875 # Convert to MSYS style.
14876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14879 # Convert to unix form, then to dos form, then back to unix form
14880 # but this time dos style (no spaces!) so that the unix form looks
14881 # like /cygdrive/c/PROGRA~1:/cygdr...
14882 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14883 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14884 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14887 sys_lib_search_path_spec="$LIB"
14888 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14889 # It is most probably a Windows format PATH.
14890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14894 # FIXME: find the short name or the path components, as spaces are
14895 # common. (e.g. "Program Files" -> "PROGRA~1")
14899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14900 postinstall_cmds='base_file=`basename \${file}`~
14901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14902 dldir=$destdir/`dirname \$dlpath`~
14903 test -d \$dldir || mkdir -p \$dldir~
14904 $install_prog $dir/$dlname \$dldir/$dlname'
14905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14906 dlpath=$dir/\$dldll~
14908 shlibpath_overrides_runpath=yes
14909 dynamic_linker='Win32 link.exe'
14913 # Assume MSVC wrapper
14914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14915 dynamic_linker='Win32 ld.exe'
14918 # FIXME: first we should search . and the directory the executable is in
14922 darwin* | rhapsody*)
14923 dynamic_linker="$host_os dyld"
14924 version_type=darwin
14927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14928 soname_spec='${libname}${release}${major}$shared_ext'
14929 shlibpath_overrides_runpath=yes
14930 shlibpath_var=DYLD_LIBRARY_PATH
14931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14937 version_type=linux # correct to gnu/linux during the next big refactor
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14945 freebsd* | dragonfly*)
14946 # DragonFly does not have aout. When/if they implement a new
14947 # versioning mechanism, adjust this.
14948 if test -x /usr/bin/objformat; then
14949 objformat=`/usr/bin/objformat`
14952 freebsd[23].*) objformat=aout ;;
14953 *) objformat=elf ;;
14956 version_type=freebsd-$objformat
14957 case $version_type in
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14968 shlibpath_var=LD_LIBRARY_PATH
14971 shlibpath_overrides_runpath=yes
14973 freebsd3.[01]* | freebsdelf3.[01]*)
14974 shlibpath_overrides_runpath=yes
14975 hardcode_into_libs=yes
14977 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14978 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14979 shlibpath_overrides_runpath=no
14980 hardcode_into_libs=yes
14982 *) # from 4.6 on, and DragonFly
14983 shlibpath_overrides_runpath=yes
14984 hardcode_into_libs=yes
14990 version_type=linux # correct to gnu/linux during the next big refactor
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=no
14997 hardcode_into_libs=yes
15001 version_type=linux # correct to gnu/linux during the next big refactor
15004 dynamic_linker="$host_os runtime_loader"
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LIBRARY_PATH
15008 shlibpath_overrides_runpath=yes
15009 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15010 hardcode_into_libs=yes
15013 hpux9* | hpux10* | hpux11*)
15014 # Give a soname corresponding to the major version so that dld.sl refuses to
15015 # link against other versions.
15022 hardcode_into_libs=yes
15023 dynamic_linker="$host_os dld.so"
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 if test "X$HPUX_IA64_MODE" = X32; then
15029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15037 hardcode_into_libs=yes
15038 dynamic_linker="$host_os dld.sl"
15039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15048 dynamic_linker="$host_os dld.sl"
15049 shlibpath_var=SHLIB_PATH
15050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15055 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15056 postinstall_cmds='chmod 555 $lib'
15057 # or fails outright, so override atomically:
15058 install_override_mode=555
15062 version_type=linux # correct to gnu/linux during the next big refactor
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15068 shlibpath_var=LD_LIBRARY_PATH
15069 shlibpath_overrides_runpath=no
15070 hardcode_into_libs=yes
15073 irix5* | irix6* | nonstopux*)
15075 nonstopux*) version_type=nonstopux ;;
15077 if test "$lt_cv_prog_gnu_ld" = yes; then
15078 version_type=linux # correct to gnu/linux during the next big refactor
15085 soname_spec='${libname}${release}${shared_ext}$major'
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15088 irix5* | nonstopux*)
15089 libsuff= shlibsuff=
15092 case $LD in # libtool.m4 will add one of these switches to LD
15093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15094 libsuff= shlibsuff= libmagic=32-bit;;
15095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15096 libsuff=32 shlibsuff=N32 libmagic=N32;;
15097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15099 *) libsuff= shlibsuff= libmagic=never-match;;
15103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15104 shlibpath_overrides_runpath=no
15105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15107 hardcode_into_libs=yes
15110 # No shared lib support for Linux oldld, aout, or coff.
15111 linux*oldld* | linux*aout* | linux*coff*)
15115 # This must be glibc/ELF.
15116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15117 version_type=linux # correct to gnu/linux during the next big refactor
15120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121 soname_spec='${libname}${release}${shared_ext}$major'
15122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=no
15126 # Some binutils ld are patched to set DT_RUNPATH
15127 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15128 $as_echo_n "(cached) " >&6
15130 lt_cv_shlibpath_overrides_runpath=no
15131 save_LDFLAGS=$LDFLAGS
15132 save_libdir=$libdir
15133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15146 if ac_fn_cxx_try_link "$LINENO"; then :
15147 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15148 lt_cv_shlibpath_overrides_runpath=yes
15151 rm -f core conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LDFLAGS=$save_LDFLAGS
15154 libdir=$save_libdir
15158 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15160 # This implies no fast_install, which is unacceptable.
15161 # Some rework will be needed to allow for fast_install
15162 # before this can be enabled.
15163 hardcode_into_libs=yes
15165 # Append ld.so.conf contents to the search path
15166 if test -f /etc/ld.so.conf; then
15167 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' ' '`
15168 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15171 # We used to test for /lib/ld.so.1 and disable shared libraries on
15172 # powerpc, because MkLinux only supported shared libraries with the
15173 # GNU dynamic linker. Since this was broken with cross compilers,
15174 # most powerpc-linux boxes support dynamic linking these days and
15175 # people can always --disable-shared, the test was removed, and we
15176 # assume the GNU/Linux dynamic linker is in use.
15177 dynamic_linker='GNU/Linux ld.so'
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=no
15188 hardcode_into_libs=yes
15189 dynamic_linker='NetBSD ld.elf_so'
15196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15199 dynamic_linker='NetBSD (a.out) ld.so'
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 dynamic_linker='NetBSD ld.elf_so'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15207 hardcode_into_libs=yes
15211 version_type=linux # correct to gnu/linux during the next big refactor
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=no
15225 hardcode_into_libs=yes
15226 dynamic_linker='ldqnx.so'
15231 sys_lib_dlsearch_path_spec="/usr/lib"
15233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15236 *) need_version=no ;;
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15240 shlibpath_var=LD_LIBRARY_PATH
15241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15243 openbsd2.[89] | openbsd2.[89].*)
15244 shlibpath_overrides_runpath=no
15247 shlibpath_overrides_runpath=yes
15251 shlibpath_overrides_runpath=yes
15256 libname_spec='$name'
15259 library_names_spec='$libname${shared_ext} $libname.a'
15260 dynamic_linker='OS/2 ld.exe'
15261 shlibpath_var=LIBPATH
15264 osf3* | osf4* | osf5*)
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15280 version_type=linux # correct to gnu/linux during the next big refactor
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 shlibpath_overrides_runpath=yes
15287 hardcode_into_libs=yes
15288 # ldd complains unless libraries are executable
15289 postinstall_cmds='chmod +x $lib'
15294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 shlibpath_overrides_runpath=yes
15298 if test "$with_gnu_ld" = yes; then
15305 version_type=linux # correct to gnu/linux during the next big refactor
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 case $host_vendor in
15311 shlibpath_overrides_runpath=no
15313 runpath_var=LD_RUN_PATH
15321 shlibpath_overrides_runpath=no
15322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15328 if test -d /usr/nec ;then
15329 version_type=linux # correct to gnu/linux during the next big refactor
15330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15331 soname_spec='$libname${shared_ext}.$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15337 version_type=freebsd-elf
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath=yes
15344 hardcode_into_libs=yes
15345 if test "$with_gnu_ld" = yes; then
15346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15355 sys_lib_dlsearch_path_spec='/usr/lib'
15359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15360 version_type=linux # correct to gnu/linux during the next big refactor
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=no
15366 hardcode_into_libs=yes
15370 version_type=linux # correct to gnu/linux during the next big refactor
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 shlibpath_var=LD_LIBRARY_PATH
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15381 $as_echo "$dynamic_linker" >&6; }
15382 test "$dynamic_linker" = no && can_build_shared=no
15384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15385 if test "$GCC" = yes; then
15386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15389 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15390 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15393 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15434 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15435 hardcode_action_CXX=
15436 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15437 test -n "$runpath_var_CXX" ||
15438 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15440 # We can hardcode non-existent directories.
15441 if test "$hardcode_direct_CXX" != no &&
15442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15443 # have to relink, otherwise we might link with an installed library
15444 # when we should be linking with a yet-to-be-installed one
15445 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15446 test "$hardcode_minus_L_CXX" != no; then
15447 # Linking always hardcodes the temporary library directory.
15448 hardcode_action_CXX=relink
15450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15451 hardcode_action_CXX=immediate
15454 # We cannot hardcode anything, or else we can only hardcode existing
15456 hardcode_action_CXX=unsupported
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15459 $as_echo "$hardcode_action_CXX" >&6; }
15461 if test "$hardcode_action_CXX" = relink ||
15462 test "$inherit_rpath_CXX" = yes; then
15463 # Fast installation is not supported
15464 enable_fast_install=no
15465 elif test "$shlibpath_overrides_runpath" = yes ||
15466 test "$enable_shared" = no; then
15467 # Fast installation is not necessary
15468 enable_fast_install=needless
15477 fi # test -n "$compiler"
15480 CFLAGS=$lt_save_CFLAGS
15484 with_gnu_ld=$lt_save_with_gnu_ld
15485 lt_cv_path_LDCXX=$lt_cv_path_LD
15486 lt_cv_path_LD=$lt_save_path_LD
15487 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15488 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15489 fi # test "$_lt_caught_CXX_error" != yes
15492 ac_cpp='$CPP $CPPFLAGS'
15493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15511 ac_config_commands="$ac_config_commands libtool"
15516 # Only expand once:
15519 # By default we simply use the C compiler to build assembly code.
15521 test "${CCAS+set}" = set || CCAS=$CC
15522 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15526 depcc="$CCAS" am_compiler_list=
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15529 $as_echo_n "checking dependency style of $depcc... " >&6; }
15530 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
15531 $as_echo_n "(cached) " >&6
15533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15534 # We make a subdir and do the tests there. Otherwise we can end up
15535 # making bogus files that we don't know about and never remove. For
15536 # instance it was reported that on HP-UX the gcc test will end up
15537 # making a dummy file named `D' -- because `-MD' means `put the output
15539 rm -rf conftest.dir
15541 # Copy depcomp to subdir because otherwise we won't find it if we're
15542 # using a relative directory.
15543 cp "$am_depcomp" conftest.dir
15545 # We will build objects and dependencies in a subdirectory because
15546 # it helps to detect inapplicable dependency modes. For instance
15547 # both Tru64's cc and ICC support -MD to output dependencies as a
15548 # side effect of compilation, but ICC will put the dependencies in
15549 # the current directory while Tru64 will put them in the object
15553 am_cv_CCAS_dependencies_compiler_type=none
15554 if test "$am_compiler_list" = ""; then
15555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15557 am__universal=false
15560 for depmode in $am_compiler_list; do
15561 # Setup a source with many dependencies, because some compilers
15562 # like to wrap large dependency lists on column 80 (with \), and
15563 # we should not choose a depcomp mode which is confused by this.
15565 # We need to recreate these files for each test, as the compiler may
15566 # overwrite some of them when testing with obscure command lines.
15567 # This happens at least with the AIX C compiler.
15569 for i in 1 2 3 4 5 6; do
15570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15572 # Solaris 8's {/usr,}/bin/sh.
15573 touch sub/conftst$i.h
15575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15577 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15578 # mode. It turns out that the SunPro C++ compiler does not properly
15579 # handle `-M -o', and we need to detect this. Also, some Intel
15580 # versions had trouble with output in subdirs
15581 am__obj=sub/conftest.${OBJEXT-o}
15582 am__minus_obj="-o $am__obj"
15585 # This depmode causes a compiler race in universal mode.
15586 test "$am__universal" = false || continue
15589 # after this tag, mechanisms are not by side-effect, so they'll
15590 # only be used when explicitly requested
15591 if test "x$enable_dependency_tracking" = xyes; then
15597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15598 # This compiler won't grok `-c -o', but also, the minuso test has
15599 # not run yet. These depmodes are late enough in the game, and
15600 # so weak that their functioning should not be impacted.
15601 am__obj=conftest.${OBJEXT-o}
15606 if depmode=$depmode \
15607 source=sub/conftest.c object=$am__obj \
15608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15610 >/dev/null 2>conftest.err &&
15611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15615 # icc doesn't choke on unknown options, it will just issue warnings
15616 # or remarks (even with -Werror). So we grep stderr for any message
15617 # that says an option was ignored or not supported.
15618 # When given -MP, icc 7.0 and 7.1 complain thusly:
15619 # icc: Command line warning: ignoring option '-M'; no argument required
15620 # The diagnosis changed in icc 8.0:
15621 # icc: Command line remark: option '-MP' not supported
15622 if (grep 'ignoring option' conftest.err ||
15623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15624 am_cv_CCAS_dependencies_compiler_type=$depmode
15631 rm -rf conftest.dir
15633 am_cv_CCAS_dependencies_compiler_type=none
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15638 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15639 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15642 test "x$enable_dependency_tracking" != xno \
15643 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15644 am__fastdepCCAS_TRUE=
15645 am__fastdepCCAS_FALSE='#'
15647 am__fastdepCCAS_TRUE='#'
15648 am__fastdepCCAS_FALSE=
15652 if test "x$CC" != xcc; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15659 set dummy $CC; ac_cc=`$as_echo "$2" |
15660 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15662 $as_echo_n "(cached) " >&6
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15675 # Make sure it works both with $CC and with simple cc.
15676 # We do the test twice because some compilers refuse to overwrite an
15677 # existing .o file with -o, though they will create one.
15678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15680 if { { case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15685 $as_echo "$ac_try_echo"; } >&5
15686 (eval "$ac_try") 2>&5
15688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15689 test $ac_status = 0; } &&
15690 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15695 $as_echo "$ac_try_echo"; } >&5
15696 (eval "$ac_try") 2>&5
15698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15699 test $ac_status = 0; };
15701 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15702 if test "x$CC" != xcc; then
15703 # Test first that cc exists at all.
15704 if { ac_try='cc -c conftest.$ac_ext >&5'
15705 { { case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15710 $as_echo "$ac_try_echo"; } >&5
15711 (eval "$ac_try") 2>&5
15713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15714 test $ac_status = 0; }; }; then
15715 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15717 if { { case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15722 $as_echo "$ac_try_echo"; } >&5
15723 (eval "$ac_try") 2>&5
15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 test $ac_status = 0; } &&
15727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15732 $as_echo "$ac_try_echo"; } >&5
15733 (eval "$ac_try") 2>&5
15735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15736 test $ac_status = 0; };
15741 # cc exists but doesn't like -o.
15742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15749 rm -f core conftest*
15752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15754 $as_echo "yes" >&6; }
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15757 $as_echo "no" >&6; }
15759 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15763 # FIXME: we rely on the cache variable name because
15764 # there is no other way.
15766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15768 if test "$am_t" != yes; then
15769 # Losing compiler, so override with the script.
15770 # FIXME: It is wrong to rewrite CC.
15771 # But if we don't then we get into trouble of one sort or another.
15772 # A longer-term fix would be to have automake use am__CC in this case,
15773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15774 CC="$am_aux_dir/compile $CC"
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_grs in -luca" >&5
15780 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15781 if ${ac_cv_lib_uca___uc_get_grs+:} false; then :
15782 $as_echo_n "(cached) " >&6
15784 ac_check_lib_save_LIBS=$LIBS
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15789 /* Override any GCC internal prototype to avoid an error.
15790 Use char because int might match the return type of a GCC
15791 builtin and then its argument prototype would still apply. */
15795 char __uc_get_grs ();
15799 return __uc_get_grs ();
15804 if ac_fn_c_try_link "$LINENO"; then :
15805 ac_cv_lib_uca___uc_get_grs=yes
15807 ac_cv_lib_uca___uc_get_grs=no
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 LIBS=$ac_check_lib_save_LIBS
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_grs" >&5
15814 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15815 if test "x$ac_cv_lib_uca___uc_get_grs" = xyes; then :
15816 cat >>confdefs.h <<_ACEOF
15817 @%:@define HAVE_LIBUCA 1
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15826 $as_echo_n "checking for library containing dlopen... " >&6; }
15827 if ${ac_cv_search_dlopen+:} false; then :
15828 $as_echo_n "(cached) " >&6
15830 ac_func_search_save_LIBS=$LIBS
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15834 /* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15849 for ac_lib in '' dl; do
15850 if test -z "$ac_lib"; then
15851 ac_res="none required"
15854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15856 if ac_fn_c_try_link "$LINENO"; then :
15857 ac_cv_search_dlopen=$ac_res
15859 rm -f core conftest.err conftest.$ac_objext \
15861 if ${ac_cv_search_dlopen+:} false; then :
15865 if ${ac_cv_search_dlopen+:} false; then :
15868 ac_cv_search_dlopen=no
15870 rm conftest.$ac_ext
15871 LIBS=$ac_func_search_save_LIBS
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15874 $as_echo "$ac_cv_search_dlopen" >&6; }
15875 ac_res=$ac_cv_search_dlopen
15876 if test "$ac_res" != no; then :
15877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15882 case "$ac_cv_search_dlopen" in
15883 -l*) DLLIB=$ac_cv_search_dlopen;;
15887 for ac_header in atomic_ops.h
15889 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15890 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
15891 cat >>confdefs.h <<_ACEOF
15892 @%:@define HAVE_ATOMIC_OPS_H 1
15900 # Don't link against libatomic_ops for now. We don't want libunwind
15901 # to depend on libatomic_ops.so. Fortunately, none of the platforms
15902 # we care about so far need libatomic_ops.a (everything is done via
15905 # AC_CHECK_LIB(atomic_ops, main)
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15909 $as_echo_n "checking for ANSI C header files... " >&6; }
15910 if ${ac_cv_header_stdc+:} false; then :
15911 $as_echo_n "(cached) " >&6
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #include <stdlib.h>
15916 #include <stdarg.h>
15917 #include <string.h>
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 ac_cv_header_stdc=yes
15931 ac_cv_header_stdc=no
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 if test $ac_cv_header_stdc = yes; then
15936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939 #include <string.h>
15942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15943 $EGREP "memchr" >/dev/null 2>&1; then :
15946 ac_cv_header_stdc=no
15952 if test $ac_cv_header_stdc = yes; then
15953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 #include <stdlib.h>
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 $EGREP "free" >/dev/null 2>&1; then :
15963 ac_cv_header_stdc=no
15969 if test $ac_cv_header_stdc = yes; then
15970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15971 if test "$cross_compiling" = yes; then :
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15977 #include <stdlib.h>
15978 #if ((' ' & 0x0FF) == 0x020)
15979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15982 # define ISLOWER(c) \
15983 (('a' <= (c) && (c) <= 'i') \
15984 || ('j' <= (c) && (c) <= 'r') \
15985 || ('s' <= (c) && (c) <= 'z'))
15986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15994 for (i = 0; i < 256; i++)
15995 if (XOR (islower (i), ISLOWER (i))
15996 || toupper (i) != TOUPPER (i))
16001 if ac_fn_c_try_run "$LINENO"; then :
16004 ac_cv_header_stdc=no
16006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16007 conftest.$ac_objext conftest.beam conftest.$ac_ext
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16013 $as_echo "$ac_cv_header_stdc" >&6; }
16014 if test $ac_cv_header_stdc = yes; then
16016 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16020 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16021 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16022 sys/procfs.h sys/ptrace.h byteswap.h
16024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16027 cat >>confdefs.h <<_ACEOF
16028 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16037 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16038 if ${ac_cv_c_const+:} false; then :
16039 $as_echo_n "(cached) " >&6
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16047 /* FIXME: Include the comments suggested by Paul. */
16048 #ifndef __cplusplus
16049 /* Ultrix mips cc rejects this. */
16050 typedef int charset[2];
16052 /* SunOS 4.1.1 cc rejects this. */
16053 char const *const *pcpcc;
16055 /* NEC SVR4.0.2 mips cc rejects this. */
16056 struct point {int x, y;};
16057 static struct point const zero = {0,0};
16058 /* AIX XL C 1.02.0.0 rejects this.
16059 It does not let you subtract one const X* pointer from another in
16060 an arm of an if-expression whose if-part is not a constant
16062 const char *g = "string";
16063 pcpcc = &g + (g ? g-g : 0);
16064 /* HPUX 7.0 cc rejects these. */
16066 ppc = (char**) pcpcc;
16067 pcpcc = (char const *const *) ppc;
16068 { /* SCO 3.2v4 cc rejects this. */
16070 char const *s = 0 ? (char *) 0 : (char const *) 0;
16075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16076 int x[] = {25, 17};
16077 const int *foo = &x[0];
16080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16081 typedef const int *iptr;
16085 { /* AIX XL C 1.02.0.0 rejects this saying
16086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16087 struct s { int j; const int *ap[3]; };
16088 struct s *b; b->j = 5;
16090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16091 const int foo = 10;
16092 if (!foo) return 0;
16094 return !cs[0] && !zero.x;
16101 if ac_fn_c_try_compile "$LINENO"; then :
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16109 $as_echo "$ac_cv_c_const" >&6; }
16110 if test $ac_cv_c_const = no; then
16112 $as_echo "@%:@define const /**/" >>confdefs.h
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16117 $as_echo_n "checking for inline... " >&6; }
16118 if ${ac_cv_c_inline+:} false; then :
16119 $as_echo_n "(cached) " >&6
16122 for ac_kw in inline __inline__ __inline; do
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 #ifndef __cplusplus
16127 static $ac_kw foo_t static_foo () {return 0; }
16128 $ac_kw foo_t foo () {return 0; }
16132 if ac_fn_c_try_compile "$LINENO"; then :
16133 ac_cv_c_inline=$ac_kw
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 test "$ac_cv_c_inline" != no && break
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16141 $as_echo "$ac_cv_c_inline" >&6; }
16143 case $ac_cv_c_inline in
16146 case $ac_cv_c_inline in
16148 *) ac_val=$ac_cv_c_inline;;
16150 cat >>confdefs.h <<_ACEOF
16151 #ifndef __cplusplus
16152 #define inline $ac_val
16158 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16159 if test "x$ac_cv_type_size_t" = xyes; then :
16163 cat >>confdefs.h <<_ACEOF
16164 @%:@define size_t unsigned int
16169 # The cast to long int works around a bug in the HP C Compiler
16170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16172 # This bug is HP SR number 8606223364.
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16174 $as_echo_n "checking size of off_t... " >&6; }
16175 if ${ac_cv_sizeof_off_t+:} false; then :
16176 $as_echo_n "(cached) " >&6
16178 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16181 if test "$ac_cv_type_off_t" = yes; then
16182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16184 as_fn_error 77 "cannot compute sizeof (off_t)
16185 See \`config.log' for more details" "$LINENO" 5; }
16187 ac_cv_sizeof_off_t=0
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16193 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16197 cat >>confdefs.h <<_ACEOF
16198 @%:@define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16203 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
16205 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_subs" "ac_cv_member_struct_dl_phdr_info_dlpi_subs" "#include <link.h>
16207 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = xyes; then :
16209 cat >>confdefs.h <<_ACEOF
16210 @%:@define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
16216 ac_fn_c_check_type "$LINENO" "struct elf_prstatus" "ac_cv_type_struct_elf_prstatus" "$ac_includes_default
16217 #if HAVE_SYS_PROCFS_H
16218 # include <sys/procfs.h>
16222 if test "x$ac_cv_type_struct_elf_prstatus" = xyes; then :
16224 cat >>confdefs.h <<_ACEOF
16225 @%:@define HAVE_STRUCT_ELF_PRSTATUS 1
16230 ac_fn_c_check_type "$LINENO" "struct prstatus" "ac_cv_type_struct_prstatus" "$ac_includes_default
16231 #if HAVE_SYS_PROCFS_H
16232 # include <sys/procfs.h>
16236 if test "x$ac_cv_type_struct_prstatus" = xyes; then :
16238 cat >>confdefs.h <<_ACEOF
16239 @%:@define HAVE_STRUCT_PRSTATUS 1
16246 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEUSER" "ac_cv_have_decl_PTRACE_POKEUSER" "$ac_includes_default
16247 #if HAVE_SYS_TYPES_H
16248 #include <sys/types.h>
16250 #include <sys/ptrace.h>
16253 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = xyes; then :
16259 cat >>confdefs.h <<_ACEOF
16260 @%:@define HAVE_DECL_PTRACE_POKEUSER $ac_have_decl
16262 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEDATA" "ac_cv_have_decl_PTRACE_POKEDATA" "$ac_includes_default
16263 #if HAVE_SYS_TYPES_H
16264 #include <sys/types.h>
16266 #include <sys/ptrace.h>
16269 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = xyes; then :
16275 cat >>confdefs.h <<_ACEOF
16276 @%:@define HAVE_DECL_PTRACE_POKEDATA $ac_have_decl
16278 ac_fn_c_check_decl "$LINENO" "PTRACE_TRACEME" "ac_cv_have_decl_PTRACE_TRACEME" "$ac_includes_default
16279 #if HAVE_SYS_TYPES_H
16280 #include <sys/types.h>
16282 #include <sys/ptrace.h>
16285 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = xyes; then :
16291 cat >>confdefs.h <<_ACEOF
16292 @%:@define HAVE_DECL_PTRACE_TRACEME $ac_have_decl
16294 ac_fn_c_check_decl "$LINENO" "PTRACE_CONT" "ac_cv_have_decl_PTRACE_CONT" "$ac_includes_default
16295 #if HAVE_SYS_TYPES_H
16296 #include <sys/types.h>
16298 #include <sys/ptrace.h>
16301 if test "x$ac_cv_have_decl_PTRACE_CONT" = xyes; then :
16307 cat >>confdefs.h <<_ACEOF
16308 @%:@define HAVE_DECL_PTRACE_CONT $ac_have_decl
16310 ac_fn_c_check_decl "$LINENO" "PTRACE_SINGLESTEP" "ac_cv_have_decl_PTRACE_SINGLESTEP" "$ac_includes_default
16311 #if HAVE_SYS_TYPES_H
16312 #include <sys/types.h>
16314 #include <sys/ptrace.h>
16317 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = xyes; then :
16323 cat >>confdefs.h <<_ACEOF
16324 @%:@define HAVE_DECL_PTRACE_SINGLESTEP $ac_have_decl
16326 ac_fn_c_check_decl "$LINENO" "PTRACE_SYSCALL" "ac_cv_have_decl_PTRACE_SYSCALL" "$ac_includes_default
16327 #if HAVE_SYS_TYPES_H
16328 #include <sys/types.h>
16330 #include <sys/ptrace.h>
16333 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = xyes; then :
16339 cat >>confdefs.h <<_ACEOF
16340 @%:@define HAVE_DECL_PTRACE_SYSCALL $ac_have_decl
16342 ac_fn_c_check_decl "$LINENO" "PT_IO" "ac_cv_have_decl_PT_IO" "$ac_includes_default
16343 #if HAVE_SYS_TYPES_H
16344 #include <sys/types.h>
16346 #include <sys/ptrace.h>
16349 if test "x$ac_cv_have_decl_PT_IO" = xyes; then :
16355 cat >>confdefs.h <<_ACEOF
16356 @%:@define HAVE_DECL_PT_IO $ac_have_decl
16358 ac_fn_c_check_decl "$LINENO" "PT_GETREGS" "ac_cv_have_decl_PT_GETREGS" "$ac_includes_default
16359 #if HAVE_SYS_TYPES_H
16360 #include <sys/types.h>
16362 #include <sys/ptrace.h>
16365 if test "x$ac_cv_have_decl_PT_GETREGS" = xyes; then :
16371 cat >>confdefs.h <<_ACEOF
16372 @%:@define HAVE_DECL_PT_GETREGS $ac_have_decl
16374 ac_fn_c_check_decl "$LINENO" "PT_GETFPREGS" "ac_cv_have_decl_PT_GETFPREGS" "$ac_includes_default
16375 #if HAVE_SYS_TYPES_H
16376 #include <sys/types.h>
16378 #include <sys/ptrace.h>
16381 if test "x$ac_cv_have_decl_PT_GETFPREGS" = xyes; then :
16387 cat >>confdefs.h <<_ACEOF
16388 @%:@define HAVE_DECL_PT_GETFPREGS $ac_have_decl
16390 ac_fn_c_check_decl "$LINENO" "PT_CONTINUE" "ac_cv_have_decl_PT_CONTINUE" "$ac_includes_default
16391 #if HAVE_SYS_TYPES_H
16392 #include <sys/types.h>
16394 #include <sys/ptrace.h>
16397 if test "x$ac_cv_have_decl_PT_CONTINUE" = xyes; then :
16403 cat >>confdefs.h <<_ACEOF
16404 @%:@define HAVE_DECL_PT_CONTINUE $ac_have_decl
16406 ac_fn_c_check_decl "$LINENO" "PT_TRACE_ME" "ac_cv_have_decl_PT_TRACE_ME" "$ac_includes_default
16407 #if HAVE_SYS_TYPES_H
16408 #include <sys/types.h>
16410 #include <sys/ptrace.h>
16413 if test "x$ac_cv_have_decl_PT_TRACE_ME" = xyes; then :
16419 cat >>confdefs.h <<_ACEOF
16420 @%:@define HAVE_DECL_PT_TRACE_ME $ac_have_decl
16422 ac_fn_c_check_decl "$LINENO" "PT_STEP" "ac_cv_have_decl_PT_STEP" "$ac_includes_default
16423 #if HAVE_SYS_TYPES_H
16424 #include <sys/types.h>
16426 #include <sys/ptrace.h>
16429 if test "x$ac_cv_have_decl_PT_STEP" = xyes; then :
16435 cat >>confdefs.h <<_ACEOF
16436 @%:@define HAVE_DECL_PT_STEP $ac_have_decl
16438 ac_fn_c_check_decl "$LINENO" "PT_SYSCALL" "ac_cv_have_decl_PT_SYSCALL" "$ac_includes_default
16439 #if HAVE_SYS_TYPES_H
16440 #include <sys/types.h>
16442 #include <sys/ptrace.h>
16445 if test "x$ac_cv_have_decl_PT_SYSCALL" = xyes; then :
16451 cat >>confdefs.h <<_ACEOF
16452 @%:@define HAVE_DECL_PT_SYSCALL $ac_have_decl
16456 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
16459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16462 cat >>confdefs.h <<_ACEOF
16463 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with AltiVec" >&5
16471 $as_echo_n "checking if building with AltiVec... " >&6; }
16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16475 #ifndef __ALTIVEC__
16480 if ac_fn_c_try_compile "$LINENO"; then :
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 if test x$use_altivec = xyes; then
16488 USE_ALTIVEC_FALSE='#'
16490 USE_ALTIVEC_TRUE='#'
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_altivec" >&5
16495 $as_echo "$use_altivec" >&6; }
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16500 #ifndef __powerpc64__
16505 if ac_fn_c_try_compile "$LINENO"; then :
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 case $build_cpu in @%:@(
16516 build_arch=arm ;; @%:@(
16518 build_arch=x86 ;; @%:@(
16520 build_arch=hppa ;; @%:@(
16522 build_arch=mips ;; @%:@(
16524 build_arch=ppc$ppc_bits ;; @%:@(
16526 build_arch=sh ;; @%:@(
16528 build_arch=x86_64 ;; @%:@(
16530 build_arch=$build_cpu ;;
16534 case $host_cpu in @%:@(
16536 host_arch=arm ;; @%:@(
16538 host_arch=x86 ;; @%:@(
16540 host_arch=hppa ;; @%:@(
16542 host_arch=mips ;; @%:@(
16544 host_arch=ppc$ppc_bits ;; @%:@(
16546 host_arch=sh ;; @%:@(
16548 host_arch=x86_64 ;; @%:@(
16550 host_arch=$host_cpu ;;
16554 case $target_cpu in @%:@(
16556 target_arch=arm ;; @%:@(
16558 target_arch=x86 ;; @%:@(
16560 target_arch=hppa ;; @%:@(
16562 target_arch=mips ;; @%:@(
16564 target_arch=ppc$ppc_bits ;; @%:@(
16566 target_arch=sh ;; @%:@(
16568 target_arch=x86_64 ;; @%:@(
16570 target_arch=$target_cpu ;;
16574 @%:@ Check whether --enable-coredump was given.
16575 if test "${enable_coredump+set}" = set; then :
16576 enableval=$enable_coredump;
16578 case $host_arch in @%:@(
16579 arm*|mips*|sh*|x86*) :
16580 enable_coredump=yes ;; @%:@(
16582 enable_coredump=no ;;
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should build libunwind-coredump" >&5
16589 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coredump" >&5
16591 $as_echo "$enable_coredump" >&6; }
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build architecture" >&5
16594 $as_echo_n "checking for build architecture... " >&6; }
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_arch" >&5
16596 $as_echo "$build_arch" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host architecture" >&5
16598 $as_echo_n "checking for host architecture... " >&6; }
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_arch" >&5
16600 $as_echo "$host_arch" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
16602 $as_echo_n "checking for target architecture... " >&6; }
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_arch" >&5
16604 $as_echo "$target_arch" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target operating system" >&5
16606 $as_echo_n "checking for target operating system... " >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
16608 $as_echo "$target_os" >&6; }
16610 if test x$enable_coredump = xyes; then
16611 BUILD_COREDUMP_TRUE=
16612 BUILD_COREDUMP_FALSE='#'
16614 BUILD_COREDUMP_TRUE='#'
16615 BUILD_COREDUMP_FALSE=
16618 if test x$target_arch != x$host_arch; then
16620 REMOTE_ONLY_FALSE='#'
16622 REMOTE_ONLY_TRUE='#'
16626 if test x$target_arch = xarm; then
16634 if test x$target_arch = xia64; then
16636 ARCH_IA64_FALSE='#'
16642 if test x$target_arch = xhppa; then
16644 ARCH_HPPA_FALSE='#'
16650 if test x$target_arch = xmips; then
16652 ARCH_MIPS_FALSE='#'
16658 if test x$target_arch = xx86; then
16666 if test x$target_arch = xx86_64; then
16668 ARCH_X86_64_FALSE='#'
16670 ARCH_X86_64_TRUE='#'
16674 if test x$target_arch = xppc32; then
16676 ARCH_PPC32_FALSE='#'
16678 ARCH_PPC32_TRUE='#'
16682 if test x$target_arch = xppc64; then
16684 ARCH_PPC64_FALSE='#'
16686 ARCH_PPC64_TRUE='#'
16690 if test x$target_arch = xsh; then
16698 if expr x$target_os : xlinux >/dev/null; then
16706 if expr x$target_os : xhpux >/dev/null; then
16714 if expr x$target_os : xfreebsd >/dev/null; then
16716 OS_FREEBSD_FALSE='#'
16718 OS_FREEBSD_TRUE='#'
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF helper width" >&5
16724 $as_echo_n "checking for ELF helper width... " >&6; }
16725 case "${target_arch}" in
16726 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32" >&5
16727 $as_echo "32" >&6; };;
16728 (ia64|ppc64|x86_64) use_elf64=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64" >&5
16729 $as_echo "64" >&6; };;
16730 (mips) use_elfxx=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: xx" >&5
16731 $as_echo "xx" >&6; };;
16732 *) as_fn_error $? "Unknown ELF target: ${target_arch}" "$LINENO" 5
16734 if test x$use_elf32 = xyes; then
16736 USE_ELF32_FALSE='#'
16742 if test x$use_elf64 = xyes; then
16744 USE_ELF64_FALSE='#'
16750 if test x$use_elfxx = xyes; then
16752 USE_ELFXX_FALSE='#'
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DWARF support" >&5
16760 $as_echo_n "checking whether to include DWARF support... " >&6; }
16761 if test x$target_arch != xia64; then
16766 if test x$use_dwarf = xyes; then
16768 USE_DWARF_FALSE='#'
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_dwarf" >&5
16775 $as_echo "$use_dwarf" >&6; }
16777 if test x$target_arch = xppc64; then
16778 libdir='${exec_prefix}/lib64'
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: PowerPC64 detected, lib will be installed ${libdir}" >&5
16780 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to restrict build to remote support" >&5
16785 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
16786 if test x$target_arch != x$host_arch; then
16787 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $remote_only" >&5
16793 $as_echo "$remote_only" >&6; }
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug support" >&5
16796 $as_echo_n "checking whether to enable debug support... " >&6; }
16797 @%:@ Check whether --enable-debug was given.
16798 if test "${enable_debug+set}" = set; then :
16799 enableval=$enable_debug;
16802 if test x$enable_debug = xyes; then
16803 CPPFLAGS="${CPPFLAGS} -DDEBUG"
16805 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16808 $as_echo "$enable_debug" >&6; }
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++ exception support" >&5
16811 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
16812 @%:@ Check whether --enable-cxx_exceptions was given.
16813 if test "${enable_cxx_exceptions+set}" = set; then :
16814 enableval=$enable_cxx_exceptions;
16817 # C++ exception handling doesn't work too well on x86
16818 case $target_arch in
16819 x86*) enable_cxx_exceptions=no;;
16820 arm*) enable_cxx_exceptions=no;;
16821 mips*) enable_cxx_exceptions=no;;
16822 *) enable_cxx_exceptions=yes;;
16828 if test x$enable_cxx_exceptions = xyes; then
16829 SUPPORT_CXX_EXCEPTIONS_TRUE=
16830 SUPPORT_CXX_EXCEPTIONS_FALSE='#'
16832 SUPPORT_CXX_EXCEPTIONS_TRUE='#'
16833 SUPPORT_CXX_EXCEPTIONS_FALSE=
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cxx_exceptions" >&5
16837 $as_echo "$enable_cxx_exceptions" >&6; }
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to load .debug_frame sections" >&5
16840 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
16841 @%:@ Check whether --enable-debug_frame was given.
16842 if test "${enable_debug_frame+set}" = set; then :
16843 enableval=$enable_debug_frame;
16846 case "${target_arch}" in
16847 (arm) enable_debug_frame=yes;;
16848 (*) enable_debug_frame=no;;
16852 if test x$enable_debug_frame = xyes; then
16854 $as_echo "@%:@define CONFIG_DEBUG_FRAME /**/" >>confdefs.h
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_frame" >&5
16858 $as_echo "$enable_debug_frame" >&6; }
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to block signals during mutex ops" >&5
16861 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
16862 @%:@ Check whether --enable-block_signals was given.
16863 if test "${enable_block_signals+set}" = set; then :
16864 enableval=$enable_block_signals;
16866 enable_block_signals=yes
16869 if test x$enable_block_signals = xyes; then
16871 $as_echo "@%:@define CONFIG_BLOCK_SIGNALS /**/" >>confdefs.h
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_block_signals" >&5
16875 $as_echo "$enable_block_signals" >&6; }
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to validate memory addresses before use" >&5
16878 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
16879 @%:@ Check whether --enable-conservative_checks was given.
16880 if test "${enable_conservative_checks+set}" = set; then :
16881 enableval=$enable_conservative_checks;
16883 enable_conservative_checks=yes
16886 if test x$enable_conservative_checks = xyes; then
16888 $as_echo "@%:@define CONSERVATIVE_CHECKS 1" >>confdefs.h
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_conservative_checks" >&5
16892 $as_echo "$enable_conservative_checks" >&6; }
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable msabi support" >&5
16895 $as_echo_n "checking whether to enable msabi support... " >&6; }
16896 @%:@ Check whether --enable-msabi_support was given.
16897 if test "${enable_msabi_support+set}" = set; then :
16898 enableval=$enable_msabi_support;
16901 if test x$enable_msabi_support = xyes; then
16903 $as_echo "@%:@define CONFIG_MSABI_SUPPORT /**/" >>confdefs.h
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_msabi_support" >&5
16907 $as_echo "$enable_msabi_support" >&6; }
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LZMA-compressed symbol tables" >&5
16910 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
16911 @%:@ Check whether --enable-minidebuginfo was given.
16912 if test "${enable_minidebuginfo+set}" = set; then :
16913 enableval=$enable_minidebuginfo;
16915 enable_minidebuginfo=auto
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_minidebuginfo" >&5
16919 $as_echo "$enable_minidebuginfo" >&6; }
16920 if test x$enable_minidebuginfo != xno; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_mf_is_supported in -llzma" >&5
16922 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
16923 if ${ac_cv_lib_lzma_lzma_mf_is_supported+:} false; then :
16924 $as_echo_n "(cached) " >&6
16926 ac_check_lib_save_LIBS=$LIBS
16927 LIBS="-llzma $LIBS"
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16937 char lzma_mf_is_supported ();
16941 return lzma_mf_is_supported ();
16946 if ac_fn_c_try_link "$LINENO"; then :
16947 ac_cv_lib_lzma_lzma_mf_is_supported=yes
16949 ac_cv_lib_lzma_lzma_mf_is_supported=no
16951 rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16953 LIBS=$ac_check_lib_save_LIBS
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
16956 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
16957 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = xyes; then :
16961 $as_echo "@%:@define HAVE_LZMA 1" >>confdefs.h
16963 enable_minidebuginfo=yes
16965 if test x$enable_minidebuginfo = xyes; then
16966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16968 as_fn_error $? "liblzma not found
16969 See \`config.log' for more details" "$LINENO" 5; }
16974 if test x$enable_minidebuginfo = xyes; then
16976 HAVE_LZMA_FALSE='#'
16983 if test "x$enable___thread" != xno; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
16985 $as_echo_n "checking for __thread... " >&6; }
16986 if ${libc_cv_gcc___thread+:} false; then :
16987 $as_echo_n "(cached) " >&6
16989 cat > conftest.c <<\EOF
16990 __thread int a = 42;
16992 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
16993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16994 (eval $ac_try) 2>&5
16996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16997 test $ac_status = 0; }; }; then
16998 libc_cv_gcc___thread=yes
17000 libc_cv_gcc___thread=no
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
17005 $as_echo "$libc_cv_gcc___thread" >&6; }
17006 if test "$libc_cv_gcc___thread" = yes; then
17008 $as_echo "@%:@define HAVE___THREAD 1" >>confdefs.h
17012 libc_cv_gcc___thread=no
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel compiler" >&5
17016 $as_echo_n "checking for Intel compiler... " >&6; }
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17023 #ifndef __INTEL_COMPILER
17030 if ac_fn_c_try_compile "$LINENO"; then :
17035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17037 if test x$GCC = xyes -a x$intel_compiler != xyes; then
17038 CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_compiler" >&5
17042 $as_echo "$intel_compiler" >&6; }
17044 if test x$intel_compiler = xyes; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -static-libcxa" >&5
17046 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
17047 save_LDFLAGS="$LDFLAGS"
17048 LDFLAGS="$LDFLAGS -static-libcxa"
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 have_static_libcxa=yes
17063 have_static_libcxa=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 LDFLAGS="$save_LDFLAGS"
17068 if test "x$have_static_libcxa" = xyes; then
17069 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libcxa" >&5
17072 $as_echo "$have_static_libcxa" >&6; }
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin___clear_cache" >&5
17076 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17083 __builtin___clear_cache(0, 0)
17088 if ac_fn_c_try_link "$LINENO"; then :
17089 have__builtin___clear_cache=yes
17091 have__builtin___clear_cache=no
17093 rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095 if test x$have__builtin___clear_cache = xyes; then
17097 $as_echo "@%:@define HAVE__BUILTIN___CLEAR_CACHE 1" >>confdefs.h
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have__builtin___clear_cache" >&5
17101 $as_echo "$have__builtin___clear_cache" >&6; }
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync atomics" >&5
17104 $as_echo_n "checking for __sync atomics... " >&6; }
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17112 __sync_bool_compare_and_swap((int *)0, 0, 1);
17113 __sync_fetch_and_add((int *)0, 1);
17119 if ac_fn_c_try_link "$LINENO"; then :
17120 have_sync_atomics=yes
17122 have_sync_atomics=no
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17126 if test x$have_sync_atomics = xyes; then
17128 $as_echo "@%:@define HAVE_SYNC_ATOMICS 1" >>confdefs.h
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_atomics" >&5
17132 $as_echo "$have_sync_atomics" >&6; }
17134 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
17136 arch="$target_arch"
17137 ARCH=`echo $target_arch | tr a-z A-Z`
17142 PKG_MAINTAINER=libunwind-devel@nongnu.org
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
17147 $as_echo_n "checking for library containing backtrace... " >&6; }
17148 if ${ac_cv_search_backtrace+:} false; then :
17149 $as_echo_n "(cached) " >&6
17151 ac_func_search_save_LIBS=$LIBS
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17165 return backtrace ();
17170 for ac_lib in '' execinfo; do
17171 if test -z "$ac_lib"; then
17172 ac_res="none required"
17175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 ac_cv_search_backtrace=$ac_res
17180 rm -f core conftest.err conftest.$ac_objext \
17182 if ${ac_cv_search_backtrace+:} false; then :
17186 if ${ac_cv_search_backtrace+:} false; then :
17189 ac_cv_search_backtrace=no
17191 rm conftest.$ac_ext
17192 LIBS=$ac_func_search_save_LIBS
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
17195 $as_echo "$ac_cv_search_backtrace" >&6; }
17196 ac_res=$ac_cv_search_backtrace
17197 if test "$ac_res" != no; then :
17198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17218 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh doc/Makefile doc/common.tex include/libunwind-common.h include/libunwind.h include/tdep/libunwind_i.h"
17220 ac_config_files="$ac_config_files src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc src/ptrace/libunwind-ptrace.pc src/setjmp/libunwind-setjmp.pc src/libunwind-generic.pc"
17222 cat >confcache <<\_ACEOF
17223 # This file is a shell script that caches the results of configure
17224 # tests run on this system so they can be shared between configure
17225 # scripts and configure runs, see configure's option --config-cache.
17226 # It is not useful on other systems. If it contains results you don't
17227 # want to keep, you may remove or edit it.
17229 # config.status only pays attention to the cache file if you give it
17230 # the --recheck option to rerun configure.
17232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17234 # following values.
17238 # The following way of writing the cache mishandles newlines in values,
17239 # but we know of no workaround that is simple, portable, and efficient.
17240 # So, we kill variables containing newlines.
17241 # Ultrix sh set writes to stderr and can't be redirected directly,
17242 # and sets the high bit in the cache file unless we assign to the vars.
17244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17245 eval ac_val=\$$ac_var
17249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17253 _ | IFS | as_nl) ;; #(
17254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17255 *) { eval $ac_var=; unset $ac_var;} ;;
17261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17262 *${as_nl}ac_space=\ *)
17263 # `set' does not quote correctly, so add quotes: double-quote
17264 # substitution turns \\\\ into \\, and sed turns \\ into \.
17267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17270 # `set' quotes correctly as required by POSIX, so do not add quotes.
17271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17285 if test -w "$cache_file"; then
17286 if test "x$cache_file" != "x/dev/null"; then
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17288 $as_echo "$as_me: updating cache $cache_file" >&6;}
17289 if test ! -f "$cache_file" || test -h "$cache_file"; then
17290 cat confcache >"$cache_file"
17292 case $cache_file in #(
17294 mv -f confcache "$cache_file"$$ &&
17295 mv -f "$cache_file"$$ "$cache_file" ;; #(
17297 mv -f confcache "$cache_file" ;;
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17303 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17309 # Let make expand exec_prefix.
17310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17312 DEFS=-DHAVE_CONFIG_H
17317 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
17318 # 1. Remove the extension, and $U if already installed.
17319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17322 # will be set to the directory where LIBOBJS objects are built.
17323 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17324 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17326 LIB@&t@OBJS=$ac_libobjs
17328 LTLIBOBJS=$ac_ltlibobjs
17331 if test -n "$EXEEXT"; then
17333 am__EXEEXT_FALSE='#'
17335 am__EXEEXT_TRUE='#'
17339 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17340 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17344 as_fn_error $? "conditional \"AMDEP\" was never defined.
17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17348 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17351 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17352 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17355 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17356 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17359 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
17360 as_fn_error $? "conditional \"USE_ALTIVEC\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
17364 as_fn_error $? "conditional \"BUILD_COREDUMP\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17367 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
17368 as_fn_error $? "conditional \"REMOTE_ONLY\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17372 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17375 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
17376 as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
17380 as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
17384 as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17387 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17388 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
17389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17391 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
17392 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
17393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17395 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
17396 as_fn_error $? "conditional \"ARCH_PPC32\" was never defined.
17397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17399 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
17400 as_fn_error $? "conditional \"ARCH_PPC64\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17403 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
17404 as_fn_error $? "conditional \"ARCH_SH\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17407 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
17408 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17411 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
17412 as_fn_error $? "conditional \"OS_HPUX\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17415 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
17416 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17419 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
17420 as_fn_error $? "conditional \"USE_ELF32\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17423 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
17424 as_fn_error $? "conditional \"USE_ELF64\" was never defined.
17425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17427 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
17428 as_fn_error $? "conditional \"USE_ELFXX\" was never defined.
17429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
17432 as_fn_error $? "conditional \"USE_DWARF\" was never defined.
17433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
17436 as_fn_error $? "conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
17437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17439 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
17440 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
17441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17444 : "${CONFIG_STATUS=./config.status}"
17446 ac_clean_files_save=$ac_clean_files
17447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17449 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17451 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17453 # Generated by $as_me.
17454 # Run this file to recreate the current configuration.
17455 # Compiler output produced by configure, useful for debugging
17456 # configure, is in config.log if it exists.
17459 ac_cs_recheck=false
17462 SHELL=\${CONFIG_SHELL-$SHELL}
17465 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17466 ## -------------------- ##
17467 ## M4sh Initialization. ##
17468 ## -------------------- ##
17470 # Be more Bourne compatible
17471 DUALCASE=1; export DUALCASE # for MKS sh
17472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17476 # is contrary to our usage. Disable this feature.
17477 alias -g '${1+"$@"}'='"$@"'
17478 setopt NO_GLOB_SUBST
17480 case `(set -o) 2>/dev/null` in @%:@(
17482 set -o posix ;; @%:@(
17492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17496 # Prefer a ksh shell builtin over an external printf program on Solaris,
17497 # but without wasting forks for bash or zsh.
17498 if test -z "$BASH_VERSION$ZSH_VERSION" \
17499 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17500 as_echo='print -r --'
17501 as_echo_n='print -rn --'
17502 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17503 as_echo='printf %s\n'
17504 as_echo_n='printf %s'
17506 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17507 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17508 as_echo_n='/usr/ucb/echo -n'
17510 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17511 as_echo_n_body='eval
17515 expr "X$arg" : "X\\(.*\\)$as_nl";
17516 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17518 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17520 export as_echo_n_body
17521 as_echo_n='sh -c $as_echo_n_body as_echo'
17523 export as_echo_body
17524 as_echo='sh -c $as_echo_body as_echo'
17527 # The user is always right.
17528 if test "${PATH_SEPARATOR+set}" != set; then
17530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17538 # We need space, tab and new line, in precisely that order. Quoting is
17539 # there to prevent editors from complaining about space-tab.
17540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17541 # splitting by setting IFS to empty value.)
17544 # Find who we are. Look in the path if we contain no directory separator.
17547 *[\\/]* ) as_myself=$0 ;;
17548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17552 test -z "$as_dir" && as_dir=.
17553 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17559 # We did not find ourselves, most probably we were run as `sh COMMAND'
17560 # in which case we are not to be found in the path.
17561 if test "x$as_myself" = x; then
17564 if test ! -f "$as_myself"; then
17565 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17569 # Unset variables that we do not need and which cause bugs (e.g. in
17570 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17571 # suppresses any "Segmentation fault" message there. '((' could
17572 # trigger a bug in pdksh 5.2.14.
17573 for as_var in BASH_ENV ENV MAIL MAILPATH
17574 do eval test x\${$as_var+set} = xset \
17575 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17591 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
17592 @%:@ ----------------------------------------
17593 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17594 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17595 @%:@ script with STATUS, using 1 if that was 0.
17598 as_status=$1; test $as_status -eq 0 && as_status=1
17600 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17601 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17603 $as_echo "$as_me: error: $2" >&2
17604 as_fn_exit $as_status
17608 @%:@ as_fn_set_status STATUS
17609 @%:@ -----------------------
17610 @%:@ Set @S|@? to STATUS, without forking.
17611 as_fn_set_status ()
17614 } @%:@ as_fn_set_status
17616 @%:@ as_fn_exit STATUS
17617 @%:@ -----------------
17618 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17622 as_fn_set_status $1
17626 @%:@ as_fn_unset VAR
17627 @%:@ ---------------
17628 @%:@ Portably unset VAR.
17631 { eval $1=; unset $1;}
17633 as_unset=as_fn_unset
17634 @%:@ as_fn_append VAR VALUE
17635 @%:@ ----------------------
17636 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
17637 @%:@ advantage of any shell optimizations that allow amortized linear growth over
17638 @%:@ repeated appends, instead of the typical quadratic growth present in naive
17639 @%:@ implementations.
17640 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17641 eval 'as_fn_append ()
17652 @%:@ as_fn_arith ARG...
17653 @%:@ ------------------
17654 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
17655 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
17656 @%:@ must be portable across @S|@(()) and expr.
17657 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17658 eval 'as_fn_arith ()
17665 as_val=`expr "$@" || test $? -eq 1`
17670 if expr a : '\(a\)' >/dev/null 2>&1 &&
17671 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17677 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17678 as_basename=basename
17683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17689 as_me=`$as_basename -- "$0" ||
17690 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17691 X"$0" : 'X\(//\)$' \| \
17692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17694 sed '/^.*\/\([^/][^/]*\)\/*$/{
17708 # Avoid depending upon Character Ranges.
17709 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17710 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17711 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17712 as_cr_digits='0123456789'
17713 as_cr_alnum=$as_cr_Letters$as_cr_digits
17715 ECHO_C= ECHO_N= ECHO_T=
17716 case `echo -n x` in @%:@(((((
17718 case `echo 'xy\c'` in
17719 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17721 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17728 rm -f conf$$ conf$$.exe conf$$.file
17729 if test -d conf$$.dir; then
17730 rm -f conf$$.dir/conf$$.file
17733 mkdir conf$$.dir 2>/dev/null
17735 if (echo >conf$$.file) 2>/dev/null; then
17736 if ln -s conf$$.file conf$$ 2>/dev/null; then
17738 # ... but there are two gotchas:
17739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17741 # In both cases, we have to default to `cp -p'.
17742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17744 elif ln conf$$.file conf$$ 2>/dev/null; then
17752 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17753 rmdir conf$$.dir 2>/dev/null
17758 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17763 -*) as_dir=./$as_dir;;
17765 test -d "$as_dir" || eval $as_mkdir_p || {
17769 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17770 *) as_qdir=$as_dir;;
17772 as_dirs="'$as_qdir' $as_dirs"
17773 as_dir=`$as_dirname -- "$as_dir" ||
17774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17775 X"$as_dir" : 'X\(//\)[^/]' \| \
17776 X"$as_dir" : 'X\(//\)$' \| \
17777 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17778 $as_echo X"$as_dir" |
17779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17783 /^X\(\/\/\)[^/].*/{
17796 test -d "$as_dir" && break
17798 test -z "$as_dirs" || eval "mkdir $as_dirs"
17799 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17802 } @%:@ as_fn_mkdir_p
17803 if mkdir -p . 2>/dev/null; then
17804 as_mkdir_p='mkdir -p "$as_dir"'
17806 test -d ./-p && rmdir ./-p
17810 if test -x / >/dev/null 2>&1; then
17811 as_test_x='test -x'
17813 if ls -dL / >/dev/null 2>&1; then
17820 if test -d "$1"; then
17826 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
17827 ???[sx]*):;;*)false;;esac;fi
17831 as_executable_p=$as_test_x
17833 # Sed expression to map a string onto a valid CPP name.
17834 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17836 # Sed expression to map a string onto a valid variable name.
17837 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17841 ## ----------------------------------- ##
17842 ## Main body of $CONFIG_STATUS script. ##
17843 ## ----------------------------------- ##
17845 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848 # Save the log message, to keep $0 and so on meaningful, and to
17849 # report actual input values of CONFIG_FILES etc. instead of their
17850 # values after options handling.
17852 This file was extended by libunwind $as_me 1.1, which was
17853 generated by GNU Autoconf 2.68. Invocation command line was
17855 CONFIG_FILES = $CONFIG_FILES
17856 CONFIG_HEADERS = $CONFIG_HEADERS
17857 CONFIG_LINKS = $CONFIG_LINKS
17858 CONFIG_COMMANDS = $CONFIG_COMMANDS
17861 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17866 case $ac_config_files in *"
17867 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17870 case $ac_config_headers in *"
17871 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17876 # Files that config.status was made for.
17877 config_files="$ac_config_files"
17878 config_headers="$ac_config_headers"
17879 config_commands="$ac_config_commands"
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17885 \`$as_me' instantiates files and other configuration actions
17886 from templates according to the current configuration. Unless the files
17887 and actions are specified as TAGs, all are instantiated by default.
17889 Usage: $0 [OPTION]... [TAG]...
17891 -h, --help print this help, then exit
17892 -V, --version print version number and configuration settings, then exit
17893 --config print configuration, then exit
17894 -q, --quiet, --silent
17895 do not print progress messages
17896 -d, --debug don't remove temporary files
17897 --recheck update $as_me by reconfiguring in the same conditions
17898 --file=FILE[:TEMPLATE]
17899 instantiate the configuration file FILE
17900 --header=FILE[:TEMPLATE]
17901 instantiate the configuration header FILE
17903 Configuration files:
17906 Configuration headers:
17909 Configuration commands:
17912 Report bugs to <libunwind-devel@nongnu.org>."
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17918 libunwind config.status 1.1
17919 configured by $0, generated by GNU Autoconf 2.68,
17920 with options \\"\$ac_cs_config\\"
17922 Copyright (C) 2010 Free Software Foundation, Inc.
17923 This config.status script is free software; the Free Software Foundation
17924 gives unlimited permission to copy, distribute and modify it."
17931 test -n "\$AWK" || AWK=awk
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17935 # The default lists apply if the user does not specify any file.
17941 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17942 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17958 # Handling of the options.
17959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17962 $as_echo "$ac_cs_version"; exit ;;
17963 --config | --confi | --conf | --con | --co | --c )
17964 $as_echo "$ac_cs_config"; exit ;;
17965 --debug | --debu | --deb | --de | --d | -d )
17967 --file | --fil | --fi | --f )
17970 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17971 '') as_fn_error $? "missing file argument" ;;
17973 as_fn_append CONFIG_FILES " '$ac_optarg'"
17974 ac_need_defaults=false;;
17975 --header | --heade | --head | --hea )
17978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17980 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17981 ac_need_defaults=false;;
17983 # Conflict between --help and --header
17984 as_fn_error $? "ambiguous option: \`$1'
17985 Try \`$0 --help' for more information.";;
17986 --help | --hel | -h )
17987 $as_echo "$ac_cs_usage"; exit ;;
17988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17989 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17992 # This is an error.
17993 -*) as_fn_error $? "unrecognized option: \`$1'
17994 Try \`$0 --help' for more information." ;;
17996 *) as_fn_append ac_config_targets " $1"
17997 ac_need_defaults=false ;;
18003 ac_configure_extra_args=
18005 if $ac_cs_silent; then
18007 ac_configure_extra_args="$ac_configure_extra_args --silent"
18011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18012 if \$ac_cs_recheck; then
18013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18016 CONFIG_SHELL='$SHELL'
18017 export CONFIG_SHELL
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18026 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18027 @%:@@%:@ Running $as_me. @%:@@%:@
18033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18040 # The HP-UX ksh and POSIX shell print the target directory to stdout
18041 # if CDPATH is set.
18042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18044 sed_quote_subst='$sed_quote_subst'
18045 double_quote_subst='$double_quote_subst'
18046 delay_variable_subst='$delay_variable_subst'
18047 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18048 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18049 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18050 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18051 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18052 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18053 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18054 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18055 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18056 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18057 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18058 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18059 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18060 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18061 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18062 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18063 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18064 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18065 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18066 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18067 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18068 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18069 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18070 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18071 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18072 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18073 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18074 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18075 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18076 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18077 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18078 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18079 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18080 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18081 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18082 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18083 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18084 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18085 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18086 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18087 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18088 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18089 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18090 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18091 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18092 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18093 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18094 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18095 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18096 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18097 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18098 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18099 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18100 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18101 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18102 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18103 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"`'
18104 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18105 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18106 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18107 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18108 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18109 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18110 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18111 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18112 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18113 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18114 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18115 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18116 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18117 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18118 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18119 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18120 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18121 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18122 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18123 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18124 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18125 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18126 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18127 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18128 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18129 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18130 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18131 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18132 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18133 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18134 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18135 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18136 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18137 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18138 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18139 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18140 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18141 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18142 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18143 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18144 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18145 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18146 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18147 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18148 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18149 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18150 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18151 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18152 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18153 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18154 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18155 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18156 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18157 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18158 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18159 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18160 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18161 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18162 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18163 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18164 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18165 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18166 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18167 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18168 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18169 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18170 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18171 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18172 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18173 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18174 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18175 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18176 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18177 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18178 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18179 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18180 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18181 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18182 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18183 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18184 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18185 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18187 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18188 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18189 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18190 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18191 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18193 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18194 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18195 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18196 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18197 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18198 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18199 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18200 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18201 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18202 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18203 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18206 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18207 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18208 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18209 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18210 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18211 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18212 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18213 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18214 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18215 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18216 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18217 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18218 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18219 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18220 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18221 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18224 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18225 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18226 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18227 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18228 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18229 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18230 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18233 LTCFLAGS='$LTCFLAGS'
18234 compiler='$compiler_DEFAULT'
18236 # A function that is used when there is no print builtin or printf.
18237 func_fallback_echo ()
18239 eval 'cat <<_LTECHO_EOF
18244 # Quote evaled strings.
18259 deplibs_check_method \
18264 sharedlib_from_linklib_cmd \
18267 archiver_list_spec \
18273 lt_cv_sys_global_symbol_pipe \
18274 lt_cv_sys_global_symbol_to_cdecl \
18275 lt_cv_sys_global_symbol_to_c_name_address \
18276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18277 nm_file_list_spec \
18278 lt_prog_compiler_no_builtin_flag \
18279 lt_prog_compiler_pic \
18280 lt_prog_compiler_wl \
18281 lt_prog_compiler_static \
18282 lt_cv_prog_compiler_c_o \
18291 export_dynamic_flag_spec \
18292 whole_archive_flag_spec \
18293 compiler_needs_object \
18295 allow_undefined_flag \
18296 no_undefined_flag \
18297 hardcode_libdir_flag_spec \
18298 hardcode_libdir_separator \
18302 variables_saved_for_relink \
18304 library_names_spec \
18306 install_override_mode \
18310 compiler_lib_search_dirs \
18315 compiler_lib_search_path \
18319 lt_prog_compiler_no_builtin_flag_CXX \
18320 lt_prog_compiler_pic_CXX \
18321 lt_prog_compiler_wl_CXX \
18322 lt_prog_compiler_static_CXX \
18323 lt_cv_prog_compiler_c_o_CXX \
18324 export_dynamic_flag_spec_CXX \
18325 whole_archive_flag_spec_CXX \
18326 compiler_needs_object_CXX \
18328 allow_undefined_flag_CXX \
18329 no_undefined_flag_CXX \
18330 hardcode_libdir_flag_spec_CXX \
18331 hardcode_libdir_separator_CXX \
18332 exclude_expsyms_CXX \
18333 include_expsyms_CXX \
18334 file_list_spec_CXX \
18335 compiler_lib_search_dirs_CXX \
18336 predep_objects_CXX \
18337 postdep_objects_CXX \
18340 compiler_lib_search_path_CXX; do
18341 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18342 *[\\\\\\\`\\"\\\$]*)
18343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18351 # Double-quote double-evaled strings.
18352 for var in reload_cmds \
18353 old_postinstall_cmds \
18354 old_postuninstall_cmds \
18356 extract_expsyms_cmds \
18357 old_archive_from_new_cmds \
18358 old_archive_from_expsyms_cmds \
18360 archive_expsym_cmds \
18362 module_expsym_cmds \
18363 export_symbols_cmds \
18367 postuninstall_cmds \
18369 sys_lib_search_path_spec \
18370 sys_lib_dlsearch_path_spec \
18372 old_archive_cmds_CXX \
18373 old_archive_from_new_cmds_CXX \
18374 old_archive_from_expsyms_cmds_CXX \
18376 archive_expsym_cmds_CXX \
18378 module_expsym_cmds_CXX \
18379 export_symbols_cmds_CXX \
18381 postlink_cmds_CXX; do
18382 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18383 *[\\\\\\\`\\"\\\$]*)
18384 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18387 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18392 ac_aux_dir='$ac_aux_dir'
18393 xsi_shell='$xsi_shell'
18394 lt_shell_append='$lt_shell_append'
18396 # See if we are running on zsh, and set the options which allow our
18397 # commands through without removal of \ escapes INIT.
18398 if test -n "\${ZSH_VERSION+set}" ; then
18399 setopt NO_GLOB_SUBST
18405 TIMESTAMP='$TIMESTAMP'
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18418 # Handling of arguments.
18419 for ac_config_target in $ac_config_targets
18421 case $ac_config_target in
18422 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18423 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18424 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18426 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18427 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18428 "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
18429 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18430 "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
18431 "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
18432 "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
18433 "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
18434 "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
18435 "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
18436 "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
18437 "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
18438 "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
18440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18445 # If the user did not use the arguments to specify the items to instantiate,
18446 # then the envvar interface is used. Set only those that are not.
18447 # We use the long form for the default assignment because of an extremely
18448 # bizarre bug on SunOS 4.1.3.
18449 if $ac_need_defaults; then
18450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18455 # Have a temporary directory for convenience. Make it in the build tree
18456 # simply because there is no reason against having it here, and in addition,
18457 # creating and moving files from /tmp can sometimes cause problems.
18458 # Hook for its removal unless debugging.
18459 # Note that there is a small window in which the directory will not be cleaned:
18460 # after its creation but before its name has been assigned to `$tmp'.
18464 trap 'exit_status=$?
18465 : "${ac_tmp:=$tmp}"
18466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18468 trap 'as_fn_exit 1' 1 2 13 15
18470 # Create a (secure) tmp directory for tmp files.
18473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18477 tmp=./conf$$-$RANDOM
18478 (umask 077 && mkdir "$tmp")
18479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18482 # Set up the scripts for CONFIG_FILES section.
18483 # No need to generate them if there are no CONFIG_FILES.
18484 # This happens for instance with `./config.status config.h'.
18485 if test -n "$CONFIG_FILES"; then
18488 ac_cr=`echo X | tr X '\015'`
18489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18490 # But we know of no other shell where ac_cr would be empty at this
18491 # point, so we can use a bashism as a fallback.
18492 if test "x$ac_cr" = x; then
18493 eval ac_cr=\$\'\\r\'
18495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18499 ac_cs_awk_cr=$ac_cr
18502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18507 echo "cat >conf$$subs.awk <<_ACEOF" &&
18508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18510 } >conf$$subs.sh ||
18511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18514 for ac_last_try in false false false false false :; do
18515 . ./conf$$subs.sh ||
18516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18519 if test $ac_delim_n = $ac_delim_num; then
18521 elif $ac_last_try; then
18522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18527 rm -f conf$$subs.sh
18529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18534 s/^/S["/; s/!.*/"]=/
18544 s/\(.\{148\}\)..*/\1/
18546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18558 s/\(.\{148\}\)..*/\1/
18560 s/["\\]/\\&/g; s/^/"/; s/$/"/
18564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18569 ' <conf$$subs.awk | sed '
18574 ' >>$CONFIG_STATUS || ac_write_fail=1
18575 rm -f conf$$subs.awk
18576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18578 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18579 for (key in S) S_is_set[key] = 1
18585 nfields = split(line, field, "@")
18587 len = length(field[1])
18588 for (i = 2; i < nfields; i++) {
18590 keylen = length(key)
18591 if (S_is_set[key]) {
18593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18594 len += length(value) + length(field[++i])
18605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18610 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18616 # trailing colons and then remove the whole line if VPATH becomes empty
18617 # (actually we leave an empty line to preserve line numbers).
18618 if test "x$srcdir" = x.; then
18619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18638 fi # test -n "$CONFIG_FILES"
18640 # Set up the scripts for CONFIG_HEADERS section.
18641 # No need to generate them if there are no CONFIG_HEADERS.
18642 # This happens for instance with `./config.status Makefile'.
18643 if test -n "$CONFIG_HEADERS"; then
18644 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18648 # Transform confdefs.h into an awk script `defines.awk', embedded as
18649 # here-document in config.status, that substitutes the proper values into
18650 # config.h.in to produce config.h.
18652 # Create a delimiter string that does not exist in confdefs.h, to ease
18653 # handling of long lines.
18655 for ac_last_try in false false :; do
18656 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18657 if test -z "$ac_tt"; then
18659 elif $ac_last_try; then
18660 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18666 # For the awk script, D is an array of macro values keyed by name,
18667 # likewise P contains macro parameters if any. Preserve backslash
18668 # newline sequences.
18670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18672 s/.\{148\}/&'"$ac_delim"'/g
18675 s/^[ ]*#[ ]*define[ ][ ]*/ /
18682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18684 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18689 D["\1"]=" \3\\\\\\n"\\/p
18691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18696 s/.\{148\}/&'"$ac_delim"'/g
18701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18706 ' <confdefs.h | sed '
18707 s/'"$ac_delim"'/"\\\
18708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18711 for (key in D) D_is_set[key] = 1
18714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18716 split(line, arg, " ")
18717 if (arg[1] == "#") {
18721 defundef = substr(arg[1], 2)
18724 split(mac1, mac2, "(") #)
18726 prefix = substr(line, 1, index(line, defundef) - 1)
18727 if (D_is_set[macro]) {
18728 # Preserve the white space surrounding the "#".
18729 print prefix "define", macro P[macro] D[macro]
18732 # Replace #undef with comments. This is necessary, for example,
18733 # in the case of _POSIX_SOURCE, which is predefined and required
18734 # on some systems where configure will not decide to define it.
18735 if (defundef == "undef") {
18736 print "/*", prefix defundef, macro, "*/"
18744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18745 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18746 fi # test -n "$CONFIG_HEADERS"
18749 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18754 :[FHLC]) ac_mode=$ac_tag; continue;;
18756 case $ac_mode$ac_tag in
18758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18759 :[FH]-) ac_tag=-:-;;
18760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18777 -) ac_f="$ac_tmp/stdin";;
18778 *) # Look for the file first in the build tree, then in the source tree
18779 # (if the path is not absolute). The absolute path cannot be DOS-style,
18780 # because $ac_f cannot contain `:'.
18784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18788 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18789 as_fn_append ac_file_inputs " '$ac_f'"
18792 # Let's still pretend it is `configure' which instantiates (i.e., don't
18793 # use $as_me), people would be surprised to read:
18794 # /* config.h. Generated by config.status. */
18795 configure_input='Generated from '`
18796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18798 if test x"$ac_file" != x-; then
18799 configure_input="$ac_file. $configure_input"
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18801 $as_echo "$as_me: creating $ac_file" >&6;}
18803 # Neutralize special characters interpreted by sed in replacement strings.
18804 case $configure_input in #(
18805 *\&* | *\|* | *\\* )
18806 ac_sed_conf_input=`$as_echo "$configure_input" |
18807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18808 *) ac_sed_conf_input=$configure_input;;
18812 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18818 ac_dir=`$as_dirname -- "$ac_file" ||
18819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18820 X"$ac_file" : 'X\(//\)[^/]' \| \
18821 X"$ac_file" : 'X\(//\)$' \| \
18822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18823 $as_echo X"$ac_file" |
18824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18828 /^X\(\/\/\)[^/].*/{
18841 as_dir="$ac_dir"; as_fn_mkdir_p
18845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18847 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18848 # A ".." for each directory in $ac_dir_suffix.
18849 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18850 case $ac_top_builddir_sub in
18851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18855 ac_abs_top_builddir=$ac_pwd
18856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18857 # for backward compatibility:
18858 ac_top_builddir=$ac_top_build_prefix
18861 .) # We are building in place.
18863 ac_top_srcdir=$ac_top_builddir_sub
18864 ac_abs_top_srcdir=$ac_pwd ;;
18865 [\\/]* | ?:[\\/]* ) # Absolute name.
18866 ac_srcdir=$srcdir$ac_dir_suffix;
18867 ac_top_srcdir=$srcdir
18868 ac_abs_top_srcdir=$srcdir ;;
18869 *) # Relative name.
18870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18871 ac_top_srcdir=$ac_top_build_prefix$srcdir
18872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18887 ac_MKDIR_P=$MKDIR_P
18889 [\\/$]* | ?:[\\/]* ) ;;
18890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18895 # If the template does not know about datarootdir, expand it.
18896 # FIXME: This hack should be removed a few years after 2.60.
18897 ac_datarootdir_hack=; ac_datarootdir_seen=
18908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18909 *datarootdir*) ac_datarootdir_seen=yes;;
18910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18915 ac_datarootdir_hack='
18916 s&@datadir@&$datadir&g
18917 s&@docdir@&$docdir&g
18918 s&@infodir@&$infodir&g
18919 s&@localedir@&$localedir&g
18920 s&@mandir@&$mandir&g
18921 s&\\\${datarootdir}&$datarootdir&g' ;;
18925 # Neutralize VPATH when `$srcdir' = `.'.
18926 # Shell code in configure.ac might set extrasub.
18927 # FIXME: do we really want to maintain this feature?
18928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18929 ac_sed_extra="$ac_vpsub
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18935 s|@configure_input@|$ac_sed_conf_input|;t t
18936 s&@top_builddir@&$ac_top_builddir_sub&;t t
18937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18938 s&@srcdir@&$ac_srcdir&;t t
18939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18940 s&@top_srcdir@&$ac_top_srcdir&;t t
18941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18942 s&@builddir@&$ac_builddir&;t t
18943 s&@abs_builddir@&$ac_abs_builddir&;t t
18944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18945 s&@INSTALL@&$ac_INSTALL&;t t
18946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18947 $ac_datarootdir_hack
18949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18957 which seems to be undefined. Please make sure it is defined" >&5
18958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18959 which seems to be undefined. Please make sure it is defined" >&2;}
18961 rm -f "$ac_tmp/stdin"
18963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18972 if test x"$ac_file" != x-; then
18974 $as_echo "/* $configure_input */" \
18975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18976 } >"$ac_tmp/config.h" \
18977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18983 mv "$ac_tmp/config.h" "$ac_file" \
18984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18987 $as_echo "/* $configure_input */" \
18988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18989 || as_fn_error $? "could not create -" "$LINENO" 5
18991 # Compute "$ac_file"'s index in $config_headers.
18994 for _am_header in $config_headers :; do
18995 case $_am_header in
18996 $_am_arg | $_am_arg:* )
18999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19004 X"$_am_arg" : 'X\(//\)[^/]' \| \
19005 X"$_am_arg" : 'X\(//\)$' \| \
19006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19007 $as_echo X"$_am_arg" |
19008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19012 /^X\(\/\/\)[^/].*/{
19024 s/.*/./; q'`/stamp-h$_am_stamp_count
19027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19028 $as_echo "$as_me: executing $ac_file commands" >&6;}
19033 case $ac_file$ac_mode in
19034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19035 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19036 # are listed without --file. Let's play safe and only enable the eval
19037 # if we detect the quoting.
19038 case $CONFIG_FILES in
19039 *\'*) eval set x "$CONFIG_FILES" ;;
19040 *) set x $CONFIG_FILES ;;
19045 # Strip MF so we end up with the name of the file.
19046 mf=`echo "$mf" | sed -e 's/:.*$//'`
19047 # Check whether this is an Automake generated Makefile or not.
19048 # We used to match only the files named `Makefile.in', but
19049 # some people rename them; so instead we look at the file content.
19050 # Grep'ing the first line is not enough: some people post-process
19051 # each Makefile.in and add a new line on top of each file to say so.
19052 # Grep'ing the whole file is not good either: AIX grep has a line
19053 # limit of 2048, but all sed's we know have understand at least 4000.
19054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19055 dirpart=`$as_dirname -- "$mf" ||
19056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19057 X"$mf" : 'X\(//\)[^/]' \| \
19058 X"$mf" : 'X\(//\)$' \| \
19059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19065 /^X\(\/\/\)[^/].*/{
19081 # Extract the definition of DEPDIR, am__include, and am__quote
19082 # from the Makefile without running `make'.
19083 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19084 test -z "$DEPDIR" && continue
19085 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19086 test -z "am__include" && continue
19087 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19088 # When using ansi2knr, U may be empty or an underscore; expand it
19089 U=`sed -n 's/^U = //p' < "$mf"`
19090 # Find all dependency output files, they are included files with
19091 # $(DEPDIR) in their names. We invoke sed twice because it is the
19092 # simplest approach to changing $(DEPDIR) to its actual value in the
19094 for file in `sed -n "
19095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19097 # Make sure the directory exists.
19098 test -f "$dirpart/$file" && continue
19099 fdir=`$as_dirname -- "$file" ||
19100 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19101 X"$file" : 'X\(//\)[^/]' \| \
19102 X"$file" : 'X\(//\)$' \| \
19103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19104 $as_echo X"$file" |
19105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109 /^X\(\/\/\)[^/].*/{
19122 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19123 # echo "creating $dirpart/$file"
19124 echo '# dummy' > "$dirpart/$file"
19131 # See if we are running on zsh, and set the options which allow our
19132 # commands through without removal of \ escapes.
19133 if test -n "${ZSH_VERSION+set}" ; then
19134 setopt NO_GLOB_SUBST
19137 cfgfile="${ofile}T"
19138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19141 cat <<_LT_EOF >> "$cfgfile"
19144 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19145 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19150 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19152 # Written by Gordon Matzigkeit, 1996
19154 # This file is part of GNU Libtool.
19156 # GNU Libtool is free software; you can redistribute it and/or
19157 # modify it under the terms of the GNU General Public License as
19158 # published by the Free Software Foundation; either version 2 of
19159 # the License, or (at your option) any later version.
19161 # As a special exception to the GNU General Public License,
19162 # if you distribute this file as part of a program or library that
19163 # is built using GNU Libtool, you may include this file under the
19164 # same distribution terms that you use for the rest of that program.
19166 # GNU Libtool is distributed in the hope that it will be useful,
19167 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19169 # GNU General Public License for more details.
19171 # You should have received a copy of the GNU General Public License
19172 # along with GNU Libtool; see the file COPYING. If not, a copy
19173 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19174 # obtained by writing to the Free Software Foundation, Inc.,
19175 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19178 # The names of the tagged configurations supported by this script.
19179 available_tags="CXX "
19181 # ### BEGIN LIBTOOL CONFIG
19183 # Which release of libtool.m4 was used?
19184 macro_version=$macro_version
19185 macro_revision=$macro_revision
19187 # Whether or not to build shared libraries.
19188 build_libtool_libs=$enable_shared
19190 # Whether or not to build static libraries.
19191 build_old_libs=$enable_static
19193 # What type of objects to build.
19196 # Whether or not to optimize for fast installation.
19197 fast_install=$enable_fast_install
19199 # Shell to use when invoking shell scripts.
19202 # An echo program that protects backslashes.
19205 # The PATH separator for the build system.
19206 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19209 host_alias=$host_alias
19213 # The build system.
19214 build_alias=$build_alias
19218 # A sed program that does not truncate output.
19221 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19222 Xsed="\$SED -e 1s/^X//"
19224 # A grep program that handles long lines.
19230 # A literal string matcher.
19233 # A BSD- or MS-compatible name lister.
19236 # Whether we need soft or hard links.
19239 # What is the maximum length of a command?
19240 max_cmd_len=$max_cmd_len
19242 # Object file suffix (normally "o").
19245 # Executable file suffix (normally "").
19248 # whether the shell understands "unset".
19251 # turn spaces into newlines.
19254 # turn newlines into spaces.
19257 # convert \$build file names to \$host format.
19258 to_host_file_cmd=$lt_cv_to_host_file_cmd
19260 # convert \$build files to toolchain format.
19261 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19263 # An object symbol dumper.
19264 OBJDUMP=$lt_OBJDUMP
19266 # Method to check whether dependent libraries are shared objects.
19267 deplibs_check_method=$lt_deplibs_check_method
19269 # Command to use when deplibs_check_method = "file_magic".
19270 file_magic_cmd=$lt_file_magic_cmd
19272 # How to find potential files when deplibs_check_method = "file_magic".
19273 file_magic_glob=$lt_file_magic_glob
19275 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19276 want_nocaseglob=$lt_want_nocaseglob
19278 # DLL creation program.
19279 DLLTOOL=$lt_DLLTOOL
19281 # Command to associate shared and link libraries.
19282 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19287 # Flags to create an archive.
19288 AR_FLAGS=$lt_AR_FLAGS
19290 # How to feed a file listing to the archiver.
19291 archiver_list_spec=$lt_archiver_list_spec
19293 # A symbol stripping program.
19296 # Commands used to install an old-style archive.
19298 old_postinstall_cmds=$lt_old_postinstall_cmds
19299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19301 # Whether to use a lock for old archive extraction.
19302 lock_old_archive_extraction=$lock_old_archive_extraction
19307 # LTCC compiler flags.
19308 LTCFLAGS=$lt_CFLAGS
19310 # Take the output of nm and produce a listing of raw symbols and C names.
19311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19313 # Transform the output of nm in a proper C declaration.
19314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19316 # Transform the output of nm in a C name address pair.
19317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19319 # Transform the output of nm in a C name address pair when lib prefix is needed.
19320 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19322 # Specify filename containing input files for \$NM.
19323 nm_file_list_spec=$lt_nm_file_list_spec
19325 # The root where to search for dependent libraries,and in which our libraries should be installed.
19326 lt_sysroot=$lt_sysroot
19328 # The name of the directory that contains temporary libtool files.
19331 # Used to examine libraries when file_magic_cmd begins with "file".
19332 MAGIC_CMD=$MAGIC_CMD
19334 # Must we lock files when doing compilation?
19335 need_locks=$lt_need_locks
19338 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19341 DSYMUTIL=$lt_DSYMUTIL
19343 # Tool to change global to local symbols on Mac OS X.
19346 # Tool to manipulate fat objects and archives on Mac OS X.
19349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19353 OTOOL64=$lt_OTOOL64
19355 # Old archive suffix (normally "a").
19358 # Shared library suffix (normally ".so").
19359 shrext_cmds=$lt_shrext_cmds
19361 # The commands to extract the exported symbol list from a shared archive.
19362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19364 # Variables whose values should be saved in libtool wrapper scripts and
19365 # restored at link time.
19366 variables_saved_for_relink=$lt_variables_saved_for_relink
19368 # Do we need the "lib" prefix for modules?
19369 need_lib_prefix=$need_lib_prefix
19371 # Do we need a version for libraries?
19372 need_version=$need_version
19374 # Library versioning type.
19375 version_type=$version_type
19377 # Shared library runtime path variable.
19378 runpath_var=$runpath_var
19380 # Shared library path variable.
19381 shlibpath_var=$shlibpath_var
19383 # Is shlibpath searched before the hard-coded library search path?
19384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19386 # Format of library name prefix.
19387 libname_spec=$lt_libname_spec
19389 # List of archive names. First name is the real one, the rest are links.
19390 # The last name is the one that the linker finds with -lNAME
19391 library_names_spec=$lt_library_names_spec
19393 # The coded name of the library, if different from the real name.
19394 soname_spec=$lt_soname_spec
19396 # Permission mode override for installation of shared libraries.
19397 install_override_mode=$lt_install_override_mode
19399 # Command to use after installation of a shared archive.
19400 postinstall_cmds=$lt_postinstall_cmds
19402 # Command to use after uninstallation of a shared archive.
19403 postuninstall_cmds=$lt_postuninstall_cmds
19405 # Commands used to finish a libtool library installation in a directory.
19406 finish_cmds=$lt_finish_cmds
19408 # As "finish_cmds", except a single script fragment to be evaled but
19410 finish_eval=$lt_finish_eval
19412 # Whether we should hardcode library paths into libraries.
19413 hardcode_into_libs=$hardcode_into_libs
19415 # Compile-time system search path for libraries.
19416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19418 # Run-time system search path for libraries.
19419 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19421 # Whether dlopen is supported.
19422 dlopen_support=$enable_dlopen
19424 # Whether dlopen of programs is supported.
19425 dlopen_self=$enable_dlopen_self
19427 # Whether dlopen of statically linked programs is supported.
19428 dlopen_self_static=$enable_dlopen_self_static
19430 # Commands to strip libraries.
19431 old_striplib=$lt_old_striplib
19432 striplib=$lt_striplib
19435 # The linker used to build libraries.
19438 # How to create reloadable object files.
19439 reload_flag=$lt_reload_flag
19440 reload_cmds=$lt_reload_cmds
19442 # Commands used to build an old-style archive.
19443 old_archive_cmds=$lt_old_archive_cmds
19445 # A language specific compiler.
19448 # Is the compiler the GNU compiler?
19451 # Compiler flag to turn off builtin functions.
19452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19454 # Additional compiler flags for building library objects.
19455 pic_flag=$lt_lt_prog_compiler_pic
19457 # How to pass a linker flag through the compiler.
19458 wl=$lt_lt_prog_compiler_wl
19460 # Compiler flag to prevent dynamic linking.
19461 link_static_flag=$lt_lt_prog_compiler_static
19463 # Does compiler simultaneously support -c and -o options?
19464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19466 # Whether or not to add -lc for building shared libraries.
19467 build_libtool_need_lc=$archive_cmds_need_lc
19469 # Whether or not to disallow shared libs when runtime libs are static.
19470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19472 # Compiler flag to allow reflexive dlopens.
19473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19475 # Compiler flag to generate shared objects directly from archives.
19476 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19478 # Whether the compiler copes with passing no objects directly.
19479 compiler_needs_object=$lt_compiler_needs_object
19481 # Create an old-style archive from a shared archive.
19482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19484 # Create a temporary old-style archive to link instead of a shared archive.
19485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19487 # Commands used to build a shared archive.
19488 archive_cmds=$lt_archive_cmds
19489 archive_expsym_cmds=$lt_archive_expsym_cmds
19491 # Commands used to build a loadable module if different from building
19492 # a shared archive.
19493 module_cmds=$lt_module_cmds
19494 module_expsym_cmds=$lt_module_expsym_cmds
19496 # Whether we are building with GNU ld or not.
19497 with_gnu_ld=$lt_with_gnu_ld
19499 # Flag that allows shared libraries with undefined symbols to be built.
19500 allow_undefined_flag=$lt_allow_undefined_flag
19502 # Flag that enforces no undefined symbols.
19503 no_undefined_flag=$lt_no_undefined_flag
19505 # Flag to hardcode \$libdir into a binary during linking.
19506 # This must work even if \$libdir does not exist
19507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19509 # Whether we need a single "-rpath" flag with a separated argument.
19510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19513 # DIR into the resulting binary.
19514 hardcode_direct=$hardcode_direct
19516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19517 # DIR into the resulting binary and the resulting library dependency is
19518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19519 # library is relocated.
19520 hardcode_direct_absolute=$hardcode_direct_absolute
19522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19523 # into the resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L
19526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var
19530 # Set to "yes" if building a shared library automatically hardcodes DIR
19531 # into the library and all subsequent libraries and executables linked
19533 hardcode_automatic=$hardcode_automatic
19535 # Set to yes if linker adds runtime paths of dependent libraries
19536 # to runtime path list.
19537 inherit_rpath=$inherit_rpath
19539 # Whether libtool must link a program against all its dependency libraries.
19540 link_all_deplibs=$link_all_deplibs
19542 # Set to "yes" if exported symbols are required.
19543 always_export_symbols=$always_export_symbols
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds
19548 # Symbols that should not be listed in the preloaded symbols.
19549 exclude_expsyms=$lt_exclude_expsyms
19551 # Symbols that must always be exported.
19552 include_expsyms=$lt_include_expsyms
19554 # Commands necessary for linking programs (against libraries) with templates.
19555 prelink_cmds=$lt_prelink_cmds
19557 # Commands necessary for finishing linking programs.
19558 postlink_cmds=$lt_postlink_cmds
19560 # Specify filename containing input files.
19561 file_list_spec=$lt_file_list_spec
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action
19566 # The directories searched by this compiler when creating a shared library.
19567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19569 # Dependencies to place before and after the objects being linked to
19570 # create a shared library.
19571 predep_objects=$lt_predep_objects
19572 postdep_objects=$lt_postdep_objects
19573 predeps=$lt_predeps
19574 postdeps=$lt_postdeps
19576 # The library search path used internally by the compiler when linking
19577 # a shared library.
19578 compiler_lib_search_path=$lt_compiler_lib_search_path
19580 # ### END LIBTOOL CONFIG
19586 cat <<\_LT_EOF >> "$cfgfile"
19587 # AIX sometimes has problems with the GCC collect2 program. For some
19588 # reason, if we set the COLLECT_NAMES environment variable, the problems
19589 # vanish in a puff of smoke.
19590 if test "X${COLLECT_NAMES+set}" != Xset; then
19592 export COLLECT_NAMES
19599 ltmain="$ac_aux_dir/ltmain.sh"
19602 # We use sed instead of cat because bash on DJGPP gets confused if
19603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19604 # text mode, it properly converts lines to CR/LF. This bash problem
19605 # is reportedly fixed, but why not run on old versions too?
19606 sed '$q' "$ltmain" >> "$cfgfile" \
19607 || (rm -f "$cfgfile"; exit 1)
19609 if test x"$xsi_shell" = xyes; then
19610 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19614 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19615 \ * ) func_dirname_result="${3}" ;;\
19617 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19618 && mv -f "$cfgfile.tmp" "$cfgfile" \
19619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19620 test 0 -eq $? || _lt_function_replace_fail=:
19623 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19626 \ func_basename_result="${1##*/}"\
19627 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19628 && mv -f "$cfgfile.tmp" "$cfgfile" \
19629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19630 test 0 -eq $? || _lt_function_replace_fail=:
19633 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19634 func_dirname_and_basename ()\
19637 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19638 \ * ) func_dirname_result="${3}" ;;\
19640 \ func_basename_result="${1##*/}"\
19641 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19642 && mv -f "$cfgfile.tmp" "$cfgfile" \
19643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19644 test 0 -eq $? || _lt_function_replace_fail=:
19647 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19650 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19651 \ # positional parameters, so assign one to ordinary parameter first.\
19652 \ func_stripname_result=${3}\
19653 \ func_stripname_result=${func_stripname_result#"${1}"}\
19654 \ func_stripname_result=${func_stripname_result%"${2}"}\
19655 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19656 && mv -f "$cfgfile.tmp" "$cfgfile" \
19657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19658 test 0 -eq $? || _lt_function_replace_fail=:
19661 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19662 func_split_long_opt ()\
19664 \ func_split_long_opt_name=${1%%=*}\
19665 \ func_split_long_opt_arg=${1#*=}\
19666 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19667 && mv -f "$cfgfile.tmp" "$cfgfile" \
19668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19669 test 0 -eq $? || _lt_function_replace_fail=:
19672 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19673 func_split_short_opt ()\
19675 \ func_split_short_opt_arg=${1#??}\
19676 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19677 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19678 && mv -f "$cfgfile.tmp" "$cfgfile" \
19679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19680 test 0 -eq $? || _lt_function_replace_fail=:
19683 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19687 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19688 \ *) func_lo2o_result=${1} ;;\
19690 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19691 && mv -f "$cfgfile.tmp" "$cfgfile" \
19692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19693 test 0 -eq $? || _lt_function_replace_fail=:
19696 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19699 func_xform_result=${1%.*}.lo\
19700 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19701 && mv -f "$cfgfile.tmp" "$cfgfile" \
19702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19703 test 0 -eq $? || _lt_function_replace_fail=:
19706 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19709 func_arith_result=$(( $* ))\
19710 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19711 && mv -f "$cfgfile.tmp" "$cfgfile" \
19712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19713 test 0 -eq $? || _lt_function_replace_fail=:
19716 sed -e '/^func_len ()$/,/^} # func_len /c\
19719 func_len_result=${#1}\
19720 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19721 && mv -f "$cfgfile.tmp" "$cfgfile" \
19722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19723 test 0 -eq $? || _lt_function_replace_fail=:
19727 if test x"$lt_shell_append" = xyes; then
19728 sed -e '/^func_append ()$/,/^} # func_append /c\
19731 eval "${1}+=\\${2}"\
19732 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19733 && mv -f "$cfgfile.tmp" "$cfgfile" \
19734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19735 test 0 -eq $? || _lt_function_replace_fail=:
19738 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19739 func_append_quoted ()\
19741 \ func_quote_for_eval "${2}"\
19742 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19743 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19744 && mv -f "$cfgfile.tmp" "$cfgfile" \
19745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19746 test 0 -eq $? || _lt_function_replace_fail=:
19749 # Save a `func_append' function call where possible by direct use of '+='
19750 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19751 && mv -f "$cfgfile.tmp" "$cfgfile" \
19752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19753 test 0 -eq $? || _lt_function_replace_fail=:
19755 # Save a `func_append' function call even when '+=' is not available
19756 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19757 && mv -f "$cfgfile.tmp" "$cfgfile" \
19758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19759 test 0 -eq $? || _lt_function_replace_fail=:
19762 if test x"$_lt_function_replace_fail" = x":"; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19764 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19768 mv -f "$cfgfile" "$ofile" ||
19769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19773 cat <<_LT_EOF >> "$ofile"
19775 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19777 # The linker used to build libraries.
19780 # How to create reloadable object files.
19781 reload_flag=$lt_reload_flag_CXX
19782 reload_cmds=$lt_reload_cmds_CXX
19784 # Commands used to build an old-style archive.
19785 old_archive_cmds=$lt_old_archive_cmds_CXX
19787 # A language specific compiler.
19788 CC=$lt_compiler_CXX
19790 # Is the compiler the GNU compiler?
19793 # Compiler flag to turn off builtin functions.
19794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19796 # Additional compiler flags for building library objects.
19797 pic_flag=$lt_lt_prog_compiler_pic_CXX
19799 # How to pass a linker flag through the compiler.
19800 wl=$lt_lt_prog_compiler_wl_CXX
19802 # Compiler flag to prevent dynamic linking.
19803 link_static_flag=$lt_lt_prog_compiler_static_CXX
19805 # Does compiler simultaneously support -c and -o options?
19806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19808 # Whether or not to add -lc for building shared libraries.
19809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19811 # Whether or not to disallow shared libs when runtime libs are static.
19812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19814 # Compiler flag to allow reflexive dlopens.
19815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19817 # Compiler flag to generate shared objects directly from archives.
19818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19820 # Whether the compiler copes with passing no objects directly.
19821 compiler_needs_object=$lt_compiler_needs_object_CXX
19823 # Create an old-style archive from a shared archive.
19824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19826 # Create a temporary old-style archive to link instead of a shared archive.
19827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19829 # Commands used to build a shared archive.
19830 archive_cmds=$lt_archive_cmds_CXX
19831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19833 # Commands used to build a loadable module if different from building
19834 # a shared archive.
19835 module_cmds=$lt_module_cmds_CXX
19836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19838 # Whether we are building with GNU ld or not.
19839 with_gnu_ld=$lt_with_gnu_ld_CXX
19841 # Flag that allows shared libraries with undefined symbols to be built.
19842 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19844 # Flag that enforces no undefined symbols.
19845 no_undefined_flag=$lt_no_undefined_flag_CXX
19847 # Flag to hardcode \$libdir into a binary during linking.
19848 # This must work even if \$libdir does not exist
19849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19851 # Whether we need a single "-rpath" flag with a separated argument.
19852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19854 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19855 # DIR into the resulting binary.
19856 hardcode_direct=$hardcode_direct_CXX
19858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19859 # DIR into the resulting binary and the resulting library dependency is
19860 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19861 # library is relocated.
19862 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19865 # into the resulting binary.
19866 hardcode_minus_L=$hardcode_minus_L_CXX
19868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19869 # into the resulting binary.
19870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19872 # Set to "yes" if building a shared library automatically hardcodes DIR
19873 # into the library and all subsequent libraries and executables linked
19875 hardcode_automatic=$hardcode_automatic_CXX
19877 # Set to yes if linker adds runtime paths of dependent libraries
19878 # to runtime path list.
19879 inherit_rpath=$inherit_rpath_CXX
19881 # Whether libtool must link a program against all its dependency libraries.
19882 link_all_deplibs=$link_all_deplibs_CXX
19884 # Set to "yes" if exported symbols are required.
19885 always_export_symbols=$always_export_symbols_CXX
19887 # The commands to list exported symbols.
19888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19890 # Symbols that should not be listed in the preloaded symbols.
19891 exclude_expsyms=$lt_exclude_expsyms_CXX
19893 # Symbols that must always be exported.
19894 include_expsyms=$lt_include_expsyms_CXX
19896 # Commands necessary for linking programs (against libraries) with templates.
19897 prelink_cmds=$lt_prelink_cmds_CXX
19899 # Commands necessary for finishing linking programs.
19900 postlink_cmds=$lt_postlink_cmds_CXX
19902 # Specify filename containing input files.
19903 file_list_spec=$lt_file_list_spec_CXX
19905 # How to hardcode a shared library path into an executable.
19906 hardcode_action=$hardcode_action_CXX
19908 # The directories searched by this compiler when creating a shared library.
19909 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19911 # Dependencies to place before and after the objects being linked to
19912 # create a shared library.
19913 predep_objects=$lt_predep_objects_CXX
19914 postdep_objects=$lt_postdep_objects_CXX
19915 predeps=$lt_predeps_CXX
19916 postdeps=$lt_postdeps_CXX
19918 # The library search path used internally by the compiler when linking
19919 # a shared library.
19920 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19922 # ### END LIBTOOL TAG CONFIG: CXX
19933 ac_clean_files=$ac_clean_files_save
19935 test $ac_write_fail = 0 ||
19936 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19939 # configure is writing to config.log, and then calls config.status.
19940 # config.status does its own redirection, appending to config.log.
19941 # Unfortunately, on DOS this fails, as config.log is still kept open
19942 # by configure, so config.status won't be able to write to it; its
19943 # output is simply discarded. So we exec the FD to /dev/null,
19944 # effectively closing config.log, so it can be properly (re)opened and
19945 # appended to by config.status. When coming back to configure, we
19946 # need to make the FD available again.
19947 if test "$no_create" != yes; then
19949 ac_config_status_args=
19950 test "$silent" = yes &&
19951 ac_config_status_args="$ac_config_status_args --quiet"
19953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19956 # would make configure fail if this is the last instruction.
19957 $ac_cs_success || as_fn_exit 1
19959 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19961 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}