2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='GNU TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_subst_vars='am__EXEEXT_FALSE
614 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
615 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
620 MAINTAINER_MODE_FALSE
647 am__fastdepCCAS_FALSE
685 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
755 enable_version_specific_runtime_libs
756 enable_generated_files_in_srcdir
758 enable_dependency_tracking
765 enable_maintainer_mode
770 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=no ;;
1143 # Obsolete; use --with-x.
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-version-specific-runtime-libs
1397 Specify that runtime libraries should be installed
1398 in a compiler-specific directory [default=no]
1399 --enable-generated-files-in-srcdir
1400 put copies of generated files in source dir intended
1401 for creating source tarballs for users without
1402 texinfo bison or flex. [default=no]
1403 --enable-multilib build many library versions (default)
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-maintainer-mode enable make rules and dependencies not useful
1412 (and sometimes confusing) to the casual installer
1413 --enable-linux-futex use the Linux futex system call [default=default]
1414 --enable-tls Use thread-local storage [default=yes]
1415 --enable-symvers=STYLE enables symbol versioning of the shared library
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 CCAS assembler compiler command (defaults to CC)
1436 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1438 CXXCPP C++ preprocessor
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1443 Report bugs to the package provider.
1444 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1445 General help using GNU software: <http://www.gnu.org/gethelp/>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1475 .) # We are building in place.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 GNU TM Runtime Library configure 1.0
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 } # ac_fn_c_try_compile
1560 # ac_fn_cxx_try_compile LINENO
1561 # ----------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_cxx_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 } # ac_fn_cxx_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1661 if ac_fn_c_try_compile "$LINENO"; then :
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 } # ac_fn_c_check_header_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev/null && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=$ac_status
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1777 # include <limits.h>
1779 # include <assert.h>
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1806 if ac_fn_c_try_link "$LINENO"; then :
1811 rm -f core conftest.err conftest.$ac_objext \
1812 conftest$ac_exeext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_check_func
1821 # ac_fn_cxx_try_cpp LINENO
1822 # ------------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_cpp ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_cxx_try_cpp
1858 # ac_fn_cxx_try_link LINENO
1859 # -------------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_cxx_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest$ac_exeext
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_cxx_try_link
1904 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1907 # the include files in INCLUDES and setting the cache variable VAR
1909 ac_fn_c_check_header_mongrel ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1922 # Is the header compilable?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1924 $as_echo_n "checking $2 usability... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_header_compiler=yes
1933 ac_header_compiler=no
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1937 $as_echo "$ac_header_compiler" >&6; }
1939 # Is the header present?
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1941 $as_echo_n "checking $2 presence... " >&6; }
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1946 if ac_fn_c_try_cpp "$LINENO"; then :
1947 ac_header_preproc=yes
1949 ac_header_preproc=no
1951 rm -f conftest.err conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1953 $as_echo "$ac_header_preproc" >&6; }
1955 # So? What about this header?
1956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1959 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1965 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1967 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1969 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1971 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1981 eval "$3=\$ac_header_compiler"
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_c_check_header_mongrel
1991 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1992 # -------------------------------------------
1993 # Tests whether TYPE exists after having included INCLUDES, setting cache
1994 # variable VAR accordingly.
1995 ac_fn_c_check_type ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001 $as_echo_n "(cached) " >&6
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_type
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) < 0)];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=$ac_mid; break
2129 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2130 if test $ac_mid -le $ac_hi; then
2134 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 # Binary search between lo and hi bounds.
2145 while test "x$ac_lo" != "x$ac_hi"; do
2146 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2175 static long int longval () { return $2; }
2176 static unsigned long int ulongval () { return $2; }
2183 FILE *f = fopen ("conftest.val", "w");
2188 long int i = longval ();
2191 fprintf (f, "%ld", i);
2195 unsigned long int i = ulongval ();
2198 fprintf (f, "%lu", i);
2200 /* Do not output a trailing newline, as this causes \r\n confusion
2201 on some platforms. */
2202 return ferror (f) || fclose (f) != 0;
2208 if ac_fn_c_try_run "$LINENO"; then :
2209 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2214 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 } # ac_fn_c_compute_int
2222 cat >config.log <<_ACEOF
2223 This file contains any messages produced by compilers while
2224 running configure, to aid debugging if configure makes a mistake.
2226 It was created by GNU TM Runtime Library $as_me 1.0, which was
2227 generated by GNU Autoconf 2.64. Invocation command line was
2239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2246 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2248 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2249 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2251 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2252 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2253 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2254 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 $as_echo "PATH: $as_dir"
2279 # Keep a trace of the command line.
2280 # Strip out --no-create and --no-recursion so they do not pile up.
2281 # Strip out --silent because we don't want to record it for future runs.
2282 # Also quote any args containing shell meta-characters.
2283 # Make two passes to allow for proper duplicate-argument suppression.
2287 ac_must_keep_next=false
2293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2295 | -silent | --silent | --silen | --sile | --sil)
2298 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2303 as_fn_append ac_configure_args1 " '$ac_arg'"
2304 if test $ac_must_keep_next = true; then
2305 ac_must_keep_next=false # Got value, back to normal.
2308 *=* | --config-cache | -C | -disable-* | --disable-* \
2309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2311 | -with-* | --with-* | -without-* | --without-* | --x)
2312 case "$ac_configure_args0 " in
2313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2316 -* ) ac_must_keep_next=true ;;
2319 as_fn_append ac_configure_args " '$ac_arg'"
2324 { ac_configure_args0=; unset ac_configure_args0;}
2325 { ac_configure_args1=; unset ac_configure_args1;}
2327 # When interrupted or exit'd, cleanup temporary files, and complete
2328 # config.log. We remove comments because anyway the quotes in there
2329 # would cause problems or look ugly.
2330 # WARNING: Use '\'' to represent an apostrophe within the trap.
2331 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2332 trap 'exit_status=$?
2333 # Save into config.log some information that might help in debugging.
2338 ## ---------------- ##
2339 ## Cache variables. ##
2340 ## ---------------- ##
2343 # The following way of writing the cache mishandles newlines in values,
2345 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2346 eval ac_val=\$$ac_var
2350 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2351 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2354 _ | IFS | as_nl) ;; #(
2355 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2356 *) { eval $ac_var=; unset $ac_var;} ;;
2361 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2362 *${as_nl}ac_space=\ *)
2364 "s/'\''/'\''\\\\'\'''\''/g;
2365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376 ## ----------------- ##
2377 ## Output variables. ##
2378 ## ----------------- ##
2381 for ac_var in $ac_subst_vars
2383 eval ac_val=\$$ac_var
2385 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387 $as_echo "$ac_var='\''$ac_val'\''"
2391 if test -n "$ac_subst_files"; then
2393 ## ------------------- ##
2394 ## File substitutions. ##
2395 ## ------------------- ##
2398 for ac_var in $ac_subst_files
2400 eval ac_val=\$$ac_var
2402 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 $as_echo "$ac_var='\''$ac_val'\''"
2409 if test -s confdefs.h; then
2419 test "$ac_signal" != 0 &&
2420 $as_echo "$as_me: caught signal $ac_signal"
2421 $as_echo "$as_me: exit $exit_status"
2423 rm -f core *.core core.conftest.* &&
2424 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2427 for ac_signal in 1 2 13 15; do
2428 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2432 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2433 rm -f -r conftest* confdefs.h
2435 $as_echo "/* confdefs.h */" > confdefs.h
2437 # Predefined preprocessor variables.
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_NAME "$PACKAGE_NAME"
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_STRING "$PACKAGE_STRING"
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_URL "$PACKAGE_URL"
2464 # Let the site file select an alternate cache file if it wants to.
2465 # Prefer an explicitly selected file to automatically selected ones.
2468 if test -n "$CONFIG_SITE"; then
2469 ac_site_file1=$CONFIG_SITE
2470 elif test "x$prefix" != xNONE; then
2471 ac_site_file1=$prefix/share/config.site
2472 ac_site_file2=$prefix/etc/config.site
2474 ac_site_file1=$ac_default_prefix/share/config.site
2475 ac_site_file2=$ac_default_prefix/etc/config.site
2477 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2479 test "x$ac_site_file" = xNONE && continue
2480 if test -r "$ac_site_file"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483 sed 's/^/| /' "$ac_site_file" >&5
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special
2490 # files actually), so we avoid doing that.
2491 if test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2505 # Check that the precious variables saved in the cache have kept the same
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 ac_config_headers="$ac_config_headers config.h"
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2584 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2585 # Check whether --enable-version-specific-runtime-libs was given.
2586 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2587 enableval=$enable_version_specific_runtime_libs;
2588 case "$enableval" in
2590 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2594 enable_version_specific_runtime_libs=no
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2599 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2601 # We would like our source tree to be readonly. However when releases or
2602 # pre-releases are generated, the flex/bison generated files as well as the
2603 # various formats of manuals need to be included along with the rest of the
2604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2607 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2608 # Check whether --enable-generated-files-in-srcdir was given.
2609 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2610 enableval=$enable_generated_files_in_srcdir;
2611 case "$enableval" in
2613 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2617 enable_generated_files_in_srcdir=no
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2622 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2623 if test "$enable_generated_files_in_srcdir" = yes; then
2636 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2638 # You will slowly go insane if you do not grok the following fact: when
2639 # building this library, the top-level /target/ becomes the library's /host/.
2641 # configure then causes --target to default to --host, exactly like any
2642 # other package using autoconf. Therefore, 'target' and 'host' will
2643 # always be the same. This makes sense both for native and cross compilers
2644 # just think about it for a little while. :-)
2646 # Also, if this library is being configured as part of a cross compiler, the
2647 # top-level configure script will pass the "real" host as $with_cross_host.
2649 # Do not delete or change the following two lines. For why, see
2650 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2652 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2653 for ac_t in install-sh install.sh shtool; do
2654 if test -f "$ac_dir/$ac_t"; then
2656 ac_install_sh="$ac_aux_dir/$ac_t -c"
2661 if test -z "$ac_aux_dir"; then
2662 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2665 # These three variables are undocumented and unsupported,
2666 # and are intended to be withdrawn in a future Autoconf release.
2667 # They can cause serious problems if a builder's source tree is in a directory
2668 # whose full name contains unusual characters.
2669 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2670 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2671 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2674 # Make sure we can run config.sub.
2675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2676 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2679 $as_echo_n "checking build system type... " >&6; }
2680 if test "${ac_cv_build+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2683 ac_build_alias=$build_alias
2684 test "x$ac_build_alias" = x &&
2685 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2686 test "x$ac_build_alias" = x &&
2687 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2688 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2693 $as_echo "$ac_cv_build" >&6; }
2694 case $ac_cv_build in
2696 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2699 ac_save_IFS=$IFS; IFS='-'
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2713 $as_echo_n "checking host system type... " >&6; }
2714 if test "${ac_cv_host+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2717 if test "x$host_alias" = x; then
2718 ac_cv_host=$ac_cv_build
2720 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2721 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2726 $as_echo "$ac_cv_host" >&6; }
2729 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2732 ac_save_IFS=$IFS; IFS='-'
2738 # Remember, the first character of IFS is used to create $*,
2739 # except with old shells:
2742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2746 $as_echo_n "checking target system type... " >&6; }
2747 if test "${ac_cv_target+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
2750 if test "x$target_alias" = x; then
2751 ac_cv_target=$ac_cv_host
2753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2754 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2759 $as_echo "$ac_cv_target" >&6; }
2760 case $ac_cv_target in
2762 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2764 target=$ac_cv_target
2765 ac_save_IFS=$IFS; IFS='-'
2771 # Remember, the first character of IFS is used to create $*,
2772 # except with old shells:
2775 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2778 # The aliases save the names the user supplied, while $host etc.
2779 # will get canonicalized.
2780 test -n "$target_alias" &&
2781 test "$program_prefix$program_suffix$program_transform_name" = \
2783 program_prefix=${target_alias}-
2785 target_alias=${target_alias-$host_alias}
2787 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2788 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2789 # 1.9.0: minimum required version
2790 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2791 # of other PACKAGE_* variables will, however, and there's nothing
2792 # we can do about that; they come from AC_INIT).
2793 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2794 # file in the top srcdir, etc, etc), so stop complaining.
2795 # -Wall: turns on all automake warnings...
2796 # -Wno-portability: ...except this one, since GNU make is required.
2797 # -Wno-override: ... and this one, since we do want this in testsuite.
2798 am__api_version='1.11'
2800 # Find a good install program. We prefer a C program (faster),
2801 # so one script is as good as another. But avoid the broken or
2802 # incompatible versions:
2803 # SysV /etc/install, /usr/sbin/install
2804 # SunOS /usr/etc/install
2805 # IRIX /sbin/install
2807 # AmigaOS /C/install, which installs bootblocks on floppy discs
2808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2811 # OS/2's system install, which has a completely different semantic
2812 # ./install, which can be erroneously created by make from ./install.sh.
2813 # Reject install programs that cannot install multiple files.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2816 if test -z "$INSTALL"; then
2817 if test "${ac_cv_path_install+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 # Account for people who put trailing slashes in PATH elements.
2826 case $as_dir/ in #((
2827 ./ | .// | /[cC]/* | \
2828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 # OSF1 and SCO ODT 3.0 have their own names for install.
2833 # Don't use installbsd from OSF since it installs stuff as root
2835 for ac_prog in ginstall scoinst install; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2838 if test $ac_prog = install &&
2839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # AIX install. It has an incompatible calling convention.
2842 elif test $ac_prog = install &&
2843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # program-specific install script used by HP pwplus--don't use.
2847 rm -rf conftest.one conftest.two conftest.dir
2848 echo one > conftest.one
2849 echo two > conftest.two
2851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2852 test -s conftest.one && test -s conftest.two &&
2853 test -s conftest.dir/conftest.one &&
2854 test -s conftest.dir/conftest.two
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2869 rm -rf conftest.one conftest.two conftest.dir
2872 if test "${ac_cv_path_install+set}" = set; then
2873 INSTALL=$ac_cv_path_install
2875 # As a last resort, use the slow shell script. Don't cache a
2876 # value for INSTALL within a source directory, because that will
2877 # break other packages using the cache if that directory is
2878 # removed, or if the value is a relative name.
2879 INSTALL=$ac_install_sh
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2883 $as_echo "$INSTALL" >&6; }
2885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2886 # It thinks the first close brace ends the variable substitution.
2887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2894 $as_echo_n "checking whether build environment is sane... " >&6; }
2897 echo timestamp > conftest.file
2898 # Reject unsafe characters in $srcdir or the absolute working directory
2899 # name. Accept space and tab only in the latter.
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2907 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2911 # Do `set' in a subshell so we don't clobber the current shell's
2912 # arguments. Must try -L first in case configure is actually a
2913 # symlink; some systems play weird games with the mod time of symlinks
2914 # (eg FreeBSD returns the mod time of the symlink's containing
2917 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2918 if test "$*" = "X"; then
2920 set X `ls -t "$srcdir/configure" conftest.file`
2923 if test "$*" != "X $srcdir/configure conftest.file" \
2924 && test "$*" != "X conftest.file $srcdir/configure"; then
2926 # If neither matched, then we have a broken ls. This can happen
2927 # if, for instance, CONFIG_SHELL is bash and it inherits a
2928 # broken ls alias from the environment. This has actually
2929 # happened. Such a system could not be considered "sane".
2930 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2931 alias in your environment" "$LINENO" 5
2934 test "$2" = conftest.file
2940 as_fn_error "newly created file is older than distributed files!
2941 Check your system clock" "$LINENO" 5
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944 $as_echo "yes" >&6; }
2945 test "$program_prefix" != NONE &&
2946 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2947 # Use a double $ so make ignores it.
2948 test "$program_suffix" != NONE &&
2949 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2950 # Double any \ or $.
2951 # By default was `s,x,x', remove it if useless.
2952 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2953 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2955 # expand $ac_aux_dir to an absolute path
2956 am_aux_dir=`cd $ac_aux_dir && pwd`
2958 if test x"${MISSING+set}" != xset; then
2961 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2963 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2966 # Use eval to expand $SHELL
2967 if eval "$MISSING --run true"; then
2968 am_missing_run="$MISSING --run "
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2972 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2975 if test x"${install_sh}" != xset; then
2978 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2980 install_sh="\${SHELL} $am_aux_dir/install-sh"
2984 # Installed binaries are usually stripped using `strip' when the user
2985 # run `make install-strip'. However `strip' might not be the right
2986 # tool to use in cross-compilation environments, therefore Automake
2987 # will honor the `STRIP' environment variable to overrule this program.
2988 if test "$cross_compiling" != no; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}strip; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_STRIP+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$STRIP"; then
2998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 STRIP=$ac_cv_prog_STRIP
3018 if test -n "$STRIP"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3020 $as_echo "$STRIP" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3028 if test -z "$ac_cv_prog_STRIP"; then
3030 # Extract the first word of "strip", so it can be a program name with args.
3031 set dummy strip; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$ac_ct_STRIP"; then
3038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_ac_ct_STRIP="strip"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3058 if test -n "$ac_ct_STRIP"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3060 $as_echo "$ac_ct_STRIP" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3066 if test "x$ac_ct_STRIP" = x; then
3069 case $cross_compiling:$ac_tool_warned in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3078 STRIP="$ac_cv_prog_STRIP"
3082 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3085 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3086 if test -z "$MKDIR_P"; then
3087 if test "${ac_cv_path_mkdir+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3094 test -z "$as_dir" && as_dir=.
3095 for ac_prog in mkdir gmkdir; do
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3098 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3099 'mkdir (GNU coreutils) '* | \
3100 'mkdir (coreutils) '* | \
3101 'mkdir (fileutils) '4.1*)
3102 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3112 if test "${ac_cv_path_mkdir+set}" = set; then
3113 MKDIR_P="$ac_cv_path_mkdir -p"
3115 # As a last resort, use the slow shell script. Don't cache a
3116 # value for MKDIR_P within a source directory, because that will
3117 # break other packages using the cache if that directory is
3118 # removed, or if the value is a relative name.
3119 test -d ./--version && rmdir ./--version
3120 MKDIR_P="$ac_install_sh -d"
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3124 $as_echo "$MKDIR_P" >&6; }
3128 [\\/$]* | ?:[\\/]*) ;;
3129 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3132 for ac_prog in gawk mawk nawk awk
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_AWK+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$AWK"; then
3142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_AWK="$ac_prog"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 if test -n "$AWK"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3164 $as_echo "$AWK" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3171 test -n "$AWK" && break
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3177 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3178 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3179 $as_echo_n "(cached) " >&6
3181 cat >conftest.make <<\_ACEOF
3184 @echo '@@@%%%=$(MAKE)=@@@%%%'
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3189 eval ac_cv_prog_make_${ac_make}_set=yes;;
3191 eval ac_cv_prog_make_${ac_make}_set=no;;
3195 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197 $as_echo "yes" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3212 rmdir .tst 2>/dev/null
3214 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3215 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3216 # is not polluted with repeated "-I."
3217 am__isrc=' -I$(srcdir)'
3218 # test to see if srcdir already configured
3219 if test -f $srcdir/config.status; then
3220 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3224 # test whether we have cygpath
3225 if test -z "$CYGPATH_W"; then
3226 if (cygpath --version) >/dev/null 2>/dev/null; then
3227 CYGPATH_W='cygpath -w'
3234 # Define the identity of the package.
3239 cat >>confdefs.h <<_ACEOF
3240 #define PACKAGE "$PACKAGE"
3244 cat >>confdefs.h <<_ACEOF
3245 #define VERSION "$VERSION"
3248 # Some tools Automake needs.
3250 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3253 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3256 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3259 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3262 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3264 # We need awk for the "check" target. The system "awk" is bad on
3266 # Always define AMTAR for backward compatibility.
3268 AMTAR=${AMTAR-"${am_missing_run}tar"}
3270 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3276 # Default to --enable-multilib
3277 # Check whether --enable-multilib was given.
3278 if test "${enable_multilib+set}" = set; then :
3279 enableval=$enable_multilib; case "$enableval" in
3280 yes) multilib=yes ;;
3282 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3289 # We may get other options which we leave undocumented:
3290 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3291 # See config-ml.in if you want the gory details.
3293 if test "$srcdir" = "."; then
3294 if test "$with_target_subdir" != "."; then
3295 multi_basedir="$srcdir/$with_multisrctop../.."
3297 multi_basedir="$srcdir/$with_multisrctop.."
3300 multi_basedir="$srcdir/.."
3304 # Even if the default multilib is not a cross compilation,
3305 # it may be that some of the other multilibs are.
3306 if test $cross_compiling = no && test $multilib = yes \
3307 && test "x${with_multisubdir}" != x ; then
3308 cross_compiling=maybe
3311 ac_config_commands="$ac_config_commands default-1"
3314 # Calculate toolexeclibdir
3315 # Also toolexecdir, though it's only used in toolexeclibdir
3316 case ${enable_version_specific_runtime_libs} in
3318 # Need the gcc compiler version to know where to install libraries
3319 # and header files if --enable-version-specific-runtime-libs option
3321 toolexecdir='$(libdir)/gcc/$(target_alias)'
3322 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3325 if test -n "$with_cross_host" &&
3326 test x"$with_cross_host" != x"no"; then
3327 # Install a library built with a cross compiler in tooldir, not libdir.
3328 toolexecdir='$(exec_prefix)/$(target_alias)'
3329 toolexeclibdir='$(toolexecdir)/lib'
3331 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3332 toolexeclibdir='$(libdir)'
3334 multi_os_directory=`$CC -print-multi-os-directory`
3335 case $multi_os_directory in
3336 .) ;; # Avoid trailing /.
3337 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3344 # Check the compiler.
3345 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3346 # We must force CC to /not/ be precious variables; otherwise
3347 # the wrong, non-multilib-adjusted value will be used in multilibs.
3348 # As a side effect, we have to subst CFLAGS ourselves.
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3396 if test -z "$ac_cv_prog_CC"; then
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3434 if test "x$ac_ct_CC" = x; then
3437 case $cross_compiling:$ac_tool_warned in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}cc; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3490 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy $ac_cv_prog_CC
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in cl.exe
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3587 test -n "$CC" && break
3590 if test -z "$CC"; then
3592 for ac_prog in cl.exe
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3631 test -n "$ac_ct_CC" && break
3634 if test "x$ac_ct_CC" = x; then
3637 case $cross_compiling:$ac_tool_warned in
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error "no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details." "$LINENO" 5; }
3655 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3659 for ac_option in --version -v -V -qversion; do
3660 { { ac_try="$ac_compiler $ac_option >&5"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3669 if test -s conftest.err; then
3671 ... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 rm -f conftest.er1 conftest.err
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3691 ac_clean_files_save=$ac_clean_files
3692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3693 # Try to create an executable without -o first, disregard a.out.
3694 # It will help us diagnose broken compilers, and finding out an intuition
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3697 $as_echo_n "checking for C compiler default output file name... " >&6; }
3698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3700 # The possible output files:
3701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3704 for ac_file in $ac_files
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 if { { ac_try="$ac_link_default"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719 $as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_link_default") 2>&5
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3729 for ac_file in $ac_files ''
3731 test -f "$ac_file" || continue
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3736 # We found the default executable, but exeext='' is most
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3760 $as_echo "$ac_file" >&6; }
3761 if test -z "$ac_file"; then :
3762 $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 { as_fn_set_status 77
3768 as_fn_error "C compiler cannot create executables
3769 See \`config.log' for more details." "$LINENO" 5; }; }
3771 ac_exeext=$ac_cv_exeext
3773 # Check that the compiler produces executables we can run. If not, either
3774 # the compiler is broken, or we cross compile.
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3776 $as_echo_n "checking whether the C compiler works... " >&6; }
3777 # If not cross compiling, check that we can run a simple program.
3778 if test "$cross_compiling" != yes; then
3779 if { ac_try='./$ac_file'
3780 { { case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_try") 2>&5
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; }; then
3792 if test "$cross_compiling" = maybe; then
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "cannot run C compiled programs.
3798 If you meant to cross compile, use \`--host'.
3799 See \`config.log' for more details." "$LINENO" 5; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3804 $as_echo "yes" >&6; }
3806 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3807 ac_clean_files=$ac_clean_files_save
3808 # Check that the compiler produces executables we can run. If not, either
3809 # the compiler is broken, or we cross compile.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3811 $as_echo_n "checking whether we are cross compiling... " >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813 $as_echo "$cross_compiling" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3816 $as_echo_n "checking for suffix of executables... " >&6; }
3817 if { { ac_try="$ac_link"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_link") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3829 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3830 # work properly (i.e., refer to `conftest.exe'), while it won't with
3832 for ac_file in conftest.exe conftest conftest.*; do
3833 test -f "$ac_file" || continue
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error "cannot compute suffix of executables: cannot compile and link
3845 See \`config.log' for more details." "$LINENO" 5; }
3847 rm -f conftest$ac_cv_exeext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849 $as_echo "$ac_cv_exeext" >&6; }
3851 rm -f conftest.$ac_ext
3852 EXEEXT=$ac_cv_exeext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855 $as_echo_n "checking for suffix of object files... " >&6; }
3856 if test "${ac_cv_objext+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 rm -f conftest.o conftest.obj
3871 if { { ac_try="$ac_compile"
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_compile") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 for ac_file in conftest.o conftest.obj conftest.*; do
3883 test -f "$ac_file" || continue;
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error "cannot compute suffix of object files: cannot compile
3897 See \`config.log' for more details." "$LINENO" 5; }
3899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902 $as_echo "$ac_cv_objext" >&6; }
3903 OBJEXT=$ac_cv_objext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3907 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3924 if ac_fn_c_try_compile "$LINENO"; then :
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3935 if test $ac_compiler_gnu = yes; then
3940 ac_test_CFLAGS=${CFLAGS+set}
3941 ac_save_CFLAGS=$CFLAGS
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3944 if test "${ac_cv_prog_cc_g+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3947 ac_save_c_werror_flag=$ac_c_werror_flag
3948 ac_c_werror_flag=yes
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3962 if ac_fn_c_try_compile "$LINENO"; then :
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3977 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 if ac_fn_c_try_compile "$LINENO"; then :
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_c_werror_flag=$ac_save_c_werror_flag
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4004 $as_echo "$ac_cv_prog_cc_g" >&6; }
4005 if test "$ac_test_CFLAGS" = set; then
4006 CFLAGS=$ac_save_CFLAGS
4007 elif test $ac_cv_prog_cc_g = yes; then
4008 if test "$GCC" = yes; then
4014 if test "$GCC" = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4022 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 ac_cv_prog_cc_c89=no
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4031 #include <sys/types.h>
4032 #include <sys/stat.h>
4033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4034 struct buf { int x; };
4035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4036 static char *e (p, i)
4042 static char *f (char * (*g) (char **, int), char **p, ...)
4047 s = g (p, va_arg (v,int));
4052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4053 function prototypes and stuff, but not '\xHH' hex character constants.
4054 These don't provoke an error unfortunately, instead are silently treated
4055 as 'x'. The following induces an error, until -std is added to get
4056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4057 array size at least. It's necessary to write '\x00'==0 to get something
4058 that's true only with -std. */
4059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4062 inside strings and character constants. */
4064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4066 int test (int i, double x);
4067 struct s1 {int (*f) (int a);};
4068 struct s2 {int (*f) (double a);};
4069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4083 CC="$ac_save_CC $ac_arg"
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_prog_cc_c89=$ac_arg
4087 rm -f core conftest.err conftest.$ac_objext
4088 test "x$ac_cv_prog_cc_c89" != "xno" && break
4090 rm -f conftest.$ac_ext
4095 case "x$ac_cv_prog_cc_c89" in
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4098 $as_echo "none needed" >&6; } ;;
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4101 $as_echo "unsupported" >&6; } ;;
4103 CC="$CC $ac_cv_prog_cc_c89"
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4105 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4107 if test "x$ac_cv_prog_cc_c89" != xno; then :
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 DEPDIR="${am__leading_dot}deps"
4118 ac_config_commands="$ac_config_commands depfiles"
4121 am_make=${MAKE-make}
4122 cat > confinc << 'END'
4124 @echo this is the am__doit target
4127 # If we don't find an include directive, just comment out the code.
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4133 # First try GNU make style include.
4134 echo "include confinc" > confmf
4135 # Ignore all kinds of additional output from `make'.
4136 case `$am_make -s -f confmf 2> /dev/null` in #(
4137 *the\ am__doit\ target*)
4143 # Now try BSD make style include.
4144 if test "$am__include" = "#"; then
4145 echo '.include "confinc"' > confmf
4146 case `$am_make -s -f confmf 2> /dev/null` in #(
4147 *the\ am__doit\ target*)
4148 am__include=.include
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4157 $as_echo "$_am_result" >&6; }
4158 rm -f confinc confmf
4160 # Check whether --enable-dependency-tracking was given.
4161 if test "${enable_dependency_tracking+set}" = set; then :
4162 enableval=$enable_dependency_tracking;
4165 if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4169 if test "x$enable_dependency_tracking" != xno; then
4179 depcc="$CC" am_compiler_list=
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4182 $as_echo_n "checking dependency style of $depcc... " >&6; }
4183 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4187 # We make a subdir and do the tests there. Otherwise we can end up
4188 # making bogus files that we don't know about and never remove. For
4189 # instance it was reported that on HP-UX the gcc test will end up
4190 # making a dummy file named `D' -- because `-MD' means `put the output
4193 # Copy depcomp to subdir because otherwise we won't find it if we're
4194 # using a relative directory.
4195 cp "$am_depcomp" conftest.dir
4197 # We will build objects and dependencies in a subdirectory because
4198 # it helps to detect inapplicable dependency modes. For instance
4199 # both Tru64's cc and ICC support -MD to output dependencies as a
4200 # side effect of compilation, but ICC will put the dependencies in
4201 # the current directory while Tru64 will put them in the object
4205 am_cv_CC_dependencies_compiler_type=none
4206 if test "$am_compiler_list" = ""; then
4207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210 case " $depcc " in #(
4211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214 for depmode in $am_compiler_list; do
4215 # Setup a source with many dependencies, because some compilers
4216 # like to wrap large dependency lists on column 80 (with \), and
4217 # we should not choose a depcomp mode which is confused by this.
4219 # We need to recreate these files for each test, as the compiler may
4220 # overwrite some of them when testing with obscure command lines.
4221 # This happens at least with the AIX C compiler.
4223 for i in 1 2 3 4 5 6; do
4224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226 # Solaris 8's {/usr,}/bin/sh.
4227 touch sub/conftst$i.h
4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232 # mode. It turns out that the SunPro C++ compiler does not properly
4233 # handle `-M -o', and we need to detect this. Also, some Intel
4234 # versions had trouble with output in subdirs
4235 am__obj=sub/conftest.${OBJEXT-o}
4236 am__minus_obj="-o $am__obj"
4239 # This depmode causes a compiler race in universal mode.
4240 test "$am__universal" = false || continue
4243 # after this tag, mechanisms are not by side-effect, so they'll
4244 # only be used when explicitly requested
4245 if test "x$enable_dependency_tracking" = xyes; then
4251 msvisualcpp | msvcmsys)
4252 # This compiler won't grok `-c -o', but also, the minuso test has
4253 # not run yet. These depmodes are late enough in the game, and
4254 # so weak that their functioning should not be impacted.
4255 am__obj=conftest.${OBJEXT-o}
4260 if depmode=$depmode \
4261 source=sub/conftest.c object=$am__obj \
4262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4264 >/dev/null 2>conftest.err &&
4265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4269 # icc doesn't choke on unknown options, it will just issue warnings
4270 # or remarks (even with -Werror). So we grep stderr for any message
4271 # that says an option was ignored or not supported.
4272 # When given -MP, icc 7.0 and 7.1 complain thusly:
4273 # icc: Command line warning: ignoring option '-M'; no argument required
4274 # The diagnosis changed in icc 8.0:
4275 # icc: Command line remark: option '-MP' not supported
4276 if (grep 'ignoring option' conftest.err ||
4277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4278 am_cv_CC_dependencies_compiler_type=$depmode
4287 am_cv_CC_dependencies_compiler_type=none
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4292 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4299 am__fastdepCC_FALSE='#'
4301 am__fastdepCC_TRUE='#'
4302 am__fastdepCC_FALSE=
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311 if test -z "$CXX"; then
4312 if test -n "$CCC"; then
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_CXX+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$CXX"; then
4326 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 if test -n "$CXX"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4348 $as_echo "$CXX" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$CXX" && break
4358 if test -z "$CXX"; then
4360 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$ac_ct_CXX"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_CXX="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4390 if test -n "$ac_ct_CXX"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4392 $as_echo "$ac_ct_CXX" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$ac_ct_CXX" && break
4402 if test "x$ac_ct_CXX" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4417 # Provide some information about the compiler.
4418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4421 for ac_option in --version -v -V -qversion; do
4422 { { ac_try="$ac_compiler $ac_option >&5"
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4431 if test -s conftest.err; then
4433 ... rest of stderr output deleted ...
4434 10q' conftest.err >conftest.er1
4435 cat conftest.er1 >&5
4436 rm -f conftest.er1 conftest.err
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4444 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4461 if ac_fn_cxx_try_compile "$LINENO"; then :
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4471 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4477 ac_test_CXXFLAGS=${CXXFLAGS+set}
4478 ac_save_CXXFLAGS=$CXXFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4480 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4481 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4485 ac_cxx_werror_flag=yes
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 ac_cv_prog_cxx_g=yes
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531 ac_cv_prog_cxx_g=yes
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4541 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4542 if test "$ac_test_CXXFLAGS" = set; then
4543 CXXFLAGS=$ac_save_CXXFLAGS
4544 elif test $ac_cv_prog_cxx_g = yes; then
4545 if test "$GXX" = yes; then
4551 if test "$GXX" = yes; then
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 depcc="$CXX" am_compiler_list=
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4566 $as_echo_n "checking dependency style of $depcc... " >&6; }
4567 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4571 # We make a subdir and do the tests there. Otherwise we can end up
4572 # making bogus files that we don't know about and never remove. For
4573 # instance it was reported that on HP-UX the gcc test will end up
4574 # making a dummy file named `D' -- because `-MD' means `put the output
4577 # Copy depcomp to subdir because otherwise we won't find it if we're
4578 # using a relative directory.
4579 cp "$am_depcomp" conftest.dir
4581 # We will build objects and dependencies in a subdirectory because
4582 # it helps to detect inapplicable dependency modes. For instance
4583 # both Tru64's cc and ICC support -MD to output dependencies as a
4584 # side effect of compilation, but ICC will put the dependencies in
4585 # the current directory while Tru64 will put them in the object
4589 am_cv_CXX_dependencies_compiler_type=none
4590 if test "$am_compiler_list" = ""; then
4591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4594 case " $depcc " in #(
4595 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4598 for depmode in $am_compiler_list; do
4599 # Setup a source with many dependencies, because some compilers
4600 # like to wrap large dependency lists on column 80 (with \), and
4601 # we should not choose a depcomp mode which is confused by this.
4603 # We need to recreate these files for each test, as the compiler may
4604 # overwrite some of them when testing with obscure command lines.
4605 # This happens at least with the AIX C compiler.
4607 for i in 1 2 3 4 5 6; do
4608 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4609 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4610 # Solaris 8's {/usr,}/bin/sh.
4611 touch sub/conftst$i.h
4613 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4616 # mode. It turns out that the SunPro C++ compiler does not properly
4617 # handle `-M -o', and we need to detect this. Also, some Intel
4618 # versions had trouble with output in subdirs
4619 am__obj=sub/conftest.${OBJEXT-o}
4620 am__minus_obj="-o $am__obj"
4623 # This depmode causes a compiler race in universal mode.
4624 test "$am__universal" = false || continue
4627 # after this tag, mechanisms are not by side-effect, so they'll
4628 # only be used when explicitly requested
4629 if test "x$enable_dependency_tracking" = xyes; then
4635 msvisualcpp | msvcmsys)
4636 # This compiler won't grok `-c -o', but also, the minuso test has
4637 # not run yet. These depmodes are late enough in the game, and
4638 # so weak that their functioning should not be impacted.
4639 am__obj=conftest.${OBJEXT-o}
4644 if depmode=$depmode \
4645 source=sub/conftest.c object=$am__obj \
4646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4647 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4648 >/dev/null 2>conftest.err &&
4649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4651 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4653 # icc doesn't choke on unknown options, it will just issue warnings
4654 # or remarks (even with -Werror). So we grep stderr for any message
4655 # that says an option was ignored or not supported.
4656 # When given -MP, icc 7.0 and 7.1 complain thusly:
4657 # icc: Command line warning: ignoring option '-M'; no argument required
4658 # The diagnosis changed in icc 8.0:
4659 # icc: Command line remark: option '-MP' not supported
4660 if (grep 'ignoring option' conftest.err ||
4661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4662 am_cv_CXX_dependencies_compiler_type=$depmode
4671 am_cv_CXX_dependencies_compiler_type=none
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4676 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4677 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4680 test "x$enable_dependency_tracking" != xno \
4681 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4682 am__fastdepCXX_TRUE=
4683 am__fastdepCXX_FALSE='#'
4685 am__fastdepCXX_TRUE='#'
4686 am__fastdepCXX_FALSE=
4690 # By default we simply use the C compiler to build assembly code.
4692 test "${CCAS+set}" = set || CCAS=$CC
4693 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4697 depcc="$CCAS" am_compiler_list=
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4700 $as_echo_n "checking dependency style of $depcc... " >&6; }
4701 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4705 # We make a subdir and do the tests there. Otherwise we can end up
4706 # making bogus files that we don't know about and never remove. For
4707 # instance it was reported that on HP-UX the gcc test will end up
4708 # making a dummy file named `D' -- because `-MD' means `put the output
4711 # Copy depcomp to subdir because otherwise we won't find it if we're
4712 # using a relative directory.
4713 cp "$am_depcomp" conftest.dir
4715 # We will build objects and dependencies in a subdirectory because
4716 # it helps to detect inapplicable dependency modes. For instance
4717 # both Tru64's cc and ICC support -MD to output dependencies as a
4718 # side effect of compilation, but ICC will put the dependencies in
4719 # the current directory while Tru64 will put them in the object
4723 am_cv_CCAS_dependencies_compiler_type=none
4724 if test "$am_compiler_list" = ""; then
4725 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4730 for depmode in $am_compiler_list; do
4731 # Setup a source with many dependencies, because some compilers
4732 # like to wrap large dependency lists on column 80 (with \), and
4733 # we should not choose a depcomp mode which is confused by this.
4735 # We need to recreate these files for each test, as the compiler may
4736 # overwrite some of them when testing with obscure command lines.
4737 # This happens at least with the AIX C compiler.
4739 for i in 1 2 3 4 5 6; do
4740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4742 # Solaris 8's {/usr,}/bin/sh.
4743 touch sub/conftst$i.h
4745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4748 # mode. It turns out that the SunPro C++ compiler does not properly
4749 # handle `-M -o', and we need to detect this. Also, some Intel
4750 # versions had trouble with output in subdirs
4751 am__obj=sub/conftest.${OBJEXT-o}
4752 am__minus_obj="-o $am__obj"
4755 # This depmode causes a compiler race in universal mode.
4756 test "$am__universal" = false || continue
4759 # after this tag, mechanisms are not by side-effect, so they'll
4760 # only be used when explicitly requested
4761 if test "x$enable_dependency_tracking" = xyes; then
4767 msvisualcpp | msvcmsys)
4768 # This compiler won't grok `-c -o', but also, the minuso test has
4769 # not run yet. These depmodes are late enough in the game, and
4770 # so weak that their functioning should not be impacted.
4771 am__obj=conftest.${OBJEXT-o}
4776 if depmode=$depmode \
4777 source=sub/conftest.c object=$am__obj \
4778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4780 >/dev/null 2>conftest.err &&
4781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4785 # icc doesn't choke on unknown options, it will just issue warnings
4786 # or remarks (even with -Werror). So we grep stderr for any message
4787 # that says an option was ignored or not supported.
4788 # When given -MP, icc 7.0 and 7.1 complain thusly:
4789 # icc: Command line warning: ignoring option '-M'; no argument required
4790 # The diagnosis changed in icc 8.0:
4791 # icc: Command line remark: option '-MP' not supported
4792 if (grep 'ignoring option' conftest.err ||
4793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4794 am_cv_CCAS_dependencies_compiler_type=$depmode
4803 am_cv_CCAS_dependencies_compiler_type=none
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4808 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4809 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4812 test "x$enable_dependency_tracking" != xno \
4813 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4814 am__fastdepCCAS_TRUE=
4815 am__fastdepCCAS_FALSE='#'
4817 am__fastdepCCAS_TRUE='#'
4818 am__fastdepCCAS_FALSE=
4826 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4827 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4828 # in both places for now and restore CFLAGS at the end of config.
4829 save_CFLAGS="$CFLAGS"
4831 # Find other programs we need.
4832 if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4834 set dummy ${ac_tool_prefix}ar; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if test "${ac_cv_prog_AR+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4840 if test -n "$AR"; then
4841 ac_cv_prog_AR="$AR" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_AR="${ac_tool_prefix}ar"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 if test -n "$AR"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4863 $as_echo "$AR" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4871 if test -z "$ac_cv_prog_AR"; then
4873 # Extract the first word of "ar", so it can be a program name with args.
4874 set dummy ar; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4880 if test -n "$ac_ct_AR"; then
4881 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_ac_ct_AR="ar"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4901 if test -n "$ac_ct_AR"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4903 $as_echo "$ac_ct_AR" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4909 if test "x$ac_ct_AR" = x; then
4912 case $cross_compiling:$ac_tool_warned in
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916 ac_tool_warned=yes ;;
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}nm; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_NM+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$NM"; then
4933 ac_cv_prog_NM="$NM" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_NM="${ac_tool_prefix}nm"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 if test -n "$NM"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4955 $as_echo "$NM" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4963 if test -z "$ac_cv_prog_NM"; then
4965 # Extract the first word of "nm", so it can be a program name with args.
4966 set dummy nm; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$ac_ct_NM"; then
4973 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_NM="nm"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4993 if test -n "$ac_ct_NM"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4995 $as_echo "$ac_ct_NM" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5001 if test "x$ac_ct_NM" = x; then
5004 case $cross_compiling:$ac_tool_warned in
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5008 ac_tool_warned=yes ;;
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 RANLIB=$ac_cv_prog_RANLIB
5045 if test -n "$RANLIB"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5047 $as_echo "$RANLIB" >&6; }
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_RANLIB="ranlib"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5087 $as_echo "$ac_ct_RANLIB" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5093 if test "x$ac_ct_RANLIB" = x; then
5094 RANLIB="ranlib-not-found-in-path-error"
5096 case $cross_compiling:$ac_tool_warned in
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5102 RANLIB=$ac_ct_RANLIB
5105 RANLIB="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "perl", so it can be a program name with args.
5109 set dummy perl; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if test "${ac_cv_path_PERL+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5117 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5139 PERL=$ac_cv_path_PERL
5140 if test -n "$PERL"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5142 $as_echo "$PERL" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5152 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5153 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5154 $as_echo_n "(cached) " >&6
5156 cat >conftest.make <<\_ACEOF
5159 @echo '@@@%%%=$(MAKE)=@@@%%%'
5161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5164 eval ac_cv_prog_make_${ac_make}_set=yes;;
5166 eval ac_cv_prog_make_${ac_make}_set=no;;
5170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172 $as_echo "yes" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 SET_MAKE="MAKE=${MAKE-make}"
5182 # See if makeinfo has been installed and is modern enough
5183 # that we can use it.
5185 # Extract the first word of "makeinfo", so it can be a program name with args.
5186 set dummy makeinfo; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$MAKEINFO"; then
5193 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_MAKEINFO="makeinfo"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 MAKEINFO=$ac_cv_prog_MAKEINFO
5213 if test -n "$MAKEINFO"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5215 $as_echo "$MAKEINFO" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5222 if test -n "$MAKEINFO"; then
5223 # Found it, now check the version.
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5225 $as_echo_n "checking for modern makeinfo... " >&6; }
5226 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5230 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232 case $ac_prog_version in
5233 '') gcc_cv_prog_makeinfo_modern=no;;
5234 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5235 *) gcc_cv_prog_makeinfo_modern=no;;
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5240 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5242 gcc_cv_prog_makeinfo_modern=no
5244 if test $gcc_cv_prog_makeinfo_modern = no; then
5245 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5248 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5250 BUILD_INFO_FALSE='#'
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5267 macro_version='2.2.7a'
5268 macro_revision='1.3134'
5282 ltmain="$ac_aux_dir/ltmain.sh"
5284 # Backslashify metacharacters that are still active within
5285 # double-quoted strings.
5286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5288 # Same as above, but do not quote variable references.
5289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5291 # Sed substitution to delay expansion of an escaped shell variable in a
5292 # double_quote_subst'ed string.
5293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5295 # Sed substitution to delay expansion of an escaped single quote.
5296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5298 # Sed substitution to avoid accidental globbing in evaled expressions
5299 no_glob_subst='s/\*/\\\*/g'
5301 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5302 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5303 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5306 $as_echo_n "checking how to print strings... " >&6; }
5307 # Test print first, because it will be a builtin if present.
5308 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5311 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5314 # Use this function as a fallback that always works.
5315 func_fallback_echo ()
5317 eval 'cat <<_LTECHO_EOF
5321 ECHO='func_fallback_echo'
5324 # func_echo_all arg...
5325 # Invoke $ECHO with all args, space-separated.
5332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5333 $as_echo "printf" >&6; } ;;
5334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5335 $as_echo "print -r" >&6; } ;;
5336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5337 $as_echo "cat" >&6; } ;;
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5354 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5355 if test "${ac_cv_path_SED+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5359 for ac_i in 1 2 3 4 5 6 7; do
5360 ac_script="$ac_script$as_nl$ac_script"
5362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5363 { ac_script=; unset ac_script;}
5364 if test -z "$SED"; then
5365 ac_path_SED_found=false
5366 # Loop through the user's path and test for each of PROGNAME-LIST
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_prog in sed gsed; do
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5376 # Check for GNU ac_path_SED and select it if it is found.
5377 # Check for GNU $ac_path_SED
5378 case `"$ac_path_SED" --version 2>&1` in
5380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5383 $as_echo_n 0123456789 >"conftest.in"
5386 cat "conftest.in" "conftest.in" >"conftest.tmp"
5387 mv "conftest.tmp" "conftest.in"
5388 cp "conftest.in" "conftest.nl"
5389 $as_echo '' >> "conftest.nl"
5390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5392 as_fn_arith $ac_count + 1 && ac_count=$as_val
5393 if test $ac_count -gt ${ac_path_SED_max-0}; then
5394 # Best one so far, save it but keep looking for a better one
5395 ac_cv_path_SED="$ac_path_SED"
5396 ac_path_SED_max=$ac_count
5398 # 10*(2^10) chars as input seems more than enough
5399 test $ac_count -gt 10 && break
5401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 $ac_path_SED_found && break 3
5409 if test -z "$ac_cv_path_SED"; then
5410 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5418 $as_echo "$ac_cv_path_SED" >&6; }
5419 SED="$ac_cv_path_SED"
5422 test -z "$SED" && SED=sed
5423 Xsed="$SED -e 1s/^X//"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5437 if test "${ac_cv_path_GREP+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -z "$GREP"; then
5441 ac_path_GREP_found=false
5442 # Loop through the user's path and test for each of PROGNAME-LIST
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5447 test -z "$as_dir" && as_dir=.
5448 for ac_prog in grep ggrep; do
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5452 # Check for GNU ac_path_GREP and select it if it is found.
5453 # Check for GNU $ac_path_GREP
5454 case `"$ac_path_GREP" --version 2>&1` in
5456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5459 $as_echo_n 0123456789 >"conftest.in"
5462 cat "conftest.in" "conftest.in" >"conftest.tmp"
5463 mv "conftest.tmp" "conftest.in"
5464 cp "conftest.in" "conftest.nl"
5465 $as_echo 'GREP' >> "conftest.nl"
5466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5468 as_fn_arith $ac_count + 1 && ac_count=$as_val
5469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5470 # Best one so far, save it but keep looking for a better one
5471 ac_cv_path_GREP="$ac_path_GREP"
5472 ac_path_GREP_max=$ac_count
5474 # 10*(2^10) chars as input seems more than enough
5475 test $ac_count -gt 10 && break
5477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5480 $ac_path_GREP_found && break 3
5485 if test -z "$ac_cv_path_GREP"; then
5486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5489 ac_cv_path_GREP=$GREP
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5494 $as_echo "$ac_cv_path_GREP" >&6; }
5495 GREP="$ac_cv_path_GREP"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5499 $as_echo_n "checking for egrep... " >&6; }
5500 if test "${ac_cv_path_EGREP+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5504 then ac_cv_path_EGREP="$GREP -E"
5506 if test -z "$EGREP"; then
5507 ac_path_EGREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in egrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5518 # Check for GNU ac_path_EGREP and select it if it is found.
5519 # Check for GNU $ac_path_EGREP
5520 case `"$ac_path_EGREP" --version 2>&1` in
5522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5525 $as_echo_n 0123456789 >"conftest.in"
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'EGREP' >> "conftest.nl"
5532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_EGREP="$ac_path_EGREP"
5538 ac_path_EGREP_max=$ac_count
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5546 $ac_path_EGREP_found && break 3
5551 if test -z "$ac_cv_path_EGREP"; then
5552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5555 ac_cv_path_EGREP=$EGREP
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5561 $as_echo "$ac_cv_path_EGREP" >&6; }
5562 EGREP="$ac_cv_path_EGREP"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5566 $as_echo_n "checking for fgrep... " >&6; }
5567 if test "${ac_cv_path_FGREP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5571 then ac_cv_path_FGREP="$GREP -F"
5573 if test -z "$FGREP"; then
5574 ac_path_FGREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in fgrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5585 # Check for GNU ac_path_FGREP and select it if it is found.
5586 # Check for GNU $ac_path_FGREP
5587 case `"$ac_path_FGREP" --version 2>&1` in
5589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5592 $as_echo_n 0123456789 >"conftest.in"
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'FGREP' >> "conftest.nl"
5599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_FGREP="$ac_path_FGREP"
5605 ac_path_FGREP_max=$ac_count
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 $ac_path_FGREP_found && break 3
5618 if test -z "$ac_cv_path_FGREP"; then
5619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5622 ac_cv_path_FGREP=$FGREP
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5628 $as_echo "$ac_cv_path_FGREP" >&6; }
5629 FGREP="$ac_cv_path_FGREP"
5632 test -z "$GREP" && GREP=grep
5652 # Check whether --with-gnu-ld was given.
5653 if test "${with_gnu_ld+set}" = set; then :
5654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5660 if test "$GCC" = yes; then
5661 # Check if gcc -print-prog-name=ld gives a path.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5663 $as_echo_n "checking for ld used by $CC... " >&6; }
5666 # gcc leaves a trailing carriage return which upsets mingw
5667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5672 # Accept absolute paths.
5674 re_direlt='/[^/][^/]*/\.\./'
5675 # Canonicalize the pathname of ld
5676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5680 test -z "$LD" && LD="$ac_prog"
5683 # If it fails, then pretend we aren't using GCC.
5687 # If it is relative, then search for the first ld in PATH.
5691 elif test "$with_gnu_ld" = yes; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5693 $as_echo_n "checking for GNU ld... " >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5696 $as_echo_n "checking for non-GNU ld... " >&6; }
5698 if test "${lt_cv_path_LD+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5701 if test -z "$LD"; then
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH; do
5705 test -z "$ac_dir" && ac_dir=.
5706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5707 lt_cv_path_LD="$ac_dir/$ac_prog"
5708 # Check to see if the program is GNU ld. I'd rather use --version,
5709 # but apparently some variants of GNU ld only accept -v.
5710 # Break only if it was the GNU/non-GNU ld that we prefer.
5711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5712 *GNU* | *'with BFD'*)
5713 test "$with_gnu_ld" != no && break
5716 test "$with_gnu_ld" != yes && break
5723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5728 if test -n "$LD"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5730 $as_echo "$LD" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5735 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5738 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5742 case `$LD -v 2>&1 </dev/null` in
5743 *GNU* | *'with BFD'*)
5744 lt_cv_prog_gnu_ld=yes
5747 lt_cv_prog_gnu_ld=no
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5753 with_gnu_ld=$lt_cv_prog_gnu_ld
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5764 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5765 if test "${lt_cv_path_NM+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$NM"; then
5769 # Let the user override the test.
5772 lt_nm_to_check="${ac_tool_prefix}nm"
5773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5774 lt_nm_to_check="$lt_nm_to_check nm"
5776 for lt_tmp_nm in $lt_nm_to_check; do
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780 test -z "$ac_dir" && ac_dir=.
5781 tmp_nm="$ac_dir/$lt_tmp_nm"
5782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5783 # Check to see if the nm accepts a BSD-compat flag.
5784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5785 # nm: unknown option "B" ignored
5786 # Tru64's nm complains that /dev/null is an invalid object file
5787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5788 */dev/null* | *'Invalid file or object type'*)
5789 lt_cv_path_NM="$tmp_nm -B"
5793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795 lt_cv_path_NM="$tmp_nm -p"
5799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5800 continue # so that we can try to find one that supports BSD flags
5809 : ${lt_cv_path_NM=no}
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5813 $as_echo "$lt_cv_path_NM" >&6; }
5814 if test "$lt_cv_path_NM" != "no"; then
5817 # Didn't find any BSD compatible name lister, look for dumpbin.
5818 if test -n "$DUMPBIN"; then :
5819 # Let the user override the test.
5821 if test -n "$ac_tool_prefix"; then
5822 for ac_prog in dumpbin "link -dump"
5824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if test -n "$DUMPBIN"; then
5832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 DUMPBIN=$ac_cv_prog_DUMPBIN
5852 if test -n "$DUMPBIN"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5854 $as_echo "$DUMPBIN" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5861 test -n "$DUMPBIN" && break
5864 if test -z "$DUMPBIN"; then
5865 ac_ct_DUMPBIN=$DUMPBIN
5866 for ac_prog in dumpbin "link -dump"
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5896 if test -n "$ac_ct_DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5898 $as_echo "$ac_ct_DUMPBIN" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 test -n "$ac_ct_DUMPBIN" && break
5908 if test "x$ac_ct_DUMPBIN" = x; then
5911 case $cross_compiling:$ac_tool_warned in
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5917 DUMPBIN=$ac_ct_DUMPBIN
5921 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5923 DUMPBIN="$DUMPBIN -symbols"
5931 if test "$DUMPBIN" != ":"; then
5935 test -z "$NM" && NM=nm
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5943 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5944 if test "${lt_cv_nm_interface+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5947 lt_cv_nm_interface="BSD nm"
5948 echo "int some_variable = 0;" > conftest.$ac_ext
5949 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5950 (eval "$ac_compile" 2>conftest.err)
5951 cat conftest.err >&5
5952 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954 cat conftest.err >&5
5955 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5956 cat conftest.out >&5
5957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958 lt_cv_nm_interface="MS dumpbin"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5963 $as_echo "$lt_cv_nm_interface" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5966 $as_echo_n "checking whether ln -s works... " >&6; }
5968 if test "$LN_S" = "ln -s"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970 $as_echo "yes" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5973 $as_echo "no, using $LN_S" >&6; }
5976 # find the maximum length of command line arguments
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5978 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5987 # On DJGPP, this test can blow up pretty badly due to problems in libc
5988 # (any single argument exceeding 2000 bytes causes a buffer overrun
5989 # during glob expansion). Even if it were fixed, the result of this
5990 # check would be larger than it should be.
5991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5995 # Under GNU Hurd, this test is not required because there is
5996 # no limit to the length of command line arguments.
5997 # Libtool will interpret -1 as no limit whatsoever
5998 lt_cv_sys_max_cmd_len=-1;
6001 cygwin* | mingw* | cegcc*)
6002 # On Win9x/ME, this test blows up -- it succeeds, but takes
6003 # about 5 minutes as the teststring grows exponentially.
6004 # Worse, since 9x/ME are not pre-emptively multitasking,
6005 # you end up with a "frozen" computer, even though with patience
6006 # the test eventually succeeds (with a max line length of 256k).
6007 # Instead, let's just punt: use the minimum linelength reported by
6008 # all of the supported platforms: 8192 (on NT/2K/XP).
6009 lt_cv_sys_max_cmd_len=8192;
6013 # On MiNT this can take a long time and run out of memory.
6014 lt_cv_sys_max_cmd_len=8192;
6018 # On AmigaOS with pdksh, this test takes hours, literally.
6019 # So we just punt and use a minimum line length of 8192.
6020 lt_cv_sys_max_cmd_len=8192;
6023 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6024 # This has been around since 386BSD, at least. Likely further.
6025 if test -x /sbin/sysctl; then
6026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6027 elif test -x /usr/sbin/sysctl; then
6028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6032 # And add a safety zone
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6039 lt_cv_sys_max_cmd_len=196608
6043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6045 # nice to cause kernel panics so lets avoid the loop below.
6046 # First set a reasonable default.
6047 lt_cv_sys_max_cmd_len=16384
6049 if test -x /sbin/sysconfig; then
6050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056 lt_cv_sys_max_cmd_len=102400
6058 sysv5* | sco5v6* | sysv4.2uw2*)
6059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6060 if test -n "$kargmax"; then
6061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6063 lt_cv_sys_max_cmd_len=32768
6067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6068 if test -n "$lt_cv_sys_max_cmd_len"; then
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072 # Make teststring a little bigger before we do anything with it.
6073 # a 1K string should be a reasonable start.
6074 for i in 1 2 3 4 5 6 7 8 ; do
6075 teststring=$teststring$teststring
6077 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6078 # If test is not a shell built-in, we'll probably end up computing a
6079 # maximum length that is only half of the actual maximum length, but
6081 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6082 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6083 test $i != 17 # 1/2 MB should be enough
6086 teststring=$teststring$teststring
6088 # Only check the string length outside the loop.
6089 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6091 # Add a significant safety factor because C++ compilers can tack on
6092 # massive amounts of additional arguments before passing them to the
6093 # linker. It appears as though 1/2 is a usable value.
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6101 if test -n $lt_cv_sys_max_cmd_len ; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6103 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6106 $as_echo "none" >&6; }
6108 max_cmd_len=$lt_cv_sys_max_cmd_len
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6120 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6121 # Try some XSI features
6124 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6126 && eval 'test $(( 1 + 1 )) -eq 2 \
6127 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6130 $as_echo "$xsi_shell" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6134 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6136 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6138 && lt_shell_append=yes
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6140 $as_echo "$lt_shell_append" >&6; }
6143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6153 # test EBCDIC or ASCII
6154 case `echo X|tr X '\101'` in
6155 A) # ASCII based system
6156 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6157 lt_SP2NL='tr \040 \012'
6158 lt_NL2SP='tr \015\012 \040\040'
6160 *) # EBCDIC based system
6161 lt_SP2NL='tr \100 \n'
6162 lt_NL2SP='tr \r\n \100\100'
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6176 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6179 lt_cv_ld_reload_flag='-r'
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6183 reload_flag=$lt_cv_ld_reload_flag
6184 case $reload_flag in
6186 *) reload_flag=" $reload_flag" ;;
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 if test "$GCC" = yes; then
6192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$OBJDUMP"; then
6216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 OBJDUMP=$ac_cv_prog_OBJDUMP
6236 if test -n "$OBJDUMP"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6238 $as_echo "$OBJDUMP" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6246 if test -z "$ac_cv_prog_OBJDUMP"; then
6247 ac_ct_OBJDUMP=$OBJDUMP
6248 # Extract the first word of "objdump", so it can be a program name with args.
6249 set dummy objdump; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$ac_ct_OBJDUMP"; then
6256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6276 if test -n "$ac_ct_OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6278 $as_echo "$ac_ct_OBJDUMP" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6284 if test "x$ac_ct_OBJDUMP" = x; then
6287 case $cross_compiling:$ac_tool_warned in
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6293 OBJDUMP=$ac_ct_OBJDUMP
6296 OBJDUMP="$ac_cv_prog_OBJDUMP"
6299 test -z "$OBJDUMP" && OBJDUMP=objdump
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6310 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6311 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6314 lt_cv_file_magic_cmd='$MAGIC_CMD'
6315 lt_cv_file_magic_test_file=
6316 lt_cv_deplibs_check_method='unknown'
6317 # Need to set the preceding variable on all platforms that support
6318 # interlibrary dependencies.
6319 # 'none' -- dependencies not supported.
6320 # `unknown' -- same as none, but documents that we really don't know.
6321 # 'pass_all' -- all dependencies passed with no checks.
6322 # 'test_compile' -- check by making test program.
6323 # 'file_magic [[regex]]' -- check by looking for files in library path
6324 # which responds to the $file_magic_cmd with a given extended regex.
6325 # If you have `file' or equivalent on your system and you're not sure
6326 # whether `pass_all' will *always* work, you probably want this one.
6330 lt_cv_deplibs_check_method=pass_all
6334 lt_cv_deplibs_check_method=pass_all
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6339 lt_cv_file_magic_cmd='/usr/bin/file -L'
6340 lt_cv_file_magic_test_file=/shlib/libc.so
6344 # func_win32_libid is a shell function defined in ltmain.sh
6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346 lt_cv_file_magic_cmd='func_win32_libid'
6350 # Base MSYS/MinGW do not provide the 'file' command needed by
6351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6352 # unless we find 'file', for example because we are cross-compiling.
6353 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6354 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6356 lt_cv_file_magic_cmd='func_win32_libid'
6358 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6359 lt_cv_file_magic_cmd='$OBJDUMP -f'
6364 # use the weaker test based on 'objdump'. See mingw*.
6365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6366 lt_cv_file_magic_cmd='$OBJDUMP -f'
6369 darwin* | rhapsody*)
6370 lt_cv_deplibs_check_method=pass_all
6373 freebsd* | dragonfly*)
6374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6377 # Not sure whether the presence of OpenBSD here was a mistake.
6378 # Let's accept both of them until this is cleared up.
6379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6385 lt_cv_deplibs_check_method=pass_all
6390 lt_cv_deplibs_check_method=pass_all
6394 lt_cv_deplibs_check_method=pass_all
6397 hpux10.20* | hpux11*)
6398 lt_cv_file_magic_cmd=/usr/bin/file
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6405 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]'
6406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6420 irix5* | irix6* | nonstopux*)
6422 *-32|*"-32 ") libmagic=32-bit;;
6423 *-n32|*"-n32 ") libmagic=N32;;
6424 *-64|*"-64 ") libmagic=64-bit;;
6425 *) libmagic=never-match;;
6427 lt_cv_deplibs_check_method=pass_all
6430 # This must be Linux ELF.
6431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6432 lt_cv_deplibs_check_method=pass_all
6436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6445 lt_cv_file_magic_cmd=/usr/bin/file
6446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6450 lt_cv_deplibs_check_method=pass_all
6454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6461 osf3* | osf4* | osf5*)
6462 lt_cv_deplibs_check_method=pass_all
6466 lt_cv_deplibs_check_method=pass_all
6470 lt_cv_deplibs_check_method=pass_all
6473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6474 lt_cv_deplibs_check_method=pass_all
6478 case $host_vendor in
6480 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]'
6481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6484 lt_cv_deplibs_check_method=pass_all
6487 lt_cv_file_magic_cmd='/bin/file'
6488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6491 lt_cv_file_magic_cmd='/bin/file'
6492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6493 lt_cv_file_magic_test_file=/lib/libc.so
6496 lt_cv_deplibs_check_method=pass_all
6499 lt_cv_deplibs_check_method=pass_all
6505 lt_cv_deplibs_check_method=pass_all
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6511 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6512 file_magic_cmd=$lt_cv_file_magic_cmd
6513 deplibs_check_method=$lt_cv_deplibs_check_method
6514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_AR+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 if test -n "$AR"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558 $as_echo "$AR" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6566 if test -z "$ac_cv_prog_AR"; then
6568 # Extract the first word of "ar", so it can be a program name with args.
6569 set dummy ar; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6575 if test -n "$ac_ct_AR"; then
6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_AR="ar"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596 if test -n "$ac_ct_AR"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6598 $as_echo "$ac_ct_AR" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6604 if test "x$ac_ct_AR" = x; then
6607 case $cross_compiling:$ac_tool_warned in
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6619 test -z "$AR" && AR=ar
6620 test -z "$AR_FLAGS" && AR_FLAGS=cru
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}strip; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_STRIP+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6640 if test -n "$STRIP"; then
6641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 STRIP=$ac_cv_prog_STRIP
6661 if test -n "$STRIP"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6663 $as_echo "$STRIP" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6671 if test -z "$ac_cv_prog_STRIP"; then
6673 # Extract the first word of "strip", so it can be a program name with args.
6674 set dummy strip; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -n "$ac_ct_STRIP"; then
6681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_STRIP="strip"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6701 if test -n "$ac_ct_STRIP"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6703 $as_echo "$ac_ct_STRIP" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6709 if test "x$ac_ct_STRIP" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6721 STRIP="$ac_cv_prog_STRIP"
6724 test -z "$STRIP" && STRIP=:
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$RANLIB"; then
6740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 RANLIB=$ac_cv_prog_RANLIB
6760 if test -n "$RANLIB"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6762 $as_echo "$RANLIB" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_RANLIB"; then
6771 ac_ct_RANLIB=$RANLIB
6772 # Extract the first word of "ranlib", so it can be a program name with args.
6773 set dummy ranlib; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$ac_ct_RANLIB"; then
6780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_RANLIB="ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6800 if test -n "$ac_ct_RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6802 $as_echo "$ac_ct_RANLIB" >&6; }
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_RANLIB" = x; then
6811 case $cross_compiling:$ac_tool_warned in
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6817 RANLIB=$ac_ct_RANLIB
6820 RANLIB="$ac_cv_prog_RANLIB"
6823 test -z "$RANLIB" && RANLIB=:
6830 # Determine commands to create old-style static archives.
6831 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6832 old_postinstall_cmds='chmod 644 $oldlib'
6833 old_postuninstall_cmds=
6835 if test -n "$RANLIB"; then
6838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6849 lock_old_archive_extraction=yes ;;
6851 lock_old_archive_extraction=no ;;
6892 # If no C compiler was specified, use CC.
6895 # If no C compiler flags were specified, use CFLAGS.
6896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6898 # Allow CC to be a program name with arguments.
6902 # Check for command to grab the raw symbol name followed by C symbol from nm.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6905 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6909 # These are sane defaults that work on at least a few old systems.
6910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6912 # Character class describing NM global symbol codes.
6913 symcode='[BCDEGRST]'
6915 # Regexp to match symbols that can be accessed directly from C.
6916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918 # Define system-specific variables.
6923 cygwin* | mingw* | pw32* | cegcc*)
6924 symcode='[ABCDGISTW]'
6927 if test "$host_cpu" = ia64; then
6928 symcode='[ABCDEGRST]'
6932 symcode='[BCDEGRST]'
6935 symcode='[BCDEGQRST]'
6946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6954 # If we're using GNU nm, then use its standard symbol codes.
6955 case `$NM -V 2>&1` in
6956 *GNU* | *'with BFD'*)
6957 symcode='[ABCDGIRSTW]' ;;
6960 # Transform an extracted symbol line into a proper C declaration.
6961 # Some systems (esp. on ia64) link data and code symbols differently,
6962 # so use this general approach.
6963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6965 # Transform an extracted symbol line into symbol name and symbol address
6966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6967 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'"
6969 # Handle CRLF in mingw tool chain
6973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6977 # Try without a prefix underscore, then with it.
6978 for ac_symprfx in "" "_"; do
6980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6981 symxfrm="\\1 $ac_symprfx\\2 \\2"
6983 # Write the raw and C identifiers.
6984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6985 # Fake it for dumpbin and say T for any non-static function
6986 # and D for any global variable.
6987 # Also find C++ and __fastcall symbols from MSVC++,
6988 # which start with @ or ?.
6989 lt_cv_sys_global_symbol_pipe="$AWK '"\
6990 " {last_section=section; section=\$ 3};"\
6991 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6992 " \$ 0!~/External *\|/{next};"\
6993 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6994 " {if(hide[section]) next};"\
6995 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6996 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6997 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6998 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6999 " ' prfx=^$ac_symprfx"
7001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7004 # Check to see that the pipe works correctly.
7008 cat > conftest.$ac_ext <<_LT_EOF
7013 void nm_test_func(void);
7014 void nm_test_func(void){}
7018 int main(){nm_test_var='a';nm_test_func();return(0);}
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022 (eval $ac_compile) 2>&5
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 # Now try to grab the symbols.
7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; } && test -s "$nlist"; then
7033 # Try sorting and uniquifying the output.
7034 if sort "$nlist" | uniq > "$nlist"T; then
7035 mv -f "$nlist"T "$nlist"
7040 # Make sure that we snagged all the symbols we need.
7041 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7042 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7043 cat <<_LT_EOF > conftest.$ac_ext
7049 # Now generate the symbol file.
7050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7052 cat <<_LT_EOF >> conftest.$ac_ext
7054 /* The mapping between symbol names and symbols. */
7059 lt__PROGRAM__LTX_preloaded_symbols[] =
7061 { "@PROGRAM@", (void *) 0 },
7063 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7064 cat <<\_LT_EOF >> conftest.$ac_ext
7068 /* This works around a problem in FreeBSD linker */
7069 #ifdef FREEBSD_WORKAROUND
7070 static const void *lt_preloaded_setup() {
7071 return lt__PROGRAM__LTX_preloaded_symbols;
7079 # Now try linking the two files.
7080 mv conftest.$ac_objext conftstm.$ac_objext
7081 lt_save_LIBS="$LIBS"
7082 lt_save_CFLAGS="$CFLAGS"
7083 LIBS="conftstm.$ac_objext"
7084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7086 (eval $ac_link) 2>&5
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7092 LIBS="$lt_save_LIBS"
7093 CFLAGS="$lt_save_CFLAGS"
7095 echo "cannot find nm_test_func in $nlist" >&5
7098 echo "cannot find nm_test_var in $nlist" >&5
7101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7104 echo "$progname: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7107 rm -rf conftest* conftst*
7109 # Do not use the global_symbol_pipe unless it works.
7110 if test "$pipe_works" = yes; then
7113 lt_cv_sys_global_symbol_pipe=
7119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7120 lt_cv_sys_global_symbol_to_cdecl=
7122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7124 $as_echo "failed" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7127 $as_echo "ok" >&6; }
7152 # Check whether --enable-libtool-lock was given.
7153 if test "${enable_libtool_lock+set}" = set; then :
7154 enableval=$enable_libtool_lock;
7157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7159 # Some flags need to be propagated to the compiler or linker for good
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7182 # Find out which ABI we are using.
7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185 (eval $ac_compile) 2>&5
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
7189 if test "$lt_cv_prog_gnu_ld" = yes; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7192 LD="${LD-ld} -melf32bsmip"
7195 LD="${LD-ld} -melf32bmipn32"
7198 LD="${LD-ld} -melf64bmip"
7202 case `/usr/bin/file conftest.$ac_objext` in
7218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223 (eval $ac_compile) 2>&5
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 case `/usr/bin/file conftest.o` in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_i386_fbsd"
7234 LD="${LD-ld} -m elf_i386"
7236 ppc64-*linux*|powerpc64-*linux*)
7237 LD="${LD-ld} -m elf32ppclinux"
7240 LD="${LD-ld} -m elf_s390"
7243 LD="${LD-ld} -m elf32_sparc"
7249 x86_64-*kfreebsd*-gnu)
7250 LD="${LD-ld} -m elf_x86_64_fbsd"
7253 LD="${LD-ld} -m elf_x86_64"
7255 ppc*-*linux*|powerpc*-*linux*)
7256 LD="${LD-ld} -m elf64ppc"
7258 s390*-*linux*|s390*-*tpf*)
7259 LD="${LD-ld} -m elf64_s390"
7262 LD="${LD-ld} -m elf64_sparc"
7272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7273 SAVE_CFLAGS="$CFLAGS"
7274 CFLAGS="$CFLAGS -belf"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7276 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7277 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7281 ac_cpp='$CPP $CPPFLAGS'
7282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7297 if ac_fn_c_try_link "$LINENO"; then :
7298 lt_cv_cc_needs_belf=yes
7300 lt_cv_cc_needs_belf=no
7302 rm -f core conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7305 ac_cpp='$CPP $CPPFLAGS'
7306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7312 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7313 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7314 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7315 CFLAGS="$SAVE_CFLAGS"
7319 # Find out which ABI we are using.
7320 echo 'int i;' > conftest.$ac_ext
7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7322 (eval $ac_compile) 2>&5
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; }; then
7326 case `/usr/bin/file conftest.o` in
7328 case $lt_cv_prog_gnu_ld in
7329 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7331 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7343 need_locks="$enable_libtool_lock"
7347 rhapsody* | darwin*)
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 if test -n "$DSYMUTIL"; then
7357 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7377 if test -n "$DSYMUTIL"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7379 $as_echo "$DSYMUTIL" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7387 if test -z "$ac_cv_prog_DSYMUTIL"; then
7388 ac_ct_DSYMUTIL=$DSYMUTIL
7389 # Extract the first word of "dsymutil", so it can be a program name with args.
7390 set dummy dsymutil; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$ac_ct_DSYMUTIL"; then
7397 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7417 if test -n "$ac_ct_DSYMUTIL"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7419 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7425 if test "x$ac_ct_DSYMUTIL" = x; then
7428 case $cross_compiling:$ac_tool_warned in
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7434 DSYMUTIL=$ac_ct_DSYMUTIL
7437 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$NMEDIT"; then
7449 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 NMEDIT=$ac_cv_prog_NMEDIT
7469 if test -n "$NMEDIT"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7471 $as_echo "$NMEDIT" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7479 if test -z "$ac_cv_prog_NMEDIT"; then
7480 ac_ct_NMEDIT=$NMEDIT
7481 # Extract the first word of "nmedit", so it can be a program name with args.
7482 set dummy nmedit; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$ac_ct_NMEDIT"; then
7489 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7509 if test -n "$ac_ct_NMEDIT"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7511 $as_echo "$ac_ct_NMEDIT" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7517 if test "x$ac_ct_NMEDIT" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7526 NMEDIT=$ac_ct_NMEDIT
7529 NMEDIT="$ac_cv_prog_NMEDIT"
7532 if test -n "$ac_tool_prefix"; then
7533 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7534 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_LIPO+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$LIPO"; then
7541 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 LIPO=$ac_cv_prog_LIPO
7561 if test -n "$LIPO"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7563 $as_echo "$LIPO" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7571 if test -z "$ac_cv_prog_LIPO"; then
7573 # Extract the first word of "lipo", so it can be a program name with args.
7574 set dummy lipo; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7580 if test -n "$ac_ct_LIPO"; then
7581 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_prog_ac_ct_LIPO="lipo"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7601 if test -n "$ac_ct_LIPO"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7603 $as_echo "$ac_ct_LIPO" >&6; }
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7609 if test "x$ac_ct_LIPO" = x; then
7612 case $cross_compiling:$ac_tool_warned in
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7616 ac_tool_warned=yes ;;
7621 LIPO="$ac_cv_prog_LIPO"
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}otool; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7632 if test -n "$OTOOL"; then
7633 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 OTOOL=$ac_cv_prog_OTOOL
7653 if test -n "$OTOOL"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7655 $as_echo "$OTOOL" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7663 if test -z "$ac_cv_prog_OTOOL"; then
7665 # Extract the first word of "otool", so it can be a program name with args.
7666 set dummy otool; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7672 if test -n "$ac_ct_OTOOL"; then
7673 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_ac_ct_OTOOL="otool"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7693 if test -n "$ac_ct_OTOOL"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7695 $as_echo "$ac_ct_OTOOL" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7701 if test "x$ac_ct_OTOOL" = x; then
7704 case $cross_compiling:$ac_tool_warned in
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708 ac_tool_warned=yes ;;
7713 OTOOL="$ac_cv_prog_OTOOL"
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$OTOOL64"; then
7725 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 OTOOL64=$ac_cv_prog_OTOOL64
7745 if test -n "$OTOOL64"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7747 $as_echo "$OTOOL64" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7755 if test -z "$ac_cv_prog_OTOOL64"; then
7756 ac_ct_OTOOL64=$OTOOL64
7757 # Extract the first word of "otool64", so it can be a program name with args.
7758 set dummy otool64; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7764 if test -n "$ac_ct_OTOOL64"; then
7765 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_ac_ct_OTOOL64="otool64"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7785 if test -n "$ac_ct_OTOOL64"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7787 $as_echo "$ac_ct_OTOOL64" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7793 if test "x$ac_ct_OTOOL64" = x; then
7796 case $cross_compiling:$ac_tool_warned in
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7802 OTOOL64=$ac_ct_OTOOL64
7805 OTOOL64="$ac_cv_prog_OTOOL64"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7835 $as_echo_n "checking for -single_module linker flag... " >&6; }
7836 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7839 lt_cv_apple_cc_single_mod=no
7840 if test -z "${LT_MULTI_MODULE}"; then
7841 # By default we will add the -single_module flag. You can override
7842 # by either setting the environment variable LT_MULTI_MODULE
7843 # non-empty at configure time, or by adding -multi_module to the
7845 rm -rf libconftest.dylib*
7846 echo "int foo(void){return 1;}" > conftest.c
7847 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7848 -dynamiclib -Wl,-single_module conftest.c" >&5
7849 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7850 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7852 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7853 lt_cv_apple_cc_single_mod=yes
7855 cat conftest.err >&5
7857 rm -rf libconftest.dylib*
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7862 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7864 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7865 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 lt_cv_ld_exported_symbols_list=no
7869 save_LDFLAGS=$LDFLAGS
7870 echo "_main" > conftest.sym
7871 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7883 if ac_fn_c_try_link "$LINENO"; then :
7884 lt_cv_ld_exported_symbols_list=yes
7886 lt_cv_ld_exported_symbols_list=no
7888 rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LDFLAGS="$save_LDFLAGS"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7894 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7896 $as_echo_n "checking for -force_load linker flag... " >&6; }
7897 if test "${lt_cv_ld_force_load+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 lt_cv_ld_force_load=no
7901 cat > conftest.c << _LT_EOF
7902 int forced_loaded() { return 2;}
7904 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7905 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7906 echo "$AR cru libconftest.a conftest.o" >&5
7907 $AR cru libconftest.a conftest.o 2>&5
7908 cat > conftest.c << _LT_EOF
7909 int main() { return 0;}
7911 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7912 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7914 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7915 lt_cv_ld_force_load=yes
7917 cat conftest.err >&5
7919 rm -f conftest.err libconftest.a conftest conftest.c
7920 rm -rf conftest.dSYM
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7924 $as_echo "$lt_cv_ld_force_load" >&6; }
7926 rhapsody* | darwin1.[012])
7927 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7929 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7930 darwin*) # darwin 5.x on
7931 # if running on 10.5 or later, the deployment target defaults
7932 # to the OS version, if on x86, and 10.4, the deployment
7933 # target defaults to 10.4. Don't you love it?
7934 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7935 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7936 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7938 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7944 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7945 _lt_dar_single_mod='$single_module'
7947 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7948 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7950 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7952 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7953 _lt_dsymutil='~$DSYMUTIL $lib || :'
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7967 # On Suns, sometimes $CPP names a directory.
7968 if test -n "$CPP" && test -d "$CPP"; then
7971 if test -z "$CPP"; then
7972 if test "${ac_cv_prog_CPP+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7975 # Double quotes because CPP needs to be expanded
7976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7979 for ac_c_preproc_warn_flag in '' yes
7981 # Use a header file that comes with gcc, so configuring glibc
7982 # with a fresh cross-compiler works.
7983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7984 # <limits.h> exists even on freestanding compilers.
7985 # On the NeXT, cc -E runs the code through the compiler's parser,
7986 # not just through cpp. "Syntax error" is here to catch this case.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7990 # include <limits.h>
7992 # include <assert.h>
7996 if ac_fn_c_try_cpp "$LINENO"; then :
7999 # Broken: fails on valid input.
8002 rm -f conftest.err conftest.$ac_ext
8004 # OK, works on sane cases. Now check whether nonexistent headers
8005 # can be detected and how.
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <ac_nonexistent.h>
8010 if ac_fn_c_try_cpp "$LINENO"; then :
8011 # Broken: success on invalid input.
8014 # Passes both tests.
8018 rm -f conftest.err conftest.$ac_ext
8021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022 rm -f conftest.err conftest.$ac_ext
8023 if $ac_preproc_ok; then :
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8036 $as_echo "$CPP" >&6; }
8038 for ac_c_preproc_warn_flag in '' yes
8040 # Use a header file that comes with gcc, so configuring glibc
8041 # with a fresh cross-compiler works.
8042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8043 # <limits.h> exists even on freestanding compilers.
8044 # On the NeXT, cc -E runs the code through the compiler's parser,
8045 # not just through cpp. "Syntax error" is here to catch this case.
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8049 # include <limits.h>
8051 # include <assert.h>
8055 if ac_fn_c_try_cpp "$LINENO"; then :
8058 # Broken: fails on valid input.
8061 rm -f conftest.err conftest.$ac_ext
8063 # OK, works on sane cases. Now check whether nonexistent headers
8064 # can be detected and how.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #include <ac_nonexistent.h>
8069 if ac_fn_c_try_cpp "$LINENO"; then :
8070 # Broken: success on invalid input.
8073 # Passes both tests.
8077 rm -f conftest.err conftest.$ac_ext
8080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081 rm -f conftest.err conftest.$ac_ext
8082 if $ac_preproc_ok; then :
8085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8087 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8088 See \`config.log' for more details." "$LINENO" 5; }
8092 ac_cpp='$CPP $CPPFLAGS'
8093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8099 $as_echo_n "checking for ANSI C header files... " >&6; }
8100 if test "${ac_cv_header_stdc+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 ac_cv_header_stdc=yes
8121 ac_cv_header_stdc=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 if test $ac_cv_header_stdc = yes; then
8126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 $EGREP "memchr" >/dev/null 2>&1; then :
8136 ac_cv_header_stdc=no
8142 if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150 $EGREP "free" >/dev/null 2>&1; then :
8153 ac_cv_header_stdc=no
8159 if test $ac_cv_header_stdc = yes; then
8160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8161 if test "$cross_compiling" = yes; then :
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8168 #if ((' ' & 0x0FF) == 0x020)
8169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 # define ISLOWER(c) \
8173 (('a' <= (c) && (c) <= 'i') \
8174 || ('j' <= (c) && (c) <= 'r') \
8175 || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8184 for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i))
8186 || toupper (i) != TOUPPER (i))
8191 if ac_fn_c_try_run "$LINENO"; then :
8194 ac_cv_header_stdc=no
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8197 conftest.$ac_objext conftest.beam conftest.$ac_ext
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8203 $as_echo "$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8206 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8212 inttypes.h stdint.h unistd.h
8214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8215 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8217 eval as_val=\$$as_ac_Header
8218 if test "x$as_val" = x""yes; then :
8219 cat >>confdefs.h <<_ACEOF
8220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8228 for ac_header in dlfcn.h
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8232 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8233 cat >>confdefs.h <<_ACEOF
8234 #define HAVE_DLFCN_H 1
8256 # Check whether --enable-shared was given.
8257 if test "${enable_shared+set}" = set; then :
8258 enableval=$enable_shared; p=${PACKAGE-default}
8260 yes) enable_shared=yes ;;
8261 no) enable_shared=no ;;
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for pkg in $enableval; do
8268 if test "X$pkg" = "X$p"; then
8287 # Check whether --enable-static was given.
8288 if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8299 if test "X$pkg" = "X$p"; then
8319 # Check whether --with-pic was given.
8320 if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; pic_mode="$withval"
8327 test -z "$pic_mode" && pic_mode=default
8335 # Check whether --enable-fast-install was given.
8336 if test "${enable_fast_install+set}" = set; then :
8337 enableval=$enable_fast_install; p=${PACKAGE-default}
8339 yes) enable_fast_install=yes ;;
8340 no) enable_fast_install=no ;;
8342 enable_fast_install=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8347 if test "X$pkg" = "X$p"; then
8348 enable_fast_install=yes
8355 enable_fast_install=yes
8368 # This can be used to rebuild libtool when needed
8369 LIBTOOL_DEPS="$ltmain"
8371 # Always use our own libtool.
8372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8399 test -z "$LN_S" && LN_S="ln -s"
8414 if test -n "${ZSH_VERSION+set}" ; then
8415 setopt NO_GLOB_SUBST
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8419 $as_echo_n "checking for objdir... " >&6; }
8420 if test "${lt_cv_objdir+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8423 rm -f .libs 2>/dev/null
8424 mkdir .libs 2>/dev/null
8425 if test -d .libs; then
8428 # MS-DOS does not allow filenames that begin with a dot.
8431 rmdir .libs 2>/dev/null
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8434 $as_echo "$lt_cv_objdir" >&6; }
8435 objdir=$lt_cv_objdir
8441 cat >>confdefs.h <<_ACEOF
8442 #define LT_OBJDIR "$lt_cv_objdir/"
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8455 export COLLECT_NAMES
8462 can_build_shared=yes
8464 # All known linkers require a `.a' archive for static linking (except MSVC,
8465 # which needs '.lib').
8468 with_gnu_ld="$lt_cv_prog_gnu_ld"
8471 old_CFLAGS="$CFLAGS"
8473 # Set sane defaults for various variables
8474 test -z "$CC" && CC=cc
8475 test -z "$LTCC" && LTCC=$CC
8476 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8477 test -z "$LD" && LD=ld
8478 test -z "$ac_objext" && ac_objext=o
8480 for cc_temp in $compiler""; do
8482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8488 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8491 # Only perform the check for file, if the check method requires it
8492 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8493 case $deplibs_check_method in
8495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8506 lt_save_MAGIC_CMD="$MAGIC_CMD"
8507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8509 for ac_dir in $ac_dummy; do
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/${ac_tool_prefix}file; then
8513 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8514 if test -n "$file_magic_test_file"; then
8515 case $deplibs_check_method in
8517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8520 $EGREP "$file_magic_regex" > /dev/null; then
8525 *** Warning: the command libtool uses to detect shared libraries,
8526 *** $file_magic_cmd, produces output that libtool cannot recognize.
8527 *** The result is that libtool may fail to recognize shared libraries
8528 *** as such. This will affect the creation of libtool libraries that
8529 *** depend on shared libraries, but programs linked with such libtool
8530 *** libraries will work regardless of this problem. Nevertheless, you
8531 *** may want to report the problem to your system manager and/or to
8532 *** bug-libtool@gnu.org
8542 MAGIC_CMD="$lt_save_MAGIC_CMD"
8547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548 if test -n "$MAGIC_CMD"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8550 $as_echo "$MAGIC_CMD" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8560 if test -z "$lt_cv_path_MAGIC_CMD"; then
8561 if test -n "$ac_tool_prefix"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8563 $as_echo_n "checking for file... " >&6; }
8564 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
8569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8572 lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575 for ac_dir in $ac_dummy; do
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/file; then
8579 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8580 if test -n "$file_magic_test_file"; then
8581 case $deplibs_check_method in
8583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586 $EGREP "$file_magic_regex" > /dev/null; then
8591 *** Warning: the command libtool uses to detect shared libraries,
8592 *** $file_magic_cmd, produces output that libtool cannot recognize.
8593 *** The result is that libtool may fail to recognize shared libraries
8594 *** as such. This will affect the creation of libtool libraries that
8595 *** depend on shared libraries, but programs linked with such libtool
8596 *** libraries will work regardless of this problem. Nevertheless, you
8597 *** may want to report the problem to your system manager and/or to
8598 *** bug-libtool@gnu.org
8608 MAGIC_CMD="$lt_save_MAGIC_CMD"
8613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614 if test -n "$MAGIC_CMD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616 $as_echo "$MAGIC_CMD" >&6; }
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8632 # Use C for the default configuration in the libtool script
8636 ac_cpp='$CPP $CPPFLAGS'
8637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642 # Source file extension for C test sources.
8645 # Object file extension for compiled C test sources.
8649 # Code to be used in simple compile tests
8650 lt_simple_compile_test_code="int some_variable = 0;"
8652 # Code to be used in simple link tests
8653 lt_simple_link_test_code='int main(){return(0);}'
8661 # If no C compiler was specified, use CC.
8664 # If no C compiler flags were specified, use CFLAGS.
8665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8667 # Allow CC to be a program name with arguments.
8670 # Save the default compiler, since it gets overwritten when the other
8671 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8672 compiler_DEFAULT=$CC
8674 # save warnings/boilerplate of simple test code
8675 ac_outfile=conftest.$ac_objext
8676 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8677 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8678 _lt_compiler_boilerplate=`cat conftest.err`
8681 ac_outfile=conftest.$ac_objext
8682 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8683 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684 _lt_linker_boilerplate=`cat conftest.err`
8689 ## There is no encapsulation within the following macros, do not change
8690 ## the running order or otherwise move them around unless you know exactly
8691 ## what you are doing...
8692 if test -n "$compiler"; then
8694 lt_prog_compiler_no_builtin_flag=
8696 if test "$GCC" = yes; then
8697 case $cc_basename in
8699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8755 lt_prog_compiler_wl=
8756 lt_prog_compiler_pic=
8757 lt_prog_compiler_static=
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8778 # see comment about AmigaOS4 .so support
8779 lt_prog_compiler_pic='-fPIC'
8782 # FIXME: we need at least 68020 code to build shared libraries, but
8783 # adding the `-m68020' flag to GCC prevents building anything better,
8785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8791 # PIC is the default for these OSes.
8794 mingw* | cygwin* | pw32* | os2* | cegcc*)
8795 # This hack is so that the source file can tell whether it is being
8796 # built for inclusion in a dll (and should export symbols for example).
8797 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8798 # (--disable-auto-import) libraries
8799 lt_prog_compiler_pic='-DDLL_EXPORT'
8802 darwin* | rhapsody*)
8803 # PIC is the default on this platform
8804 # Common symbols not allowed in MH_DYLIB files
8805 lt_prog_compiler_pic='-fno-common'
8809 # PIC is the default for Haiku.
8810 # The "-static" flag exists, but is broken.
8811 lt_prog_compiler_static=
8815 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8816 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8817 # sets the default TLS model and affects inlining.
8823 lt_prog_compiler_pic='-fPIC'
8829 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8830 # Instead, we relocate shared libraries at runtime.
8834 # Just because we use GCC doesn't mean we suddenly get shared libraries
8835 # on systems that don't support them.
8836 lt_prog_compiler_can_build_shared=no
8841 # QNX uses GNU C++, but need to define -shared option too, otherwise
8843 lt_prog_compiler_pic='-fPIC -shared'
8847 if test -d /usr/nec; then
8848 lt_prog_compiler_pic=-Kconform_pic
8853 lt_prog_compiler_pic='-fPIC'
8857 case $cc_basename in
8858 nvcc*) # Cuda Compiler Driver 2.2
8859 lt_prog_compiler_wl='-Xlinker '
8860 lt_prog_compiler_pic='-Xcompiler -fPIC'
8864 # PORTME Check for flag to pass linker flags through the system compiler.
8867 lt_prog_compiler_wl='-Wl,'
8868 if test "$host_cpu" = ia64; then
8869 # AIX 5 now supports IA64 processor
8870 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 lt_prog_compiler_pic='-DDLL_EXPORT'
8882 hpux9* | hpux10* | hpux11*)
8883 lt_prog_compiler_wl='-Wl,'
8884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8891 lt_prog_compiler_pic='+Z'
8894 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8895 lt_prog_compiler_static='${wl}-a ${wl}archive'
8898 irix5* | irix6* | nonstopux*)
8899 lt_prog_compiler_wl='-Wl,'
8900 # PIC (with -KPIC) is the default.
8901 lt_prog_compiler_static='-non_shared'
8904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8905 case $cc_basename in
8906 # old Intel for x86_64 which still supported -KPIC.
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-static'
8912 # icc used to be incompatible with GCC.
8913 # ICC 10 doesn't accept -KPIC any more.
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-fPIC'
8917 lt_prog_compiler_static='-static'
8919 # Lahey Fortran 8.1.
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='--shared'
8923 lt_prog_compiler_static='--static'
8925 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8926 # Portland Group compilers (*not* the Pentium gcc compiler,
8927 # which looks to be a dead project)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-fpic'
8930 lt_prog_compiler_static='-Bstatic'
8933 lt_prog_compiler_wl='-Wl,'
8934 # All Alpha code is PIC.
8935 lt_prog_compiler_static='-non_shared'
8937 xl* | bgxl* | bgf* | mpixl*)
8938 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-qpic'
8941 lt_prog_compiler_static='-qstaticlink'
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ F* | *Sun*Fortran*)
8946 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl=''
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8955 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8968 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 lt_prog_compiler_pic='-fPIC -shared'
8973 osf3* | osf4* | osf5*)
8974 lt_prog_compiler_wl='-Wl,'
8975 # All OSF/1 code is PIC.
8976 lt_prog_compiler_static='-non_shared'
8980 lt_prog_compiler_static='-non_shared'
8984 lt_prog_compiler_pic='-KPIC'
8985 lt_prog_compiler_static='-Bstatic'
8986 case $cc_basename in
8988 lt_prog_compiler_wl='-Qoption ld ';;
8990 lt_prog_compiler_wl='-Wl,';;
8995 lt_prog_compiler_wl='-Qoption ld '
8996 lt_prog_compiler_pic='-PIC'
8997 lt_prog_compiler_static='-Bstatic'
9000 sysv4 | sysv4.2uw2* | sysv4.3*)
9001 lt_prog_compiler_wl='-Wl,'
9002 lt_prog_compiler_pic='-KPIC'
9003 lt_prog_compiler_static='-Bstatic'
9007 if test -d /usr/nec ;then
9008 lt_prog_compiler_pic='-Kconform_pic'
9009 lt_prog_compiler_static='-Bstatic'
9013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_pic='-KPIC'
9016 lt_prog_compiler_static='-Bstatic'
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_can_build_shared=no
9025 lt_prog_compiler_pic='-pic'
9026 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_can_build_shared=no
9036 # For platforms which do not support PIC, -DPIC is meaningless:
9038 lt_prog_compiler_pic=
9041 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9045 $as_echo "$lt_prog_compiler_pic" >&6; }
9053 # Check to make sure the PIC flag actually works.
9055 if test -n "$lt_prog_compiler_pic"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9057 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9058 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 lt_cv_prog_compiler_pic_works=no
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>conftest.err)
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_pic_works=yes
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9092 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9094 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9095 case $lt_prog_compiler_pic in
9097 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9100 lt_prog_compiler_pic=
9101 lt_prog_compiler_can_build_shared=no
9112 # Check to make sure the static flag actually works.
9114 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9117 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9120 lt_cv_prog_compiler_static_works=no
9121 save_LDFLAGS="$LDFLAGS"
9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125 # The linker can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 if test -s conftest.err; then
9128 # Append any errors to the config.log.
9129 cat conftest.err 1>&5
9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_static_works=yes
9136 lt_cv_prog_compiler_static_works=yes
9140 LDFLAGS="$save_LDFLAGS"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9144 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9146 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9149 lt_prog_compiler_static=
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>out/conftest.err)
9182 cat out/conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9218 lt_cv_prog_compiler_c_o=no
9219 $RM -r conftest 2>/dev/null
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 lt_compiler_flag="-o out/conftest2.$ac_objext"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>out/conftest.err)
9237 cat out/conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_c_o=yes
9251 # SGI C++ compiler will create directory out/ii_files/ for
9252 # template instantiation
9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254 $RM out/* && rmdir out
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9266 hard_links="nottested"
9267 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9268 # do not overwrite the value of need_locks provided by the user
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9270 $as_echo_n "checking if we can lock with hard links... " >&6; }
9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275 ln conftest.a conftest.b 2>&5 || hard_links=no
9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9278 $as_echo "$hard_links" >&6; }
9279 if test "$hard_links" = no; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9281 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9294 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9297 allow_undefined_flag=
9298 always_export_symbols=no
9300 archive_expsym_cmds=
9301 compiler_needs_object=no
9302 enable_shared_with_static_runtimes=no
9303 export_dynamic_flag_spec=
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9305 hardcode_automatic=no
9307 hardcode_direct_absolute=no
9308 hardcode_libdir_flag_spec=
9309 hardcode_libdir_flag_spec_ld=
9310 hardcode_libdir_separator=
9312 hardcode_shlibpath_var=unsupported
9314 link_all_deplibs=unknown
9317 old_archive_from_new_cmds=
9318 old_archive_from_expsyms_cmds=
9319 thread_safe_flag_spec=
9320 whole_archive_flag_spec=
9321 # include_expsyms should be a list of space-separated symbols to be *always*
9322 # included in the symbol list
9324 # exclude_expsyms can be an extended regexp of symbols to exclude
9325 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9326 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9327 # as well as any symbol that contains `d'.
9328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9330 # platforms (ab)use it in PIC code, but their linkers get confused if
9331 # the symbol is explicitly referenced. Since portable code cannot
9332 # rely on this symbol name, it's probably fine to never include it in
9333 # preloaded symbol tables.
9334 # Exclude shared library initialization/finalization symbols.
9335 extract_expsyms_cmds=
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9340 # When not using gcc, we currently assume that we are using
9341 # Microsoft Visual C++.
9342 if test "$GCC" != yes; then
9347 # we just hope/assume this is gcc and not c89 (= MSVC++)
9357 # On some targets, GNU ld is compatible enough with the native linker
9358 # that we're better off using the native interface for both.
9359 lt_use_gnu_ld_interface=no
9360 if test "$with_gnu_ld" = yes; then
9363 # The AIX port of GNU ld has always aspired to compatibility
9364 # with the native linker. However, as the warning in the GNU ld
9365 # block says, versions before 2.19.5* couldn't really create working
9366 # shared libraries, regardless of the interface used.
9367 case `$LD -v 2>&1` in
9368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9372 lt_use_gnu_ld_interface=yes
9377 lt_use_gnu_ld_interface=yes
9382 if test "$lt_use_gnu_ld_interface" = yes; then
9383 # If archive_cmds runs LD, not CC, wlarc should be empty
9386 # Set some defaults for GNU ld with shared library support. These
9387 # are reset later if shared libraries are not supported. Putting them
9388 # here allows them to be overridden if necessary.
9389 runpath_var=LD_RUN_PATH
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391 export_dynamic_flag_spec='${wl}--export-dynamic'
9392 # ancient GNU ld didn't support --whole-archive et. al.
9393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9394 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9396 whole_archive_flag_spec=
9398 supports_anon_versioning=no
9399 case `$LD -v 2>&1` in
9400 *GNU\ gold*) supports_anon_versioning=yes ;;
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9404 *\ 2.11.*) ;; # other 2.11 versions
9405 *) supports_anon_versioning=yes ;;
9408 # See if GNU ld supports shared libraries.
9411 # On AIX/PPC, the GNU linker is very broken
9412 if test "$host_cpu" != ia64; then
9416 *** Warning: the GNU linker, at least up to release 2.19, is reported
9417 *** to be unable to reliably create shared libraries on AIX.
9418 *** Therefore, libtool is disabling shared libraries support. If you
9419 *** really care for shared libraries, you may want to install binutils
9420 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9421 *** You will then need to restart the configuration process.
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 allow_undefined_flag=unsupported
9445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9446 # support --undefined. This deserves some investigation. FIXME
9447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 cygwin* | mingw* | pw32* | cegcc*)
9454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 export_dynamic_flag_spec='${wl}--export-all-symbols'
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=no
9460 enable_shared_with_static_runtimes=yes
9461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 link_all_deplibs=yes
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9490 # Instead, shared libraries are loaded at an image base (0x10000000 by
9491 # default) and relocated if they conflict, which is a slow very memory
9492 # consuming and fragmenting process. To avoid this, we pick a random,
9493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9496 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'
9499 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9501 if test "$host_os" = linux-dietlibc; then
9502 case $cc_basename in
9503 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9506 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9507 && test "$tmp_diet" = no
9510 tmp_sharedflag='-shared'
9511 case $cc_basename,$host_cpu in
9512 pgcc*) # Portland Group C compiler
9513 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'
9514 tmp_addflag=' $pic_flag'
9516 pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group f77 and f90 compilers
9518 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'
9519 tmp_addflag=' $pic_flag -Mnomain' ;;
9520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9521 tmp_addflag=' -i_dynamic' ;;
9522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9523 tmp_addflag=' -i_dynamic -nofor_main' ;;
9524 ifc* | ifort*) # Intel Fortran compiler
9525 tmp_addflag=' -nofor_main' ;;
9526 lf95*) # Lahey Fortran 8.1
9527 whole_archive_flag_spec=
9528 tmp_sharedflag='--shared' ;;
9529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9530 tmp_sharedflag='-qmkshrobj'
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 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'
9534 compiler_needs_object=yes
9537 case `$CC -V 2>&1 | sed 5q` in
9538 *Sun\ C*) # Sun C 5.9
9539 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'
9540 compiler_needs_object=yes
9541 tmp_sharedflag='-G' ;;
9542 *Sun\ F*) # Sun Fortran 8.3
9543 tmp_sharedflag='-G' ;;
9545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 if test "x$supports_anon_versioning" = xyes; then
9548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9554 case $cc_basename in
9555 xlf* | bgf* | bgxlf* | mpixlf*)
9556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9558 hardcode_libdir_flag_spec=
9559 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9560 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9561 if test "x$supports_anon_versioning" = xyes; then
9562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9564 echo "local: *; };" >> $output_objdir/$libname.ver~
9565 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9576 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9589 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9590 *** create shared libraries on Solaris systems. Therefore, libtool
9591 *** is disabling shared libraries support. We urge you to upgrade GNU
9592 *** binutils to release 2.9.1 or newer. Another option is to modify
9593 *** your PATH or compiler configuration so that the native linker is
9594 *** used, and then restart.
9597 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9606 case `$LD -v 2>&1` in
9607 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9611 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9612 *** reliably create shared libraries on SCO systems. Therefore, libtool
9613 *** is disabling shared libraries support. We urge you to upgrade GNU
9614 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9615 *** your PATH or compiler configuration so that the native linker is
9616 *** used, and then restart.
9621 # For security reasons, it is highly recommended that you always
9622 # use absolute paths for naming shared libraries, and exclude the
9623 # DT_RUNPATH tag from executables and libraries. But doing so
9624 # requires that you compile everything twice, which is a pain.
9625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_shlibpath_var=no
9644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9653 if test "$ld_shlibs" = no; then
9655 hardcode_libdir_flag_spec=
9656 export_dynamic_flag_spec=
9657 whole_archive_flag_spec=
9660 # PORTME fill in a description of your system's linker (not GNU ld)
9663 allow_undefined_flag=unsupported
9664 always_export_symbols=yes
9665 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'
9666 # Note: this linker hardcodes the directories in LIBPATH if there
9667 # are no directories specified by -L.
9668 hardcode_minus_L=yes
9669 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9670 # Neither direct hardcoding nor static linking is supported with a
9672 hardcode_direct=unsupported
9677 if test "$host_cpu" = ia64; then
9678 # On IA64, the linker does run time linking by default, so we don't
9679 # have to do anything special.
9680 aix_use_runtimelinking=no
9681 exp_sym_flag='-Bexport'
9684 # If we're using GNU nm, then we don't want the "-C" option.
9685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9686 # Also, AIX nm treats weak defined symbols like other global
9687 # defined symbols, whereas GNU nm marks them as "W".
9688 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9689 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'
9691 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'
9693 aix_use_runtimelinking=no
9695 # Test if we are trying to use run time linking or normal
9696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9697 # need to do runtime linking.
9698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9699 for ld_flag in $LDFLAGS; do
9700 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9701 aix_use_runtimelinking=yes
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9720 hardcode_direct_absolute=yes
9721 hardcode_libdir_separator=':'
9722 link_all_deplibs=yes
9723 file_list_spec='${wl}-f,'
9725 if test "$GCC" = yes; then
9726 case $host_os in aix4.[012]|aix4.[012].*)
9727 # We only want to do this on AIX 4.2 and lower, the check
9728 # below for broken collect2 doesn't work under 4.3+
9729 collect2name=`${CC} -print-prog-name=collect2`
9730 if test -f "$collect2name" &&
9731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9733 # We have reworked collect2
9736 # We have old collect2
9737 hardcode_direct=unsupported
9738 # It fails to find uninstalled libraries when the uninstalled
9739 # path is not listed in the libpath. Setting hardcode_minus_L
9740 # to unsupported forces relinking
9741 hardcode_minus_L=yes
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_libdir_separator=
9747 shared_flag='-shared'
9748 if test "$aix_use_runtimelinking" = yes; then
9749 shared_flag="$shared_flag "'${wl}-G'
9753 if test "$host_cpu" = ia64; then
9754 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9755 # chokes on -Wl,-G. The following line is correct:
9758 if test "$aix_use_runtimelinking" = yes; then
9759 shared_flag='${wl}-G'
9761 shared_flag='${wl}-bM:SRE'
9766 export_dynamic_flag_spec='${wl}-bexpall'
9767 # It seems that -bexpall does not export symbols beginning with
9768 # underscore (_), so it is better to generate a list of symbols to export.
9769 always_export_symbols=yes
9770 if test "$aix_use_runtimelinking" = yes; then
9771 # Warning - without using the other runtime loading flags (-brtl),
9772 # -berok will link without error, but may produce a broken library.
9773 allow_undefined_flag='-berok'
9774 # Determine the default libpath from the value encoded in an
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9787 if ac_fn_c_try_link "$LINENO"; then :
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9796 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$aix_libpath"; then
9799 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9807 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"
9809 if test "$host_cpu" = ia64; then
9810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9811 allow_undefined_flag="-z nodefs"
9812 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"
9814 # Determine the default libpath from the value encoded in an
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9827 if ac_fn_c_try_link "$LINENO"; then :
9829 lt_aix_libpath_sed='
9830 /Import File Strings/,/^$/ {
9836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837 # Check for a 64-bit object if we didn't find anything.
9838 if test -z "$aix_libpath"; then
9839 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9842 rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9847 # Warning - without using the other run time loading flags,
9848 # -berok will link without error, but may produce a broken library.
9849 no_undefined_flag=' ${wl}-bernotok'
9850 allow_undefined_flag=' ${wl}-berok'
9851 if test "$with_gnu_ld" = yes; then
9852 # We only use this code for GNU lds that support --whole-archive.
9853 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9855 # Exported symbols can be pulled into shared objects from archives
9856 whole_archive_flag_spec='$convenience'
9858 archive_cmds_need_lc=yes
9859 # This is similar to how AIX traditionally builds its shared libraries.
9860 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'
9868 # see comment about AmigaOS4 .so support
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 archive_expsym_cmds=''
9873 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)'
9874 hardcode_libdir_flag_spec='-L$libdir'
9875 hardcode_minus_L=yes
9881 export_dynamic_flag_spec=-rdynamic
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9893 # Tell ltmain to make .dll files, not .so files.
9895 # FIXME: Setting linknames here is a bad hack.
9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 fix_srcfile_path='`cygpath -w "$srcfile"`'
9902 enable_shared_with_static_runtimes=yes
9905 darwin* | rhapsody*)
9908 archive_cmds_need_lc=no
9910 hardcode_automatic=yes
9911 hardcode_shlibpath_var=unsupported
9912 if test "$lt_cv_ld_force_load" = "yes"; then
9913 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\"`'
9915 whole_archive_flag_spec=''
9917 link_all_deplibs=yes
9918 allow_undefined_flag="$_lt_dar_allow_undefined"
9919 case $cc_basename in
9920 ifort*) _lt_dar_can_shared=yes ;;
9921 *) _lt_dar_can_shared=$GCC ;;
9923 if test "$_lt_dar_can_shared" = "yes"; then
9924 output_verbose_link_cmd=func_echo_all
9925 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9926 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9927 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}"
9928 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}"
9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_shlibpath_var=no
9942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9943 # support. Future versions do this automatically, but an explicit c++rt0.o
9944 # does not break anything, and helps significantly (at the cost of a little
9947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9948 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_shlibpath_var=no
9953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9962 freebsd* | dragonfly*)
9963 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_shlibpath_var=no
9970 if test "$GCC" = yes; then
9971 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9973 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'
9975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9976 hardcode_libdir_separator=:
9979 # hardcode_minus_L: Not really in the search PATH,
9980 # but as the default location of the library.
9981 hardcode_minus_L=yes
9982 export_dynamic_flag_spec='${wl}-E'
9986 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9987 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 if test "$with_gnu_ld" = no; then
9992 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_flag_spec_ld='+b $libdir'
9994 hardcode_libdir_separator=:
9996 hardcode_direct_absolute=yes
9997 export_dynamic_flag_spec='${wl}-E'
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10005 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10008 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 # Older versions of the 11.00 compiler do not understand -b yet
10028 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10030 $as_echo_n "checking if $CC understands -b... " >&6; }
10031 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10034 lt_cv_prog_compiler__b=no
10035 save_LDFLAGS="$LDFLAGS"
10036 LDFLAGS="$LDFLAGS -b"
10037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10039 # The linker can only warn and ignore the option if not recognized
10040 # So say no if there are warnings
10041 if test -s conftest.err; then
10042 # Append any errors to the config.log.
10043 cat conftest.err 1>&5
10044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler__b=yes
10050 lt_cv_prog_compiler__b=yes
10054 LDFLAGS="$save_LDFLAGS"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10058 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10060 if test x"$lt_cv_prog_compiler__b" = xyes; then
10061 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10069 if test "$with_gnu_ld" = no; then
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071 hardcode_libdir_separator=:
10076 hardcode_shlibpath_var=no
10079 hardcode_direct=yes
10080 hardcode_direct_absolute=yes
10081 export_dynamic_flag_spec='${wl}-E'
10083 # hardcode_minus_L: Not really in the search PATH,
10084 # but as the default location of the library.
10085 hardcode_minus_L=yes
10091 irix5* | irix6* | nonstopux*)
10092 if test "$GCC" = yes; then
10093 archive_cmds='$CC -shared $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'
10094 # Try to use the -exported_symbol ld option, if it does not
10095 # work, assume that -exports_file does not work either and
10096 # implicitly export all symbols.
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 archive_expsym_cmds='$CC -shared $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'
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 LDFLAGS="$save_LDFLAGS"
10111 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'
10112 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'
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10118 link_all_deplibs=yes
10122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10127 hardcode_libdir_flag_spec='-R$libdir'
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_direct=yes
10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator=:
10137 hardcode_shlibpath_var=no
10144 if test -f /usr/libexec/ld.so; then
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_direct_absolute=yes
10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152 export_dynamic_flag_spec='${wl}-E'
10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-R$libdir'
10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10171 hardcode_libdir_flag_spec='-L$libdir'
10172 hardcode_minus_L=yes
10173 allow_undefined_flag=unsupported
10174 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'
10175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10179 if test "$GCC" = yes; then
10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10181 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'
10183 allow_undefined_flag=' -expect_unresolved \*'
10184 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'
10186 archive_cmds_need_lc='no'
10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10188 hardcode_libdir_separator=:
10191 osf4* | osf5*) # as osf3* with the addition of -msym flag
10192 if test "$GCC" = yes; then
10193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10194 archive_cmds='$CC -shared${allow_undefined_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'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 allow_undefined_flag=' -expect_unresolved \*'
10198 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'
10199 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~
10200 $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'
10202 # Both c and cxx compiler support -rpath directly
10203 hardcode_libdir_flag_spec='-rpath $libdir'
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_separator=:
10210 no_undefined_flag=' -z defs'
10211 if test "$GCC" = yes; then
10213 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10217 case `$CC -V 2>&1` in
10220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_shlibpath_var=no
10235 solaris2.[0-5] | solaris2.[0-5].*) ;;
10237 # The compiler driver will combine and reorder linker options,
10238 # but understands `-z linker_flag'. GCC discards it without `$wl',
10239 # but is careful enough not to reorder.
10240 # Supported since Solaris 2.6 (maybe 2.5.1?)
10241 if test "$GCC" = yes; then
10242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10248 link_all_deplibs=yes
10252 if test "x$host_vendor" = xsequent; then
10253 # Use $CC to link under sequent, because it throws in some extra .o
10254 # files that make .init and .fini sections work.
10255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 hardcode_direct=yes
10261 hardcode_minus_L=yes
10262 hardcode_shlibpath_var=no
10266 case $host_vendor in
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_direct=yes # is this really true???
10272 ## LD is ld it makes a PLAMLIB
10273 ## CC just makes a GrossModule.
10274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10275 reload_cmds='$CC -r -o $output$reload_objs'
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10283 runpath_var='LD_RUN_PATH'
10284 hardcode_shlibpath_var=no
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_shlibpath_var=no
10290 export_dynamic_flag_spec='-Bexport'
10294 if test -d /usr/nec; then
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 runpath_var=LD_RUN_PATH
10298 hardcode_runpath_var=yes
10303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10304 no_undefined_flag='${wl}-z,text'
10305 archive_cmds_need_lc=no
10306 hardcode_shlibpath_var=no
10307 runpath_var='LD_RUN_PATH'
10309 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 sysv5* | sco3.2v5* | sco5v6*)
10319 # Note: We can NOT use -z defs as we might desire, because we do not
10320 # link with -lc, and that would cause any symbols used from libc to
10321 # always be unresolved, which means just about no library would
10322 # ever link correctly. If we're not using GNU ld we use -z text
10323 # though, which does catch some bad symbols but isn't as heavy-handed
10325 no_undefined_flag='${wl}-z,text'
10326 allow_undefined_flag='${wl}-z,nodefs'
10327 archive_cmds_need_lc=no
10328 hardcode_shlibpath_var=no
10329 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10330 hardcode_libdir_separator=':'
10331 link_all_deplibs=yes
10332 export_dynamic_flag_spec='${wl}-Bexport'
10333 runpath_var='LD_RUN_PATH'
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_shlibpath_var=no
10355 if test x$host_vendor = xsni; then
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10358 export_dynamic_flag_spec='${wl}-Blargedynsym'
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10365 $as_echo "$ld_shlibs" >&6; }
10366 test "$ld_shlibs" = no && can_build_shared=no
10368 with_gnu_ld=$with_gnu_ld
10385 # Do we need to explicitly link libc?
10387 case "x$archive_cmds_need_lc" in
10389 # Assume -lc should be added
10390 archive_cmds_need_lc=yes
10392 if test "$enable_shared" = yes && test "$GCC" = yes; then
10393 case $archive_cmds in
10395 # FIXME: we may have to deal with multi-command sequences.
10398 # Test whether the compiler implicitly links with -lc since on some
10399 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10400 # to ld, don't add -lc before -lgcc.
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10403 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10410 (eval $ac_compile) 2>&5
10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10413 test $ac_status = 0; } 2>conftest.err; then
10416 libobjs=conftest.$ac_objext
10418 wl=$lt_prog_compiler_wl
10419 pic_flag=$lt_prog_compiler_pic
10425 lt_save_allow_undefined_flag=$allow_undefined_flag
10426 allow_undefined_flag=
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }
10433 lt_cv_archive_cmds_need_lc=no
10435 lt_cv_archive_cmds_need_lc=yes
10437 allow_undefined_flag=$lt_save_allow_undefined_flag
10439 cat conftest.err 1>&5
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10445 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10610 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10612 if test "$GCC" = yes; then
10614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10615 *) lt_awk_arg="/^libraries:/" ;;
10618 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10619 *) lt_sed_strip_eq="s,=/,/,g" ;;
10621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10622 case $lt_search_path_spec in
10624 # if the path contains ";" then we assume it to be the separator
10625 # otherwise default to the standard path separator (i.e. ":") - it is
10626 # assumed that no part of a normal pathname contains ";" but that should
10627 # okay in the real world where ";" in dirpaths is itself problematic.
10628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10631 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10634 # Ok, now we have the path, separated by spaces, we can step through it
10635 # and add multilib dir if necessary.
10636 lt_tmp_lt_search_path_spec=
10637 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10638 for lt_sys_path in $lt_search_path_spec; do
10639 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10642 test -d "$lt_sys_path" && \
10643 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10646 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10647 BEGIN {RS=" "; FS="/|\n";} {
10650 for (lt_i = NF; lt_i > 0; lt_i--) {
10651 if ($lt_i != "" && $lt_i != ".") {
10652 if ($lt_i == "..") {
10655 if (lt_count == 0) {
10656 lt_foo="/" $lt_i lt_foo;
10663 if (lt_foo != "") { lt_freq[lt_foo]++; }
10664 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10666 # AWK program above erroneously prepends '/' to C:/dos/paths
10669 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10670 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10672 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10676 library_names_spec=
10677 libname_spec='lib$name'
10681 postuninstall_cmds=
10685 shlibpath_overrides_runpath=unknown
10687 dynamic_linker="$host_os ld.so"
10688 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10689 need_lib_prefix=unknown
10690 hardcode_into_libs=no
10692 # when you set need_version to no, make sure it does not cause -set_version
10693 # flags to be left without arguments
10694 need_version=unknown
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10700 shlibpath_var=LIBPATH
10702 # AIX 3 has no versioning support, so we append a major version to the name.
10703 soname_spec='${libname}${release}${shared_ext}$major'
10710 hardcode_into_libs=yes
10711 if test "$host_cpu" = ia64; then
10712 # AIX 5 supports IA64
10713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10714 shlibpath_var=LD_LIBRARY_PATH
10716 # With GCC up to 2.95.x, collect2 would create an import file
10717 # for dependence libraries. The import file would start with
10718 # the line `#! .'. This would cause the generated library to
10719 # depend on `.', always an invalid library. This was fixed in
10720 # development snapshots of GCC prior to 3.0.
10722 aix4 | aix4.[01] | aix4.[01].*)
10723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10725 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10728 can_build_shared=no
10732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10733 # soname into executable. Probably we can add versioning support to
10734 # collect2, so additional links can be useful in future.
10735 if test "$aix_use_runtimelinking" = yes; then
10736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10737 # instead of lib<name>.a to let people know that these are not
10738 # typical AIX shared libraries.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 # We preserve .a as extension for shared libraries through AIX4.2
10742 # and later when we are not doing run time linking.
10743 library_names_spec='${libname}${release}.a $libname.a'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LIBPATH
10753 # Since July 2007 AmigaOS4 officially supports .so libraries.
10754 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 library_names_spec='$libname.ixlibrary $libname.a'
10759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10760 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'
10766 library_names_spec='${libname}${shared_ext}'
10767 dynamic_linker="$host_os ld.so"
10768 shlibpath_var=LIBRARY_PATH
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10780 # the default ld.so.conf also contains /usr/contrib/lib and
10781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10782 # libtool to hard-code these into programs
10785 cygwin* | mingw* | pw32* | cegcc*)
10786 version_type=windows
10791 case $GCC,$host_os in
10792 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10793 library_names_spec='$libname.dll.a'
10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10795 postinstall_cmds='base_file=`basename \${file}`~
10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10797 dldir=$destdir/`dirname \$dlpath`~
10798 test -d \$dldir || mkdir -p \$dldir~
10799 $install_prog $dir/$dlname \$dldir/$dlname~
10800 chmod a+x \$dldir/$dlname~
10801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10805 dlpath=$dir/\$dldll~
10807 shlibpath_overrides_runpath=yes
10811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10817 # MinGW DLLs use traditional 'lib' prefix
10818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821 # pw32 DLLs use 'pw' prefix rather than 'lib'
10822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10831 dynamic_linker='Win32 ld.exe'
10832 # FIXME: first we should search . and the directory the executable is in
10836 darwin* | rhapsody*)
10837 dynamic_linker="$host_os dyld"
10838 version_type=darwin
10841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842 soname_spec='${libname}${release}${major}$shared_ext'
10843 shlibpath_overrides_runpath=yes
10844 shlibpath_var=DYLD_LIBRARY_PATH
10845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LD_LIBRARY_PATH
10860 freebsd* | dragonfly*)
10861 # DragonFly does not have aout. When/if they implement a new
10862 # versioning mechanism, adjust this.
10863 if test -x /usr/bin/objformat; then
10864 objformat=`/usr/bin/objformat`
10867 freebsd[123]*) objformat=aout ;;
10868 *) objformat=elf ;;
10871 version_type=freebsd-$objformat
10872 case $version_type in
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10883 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10888 freebsd3.[01]* | freebsdelf3.[01]*)
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10897 *) # from 4.6 on, and DragonFly
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 hardcode_into_libs=yes
10918 dynamic_linker="$host_os runtime_loader"
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10924 hardcode_into_libs=yes
10927 hpux9* | hpux10* | hpux11*)
10928 # Give a soname corresponding to the major version so that dld.sl refuses to
10929 # link against other versions.
10936 hardcode_into_libs=yes
10937 dynamic_linker="$host_os dld.so"
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 if test "X$HPUX_IA64_MODE" = X32; then
10943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970 postinstall_cmds='chmod 555 $lib'
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10987 irix5* | irix6* | nonstopux*)
10989 nonstopux*) version_type=nonstopux ;;
10991 if test "$lt_cv_prog_gnu_ld" = yes; then
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021 hardcode_into_libs=yes
11024 # No shared lib support for Linux oldld, aout, or coff.
11025 linux*oldld* | linux*aout* | linux*coff*)
11029 # This must be Linux ELF.
11030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11040 # Some binutils ld are patched to set DT_RUNPATH
11041 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 lt_cv_shlibpath_overrides_runpath=no
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11062 lt_cv_shlibpath_overrides_runpath=yes
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LDFLAGS=$save_LDFLAGS
11068 libdir=$save_libdir
11072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074 # This implies no fast_install, which is unacceptable.
11075 # Some rework will be needed to allow for fast_install
11076 # before this can be enabled.
11077 hardcode_into_libs=yes
11079 # Append ld.so.conf contents to the search path
11080 if test -f /etc/ld.so.conf; then
11081 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' ' '`
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 dynamic_linker='ldqnx.so'
11133 sys_lib_dlsearch_path_spec="/usr/lib"
11135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11138 *) need_version=no ;;
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145 openbsd2.[89] | openbsd2.[89].*)
11146 shlibpath_overrides_runpath=no
11149 shlibpath_overrides_runpath=yes
11153 shlibpath_overrides_runpath=yes
11158 libname_spec='$name'
11161 library_names_spec='$libname${shared_ext} $libname.a'
11162 dynamic_linker='OS/2 ld.exe'
11163 shlibpath_var=LIBPATH
11166 osf3* | osf4* | osf5*)
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 # ldd complains unless libraries are executable
11191 postinstall_cmds='chmod +x $lib'
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 if test "$with_gnu_ld" = yes; then
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 case $host_vendor in
11213 shlibpath_overrides_runpath=no
11215 runpath_var=LD_RUN_PATH
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11230 if test -d /usr/nec ;then
11232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233 soname_spec='$libname${shared_ext}.$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239 version_type=freebsd-elf
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 if test "$with_gnu_ld" = yes; then
11248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11257 sys_lib_dlsearch_path_spec='/usr/lib'
11261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283 $as_echo "$dynamic_linker" >&6; }
11284 test "$dynamic_linker" = no && can_build_shared=no
11286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287 if test "$GCC" = yes; then
11288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392 if test -n "$hardcode_libdir_flag_spec" ||
11393 test -n "$runpath_var" ||
11394 test "X$hardcode_automatic" = "Xyes" ; then
11396 # We can hardcode non-existent directories.
11397 if test "$hardcode_direct" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402 test "$hardcode_minus_L" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action=relink
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action=immediate
11410 # We cannot hardcode anything, or else we can only hardcode existing
11412 hardcode_action=unsupported
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415 $as_echo "$hardcode_action" >&6; }
11417 if test "$hardcode_action" = relink ||
11418 test "$inherit_rpath" = yes; then
11419 # Fast installation is not supported
11420 enable_fast_install=no
11421 elif test "$shlibpath_overrides_runpath" = yes ||
11422 test "$enable_shared" = no; then
11423 # Fast installation is not necessary
11424 enable_fast_install=needless
11432 if test "x$enable_dlopen" != xyes; then
11433 enable_dlopen=unknown
11434 enable_dlopen_self=unknown
11435 enable_dlopen_self_static=unknown
11442 lt_cv_dlopen="load_add_on"
11444 lt_cv_dlopen_self=yes
11447 mingw* | pw32* | cegcc*)
11448 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen="dlopen"
11458 # if libdl is installed we need to link against it
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11464 ac_check_lib_save_LIBS=$LIBS
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dl_dlopen=yes
11487 ac_cv_lib_dl_dlopen=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 lt_cv_dlopen="dyld"
11501 lt_cv_dlopen_self=yes
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509 if test "x$ac_cv_func_shl_load" = x""yes; then :
11510 lt_cv_dlopen="shl_load"
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11514 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS=$LIBS
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11532 return shl_load ();
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dld_shl_load=yes
11540 ac_cv_lib_dld_shl_load=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552 if test "x$ac_cv_func_dlopen" = x""yes; then :
11553 lt_cv_dlopen="dlopen"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11560 ac_check_lib_save_LIBS=$LIBS
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11583 ac_cv_lib_dl_dlopen=no
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lsvld $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_svld_dlopen=yes
11622 ac_cv_lib_svld_dlopen=no
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11638 ac_check_lib_save_LIBS=$LIBS
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11653 return dld_link ();
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dld_dld_link=yes
11661 ac_cv_lib_dld_dld_link=no
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11691 if test "x$lt_cv_dlopen" != xno; then
11697 case $lt_cv_dlopen in
11699 save_CPPFLAGS="$CPPFLAGS"
11700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702 save_LDFLAGS="$LDFLAGS"
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710 if test "${lt_cv_dlopen_self+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11713 if test "$cross_compiling" = yes; then :
11714 lt_cv_dlopen_self=cross
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
11719 #line 11719 "configure"
11720 #include "confdefs.h"
11729 # define LT_DLGLOBAL RTLD_GLOBAL
11732 # define LT_DLGLOBAL DL_GLOBAL
11734 # define LT_DLGLOBAL 0
11738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740 #ifndef LT_DLLAZY_OR_NOW
11742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11745 # define LT_DLLAZY_OR_NOW DL_LAZY
11748 # define LT_DLLAZY_OR_NOW RTLD_NOW
11751 # define LT_DLLAZY_OR_NOW DL_NOW
11753 # define LT_DLLAZY_OR_NOW 0
11760 /* When -fvisbility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763 void fnord () __attribute__((visibility("default")));
11766 void fnord () { int i=42; }
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11780 /* dlclose (self); */
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789 (eval $ac_link) 2>&5
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11793 (./conftest; exit; ) >&5 2>/dev/null
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810 $as_echo "$lt_cv_dlopen_self" >&6; }
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
11825 #line 11825 "configure"
11826 #include "confdefs.h"
11835 # define LT_DLGLOBAL RTLD_GLOBAL
11838 # define LT_DLGLOBAL DL_GLOBAL
11840 # define LT_DLGLOBAL 0
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11851 # define LT_DLLAZY_OR_NOW DL_LAZY
11854 # define LT_DLLAZY_OR_NOW RTLD_NOW
11857 # define LT_DLLAZY_OR_NOW DL_NOW
11859 # define LT_DLLAZY_OR_NOW 0
11866 /* When -fvisbility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869 void fnord () __attribute__((visibility("default")));
11872 void fnord () { int i=42; }
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11886 /* dlclose (self); */
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11919 CPPFLAGS="$save_CPPFLAGS"
11920 LDFLAGS="$save_LDFLAGS"
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 $as_echo "yes" >&6; }
11962 # FIXME - insert some real tests, host_os isn't really good enough
11965 if test -n "$STRIP" ; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11993 # Report which library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997 $as_echo "$can_build_shared" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000 $as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test "$can_build_shared" = "no" && enable_shared=no
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12007 test "$enable_shared" = yes && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016 test "$enable_shared" = yes && enable_static=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021 $as_echo "$enable_shared" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024 $as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test "$enable_shared" = yes || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028 $as_echo "$enable_static" >&6; }
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12042 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044 (test "X$CXX" != "Xg++"))) ; then
12046 ac_cpp='$CXXCPP $CPPFLAGS'
12047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052 if test -z "$CXXCPP"; then
12053 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12056 # Double quotes because CXXCPP needs to be expanded
12057 for CXXCPP in "$CXX -E" "/lib/cpp"
12059 ac_preproc_ok=false
12060 for ac_cxx_preproc_warn_flag in '' yes
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 # include <limits.h>
12073 # include <assert.h>
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12080 # Broken: fails on valid input.
12083 rm -f conftest.err conftest.$ac_ext
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 #include <ac_nonexistent.h>
12091 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12095 # Passes both tests.
12099 rm -f conftest.err conftest.$ac_ext
12102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103 rm -f conftest.err conftest.$ac_ext
12104 if $ac_preproc_ok; then :
12109 ac_cv_prog_CXXCPP=$CXXCPP
12112 CXXCPP=$ac_cv_prog_CXXCPP
12114 ac_cv_prog_CXXCPP=$CXXCPP
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117 $as_echo "$CXXCPP" >&6; }
12118 ac_preproc_ok=false
12119 for ac_cxx_preproc_warn_flag in '' yes
12121 # Use a header file that comes with gcc, so configuring glibc
12122 # with a fresh cross-compiler works.
12123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 # <limits.h> exists even on freestanding compilers.
12125 # On the NeXT, cc -E runs the code through the compiler's parser,
12126 # not just through cpp. "Syntax error" is here to catch this case.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 # include <limits.h>
12132 # include <assert.h>
12136 if ac_fn_cxx_try_cpp "$LINENO"; then :
12139 # Broken: fails on valid input.
12142 rm -f conftest.err conftest.$ac_ext
12144 # OK, works on sane cases. Now check whether nonexistent headers
12145 # can be detected and how.
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #include <ac_nonexistent.h>
12150 if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: success on invalid input.
12154 # Passes both tests.
12158 rm -f conftest.err conftest.$ac_ext
12161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162 rm -f conftest.err conftest.$ac_ext
12163 if $ac_preproc_ok; then :
12166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12169 See \`config.log' for more details." "$LINENO" 5; }
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179 _lt_caught_CXX_error=yes
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188 archive_cmds_need_lc_CXX=no
12189 allow_undefined_flag_CXX=
12190 always_export_symbols_CXX=no
12191 archive_expsym_cmds_CXX=
12192 compiler_needs_object_CXX=no
12193 export_dynamic_flag_spec_CXX=
12194 hardcode_direct_CXX=no
12195 hardcode_direct_absolute_CXX=no
12196 hardcode_libdir_flag_spec_CXX=
12197 hardcode_libdir_flag_spec_ld_CXX=
12198 hardcode_libdir_separator_CXX=
12199 hardcode_minus_L_CXX=no
12200 hardcode_shlibpath_var_CXX=unsupported
12201 hardcode_automatic_CXX=no
12202 inherit_rpath_CXX=no
12204 module_expsym_cmds_CXX=
12205 link_all_deplibs_CXX=unknown
12206 old_archive_cmds_CXX=$old_archive_cmds
12207 reload_flag_CXX=$reload_flag
12208 reload_cmds_CXX=$reload_cmds
12209 no_undefined_flag_CXX=
12210 whole_archive_flag_spec_CXX=
12211 enable_shared_with_static_runtimes_CXX=no
12213 # Source file extension for C++ test sources.
12216 # Object file extension for compiled C++ test sources.
12220 # No sense in running all these tests if we already determined that
12221 # the CXX compiler isn't working. Some variables (like enable_shared)
12222 # are currently assumed to apply to all compilers on this platform,
12223 # and will be corrupted by setting them based on a non-working compiler.
12224 if test "$_lt_caught_CXX_error" != yes; then
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code="int some_variable = 0;"
12228 # Code to be used in simple link tests
12229 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12238 # If no C compiler was specified, use CC.
12241 # If no C compiler flags were specified, use CFLAGS.
12242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244 # Allow CC to be a program name with arguments.
12248 # save warnings/boilerplate of simple test code
12249 ac_outfile=conftest.$ac_objext
12250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252 _lt_compiler_boilerplate=`cat conftest.err`
12255 ac_outfile=conftest.$ac_objext
12256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_linker_boilerplate=`cat conftest.err`
12262 # Allow CC to be a program name with arguments.
12267 lt_save_with_gnu_ld=$with_gnu_ld
12268 lt_save_path_LD=$lt_cv_path_LD
12269 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12270 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272 $as_unset lt_cv_prog_gnu_ld
12274 if test -n "${lt_cv_path_LDCXX+set}"; then
12275 lt_cv_path_LD=$lt_cv_path_LDCXX
12277 $as_unset lt_cv_path_LD
12279 test -z "${LDCXX+set}" || LD=$LDCXX
12283 for cc_temp in $compiler""; do
12285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12294 if test -n "$compiler"; then
12295 # We don't want -fno-exception when compiling C++ code, so set the
12296 # no_builtin_flag separately
12297 if test "$GXX" = yes; then
12298 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12300 lt_prog_compiler_no_builtin_flag_CXX=
12303 if test "$GXX" = yes; then
12304 # Set up default GNU C++ configuration
12308 # Check whether --with-gnu-ld was given.
12309 if test "${with_gnu_ld+set}" = set; then :
12310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12316 if test "$GCC" = yes; then
12317 # Check if gcc -print-prog-name=ld gives a path.
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12319 $as_echo_n "checking for ld used by $CC... " >&6; }
12322 # gcc leaves a trailing carriage return which upsets mingw
12323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12328 # Accept absolute paths.
12330 re_direlt='/[^/][^/]*/\.\./'
12331 # Canonicalize the pathname of ld
12332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12336 test -z "$LD" && LD="$ac_prog"
12339 # If it fails, then pretend we aren't using GCC.
12343 # If it is relative, then search for the first ld in PATH.
12344 with_gnu_ld=unknown
12347 elif test "$with_gnu_ld" = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12349 $as_echo_n "checking for GNU ld... " >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12352 $as_echo_n "checking for non-GNU ld... " >&6; }
12354 if test "${lt_cv_path_LD+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12357 if test -z "$LD"; then
12358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12359 for ac_dir in $PATH; do
12361 test -z "$ac_dir" && ac_dir=.
12362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12363 lt_cv_path_LD="$ac_dir/$ac_prog"
12364 # Check to see if the program is GNU ld. I'd rather use --version,
12365 # but apparently some variants of GNU ld only accept -v.
12366 # Break only if it was the GNU/non-GNU ld that we prefer.
12367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12368 *GNU* | *'with BFD'*)
12369 test "$with_gnu_ld" != no && break
12372 test "$with_gnu_ld" != yes && break
12379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12383 LD="$lt_cv_path_LD"
12384 if test -n "$LD"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12386 $as_echo "$LD" >&6; }
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12391 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12398 case `$LD -v 2>&1 </dev/null` in
12399 *GNU* | *'with BFD'*)
12400 lt_cv_prog_gnu_ld=yes
12403 lt_cv_prog_gnu_ld=no
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12409 with_gnu_ld=$lt_cv_prog_gnu_ld
12417 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12418 # archiving commands below assume that GNU ld is being used.
12419 if test "$with_gnu_ld" = yes; then
12420 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12424 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426 # If archive_cmds runs LD, not CC, wlarc should be empty
12427 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12428 # investigate it a little bit more. (MM)
12431 # ancient GNU ld didn't support --whole-archive et. al.
12432 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12433 $GREP 'no-whole-archive' > /dev/null; then
12434 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436 whole_archive_flag_spec_CXX=
12442 # A generic and very simple default shared library creation
12443 # command for GNU C++ for the case where it uses the native
12444 # linker, instead of GNU ld. If possible, this setting should
12445 # overridden to take advantage of the native linker features on
12446 # the platform it is being used on.
12447 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12461 # PORTME: fill in a description of your system's C++ link characteristics
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12467 # FIXME: insert proper C++ library support
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12478 aix_use_runtimelinking=no
12480 # Test if we are trying to use run time linking or normal
12481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12482 # need to do runtime linking.
12483 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12484 for ld_flag in $LDFLAGS; do
12487 aix_use_runtimelinking=yes
12495 exp_sym_flag='-bexport'
12496 no_entry_flag='-bnoentry'
12499 # When large executables or shared objects are built, AIX ld can
12500 # have problems creating the table of contents. If linking a library
12501 # or program results in "error TOC overflow" add -mminimal-toc to
12502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12505 archive_cmds_CXX=''
12506 hardcode_direct_CXX=yes
12507 hardcode_direct_absolute_CXX=yes
12508 hardcode_libdir_separator_CXX=':'
12509 link_all_deplibs_CXX=yes
12510 file_list_spec_CXX='${wl}-f,'
12512 if test "$GXX" = yes; then
12513 case $host_os in aix4.[012]|aix4.[012].*)
12514 # We only want to do this on AIX 4.2 and lower, the check
12515 # below for broken collect2 doesn't work under 4.3+
12516 collect2name=`${CC} -print-prog-name=collect2`
12517 if test -f "$collect2name" &&
12518 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12520 # We have reworked collect2
12523 # We have old collect2
12524 hardcode_direct_CXX=unsupported
12525 # It fails to find uninstalled libraries when the uninstalled
12526 # path is not listed in the libpath. Setting hardcode_minus_L
12527 # to unsupported forces relinking
12528 hardcode_minus_L_CXX=yes
12529 hardcode_libdir_flag_spec_CXX='-L$libdir'
12530 hardcode_libdir_separator_CXX=
12533 shared_flag='-shared'
12534 if test "$aix_use_runtimelinking" = yes; then
12535 shared_flag="$shared_flag "'${wl}-G'
12539 if test "$host_cpu" = ia64; then
12540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12541 # chokes on -Wl,-G. The following line is correct:
12544 if test "$aix_use_runtimelinking" = yes; then
12545 shared_flag='${wl}-G'
12547 shared_flag='${wl}-bM:SRE'
12552 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12553 # It seems that -bexpall does not export symbols beginning with
12554 # underscore (_), so it is better to generate a list of symbols to
12556 always_export_symbols_CXX=yes
12557 if test "$aix_use_runtimelinking" = yes; then
12558 # Warning - without using the other runtime loading flags (-brtl),
12559 # -berok will link without error, but may produce a broken library.
12560 allow_undefined_flag_CXX='-berok'
12561 # Determine the default libpath from the value encoded in an empty
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12574 if ac_fn_cxx_try_link "$LINENO"; then :
12576 lt_aix_libpath_sed='
12577 /Import File Strings/,/^$/ {
12583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584 # Check for a 64-bit object if we didn't find anything.
12585 if test -z "$aix_libpath"; then
12586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12593 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12595 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"
12597 if test "$host_cpu" = ia64; then
12598 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12599 allow_undefined_flag_CXX="-z nodefs"
12600 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"
12602 # Determine the default libpath from the value encoded in an
12603 # empty executable.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12615 if ac_fn_cxx_try_link "$LINENO"; then :
12617 lt_aix_libpath_sed='
12618 /Import File Strings/,/^$/ {
12624 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625 # Check for a 64-bit object if we didn't find anything.
12626 if test -z "$aix_libpath"; then
12627 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 # Warning - without using the other run time loading flags,
12636 # -berok will link without error, but may produce a broken library.
12637 no_undefined_flag_CXX=' ${wl}-bernotok'
12638 allow_undefined_flag_CXX=' ${wl}-berok'
12639 if test "$with_gnu_ld" = yes; then
12640 # We only use this code for GNU lds that support --whole-archive.
12641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec_CXX='$convenience'
12646 archive_cmds_need_lc_CXX=yes
12647 # This is similar to how AIX traditionally builds its shared
12649 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'
12655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12656 allow_undefined_flag_CXX=unsupported
12657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12658 # support --undefined. This deserves some investigation. FIXME
12659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12666 case $cc_basename in
12668 # FIXME: insert proper C++ library support
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec_CXX='-L$libdir'
12678 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12679 allow_undefined_flag_CXX=unsupported
12680 always_export_symbols_CXX=no
12681 enable_shared_with_static_runtimes_CXX=yes
12683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12684 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'
12685 # If the export-symbols file already is a .def file (1st line
12686 # is EXPORTS), use it as is; otherwise, prepend...
12687 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12688 cp $export_symbols $output_objdir/$soname.def;
12690 echo EXPORTS > $output_objdir/$soname.def;
12691 cat $export_symbols >> $output_objdir/$soname.def;
12693 $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'
12698 darwin* | rhapsody*)
12701 archive_cmds_need_lc_CXX=no
12702 hardcode_direct_CXX=no
12703 hardcode_automatic_CXX=yes
12704 hardcode_shlibpath_var_CXX=unsupported
12705 if test "$lt_cv_ld_force_load" = "yes"; then
12706 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\"`'
12708 whole_archive_flag_spec_CXX=''
12710 link_all_deplibs_CXX=yes
12711 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12712 case $cc_basename in
12713 ifort*) _lt_dar_can_shared=yes ;;
12714 *) _lt_dar_can_shared=$GCC ;;
12716 if test "$_lt_dar_can_shared" = "yes"; then
12717 output_verbose_link_cmd=func_echo_all
12718 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}"
12719 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12720 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}"
12721 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}"
12722 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12723 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}"
12724 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}"
12734 case $cc_basename in
12736 # FIXME: insert proper C++ library support
12740 # Green Hills C++ Compiler
12741 # FIXME: insert proper C++ library support
12745 # FIXME: insert proper C++ library support
12752 # C++ shared libraries reported to be fairly broken before
12758 archive_cmds_need_lc_CXX=no
12761 freebsd* | dragonfly*)
12762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12771 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12772 link_all_deplibs_CXX=yes
12776 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_CXX=:
12778 export_dynamic_flag_spec_CXX='${wl}-E'
12779 hardcode_direct_CXX=yes
12780 hardcode_minus_L_CXX=yes # Not in the search PATH,
12781 # but as the default
12782 # location of the library.
12784 case $cc_basename in
12786 # FIXME: insert proper C++ library support
12790 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'
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12799 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"'
12802 if test "$GXX" = yes; then
12803 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12805 # FIXME: insert proper C++ library support
12813 if test $with_gnu_ld = no; then
12814 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_CXX=:
12821 export_dynamic_flag_spec_CXX='${wl}-E'
12827 hardcode_direct_CXX=no
12828 hardcode_shlibpath_var_CXX=no
12831 hardcode_direct_CXX=yes
12832 hardcode_direct_absolute_CXX=yes
12833 hardcode_minus_L_CXX=yes # Not in the search PATH,
12834 # but as the default
12835 # location of the library.
12839 case $cc_basename in
12841 # FIXME: insert proper C++ library support
12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12860 # There doesn't appear to be a way to prevent this compiler from
12861 # explicitly linking system object files so we need to strip them
12862 # from the output so that they don't get included in the library
12864 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"'
12867 if test "$GXX" = yes; then
12868 if test $with_gnu_ld = no; then
12871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882 # FIXME: insert proper C++ library support
12890 hardcode_direct_CXX=no
12891 hardcode_shlibpath_var_CXX=no
12892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}-E'
12894 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12895 # Instead, shared libraries are loaded at an image base (0x10000000 by
12896 # default) and relocated if they conflict, which is a slow very memory
12897 # consuming and fragmenting process. To avoid this, we pick a random,
12898 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12899 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12900 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'
12901 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'
12904 case $cc_basename in
12907 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'
12909 # Archives containing C++ object files must be created using
12910 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12911 # necessary to make sure instantiated templates are included
12913 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12916 if test "$GXX" = yes; then
12917 if test "$with_gnu_ld" = no; then
12918 archive_cmds_CXX='$CC -shared -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'
12920 archive_cmds_CXX='$CC -shared -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'
12923 link_all_deplibs_CXX=yes
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12927 hardcode_libdir_separator_CXX=:
12928 inherit_rpath_CXX=yes
12931 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12932 case $cc_basename in
12934 # Kuck and Associates, Inc. (KAI) C++ Compiler
12936 # KCC will only create a shared library if the output file
12937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12938 # to its proper name (with version) after linking.
12939 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'
12940 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'
12941 # Commands to make compiler produce verbose output that lists
12942 # what "hidden" libraries, object files and flags are used when
12943 # linking a shared library.
12945 # There doesn't appear to be a way to prevent this compiler from
12946 # explicitly linking system object files so we need to strip them
12947 # from the output so that they don't get included in the library
12949 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"'
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954 # Archives containing C++ object files must be created using
12955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12956 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12961 # version 8.0 and above of icpc choke on multiply defined symbols
12962 # if we add $predep_objects and $postdep_objects, however 7.1 and
12963 # earlier do not add the objects themselves.
12964 case `$CC -V 2>&1` in
12966 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12967 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'
12969 *) # Version 8.0 or newer
12972 ia64*) tmp_idyn=' -i_dynamic';;
12974 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12975 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'
12978 archive_cmds_need_lc_CXX=no
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12981 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12984 # Portland Group C++ compiler
12986 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12987 prelink_cmds_CXX='tpldir=Template.dir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12990 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12991 old_archive_cmds_CXX='tpldir=Template.dir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12994 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12996 archive_cmds_CXX='tpldir=Template.dir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13000 archive_expsym_cmds_CXX='tpldir=Template.dir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13005 *) # Version 6 and above use weak symbols
13006 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 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'
13011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013 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'
13017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 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'
13020 runpath_var=LD_RUN_PATH
13021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13022 hardcode_libdir_separator_CXX=:
13024 # Commands to make compiler produce verbose output that lists
13025 # what "hidden" libraries, object files and flags are used when
13026 # linking a shared library.
13028 # There doesn't appear to be a way to prevent this compiler from
13029 # explicitly linking system object files so we need to strip them
13030 # from the output so that they don't get included in the library
13032 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'
13034 xl* | mpixl* | bgxl*)
13035 # IBM XL 8.0 on PPC, with GNU ld
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13039 if test "x$supports_anon_versioning" = xyes; then
13040 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13042 echo "local: *; };" >> $output_objdir/$libname.ver~
13043 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13047 case `$CC -V 2>&1 | sed 5q` in
13050 no_undefined_flag_CXX=' -zdefs'
13051 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13052 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'
13053 hardcode_libdir_flag_spec_CXX='-R$libdir'
13054 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'
13055 compiler_needs_object_CXX=yes
13057 # Not sure whether something based on
13058 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13060 output_verbose_link_cmd='func_echo_all'
13062 # Archives containing C++ object files must be created using
13063 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13064 # necessary to make sure instantiated templates are included
13066 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13074 # FIXME: insert proper C++ library support
13079 # FIXME: insert proper C++ library support
13084 case $cc_basename in
13086 # FIXME: insert proper C++ library support
13090 # FIXME: insert proper C++ library support
13097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13100 hardcode_libdir_flag_spec_CXX='-R$libdir'
13101 hardcode_direct_CXX=yes
13102 hardcode_shlibpath_var_CXX=no
13104 # Workaround some broken pre-1.5 toolchains
13105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13113 # C++ shared libraries are fairly broken
13118 if test -f /usr/libexec/ld.so; then
13119 hardcode_direct_CXX=yes
13120 hardcode_shlibpath_var_CXX=no
13121 hardcode_direct_absolute_CXX=yes
13122 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13123 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13125 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13126 export_dynamic_flag_spec_CXX='${wl}-E'
13127 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13129 output_verbose_link_cmd=func_echo_all
13135 osf3* | osf4* | osf5*)
13136 case $cc_basename in
13138 # Kuck and Associates, Inc. (KAI) C++ Compiler
13140 # KCC will only create a shared library if the output file
13141 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13142 # to its proper name (with version) after linking.
13143 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'
13145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13146 hardcode_libdir_separator_CXX=:
13148 # Archives containing C++ object files must be created using
13149 # the KAI C++ compiler.
13151 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13152 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13156 # Rational C++ 2.4.1
13157 # FIXME: insert proper C++ library support
13163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13164 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'
13165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168 allow_undefined_flag_CXX=' -expect_unresolved \*'
13169 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'
13170 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13171 echo "-hidden">> $lib.exp~
13172 $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~
13174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13178 hardcode_libdir_separator_CXX=:
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13188 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"'
13191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13192 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13195 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'
13198 archive_cmds_CXX='$CC -shared -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'
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13203 hardcode_libdir_separator_CXX=:
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13211 # FIXME: insert proper C++ library support
13219 # FIXME: insert proper C++ library support
13224 case $cc_basename in
13227 # FIXME: insert proper C++ library support
13232 # FIXME: insert proper C++ library support
13236 # FIXME: insert proper C++ library support
13243 case $cc_basename in
13245 # Sun C++ 4.2, 5.x and Centerline C++
13246 archive_cmds_need_lc_CXX=yes
13247 no_undefined_flag_CXX=' -zdefs'
13248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250 $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'
13252 hardcode_libdir_flag_spec_CXX='-R$libdir'
13253 hardcode_shlibpath_var_CXX=no
13255 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 # The compiler driver will combine and reorder linker options,
13258 # but understands `-z linker_flag'.
13259 # Supported since Solaris 2.6 (maybe 2.5.1?)
13260 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13263 link_all_deplibs_CXX=yes
13265 output_verbose_link_cmd='func_echo_all'
13267 # Archives containing C++ object files must be created using
13268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13269 # necessary to make sure instantiated templates are included
13271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13274 # Green Hills C++ Compiler
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13277 # The C++ compiler must be used to create the archive.
13278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13281 # GNU C++ compiler with Solaris linker
13282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13284 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13285 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13286 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13287 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13289 # Commands to make compiler produce verbose output that lists
13290 # what "hidden" libraries, object files and flags are used when
13291 # linking a shared library.
13292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13297 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13310 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319 no_undefined_flag_CXX='${wl}-z,text'
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 runpath_var='LD_RUN_PATH'
13324 case $cc_basename in
13326 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 sysv5* | sco3.2v5* | sco5v6*)
13337 # Note: We can NOT use -z defs as we might desire, because we do not
13338 # link with -lc, and that would cause any symbols used from libc to
13339 # always be unresolved, which means just about no library would
13340 # ever link correctly. If we're not using GNU ld we use -z text
13341 # though, which does catch some bad symbols but isn't as heavy-handed
13343 no_undefined_flag_CXX='${wl}-z,text'
13344 allow_undefined_flag_CXX='${wl}-z,nodefs'
13345 archive_cmds_need_lc_CXX=no
13346 hardcode_shlibpath_var_CXX=no
13347 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13348 hardcode_libdir_separator_CXX=':'
13349 link_all_deplibs_CXX=yes
13350 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13351 runpath_var='LD_RUN_PATH'
13353 case $cc_basename in
13355 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13358 '"$old_archive_cmds_CXX"
13359 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13360 '"$reload_cmds_CXX"
13363 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13370 case $cc_basename in
13372 # NonStop-UX NCC 3.20
13373 # FIXME: insert proper C++ library support
13377 # FIXME: insert proper C++ library support
13384 # FIXME: insert proper C++ library support
13389 # FIXME: insert proper C++ library support
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13395 $as_echo "$ld_shlibs_CXX" >&6; }
13396 test "$ld_shlibs_CXX" = no && can_build_shared=no
13402 ## There is no encapsulation within the following macros, do not change
13403 ## the running order or otherwise move them around unless you know exactly
13404 ## what you are doing...
13405 # Dependencies to place before and after the object being linked:
13406 predep_objects_CXX=
13407 postdep_objects_CXX=
13410 compiler_lib_search_path_CXX=
13412 cat > conftest.$ac_ext <<_LT_EOF
13416 Foo (void) { a = 0; }
13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13423 (eval $ac_compile) 2>&5
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; }; then
13427 # Parse the compiler output and extract the necessary
13428 # objects, libraries and library flags.
13430 # Sentinel used to keep track of whether or not we are before
13431 # the conftest object file.
13432 pre_test_object_deps_done=no
13434 for p in `eval "$output_verbose_link_cmd"`; do
13438 # Some compilers place space between "-{L,R}" and the path.
13439 # Remove the space.
13440 if test $p = "-L" ||
13441 test $p = "-R"; then
13448 if test "$pre_test_object_deps_done" = no; then
13451 # Internal compiler library paths should come after those
13452 # provided the user. The postdeps already come after the
13453 # user supplied libs so there is no need to process them.
13454 if test -z "$compiler_lib_search_path_CXX"; then
13455 compiler_lib_search_path_CXX="${prev}${p}"
13457 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13460 # The "-l" case would never come before the object being
13461 # linked, so don't bother handling this case.
13464 if test -z "$postdeps_CXX"; then
13465 postdeps_CXX="${prev}${p}"
13467 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13473 # This assumes that the test object file only shows up
13474 # once in the compiler output.
13475 if test "$p" = "conftest.$objext"; then
13476 pre_test_object_deps_done=yes
13480 if test "$pre_test_object_deps_done" = no; then
13481 if test -z "$predep_objects_CXX"; then
13482 predep_objects_CXX="$p"
13484 predep_objects_CXX="$predep_objects_CXX $p"
13487 if test -z "$postdep_objects_CXX"; then
13488 postdep_objects_CXX="$p"
13490 postdep_objects_CXX="$postdep_objects_CXX $p"
13495 *) ;; # Ignore the rest.
13503 echo "libtool.m4: error: problem compiling CXX test program"
13506 $RM -f confest.$objext
13508 # PORTME: override above test on systems where it is broken
13511 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13512 # hack all around it, let's just trust "g++" to DTRT.
13513 predep_objects_CXX=
13514 postdep_objects_CXX=
13519 case `$CC -V 2>&1 | sed 5q` in
13523 # The more standards-conforming stlport4 library is
13524 # incompatible with the Cstd library. Avoid specifying
13525 # it if it's in CXXFLAGS. Ignore libCrun as
13526 # -library=stlport4 depends on it.
13527 case " $CXX $CXXFLAGS " in
13528 *" -library=stlport4 "*)
13529 solaris_use_stlport4=yes
13533 if test "$solaris_use_stlport4" != yes; then
13534 postdeps_CXX='-library=Cstd -library=Crun'
13541 case $cc_basename in
13543 # The more standards-conforming stlport4 library is
13544 # incompatible with the Cstd library. Avoid specifying
13545 # it if it's in CXXFLAGS. Ignore libCrun as
13546 # -library=stlport4 depends on it.
13547 case " $CXX $CXXFLAGS " in
13548 *" -library=stlport4 "*)
13549 solaris_use_stlport4=yes
13553 # Adding this requires a known-good setup of shared libraries for
13554 # Sun compiler versions before 5.6, else PIC objects from an old
13555 # archive will be linked into the output, leading to subtle bugs.
13556 if test "$solaris_use_stlport4" != yes; then
13557 postdeps_CXX='-library=Cstd -library=Crun'
13565 case " $postdeps_CXX " in
13566 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13568 compiler_lib_search_dirs_CXX=
13569 if test -n "${compiler_lib_search_path_CXX}"; then
13570 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13603 lt_prog_compiler_wl_CXX=
13604 lt_prog_compiler_pic_CXX=
13605 lt_prog_compiler_static_CXX=
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13608 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13610 # C++ specific cases for pic, static, wl, etc.
13611 if test "$GXX" = yes; then
13612 lt_prog_compiler_wl_CXX='-Wl,'
13613 lt_prog_compiler_static_CXX='-static'
13617 # All AIX code is PIC.
13618 if test "$host_cpu" = ia64; then
13619 # AIX 5 now supports IA64 processor
13620 lt_prog_compiler_static_CXX='-Bstatic'
13627 # see comment about AmigaOS4 .so support
13628 lt_prog_compiler_pic_CXX='-fPIC'
13631 # FIXME: we need at least 68020 code to build shared libraries, but
13632 # adding the `-m68020' flag to GCC prevents building anything better,
13634 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13640 # PIC is the default for these OSes.
13642 mingw* | cygwin* | os2* | pw32* | cegcc*)
13643 # This hack is so that the source file can tell whether it is being
13644 # built for inclusion in a dll (and should export symbols for example).
13645 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13646 # (--disable-auto-import) libraries
13647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13649 darwin* | rhapsody*)
13650 # PIC is the default on this platform
13651 # Common symbols not allowed in MH_DYLIB files
13652 lt_prog_compiler_pic_CXX='-fno-common'
13655 # DJGPP does not support shared libraries at all
13656 lt_prog_compiler_pic_CXX=
13659 # PIC is the default for Haiku.
13660 # The "-static" flag exists, but is broken.
13661 lt_prog_compiler_static_CXX=
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13668 if test -d /usr/nec; then
13669 lt_prog_compiler_pic_CXX=-Kconform_pic
13673 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13674 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13675 # sets the default TLS model and affects inlining.
13680 lt_prog_compiler_pic_CXX='-fPIC'
13685 # QNX uses GNU C++, but need to define -shared option too, otherwise
13686 # it will coredump.
13687 lt_prog_compiler_pic_CXX='-fPIC -shared'
13690 lt_prog_compiler_pic_CXX='-fPIC'
13696 # All AIX code is PIC.
13697 if test "$host_cpu" = ia64; then
13698 # AIX 5 now supports IA64 processor
13699 lt_prog_compiler_static_CXX='-Bstatic'
13701 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13705 case $cc_basename in
13707 # Green Hills C++ Compiler
13708 # _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"
13713 case $cc_basename in
13715 lt_prog_compiler_pic_CXX='-KPIC'
13718 # Green Hills C++ Compiler
13719 lt_prog_compiler_pic_CXX='-pic'
13725 freebsd* | dragonfly*)
13726 # FreeBSD uses GNU C++
13728 hpux9* | hpux10* | hpux11*)
13729 case $cc_basename in
13731 lt_prog_compiler_wl_CXX='-Wl,'
13732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13733 if test "$host_cpu" != ia64; then
13734 lt_prog_compiler_pic_CXX='+Z'
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13745 lt_prog_compiler_pic_CXX='+Z'
13754 # This is c89, which is MS Visual C++ (no shared libs)
13755 # Anyone wants to do a port?
13757 irix5* | irix6* | nonstopux*)
13758 case $cc_basename in
13760 lt_prog_compiler_wl_CXX='-Wl,'
13761 lt_prog_compiler_static_CXX='-non_shared'
13762 # CC pic flag -KPIC is the default.
13768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13769 case $cc_basename in
13772 lt_prog_compiler_wl_CXX='--backend -Wl,'
13773 lt_prog_compiler_pic_CXX='-fPIC'
13776 # old Intel C++ for x86_64 which still supported -KPIC.
13777 lt_prog_compiler_wl_CXX='-Wl,'
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-static'
13782 # Intel C++, used to be incompatible with GCC.
13783 # ICC 10 doesn't accept -KPIC any more.
13784 lt_prog_compiler_wl_CXX='-Wl,'
13785 lt_prog_compiler_pic_CXX='-fPIC'
13786 lt_prog_compiler_static_CXX='-static'
13789 # Portland Group C++ compiler
13790 lt_prog_compiler_wl_CXX='-Wl,'
13791 lt_prog_compiler_pic_CXX='-fpic'
13792 lt_prog_compiler_static_CXX='-Bstatic'
13796 # Make sure the PIC flag is empty. It appears that all Alpha
13797 # Linux and Compaq Tru64 Unix objects are PIC.
13798 lt_prog_compiler_pic_CXX=
13799 lt_prog_compiler_static_CXX='-non_shared'
13801 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13802 # IBM XL 8.0, 9.0 on PPC and BlueGene
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-qpic'
13805 lt_prog_compiler_static_CXX='-qstaticlink'
13808 case `$CC -V 2>&1 | sed 5q` in
13811 lt_prog_compiler_pic_CXX='-KPIC'
13812 lt_prog_compiler_static_CXX='-Bstatic'
13813 lt_prog_compiler_wl_CXX='-Qoption ld '
13824 case $cc_basename in
13826 lt_prog_compiler_pic_CXX='-W c,exportall'
13835 # QNX uses GNU C++, but need to define -shared option too, otherwise
13836 # it will coredump.
13837 lt_prog_compiler_pic_CXX='-fPIC -shared'
13839 osf3* | osf4* | osf5*)
13840 case $cc_basename in
13842 lt_prog_compiler_wl_CXX='--backend -Wl,'
13845 # Rational C++ 2.4.1
13846 lt_prog_compiler_pic_CXX='-pic'
13849 # Digital/Compaq C++
13850 lt_prog_compiler_wl_CXX='-Wl,'
13851 # Make sure the PIC flag is empty. It appears that all Alpha
13852 # Linux and Compaq Tru64 Unix objects are PIC.
13853 lt_prog_compiler_pic_CXX=
13854 lt_prog_compiler_static_CXX='-non_shared'
13863 case $cc_basename in
13865 # Sun C++ 4.2, 5.x and Centerline C++
13866 lt_prog_compiler_pic_CXX='-KPIC'
13867 lt_prog_compiler_static_CXX='-Bstatic'
13868 lt_prog_compiler_wl_CXX='-Qoption ld '
13871 # Green Hills C++ Compiler
13872 lt_prog_compiler_pic_CXX='-PIC'
13879 case $cc_basename in
13882 lt_prog_compiler_pic_CXX='-pic'
13883 lt_prog_compiler_static_CXX='-Bstatic'
13887 lt_prog_compiler_pic_CXX='-pic'
13893 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13894 case $cc_basename in
13896 lt_prog_compiler_wl_CXX='-Wl,'
13897 lt_prog_compiler_pic_CXX='-KPIC'
13898 lt_prog_compiler_static_CXX='-Bstatic'
13903 case $cc_basename in
13905 # NonStop-UX NCC 3.20
13906 lt_prog_compiler_pic_CXX='-KPIC'
13915 lt_prog_compiler_can_build_shared_CXX=no
13921 # For platforms which do not support PIC, -DPIC is meaningless:
13923 lt_prog_compiler_pic_CXX=
13926 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13930 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13935 # Check to make sure the PIC flag actually works.
13937 if test -n "$lt_prog_compiler_pic_CXX"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13939 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13940 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13943 lt_cv_prog_compiler_pic_works_CXX=no
13944 ac_outfile=conftest.$ac_objext
13945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13946 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 # The option is referenced via a variable to avoid confusing sed.
13952 lt_compile=`echo "$ac_compile" | $SED \
13953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13955 -e 's:$: $lt_compiler_flag:'`
13956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13957 (eval "$lt_compile" 2>conftest.err)
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 if (exit $ac_status) && test -s "$ac_outfile"; then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings other than the usual output.
13964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_pic_works_CXX=yes
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13974 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13976 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13977 case $lt_prog_compiler_pic_CXX in
13979 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13982 lt_prog_compiler_pic_CXX=
13983 lt_prog_compiler_can_build_shared_CXX=no
13991 # Check to make sure the static flag actually works.
13993 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13996 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13999 lt_cv_prog_compiler_static_works_CXX=no
14000 save_LDFLAGS="$LDFLAGS"
14001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14004 # The linker can only warn and ignore the option if not recognized
14005 # So say no if there are warnings
14006 if test -s conftest.err; then
14007 # Append any errors to the config.log.
14008 cat conftest.err 1>&5
14009 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_cv_prog_compiler_static_works_CXX=yes
14015 lt_cv_prog_compiler_static_works_CXX=yes
14019 LDFLAGS="$save_LDFLAGS"
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14023 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14025 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14028 lt_prog_compiler_static_CXX=
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14035 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14036 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14039 lt_cv_prog_compiler_c_o_CXX=no
14040 $RM -r conftest 2>/dev/null
14044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046 lt_compiler_flag="-o out/conftest2.$ac_objext"
14047 # Insert the option either (1) after the last *FLAGS variable, or
14048 # (2) before a word containing "conftest.", or (3) at the end.
14049 # Note that $ac_compile itself does not contain backslashes and begins
14050 # with a dollar sign (not a hyphen), so the echo should work correctly.
14051 lt_compile=`echo "$ac_compile" | $SED \
14052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054 -e 's:$: $lt_compiler_flag:'`
14055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14056 (eval "$lt_compile" 2>out/conftest.err)
14058 cat out/conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14062 # The compiler can only warn and ignore the option if not recognized
14063 # So say no if there are warnings
14064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14067 lt_cv_prog_compiler_c_o_CXX=yes
14072 # SGI C++ compiler will create directory out/ii_files/ for
14073 # template instantiation
14074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14075 $RM out/* && rmdir out
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14082 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14088 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14091 lt_cv_prog_compiler_c_o_CXX=no
14092 $RM -r conftest 2>/dev/null
14096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14098 lt_compiler_flag="-o out/conftest2.$ac_objext"
14099 # Insert the option either (1) after the last *FLAGS variable, or
14100 # (2) before a word containing "conftest.", or (3) at the end.
14101 # Note that $ac_compile itself does not contain backslashes and begins
14102 # with a dollar sign (not a hyphen), so the echo should work correctly.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>out/conftest.err)
14110 cat out/conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14114 # The compiler can only warn and ignore the option if not recognized
14115 # So say no if there are warnings
14116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119 lt_cv_prog_compiler_c_o_CXX=yes
14124 # SGI C++ compiler will create directory out/ii_files/ for
14125 # template instantiation
14126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14127 $RM out/* && rmdir out
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14134 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14139 hard_links="nottested"
14140 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14141 # do not overwrite the value of need_locks provided by the user
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14143 $as_echo_n "checking if we can lock with hard links... " >&6; }
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148 ln conftest.a conftest.b 2>&5 || hard_links=no
14149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14151 $as_echo "$hard_links" >&6; }
14152 if test "$hard_links" = no; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14154 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14164 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14169 # If we're using GNU nm, then we don't want the "-C" option.
14170 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14171 # Also, AIX nm treats weak defined symbols like other global defined
14172 # symbols, whereas GNU nm marks them as "W".
14173 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14174 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'
14176 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'
14180 export_symbols_cmds_CXX="$ltdll_cmds"
14182 cygwin* | mingw* | cegcc*)
14183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14186 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14189 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14192 $as_echo "$ld_shlibs_CXX" >&6; }
14193 test "$ld_shlibs_CXX" = no && can_build_shared=no
14195 with_gnu_ld_CXX=$with_gnu_ld
14203 # Do we need to explicitly link libc?
14205 case "x$archive_cmds_need_lc_CXX" in
14207 # Assume -lc should be added
14208 archive_cmds_need_lc_CXX=yes
14210 if test "$enable_shared" = yes && test "$GCC" = yes; then
14211 case $archive_cmds_CXX in
14213 # FIXME: we may have to deal with multi-command sequences.
14216 # Test whether the compiler implicitly links with -lc since on some
14217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218 # to ld, don't add -lc before -lgcc.
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14220 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14221 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14228 (eval $ac_compile) 2>&5
14230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; } 2>conftest.err; then
14234 libobjs=conftest.$ac_objext
14236 wl=$lt_prog_compiler_wl_CXX
14237 pic_flag=$lt_prog_compiler_pic_CXX
14243 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14244 allow_undefined_flag_CXX=
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14246 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }
14251 lt_cv_archive_cmds_need_lc_CXX=no
14253 lt_cv_archive_cmds_need_lc_CXX=yes
14255 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14257 cat conftest.err 1>&5
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14263 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14264 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14335 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14337 library_names_spec=
14338 libname_spec='lib$name'
14342 postuninstall_cmds=
14346 shlibpath_overrides_runpath=unknown
14348 dynamic_linker="$host_os ld.so"
14349 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14350 need_lib_prefix=unknown
14351 hardcode_into_libs=no
14353 # when you set need_version to no, make sure it does not cause -set_version
14354 # flags to be left without arguments
14355 need_version=unknown
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14361 shlibpath_var=LIBPATH
14363 # AIX 3 has no versioning support, so we append a major version to the name.
14364 soname_spec='${libname}${release}${shared_ext}$major'
14371 hardcode_into_libs=yes
14372 if test "$host_cpu" = ia64; then
14373 # AIX 5 supports IA64
14374 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14375 shlibpath_var=LD_LIBRARY_PATH
14377 # With GCC up to 2.95.x, collect2 would create an import file
14378 # for dependence libraries. The import file would start with
14379 # the line `#! .'. This would cause the generated library to
14380 # depend on `.', always an invalid library. This was fixed in
14381 # development snapshots of GCC prior to 3.0.
14383 aix4 | aix4.[01] | aix4.[01].*)
14384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14386 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14389 can_build_shared=no
14393 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14394 # soname into executable. Probably we can add versioning support to
14395 # collect2, so additional links can be useful in future.
14396 if test "$aix_use_runtimelinking" = yes; then
14397 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14398 # instead of lib<name>.a to let people know that these are not
14399 # typical AIX shared libraries.
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402 # We preserve .a as extension for shared libraries through AIX4.2
14403 # and later when we are not doing run time linking.
14404 library_names_spec='${libname}${release}.a $libname.a'
14405 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LIBPATH
14414 # Since July 2007 AmigaOS4 officially supports .so libraries.
14415 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 library_names_spec='$libname.ixlibrary $libname.a'
14420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14421 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'
14427 library_names_spec='${libname}${shared_ext}'
14428 dynamic_linker="$host_os ld.so"
14429 shlibpath_var=LIBRARY_PATH
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14441 # the default ld.so.conf also contains /usr/contrib/lib and
14442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14443 # libtool to hard-code these into programs
14446 cygwin* | mingw* | pw32* | cegcc*)
14447 version_type=windows
14452 case $GCC,$host_os in
14453 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14454 library_names_spec='$libname.dll.a'
14455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14456 postinstall_cmds='base_file=`basename \${file}`~
14457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14458 dldir=$destdir/`dirname \$dlpath`~
14459 test -d \$dldir || mkdir -p \$dldir~
14460 $install_prog $dir/$dlname \$dldir/$dlname~
14461 chmod a+x \$dldir/$dlname~
14462 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14463 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14466 dlpath=$dir/\$dldll~
14468 shlibpath_overrides_runpath=yes
14472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14477 # MinGW DLLs use traditional 'lib' prefix
14478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 # pw32 DLLs use 'pw' prefix rather than 'lib'
14482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14491 dynamic_linker='Win32 ld.exe'
14492 # FIXME: first we should search . and the directory the executable is in
14496 darwin* | rhapsody*)
14497 dynamic_linker="$host_os dyld"
14498 version_type=darwin
14501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502 soname_spec='${libname}${release}${major}$shared_ext'
14503 shlibpath_overrides_runpath=yes
14504 shlibpath_var=DYLD_LIBRARY_PATH
14505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14507 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14519 freebsd* | dragonfly*)
14520 # DragonFly does not have aout. When/if they implement a new
14521 # versioning mechanism, adjust this.
14522 if test -x /usr/bin/objformat; then
14523 objformat=`/usr/bin/objformat`
14526 freebsd[123]*) objformat=aout ;;
14527 *) objformat=elf ;;
14530 version_type=freebsd-$objformat
14531 case $version_type in
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14542 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14547 freebsd3.[01]* | freebsdelf3.[01]*)
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14551 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14552 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14553 shlibpath_overrides_runpath=no
14554 hardcode_into_libs=yes
14556 *) # from 4.6 on, and DragonFly
14557 shlibpath_overrides_runpath=yes
14558 hardcode_into_libs=yes
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 hardcode_into_libs=yes
14577 dynamic_linker="$host_os runtime_loader"
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LIBRARY_PATH
14581 shlibpath_overrides_runpath=yes
14582 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14583 hardcode_into_libs=yes
14586 hpux9* | hpux10* | hpux11*)
14587 # Give a soname corresponding to the major version so that dld.sl refuses to
14588 # link against other versions.
14595 hardcode_into_libs=yes
14596 dynamic_linker="$host_os dld.so"
14597 shlibpath_var=LD_LIBRARY_PATH
14598 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 soname_spec='${libname}${release}${shared_ext}$major'
14601 if test "X$HPUX_IA64_MODE" = X32; then
14602 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14604 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14610 hardcode_into_libs=yes
14611 dynamic_linker="$host_os dld.sl"
14612 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14621 dynamic_linker="$host_os dld.sl"
14622 shlibpath_var=SHLIB_PATH
14623 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14628 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14629 postinstall_cmds='chmod 555 $lib'
14630 # or fails outright, so override atomically:
14631 install_override_mode=555
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14646 irix5* | irix6* | nonstopux*)
14648 nonstopux*) version_type=nonstopux ;;
14650 if test "$lt_cv_prog_gnu_ld" = yes; then
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14661 irix5* | nonstopux*)
14662 libsuff= shlibsuff=
14665 case $LD in # libtool.m4 will add one of these switches to LD
14666 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14667 libsuff= shlibsuff= libmagic=32-bit;;
14668 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14669 libsuff=32 shlibsuff=N32 libmagic=N32;;
14670 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14671 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14672 *) libsuff= shlibsuff= libmagic=never-match;;
14676 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14677 shlibpath_overrides_runpath=no
14678 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14679 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14680 hardcode_into_libs=yes
14683 # No shared lib support for Linux oldld, aout, or coff.
14684 linux*oldld* | linux*aout* | linux*coff*)
14688 # This must be Linux ELF.
14689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=no
14699 # Some binutils ld are patched to set DT_RUNPATH
14700 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14701 $as_echo_n "(cached) " >&6
14703 lt_cv_shlibpath_overrides_runpath=no
14704 save_LDFLAGS=$LDFLAGS
14705 save_libdir=$libdir
14706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14719 if ac_fn_cxx_try_link "$LINENO"; then :
14720 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14721 lt_cv_shlibpath_overrides_runpath=yes
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LDFLAGS=$save_LDFLAGS
14727 libdir=$save_libdir
14731 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14733 # This implies no fast_install, which is unacceptable.
14734 # Some rework will be needed to allow for fast_install
14735 # before this can be enabled.
14736 hardcode_into_libs=yes
14738 # Append ld.so.conf contents to the search path
14739 if test -f /etc/ld.so.conf; then
14740 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' ' '`
14741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14744 # We used to test for /lib/ld.so.1 and disable shared libraries on
14745 # powerpc, because MkLinux only supported shared libraries with the
14746 # GNU dynamic linker. Since this was broken with cross compilers,
14747 # most powerpc-linux boxes support dynamic linking these days and
14748 # people can always --disable-shared, the test was removed, and we
14749 # assume the GNU/Linux dynamic linker is in use.
14750 dynamic_linker='GNU/Linux ld.so'
14757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14760 dynamic_linker='NetBSD (a.out) ld.so'
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 dynamic_linker='NetBSD ld.elf_so'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath=yes
14768 hardcode_into_libs=yes
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec='${libname}${release}${shared_ext}$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 shlibpath_overrides_runpath=no
14786 hardcode_into_libs=yes
14787 dynamic_linker='ldqnx.so'
14792 sys_lib_dlsearch_path_spec="/usr/lib"
14794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14796 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14797 *) need_version=no ;;
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 openbsd2.[89] | openbsd2.[89].*)
14805 shlibpath_overrides_runpath=no
14808 shlibpath_overrides_runpath=yes
14812 shlibpath_overrides_runpath=yes
14817 libname_spec='$name'
14820 library_names_spec='$libname${shared_ext} $libname.a'
14821 dynamic_linker='OS/2 ld.exe'
14822 shlibpath_var=LIBPATH
14825 osf3* | osf4* | osf5*)
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14833 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14849 # ldd complains unless libraries are executable
14850 postinstall_cmds='chmod +x $lib'
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14856 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14859 if test "$with_gnu_ld" = yes; then
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 case $host_vendor in
14872 shlibpath_overrides_runpath=no
14874 runpath_var=LD_RUN_PATH
14882 shlibpath_overrides_runpath=no
14883 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14889 if test -d /usr/nec ;then
14891 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14892 soname_spec='$libname${shared_ext}.$major'
14893 shlibpath_var=LD_LIBRARY_PATH
14897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14898 version_type=freebsd-elf
14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14902 soname_spec='${libname}${release}${shared_ext}$major'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=yes
14905 hardcode_into_libs=yes
14906 if test "$with_gnu_ld" = yes; then
14907 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14909 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14916 sys_lib_dlsearch_path_spec='/usr/lib'
14920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=no
14927 hardcode_into_libs=yes
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14942 $as_echo "$dynamic_linker" >&6; }
14943 test "$dynamic_linker" = no && can_build_shared=no
14945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14946 if test "$GCC" = yes; then
14947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14950 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14953 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14954 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14995 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14996 hardcode_action_CXX=
14997 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14998 test -n "$runpath_var_CXX" ||
14999 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15001 # We can hardcode non-existent directories.
15002 if test "$hardcode_direct_CXX" != no &&
15003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15004 # have to relink, otherwise we might link with an installed library
15005 # when we should be linking with a yet-to-be-installed one
15006 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15007 test "$hardcode_minus_L_CXX" != no; then
15008 # Linking always hardcodes the temporary library directory.
15009 hardcode_action_CXX=relink
15011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15012 hardcode_action_CXX=immediate
15015 # We cannot hardcode anything, or else we can only hardcode existing
15017 hardcode_action_CXX=unsupported
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15020 $as_echo "$hardcode_action_CXX" >&6; }
15022 if test "$hardcode_action_CXX" = relink ||
15023 test "$inherit_rpath_CXX" = yes; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026 elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15038 fi # test -n "$compiler"
15044 with_gnu_ld=$lt_save_with_gnu_ld
15045 lt_cv_path_LDCXX=$lt_cv_path_LD
15046 lt_cv_path_LD=$lt_save_path_LD
15047 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15048 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15049 fi # test "$_lt_caught_CXX_error" != yes
15052 ac_cpp='$CPP $CPPFLAGS'
15053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069 ac_config_commands="$ac_config_commands libtool"
15074 # Only expand once:
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15082 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15083 # Check whether --enable-maintainer-mode was given.
15084 if test "${enable_maintainer_mode+set}" = set; then :
15085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15087 USE_MAINTAINER_MODE=no
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15091 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15092 if test $USE_MAINTAINER_MODE = yes; then
15093 MAINTAINER_MODE_TRUE=
15094 MAINTAINER_MODE_FALSE='#'
15096 MAINTAINER_MODE_TRUE='#'
15097 MAINTAINER_MODE_FALSE=
15100 MAINT=$MAINTAINER_MODE_TRUE
15104 # For libtool versioning info, format is CURRENT:REVISION:AGE
15105 libtool_VERSION=1:0:0
15108 # Check header files.
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15110 $as_echo_n "checking for ANSI C header files... " >&6; }
15111 if test "${ac_cv_header_stdc+set}" = set; then :
15112 $as_echo_n "(cached) " >&6
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #include <stdlib.h>
15117 #include <stdarg.h>
15118 #include <string.h>
15129 if ac_fn_c_try_compile "$LINENO"; then :
15130 ac_cv_header_stdc=yes
15132 ac_cv_header_stdc=no
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 if test $ac_cv_header_stdc = yes; then
15137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <string.h>
15143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "memchr" >/dev/null 2>&1; then :
15147 ac_cv_header_stdc=no
15153 if test $ac_cv_header_stdc = yes; then
15154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <stdlib.h>
15160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15161 $EGREP "free" >/dev/null 2>&1; then :
15164 ac_cv_header_stdc=no
15170 if test $ac_cv_header_stdc = yes; then
15171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15172 if test "$cross_compiling" = yes; then :
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 #include <stdlib.h>
15179 #if ((' ' & 0x0FF) == 0x020)
15180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15183 # define ISLOWER(c) \
15184 (('a' <= (c) && (c) <= 'i') \
15185 || ('j' <= (c) && (c) <= 'r') \
15186 || ('s' <= (c) && (c) <= 'z'))
15187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15195 for (i = 0; i < 256; i++)
15196 if (XOR (islower (i), ISLOWER (i))
15197 || toupper (i) != TOUPPER (i))
15202 if ac_fn_c_try_run "$LINENO"; then :
15205 ac_cv_header_stdc=no
15207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15208 conftest.$ac_objext conftest.beam conftest.$ac_ext
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15214 $as_echo "$ac_cv_header_stdc" >&6; }
15215 if test $ac_cv_header_stdc = yes; then
15217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15222 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15223 if test "${ac_cv_header_time+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228 #include <sys/types.h>
15229 #include <sys/time.h>
15235 if ((struct tm *) 0)
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 ac_cv_header_time=yes
15244 ac_cv_header_time=no
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15249 $as_echo "$ac_cv_header_time" >&6; }
15250 if test $ac_cv_header_time = yes; then
15252 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15257 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15258 if test "${gcc_cv_header_string+set}" = set; then :
15259 $as_echo_n "(cached) " >&6
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 #include <string.h>
15264 #include <strings.h>
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 gcc_cv_header_string=yes
15276 gcc_cv_header_string=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15281 $as_echo "$gcc_cv_header_string" >&6; }
15282 if test $gcc_cv_header_string = yes; then
15284 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15288 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15292 eval as_val=\$$as_ac_Header
15293 if test "x$as_val" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15307 acx_cv_header_stdint=stddef.h
15308 acx_cv_header_stdint_kind="(already complete)"
15309 for i in stdint.h $inttype_headers; do
15310 unset ac_cv_type_uintptr_t
15311 unset ac_cv_type_uintmax_t
15312 unset ac_cv_type_int_least32_t
15313 unset ac_cv_type_int_fast32_t
15314 unset ac_cv_type_uint64_t
15315 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15316 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15319 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15320 acx_cv_header_stdint=$i
15325 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15328 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15331 acx_cv_header_stdint_kind="(mostly complete)"
15334 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15337 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15340 acx_cv_header_stdint_kind="(mostly complete)"
15343 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15346 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15349 acx_cv_header_stdint_kind="(mostly complete)"
15352 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15355 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15358 acx_cv_header_stdint_kind="(lacks uint64_t)"
15363 if test "$acx_cv_header_stdint" = stddef.h; then
15364 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15365 for i in stdint.h $inttype_headers; do
15366 unset ac_cv_type_uintptr_t
15367 unset ac_cv_type_uint32_t
15368 unset ac_cv_type_uint64_t
15369 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15370 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15373 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15374 acx_cv_header_stdint=$i
15379 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15382 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15386 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15389 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15396 if test "$acx_cv_header_stdint" = stddef.h; then
15397 acx_cv_header_stdint_kind="(u_intXX_t style)"
15398 for i in sys/types.h $inttype_headers; do
15399 unset ac_cv_type_u_int32_t
15400 unset ac_cv_type_u_int64_t
15401 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15402 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15405 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15406 acx_cv_header_stdint=$i
15411 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15414 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15421 if test "$acx_cv_header_stdint" = stddef.h; then
15422 acx_cv_header_stdint_kind="(using manual detection)"
15425 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15426 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15427 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15428 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15429 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15431 # ----------------- Summarize what we found so far
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15434 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15436 case `$as_basename -- gstdint.h ||
15437 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15438 Xgstdint.h : 'X\(//\)$' \| \
15439 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15440 $as_echo X/gstdint.h |
15441 sed '/^.*\/\([^/][^/]*\)\/*$/{
15454 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15455 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15456 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15457 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15462 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15464 # ----------------- done included file, check C basic types --------
15466 # Lacking an uintptr_t? Test size of void *
15467 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15468 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15471 # This bug is HP SR number 8606223364.
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15473 $as_echo_n "checking size of void *... " >&6; }
15474 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15475 $as_echo_n "(cached) " >&6
15477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15480 if test "$ac_cv_type_void_p" = yes; then
15481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15483 { as_fn_set_status 77
15484 as_fn_error "cannot compute sizeof (void *)
15485 See \`config.log' for more details." "$LINENO" 5; }; }
15487 ac_cv_sizeof_void_p=0
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15493 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15497 cat >>confdefs.h <<_ACEOF
15498 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15504 # Lacking an uint64_t? Test size of long
15505 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15506 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15509 # This bug is HP SR number 8606223364.
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15511 $as_echo_n "checking size of long... " >&6; }
15512 if test "${ac_cv_sizeof_long+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15518 if test "$ac_cv_type_long" = yes; then
15519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15521 { as_fn_set_status 77
15522 as_fn_error "cannot compute sizeof (long)
15523 See \`config.log' for more details." "$LINENO" 5; }; }
15525 ac_cv_sizeof_long=0
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15531 $as_echo "$ac_cv_sizeof_long" >&6; }
15535 cat >>confdefs.h <<_ACEOF
15536 #define SIZEOF_LONG $ac_cv_sizeof_long
15542 if test $acx_cv_header_stdint = stddef.h; then
15543 # Lacking a good header? Test size of everything and deduce all types.
15544 # The cast to long int works around a bug in the HP C Compiler
15545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15547 # This bug is HP SR number 8606223364.
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15549 $as_echo_n "checking size of int... " >&6; }
15550 if test "${ac_cv_sizeof_int+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15556 if test "$ac_cv_type_int" = yes; then
15557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15559 { as_fn_set_status 77
15560 as_fn_error "cannot compute sizeof (int)
15561 See \`config.log' for more details." "$LINENO" 5; }; }
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15569 $as_echo "$ac_cv_sizeof_int" >&6; }
15573 cat >>confdefs.h <<_ACEOF
15574 #define SIZEOF_INT $ac_cv_sizeof_int
15578 # The cast to long int works around a bug in the HP C Compiler
15579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15581 # This bug is HP SR number 8606223364.
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15583 $as_echo_n "checking size of short... " >&6; }
15584 if test "${ac_cv_sizeof_short+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15590 if test "$ac_cv_type_short" = yes; then
15591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15593 { as_fn_set_status 77
15594 as_fn_error "cannot compute sizeof (short)
15595 See \`config.log' for more details." "$LINENO" 5; }; }
15597 ac_cv_sizeof_short=0
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15603 $as_echo "$ac_cv_sizeof_short" >&6; }
15607 cat >>confdefs.h <<_ACEOF
15608 #define SIZEOF_SHORT $ac_cv_sizeof_short
15612 # The cast to long int works around a bug in the HP C Compiler
15613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15615 # This bug is HP SR number 8606223364.
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15617 $as_echo_n "checking size of char... " >&6; }
15618 if test "${ac_cv_sizeof_char+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15624 if test "$ac_cv_type_char" = yes; then
15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627 { as_fn_set_status 77
15628 as_fn_error "cannot compute sizeof (char)
15629 See \`config.log' for more details." "$LINENO" 5; }; }
15631 ac_cv_sizeof_char=0
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15637 $as_echo "$ac_cv_sizeof_char" >&6; }
15641 cat >>confdefs.h <<_ACEOF
15642 #define SIZEOF_CHAR $ac_cv_sizeof_char
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15648 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15649 case "$ac_cv_sizeof_char" in
15650 1) acx_cv_type_int8_t=char ;;
15651 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15654 $as_echo "$acx_cv_type_int8_t" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15657 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15658 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15659 2:*) acx_cv_type_int16_t=int ;;
15660 *:2) acx_cv_type_int16_t=short ;;
15661 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15664 $as_echo "$acx_cv_type_int16_t" >&6; }
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15667 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15668 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15669 4:*) acx_cv_type_int32_t=int ;;
15670 *:4) acx_cv_type_int32_t=long ;;
15671 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15674 $as_echo "$acx_cv_type_int32_t" >&6; }
15677 # These tests are here to make the output prettier
15679 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15680 case "$ac_cv_sizeof_long" in
15681 8) acx_cv_type_int64_t=long ;;
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15684 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15686 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15689 # Now we can use the above types
15691 if test "$ac_cv_type_uintptr_t" != yes; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15693 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15694 case $ac_cv_sizeof_void_p in
15695 2) acx_cv_type_intptr_t=int16_t ;;
15696 4) acx_cv_type_intptr_t=int32_t ;;
15697 8) acx_cv_type_intptr_t=int64_t ;;
15698 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15701 $as_echo "$acx_cv_type_intptr_t" >&6; }
15704 # ----------------- done all checks, emit header -------------
15705 ac_config_commands="$ac_config_commands gstdint.h"
15711 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15712 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15713 gcc_header_sys_mman_h=yes
15715 gcc_header_sys_mman_h=no
15719 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15720 if test "x$ac_cv_func_mmap" = x""yes; then :
15726 if test "$gcc_header_sys_mman_h" != yes \
15727 || test "$gcc_func_mmap" != yes; then
15728 gcc_cv_func_mmap_file=no
15729 gcc_cv_func_mmap_dev_zero=no
15730 gcc_cv_func_mmap_anon=no
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15733 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15734 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15737 # Add a system to this blacklist if
15738 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15739 # memory area containing the same data that you'd get if you applied
15740 # read() to the same fd. The only system known to have a problem here
15741 # is VMS, where text files have record structure.
15744 gcc_cv_func_mmap_file=no ;;
15746 gcc_cv_func_mmap_file=yes;;
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15750 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15752 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15753 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15754 $as_echo_n "(cached) " >&6
15756 # Add a system to this blacklist if it has mmap() but /dev/zero
15757 # does not exist, or if mmapping /dev/zero does not give anonymous
15758 # zeroed pages with both the following properties:
15759 # 1. If you map N consecutive pages in with one call, and then
15760 # unmap any subset of those pages, the pages that were not
15761 # explicitly unmapped remain accessible.
15762 # 2. If you map two adjacent blocks of memory and then unmap them
15763 # both at once, they must both go away.
15764 # Systems known to be in this category are Windows (all variants),
15767 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15768 gcc_cv_func_mmap_dev_zero=no ;;
15770 gcc_cv_func_mmap_dev_zero=yes;;
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15774 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15776 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15778 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15779 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15780 $as_echo_n "(cached) " >&6
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 #include <sys/types.h>
15785 #include <sys/mman.h>
15786 #include <unistd.h>
15788 #ifndef MAP_ANONYMOUS
15789 #define MAP_ANONYMOUS MAP_ANON
15795 int n = MAP_ANONYMOUS;
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 gcc_cv_decl_map_anon=yes
15803 gcc_cv_decl_map_anon=no
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15808 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15810 if test $gcc_cv_decl_map_anon = no; then
15811 gcc_cv_func_mmap_anon=no
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15814 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15815 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15818 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15819 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15820 # doesn't give anonymous zeroed pages with the same properties listed
15821 # above for use of /dev/zero.
15822 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15824 vms* | cygwin* | pe | mingw* | sco* | udk* )
15825 gcc_cv_func_mmap_anon=no ;;
15827 gcc_cv_func_mmap_anon=yes;;
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15831 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15835 if test $gcc_cv_func_mmap_file = yes; then
15837 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15840 if test $gcc_cv_func_mmap_dev_zero = yes; then
15842 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15845 if test $gcc_cv_func_mmap_anon = yes; then
15847 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15854 if test "${ac_cv_c_bigendian+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15857 ac_cv_c_bigendian=unknown
15858 # See if we're dealing with a universal compiler.
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #ifndef __APPLE_CC__
15862 not a universal capable compiler
15867 if ac_fn_c_try_compile "$LINENO"; then :
15869 # Check for potential -arch flags. It is not universal unless
15870 # there are at least two -arch flags with different values.
15873 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15874 if test -n "$ac_prev"; then
15876 i?86 | x86_64 | ppc | ppc64)
15877 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15880 ac_cv_c_bigendian=universal
15886 elif test "x$ac_word" = "x-arch"; then
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 if test $ac_cv_c_bigendian = unknown; then
15893 # See if sys/param.h defines the BYTE_ORDER macro.
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 #include <sys/types.h>
15897 #include <sys/param.h>
15902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15905 bogus endian macros
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 # It does; now see whether it defined to BIG_ENDIAN or not.
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 #include <sys/types.h>
15917 #include <sys/param.h>
15922 #if BYTE_ORDER != BIG_ENDIAN
15930 if ac_fn_c_try_compile "$LINENO"; then :
15931 ac_cv_c_bigendian=yes
15933 ac_cv_c_bigendian=no
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 if test $ac_cv_c_bigendian = unknown; then
15940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <limits.h>
15948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15949 bogus endian macros
15956 if ac_fn_c_try_compile "$LINENO"; then :
15957 # It does; now see whether it defined to _BIG_ENDIAN or not.
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <limits.h>
15965 #ifndef _BIG_ENDIAN
15973 if ac_fn_c_try_compile "$LINENO"; then :
15974 ac_cv_c_bigendian=yes
15976 ac_cv_c_bigendian=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 if test $ac_cv_c_bigendian = unknown; then
15983 # Compile a test program.
15984 if test "$cross_compiling" = yes; then :
15985 # Try to guess by grepping values from an object file.
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 short int ascii_mm[] =
15989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15990 short int ascii_ii[] =
15991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15992 int use_ascii (int i) {
15993 return ascii_mm[i] + ascii_ii[i];
15995 short int ebcdic_ii[] =
15996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15997 short int ebcdic_mm[] =
15998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15999 int use_ebcdic (int i) {
16000 return ebcdic_mm[i] + ebcdic_ii[i];
16007 return use_ascii (foo) == use_ebcdic (foo);
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16014 ac_cv_c_bigendian=yes
16016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16017 if test "$ac_cv_c_bigendian" = unknown; then
16018 ac_cv_c_bigendian=no
16020 # finding both strings is unlikely to happen, but who knows?
16021 ac_cv_c_bigendian=unknown
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 $ac_includes_default
16034 /* Are we little or big endian? From Harbison&Steele. */
16038 char c[sizeof (long int)];
16041 return u.c[sizeof (long int) - 1] == 1;
16047 if ac_fn_c_try_run "$LINENO"; then :
16048 ac_cv_c_bigendian=no
16050 ac_cv_c_bigendian=yes
16052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16053 conftest.$ac_objext conftest.beam conftest.$ac_ext
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16059 $as_echo "$ac_cv_c_bigendian" >&6; }
16060 case $ac_cv_c_bigendian in #(
16062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16072 as_fn_error "unknown endianness
16073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16076 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16079 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16080 # In case the pthread.h system header is not found, this test will fail.
16082 CFLAGS="$CFLAGS -pthread"
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 #include <pthread.h>
16086 void *g(void *d) { return NULL; }
16090 pthread_t t; pthread_create(&t,NULL,g,NULL);
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 XPCFLAGS=" -Wc,-pthread"
16098 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 #include <pthread.h>
16102 void *g(void *d) { return NULL; }
16106 pthread_t t; pthread_create(&t,NULL,g,NULL);
16111 if ac_fn_c_try_link "$LINENO"; then :
16114 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16122 # Check for functions needed.
16123 for ac_func in strtoull memalign posix_memalign
16125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16127 eval as_val=\$$as_ac_var
16128 if test "x$as_val" = x""yes; then :
16129 cat >>confdefs.h <<_ACEOF
16130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16137 # Check for broken semaphore implementation on darwin.
16138 # sem_init returns: sem_init error: Function not implemented.
16142 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16147 # Check whether --enable-linux-futex was given.
16148 if test "${enable_linux_futex+set}" = set; then :
16149 enableval=$enable_linux_futex;
16150 case "$enableval" in
16152 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16156 enable_linux_futex=default
16162 case "$enable_linux_futex" in
16164 # If headers don't have gettid/futex syscalls definition, then
16165 # default to no, otherwise there will be compile time failures.
16166 # Otherwise, default to yes. If we don't detect we are
16167 # compiled/linked against NPTL and not cross-compiling, check
16168 # if programs are run by default against NPTL and if not, issue
16170 enable_linux_futex=no
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 #include <sys/syscall.h>
16178 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16183 if ac_fn_c_try_link "$LINENO"; then :
16185 LIBS="-lpthread $LIBS"
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 #ifndef _GNU_SOURCE
16189 #define _GNU_SOURCE 1
16191 #include <pthread.h>
16192 pthread_t th; void *status;
16196 pthread_tryjoin_np (th, &status);
16201 if ac_fn_c_try_link "$LINENO"; then :
16202 enable_linux_futex=yes
16204 if test x$cross_compiling = xno; then
16205 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16206 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16208 If so, please configure with --disable-linux-futex" >&5
16209 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16210 If so, please configure with --disable-linux-futex" >&2;}
16213 enable_linux_futex=yes
16215 rm -f core conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16225 #include <sys/syscall.h>
16230 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16235 if ac_fn_c_try_link "$LINENO"; then :
16238 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16240 rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16246 enable_linux_futex=no
16249 if test x$enable_linux_futex = xyes; then
16254 # See if we support thread-local storage.
16257 # Check whether --enable-tls was given.
16258 if test "${enable_tls+set}" = set; then :
16259 enableval=$enable_tls;
16260 case "$enableval" in
16262 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16271 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16272 if test "${gcc_cv_have_tls+set}" = set; then :
16273 $as_echo_n "(cached) " >&6
16276 if test "$cross_compiling" = yes; then :
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 __thread int a; int b; int main() { return a = b; }
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 chktls_save_LDFLAGS="$LDFLAGS"
16285 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16288 chktls_save_CFLAGS="$CFLAGS"
16289 CFLAGS="-fPIC $CFLAGS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 int f() { return 0; }
16294 if ac_fn_c_try_link "$LINENO"; then :
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297 __thread int a; int b; int f() { return a = b; }
16299 if ac_fn_c_try_link "$LINENO"; then :
16300 gcc_cv_have_tls=yes
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16307 gcc_cv_have_tls=yes
16309 rm -f core conftest.err conftest.$ac_objext \
16310 conftest$ac_exeext conftest.$ac_ext
16311 CFLAGS="$chktls_save_CFLAGS"
16312 LDFLAGS="$chktls_save_LDFLAGS"
16316 rm -f core conftest.err conftest.$ac_objext \
16317 conftest$ac_exeext conftest.$ac_ext
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16323 __thread int a; int b; int main() { return a = b; }
16325 if ac_fn_c_try_run "$LINENO"; then :
16326 chktls_save_LDFLAGS="$LDFLAGS"
16327 LDFLAGS="-static $LDFLAGS"
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 int main() { return 0; }
16332 if ac_fn_c_try_link "$LINENO"; then :
16333 if test "$cross_compiling" = yes; then :
16334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16336 as_fn_error "cannot run test program while cross compiling
16337 See \`config.log' for more details." "$LINENO" 5; }
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 __thread int a; int b; int main() { return a = b; }
16343 if ac_fn_c_try_run "$LINENO"; then :
16344 gcc_cv_have_tls=yes
16348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16349 conftest.$ac_objext conftest.beam conftest.$ac_ext
16353 gcc_cv_have_tls=yes
16355 rm -f core conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16357 LDFLAGS="$chktls_save_LDFLAGS"
16358 if test $gcc_cv_have_tls = yes; then
16359 chktls_save_CFLAGS="$CFLAGS"
16360 thread_CFLAGS=failed
16361 for flag in '' '-pthread' '-lpthread'; do
16362 CFLAGS="$flag $chktls_save_CFLAGS"
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16365 #include <pthread.h>
16366 void *g(void *d) { return NULL; }
16370 pthread_t t; pthread_create(&t,NULL,g,NULL);
16375 if ac_fn_c_try_link "$LINENO"; then :
16376 thread_CFLAGS="$flag"
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 if test "X$thread_CFLAGS" != Xfailed; then
16384 CFLAGS="$chktls_save_CFLAGS"
16385 if test "X$thread_CFLAGS" != Xfailed; then
16386 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16387 if test "$cross_compiling" = yes; then :
16388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16390 as_fn_error "cannot run test program while cross compiling
16391 See \`config.log' for more details." "$LINENO" 5; }
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16395 #include <pthread.h>
16397 static int *volatile a_in_other_thread;
16399 thread_func (void *arg)
16401 a_in_other_thread = &a;
16408 void *thread_retval;
16409 int *volatile a_in_main_thread;
16410 a_in_main_thread = &a;
16411 if (pthread_create (&thread, (pthread_attr_t *)0,
16412 thread_func, (void *)0))
16414 if (pthread_join (thread, &thread_retval))
16416 return (a_in_other_thread == a_in_main_thread);
16421 if ac_fn_c_try_run "$LINENO"; then :
16422 gcc_cv_have_tls=yes
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16427 conftest.$ac_objext conftest.beam conftest.$ac_ext
16430 CFLAGS="$chktls_save_CFLAGS"
16436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16437 conftest.$ac_objext conftest.beam conftest.$ac_ext
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16442 $as_echo "$gcc_cv_have_tls" >&6; }
16443 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16445 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16449 # See what sort of export controls are availible.
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16452 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16453 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16454 $as_echo_n "(cached) " >&6
16457 save_CFLAGS="$CFLAGS"
16458 CFLAGS="$CFLAGS -Werror"
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 void __attribute__((visibility("hidden"))) foo(void) { }
16470 if ac_fn_c_try_compile "$LINENO"; then :
16471 libitm_cv_have_attribute_visibility=yes
16473 libitm_cv_have_attribute_visibility=no
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16476 CFLAGS="$save_CFLAGS"
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16479 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16480 if test $libitm_cv_have_attribute_visibility = yes; then
16482 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16487 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16488 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16489 $as_echo_n "(cached) " >&6
16492 save_CFLAGS="$CFLAGS"
16493 CFLAGS="$CFLAGS -Werror"
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 void __attribute__((dllexport)) foo(void) { }
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506 libitm_cv_have_attribute_dllexport=yes
16508 libitm_cv_have_attribute_dllexport=no
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 CFLAGS="$save_CFLAGS"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16514 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16515 if test $libitm_cv_have_attribute_dllexport = yes; then
16517 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16522 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16523 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16524 $as_echo_n "(cached) " >&6
16527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16528 /* end confdefs.h. */
16531 extern void bar(void) __attribute__((alias("foo")));
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 libitm_cv_have_attribute_alias=yes
16543 libitm_cv_have_attribute_alias=no
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16549 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16550 if test $libitm_cv_have_attribute_alias = yes; then
16552 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16557 # Check whether --with-gnu-ld was given.
16558 if test "${with_gnu_ld+set}" = set; then :
16559 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16565 if test "$GCC" = yes; then
16566 # Check if gcc -print-prog-name=ld gives a path.
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16568 $as_echo_n "checking for ld used by $CC... " >&6; }
16571 # gcc leaves a trailing carriage return which upsets mingw
16572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16577 # Accept absolute paths.
16579 re_direlt='/[^/][^/]*/\.\./'
16580 # Canonicalize the pathname of ld
16581 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16582 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16583 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16585 test -z "$LD" && LD="$ac_prog"
16588 # If it fails, then pretend we aren't using GCC.
16592 # If it is relative, then search for the first ld in PATH.
16593 with_gnu_ld=unknown
16596 elif test "$with_gnu_ld" = yes; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16598 $as_echo_n "checking for GNU ld... " >&6; }
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16601 $as_echo_n "checking for non-GNU ld... " >&6; }
16603 if test "${lt_cv_path_LD+set}" = set; then :
16604 $as_echo_n "(cached) " >&6
16606 if test -z "$LD"; then
16607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16608 for ac_dir in $PATH; do
16610 test -z "$ac_dir" && ac_dir=.
16611 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16612 lt_cv_path_LD="$ac_dir/$ac_prog"
16613 # Check to see if the program is GNU ld. I'd rather use --version,
16614 # but apparently some variants of GNU ld only accept -v.
16615 # Break only if it was the GNU/non-GNU ld that we prefer.
16616 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16617 *GNU* | *'with BFD'*)
16618 test "$with_gnu_ld" != no && break
16621 test "$with_gnu_ld" != yes && break
16628 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16632 LD="$lt_cv_path_LD"
16633 if test -n "$LD"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16635 $as_echo "$LD" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16640 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16642 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16643 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16644 $as_echo_n "(cached) " >&6
16646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16647 case `$LD -v 2>&1 </dev/null` in
16648 *GNU* | *'with BFD'*)
16649 lt_cv_prog_gnu_ld=yes
16652 lt_cv_prog_gnu_ld=no
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16657 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16658 with_gnu_ld=$lt_cv_prog_gnu_ld
16666 # If we're not using GNU ld, then there's no point in even trying these
16667 # tests. Check for that first. We should have already tested for gld
16668 # by now (in libtool), but require it now just to be safe...
16669 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16670 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16674 # The name set by libtool depends on the version of libtool. Shame on us
16675 # for depending on an impl detail, but c'est la vie. Older versions used
16676 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16677 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16678 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16679 # set (hence we're using an older libtool), then set it.
16680 if test x${with_gnu_ld+set} != xset; then
16681 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16682 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16685 with_gnu_ld=$ac_cv_prog_gnu_ld
16689 # Start by getting the version number. I think the libtool test already
16690 # does some of this, but throws away the result.
16692 ldver=`$LD --version 2>/dev/null | head -1 | \
16693 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
16695 libitm_gnu_ld_version=`echo $ldver | \
16696 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16698 # Set --gc-sections.
16699 if test "$with_gnu_ld" = "notbroken"; then
16700 # GNU ld it is! Joy and bunny rabbits!
16702 # All these tests are for C++; save the language and the compiler flags.
16703 # Need to do this so that g++ won't try to link in libstdc++
16704 ac_test_CFLAGS="${CFLAGS+set}"
16705 ac_save_CFLAGS="$CFLAGS"
16706 CFLAGS='-x c++ -Wl,--gc-sections'
16708 # Check for -Wl,--gc-sections
16709 # XXX This test is broken at the moment, as symbols required for linking
16710 # are now in libsupc++ (not built yet). In addition, this test has
16711 # cored on solaris in the past. In addition, --gc-sections doesn't
16712 # really work at the moment (keeps on discarding used sections, first
16713 # .eh_frame and now some of the glibc sections for iconv).
16714 # Bzzzzt. Thanks for playing, maybe next time.
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16716 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16717 if test "$cross_compiling" = yes; then :
16718 ac_sectionLDflags=yes
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16731 if ac_fn_c_try_run "$LINENO"; then :
16732 ac_sectionLDflags=yes
16734 ac_sectionLDflags=no
16736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16737 conftest.$ac_objext conftest.beam conftest.$ac_ext
16740 if test "$ac_test_CFLAGS" = set; then
16741 CFLAGS="$ac_save_CFLAGS"
16743 # this is the suspicious part
16746 if test "$ac_sectionLDflags" = "yes"; then
16747 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16750 $as_echo "$ac_sectionLDflags" >&6; }
16753 # Set linker optimization flags.
16754 if test x"$with_gnu_ld" = x"yes"; then
16755 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16763 # Check whether --enable-symvers was given.
16764 if test "${enable_symvers+set}" = set; then :
16765 enableval=$enable_symvers;
16766 case "$enableval" in
16768 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16777 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16778 # don't know enough about $LD to do tricks...
16780 # FIXME The following test is too strict, in theory.
16781 if test $enable_shared = no ||
16783 test x$libitm_gnu_ld_version = x; then
16787 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16788 if test $enable_symvers != no; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16790 $as_echo_n "checking for shared libgcc... " >&6; }
16791 ac_save_CFLAGS="$CFLAGS"
16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h. */
16804 if ac_fn_c_try_link "$LINENO"; then :
16805 libitm_shared_libgcc=yes
16807 libitm_shared_libgcc=no
16809 rm -f core conftest.err conftest.$ac_objext \
16810 conftest$ac_exeext conftest.$ac_ext
16811 CFLAGS="$ac_save_CFLAGS"
16812 if test $libitm_shared_libgcc = no; then
16813 cat > conftest.c <<EOF
16814 int main (void) { return 0; }
16816 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16817 -shared -shared-libgcc -o conftest.so \
16818 conftest.c -v 2>&1 >/dev/null \
16819 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16820 rm -f conftest.c conftest.so
16821 if test x${libitm_libgcc_s_suffix+set} = xset; then
16822 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16834 if ac_fn_c_try_link "$LINENO"; then :
16835 libitm_shared_libgcc=yes
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839 CFLAGS="$ac_save_CFLAGS"
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16843 $as_echo "$libitm_shared_libgcc" >&6; }
16846 # For GNU ld, we need at least this version. The format is described in
16847 # LIBITM_CHECK_LINKER_FEATURES above.
16848 libitm_min_gnu_ld_version=21400
16849 # XXXXXXXXXXX libitm_gnu_ld_version=21390
16851 # Check to see if unspecified "yes" value can win, given results above.
16852 # Change "yes" into either "no" or a style name.
16853 if test $enable_symvers = yes; then
16854 if test $with_gnu_ld = yes &&
16855 test $libitm_shared_libgcc = yes;
16857 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
16860 # The right tools, the right setup, but too old. Fallbacks?
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
16862 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16864 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16866 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
16868 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
16869 if test $libitm_gnu_ld_version -ge 21200 ; then
16870 # Globbing fix is present, proper block support is not.
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16872 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16877 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16882 # just fail for now
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16884 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16886 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16888 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16890 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16895 if test $enable_symvers != no; then
16896 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
16897 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
16899 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
16900 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16904 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16907 if test $enable_symvers = gnu; then
16909 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16913 # See if we can emit unwind info in the sjlj stub.
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16915 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16916 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
16917 $as_echo_n "(cached) " >&6
16920 gcc_cv_as_cfi_pseudo_op=unknown
16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922 /* end confdefs.h. */
16923 asm (".cfi_startproc\n\t.cfi_endproc");
16932 if ac_fn_c_try_compile "$LINENO"; then :
16933 gcc_cv_as_cfi_pseudo_op=yes
16935 gcc_cv_as_cfi_pseudo_op=no
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
16941 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
16942 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
16944 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
16949 # Determine the proper ABI type for size_t.
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
16952 $as_echo_n "checking how size_t is mangled... " >&6; }
16953 if test "${libitm_cv_size_t_mangling+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16963 extern __SIZE_TYPE__ x; extern unsigned long x;
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 libitm_cv_size_t_mangling=m
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16978 extern __SIZE_TYPE__ x; extern unsigned int x;
16983 if ac_fn_c_try_compile "$LINENO"; then :
16984 libitm_cv_size_t_mangling=j
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16993 extern __SIZE_TYPE__ x; extern unsigned long long x;
16998 if ac_fn_c_try_compile "$LINENO"; then :
16999 libitm_cv_size_t_mangling=y
17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17008 extern __SIZE_TYPE__ x; extern unsigned short x;
17013 if ac_fn_c_try_compile "$LINENO"; then :
17014 libitm_cv_size_t_mangling=t
17016 libitm_cv_size_t_mangling=x
17018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17031 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17032 if test $libitm_cv_size_t_mangling = x; then
17033 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17036 cat >>confdefs.h <<_ACEOF
17037 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17042 # Get target configury.
17043 . ${srcdir}/configure.tgt
17044 if test -n "$UNSUPPORTED"; then
17045 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17048 CFLAGS="$save_CFLAGS $XCFLAGS"
17050 # Check for __sync_val_compare_and_swap, but only after the target has
17051 # had a chance to set XCFLAGS.
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17054 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17055 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17065 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17070 if ac_fn_c_try_link "$LINENO"; then :
17071 libitm_cv_have_sync_builtins=yes
17073 libitm_cv_have_sync_builtins=no
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17079 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17080 if test $libitm_cv_have_sync_builtins = yes; then
17082 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17087 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17088 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17089 $as_echo_n "(cached) " >&6
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #include <stdint.h>
17099 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17104 if ac_fn_c_try_link "$LINENO"; then :
17105 libitm_cv_have_64bit_sync_builtins=yes
17107 libitm_cv_have_64bit_sync_builtins=no
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17113 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17114 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17116 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17120 case "${target_cpu}" in
17121 i[34567]86 | x86_64)
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17123 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17124 if test "${libitm_cv_as_avx+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17139 if ac_fn_c_try_compile "$LINENO"; then :
17140 libitm_cv_as_avx=yes
17142 libitm_cv_as_avx=no
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17148 $as_echo "$libitm_cv_as_avx" >&6; }
17149 if test x$libitm_cv_as_avx = xyes; then
17151 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17157 # Cleanup and exit.
17158 CFLAGS="$save_CFLAGS"
17159 cat >confcache <<\_ACEOF
17160 # This file is a shell script that caches the results of configure
17161 # tests run on this system so they can be shared between configure
17162 # scripts and configure runs, see configure's option --config-cache.
17163 # It is not useful on other systems. If it contains results you don't
17164 # want to keep, you may remove or edit it.
17166 # config.status only pays attention to the cache file if you give it
17167 # the --recheck option to rerun configure.
17169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17171 # following values.
17175 # The following way of writing the cache mishandles newlines in values,
17176 # but we know of no workaround that is simple, portable, and efficient.
17177 # So, we kill variables containing newlines.
17178 # Ultrix sh set writes to stderr and can't be redirected directly,
17179 # and sets the high bit in the cache file unless we assign to the vars.
17181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17182 eval ac_val=\$$ac_var
17186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17190 _ | IFS | as_nl) ;; #(
17191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17192 *) { eval $ac_var=; unset $ac_var;} ;;
17198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17199 *${as_nl}ac_space=\ *)
17200 # `set' does not quote correctly, so add quotes: double-quote
17201 # substitution turns \\\\ into \\, and sed turns \\ into \.
17204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17207 # `set' quotes correctly as required by POSIX, so do not add quotes.
17208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17222 if test -w "$cache_file"; then
17223 test "x$cache_file" != "x/dev/null" &&
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17225 $as_echo "$as_me: updating cache $cache_file" >&6;}
17226 cat confcache >$cache_file
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17234 # Add -Wall -Werror if we are using GCC.
17235 if test "x$GCC" = "xyes"; then
17236 XCFLAGS="$XCFLAGS -Wall -Werror"
17239 XCFLAGS="$XCFLAGS $XPCFLAGS"
17245 if test ${multilib} = yes; then
17246 multilib_arg="--enable-multilib"
17251 # Set up the set of libraries that we need to link against for libitm.
17252 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
17253 # which will force linkage against -lpthread (or equivalent for the system).
17254 # That's not 100% ideal, but about the best we can do easily.
17255 if test $enable_shared = yes; then
17256 link_itm="-litm %{static: $LIBS}"
17258 link_itm="-litm $LIBS"
17262 if test "$ARCH" = x86; then
17270 if test "$libitm_cv_as_avx" = yes; then
17272 ARCH_X86_AVX_FALSE='#'
17274 ARCH_X86_AVX_TRUE='#'
17275 ARCH_X86_AVX_FALSE=
17278 if test $enable_linux_futex = yes; then
17280 ARCH_FUTEX_FALSE='#'
17282 ARCH_FUTEX_TRUE='#'
17287 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17289 cat >confcache <<\_ACEOF
17290 # This file is a shell script that caches the results of configure
17291 # tests run on this system so they can be shared between configure
17292 # scripts and configure runs, see configure's option --config-cache.
17293 # It is not useful on other systems. If it contains results you don't
17294 # want to keep, you may remove or edit it.
17296 # config.status only pays attention to the cache file if you give it
17297 # the --recheck option to rerun configure.
17299 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17300 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17301 # following values.
17305 # The following way of writing the cache mishandles newlines in values,
17306 # but we know of no workaround that is simple, portable, and efficient.
17307 # So, we kill variables containing newlines.
17308 # Ultrix sh set writes to stderr and can't be redirected directly,
17309 # and sets the high bit in the cache file unless we assign to the vars.
17311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17312 eval ac_val=\$$ac_var
17316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17320 _ | IFS | as_nl) ;; #(
17321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17322 *) { eval $ac_var=; unset $ac_var;} ;;
17328 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17329 *${as_nl}ac_space=\ *)
17330 # `set' does not quote correctly, so add quotes: double-quote
17331 # substitution turns \\\\ into \\, and sed turns \\ into \.
17334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17337 # `set' quotes correctly as required by POSIX, so do not add quotes.
17338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17352 if test -w "$cache_file"; then
17353 test "x$cache_file" != "x/dev/null" &&
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17355 $as_echo "$as_me: updating cache $cache_file" >&6;}
17356 cat confcache >$cache_file
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17359 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17365 # Let make expand exec_prefix.
17366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17368 DEFS=-DHAVE_CONFIG_H
17372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17373 # 1. Remove the extension, and $U if already installed.
17374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17375 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17377 # will be set to the directory where LIBOBJS objects are built.
17378 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17379 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17381 LIBOBJS=$ac_libobjs
17383 LTLIBOBJS=$ac_ltlibobjs
17386 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17387 as_fn_error "conditional \"GENINSRC\" was never defined.
17388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17390 if test -n "$EXEEXT"; then
17392 am__EXEEXT_FALSE='#'
17394 am__EXEEXT_TRUE='#'
17398 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17399 as_fn_error "conditional \"AMDEP\" was never defined.
17400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17402 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17403 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17406 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17407 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17410 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17411 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17414 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17415 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17418 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17419 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17423 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17424 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17427 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17428 as_fn_error "conditional \"ARCH_X86\" was never defined.
17429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17432 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17436 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17440 : ${CONFIG_STATUS=./config.status}
17442 ac_clean_files_save=$ac_clean_files
17443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17445 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17447 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17449 # Generated by $as_me.
17450 # Run this file to recreate the current configuration.
17451 # Compiler output produced by configure, useful for debugging
17452 # configure, is in config.log if it exists.
17455 ac_cs_recheck=false
17458 SHELL=\${CONFIG_SHELL-$SHELL}
17461 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17462 ## -------------------- ##
17463 ## M4sh Initialization. ##
17464 ## -------------------- ##
17466 # Be more Bourne compatible
17467 DUALCASE=1; export DUALCASE # for MKS sh
17468 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17472 # is contrary to our usage. Disable this feature.
17473 alias -g '${1+"$@"}'='"$@"'
17474 setopt NO_GLOB_SUBST
17476 case `(set -o) 2>/dev/null` in #(
17488 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17489 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17492 # Prefer a ksh shell builtin over an external printf program on Solaris,
17493 # but without wasting forks for bash or zsh.
17494 if test -z "$BASH_VERSION$ZSH_VERSION" \
17495 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17496 as_echo='print -r --'
17497 as_echo_n='print -rn --'
17498 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17499 as_echo='printf %s\n'
17500 as_echo_n='printf %s'
17502 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17503 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17504 as_echo_n='/usr/ucb/echo -n'
17506 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17507 as_echo_n_body='eval
17511 expr "X$arg" : "X\\(.*\\)$as_nl";
17512 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17514 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17516 export as_echo_n_body
17517 as_echo_n='sh -c $as_echo_n_body as_echo'
17519 export as_echo_body
17520 as_echo='sh -c $as_echo_body as_echo'
17523 # The user is always right.
17524 if test "${PATH_SEPARATOR+set}" != set; then
17526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17534 # We need space, tab and new line, in precisely that order. Quoting is
17535 # there to prevent editors from complaining about space-tab.
17536 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17537 # splitting by setting IFS to empty value.)
17540 # Find who we are. Look in the path if we contain no directory separator.
17542 *[\\/]* ) as_myself=$0 ;;
17543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544 for as_dir in $PATH
17547 test -z "$as_dir" && as_dir=.
17548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17554 # We did not find ourselves, most probably we were run as `sh COMMAND'
17555 # in which case we are not to be found in the path.
17556 if test "x$as_myself" = x; then
17559 if test ! -f "$as_myself"; then
17560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17564 # Unset variables that we do not need and which cause bugs (e.g. in
17565 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17566 # suppresses any "Segmentation fault" message there. '((' could
17567 # trigger a bug in pdksh 5.2.14.
17568 for as_var in BASH_ENV ENV MAIL MAILPATH
17569 do eval test x\${$as_var+set} = xset \
17570 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17583 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17586 # as_fn_error ERROR [LINENO LOG_FD]
17587 # ---------------------------------
17588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17590 # script with status $?, using 1 if that was 0.
17593 as_status=$?; test $as_status -eq 0 && as_status=1
17595 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17598 $as_echo "$as_me: error: $1" >&2
17599 as_fn_exit $as_status
17603 # as_fn_set_status STATUS
17604 # -----------------------
17605 # Set $? to STATUS, without forking.
17606 as_fn_set_status ()
17609 } # as_fn_set_status
17611 # as_fn_exit STATUS
17612 # -----------------
17613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17617 as_fn_set_status $1
17623 # Portably unset VAR.
17626 { eval $1=; unset $1;}
17628 as_unset=as_fn_unset
17629 # as_fn_append VAR VALUE
17630 # ----------------------
17631 # Append the text in VALUE to the end of the definition contained in VAR. Take
17632 # advantage of any shell optimizations that allow amortized linear growth over
17633 # repeated appends, instead of the typical quadratic growth present in naive
17635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17636 eval 'as_fn_append ()
17647 # as_fn_arith ARG...
17648 # ------------------
17649 # Perform arithmetic evaluation on the ARGs, and store the result in the
17650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17651 # must be portable across $(()) and expr.
17652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17653 eval 'as_fn_arith ()
17660 as_val=`expr "$@" || test $? -eq 1`
17665 if expr a : '\(a\)' >/dev/null 2>&1 &&
17666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17673 as_basename=basename
17678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17684 as_me=`$as_basename -- "$0" ||
17685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17686 X"$0" : 'X\(//\)$' \| \
17687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17689 sed '/^.*\/\([^/][^/]*\)\/*$/{
17703 # Avoid depending upon Character Ranges.
17704 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17705 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17706 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17707 as_cr_digits='0123456789'
17708 as_cr_alnum=$as_cr_Letters$as_cr_digits
17710 ECHO_C= ECHO_N= ECHO_T=
17711 case `echo -n x` in #(((((
17713 case `echo 'xy\c'` in
17714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17716 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17723 rm -f conf$$ conf$$.exe conf$$.file
17724 if test -d conf$$.dir; then
17725 rm -f conf$$.dir/conf$$.file
17728 mkdir conf$$.dir 2>/dev/null
17730 if (echo >conf$$.file) 2>/dev/null; then
17731 if ln -s conf$$.file conf$$ 2>/dev/null; then
17733 # ... but there are two gotchas:
17734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17736 # In both cases, we have to default to `cp -p'.
17737 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17739 elif ln conf$$.file conf$$ 2>/dev/null; then
17747 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17748 rmdir conf$$.dir 2>/dev/null
17753 # Create "$as_dir" as a directory, including parents if necessary.
17758 -*) as_dir=./$as_dir;;
17760 test -d "$as_dir" || eval $as_mkdir_p || {
17764 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17765 *) as_qdir=$as_dir;;
17767 as_dirs="'$as_qdir' $as_dirs"
17768 as_dir=`$as_dirname -- "$as_dir" ||
17769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17770 X"$as_dir" : 'X\(//\)[^/]' \| \
17771 X"$as_dir" : 'X\(//\)$' \| \
17772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17773 $as_echo X"$as_dir" |
17774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17778 /^X\(\/\/\)[^/].*/{
17791 test -d "$as_dir" && break
17793 test -z "$as_dirs" || eval "mkdir $as_dirs"
17794 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17798 if mkdir -p . 2>/dev/null; then
17799 as_mkdir_p='mkdir -p "$as_dir"'
17801 test -d ./-p && rmdir ./-p
17805 if test -x / >/dev/null 2>&1; then
17806 as_test_x='test -x'
17808 if ls -dL / >/dev/null 2>&1; then
17815 if test -d "$1"; then
17821 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17822 ???[sx]*):;;*)false;;esac;fi
17826 as_executable_p=$as_test_x
17828 # Sed expression to map a string onto a valid CPP name.
17829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17831 # Sed expression to map a string onto a valid variable name.
17832 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17836 ## ----------------------------------- ##
17837 ## Main body of $CONFIG_STATUS script. ##
17838 ## ----------------------------------- ##
17840 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 # Save the log message, to keep $0 and so on meaningful, and to
17844 # report actual input values of CONFIG_FILES etc. instead of their
17845 # values after options handling.
17847 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
17848 generated by GNU Autoconf 2.64. Invocation command line was
17850 CONFIG_FILES = $CONFIG_FILES
17851 CONFIG_HEADERS = $CONFIG_HEADERS
17852 CONFIG_LINKS = $CONFIG_LINKS
17853 CONFIG_COMMANDS = $CONFIG_COMMANDS
17856 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17861 case $ac_config_files in *"
17862 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17865 case $ac_config_headers in *"
17866 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17871 # Files that config.status was made for.
17872 config_files="$ac_config_files"
17873 config_headers="$ac_config_headers"
17874 config_commands="$ac_config_commands"
17878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17880 \`$as_me' instantiates files and other configuration actions
17881 from templates according to the current configuration. Unless the files
17882 and actions are specified as TAGs, all are instantiated by default.
17884 Usage: $0 [OPTION]... [TAG]...
17886 -h, --help print this help, then exit
17887 -V, --version print version number and configuration settings, then exit
17888 -q, --quiet, --silent
17889 do not print progress messages
17890 -d, --debug don't remove temporary files
17891 --recheck update $as_me by reconfiguring in the same conditions
17892 --file=FILE[:TEMPLATE]
17893 instantiate the configuration file FILE
17894 --header=FILE[:TEMPLATE]
17895 instantiate the configuration header FILE
17897 Configuration files:
17900 Configuration headers:
17903 Configuration commands:
17906 Report bugs to the package provider.
17907 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
17908 General help using GNU software: <http://www.gnu.org/gethelp/>."
17911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17913 GNU TM Runtime Library config.status 1.0
17914 configured by $0, generated by GNU Autoconf 2.64,
17915 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17917 Copyright (C) 2009 Free Software Foundation, Inc.
17918 This config.status script is free software; the Free Software Foundation
17919 gives unlimited permission to copy, distribute and modify it."
17926 test -n "\$AWK" || AWK=awk
17929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17930 # The default lists apply if the user does not specify any file.
17936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17948 # Handling of the options.
17949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17952 $as_echo "$ac_cs_version"; exit ;;
17953 --debug | --debu | --deb | --de | --d | -d )
17955 --file | --fil | --fi | --f )
17958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17960 as_fn_append CONFIG_FILES " '$ac_optarg'"
17961 ac_need_defaults=false;;
17962 --header | --heade | --head | --hea )
17965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17968 ac_need_defaults=false;;
17970 # Conflict between --help and --header
17971 as_fn_error "ambiguous option: \`$1'
17972 Try \`$0 --help' for more information.";;
17973 --help | --hel | -h )
17974 $as_echo "$ac_cs_usage"; exit ;;
17975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17976 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17979 # This is an error.
17980 -*) as_fn_error "unrecognized option: \`$1'
17981 Try \`$0 --help' for more information." ;;
17983 *) as_fn_append ac_config_targets " $1"
17984 ac_need_defaults=false ;;
17990 ac_configure_extra_args=
17992 if $ac_cs_silent; then
17994 ac_configure_extra_args="$ac_configure_extra_args --silent"
17998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17999 if \$ac_cs_recheck; then
18000 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18002 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18003 CONFIG_SHELL='$SHELL'
18004 export CONFIG_SHELL
18009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18013 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18014 ## Running $as_me. ##
18020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18028 with_multisubdir="$with_multisubdir"
18029 with_multisrctop="$with_multisrctop"
18030 with_target_subdir="$with_target_subdir"
18031 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18032 multi_basedir="$multi_basedir"
18033 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18036 GFORTRAN="$GFORTRAN"
18038 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18041 # The HP-UX ksh and POSIX shell print the target directory to stdout
18042 # if CDPATH is set.
18043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18045 sed_quote_subst='$sed_quote_subst'
18046 double_quote_subst='$double_quote_subst'
18047 delay_variable_subst='$delay_variable_subst'
18048 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18049 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18050 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18051 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18052 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18053 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18054 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18055 ECHO='`$ECHO "$ECHO" | $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 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18077 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18078 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18079 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18080 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18081 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18082 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18083 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18084 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18085 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18086 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18087 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18088 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18089 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18090 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18091 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18092 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18093 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18094 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18095 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18096 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"`'
18097 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18098 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18099 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18100 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18101 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18102 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18103 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18104 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18105 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18106 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18107 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18108 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18109 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18110 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18111 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18112 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18113 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18114 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18115 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18116 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18117 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18118 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18119 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18120 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18121 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18122 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18123 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18124 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18125 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18126 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18127 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18128 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18129 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18130 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18131 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18132 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18133 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18134 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18135 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18136 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18137 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18138 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18139 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18140 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18141 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18142 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18143 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18144 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18145 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18146 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18147 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18148 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18149 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18150 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18151 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18152 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18153 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18154 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18155 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18156 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18157 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18158 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18159 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18160 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18161 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18162 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18163 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18164 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18165 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18166 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18167 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18168 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18169 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18170 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18171 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18172 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18173 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18174 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18175 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18176 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18177 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18178 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18179 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18180 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18181 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18182 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18183 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18184 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18185 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18186 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18187 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18188 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18189 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18190 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18191 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18192 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18193 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18194 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18195 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18196 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18197 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18198 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18199 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18200 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18201 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18202 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18203 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18204 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18205 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18206 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18207 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18208 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18209 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18210 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18211 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18212 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18213 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18214 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18215 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18216 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18217 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18218 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18219 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18220 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18221 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18222 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18225 LTCFLAGS='$LTCFLAGS'
18226 compiler='$compiler_DEFAULT'
18228 # A function that is used when there is no print builtin or printf.
18229 func_fallback_echo ()
18231 eval 'cat <<_LTECHO_EOF
18236 # Quote evaled strings.
18250 deplibs_check_method \
18259 lt_cv_sys_global_symbol_pipe \
18260 lt_cv_sys_global_symbol_to_cdecl \
18261 lt_cv_sys_global_symbol_to_c_name_address \
18262 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18263 lt_prog_compiler_no_builtin_flag \
18264 lt_prog_compiler_wl \
18265 lt_prog_compiler_pic \
18266 lt_prog_compiler_static \
18267 lt_cv_prog_compiler_c_o \
18275 export_dynamic_flag_spec \
18276 whole_archive_flag_spec \
18277 compiler_needs_object \
18279 allow_undefined_flag \
18280 no_undefined_flag \
18281 hardcode_libdir_flag_spec \
18282 hardcode_libdir_flag_spec_ld \
18283 hardcode_libdir_separator \
18288 variables_saved_for_relink \
18290 library_names_spec \
18292 install_override_mode \
18296 compiler_lib_search_dirs \
18301 compiler_lib_search_path \
18305 lt_prog_compiler_no_builtin_flag_CXX \
18306 lt_prog_compiler_wl_CXX \
18307 lt_prog_compiler_pic_CXX \
18308 lt_prog_compiler_static_CXX \
18309 lt_cv_prog_compiler_c_o_CXX \
18310 export_dynamic_flag_spec_CXX \
18311 whole_archive_flag_spec_CXX \
18312 compiler_needs_object_CXX \
18314 allow_undefined_flag_CXX \
18315 no_undefined_flag_CXX \
18316 hardcode_libdir_flag_spec_CXX \
18317 hardcode_libdir_flag_spec_ld_CXX \
18318 hardcode_libdir_separator_CXX \
18319 fix_srcfile_path_CXX \
18320 exclude_expsyms_CXX \
18321 include_expsyms_CXX \
18322 file_list_spec_CXX \
18323 compiler_lib_search_dirs_CXX \
18324 predep_objects_CXX \
18325 postdep_objects_CXX \
18328 compiler_lib_search_path_CXX; do
18329 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18330 *[\\\\\\\`\\"\\\$]*)
18331 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18334 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18339 # Double-quote double-evaled strings.
18340 for var in reload_cmds \
18341 old_postinstall_cmds \
18342 old_postuninstall_cmds \
18344 extract_expsyms_cmds \
18345 old_archive_from_new_cmds \
18346 old_archive_from_expsyms_cmds \
18348 archive_expsym_cmds \
18350 module_expsym_cmds \
18351 export_symbols_cmds \
18354 postuninstall_cmds \
18356 sys_lib_search_path_spec \
18357 sys_lib_dlsearch_path_spec \
18359 old_archive_cmds_CXX \
18360 old_archive_from_new_cmds_CXX \
18361 old_archive_from_expsyms_cmds_CXX \
18363 archive_expsym_cmds_CXX \
18365 module_expsym_cmds_CXX \
18366 export_symbols_cmds_CXX \
18367 prelink_cmds_CXX; do
18368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18369 *[\\\\\\\`\\"\\\$]*)
18370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18378 ac_aux_dir='$ac_aux_dir'
18379 xsi_shell='$xsi_shell'
18380 lt_shell_append='$lt_shell_append'
18382 # See if we are running on zsh, and set the options which allow our
18383 # commands through without removal of \ escapes INIT.
18384 if test -n "\${ZSH_VERSION+set}" ; then
18385 setopt NO_GLOB_SUBST
18391 TIMESTAMP='$TIMESTAMP'
18402 acx_cv_header_stdint="$acx_cv_header_stdint"
18403 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18404 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18405 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18406 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18407 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18408 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18409 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18410 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18411 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18412 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18413 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18414 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18415 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 # Handling of arguments.
18423 for ac_config_target in $ac_config_targets
18425 case $ac_config_target in
18426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18427 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18429 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18430 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18432 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18433 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18435 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18440 # If the user did not use the arguments to specify the items to instantiate,
18441 # then the envvar interface is used. Set only those that are not.
18442 # We use the long form for the default assignment because of an extremely
18443 # bizarre bug on SunOS 4.1.3.
18444 if $ac_need_defaults; then
18445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18450 # Have a temporary directory for convenience. Make it in the build tree
18451 # simply because there is no reason against having it here, and in addition,
18452 # creating and moving files from /tmp can sometimes cause problems.
18453 # Hook for its removal unless debugging.
18454 # Note that there is a small window in which the directory will not be cleaned:
18455 # after its creation but before its name has been assigned to `$tmp'.
18459 trap 'exit_status=$?
18460 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18462 trap 'as_fn_exit 1' 1 2 13 15
18464 # Create a (secure) tmp directory for tmp files.
18467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18468 test -n "$tmp" && test -d "$tmp"
18471 tmp=./conf$$-$RANDOM
18472 (umask 077 && mkdir "$tmp")
18473 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18475 # Set up the scripts for CONFIG_FILES section.
18476 # No need to generate them if there are no CONFIG_FILES.
18477 # This happens for instance with `./config.status config.h'.
18478 if test -n "$CONFIG_FILES"; then
18481 ac_cr=`echo X | tr X '\015'`
18482 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18483 # But we know of no other shell where ac_cr would be empty at this
18484 # point, so we can use a bashism as a fallback.
18485 if test "x$ac_cr" = x; then
18486 eval ac_cr=\$\'\\r\'
18488 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18489 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18492 ac_cs_awk_cr=$ac_cr
18495 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18500 echo "cat >conf$$subs.awk <<_ACEOF" &&
18501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18503 } >conf$$subs.sh ||
18504 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18505 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18507 for ac_last_try in false false false false false :; do
18508 . ./conf$$subs.sh ||
18509 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18511 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18512 if test $ac_delim_n = $ac_delim_num; then
18514 elif $ac_last_try; then
18515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18520 rm -f conf$$subs.sh
18522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18523 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18527 s/^/S["/; s/!.*/"]=/
18537 s/\(.\{148\}\).*/\1/
18539 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18551 s/\(.\{148\}\).*/\1/
18553 s/["\\]/\\&/g; s/^/"/; s/$/"/
18557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18562 ' <conf$$subs.awk | sed '
18567 ' >>$CONFIG_STATUS || ac_write_fail=1
18568 rm -f conf$$subs.awk
18569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18571 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18572 for (key in S) S_is_set[key] = 1
18578 nfields = split(line, field, "@")
18580 len = length(field[1])
18581 for (i = 2; i < nfields; i++) {
18583 keylen = length(key)
18584 if (S_is_set[key]) {
18586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18587 len += length(value) + length(field[++i])
18598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18600 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18603 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18604 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18607 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18608 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18609 # trailing colons and then remove the whole line if VPATH becomes empty
18610 # (actually we leave an empty line to preserve line numbers).
18611 if test "x$srcdir" = x.; then
18612 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18613 s/:*\$(srcdir):*/:/
18614 s/:*\${srcdir}:*/:/
18616 s/^\([^=]*=[ ]*\):*/\1/
18622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623 fi # test -n "$CONFIG_FILES"
18625 # Set up the scripts for CONFIG_HEADERS section.
18626 # No need to generate them if there are no CONFIG_HEADERS.
18627 # This happens for instance with `./config.status Makefile'.
18628 if test -n "$CONFIG_HEADERS"; then
18629 cat >"$tmp/defines.awk" <<\_ACAWK ||
18633 # Transform confdefs.h into an awk script `defines.awk', embedded as
18634 # here-document in config.status, that substitutes the proper values into
18635 # config.h.in to produce config.h.
18637 # Create a delimiter string that does not exist in confdefs.h, to ease
18638 # handling of long lines.
18640 for ac_last_try in false false :; do
18641 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18642 if test -z "$ac_t"; then
18644 elif $ac_last_try; then
18645 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18651 # For the awk script, D is an array of macro values keyed by name,
18652 # likewise P contains macro parameters if any. Preserve backslash
18653 # newline sequences.
18655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18657 s/.\{148\}/&'"$ac_delim"'/g
18660 s/^[ ]*#[ ]*define[ ][ ]*/ /
18667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18674 D["\1"]=" \3\\\\\\n"\\/p
18676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18681 s/.\{148\}/&'"$ac_delim"'/g
18686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18691 ' <confdefs.h | sed '
18692 s/'"$ac_delim"'/"\\\
18693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696 for (key in D) D_is_set[key] = 1
18699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18701 split(line, arg, " ")
18702 if (arg[1] == "#") {
18706 defundef = substr(arg[1], 2)
18709 split(mac1, mac2, "(") #)
18711 prefix = substr(line, 1, index(line, defundef) - 1)
18712 if (D_is_set[macro]) {
18713 # Preserve the white space surrounding the "#".
18714 print prefix "define", macro P[macro] D[macro]
18717 # Replace #undef with comments. This is necessary, for example,
18718 # in the case of _POSIX_SOURCE, which is predefined and required
18719 # on some systems where configure will not decide to define it.
18720 if (defundef == "undef") {
18721 print "/*", prefix defundef, macro, "*/"
18729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18730 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18731 fi # test -n "$CONFIG_HEADERS"
18734 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18739 :[FHLC]) ac_mode=$ac_tag; continue;;
18741 case $ac_mode$ac_tag in
18743 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18744 :[FH]-) ac_tag=-:-;;
18745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18762 -) ac_f="$tmp/stdin";;
18763 *) # Look for the file first in the build tree, then in the source tree
18764 # (if the path is not absolute). The absolute path cannot be DOS-style,
18765 # because $ac_f cannot contain `:'.
18769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18771 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18773 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18774 as_fn_append ac_file_inputs " '$ac_f'"
18777 # Let's still pretend it is `configure' which instantiates (i.e., don't
18778 # use $as_me), people would be surprised to read:
18779 # /* config.h. Generated by config.status. */
18780 configure_input='Generated from '`
18781 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18783 if test x"$ac_file" != x-; then
18784 configure_input="$ac_file. $configure_input"
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18786 $as_echo "$as_me: creating $ac_file" >&6;}
18788 # Neutralize special characters interpreted by sed in replacement strings.
18789 case $configure_input in #(
18790 *\&* | *\|* | *\\* )
18791 ac_sed_conf_input=`$as_echo "$configure_input" |
18792 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18793 *) ac_sed_conf_input=$configure_input;;
18797 *:-:* | *:-) cat >"$tmp/stdin" \
18798 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18803 ac_dir=`$as_dirname -- "$ac_file" ||
18804 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18805 X"$ac_file" : 'X\(//\)[^/]' \| \
18806 X"$ac_file" : 'X\(//\)$' \| \
18807 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18808 $as_echo X"$ac_file" |
18809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18813 /^X\(\/\/\)[^/].*/{
18826 as_dir="$ac_dir"; as_fn_mkdir_p
18830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18833 # A ".." for each directory in $ac_dir_suffix.
18834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18835 case $ac_top_builddir_sub in
18836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18840 ac_abs_top_builddir=$ac_pwd
18841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18842 # for backward compatibility:
18843 ac_top_builddir=$ac_top_build_prefix
18846 .) # We are building in place.
18848 ac_top_srcdir=$ac_top_builddir_sub
18849 ac_abs_top_srcdir=$ac_pwd ;;
18850 [\\/]* | ?:[\\/]* ) # Absolute name.
18851 ac_srcdir=$srcdir$ac_dir_suffix;
18852 ac_top_srcdir=$srcdir
18853 ac_abs_top_srcdir=$srcdir ;;
18854 *) # Relative name.
18855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18856 ac_top_srcdir=$ac_top_build_prefix$srcdir
18857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18869 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18870 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18872 ac_MKDIR_P=$MKDIR_P
18874 [\\/$]* | ?:[\\/]* ) ;;
18875 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880 # If the template does not know about datarootdir, expand it.
18881 # FIXME: This hack should be removed a few years after 2.60.
18882 ac_datarootdir_hack=; ac_datarootdir_seen=
18893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18894 *datarootdir*) ac_datarootdir_seen=yes;;
18895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18897 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900 ac_datarootdir_hack='
18901 s&@datadir@&$datadir&g
18902 s&@docdir@&$docdir&g
18903 s&@infodir@&$infodir&g
18904 s&@localedir@&$localedir&g
18905 s&@mandir@&$mandir&g
18906 s&\\\${datarootdir}&$datarootdir&g' ;;
18910 # Neutralize VPATH when `$srcdir' = `.'.
18911 # Shell code in configure.ac might set extrasub.
18912 # FIXME: do we really want to maintain this feature?
18913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18914 ac_sed_extra="$ac_vpsub
18917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18920 s|@configure_input@|$ac_sed_conf_input|;t t
18921 s&@top_builddir@&$ac_top_builddir_sub&;t t
18922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18923 s&@srcdir@&$ac_srcdir&;t t
18924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18925 s&@top_srcdir@&$ac_top_srcdir&;t t
18926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18927 s&@builddir@&$ac_builddir&;t t
18928 s&@abs_builddir@&$ac_abs_builddir&;t t
18929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18930 s&@INSTALL@&$ac_INSTALL&;t t
18931 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18932 $ac_datarootdir_hack
18934 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18935 || as_fn_error "could not create $ac_file" "$LINENO" 5
18937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18938 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18941 which seems to be undefined. Please make sure it is defined." >&5
18942 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18943 which seems to be undefined. Please make sure it is defined." >&2;}
18947 -) cat "$tmp/out" && rm -f "$tmp/out";;
18948 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18950 || as_fn_error "could not create $ac_file" "$LINENO" 5
18956 if test x"$ac_file" != x-; then
18958 $as_echo "/* $configure_input */" \
18959 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18960 } >"$tmp/config.h" \
18961 || as_fn_error "could not create $ac_file" "$LINENO" 5
18962 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18964 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18967 mv "$tmp/config.h" "$ac_file" \
18968 || as_fn_error "could not create $ac_file" "$LINENO" 5
18971 $as_echo "/* $configure_input */" \
18972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18973 || as_fn_error "could not create -" "$LINENO" 5
18975 # Compute "$ac_file"'s index in $config_headers.
18978 for _am_header in $config_headers :; do
18979 case $_am_header in
18980 $_am_arg | $_am_arg:* )
18983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18986 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18987 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18988 X"$_am_arg" : 'X\(//\)[^/]' \| \
18989 X"$_am_arg" : 'X\(//\)$' \| \
18990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18991 $as_echo X"$_am_arg" |
18992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18996 /^X\(\/\/\)[^/].*/{
19008 s/.*/./; q'`/stamp-h$_am_stamp_count
19011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19012 $as_echo "$as_me: executing $ac_file commands" >&6;}
19017 case $ac_file$ac_mode in
19019 # Only add multilib support code if we just rebuilt the top-level
19021 case " $CONFIG_FILES " in
19023 ac_file=Makefile . ${multi_basedir}/config-ml.in
19026 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19027 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19028 # are listed without --file. Let's play safe and only enable the eval
19029 # if we detect the quoting.
19030 case $CONFIG_FILES in
19031 *\'*) eval set x "$CONFIG_FILES" ;;
19032 *) set x $CONFIG_FILES ;;
19037 # Strip MF so we end up with the name of the file.
19038 mf=`echo "$mf" | sed -e 's/:.*$//'`
19039 # Check whether this is an Automake generated Makefile or not.
19040 # We used to match only the files named `Makefile.in', but
19041 # some people rename them; so instead we look at the file content.
19042 # Grep'ing the first line is not enough: some people post-process
19043 # each Makefile.in and add a new line on top of each file to say so.
19044 # Grep'ing the whole file is not good either: AIX grep has a line
19045 # limit of 2048, but all sed's we know have understand at least 4000.
19046 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19047 dirpart=`$as_dirname -- "$mf" ||
19048 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19049 X"$mf" : 'X\(//\)[^/]' \| \
19050 X"$mf" : 'X\(//\)$' \| \
19051 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19057 /^X\(\/\/\)[^/].*/{
19073 # Extract the definition of DEPDIR, am__include, and am__quote
19074 # from the Makefile without running `make'.
19075 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19076 test -z "$DEPDIR" && continue
19077 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19078 test -z "am__include" && continue
19079 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19080 # When using ansi2knr, U may be empty or an underscore; expand it
19081 U=`sed -n 's/^U = //p' < "$mf"`
19082 # Find all dependency output files, they are included files with
19083 # $(DEPDIR) in their names. We invoke sed twice because it is the
19084 # simplest approach to changing $(DEPDIR) to its actual value in the
19086 for file in `sed -n "
19087 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19088 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19089 # Make sure the directory exists.
19090 test -f "$dirpart/$file" && continue
19091 fdir=`$as_dirname -- "$file" ||
19092 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19093 X"$file" : 'X\(//\)[^/]' \| \
19094 X"$file" : 'X\(//\)$' \| \
19095 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19096 $as_echo X"$file" |
19097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19101 /^X\(\/\/\)[^/].*/{
19114 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19115 # echo "creating $dirpart/$file"
19116 echo '# dummy' > "$dirpart/$file"
19123 # See if we are running on zsh, and set the options which allow our
19124 # commands through without removal of \ escapes.
19125 if test -n "${ZSH_VERSION+set}" ; then
19126 setopt NO_GLOB_SUBST
19129 cfgfile="${ofile}T"
19130 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19133 cat <<_LT_EOF >> "$cfgfile"
19136 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19137 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19139 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19141 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19142 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19143 # Written by Gordon Matzigkeit, 1996
19145 # This file is part of GNU Libtool.
19147 # GNU Libtool is free software; you can redistribute it and/or
19148 # modify it under the terms of the GNU General Public License as
19149 # published by the Free Software Foundation; either version 2 of
19150 # the License, or (at your option) any later version.
19152 # As a special exception to the GNU General Public License,
19153 # if you distribute this file as part of a program or library that
19154 # is built using GNU Libtool, you may include this file under the
19155 # same distribution terms that you use for the rest of that program.
19157 # GNU Libtool is distributed in the hope that it will be useful,
19158 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19159 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19160 # GNU General Public License for more details.
19162 # You should have received a copy of the GNU General Public License
19163 # along with GNU Libtool; see the file COPYING. If not, a copy
19164 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19165 # obtained by writing to the Free Software Foundation, Inc.,
19166 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19169 # The names of the tagged configurations supported by this script.
19170 available_tags="CXX "
19172 # ### BEGIN LIBTOOL CONFIG
19174 # Which release of libtool.m4 was used?
19175 macro_version=$macro_version
19176 macro_revision=$macro_revision
19178 # Whether or not to build shared libraries.
19179 build_libtool_libs=$enable_shared
19181 # Whether or not to build static libraries.
19182 build_old_libs=$enable_static
19184 # What type of objects to build.
19187 # Whether or not to optimize for fast installation.
19188 fast_install=$enable_fast_install
19190 # Shell to use when invoking shell scripts.
19193 # An echo program that protects backslashes.
19197 host_alias=$host_alias
19201 # The build system.
19202 build_alias=$build_alias
19206 # A sed program that does not truncate output.
19209 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19210 Xsed="\$SED -e 1s/^X//"
19212 # A grep program that handles long lines.
19218 # A literal string matcher.
19221 # A BSD- or MS-compatible name lister.
19224 # Whether we need soft or hard links.
19227 # What is the maximum length of a command?
19228 max_cmd_len=$max_cmd_len
19230 # Object file suffix (normally "o").
19233 # Executable file suffix (normally "").
19236 # whether the shell understands "unset".
19239 # turn spaces into newlines.
19242 # turn newlines into spaces.
19245 # An object symbol dumper.
19246 OBJDUMP=$lt_OBJDUMP
19248 # Method to check whether dependent libraries are shared objects.
19249 deplibs_check_method=$lt_deplibs_check_method
19251 # Command to use when deplibs_check_method == "file_magic".
19252 file_magic_cmd=$lt_file_magic_cmd
19256 AR_FLAGS=$lt_AR_FLAGS
19258 # A symbol stripping program.
19261 # Commands used to install an old-style archive.
19263 old_postinstall_cmds=$lt_old_postinstall_cmds
19264 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19266 # Whether to use a lock for old archive extraction.
19267 lock_old_archive_extraction=$lock_old_archive_extraction
19272 # LTCC compiler flags.
19273 LTCFLAGS=$lt_CFLAGS
19275 # Take the output of nm and produce a listing of raw symbols and C names.
19276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19278 # Transform the output of nm in a proper C declaration.
19279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19281 # Transform the output of nm in a C name address pair.
19282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19284 # Transform the output of nm in a C name address pair when lib prefix is needed.
19285 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19287 # The name of the directory that contains temporary libtool files.
19290 # Used to examine libraries when file_magic_cmd begins with "file".
19291 MAGIC_CMD=$MAGIC_CMD
19293 # Must we lock files when doing compilation?
19294 need_locks=$lt_need_locks
19296 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19297 DSYMUTIL=$lt_DSYMUTIL
19299 # Tool to change global to local symbols on Mac OS X.
19302 # Tool to manipulate fat objects and archives on Mac OS X.
19305 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19308 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19309 OTOOL64=$lt_OTOOL64
19311 # Old archive suffix (normally "a").
19314 # Shared library suffix (normally ".so").
19315 shrext_cmds=$lt_shrext_cmds
19317 # The commands to extract the exported symbol list from a shared archive.
19318 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19320 # Variables whose values should be saved in libtool wrapper scripts and
19321 # restored at link time.
19322 variables_saved_for_relink=$lt_variables_saved_for_relink
19324 # Do we need the "lib" prefix for modules?
19325 need_lib_prefix=$need_lib_prefix
19327 # Do we need a version for libraries?
19328 need_version=$need_version
19330 # Library versioning type.
19331 version_type=$version_type
19333 # Shared library runtime path variable.
19334 runpath_var=$runpath_var
19336 # Shared library path variable.
19337 shlibpath_var=$shlibpath_var
19339 # Is shlibpath searched before the hard-coded library search path?
19340 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19342 # Format of library name prefix.
19343 libname_spec=$lt_libname_spec
19345 # List of archive names. First name is the real one, the rest are links.
19346 # The last name is the one that the linker finds with -lNAME
19347 library_names_spec=$lt_library_names_spec
19349 # The coded name of the library, if different from the real name.
19350 soname_spec=$lt_soname_spec
19352 # Permission mode override for installation of shared libraries.
19353 install_override_mode=$lt_install_override_mode
19355 # Command to use after installation of a shared archive.
19356 postinstall_cmds=$lt_postinstall_cmds
19358 # Command to use after uninstallation of a shared archive.
19359 postuninstall_cmds=$lt_postuninstall_cmds
19361 # Commands used to finish a libtool library installation in a directory.
19362 finish_cmds=$lt_finish_cmds
19364 # As "finish_cmds", except a single script fragment to be evaled but
19366 finish_eval=$lt_finish_eval
19368 # Whether we should hardcode library paths into libraries.
19369 hardcode_into_libs=$hardcode_into_libs
19371 # Compile-time system search path for libraries.
19372 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19374 # Run-time system search path for libraries.
19375 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19377 # Whether dlopen is supported.
19378 dlopen_support=$enable_dlopen
19380 # Whether dlopen of programs is supported.
19381 dlopen_self=$enable_dlopen_self
19383 # Whether dlopen of statically linked programs is supported.
19384 dlopen_self_static=$enable_dlopen_self_static
19386 # Commands to strip libraries.
19387 old_striplib=$lt_old_striplib
19388 striplib=$lt_striplib
19391 # The linker used to build libraries.
19394 # How to create reloadable object files.
19395 reload_flag=$lt_reload_flag
19396 reload_cmds=$lt_reload_cmds
19398 # Commands used to build an old-style archive.
19399 old_archive_cmds=$lt_old_archive_cmds
19401 # A language specific compiler.
19404 # Is the compiler the GNU compiler?
19407 # Compiler flag to turn off builtin functions.
19408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19410 # How to pass a linker flag through the compiler.
19411 wl=$lt_lt_prog_compiler_wl
19413 # Additional compiler flags for building library objects.
19414 pic_flag=$lt_lt_prog_compiler_pic
19416 # Compiler flag to prevent dynamic linking.
19417 link_static_flag=$lt_lt_prog_compiler_static
19419 # Does compiler simultaneously support -c and -o options?
19420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19422 # Whether or not to add -lc for building shared libraries.
19423 build_libtool_need_lc=$archive_cmds_need_lc
19425 # Whether or not to disallow shared libs when runtime libs are static.
19426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19428 # Compiler flag to allow reflexive dlopens.
19429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19431 # Compiler flag to generate shared objects directly from archives.
19432 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19434 # Whether the compiler copes with passing no objects directly.
19435 compiler_needs_object=$lt_compiler_needs_object
19437 # Create an old-style archive from a shared archive.
19438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19440 # Create a temporary old-style archive to link instead of a shared archive.
19441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19443 # Commands used to build a shared archive.
19444 archive_cmds=$lt_archive_cmds
19445 archive_expsym_cmds=$lt_archive_expsym_cmds
19447 # Commands used to build a loadable module if different from building
19448 # a shared archive.
19449 module_cmds=$lt_module_cmds
19450 module_expsym_cmds=$lt_module_expsym_cmds
19452 # Whether we are building with GNU ld or not.
19453 with_gnu_ld=$lt_with_gnu_ld
19455 # Flag that allows shared libraries with undefined symbols to be built.
19456 allow_undefined_flag=$lt_allow_undefined_flag
19458 # Flag that enforces no undefined symbols.
19459 no_undefined_flag=$lt_no_undefined_flag
19461 # Flag to hardcode \$libdir into a binary during linking.
19462 # This must work even if \$libdir does not exist
19463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19465 # If ld is used when linking, flag to hardcode \$libdir into a binary
19466 # during linking. This must work even if \$libdir does not exist.
19467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19469 # Whether we need a single "-rpath" flag with a separated argument.
19470 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19473 # DIR into the resulting binary.
19474 hardcode_direct=$hardcode_direct
19476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477 # DIR into the resulting binary and the resulting library dependency is
19478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19479 # library is relocated.
19480 hardcode_direct_absolute=$hardcode_direct_absolute
19482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19483 # into the resulting binary.
19484 hardcode_minus_L=$hardcode_minus_L
19486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19487 # into the resulting binary.
19488 hardcode_shlibpath_var=$hardcode_shlibpath_var
19490 # Set to "yes" if building a shared library automatically hardcodes DIR
19491 # into the library and all subsequent libraries and executables linked
19493 hardcode_automatic=$hardcode_automatic
19495 # Set to yes if linker adds runtime paths of dependent libraries
19496 # to runtime path list.
19497 inherit_rpath=$inherit_rpath
19499 # Whether libtool must link a program against all its dependency libraries.
19500 link_all_deplibs=$link_all_deplibs
19502 # Fix the shell variable \$srcfile for the compiler.
19503 fix_srcfile_path=$lt_fix_srcfile_path
19505 # Set to "yes" if exported symbols are required.
19506 always_export_symbols=$always_export_symbols
19508 # The commands to list exported symbols.
19509 export_symbols_cmds=$lt_export_symbols_cmds
19511 # Symbols that should not be listed in the preloaded symbols.
19512 exclude_expsyms=$lt_exclude_expsyms
19514 # Symbols that must always be exported.
19515 include_expsyms=$lt_include_expsyms
19517 # Commands necessary for linking programs (against libraries) with templates.
19518 prelink_cmds=$lt_prelink_cmds
19520 # Specify filename containing input files.
19521 file_list_spec=$lt_file_list_spec
19523 # How to hardcode a shared library path into an executable.
19524 hardcode_action=$hardcode_action
19526 # The directories searched by this compiler when creating a shared library.
19527 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19529 # Dependencies to place before and after the objects being linked to
19530 # create a shared library.
19531 predep_objects=$lt_predep_objects
19532 postdep_objects=$lt_postdep_objects
19533 predeps=$lt_predeps
19534 postdeps=$lt_postdeps
19536 # The library search path used internally by the compiler when linking
19537 # a shared library.
19538 compiler_lib_search_path=$lt_compiler_lib_search_path
19540 # ### END LIBTOOL CONFIG
19546 cat <<\_LT_EOF >> "$cfgfile"
19547 # AIX sometimes has problems with the GCC collect2 program. For some
19548 # reason, if we set the COLLECT_NAMES environment variable, the problems
19549 # vanish in a puff of smoke.
19550 if test "X${COLLECT_NAMES+set}" != Xset; then
19552 export COLLECT_NAMES
19559 ltmain="$ac_aux_dir/ltmain.sh"
19562 # We use sed instead of cat because bash on DJGPP gets confused if
19563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19564 # text mode, it properly converts lines to CR/LF. This bash problem
19565 # is reportedly fixed, but why not run on old versions too?
19566 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19567 || (rm -f "$cfgfile"; exit 1)
19571 cat << \_LT_EOF >> "$cfgfile"
19573 # func_dirname file append nondir_replacement
19574 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19575 # otherwise set result to NONDIR_REPLACEMENT.
19579 */*) func_dirname_result="${1%/*}${2}" ;;
19580 * ) func_dirname_result="${3}" ;;
19584 # func_basename file
19587 func_basename_result="${1##*/}"
19590 # func_dirname_and_basename file append nondir_replacement
19591 # perform func_basename and func_dirname in a single function
19593 # dirname: Compute the dirname of FILE. If nonempty,
19594 # add APPEND to the result, otherwise set result
19595 # to NONDIR_REPLACEMENT.
19596 # value returned in "$func_dirname_result"
19597 # basename: Compute filename of FILE.
19598 # value retuned in "$func_basename_result"
19599 # Implementation must be kept synchronized with func_dirname
19600 # and func_basename. For efficiency, we do not delegate to
19601 # those functions but instead duplicate the functionality here.
19602 func_dirname_and_basename ()
19605 */*) func_dirname_result="${1%/*}${2}" ;;
19606 * ) func_dirname_result="${3}" ;;
19608 func_basename_result="${1##*/}"
19611 # func_stripname prefix suffix name
19612 # strip PREFIX and SUFFIX off of NAME.
19613 # PREFIX and SUFFIX must not contain globbing or regex special
19614 # characters, hashes, percent signs, but SUFFIX may contain a leading
19615 # dot (in which case that matches only a dot).
19618 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19619 # positional parameters, so assign one to ordinary parameter first.
19620 func_stripname_result=${3}
19621 func_stripname_result=${func_stripname_result#"${1}"}
19622 func_stripname_result=${func_stripname_result%"${2}"}
19628 func_opt_split_opt=${1%%=*}
19629 func_opt_split_arg=${1#*=}
19636 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19637 *) func_lo2o_result=${1} ;;
19641 # func_xform libobj-or-source
19644 func_xform_result=${1%.*}.lo
19647 # func_arith arithmetic-term...
19650 func_arith_result=$(( $* ))
19654 # STRING may not start with a hyphen.
19657 func_len_result=${#1}
19662 *) # Bourne compatible functions.
19663 cat << \_LT_EOF >> "$cfgfile"
19665 # func_dirname file append nondir_replacement
19666 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19667 # otherwise set result to NONDIR_REPLACEMENT.
19670 # Extract subdirectory from the argument.
19671 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19672 if test "X$func_dirname_result" = "X${1}"; then
19673 func_dirname_result="${3}"
19675 func_dirname_result="$func_dirname_result${2}"
19679 # func_basename file
19682 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19686 # func_stripname prefix suffix name
19687 # strip PREFIX and SUFFIX off of NAME.
19688 # PREFIX and SUFFIX must not contain globbing or regex special
19689 # characters, hashes, percent signs, but SUFFIX may contain a leading
19690 # dot (in which case that matches only a dot).
19691 # func_strip_suffix prefix name
19695 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19696 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19701 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19702 my_sed_long_arg='1s/^-[^=]*=//'
19707 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19708 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19714 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19717 # func_xform libobj-or-source
19720 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19723 # func_arith arithmetic-term...
19726 func_arith_result=`expr "$@"`
19730 # STRING may not start with a hyphen.
19733 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19739 case $lt_shell_append in
19741 cat << \_LT_EOF >> "$cfgfile"
19743 # func_append var value
19744 # Append VALUE to the end of shell variable VAR.
19752 cat << \_LT_EOF >> "$cfgfile"
19754 # func_append var value
19755 # Append VALUE to the end of shell variable VAR.
19766 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19767 || (rm -f "$cfgfile"; exit 1)
19769 mv -f "$cfgfile" "$ofile" ||
19770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19774 cat <<_LT_EOF >> "$ofile"
19776 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19778 # The linker used to build libraries.
19781 # How to create reloadable object files.
19782 reload_flag=$lt_reload_flag_CXX
19783 reload_cmds=$lt_reload_cmds_CXX
19785 # Commands used to build an old-style archive.
19786 old_archive_cmds=$lt_old_archive_cmds_CXX
19788 # A language specific compiler.
19789 CC=$lt_compiler_CXX
19791 # Is the compiler the GNU compiler?
19794 # Compiler flag to turn off builtin functions.
19795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19797 # How to pass a linker flag through the compiler.
19798 wl=$lt_lt_prog_compiler_wl_CXX
19800 # Additional compiler flags for building library objects.
19801 pic_flag=$lt_lt_prog_compiler_pic_CXX
19803 # Compiler flag to prevent dynamic linking.
19804 link_static_flag=$lt_lt_prog_compiler_static_CXX
19806 # Does compiler simultaneously support -c and -o options?
19807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19809 # Whether or not to add -lc for building shared libraries.
19810 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19812 # Whether or not to disallow shared libs when runtime libs are static.
19813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19815 # Compiler flag to allow reflexive dlopens.
19816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19818 # Compiler flag to generate shared objects directly from archives.
19819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19821 # Whether the compiler copes with passing no objects directly.
19822 compiler_needs_object=$lt_compiler_needs_object_CXX
19824 # Create an old-style archive from a shared archive.
19825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19827 # Create a temporary old-style archive to link instead of a shared archive.
19828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19830 # Commands used to build a shared archive.
19831 archive_cmds=$lt_archive_cmds_CXX
19832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19834 # Commands used to build a loadable module if different from building
19835 # a shared archive.
19836 module_cmds=$lt_module_cmds_CXX
19837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19839 # Whether we are building with GNU ld or not.
19840 with_gnu_ld=$lt_with_gnu_ld_CXX
19842 # Flag that allows shared libraries with undefined symbols to be built.
19843 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19845 # Flag that enforces no undefined symbols.
19846 no_undefined_flag=$lt_no_undefined_flag_CXX
19848 # Flag to hardcode \$libdir into a binary during linking.
19849 # This must work even if \$libdir does not exist
19850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19852 # If ld is used when linking, flag to hardcode \$libdir into a binary
19853 # during linking. This must work even if \$libdir does not exist.
19854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19856 # Whether we need a single "-rpath" flag with a separated argument.
19857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19860 # DIR into the resulting binary.
19861 hardcode_direct=$hardcode_direct_CXX
19863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19864 # DIR into the resulting binary and the resulting library dependency is
19865 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19866 # library is relocated.
19867 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19869 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19870 # into the resulting binary.
19871 hardcode_minus_L=$hardcode_minus_L_CXX
19873 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19874 # into the resulting binary.
19875 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19877 # Set to "yes" if building a shared library automatically hardcodes DIR
19878 # into the library and all subsequent libraries and executables linked
19880 hardcode_automatic=$hardcode_automatic_CXX
19882 # Set to yes if linker adds runtime paths of dependent libraries
19883 # to runtime path list.
19884 inherit_rpath=$inherit_rpath_CXX
19886 # Whether libtool must link a program against all its dependency libraries.
19887 link_all_deplibs=$link_all_deplibs_CXX
19889 # Fix the shell variable \$srcfile for the compiler.
19890 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19892 # Set to "yes" if exported symbols are required.
19893 always_export_symbols=$always_export_symbols_CXX
19895 # The commands to list exported symbols.
19896 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19898 # Symbols that should not be listed in the preloaded symbols.
19899 exclude_expsyms=$lt_exclude_expsyms_CXX
19901 # Symbols that must always be exported.
19902 include_expsyms=$lt_include_expsyms_CXX
19904 # Commands necessary for linking programs (against libraries) with templates.
19905 prelink_cmds=$lt_prelink_cmds_CXX
19907 # Specify filename containing input files.
19908 file_list_spec=$lt_file_list_spec_CXX
19910 # How to hardcode a shared library path into an executable.
19911 hardcode_action=$hardcode_action_CXX
19913 # The directories searched by this compiler when creating a shared library.
19914 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19916 # Dependencies to place before and after the objects being linked to
19917 # create a shared library.
19918 predep_objects=$lt_predep_objects_CXX
19919 postdep_objects=$lt_postdep_objects_CXX
19920 predeps=$lt_predeps_CXX
19921 postdeps=$lt_postdeps_CXX
19923 # The library search path used internally by the compiler when linking
19924 # a shared library.
19925 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19927 # ### END LIBTOOL TAG CONFIG: CXX
19932 if test "$GCC" = yes; then
19933 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19935 echo "/* generated for $CC */" > tmp-stdint.h
19938 sed 's/^ *//' >> tmp-stdint.h <<EOF
19940 #ifndef GCC_GENERATED_STDINT_H
19941 #define GCC_GENERATED_STDINT_H 1
19943 #include <sys/types.h>
19946 if test "$acx_cv_header_stdint" != stdint.h; then
19947 echo "#include <stddef.h>" >> tmp-stdint.h
19949 if test "$acx_cv_header_stdint" != stddef.h; then
19950 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19953 sed 's/^ *//' >> tmp-stdint.h <<EOF
19954 /* glibc uses these symbols as guards to prevent redefinitions. */
19955 #ifdef __int8_t_defined
19960 #ifdef __uint32_t_defined
19966 # ----------------- done header, emit basic int types -------------
19967 if test "$acx_cv_header_stdint" = stddef.h; then
19968 sed 's/^ *//' >> tmp-stdint.h <<EOF
19972 #ifndef __uint8_t_defined
19973 #define __uint8_t_defined
19975 typedef unsigned $acx_cv_type_int8_t uint8_t;
19982 #ifndef __uint16_t_defined
19983 #define __uint16_t_defined
19985 typedef unsigned $acx_cv_type_int16_t uint16_t;
19992 #ifndef __uint32_t_defined
19993 #define __uint32_t_defined
19995 typedef unsigned $acx_cv_type_int32_t uint32_t;
20002 #ifndef __int8_t_defined
20003 #define __int8_t_defined
20005 typedef $acx_cv_type_int8_t int8_t;
20012 #ifndef __int16_t_defined
20013 #define __int16_t_defined
20015 typedef $acx_cv_type_int16_t int16_t;
20022 #ifndef __int32_t_defined
20023 #define __int32_t_defined
20025 typedef $acx_cv_type_int32_t int32_t;
20030 elif test "$ac_cv_type_u_int32_t" = yes; then
20031 sed 's/^ *//' >> tmp-stdint.h <<EOF
20033 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20046 #ifndef __uint8_t_defined
20047 #define __uint8_t_defined
20049 typedef u_int8_t uint8_t;
20056 #ifndef __uint16_t_defined
20057 #define __uint16_t_defined
20059 typedef u_int16_t uint16_t;
20066 #ifndef __uint32_t_defined
20067 #define __uint32_t_defined
20069 typedef u_int32_t uint32_t;
20075 sed 's/^ *//' >> tmp-stdint.h <<EOF
20077 /* Some systems have guard macros to prevent redefinitions, define them. */
20099 # ------------- done basic int types, emit int64_t types ------------
20100 if test "$ac_cv_type_uint64_t" = yes; then
20101 sed 's/^ *//' >> tmp-stdint.h <<EOF
20103 /* system headers have good uint64_t and int64_t */
20111 elif test "$ac_cv_type_u_int64_t" = yes; then
20112 sed 's/^ *//' >> tmp-stdint.h <<EOF
20114 /* system headers have an u_int64_t (and int64_t) */
20120 #ifndef __uint64_t_defined
20121 #define __uint64_t_defined
20123 typedef u_int64_t uint64_t;
20128 elif test -n "$acx_cv_type_int64_t"; then
20129 sed 's/^ *//' >> tmp-stdint.h <<EOF
20131 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20135 typedef $acx_cv_type_int64_t int64_t;
20140 #ifndef __uint64_t_defined
20141 #define __uint64_t_defined
20143 typedef unsigned $acx_cv_type_int64_t uint64_t;
20149 sed 's/^ *//' >> tmp-stdint.h <<EOF
20151 /* some common heuristics for int64_t, using compiler-specific tests */
20152 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20155 #ifndef __int64_t_defined
20157 typedef long long int64_t;
20164 typedef unsigned long long uint64_t;
20168 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20169 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20170 does not implement __extension__. But that compiler doesn't define
20172 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20173 # define __extension__
20179 __extension__ typedef long long int64_t;
20185 __extension__ typedef unsigned long long uint64_t;
20189 #elif !defined __STRICT_ANSI__
20190 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20195 typedef __int64 int64_t;
20201 typedef unsigned __int64 uint64_t;
20204 # endif /* compiler */
20206 #endif /* ANSI version */
20210 # ------------- done int64_t types, emit intptr types ------------
20211 if test "$ac_cv_type_uintptr_t" != yes; then
20212 sed 's/^ *//' >> tmp-stdint.h <<EOF
20214 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20215 #ifndef __uintptr_t_defined
20217 typedef u$acx_cv_type_intptr_t uintptr_t;
20220 #ifndef __intptr_t_defined
20222 typedef $acx_cv_type_intptr_t intptr_t;
20228 # ------------- done intptr types, emit int_least types ------------
20229 if test "$ac_cv_type_int_least32_t" != yes; then
20230 sed 's/^ *//' >> tmp-stdint.h <<EOF
20232 /* Define int_least types */
20233 typedef int8_t int_least8_t;
20234 typedef int16_t int_least16_t;
20235 typedef int32_t int_least32_t;
20237 typedef int64_t int_least64_t;
20240 typedef uint8_t uint_least8_t;
20241 typedef uint16_t uint_least16_t;
20242 typedef uint32_t uint_least32_t;
20244 typedef uint64_t uint_least64_t;
20249 # ------------- done intptr types, emit int_fast types ------------
20250 if test "$ac_cv_type_int_fast32_t" != yes; then
20251 sed 's/^ *//' >> tmp-stdint.h <<EOF
20253 /* Define int_fast types. short is often slow */
20254 typedef int8_t int_fast8_t;
20255 typedef int int_fast16_t;
20256 typedef int32_t int_fast32_t;
20258 typedef int64_t int_fast64_t;
20261 typedef uint8_t uint_fast8_t;
20262 typedef unsigned int uint_fast16_t;
20263 typedef uint32_t uint_fast32_t;
20265 typedef uint64_t uint_fast64_t;
20270 if test "$ac_cv_type_uintmax_t" != yes; then
20271 sed 's/^ *//' >> tmp-stdint.h <<EOF
20273 /* Define intmax based on what we found */
20276 typedef int64_t intmax_t;
20278 typedef long intmax_t;
20283 typedef uint64_t uintmax_t;
20285 typedef unsigned long uintmax_t;
20291 sed 's/^ *//' >> tmp-stdint.h <<EOF
20293 #endif /* GCC_GENERATED_STDINT_H */
20296 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20299 mv -f tmp-stdint.h gstdint.h
20310 ac_clean_files=$ac_clean_files_save
20312 test $ac_write_fail = 0 ||
20313 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20316 # configure is writing to config.log, and then calls config.status.
20317 # config.status does its own redirection, appending to config.log.
20318 # Unfortunately, on DOS this fails, as config.log is still kept open
20319 # by configure, so config.status won't be able to write to it; its
20320 # output is simply discarded. So we exec the FD to /dev/null,
20321 # effectively closing config.log, so it can be properly (re)opened and
20322 # appended to by config.status. When coming back to configure, we
20323 # need to make the FD available again.
20324 if test "$no_create" != yes; then
20326 ac_config_status_args=
20327 test "$silent" = yes &&
20328 ac_config_status_args="$ac_config_status_args --quiet"
20330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20333 # would make configure fail if this is the last instruction.
20334 $ac_cs_success || as_fn_exit $?
20336 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20338 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}