2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for opencore-amr 0.1.3.
5 # Report bugs to <http://sourceforge.net/projects/opencore-amr/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://sourceforge.net/projects/opencore-amr/ about
251 $0: your system, including any error possibly output before
252 $0: this message. Then install a modern shell, or manually
253 $0: run the script under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='opencore-amr'
572 PACKAGE_TARNAME='opencore-amr'
573 PACKAGE_VERSION='0.1.3'
574 PACKAGE_STRING='opencore-amr 0.1.3'
575 PACKAGE_BUGREPORT='http://sourceforge.net/projects/opencore-amr/'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 ac_subst_vars='am__EXEEXT_FALSE
617 OPENCORE_AMRWB_VERSION
618 OPENCORE_AMRNB_VERSION
686 MAINTAINER_MODE_FALSE
700 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
757 enable_maintainer_mode
763 enable_dependency_tracking
772 ac_precious_vars='build_alias
787 # Initialize some variables set by options.
789 ac_init_version=false
790 ac_unrecognized_opts=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name=s,x,x,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir='${datarootdir}/info'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
904 eval enable_$ac_useropt=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval with_$ac_useropt=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval with_$ac_useropt=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information"
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1221 # Be sure to have absolute directory names.
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used" >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures opencore-amr 0.1.3 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/opencore-amr]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of opencore-amr 0.1.3:";;
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-silent-rules less verbose build output (undo: `make V=1')
1406 --disable-silent-rules verbose build output (undo: `make V=0')
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --enable-compile-c enable compiling as C program (default is yes)
1410 --enable-gcc-armv5 enable GCC specific ARMv5 assembler (default is no)
1411 --enable-amrnb-encoder enable AMR-NB encoder (default is yes)
1412 --enable-amrnb-decoder enable AMR-NB decoder (default is yes)
1413 --enable-examples enable example encoding/decoding programs (default
1415 --disable-dependency-tracking speeds up one-time build
1416 --enable-dependency-tracking do not reject slow dependency extractors
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot=DIR Search for dependent libraries within DIR
1430 (or the compiler's sysroot if not specified).
1432 Some influential environment variables:
1433 CXX C++ compiler command
1434 CXXFLAGS C++ compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 CC C compiler command
1441 CFLAGS C compiler flags
1443 CXXCPP C++ preprocessor
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to <http://sourceforge.net/projects/opencore-amr/>.
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1478 .) # We are building in place.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1511 opencore-amr configure 0.1.3
1512 generated by GNU Autoconf 2.68
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1525 # ac_fn_cxx_try_compile LINENO
1526 # ----------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_cxx_try_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_cxx_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1561 } # ac_fn_cxx_try_compile
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1599 } # ac_fn_c_try_compile
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_link
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1664 if ac_fn_c_try_compile "$LINENO"; then :
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 } # ac_fn_c_check_header_compile
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=$ac_status
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1780 # include <limits.h>
1782 # include <assert.h>
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1809 if ac_fn_c_try_link "$LINENO"; then :
1814 rm -f core conftest.err conftest.$ac_objext \
1815 conftest$ac_exeext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_func
1824 # ac_fn_cxx_try_cpp LINENO
1825 # ------------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_cpp ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } > conftest.i && {
1846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_cxx_try_cpp
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 $as_test_x conftest$ac_exeext
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_cxx_try_link
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1912 ac_fn_c_check_header_mongrel ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if eval \${$3+:} false; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1936 ac_header_compiler=no
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1952 ac_header_preproc=no
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ( $as_echo "## ------------------------------------------------------------ ##
1978 ## Report this to http://sourceforge.net/projects/opencore-amr/ ##
1979 ## ------------------------------------------------------------ ##"
1980 ) | sed "s/^/$as_me: WARNING: /" >&2
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 eval "$3=\$ac_header_compiler"
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_header_mongrel
1998 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1999 # -------------------------------------------
2000 # Tests whether TYPE exists after having included INCLUDES, setting cache
2001 # variable VAR accordingly.
2002 ac_fn_c_check_type ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2036 if ac_fn_c_try_compile "$LINENO"; then :
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_type
2052 # ac_fn_c_find_intX_t LINENO BITS VAR
2053 # -----------------------------------
2054 # Finds a signed integer type with width BITS, setting cache variable VAR
2056 ac_fn_c_find_intX_t ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2060 $as_echo_n "checking for int$2_t... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2065 # Order is important - never check a type that is potentially smaller
2066 # than half of the expected target width.
2067 for ac_type in int$2_t 'int' 'long int' \
2068 'long long int' 'short int' 'signed char'; do
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $ac_includes_default
2072 enum { N = $2 / 2 - 1 };
2076 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $ac_includes_default
2087 enum { N = $2 / 2 - 1 };
2091 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2092 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2099 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$3=\$ac_type" ;;
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 if eval test \"x\$"$3"\" = x"no"; then :
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_find_intX_t
2126 # ac_fn_c_find_uintX_t LINENO BITS VAR
2127 # ------------------------------------
2128 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2130 ac_fn_c_find_uintX_t ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2134 $as_echo_n "checking for uint$2_t... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2139 # Order is important - never check a type that is potentially smaller
2140 # than half of the expected target width.
2141 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2142 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $ac_includes_default
2149 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 eval "$3=\$ac_type" ;;
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 if eval test \"x\$"$3"\" = x"no"; then :
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_find_uintX_t
2178 cat >config.log <<_ACEOF
2179 This file contains any messages produced by compilers while
2180 running configure, to aid debugging if configure makes a mistake.
2182 It was created by opencore-amr $as_me 0.1.3, which was
2183 generated by GNU Autoconf 2.68. Invocation command line was
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 $as_echo "PATH: $as_dir"
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2243 ac_must_keep_next=false
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 as_fn_append ac_configure_args1 " '$ac_arg'"
2260 if test $ac_must_keep_next = true; then
2261 ac_must_keep_next=false # Got value, back to normal.
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2272 -* ) ac_must_keep_next=true ;;
2275 as_fn_append ac_configure_args " '$ac_arg'"
2280 { ac_configure_args0=; unset ac_configure_args0;}
2281 { ac_configure_args1=; unset ac_configure_args1;}
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log. We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2293 $as_echo "## ---------------- ##
2294 ## Cache variables. ##
2295 ## ---------------- ##"
2297 # The following way of writing the cache mishandles newlines in values,
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300 eval ac_val=\$$ac_var
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329 $as_echo "## ----------------- ##
2330 ## Output variables. ##
2331 ## ----------------- ##"
2333 for ac_var in $ac_subst_vars
2335 eval ac_val=\$$ac_var
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -n "$ac_subst_files"; then
2344 $as_echo "## ------------------- ##
2345 ## File substitutions. ##
2346 ## ------------------- ##"
2348 for ac_var in $ac_subst_files
2350 eval ac_val=\$$ac_var
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 $as_echo "$ac_var='\''$ac_val'\''"
2359 if test -s confdefs.h; then
2360 $as_echo "## ----------- ##
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2383 $as_echo "/* confdefs.h */" > confdefs.h
2385 # Predefined preprocessor variables.
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2416 if test -n "$CONFIG_SITE"; then
2417 # We do not want a PATH search for config.site.
2418 case $CONFIG_SITE in #((
2419 -*) ac_site_file1=./$CONFIG_SITE;;
2420 */*) ac_site_file1=$CONFIG_SITE;;
2421 *) ac_site_file1=./$CONFIG_SITE;;
2423 elif test "x$prefix" != xNONE; then
2424 ac_site_file1=$prefix/share/config.site
2425 ac_site_file2=$prefix/etc/config.site
2427 ac_site_file1=$ac_default_prefix/share/config.site
2428 ac_site_file2=$ac_default_prefix/etc/config.site
2430 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 test "x$ac_site_file" = xNONE && continue
2433 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436 sed 's/^/| /' "$ac_site_file" >&5
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error $? "failed to load site script $ac_site_file
2441 See \`config.log' for more details" "$LINENO" 5; }
2445 if test -r "$cache_file"; then
2446 # Some versions of bash will fail to source /dev/null (special files
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458 $as_echo "$as_me: creating cache $cache_file" >&6;}
2462 # Check that the precious variables saved in the cache have kept the same
2464 ac_cache_corrupted=false
2465 for ac_var in $ac_precious_vars; do
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w=`echo x $ac_old_val`
2484 ac_new_val_w=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\$ac_old_val
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg=$ac_var=$ac_new_val ;;
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512 if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 for ac_dir in . "$srcdir"/.; do
2532 if test -f "$ac_dir/install-sh"; then
2534 ac_install_sh="$ac_aux_dir/install-sh -c"
2536 elif test -f "$ac_dir/install.sh"; then
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2540 elif test -f "$ac_dir/shtool"; then
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2560 am__api_version='1.11'
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2631 rm -rf conftest.one conftest.two conftest.dir
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2659 echo timestamp > conftest.file
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2673 # Do `set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2682 set X `ls -t "$srcdir/configure" conftest.file`
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2696 test "$2" = conftest.file
2702 as_fn_error $? "newly created file is older than distributed files!
2703 Check your system clock" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706 $as_echo "yes" >&6; }
2707 test "$program_prefix" != NONE &&
2708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2709 # Use a double $ so make ignores it.
2710 test "$program_suffix" != NONE &&
2711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2712 # Double any \ or $.
2713 # By default was `s,x,x', remove it if useless.
2714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2717 # expand $ac_aux_dir to an absolute path
2718 am_aux_dir=`cd $ac_aux_dir && pwd`
2720 if test x"${MISSING+set}" != xset; then
2723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2728 # Use eval to expand $SHELL
2729 if eval "$MISSING --run true"; then
2730 am_missing_run="$MISSING --run "
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2737 if test x"${install_sh}" != xset; then
2740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2742 install_sh="\${SHELL} $am_aux_dir/install-sh"
2746 # Installed binaries are usually stripped using `strip' when the user
2747 # run `make install-strip'. However `strip' might not be the right
2748 # tool to use in cross-compilation environments, therefore Automake
2749 # will honor the `STRIP' environment variable to overrule this program.
2750 if test "$cross_compiling" != no; then
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}strip; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_STRIP+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$STRIP"; then
2760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 STRIP=$ac_cv_prog_STRIP
2780 if test -n "$STRIP"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2782 $as_echo "$STRIP" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$ac_cv_prog_STRIP"; then
2792 # Extract the first word of "strip", so it can be a program name with args.
2793 set dummy strip; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$ac_ct_STRIP"; then
2800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_ac_ct_STRIP="strip"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2820 if test -n "$ac_ct_STRIP"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2822 $as_echo "$ac_ct_STRIP" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2828 if test "x$ac_ct_STRIP" = x; then
2831 case $cross_compiling:$ac_tool_warned in
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2840 STRIP="$ac_cv_prog_STRIP"
2844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2848 if test -z "$MKDIR_P"; then
2849 if ${ac_cv_path_mkdir+:} false; then :
2850 $as_echo_n "(cached) " >&6
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2856 test -z "$as_dir" && as_dir=.
2857 for ac_prog in mkdir gmkdir; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2861 'mkdir (GNU coreutils) '* | \
2862 'mkdir (coreutils) '* | \
2863 'mkdir (fileutils) '4.1*)
2864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2874 test -d ./--version && rmdir ./--version
2875 if test "${ac_cv_path_mkdir+set}" = set; then
2876 MKDIR_P="$ac_cv_path_mkdir -p"
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for MKDIR_P within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 MKDIR_P="$ac_install_sh -d"
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2886 $as_echo "$MKDIR_P" >&6; }
2890 [\\/$]* | ?:[\\/]*) ;;
2891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2894 for ac_prog in gawk mawk nawk awk
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_AWK+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$AWK"; then
2904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_AWK="$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 if test -n "$AWK"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2926 $as_echo "$AWK" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$AWK" && break
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 cat >conftest.make <<\_ACEOF
2946 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 eval ac_cv_prog_make_${ac_make}_set=no;;
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2974 rmdir .tst 2>/dev/null
2976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2977 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2978 # is not polluted with repeated "-I."
2979 am__isrc=' -I$(srcdir)'
2980 # test to see if srcdir already configured
2981 if test -f $srcdir/config.status; then
2982 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2986 # test whether we have cygpath
2987 if test -z "$CYGPATH_W"; then
2988 if (cygpath --version) >/dev/null 2>/dev/null; then
2989 CYGPATH_W='cygpath -w'
2996 # Define the identity of the package.
2997 PACKAGE='opencore-amr'
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE "$PACKAGE"
3006 cat >>confdefs.h <<_ACEOF
3007 #define VERSION "$VERSION"
3010 # Some tools Automake needs.
3012 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3026 # We need awk for the "check" target. The system "awk" is bad on
3028 # Always define AMTAR for backward compatibility. Yes, it's still used
3029 # in the wild :-( We should find a proper way to deprecate it ...
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3034 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3035 # Loop over all known methods to create a tar archive until one works.
3036 _am_tools='gnutar plaintar pax cpio none'
3037 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3038 # Do not fold the above two line into one, because Tru64 sh and
3039 # Solaris sh will not grok spaces in the rhs of `-'.
3040 for _am_tool in $_am_tools
3044 for _am_tar in tar gnutar gtar;
3046 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3047 ($_am_tar --version) >&5 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && break
3052 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3053 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3054 am__untar="$_am_tar -xf -"
3057 # Must skip GNU tar: if it does not support --format= it doesn't create
3058 # ustar tarball either.
3059 (tar --version) >/dev/null 2>&1 && continue
3060 am__tar='tar chf - "$$tardir"'
3061 am__tar_='tar chf - "$tardir"'
3062 am__untar='tar xf -'
3065 am__tar='pax -L -x ustar -w "$$tardir"'
3066 am__tar_='pax -L -x ustar -w "$tardir"'
3070 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3071 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3072 am__untar='cpio -i -H ustar -d'
3081 # If the value was cached, stop now. We just wanted to have am__tar
3082 # and am__untar set.
3083 test -n "${am_cv_prog_tar_ustar}" && break
3085 # tar/untar a dummy directory, and stop if the command works
3088 echo GrepMe > conftest.dir/file
3089 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3090 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }
3095 if test -s conftest.tar; then
3096 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3097 ($am__untar <conftest.tar) >&5 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
3101 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3106 if ${am_cv_prog_tar_ustar+:} false; then :
3107 $as_echo_n "(cached) " >&6
3109 am_cv_prog_tar_ustar=$_am_tool
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3113 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3119 # Check whether --enable-silent-rules was given.
3120 if test "${enable_silent_rules+set}" = set; then :
3121 enableval=$enable_silent_rules;
3124 case $enable_silent_rules in
3125 yes) AM_DEFAULT_VERBOSITY=0;;
3126 no) AM_DEFAULT_VERBOSITY=1;;
3127 *) AM_DEFAULT_VERBOSITY=0;;
3129 am_make=${MAKE-make}
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3131 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3132 if ${am_cv_make_support_nested_variables+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if $as_echo 'TRUE=$(BAR$(V))
3141 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3142 am_cv_make_support_nested_variables=yes
3144 am_cv_make_support_nested_variables=no
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3148 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3149 if test $am_cv_make_support_nested_variables = yes; then
3151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3153 AM_V=$AM_DEFAULT_VERBOSITY
3154 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3158 ac_config_headers="$ac_config_headers config.h"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3163 # Check whether --enable-maintainer-mode was given.
3164 if test "${enable_maintainer_mode+set}" = set; then :
3165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3167 USE_MAINTAINER_MODE=no
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3172 if test $USE_MAINTAINER_MODE = yes; then
3173 MAINTAINER_MODE_TRUE=
3174 MAINTAINER_MODE_FALSE='#'
3176 MAINTAINER_MODE_TRUE='#'
3177 MAINTAINER_MODE_FALSE=
3180 MAINT=$MAINTAINER_MODE_TRUE
3184 # Cross compiling support
3185 # Make sure we can run config.sub.
3186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3187 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190 $as_echo_n "checking build system type... " >&6; }
3191 if ${ac_cv_build+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 ac_build_alias=$build_alias
3195 test "x$ac_build_alias" = x &&
3196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3197 test "x$ac_build_alias" = x &&
3198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3199 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3204 $as_echo "$ac_cv_build" >&6; }
3205 case $ac_cv_build in
3207 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3210 ac_save_IFS=$IFS; IFS='-'
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3220 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3224 $as_echo_n "checking host system type... " >&6; }
3225 if ${ac_cv_host+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test "x$host_alias" = x; then
3229 ac_cv_host=$ac_cv_build
3231 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3237 $as_echo "$ac_cv_host" >&6; }
3240 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3243 ac_save_IFS=$IFS; IFS='-'
3249 # Remember, the first character of IFS is used to create $*,
3250 # except with old shells:
3253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3257 # Various options for configure
3258 # Check whether --enable-compile-c was given.
3259 if test "${enable_compile_c+set}" = set; then :
3260 enableval=$enable_compile_c; compile_as_c=$enableval
3265 # Check whether --enable-gcc-armv5 was given.
3266 if test "${enable_gcc_armv5+set}" = set; then :
3267 enableval=$enable_gcc_armv5; gcc_armv5=$enableval
3272 # Check whether --enable-amrnb-encoder was given.
3273 if test "${enable_amrnb_encoder+set}" = set; then :
3274 enableval=$enable_amrnb_encoder; amrnb_encoder=$enableval
3279 # Check whether --enable-amrnb-decoder was given.
3280 if test "${enable_amrnb_decoder+set}" = set; then :
3281 enableval=$enable_amrnb_decoder; amrnb_decoder=$enableval
3286 # Check whether --enable-examples was given.
3287 if test "${enable_examples+set}" = set; then :
3288 enableval=$enable_examples; examples=$enableval
3294 # Automake conditionals to set
3295 if test x$compile_as_c = xyes; then
3297 COMPILE_AS_C_FALSE='#'
3299 COMPILE_AS_C_TRUE='#'
3303 if test x$gcc_armv5 = xyes; then
3311 if test x$amrnb_encoder = xyes; then
3313 AMRNB_ENCODER_FALSE='#'
3315 AMRNB_ENCODER_TRUE='#'
3316 AMRNB_ENCODER_FALSE=
3319 if test x$amrnb_decoder = xyes; then
3321 AMRNB_DECODER_FALSE='#'
3323 AMRNB_DECODER_TRUE='#'
3324 AMRNB_DECODER_FALSE=
3327 if test x$examples = xyes; then
3336 # Checks for programs.
3338 ac_cpp='$CXXCPP $CPPFLAGS'
3339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3342 if test -z "$CXX"; then
3343 if test -n "$CCC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CXX+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$CXX"; then
3357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 if test -n "$CXX"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3379 $as_echo "$CXX" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3386 test -n "$CXX" && break
3389 if test -z "$CXX"; then
3391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$ac_ct_CXX"; then
3401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_ac_ct_CXX="$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3421 if test -n "$ac_ct_CXX"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3423 $as_echo "$ac_ct_CXX" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$ac_ct_CXX" && break
3433 if test "x$ac_ct_CXX" = x; then
3436 case $cross_compiling:$ac_tool_warned in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3452 for ac_option in --version -v -V -qversion; do
3453 { { ac_try="$ac_compiler $ac_option >&5"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 if test -s conftest.err; then
3464 ... rest of stderr output deleted ...
3465 10q' conftest.err >conftest.er1
3466 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3490 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 for ac_file in $ac_files
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506 if { { ac_try="$ac_link_default"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link_default") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3522 for ac_file in $ac_files ''
3524 test -f "$ac_file" || continue
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 # We found the default executable, but exeext='' is most
3533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 # We set ac_cv_exeext here because the later test for it is not
3538 # safe: cross compilers may not add the suffix if given an `-o'
3539 # argument, so we may need to know it at that point already.
3540 # Even if this section looks crufty: it has the advantage of
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552 if test -z "$ac_file"; then :
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error 77 "C++ compiler cannot create executables
3561 See \`config.log' for more details" "$LINENO" 5; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3567 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_link") 2>&5
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; then :
3587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 for ac_file in conftest.exe conftest conftest.*; do
3592 test -f "$ac_file" || continue
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3619 FILE *f = fopen ("conftest.out", "w");
3620 return ferror (f) || fclose (f) != 0;
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632 { { ac_try="$ac_link"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }
3643 if { ac_try='./conftest$ac_cv_exeext'
3644 { { case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_try") 2>&5
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }; }; then
3656 if test "$cross_compiling" = maybe; then
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot run C++ compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details" "$LINENO" 5; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if ${ac_cv_objext+:} false; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_compile") 2>&5
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 for ac_file in conftest.o conftest.obj conftest.*; do
3701 test -f "$ac_file" || continue;
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details" "$LINENO" 5; }
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3725 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3752 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3758 ac_test_CXXFLAGS=${CXXFLAGS+set}
3759 ac_save_CXXFLAGS=$CXXFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3761 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3762 if ${ac_cv_prog_cxx_g+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3766 ac_cxx_werror_flag=yes
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 if ac_fn_cxx_try_compile "$LINENO"; then :
3781 ac_cv_prog_cxx_g=yes
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 if ac_fn_cxx_try_compile "$LINENO"; then :
3798 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_cxx_try_compile "$LINENO"; then :
3812 ac_cv_prog_cxx_g=yes
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3822 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3823 if test "$ac_test_CXXFLAGS" = set; then
3824 CXXFLAGS=$ac_save_CXXFLAGS
3825 elif test $ac_cv_prog_cxx_g = yes; then
3826 if test "$GXX" = yes; then
3832 if test "$GXX" = yes; then
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 DEPDIR="${am__leading_dot}deps"
3845 ac_config_commands="$ac_config_commands depfiles"
3848 am_make=${MAKE-make}
3849 cat > confinc << 'END'
3851 @echo this is the am__doit target
3854 # If we don't find an include directive, just comment out the code.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3856 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3860 # First try GNU make style include.
3861 echo "include confinc" > confmf
3862 # Ignore all kinds of additional output from `make'.
3863 case `$am_make -s -f confmf 2> /dev/null` in #(
3864 *the\ am__doit\ target*)
3870 # Now try BSD make style include.
3871 if test "$am__include" = "#"; then
3872 echo '.include "confinc"' > confmf
3873 case `$am_make -s -f confmf 2> /dev/null` in #(
3874 *the\ am__doit\ target*)
3875 am__include=.include
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3884 $as_echo "$_am_result" >&6; }
3885 rm -f confinc confmf
3887 # Check whether --enable-dependency-tracking was given.
3888 if test "${enable_dependency_tracking+set}" = set; then :
3889 enableval=$enable_dependency_tracking;
3892 if test "x$enable_dependency_tracking" != xno; then
3893 am_depcomp="$ac_aux_dir/depcomp"
3897 if test "x$enable_dependency_tracking" != xno; then
3907 depcc="$CXX" am_compiler_list=
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3910 $as_echo_n "checking dependency style of $depcc... " >&6; }
3911 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3912 $as_echo_n "(cached) " >&6
3914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3915 # We make a subdir and do the tests there. Otherwise we can end up
3916 # making bogus files that we don't know about and never remove. For
3917 # instance it was reported that on HP-UX the gcc test will end up
3918 # making a dummy file named `D' -- because `-MD' means `put the output
3922 # Copy depcomp to subdir because otherwise we won't find it if we're
3923 # using a relative directory.
3924 cp "$am_depcomp" conftest.dir
3926 # We will build objects and dependencies in a subdirectory because
3927 # it helps to detect inapplicable dependency modes. For instance
3928 # both Tru64's cc and ICC support -MD to output dependencies as a
3929 # side effect of compilation, but ICC will put the dependencies in
3930 # the current directory while Tru64 will put them in the object
3934 am_cv_CXX_dependencies_compiler_type=none
3935 if test "$am_compiler_list" = ""; then
3936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3939 case " $depcc " in #(
3940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3943 for depmode in $am_compiler_list; do
3944 # Setup a source with many dependencies, because some compilers
3945 # like to wrap large dependency lists on column 80 (with \), and
3946 # we should not choose a depcomp mode which is confused by this.
3948 # We need to recreate these files for each test, as the compiler may
3949 # overwrite some of them when testing with obscure command lines.
3950 # This happens at least with the AIX C compiler.
3952 for i in 1 2 3 4 5 6; do
3953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3954 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3955 # Solaris 8's {/usr,}/bin/sh.
3956 touch sub/conftst$i.h
3958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3961 # mode. It turns out that the SunPro C++ compiler does not properly
3962 # handle `-M -o', and we need to detect this. Also, some Intel
3963 # versions had trouble with output in subdirs
3964 am__obj=sub/conftest.${OBJEXT-o}
3965 am__minus_obj="-o $am__obj"
3968 # This depmode causes a compiler race in universal mode.
3969 test "$am__universal" = false || continue
3972 # after this tag, mechanisms are not by side-effect, so they'll
3973 # only be used when explicitly requested
3974 if test "x$enable_dependency_tracking" = xyes; then
3980 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3981 # This compiler won't grok `-c -o', but also, the minuso test has
3982 # not run yet. These depmodes are late enough in the game, and
3983 # so weak that their functioning should not be impacted.
3984 am__obj=conftest.${OBJEXT-o}
3989 if depmode=$depmode \
3990 source=sub/conftest.c object=$am__obj \
3991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3993 >/dev/null 2>conftest.err &&
3994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3998 # icc doesn't choke on unknown options, it will just issue warnings
3999 # or remarks (even with -Werror). So we grep stderr for any message
4000 # that says an option was ignored or not supported.
4001 # When given -MP, icc 7.0 and 7.1 complain thusly:
4002 # icc: Command line warning: ignoring option '-M'; no argument required
4003 # The diagnosis changed in icc 8.0:
4004 # icc: Command line remark: option '-MP' not supported
4005 if (grep 'ignoring option' conftest.err ||
4006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4007 am_cv_CXX_dependencies_compiler_type=$depmode
4016 am_cv_CXX_dependencies_compiler_type=none
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4021 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4022 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4025 test "x$enable_dependency_tracking" != xno \
4026 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4027 am__fastdepCXX_TRUE=
4028 am__fastdepCXX_FALSE='#'
4030 am__fastdepCXX_TRUE='#'
4031 am__fastdepCXX_FALSE=
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test -n "$ac_tool_prefix"; then
4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_CC+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$CC"; then
4049 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4079 if test -z "$ac_cv_prog_CC"; then
4081 # Extract the first word of "gcc", so it can be a program name with args.
4082 set dummy gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4111 $as_echo "$ac_ct_CC" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4117 if test "x$ac_ct_CC" = x; then
4120 case $cross_compiling:$ac_tool_warned in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4124 ac_tool_warned=yes ;;
4132 if test -z "$CC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151 ac_cv_prog_CC="${ac_tool_prefix}cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4173 if test -z "$CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_CC+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected=yes
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test $ac_prog_rejected = yes; then
4205 # We found a bogon in the path, so make sure we never use it.
4206 set dummy $ac_cv_prog_CC
4208 if test $# != 0; then
4209 # We chose a different compiler from the bogus one.
4210 # However, it has the same basename, so the bogon will be chosen
4211 # first if we set CC to just the basename; use the full file name.
4213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in cl.exe
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_CC+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 if test -n "$CC"; then
4241 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 if test -n "$CC"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4263 $as_echo "$CC" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$CC" && break
4273 if test -z "$CC"; then
4275 for ac_prog in cl.exe
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$ac_ct_CC"; then
4285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_ac_ct_CC="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4305 if test -n "$ac_ct_CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4307 $as_echo "$ac_ct_CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$ac_ct_CC" && break
4317 if test "x$ac_ct_CC" = x; then
4320 case $cross_compiling:$ac_tool_warned in
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "no acceptable C compiler found in \$PATH
4336 See \`config.log' for more details" "$LINENO" 5; }
4338 # Provide some information about the compiler.
4339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4342 for ac_option in --version -v -V -qversion; do
4343 { { ac_try="$ac_compiler $ac_option >&5"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4352 if test -s conftest.err; then
4354 ... rest of stderr output deleted ...
4355 10q' conftest.err >conftest.er1
4356 cat conftest.er1 >&5
4358 rm -f conftest.er1 conftest.err
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4364 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4365 if ${ac_cv_c_compiler_gnu+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4382 if ac_fn_c_try_compile "$LINENO"; then :
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4392 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4393 if test $ac_compiler_gnu = yes; then
4398 ac_test_CFLAGS=${CFLAGS+set}
4399 ac_save_CFLAGS=$CFLAGS
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4401 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4402 if ${ac_cv_prog_cc_g+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 ac_save_c_werror_flag=$ac_c_werror_flag
4406 ac_c_werror_flag=yes
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4420 if ac_fn_c_try_compile "$LINENO"; then :
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4435 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4451 if ac_fn_c_try_compile "$LINENO"; then :
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_c_werror_flag=$ac_save_c_werror_flag
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4462 $as_echo "$ac_cv_prog_cc_g" >&6; }
4463 if test "$ac_test_CFLAGS" = set; then
4464 CFLAGS=$ac_save_CFLAGS
4465 elif test $ac_cv_prog_cc_g = yes; then
4466 if test "$GCC" = yes; then
4472 if test "$GCC" = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4479 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4480 if ${ac_cv_prog_cc_c89+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 ac_cv_prog_cc_c89=no
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4489 #include <sys/types.h>
4490 #include <sys/stat.h>
4491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4492 struct buf { int x; };
4493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4494 static char *e (p, i)
4500 static char *f (char * (*g) (char **, int), char **p, ...)
4505 s = g (p, va_arg (v,int));
4510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4511 function prototypes and stuff, but not '\xHH' hex character constants.
4512 These don't provoke an error unfortunately, instead are silently treated
4513 as 'x'. The following induces an error, until -std is added to get
4514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4515 array size at least. It's necessary to write '\x00'==0 to get something
4516 that's true only with -std. */
4517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4520 inside strings and character constants. */
4522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4524 int test (int i, double x);
4525 struct s1 {int (*f) (int a);};
4526 struct s2 {int (*f) (double a);};
4527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4533 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4541 CC="$ac_save_CC $ac_arg"
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_prog_cc_c89=$ac_arg
4545 rm -f core conftest.err conftest.$ac_objext
4546 test "x$ac_cv_prog_cc_c89" != "xno" && break
4548 rm -f conftest.$ac_ext
4553 case "x$ac_cv_prog_cc_c89" in
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4556 $as_echo "none needed" >&6; } ;;
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4559 $as_echo "unsupported" >&6; } ;;
4561 CC="$CC $ac_cv_prog_cc_c89"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4565 if test "x$ac_cv_prog_cc_c89" != xno; then :
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 depcc="$CC" am_compiler_list=
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4578 $as_echo_n "checking dependency style of $depcc... " >&6; }
4579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4580 $as_echo_n "(cached) " >&6
4582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583 # We make a subdir and do the tests there. Otherwise we can end up
4584 # making bogus files that we don't know about and never remove. For
4585 # instance it was reported that on HP-UX the gcc test will end up
4586 # making a dummy file named `D' -- because `-MD' means `put the output
4590 # Copy depcomp to subdir because otherwise we won't find it if we're
4591 # using a relative directory.
4592 cp "$am_depcomp" conftest.dir
4594 # We will build objects and dependencies in a subdirectory because
4595 # it helps to detect inapplicable dependency modes. For instance
4596 # both Tru64's cc and ICC support -MD to output dependencies as a
4597 # side effect of compilation, but ICC will put the dependencies in
4598 # the current directory while Tru64 will put them in the object
4602 am_cv_CC_dependencies_compiler_type=none
4603 if test "$am_compiler_list" = ""; then
4604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4607 case " $depcc " in #(
4608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4611 for depmode in $am_compiler_list; do
4612 # Setup a source with many dependencies, because some compilers
4613 # like to wrap large dependency lists on column 80 (with \), and
4614 # we should not choose a depcomp mode which is confused by this.
4616 # We need to recreate these files for each test, as the compiler may
4617 # overwrite some of them when testing with obscure command lines.
4618 # This happens at least with the AIX C compiler.
4620 for i in 1 2 3 4 5 6; do
4621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4623 # Solaris 8's {/usr,}/bin/sh.
4624 touch sub/conftst$i.h
4626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4629 # mode. It turns out that the SunPro C++ compiler does not properly
4630 # handle `-M -o', and we need to detect this. Also, some Intel
4631 # versions had trouble with output in subdirs
4632 am__obj=sub/conftest.${OBJEXT-o}
4633 am__minus_obj="-o $am__obj"
4636 # This depmode causes a compiler race in universal mode.
4637 test "$am__universal" = false || continue
4640 # after this tag, mechanisms are not by side-effect, so they'll
4641 # only be used when explicitly requested
4642 if test "x$enable_dependency_tracking" = xyes; then
4648 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4649 # This compiler won't grok `-c -o', but also, the minuso test has
4650 # not run yet. These depmodes are late enough in the game, and
4651 # so weak that their functioning should not be impacted.
4652 am__obj=conftest.${OBJEXT-o}
4657 if depmode=$depmode \
4658 source=sub/conftest.c object=$am__obj \
4659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4661 >/dev/null 2>conftest.err &&
4662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4666 # icc doesn't choke on unknown options, it will just issue warnings
4667 # or remarks (even with -Werror). So we grep stderr for any message
4668 # that says an option was ignored or not supported.
4669 # When given -MP, icc 7.0 and 7.1 complain thusly:
4670 # icc: Command line warning: ignoring option '-M'; no argument required
4671 # The diagnosis changed in icc 8.0:
4672 # icc: Command line remark: option '-MP' not supported
4673 if (grep 'ignoring option' conftest.err ||
4674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4675 am_cv_CC_dependencies_compiler_type=$depmode
4684 am_cv_CC_dependencies_compiler_type=none
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4689 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4690 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4693 test "x$enable_dependency_tracking" != xno \
4694 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4696 am__fastdepCC_FALSE='#'
4698 am__fastdepCC_TRUE='#'
4699 am__fastdepCC_FALSE=
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4705 $as_echo_n "checking whether ln -s works... " >&6; }
4707 if test "$LN_S" = "ln -s"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4709 $as_echo "yes" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4712 $as_echo "no, using $LN_S" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4716 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4718 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4719 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 cat >conftest.make <<\_ACEOF
4725 @echo '@@@%%%=$(MAKE)=@@@%%%'
4727 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4730 eval ac_cv_prog_make_${ac_make}_set=yes;;
4732 eval ac_cv_prog_make_${ac_make}_set=no;;
4736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 SET_MAKE="MAKE=${MAKE-make}"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4751 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4756 macro_version='2.4.2'
4757 macro_revision='1.3337'
4771 ltmain="$ac_aux_dir/ltmain.sh"
4773 # Backslashify metacharacters that are still active within
4774 # double-quoted strings.
4775 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4777 # Same as above, but do not quote variable references.
4778 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4780 # Sed substitution to delay expansion of an escaped shell variable in a
4781 # double_quote_subst'ed string.
4782 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4784 # Sed substitution to delay expansion of an escaped single quote.
4785 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4787 # Sed substitution to avoid accidental globbing in evaled expressions
4788 no_glob_subst='s/\*/\\\*/g'
4790 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4791 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4792 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4795 $as_echo_n "checking how to print strings... " >&6; }
4796 # Test print first, because it will be a builtin if present.
4797 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4798 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4800 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4803 # Use this function as a fallback that always works.
4804 func_fallback_echo ()
4806 eval 'cat <<_LTECHO_EOF
4810 ECHO='func_fallback_echo'
4813 # func_echo_all arg...
4814 # Invoke $ECHO with all args, space-separated.
4821 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4822 $as_echo "printf" >&6; } ;;
4823 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4824 $as_echo "print -r" >&6; } ;;
4825 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4826 $as_echo "cat" >&6; } ;;
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4843 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4844 if ${ac_cv_path_SED+:} false; then :
4845 $as_echo_n "(cached) " >&6
4847 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4848 for ac_i in 1 2 3 4 5 6 7; do
4849 ac_script="$ac_script$as_nl$ac_script"
4851 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4852 { ac_script=; unset ac_script;}
4853 if test -z "$SED"; then
4854 ac_path_SED_found=false
4855 # Loop through the user's path and test for each of PROGNAME-LIST
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_prog in sed gsed; do
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4864 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4865 # Check for GNU ac_path_SED and select it if it is found.
4866 # Check for GNU $ac_path_SED
4867 case `"$ac_path_SED" --version 2>&1` in
4869 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4872 $as_echo_n 0123456789 >"conftest.in"
4875 cat "conftest.in" "conftest.in" >"conftest.tmp"
4876 mv "conftest.tmp" "conftest.in"
4877 cp "conftest.in" "conftest.nl"
4878 $as_echo '' >> "conftest.nl"
4879 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4881 as_fn_arith $ac_count + 1 && ac_count=$as_val
4882 if test $ac_count -gt ${ac_path_SED_max-0}; then
4883 # Best one so far, save it but keep looking for a better one
4884 ac_cv_path_SED="$ac_path_SED"
4885 ac_path_SED_max=$ac_count
4887 # 10*(2^10) chars as input seems more than enough
4888 test $ac_count -gt 10 && break
4890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 $ac_path_SED_found && break 3
4898 if test -z "$ac_cv_path_SED"; then
4899 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4907 $as_echo "$ac_cv_path_SED" >&6; }
4908 SED="$ac_cv_path_SED"
4911 test -z "$SED" && SED=sed
4912 Xsed="$SED -e 1s/^X//"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -z "$GREP"; then
4930 ac_path_GREP_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 test -z "$as_dir" && as_dir=.
4937 for ac_prog in grep ggrep; do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942 # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4945 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4948 $as_echo_n 0123456789 >"conftest.in"
4951 cat "conftest.in" "conftest.in" >"conftest.tmp"
4952 mv "conftest.tmp" "conftest.in"
4953 cp "conftest.in" "conftest.nl"
4954 $as_echo 'GREP' >> "conftest.nl"
4955 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957 as_fn_arith $ac_count + 1 && ac_count=$as_val
4958 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959 # Best one so far, save it but keep looking for a better one
4960 ac_cv_path_GREP="$ac_path_GREP"
4961 ac_path_GREP_max=$ac_count
4963 # 10*(2^10) chars as input seems more than enough
4964 test $ac_count -gt 10 && break
4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 $ac_path_GREP_found && break 3
4974 if test -z "$ac_cv_path_GREP"; then
4975 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 ac_cv_path_GREP=$GREP
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984 GREP="$ac_cv_path_GREP"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993 then ac_cv_path_EGREP="$GREP -E"
4995 if test -z "$EGREP"; then
4996 ac_path_EGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in egrep; do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008 # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5014 $as_echo_n 0123456789 >"conftest.in"
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'EGREP' >> "conftest.nl"
5021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_EGREP="$ac_path_EGREP"
5027 ac_path_EGREP_max=$ac_count
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 $ac_path_EGREP_found && break 3
5040 if test -z "$ac_cv_path_EGREP"; then
5041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 ac_cv_path_EGREP=$EGREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051 EGREP="$ac_cv_path_EGREP"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5055 $as_echo_n "checking for fgrep... " >&6; }
5056 if ${ac_cv_path_FGREP+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5060 then ac_cv_path_FGREP="$GREP -F"
5062 if test -z "$FGREP"; then
5063 ac_path_FGREP_found=false
5064 # Loop through the user's path and test for each of PROGNAME-LIST
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5069 test -z "$as_dir" && as_dir=.
5070 for ac_prog in fgrep; do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5073 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5074 # Check for GNU ac_path_FGREP and select it if it is found.
5075 # Check for GNU $ac_path_FGREP
5076 case `"$ac_path_FGREP" --version 2>&1` in
5078 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5081 $as_echo_n 0123456789 >"conftest.in"
5084 cat "conftest.in" "conftest.in" >"conftest.tmp"
5085 mv "conftest.tmp" "conftest.in"
5086 cp "conftest.in" "conftest.nl"
5087 $as_echo 'FGREP' >> "conftest.nl"
5088 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090 as_fn_arith $ac_count + 1 && ac_count=$as_val
5091 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5092 # Best one so far, save it but keep looking for a better one
5093 ac_cv_path_FGREP="$ac_path_FGREP"
5094 ac_path_FGREP_max=$ac_count
5096 # 10*(2^10) chars as input seems more than enough
5097 test $ac_count -gt 10 && break
5099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5102 $ac_path_FGREP_found && break 3
5107 if test -z "$ac_cv_path_FGREP"; then
5108 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5111 ac_cv_path_FGREP=$FGREP
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5117 $as_echo "$ac_cv_path_FGREP" >&6; }
5118 FGREP="$ac_cv_path_FGREP"
5121 test -z "$GREP" && GREP=grep
5141 # Check whether --with-gnu-ld was given.
5142 if test "${with_gnu_ld+set}" = set; then :
5143 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5149 if test "$GCC" = yes; then
5150 # Check if gcc -print-prog-name=ld gives a path.
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5152 $as_echo_n "checking for ld used by $CC... " >&6; }
5155 # gcc leaves a trailing carriage return which upsets mingw
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5161 # Accept absolute paths.
5163 re_direlt='/[^/][^/]*/\.\./'
5164 # Canonicalize the pathname of ld
5165 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5166 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5167 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5169 test -z "$LD" && LD="$ac_prog"
5172 # If it fails, then pretend we aren't using GCC.
5176 # If it is relative, then search for the first ld in PATH.
5180 elif test "$with_gnu_ld" = yes; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5182 $as_echo_n "checking for GNU ld... " >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5185 $as_echo_n "checking for non-GNU ld... " >&6; }
5187 if ${lt_cv_path_LD+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -z "$LD"; then
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH; do
5194 test -z "$ac_dir" && ac_dir=.
5195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some variants of GNU ld only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201 *GNU* | *'with BFD'*)
5202 test "$with_gnu_ld" != no && break
5205 test "$with_gnu_ld" != yes && break
5212 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5217 if test -n "$LD"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5219 $as_echo "$LD" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5224 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5227 if ${lt_cv_prog_gnu_ld+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5231 case `$LD -v 2>&1 </dev/null` in
5232 *GNU* | *'with BFD'*)
5233 lt_cv_prog_gnu_ld=yes
5236 lt_cv_prog_gnu_ld=no
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5241 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5242 with_gnu_ld=$lt_cv_prog_gnu_ld
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5253 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5254 if ${lt_cv_path_NM+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$NM"; then
5258 # Let the user override the test.
5261 lt_nm_to_check="${ac_tool_prefix}nm"
5262 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5263 lt_nm_to_check="$lt_nm_to_check nm"
5265 for lt_tmp_nm in $lt_nm_to_check; do
5266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5267 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5269 test -z "$ac_dir" && ac_dir=.
5270 tmp_nm="$ac_dir/$lt_tmp_nm"
5271 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5272 # Check to see if the nm accepts a BSD-compat flag.
5273 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5274 # nm: unknown option "B" ignored
5275 # Tru64's nm complains that /dev/null is an invalid object file
5276 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5277 */dev/null* | *'Invalid file or object type'*)
5278 lt_cv_path_NM="$tmp_nm -B"
5282 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5284 lt_cv_path_NM="$tmp_nm -p"
5288 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5289 continue # so that we can try to find one that supports BSD flags
5298 : ${lt_cv_path_NM=no}
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5302 $as_echo "$lt_cv_path_NM" >&6; }
5303 if test "$lt_cv_path_NM" != "no"; then
5306 # Didn't find any BSD compatible name lister, look for dumpbin.
5307 if test -n "$DUMPBIN"; then :
5308 # Let the user override the test.
5310 if test -n "$ac_tool_prefix"; then
5311 for ac_prog in dumpbin "link -dump"
5313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_DUMPBIN+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 if test -n "$DUMPBIN"; then
5321 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 DUMPBIN=$ac_cv_prog_DUMPBIN
5341 if test -n "$DUMPBIN"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5343 $as_echo "$DUMPBIN" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5350 test -n "$DUMPBIN" && break
5353 if test -z "$DUMPBIN"; then
5354 ac_ct_DUMPBIN=$DUMPBIN
5355 for ac_prog in dumpbin "link -dump"
5357 # Extract the first word of "$ac_prog", so it can be a program name with args.
5358 set dummy $ac_prog; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5362 $as_echo_n "(cached) " >&6
5364 if test -n "$ac_ct_DUMPBIN"; then
5365 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5385 if test -n "$ac_ct_DUMPBIN"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5387 $as_echo "$ac_ct_DUMPBIN" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5394 test -n "$ac_ct_DUMPBIN" && break
5397 if test "x$ac_ct_DUMPBIN" = x; then
5400 case $cross_compiling:$ac_tool_warned in
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404 ac_tool_warned=yes ;;
5406 DUMPBIN=$ac_ct_DUMPBIN
5410 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5412 DUMPBIN="$DUMPBIN -symbols"
5420 if test "$DUMPBIN" != ":"; then
5424 test -z "$NM" && NM=nm
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5432 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5433 if ${lt_cv_nm_interface+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 lt_cv_nm_interface="BSD nm"
5437 echo "int some_variable = 0;" > conftest.$ac_ext
5438 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5439 (eval "$ac_compile" 2>conftest.err)
5440 cat conftest.err >&5
5441 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5442 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5443 cat conftest.err >&5
5444 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5445 cat conftest.out >&5
5446 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5447 lt_cv_nm_interface="MS dumpbin"
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5452 $as_echo "$lt_cv_nm_interface" >&6; }
5454 # find the maximum length of command line arguments
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5456 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5457 if ${lt_cv_sys_max_cmd_len+:} false; then :
5458 $as_echo_n "(cached) " >&6
5465 # On DJGPP, this test can blow up pretty badly due to problems in libc
5466 # (any single argument exceeding 2000 bytes causes a buffer overrun
5467 # during glob expansion). Even if it were fixed, the result of this
5468 # check would be larger than it should be.
5469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5473 # Under GNU Hurd, this test is not required because there is
5474 # no limit to the length of command line arguments.
5475 # Libtool will interpret -1 as no limit whatsoever
5476 lt_cv_sys_max_cmd_len=-1;
5479 cygwin* | mingw* | cegcc*)
5480 # On Win9x/ME, this test blows up -- it succeeds, but takes
5481 # about 5 minutes as the teststring grows exponentially.
5482 # Worse, since 9x/ME are not pre-emptively multitasking,
5483 # you end up with a "frozen" computer, even though with patience
5484 # the test eventually succeeds (with a max line length of 256k).
5485 # Instead, let's just punt: use the minimum linelength reported by
5486 # all of the supported platforms: 8192 (on NT/2K/XP).
5487 lt_cv_sys_max_cmd_len=8192;
5491 # On MiNT this can take a long time and run out of memory.
5492 lt_cv_sys_max_cmd_len=8192;
5496 # On AmigaOS with pdksh, this test takes hours, literally.
5497 # So we just punt and use a minimum line length of 8192.
5498 lt_cv_sys_max_cmd_len=8192;
5501 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5502 # This has been around since 386BSD, at least. Likely further.
5503 if test -x /sbin/sysctl; then
5504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5505 elif test -x /usr/sbin/sysctl; then
5506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5510 # And add a safety zone
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5516 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5517 lt_cv_sys_max_cmd_len=196608
5521 # The test takes a long time on OS/2.
5522 lt_cv_sys_max_cmd_len=8192
5526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5528 # nice to cause kernel panics so lets avoid the loop below.
5529 # First set a reasonable default.
5530 lt_cv_sys_max_cmd_len=16384
5532 if test -x /sbin/sysconfig; then
5533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5534 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5539 lt_cv_sys_max_cmd_len=102400
5541 sysv5* | sco5v6* | sysv4.2uw2*)
5542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5543 if test -n "$kargmax"; then
5544 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5546 lt_cv_sys_max_cmd_len=32768
5550 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5551 if test -n "$lt_cv_sys_max_cmd_len"; then
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5555 # Make teststring a little bigger before we do anything with it.
5556 # a 1K string should be a reasonable start.
5557 for i in 1 2 3 4 5 6 7 8 ; do
5558 teststring=$teststring$teststring
5560 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5561 # If test is not a shell built-in, we'll probably end up computing a
5562 # maximum length that is only half of the actual maximum length, but
5564 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5565 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5566 test $i != 17 # 1/2 MB should be enough
5569 teststring=$teststring$teststring
5571 # Only check the string length outside the loop.
5572 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5574 # Add a significant safety factor because C++ compilers can tack on
5575 # massive amounts of additional arguments before passing them to the
5576 # linker. It appears as though 1/2 is a usable value.
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5584 if test -n $lt_cv_sys_max_cmd_len ; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5586 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5589 $as_echo "none" >&6; }
5591 max_cmd_len=$lt_cv_sys_max_cmd_len
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5603 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5604 # Try some XSI features
5607 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5609 && eval 'test $(( 1 + 1 )) -eq 2 \
5610 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5613 $as_echo "$xsi_shell" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5617 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5619 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5621 && lt_shell_append=yes
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5623 $as_echo "$lt_shell_append" >&6; }
5626 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5636 # test EBCDIC or ASCII
5637 case `echo X|tr X '\101'` in
5638 A) # ASCII based system
5639 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5640 lt_SP2NL='tr \040 \012'
5641 lt_NL2SP='tr \015\012 \040\040'
5643 *) # EBCDIC based system
5644 lt_SP2NL='tr \100 \n'
5645 lt_NL2SP='tr \r\n \100\100'
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5658 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5659 if ${lt_cv_to_host_file_cmd+:} false; then :
5660 $as_echo_n "(cached) " >&6
5665 *-*-mingw* ) # actually msys
5666 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5669 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5671 * ) # otherwise, assume *nix
5672 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5678 *-*-mingw* ) # actually msys
5679 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5682 lt_cv_to_host_file_cmd=func_convert_file_noop
5684 * ) # otherwise, assume *nix
5685 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5689 * ) # unhandled hosts (and "normal" native builds)
5690 lt_cv_to_host_file_cmd=func_convert_file_noop
5696 to_host_file_cmd=$lt_cv_to_host_file_cmd
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5698 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5705 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5706 if ${lt_cv_to_tool_file_cmd+:} false; then :
5707 $as_echo_n "(cached) " >&6
5709 #assume ordinary cross tools, or native build.
5710 lt_cv_to_tool_file_cmd=func_convert_file_noop
5714 *-*-mingw* ) # actually msys
5715 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5723 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5725 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5732 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5733 if ${lt_cv_ld_reload_flag+:} false; then :
5734 $as_echo_n "(cached) " >&6
5736 lt_cv_ld_reload_flag='-r'
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5739 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5740 reload_flag=$lt_cv_ld_reload_flag
5741 case $reload_flag in
5743 *) reload_flag=" $reload_flag" ;;
5745 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5747 cygwin* | mingw* | pw32* | cegcc*)
5748 if test "$GCC" != yes; then
5753 if test "$GCC" = yes; then
5754 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5756 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5769 if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_OBJDUMP+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$OBJDUMP"; then
5778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 OBJDUMP=$ac_cv_prog_OBJDUMP
5798 if test -n "$OBJDUMP"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5800 $as_echo "$OBJDUMP" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5808 if test -z "$ac_cv_prog_OBJDUMP"; then
5809 ac_ct_OBJDUMP=$OBJDUMP
5810 # Extract the first word of "objdump", so it can be a program name with args.
5811 set dummy objdump; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 if test -n "$ac_ct_OBJDUMP"; then
5818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5838 if test -n "$ac_ct_OBJDUMP"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5840 $as_echo "$ac_ct_OBJDUMP" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5846 if test "x$ac_ct_OBJDUMP" = x; then
5849 case $cross_compiling:$ac_tool_warned in
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853 ac_tool_warned=yes ;;
5855 OBJDUMP=$ac_ct_OBJDUMP
5858 OBJDUMP="$ac_cv_prog_OBJDUMP"
5861 test -z "$OBJDUMP" && OBJDUMP=objdump
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5872 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5873 if ${lt_cv_deplibs_check_method+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 lt_cv_file_magic_cmd='$MAGIC_CMD'
5877 lt_cv_file_magic_test_file=
5878 lt_cv_deplibs_check_method='unknown'
5879 # Need to set the preceding variable on all platforms that support
5880 # interlibrary dependencies.
5881 # 'none' -- dependencies not supported.
5882 # `unknown' -- same as none, but documents that we really don't know.
5883 # 'pass_all' -- all dependencies passed with no checks.
5884 # 'test_compile' -- check by making test program.
5885 # 'file_magic [[regex]]' -- check by looking for files in library path
5886 # which responds to the $file_magic_cmd with a given extended regex.
5887 # If you have `file' or equivalent on your system and you're not sure
5888 # whether `pass_all' will *always* work, you probably want this one.
5892 lt_cv_deplibs_check_method=pass_all
5896 lt_cv_deplibs_check_method=pass_all
5900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5901 lt_cv_file_magic_cmd='/usr/bin/file -L'
5902 lt_cv_file_magic_test_file=/shlib/libc.so
5906 # func_win32_libid is a shell function defined in ltmain.sh
5907 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5908 lt_cv_file_magic_cmd='func_win32_libid'
5912 # Base MSYS/MinGW do not provide the 'file' command needed by
5913 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5914 # unless we find 'file', for example because we are cross-compiling.
5915 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5916 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5918 lt_cv_file_magic_cmd='func_win32_libid'
5920 # Keep this pattern in sync with the one in func_win32_libid.
5921 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5922 lt_cv_file_magic_cmd='$OBJDUMP -f'
5927 # use the weaker test based on 'objdump'. See mingw*.
5928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5929 lt_cv_file_magic_cmd='$OBJDUMP -f'
5932 darwin* | rhapsody*)
5933 lt_cv_deplibs_check_method=pass_all
5936 freebsd* | dragonfly*)
5937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5940 # Not sure whether the presence of OpenBSD here was a mistake.
5941 # Let's accept both of them until this is cleared up.
5942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5943 lt_cv_file_magic_cmd=/usr/bin/file
5944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5948 lt_cv_deplibs_check_method=pass_all
5953 lt_cv_deplibs_check_method=pass_all
5957 lt_cv_deplibs_check_method=pass_all
5960 hpux10.20* | hpux11*)
5961 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5968 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]'
5969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5983 irix5* | irix6* | nonstopux*)
5985 *-32|*"-32 ") libmagic=32-bit;;
5986 *-n32|*"-n32 ") libmagic=N32;;
5987 *-64|*"-64 ") libmagic=64-bit;;
5988 *) libmagic=never-match;;
5990 lt_cv_deplibs_check_method=pass_all
5993 # This must be glibc/ELF.
5994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5995 lt_cv_deplibs_check_method=pass_all
5998 netbsd* | netbsdelf*-gnu)
5999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6008 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6013 lt_cv_deplibs_check_method=pass_all
6017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6024 osf3* | osf4* | osf5*)
6025 lt_cv_deplibs_check_method=pass_all
6029 lt_cv_deplibs_check_method=pass_all
6033 lt_cv_deplibs_check_method=pass_all
6036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6037 lt_cv_deplibs_check_method=pass_all
6041 case $host_vendor in
6043 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]'
6044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6047 lt_cv_deplibs_check_method=pass_all
6050 lt_cv_file_magic_cmd='/bin/file'
6051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6054 lt_cv_file_magic_cmd='/bin/file'
6055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6056 lt_cv_file_magic_test_file=/lib/libc.so
6059 lt_cv_deplibs_check_method=pass_all
6062 lt_cv_deplibs_check_method=pass_all
6068 lt_cv_deplibs_check_method=pass_all
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6074 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6078 if test "$build" = "$host"; then
6081 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6084 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6090 file_magic_cmd=$lt_cv_file_magic_cmd
6091 deplibs_check_method=$lt_cv_deplibs_check_method
6092 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_DLLTOOL+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 if test -n "$DLLTOOL"; then
6124 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 DLLTOOL=$ac_cv_prog_DLLTOOL
6144 if test -n "$DLLTOOL"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6146 $as_echo "$DLLTOOL" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6154 if test -z "$ac_cv_prog_DLLTOOL"; then
6155 ac_ct_DLLTOOL=$DLLTOOL
6156 # Extract the first word of "dlltool", so it can be a program name with args.
6157 set dummy dlltool; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 if test -n "$ac_ct_DLLTOOL"; then
6164 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6184 if test -n "$ac_ct_DLLTOOL"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6186 $as_echo "$ac_ct_DLLTOOL" >&6; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6192 if test "x$ac_ct_DLLTOOL" = x; then
6195 case $cross_compiling:$ac_tool_warned in
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6201 DLLTOOL=$ac_ct_DLLTOOL
6204 DLLTOOL="$ac_cv_prog_DLLTOOL"
6207 test -z "$DLLTOOL" && DLLTOOL=dlltool
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6219 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6220 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 lt_cv_sharedlib_from_linklib_cmd='unknown'
6226 cygwin* | mingw* | pw32* | cegcc*)
6227 # two different shell functions defined in ltmain.sh
6228 # decide which to use based on capabilities of $DLLTOOL
6229 case `$DLLTOOL --help 2>&1` in
6230 *--identify-strict*)
6231 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6234 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6239 # fallback: assume linklib IS sharedlib
6240 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6246 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6247 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6248 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6257 if test -n "$ac_tool_prefix"; then
6260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_AR+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -n "$AR"; then
6268 ac_cv_prog_AR="$AR" # Let the user override the test.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 if test -n "$AR"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6290 $as_echo "$AR" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6297 test -n "$AR" && break
6300 if test -z "$AR"; then
6304 # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$ac_ct_AR"; then
6312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_AR="$ac_prog"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6334 $as_echo "$ac_ct_AR" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6341 test -n "$ac_ct_AR" && break
6344 if test "x$ac_ct_AR" = x; then
6347 case $cross_compiling:$ac_tool_warned in
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6371 $as_echo_n "checking for archiver @FILE support... " >&6; }
6372 if ${lt_cv_ar_at_file+:} false; then :
6373 $as_echo_n "(cached) " >&6
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 echo conftest.$ac_objext > conftest.lst
6389 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6391 (eval $lt_ar_try) 2>&5
6393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6394 test $ac_status = 0; }
6395 if test "$ac_status" -eq 0; then
6396 # Ensure the archiver fails upon bogus file names.
6397 rm -f conftest.$ac_objext libconftest.a
6398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6399 (eval $lt_ar_try) 2>&5
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }
6403 if test "$ac_status" -ne 0; then
6407 rm -f conftest.* libconftest.a
6410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6414 $as_echo "$lt_cv_ar_at_file" >&6; }
6416 if test "x$lt_cv_ar_at_file" = xno; then
6419 archiver_list_spec=$lt_cv_ar_at_file
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}strip; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_STRIP+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$STRIP"; then
6437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 STRIP=$ac_cv_prog_STRIP
6457 if test -n "$STRIP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6459 $as_echo "$STRIP" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6467 if test -z "$ac_cv_prog_STRIP"; then
6469 # Extract the first word of "strip", so it can be a program name with args.
6470 set dummy strip; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$ac_ct_STRIP"; then
6477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_STRIP="strip"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6497 if test -n "$ac_ct_STRIP"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6499 $as_echo "$ac_ct_STRIP" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6505 if test "x$ac_ct_STRIP" = x; then
6508 case $cross_compiling:$ac_tool_warned in
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6517 STRIP="$ac_cv_prog_STRIP"
6520 test -z "$STRIP" && STRIP=:
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ranlib; 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 ${ac_cv_prog_RANLIB+:} false; then :
6533 $as_echo_n "(cached) " >&6
6535 if test -n "$RANLIB"; then
6536 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 RANLIB=$ac_cv_prog_RANLIB
6556 if test -n "$RANLIB"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6558 $as_echo "$RANLIB" >&6; }
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6566 if test -z "$ac_cv_prog_RANLIB"; then
6567 ac_ct_RANLIB=$RANLIB
6568 # Extract the first word of "ranlib", so it can be a program name with args.
6569 set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 if test -n "$ac_ct_RANLIB"; then
6576 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6596 if test -n "$ac_ct_RANLIB"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6598 $as_echo "$ac_ct_RANLIB" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6604 if test "x$ac_ct_RANLIB" = 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 ;;
6613 RANLIB=$ac_ct_RANLIB
6616 RANLIB="$ac_cv_prog_RANLIB"
6619 test -z "$RANLIB" && RANLIB=:
6626 # Determine commands to create old-style static archives.
6627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6628 old_postinstall_cmds='chmod 644 $oldlib'
6629 old_postuninstall_cmds=
6631 if test -n "$RANLIB"; then
6634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6640 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6645 lock_old_archive_extraction=yes ;;
6647 lock_old_archive_extraction=no ;;
6688 # If no C compiler was specified, use CC.
6691 # If no C compiler flags were specified, use CFLAGS.
6692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6694 # Allow CC to be a program name with arguments.
6698 # Check for command to grab the raw symbol name followed by C symbol from nm.
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6700 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6701 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6702 $as_echo_n "(cached) " >&6
6705 # These are sane defaults that work on at least a few old systems.
6706 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6708 # Character class describing NM global symbol codes.
6709 symcode='[BCDEGRST]'
6711 # Regexp to match symbols that can be accessed directly from C.
6712 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6714 # Define system-specific variables.
6719 cygwin* | mingw* | pw32* | cegcc*)
6720 symcode='[ABCDGISTW]'
6723 if test "$host_cpu" = ia64; then
6724 symcode='[ABCDEGRST]'
6728 symcode='[BCDEGRST]'
6731 symcode='[BCDEGQRST]'
6742 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6750 # If we're using GNU nm, then use its standard symbol codes.
6751 case `$NM -V 2>&1` in
6752 *GNU* | *'with BFD'*)
6753 symcode='[ABCDGIRSTW]' ;;
6756 # Transform an extracted symbol line into a proper C declaration.
6757 # Some systems (esp. on ia64) link data and code symbols differently,
6758 # so use this general approach.
6759 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6761 # Transform an extracted symbol line into symbol name and symbol address
6762 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6763 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'"
6765 # Handle CRLF in mingw tool chain
6769 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6773 # Try without a prefix underscore, then with it.
6774 for ac_symprfx in "" "_"; do
6776 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6777 symxfrm="\\1 $ac_symprfx\\2 \\2"
6779 # Write the raw and C identifiers.
6780 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6781 # Fake it for dumpbin and say T for any non-static function
6782 # and D for any global variable.
6783 # Also find C++ and __fastcall symbols from MSVC++,
6784 # which start with @ or ?.
6785 lt_cv_sys_global_symbol_pipe="$AWK '"\
6786 " {last_section=section; section=\$ 3};"\
6787 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6788 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6789 " \$ 0!~/External *\|/{next};"\
6790 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6791 " {if(hide[section]) next};"\
6792 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6793 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6794 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6795 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6796 " ' prfx=^$ac_symprfx"
6798 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6800 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6802 # Check to see that the pipe works correctly.
6806 cat > conftest.$ac_ext <<_LT_EOF
6811 void nm_test_func(void);
6812 void nm_test_func(void){}
6816 int main(){nm_test_var='a';nm_test_func();return(0);}
6819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6820 (eval $ac_compile) 2>&5
6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823 test $ac_status = 0; }; then
6824 # Now try to grab the symbols.
6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6827 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6830 test $ac_status = 0; } && test -s "$nlist"; then
6831 # Try sorting and uniquifying the output.
6832 if sort "$nlist" | uniq > "$nlist"T; then
6833 mv -f "$nlist"T "$nlist"
6838 # Make sure that we snagged all the symbols we need.
6839 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6840 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6841 cat <<_LT_EOF > conftest.$ac_ext
6842 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6843 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6844 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6845 relocations are performed -- see ld's documentation on pseudo-relocs. */
6846 # define LT_DLSYM_CONST
6847 #elif defined(__osf__)
6848 /* This system does not cope well with relocations in const data. */
6849 # define LT_DLSYM_CONST
6851 # define LT_DLSYM_CONST const
6859 # Now generate the symbol file.
6860 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6862 cat <<_LT_EOF >> conftest.$ac_ext
6864 /* The mapping between symbol names and symbols. */
6865 LT_DLSYM_CONST struct {
6869 lt__PROGRAM__LTX_preloaded_symbols[] =
6871 { "@PROGRAM@", (void *) 0 },
6873 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6874 cat <<\_LT_EOF >> conftest.$ac_ext
6878 /* This works around a problem in FreeBSD linker */
6879 #ifdef FREEBSD_WORKAROUND
6880 static const void *lt_preloaded_setup() {
6881 return lt__PROGRAM__LTX_preloaded_symbols;
6889 # Now try linking the two files.
6890 mv conftest.$ac_objext conftstm.$ac_objext
6891 lt_globsym_save_LIBS=$LIBS
6892 lt_globsym_save_CFLAGS=$CFLAGS
6893 LIBS="conftstm.$ac_objext"
6894 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6896 (eval $ac_link) 2>&5
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6902 LIBS=$lt_globsym_save_LIBS
6903 CFLAGS=$lt_globsym_save_CFLAGS
6905 echo "cannot find nm_test_func in $nlist" >&5
6908 echo "cannot find nm_test_var in $nlist" >&5
6911 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6914 echo "$progname: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 rm -rf conftest* conftst*
6919 # Do not use the global_symbol_pipe unless it works.
6920 if test "$pipe_works" = yes; then
6923 lt_cv_sys_global_symbol_pipe=
6929 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6930 lt_cv_sys_global_symbol_to_cdecl=
6932 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6934 $as_echo "failed" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6937 $as_echo "ok" >&6; }
6940 # Response file support.
6941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6942 nm_file_list_spec='@'
6943 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6944 nm_file_list_spec='@'
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6974 $as_echo_n "checking for sysroot... " >&6; }
6976 # Check whether --with-sysroot was given.
6977 if test "${with_sysroot+set}" = set; then :
6978 withval=$with_sysroot;
6985 case ${with_sysroot} in #(
6987 if test "$GCC" = yes; then
6988 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6992 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6998 $as_echo "${with_sysroot}" >&6; }
6999 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7004 $as_echo "${lt_sysroot:-no}" >&6; }
7010 # Check whether --enable-libtool-lock was given.
7011 if test "${enable_libtool_lock+set}" = set; then :
7012 enableval=$enable_libtool_lock;
7015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7017 # Some flags need to be propagated to the compiler or linker for good
7021 # Find out which ABI we are using.
7022 echo 'int i;' > conftest.$ac_ext
7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7024 (eval $ac_compile) 2>&5
7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7027 test $ac_status = 0; }; then
7028 case `/usr/bin/file conftest.$ac_objext` in
7040 # Find out which ABI we are using.
7041 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7043 (eval $ac_compile) 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 if test "$lt_cv_prog_gnu_ld" = yes; then
7048 case `/usr/bin/file conftest.$ac_objext` in
7050 LD="${LD-ld} -melf32bsmip"
7053 LD="${LD-ld} -melf32bmipn32"
7056 LD="${LD-ld} -melf64bmip"
7060 case `/usr/bin/file conftest.$ac_objext` in
7076 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7077 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7078 # Find out which ABI we are using.
7079 echo 'int i;' > conftest.$ac_ext
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 case `/usr/bin/file conftest.o` in
7088 x86_64-*kfreebsd*-gnu)
7089 LD="${LD-ld} -m elf_i386_fbsd"
7092 LD="${LD-ld} -m elf_i386"
7094 ppc64-*linux*|powerpc64-*linux*)
7095 LD="${LD-ld} -m elf32ppclinux"
7098 LD="${LD-ld} -m elf_s390"
7101 LD="${LD-ld} -m elf32_sparc"
7107 x86_64-*kfreebsd*-gnu)
7108 LD="${LD-ld} -m elf_x86_64_fbsd"
7111 LD="${LD-ld} -m elf_x86_64"
7113 ppc*-*linux*|powerpc*-*linux*)
7114 LD="${LD-ld} -m elf64ppc"
7116 s390*-*linux*|s390*-*tpf*)
7117 LD="${LD-ld} -m elf64_s390"
7120 LD="${LD-ld} -m elf64_sparc"
7130 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7131 SAVE_CFLAGS="$CFLAGS"
7132 CFLAGS="$CFLAGS -belf"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7134 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7135 if ${lt_cv_cc_needs_belf+:} false; then :
7136 $as_echo_n "(cached) " >&6
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7155 if ac_fn_c_try_link "$LINENO"; then :
7156 lt_cv_cc_needs_belf=yes
7158 lt_cv_cc_needs_belf=no
7160 rm -f core conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7170 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7171 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7172 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7173 CFLAGS="$SAVE_CFLAGS"
7177 # Find out which ABI we are using.
7178 echo 'int i;' > conftest.$ac_ext
7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180 (eval $ac_compile) 2>&5
7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; then
7184 case `/usr/bin/file conftest.o` in
7186 case $lt_cv_prog_gnu_ld in
7190 LD="${LD-ld} -m elf_x86_64"
7193 LD="${LD-ld} -m elf64_sparc"
7196 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7197 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7202 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7214 need_locks="$enable_libtool_lock"
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}mt; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7222 $as_echo_n "(cached) " >&6
7224 if test -n "$MANIFEST_TOOL"; then
7225 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7245 if test -n "$MANIFEST_TOOL"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7247 $as_echo "$MANIFEST_TOOL" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7255 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7256 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7257 # Extract the first word of "mt", so it can be a program name with args.
7258 set dummy mt; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$ac_ct_MANIFEST_TOOL"; then
7265 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7285 if test -n "$ac_ct_MANIFEST_TOOL"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7287 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7293 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7296 case $cross_compiling:$ac_tool_warned in
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7302 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7305 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7308 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7310 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7311 if ${lt_cv_path_mainfest_tool+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 lt_cv_path_mainfest_tool=no
7315 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7316 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7317 cat conftest.err >&5
7318 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7319 lt_cv_path_mainfest_tool=yes
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7324 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7325 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7335 rhapsody* | darwin*)
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 if test -n "$DSYMUTIL"; then
7345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7354 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7365 if test -n "$DSYMUTIL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7367 $as_echo "$DSYMUTIL" >&6; }
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7375 if test -z "$ac_cv_prog_DSYMUTIL"; then
7376 ac_ct_DSYMUTIL=$DSYMUTIL
7377 # Extract the first word of "dsymutil", so it can be a program name with args.
7378 set dummy dsymutil; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$ac_ct_DSYMUTIL"; then
7385 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7405 if test -n "$ac_ct_DSYMUTIL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7407 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7413 if test "x$ac_ct_DSYMUTIL" = x; then
7416 case $cross_compiling:$ac_tool_warned in
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7422 DSYMUTIL=$ac_ct_DSYMUTIL
7425 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_NMEDIT+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$NMEDIT"; then
7437 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 NMEDIT=$ac_cv_prog_NMEDIT
7457 if test -n "$NMEDIT"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7459 $as_echo "$NMEDIT" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 if test -z "$ac_cv_prog_NMEDIT"; then
7468 ac_ct_NMEDIT=$NMEDIT
7469 # Extract the first word of "nmedit", so it can be a program name with args.
7470 set dummy nmedit; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$ac_ct_NMEDIT"; then
7477 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7497 if test -n "$ac_ct_NMEDIT"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7499 $as_echo "$ac_ct_NMEDIT" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 if test "x$ac_ct_NMEDIT" = x; then
7508 case $cross_compiling:$ac_tool_warned in
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7514 NMEDIT=$ac_ct_NMEDIT
7517 NMEDIT="$ac_cv_prog_NMEDIT"
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_LIPO+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$LIPO"; then
7529 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 LIPO=$ac_cv_prog_LIPO
7549 if test -n "$LIPO"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7551 $as_echo "$LIPO" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7559 if test -z "$ac_cv_prog_LIPO"; then
7561 # Extract the first word of "lipo", so it can be a program name with args.
7562 set dummy lipo; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$ac_ct_LIPO"; then
7569 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_ac_ct_LIPO="lipo"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7589 if test -n "$ac_ct_LIPO"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7591 $as_echo "$ac_ct_LIPO" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 if test "x$ac_ct_LIPO" = x; then
7600 case $cross_compiling:$ac_tool_warned in
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7609 LIPO="$ac_cv_prog_LIPO"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}otool; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_OTOOL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$OTOOL"; then
7621 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 OTOOL=$ac_cv_prog_OTOOL
7641 if test -n "$OTOOL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7643 $as_echo "$OTOOL" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_OTOOL"; then
7653 # Extract the first word of "otool", so it can be a program name with args.
7654 set dummy otool; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_OTOOL"; then
7661 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_ac_ct_OTOOL="otool"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7681 if test -n "$ac_ct_OTOOL"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7683 $as_echo "$ac_ct_OTOOL" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_OTOOL" = x; then
7692 case $cross_compiling:$ac_tool_warned in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7701 OTOOL="$ac_cv_prog_OTOOL"
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_OTOOL64+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$OTOOL64"; then
7713 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 OTOOL64=$ac_cv_prog_OTOOL64
7733 if test -n "$OTOOL64"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7735 $as_echo "$OTOOL64" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_OTOOL64"; then
7744 ac_ct_OTOOL64=$OTOOL64
7745 # Extract the first word of "otool64", so it can be a program name with args.
7746 set dummy otool64; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_OTOOL64"; then
7753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_ac_ct_OTOOL64="otool64"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7773 if test -n "$ac_ct_OTOOL64"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7775 $as_echo "$ac_ct_OTOOL64" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_OTOOL64" = x; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7790 OTOOL64=$ac_ct_OTOOL64
7793 OTOOL64="$ac_cv_prog_OTOOL64"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7823 $as_echo_n "checking for -single_module linker flag... " >&6; }
7824 if ${lt_cv_apple_cc_single_mod+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 lt_cv_apple_cc_single_mod=no
7828 if test -z "${LT_MULTI_MODULE}"; then
7829 # By default we will add the -single_module flag. You can override
7830 # by either setting the environment variable LT_MULTI_MODULE
7831 # non-empty at configure time, or by adding -multi_module to the
7833 rm -rf libconftest.dylib*
7834 echo "int foo(void){return 1;}" > conftest.c
7835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7836 -dynamiclib -Wl,-single_module conftest.c" >&5
7837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7840 # If there is a non-empty error log, and "single_module"
7841 # appears in it, assume the flag caused a linker warning
7842 if test -s conftest.err && $GREP single_module conftest.err; then
7843 cat conftest.err >&5
7844 # Otherwise, if the output was created with a 0 exit code from
7845 # the compiler, it worked.
7846 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7847 lt_cv_apple_cc_single_mod=yes
7849 cat conftest.err >&5
7851 rm -rf libconftest.dylib*
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7856 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7859 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7860 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7861 $as_echo_n "(cached) " >&6
7863 lt_cv_ld_exported_symbols_list=no
7864 save_LDFLAGS=$LDFLAGS
7865 echo "_main" > conftest.sym
7866 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 lt_cv_ld_exported_symbols_list=yes
7881 lt_cv_ld_exported_symbols_list=no
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LDFLAGS="$save_LDFLAGS"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7889 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7892 $as_echo_n "checking for -force_load linker flag... " >&6; }
7893 if ${lt_cv_ld_force_load+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 lt_cv_ld_force_load=no
7897 cat > conftest.c << _LT_EOF
7898 int forced_loaded() { return 2;}
7900 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7901 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7902 echo "$AR cru libconftest.a conftest.o" >&5
7903 $AR cru libconftest.a conftest.o 2>&5
7904 echo "$RANLIB libconftest.a" >&5
7905 $RANLIB libconftest.a 2>&5
7906 cat > conftest.c << _LT_EOF
7907 int main() { return 0;}
7909 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7910 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7912 if test -s conftest.err && $GREP force_load conftest.err; then
7913 cat conftest.err >&5
7914 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; 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 ${ac_cv_prog_CPP+:} false; 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.i 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.i conftest.$ac_ext
8021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8022 rm -f conftest.i 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.i 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.i conftest.$ac_ext
8080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081 rm -f conftest.i 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 ${ac_cv_header_stdc+:} false; 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 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8218 cat >>confdefs.h <<_ACEOF
8219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 for ac_header in dlfcn.h
8229 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8232 cat >>confdefs.h <<_ACEOF
8233 #define HAVE_DLFCN_H 1
8243 func_stripname_cnf ()
8246 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8247 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8249 } # func_stripname_cnf
8265 # Check whether --enable-shared was given.
8266 if test "${enable_shared+set}" = set; then :
8267 enableval=$enable_shared; p=${PACKAGE-default}
8269 yes) enable_shared=yes ;;
8270 no) enable_shared=no ;;
8273 # Look at the argument we got. We use all the common list separators.
8274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275 for pkg in $enableval; do
8277 if test "X$pkg" = "X$p"; then
8296 # Check whether --enable-static was given.
8297 if test "${enable_static+set}" = set; then :
8298 enableval=$enable_static; p=${PACKAGE-default}
8300 yes) enable_static=yes ;;
8301 no) enable_static=no ;;
8304 # Look at the argument we got. We use all the common list separators.
8305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8306 for pkg in $enableval; do
8308 if test "X$pkg" = "X$p"; then
8328 # Check whether --with-pic was given.
8329 if test "${with_pic+set}" = set; then :
8330 withval=$with_pic; lt_p=${PACKAGE-default}
8332 yes|no) pic_mode=$withval ;;
8335 # Look at the argument we got. We use all the common list separators.
8336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8337 for lt_pkg in $withval; do
8339 if test "X$lt_pkg" = "X$lt_p"; then
8351 test -z "$pic_mode" && pic_mode=default
8359 # Check whether --enable-fast-install was given.
8360 if test "${enable_fast_install+set}" = set; then :
8361 enableval=$enable_fast_install; p=${PACKAGE-default}
8363 yes) enable_fast_install=yes ;;
8364 no) enable_fast_install=no ;;
8366 enable_fast_install=no
8367 # Look at the argument we got. We use all the common list separators.
8368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8369 for pkg in $enableval; do
8371 if test "X$pkg" = "X$p"; then
8372 enable_fast_install=yes
8379 enable_fast_install=yes
8392 # This can be used to rebuild libtool when needed
8393 LIBTOOL_DEPS="$ltmain"
8395 # Always use our own libtool.
8396 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8427 test -z "$LN_S" && LN_S="ln -s"
8442 if test -n "${ZSH_VERSION+set}" ; then
8443 setopt NO_GLOB_SUBST
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8447 $as_echo_n "checking for objdir... " >&6; }
8448 if ${lt_cv_objdir+:} false; then :
8449 $as_echo_n "(cached) " >&6
8451 rm -f .libs 2>/dev/null
8452 mkdir .libs 2>/dev/null
8453 if test -d .libs; then
8456 # MS-DOS does not allow filenames that begin with a dot.
8459 rmdir .libs 2>/dev/null
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8462 $as_echo "$lt_cv_objdir" >&6; }
8463 objdir=$lt_cv_objdir
8469 cat >>confdefs.h <<_ACEOF
8470 #define LT_OBJDIR "$lt_cv_objdir/"
8478 # AIX sometimes has problems with the GCC collect2 program. For some
8479 # reason, if we set the COLLECT_NAMES environment variable, the problems
8480 # vanish in a puff of smoke.
8481 if test "X${COLLECT_NAMES+set}" != Xset; then
8483 export COLLECT_NAMES
8490 can_build_shared=yes
8492 # All known linkers require a `.a' archive for static linking (except MSVC,
8493 # which needs '.lib').
8496 with_gnu_ld="$lt_cv_prog_gnu_ld"
8499 old_CFLAGS="$CFLAGS"
8501 # Set sane defaults for various variables
8502 test -z "$CC" && CC=cc
8503 test -z "$LTCC" && LTCC=$CC
8504 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8505 test -z "$LD" && LD=ld
8506 test -z "$ac_objext" && ac_objext=o
8508 for cc_temp in $compiler""; do
8510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8519 # Only perform the check for file, if the check method requires it
8520 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8521 case $deplibs_check_method in
8523 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8525 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8527 $as_echo_n "(cached) " >&6
8531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8534 lt_save_MAGIC_CMD="$MAGIC_CMD"
8535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f $ac_dir/${ac_tool_prefix}file; then
8541 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8570 MAGIC_CMD="$lt_save_MAGIC_CMD"
8575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8588 if test -z "$lt_cv_path_MAGIC_CMD"; then
8589 if test -n "$ac_tool_prefix"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8591 $as_echo_n "checking for file... " >&6; }
8592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8593 $as_echo_n "(cached) " >&6
8597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8600 lt_save_MAGIC_CMD="$MAGIC_CMD"
8601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8603 for ac_dir in $ac_dummy; do
8605 test -z "$ac_dir" && ac_dir=.
8606 if test -f $ac_dir/file; then
8607 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8608 if test -n "$file_magic_test_file"; then
8609 case $deplibs_check_method in
8611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8614 $EGREP "$file_magic_regex" > /dev/null; then
8619 *** Warning: the command libtool uses to detect shared libraries,
8620 *** $file_magic_cmd, produces output that libtool cannot recognize.
8621 *** The result is that libtool may fail to recognize shared libraries
8622 *** as such. This will affect the creation of libtool libraries that
8623 *** depend on shared libraries, but programs linked with such libtool
8624 *** libraries will work regardless of this problem. Nevertheless, you
8625 *** may want to report the problem to your system manager and/or to
8626 *** bug-libtool@gnu.org
8636 MAGIC_CMD="$lt_save_MAGIC_CMD"
8641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8642 if test -n "$MAGIC_CMD"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8644 $as_echo "$MAGIC_CMD" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8660 # Use C for the default configuration in the libtool script
8664 ac_cpp='$CPP $CPPFLAGS'
8665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8670 # Source file extension for C test sources.
8673 # Object file extension for compiled C test sources.
8677 # Code to be used in simple compile tests
8678 lt_simple_compile_test_code="int some_variable = 0;"
8680 # Code to be used in simple link tests
8681 lt_simple_link_test_code='int main(){return(0);}'
8689 # If no C compiler was specified, use CC.
8692 # If no C compiler flags were specified, use CFLAGS.
8693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8695 # Allow CC to be a program name with arguments.
8698 # Save the default compiler, since it gets overwritten when the other
8699 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8700 compiler_DEFAULT=$CC
8702 # save warnings/boilerplate of simple test code
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8705 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_compiler_boilerplate=`cat conftest.err`
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8711 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_linker_boilerplate=`cat conftest.err`
8717 ## There is no encapsulation within the following macros, do not change
8718 ## the running order or otherwise move them around unless you know exactly
8719 ## what you are doing...
8720 if test -n "$compiler"; then
8722 lt_prog_compiler_no_builtin_flag=
8724 if test "$GCC" = yes; then
8725 case $cc_basename in
8727 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8729 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 lt_cv_prog_compiler_rtti_exceptions=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="-fno-rtti -fno-exceptions"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_rtti_exceptions=yes
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8783 lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8788 if test "$GCC" = yes; then
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_static='-static'
8794 # All AIX code is PIC.
8795 if test "$host_cpu" = ia64; then
8796 # AIX 5 now supports IA64 processor
8797 lt_prog_compiler_static='-Bstatic'
8804 # see comment about AmigaOS4 .so support
8805 lt_prog_compiler_pic='-fPIC'
8808 # FIXME: we need at least 68020 code to build shared libraries, but
8809 # adding the `-m68020' flag to GCC prevents building anything better,
8811 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8816 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8817 # PIC is the default for these OSes.
8820 mingw* | cygwin* | pw32* | os2* | cegcc*)
8821 # This hack is so that the source file can tell whether it is being
8822 # built for inclusion in a dll (and should export symbols for example).
8823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8824 # (--disable-auto-import) libraries
8825 lt_prog_compiler_pic='-DDLL_EXPORT'
8828 darwin* | rhapsody*)
8829 # PIC is the default on this platform
8830 # Common symbols not allowed in MH_DYLIB files
8831 lt_prog_compiler_pic='-fno-common'
8835 # PIC is the default for Haiku.
8836 # The "-static" flag exists, but is broken.
8837 lt_prog_compiler_static=
8841 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8842 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8843 # sets the default TLS model and affects inlining.
8849 lt_prog_compiler_pic='-fPIC'
8855 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8856 # Instead, we relocate shared libraries at runtime.
8860 # Just because we use GCC doesn't mean we suddenly get shared libraries
8861 # on systems that don't support them.
8862 lt_prog_compiler_can_build_shared=no
8867 # QNX uses GNU C++, but need to define -shared option too, otherwise
8869 lt_prog_compiler_pic='-fPIC -shared'
8873 if test -d /usr/nec; then
8874 lt_prog_compiler_pic=-Kconform_pic
8879 lt_prog_compiler_pic='-fPIC'
8883 case $cc_basename in
8884 nvcc*) # Cuda Compiler Driver 2.2
8885 lt_prog_compiler_wl='-Xlinker '
8886 if test -n "$lt_prog_compiler_pic"; then
8887 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8892 # PORTME Check for flag to pass linker flags through the system compiler.
8895 lt_prog_compiler_wl='-Wl,'
8896 if test "$host_cpu" = ia64; then
8897 # AIX 5 now supports IA64 processor
8898 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8904 mingw* | cygwin* | pw32* | os2* | cegcc*)
8905 # This hack is so that the source file can tell whether it is being
8906 # built for inclusion in a dll (and should export symbols for example).
8907 lt_prog_compiler_pic='-DDLL_EXPORT'
8910 hpux9* | hpux10* | hpux11*)
8911 lt_prog_compiler_wl='-Wl,'
8912 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8919 lt_prog_compiler_pic='+Z'
8922 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8923 lt_prog_compiler_static='${wl}-a ${wl}archive'
8926 irix5* | irix6* | nonstopux*)
8927 lt_prog_compiler_wl='-Wl,'
8928 # PIC (with -KPIC) is the default.
8929 lt_prog_compiler_static='-non_shared'
8932 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8933 case $cc_basename in
8934 # old Intel for x86_64 which still supported -KPIC.
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_pic='-KPIC'
8938 lt_prog_compiler_static='-static'
8940 # icc used to be incompatible with GCC.
8941 # ICC 10 doesn't accept -KPIC any more.
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-fPIC'
8945 lt_prog_compiler_static='-static'
8947 # Lahey Fortran 8.1.
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_pic='--shared'
8951 lt_prog_compiler_static='--static'
8954 # NAG Fortran compiler
8955 lt_prog_compiler_wl='-Wl,-Wl,,'
8956 lt_prog_compiler_pic='-PIC'
8957 lt_prog_compiler_static='-Bstatic'
8959 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8960 # Portland Group compilers (*not* the Pentium gcc compiler,
8961 # which looks to be a dead project)
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='-fpic'
8964 lt_prog_compiler_static='-Bstatic'
8967 lt_prog_compiler_wl='-Wl,'
8968 # All Alpha code is PIC.
8969 lt_prog_compiler_static='-non_shared'
8971 xl* | bgxl* | bgf* | mpixl*)
8972 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8973 lt_prog_compiler_wl='-Wl,'
8974 lt_prog_compiler_pic='-qpic'
8975 lt_prog_compiler_static='-qstaticlink'
8978 case `$CC -V 2>&1 | sed 5q` in
8979 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8980 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8983 lt_prog_compiler_wl=''
8985 *Sun\ F* | *Sun*Fortran*)
8986 lt_prog_compiler_pic='-KPIC'
8987 lt_prog_compiler_static='-Bstatic'
8988 lt_prog_compiler_wl='-Qoption ld '
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-Bstatic'
8994 lt_prog_compiler_wl='-Wl,'
8996 *Intel*\ [CF]*Compiler*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-fPIC'
8999 lt_prog_compiler_static='-static'
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-fpic'
9004 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-Bstatic'
9017 # QNX uses GNU C++, but need to define -shared option too, otherwise
9019 lt_prog_compiler_pic='-fPIC -shared'
9022 osf3* | osf4* | osf5*)
9023 lt_prog_compiler_wl='-Wl,'
9024 # All OSF/1 code is PIC.
9025 lt_prog_compiler_static='-non_shared'
9029 lt_prog_compiler_static='-non_shared'
9033 lt_prog_compiler_pic='-KPIC'
9034 lt_prog_compiler_static='-Bstatic'
9035 case $cc_basename in
9036 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9037 lt_prog_compiler_wl='-Qoption ld ';;
9039 lt_prog_compiler_wl='-Wl,';;
9044 lt_prog_compiler_wl='-Qoption ld '
9045 lt_prog_compiler_pic='-PIC'
9046 lt_prog_compiler_static='-Bstatic'
9049 sysv4 | sysv4.2uw2* | sysv4.3*)
9050 lt_prog_compiler_wl='-Wl,'
9051 lt_prog_compiler_pic='-KPIC'
9052 lt_prog_compiler_static='-Bstatic'
9056 if test -d /usr/nec ;then
9057 lt_prog_compiler_pic='-Kconform_pic'
9058 lt_prog_compiler_static='-Bstatic'
9062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-Bstatic'
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_can_build_shared=no
9074 lt_prog_compiler_pic='-pic'
9075 lt_prog_compiler_static='-Bstatic'
9079 lt_prog_compiler_can_build_shared=no
9085 # For platforms which do not support PIC, -DPIC is meaningless:
9087 lt_prog_compiler_pic=
9090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9095 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9096 if ${lt_cv_prog_compiler_pic+:} false; then :
9097 $as_echo_n "(cached) " >&6
9099 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9102 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9103 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9106 # Check to make sure the PIC flag actually works.
9108 if test -n "$lt_prog_compiler_pic"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9110 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9111 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9112 $as_echo_n "(cached) " >&6
9114 lt_cv_prog_compiler_pic_works=no
9115 ac_outfile=conftest.$ac_objext
9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9118 # Insert the option either (1) after the last *FLAGS variable, or
9119 # (2) before a word containing "conftest.", or (3) at the end.
9120 # Note that $ac_compile itself does not contain backslashes and begins
9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
9122 # The option is referenced via a variable to avoid confusing sed.
9123 lt_compile=`echo "$ac_compile" | $SED \
9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126 -e 's:$: $lt_compiler_flag:'`
9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128 (eval "$lt_compile" 2>conftest.err)
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 if (exit $ac_status) && test -s "$ac_outfile"; then
9133 # The compiler can only warn and ignore the option if not recognized
9134 # So say no if there are warnings other than the usual output.
9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler_pic_works=yes
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9147 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9148 case $lt_prog_compiler_pic in
9150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9153 lt_prog_compiler_pic=
9154 lt_prog_compiler_can_build_shared=no
9170 # Check to make sure the static flag actually works.
9172 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9174 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9175 if ${lt_cv_prog_compiler_static_works+:} false; then :
9176 $as_echo_n "(cached) " >&6
9178 lt_cv_prog_compiler_static_works=no
9179 save_LDFLAGS="$LDFLAGS"
9180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9181 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9183 # The linker can only warn and ignore the option if not recognized
9184 # So say no if there are warnings
9185 if test -s conftest.err; then
9186 # Append any errors to the config.log.
9187 cat conftest.err 1>&5
9188 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9190 if diff conftest.exp conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_static_works=yes
9194 lt_cv_prog_compiler_static_works=yes
9198 LDFLAGS="$save_LDFLAGS"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9202 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9204 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9207 lt_prog_compiler_static=
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9218 if ${lt_cv_prog_compiler_c_o+:} false; then :
9219 $as_echo_n "(cached) " >&6
9221 lt_cv_prog_compiler_c_o=no
9222 $RM -r conftest 2>/dev/null
9226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9228 lt_compiler_flag="-o out/conftest2.$ac_objext"
9229 # Insert the option either (1) after the last *FLAGS variable, or
9230 # (2) before a word containing "conftest.", or (3) at the end.
9231 # Note that $ac_compile itself does not contain backslashes and begins
9232 # with a dollar sign (not a hyphen), so the echo should work correctly.
9233 lt_compile=`echo "$ac_compile" | $SED \
9234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9236 -e 's:$: $lt_compiler_flag:'`
9237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9238 (eval "$lt_compile" 2>out/conftest.err)
9240 cat out/conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244 # The compiler can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9249 lt_cv_prog_compiler_c_o=yes
9254 # SGI C++ compiler will create directory out/ii_files/ for
9255 # template instantiation
9256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9257 $RM out/* && rmdir out
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9264 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9273 if ${lt_cv_prog_compiler_c_o+:} false; then :
9274 $as_echo_n "(cached) " >&6
9276 lt_cv_prog_compiler_c_o=no
9277 $RM -r conftest 2>/dev/null
9281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283 lt_compiler_flag="-o out/conftest2.$ac_objext"
9284 # Insert the option either (1) after the last *FLAGS variable, or
9285 # (2) before a word containing "conftest.", or (3) at the end.
9286 # Note that $ac_compile itself does not contain backslashes and begins
9287 # with a dollar sign (not a hyphen), so the echo should work correctly.
9288 lt_compile=`echo "$ac_compile" | $SED \
9289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9291 -e 's:$: $lt_compiler_flag:'`
9292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9293 (eval "$lt_compile" 2>out/conftest.err)
9295 cat out/conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9299 # The compiler can only warn and ignore the option if not recognized
9300 # So say no if there are warnings
9301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9304 lt_cv_prog_compiler_c_o=yes
9309 # SGI C++ compiler will create directory out/ii_files/ for
9310 # template instantiation
9311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9312 $RM out/* && rmdir out
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9324 hard_links="nottested"
9325 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9326 # do not overwrite the value of need_locks provided by the user
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9328 $as_echo_n "checking if we can lock with hard links... " >&6; }
9331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9333 ln conftest.a conftest.b 2>&5 || hard_links=no
9334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9336 $as_echo "$hard_links" >&6; }
9337 if test "$hard_links" = no; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9352 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9355 allow_undefined_flag=
9356 always_export_symbols=no
9358 archive_expsym_cmds=
9359 compiler_needs_object=no
9360 enable_shared_with_static_runtimes=no
9361 export_dynamic_flag_spec=
9362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9363 hardcode_automatic=no
9365 hardcode_direct_absolute=no
9366 hardcode_libdir_flag_spec=
9367 hardcode_libdir_separator=
9369 hardcode_shlibpath_var=unsupported
9371 link_all_deplibs=unknown
9374 old_archive_from_new_cmds=
9375 old_archive_from_expsyms_cmds=
9376 thread_safe_flag_spec=
9377 whole_archive_flag_spec=
9378 # include_expsyms should be a list of space-separated symbols to be *always*
9379 # included in the symbol list
9381 # exclude_expsyms can be an extended regexp of symbols to exclude
9382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384 # as well as any symbol that contains `d'.
9385 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387 # platforms (ab)use it in PIC code, but their linkers get confused if
9388 # the symbol is explicitly referenced. Since portable code cannot
9389 # rely on this symbol name, it's probably fine to never include it in
9390 # preloaded symbol tables.
9391 # Exclude shared library initialization/finalization symbols.
9392 extract_expsyms_cmds=
9395 cygwin* | mingw* | pw32* | cegcc*)
9396 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9397 # When not using gcc, we currently assume that we are using
9398 # Microsoft Visual C++.
9399 if test "$GCC" != yes; then
9404 # we just hope/assume this is gcc and not c89 (= MSVC++)
9410 linux* | k*bsd*-gnu | gnu*)
9417 # On some targets, GNU ld is compatible enough with the native linker
9418 # that we're better off using the native interface for both.
9419 lt_use_gnu_ld_interface=no
9420 if test "$with_gnu_ld" = yes; then
9423 # The AIX port of GNU ld has always aspired to compatibility
9424 # with the native linker. However, as the warning in the GNU ld
9425 # block says, versions before 2.19.5* couldn't really create working
9426 # shared libraries, regardless of the interface used.
9427 case `$LD -v 2>&1` in
9428 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9429 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9430 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9432 lt_use_gnu_ld_interface=yes
9437 lt_use_gnu_ld_interface=yes
9442 if test "$lt_use_gnu_ld_interface" = yes; then
9443 # If archive_cmds runs LD, not CC, wlarc should be empty
9446 # Set some defaults for GNU ld with shared library support. These
9447 # are reset later if shared libraries are not supported. Putting them
9448 # here allows them to be overridden if necessary.
9449 runpath_var=LD_RUN_PATH
9450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451 export_dynamic_flag_spec='${wl}--export-dynamic'
9452 # ancient GNU ld didn't support --whole-archive et. al.
9453 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9454 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9456 whole_archive_flag_spec=
9458 supports_anon_versioning=no
9459 case `$LD -v 2>&1` in
9460 *GNU\ gold*) supports_anon_versioning=yes ;;
9461 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9462 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9463 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9464 *\ 2.11.*) ;; # other 2.11 versions
9465 *) supports_anon_versioning=yes ;;
9468 # See if GNU ld supports shared libraries.
9471 # On AIX/PPC, the GNU linker is very broken
9472 if test "$host_cpu" != ia64; then
9476 *** Warning: the GNU linker, at least up to release 2.19, is reported
9477 *** to be unable to reliably create shared libraries on AIX.
9478 *** Therefore, libtool is disabling shared libraries support. If you
9479 *** really care for shared libraries, you may want to install binutils
9480 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9481 *** You will then need to restart the configuration process.
9490 # see comment about AmigaOS4 .so support
9491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492 archive_expsym_cmds=''
9495 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)'
9496 hardcode_libdir_flag_spec='-L$libdir'
9497 hardcode_minus_L=yes
9503 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504 allow_undefined_flag=unsupported
9505 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9506 # support --undefined. This deserves some investigation. FIXME
9507 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 cygwin* | mingw* | pw32* | cegcc*)
9514 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9515 # as there is no search path for DLLs.
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 export_dynamic_flag_spec='${wl}--export-all-symbols'
9518 allow_undefined_flag=unsupported
9519 always_export_symbols=no
9520 enable_shared_with_static_runtimes=yes
9521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9522 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9526 # If the export-symbols file already is a .def file (1st line
9527 # is EXPORTS), use it as is; otherwise, prepend...
9528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9529 cp $export_symbols $output_objdir/$soname.def;
9531 echo EXPORTS > $output_objdir/$soname.def;
9532 cat $export_symbols >> $output_objdir/$soname.def;
9534 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 link_all_deplibs=yes
9547 hardcode_shlibpath_var=no
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 export_dynamic_flag_spec='${wl}-E'
9550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9551 # Instead, shared libraries are loaded at an image base (0x10000000 by
9552 # default) and relocated if they conflict, which is a slow very memory
9553 # consuming and fragmenting process. To avoid this, we pick a random,
9554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9557 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'
9560 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9562 if test "$host_os" = linux-dietlibc; then
9563 case $cc_basename in
9564 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9567 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9568 && test "$tmp_diet" = no
9570 tmp_addflag=' $pic_flag'
9571 tmp_sharedflag='-shared'
9572 case $cc_basename,$host_cpu in
9573 pgcc*) # Portland Group C compiler
9574 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'
9575 tmp_addflag=' $pic_flag'
9577 pgf77* | pgf90* | pgf95* | pgfortran*)
9578 # Portland Group f77 and f90 compilers
9579 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'
9580 tmp_addflag=' $pic_flag -Mnomain' ;;
9581 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9582 tmp_addflag=' -i_dynamic' ;;
9583 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9584 tmp_addflag=' -i_dynamic -nofor_main' ;;
9585 ifc* | ifort*) # Intel Fortran compiler
9586 tmp_addflag=' -nofor_main' ;;
9587 lf95*) # Lahey Fortran 8.1
9588 whole_archive_flag_spec=
9589 tmp_sharedflag='--shared' ;;
9590 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9591 tmp_sharedflag='-qmkshrobj'
9593 nvcc*) # Cuda Compiler Driver 2.2
9594 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'
9595 compiler_needs_object=yes
9598 case `$CC -V 2>&1 | sed 5q` in
9599 *Sun\ C*) # Sun C 5.9
9600 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'
9601 compiler_needs_object=yes
9602 tmp_sharedflag='-G' ;;
9603 *Sun\ F*) # Sun Fortran 8.3
9604 tmp_sharedflag='-G' ;;
9606 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9608 if test "x$supports_anon_versioning" = xyes; then
9609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9611 echo "local: *; };" >> $output_objdir/$libname.ver~
9612 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9615 case $cc_basename in
9616 xlf* | bgf* | bgxlf* | mpixlf*)
9617 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9621 if test "x$supports_anon_versioning" = xyes; then
9622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624 echo "local: *; };" >> $output_objdir/$libname.ver~
9625 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9634 netbsd* | netbsdelf*-gnu)
9635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9650 *** create shared libraries on Solaris systems. Therefore, libtool
9651 *** is disabling shared libraries support. We urge you to upgrade GNU
9652 *** binutils to release 2.9.1 or newer. Another option is to modify
9653 *** your PATH or compiler configuration so that the native linker is
9654 *** used, and then restart.
9657 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9666 case `$LD -v 2>&1` in
9667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9671 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9672 *** reliably create shared libraries on SCO systems. Therefore, libtool
9673 *** is disabling shared libraries support. We urge you to upgrade GNU
9674 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9675 *** your PATH or compiler configuration so that the native linker is
9676 *** used, and then restart.
9681 # For security reasons, it is highly recommended that you always
9682 # use absolute paths for naming shared libraries, and exclude the
9683 # DT_RUNPATH tag from executables and libraries. But doing so
9684 # requires that you compile everything twice, which is a pain.
9685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9688 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_shlibpath_var=no
9704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9713 if test "$ld_shlibs" = no; then
9715 hardcode_libdir_flag_spec=
9716 export_dynamic_flag_spec=
9717 whole_archive_flag_spec=
9720 # PORTME fill in a description of your system's linker (not GNU ld)
9723 allow_undefined_flag=unsupported
9724 always_export_symbols=yes
9725 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'
9726 # Note: this linker hardcodes the directories in LIBPATH if there
9727 # are no directories specified by -L.
9728 hardcode_minus_L=yes
9729 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9730 # Neither direct hardcoding nor static linking is supported with a
9732 hardcode_direct=unsupported
9737 if test "$host_cpu" = ia64; then
9738 # On IA64, the linker does run time linking by default, so we don't
9739 # have to do anything special.
9740 aix_use_runtimelinking=no
9741 exp_sym_flag='-Bexport'
9744 # If we're using GNU nm, then we don't want the "-C" option.
9745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9746 # Also, AIX nm treats weak defined symbols like other global
9747 # defined symbols, whereas GNU nm marks them as "W".
9748 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9749 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'
9751 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'
9753 aix_use_runtimelinking=no
9755 # Test if we are trying to use run time linking or normal
9756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9757 # need to do runtime linking.
9758 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9759 for ld_flag in $LDFLAGS; do
9760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9761 aix_use_runtimelinking=yes
9768 exp_sym_flag='-bexport'
9769 no_entry_flag='-bnoentry'
9772 # When large executables or shared objects are built, AIX ld can
9773 # have problems creating the table of contents. If linking a library
9774 # or program results in "error TOC overflow" add -mminimal-toc to
9775 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9776 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9780 hardcode_direct_absolute=yes
9781 hardcode_libdir_separator=':'
9782 link_all_deplibs=yes
9783 file_list_spec='${wl}-f,'
9785 if test "$GCC" = yes; then
9786 case $host_os in aix4.[012]|aix4.[012].*)
9787 # We only want to do this on AIX 4.2 and lower, the check
9788 # below for broken collect2 doesn't work under 4.3+
9789 collect2name=`${CC} -print-prog-name=collect2`
9790 if test -f "$collect2name" &&
9791 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9793 # We have reworked collect2
9796 # We have old collect2
9797 hardcode_direct=unsupported
9798 # It fails to find uninstalled libraries when the uninstalled
9799 # path is not listed in the libpath. Setting hardcode_minus_L
9800 # to unsupported forces relinking
9801 hardcode_minus_L=yes
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_libdir_separator=
9807 shared_flag='-shared'
9808 if test "$aix_use_runtimelinking" = yes; then
9809 shared_flag="$shared_flag "'${wl}-G'
9814 if test "$host_cpu" = ia64; then
9815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9816 # chokes on -Wl,-G. The following line is correct:
9819 if test "$aix_use_runtimelinking" = yes; then
9820 shared_flag='${wl}-G'
9822 shared_flag='${wl}-bM:SRE'
9827 export_dynamic_flag_spec='${wl}-bexpall'
9828 # It seems that -bexpall does not export symbols beginning with
9829 # underscore (_), so it is better to generate a list of symbols to export.
9830 always_export_symbols=yes
9831 if test "$aix_use_runtimelinking" = yes; then
9832 # Warning - without using the other runtime loading flags (-brtl),
9833 # -berok will link without error, but may produce a broken library.
9834 allow_undefined_flag='-berok'
9835 # Determine the default libpath from the value encoded in an
9837 if test "${lt_cv_aix_libpath+set}" = set; then
9838 aix_libpath=$lt_cv_aix_libpath
9840 if ${lt_cv_aix_libpath_+:} false; then :
9841 $as_echo_n "(cached) " >&6
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9854 if ac_fn_c_try_link "$LINENO"; then :
9856 lt_aix_libpath_sed='
9857 /Import File Strings/,/^$/ {
9859 s/^0 *\([^ ]*\) *$/\1/
9863 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864 # Check for a 64-bit object if we didn't find anything.
9865 if test -z "$lt_cv_aix_libpath_"; then
9866 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 if test -z "$lt_cv_aix_libpath_"; then
9872 lt_cv_aix_libpath_="/usr/lib:/lib"
9877 aix_libpath=$lt_cv_aix_libpath_
9880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881 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"
9883 if test "$host_cpu" = ia64; then
9884 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9885 allow_undefined_flag="-z nodefs"
9886 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"
9888 # Determine the default libpath from the value encoded in an
9890 if test "${lt_cv_aix_libpath+set}" = set; then
9891 aix_libpath=$lt_cv_aix_libpath
9893 if ${lt_cv_aix_libpath_+:} false; then :
9894 $as_echo_n "(cached) " >&6
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9907 if ac_fn_c_try_link "$LINENO"; then :
9909 lt_aix_libpath_sed='
9910 /Import File Strings/,/^$/ {
9912 s/^0 *\([^ ]*\) *$/\1/
9916 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9917 # Check for a 64-bit object if we didn't find anything.
9918 if test -z "$lt_cv_aix_libpath_"; then
9919 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$lt_cv_aix_libpath_"; then
9925 lt_cv_aix_libpath_="/usr/lib:/lib"
9930 aix_libpath=$lt_cv_aix_libpath_
9933 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9934 # Warning - without using the other run time loading flags,
9935 # -berok will link without error, but may produce a broken library.
9936 no_undefined_flag=' ${wl}-bernotok'
9937 allow_undefined_flag=' ${wl}-berok'
9938 if test "$with_gnu_ld" = yes; then
9939 # We only use this code for GNU lds that support --whole-archive.
9940 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9942 # Exported symbols can be pulled into shared objects from archives
9943 whole_archive_flag_spec='$convenience'
9945 archive_cmds_need_lc=yes
9946 # This is similar to how AIX traditionally builds its shared libraries.
9947 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'
9955 # see comment about AmigaOS4 .so support
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 archive_expsym_cmds=''
9960 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)'
9961 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_minus_L=yes
9968 export_dynamic_flag_spec=-rdynamic
9971 cygwin* | mingw* | pw32* | cegcc*)
9972 # When not using gcc, we currently assume that we are using
9973 # Microsoft Visual C++.
9974 # hardcode_libdir_flag_spec is actually meaningless, as there is
9975 # no search path for DLLs.
9976 case $cc_basename in
9979 hardcode_libdir_flag_spec=' '
9980 allow_undefined_flag=unsupported
9981 always_export_symbols=yes
9983 # Tell ltmain to make .lib files, not .a files.
9985 # Tell ltmain to make .dll files, not .so files.
9987 # FIXME: Setting linknames here is a bad hack.
9988 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9989 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9990 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9992 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9994 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9996 # The linker will not automatically build a static lib if we build a DLL.
9997 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9998 enable_shared_with_static_runtimes=yes
9999 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10002 old_postinstall_cmds='chmod 644 $oldlib'
10003 postlink_cmds='lt_outputfile="@OUTPUT@"~
10004 lt_tool_outputfile="@TOOL_OUTPUT@"~
10005 case $lt_outputfile in
10008 lt_outputfile="$lt_outputfile.exe"
10009 lt_tool_outputfile="$lt_tool_outputfile.exe"
10012 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10013 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10014 $RM "$lt_outputfile.manifest";
10018 # Assume MSVC wrapper
10019 hardcode_libdir_flag_spec=' '
10020 allow_undefined_flag=unsupported
10021 # Tell ltmain to make .lib files, not .a files.
10023 # Tell ltmain to make .dll files, not .so files.
10025 # FIXME: Setting linknames here is a bad hack.
10026 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10027 # The linker will automatically build a .lib file if we build a DLL.
10028 old_archive_from_new_cmds='true'
10029 # FIXME: Should let the user specify the lib program.
10030 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10031 enable_shared_with_static_runtimes=yes
10036 darwin* | rhapsody*)
10039 archive_cmds_need_lc=no
10041 hardcode_automatic=yes
10042 hardcode_shlibpath_var=unsupported
10043 if test "$lt_cv_ld_force_load" = "yes"; then
10044 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\"`'
10047 whole_archive_flag_spec=''
10049 link_all_deplibs=yes
10050 allow_undefined_flag="$_lt_dar_allow_undefined"
10051 case $cc_basename in
10052 ifort*) _lt_dar_can_shared=yes ;;
10053 *) _lt_dar_can_shared=$GCC ;;
10055 if test "$_lt_dar_can_shared" = "yes"; then
10056 output_verbose_link_cmd=func_echo_all
10057 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10058 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10059 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}"
10060 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}"
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_shlibpath_var=no
10074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10075 # support. Future versions do this automatically, but an explicit c++rt0.o
10076 # does not break anything, and helps significantly (at the cost of a little
10079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 hardcode_direct=yes
10082 hardcode_shlibpath_var=no
10085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_direct=yes
10089 hardcode_minus_L=yes
10090 hardcode_shlibpath_var=no
10093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10094 freebsd* | dragonfly*)
10095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096 hardcode_libdir_flag_spec='-R$libdir'
10097 hardcode_direct=yes
10098 hardcode_shlibpath_var=no
10102 if test "$GCC" = yes; then
10103 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10105 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'
10107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10108 hardcode_libdir_separator=:
10109 hardcode_direct=yes
10111 # hardcode_minus_L: Not really in the search PATH,
10112 # but as the default location of the library.
10113 hardcode_minus_L=yes
10114 export_dynamic_flag_spec='${wl}-E'
10118 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10123 if test "$with_gnu_ld" = no; then
10124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10125 hardcode_libdir_separator=:
10126 hardcode_direct=yes
10127 hardcode_direct_absolute=yes
10128 export_dynamic_flag_spec='${wl}-E'
10129 # hardcode_minus_L: Not really in the search PATH,
10130 # but as the default location of the library.
10131 hardcode_minus_L=yes
10136 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10139 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10158 # Older versions of the 11.00 compiler do not understand -b yet
10159 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10161 $as_echo_n "checking if $CC understands -b... " >&6; }
10162 if ${lt_cv_prog_compiler__b+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 lt_cv_prog_compiler__b=no
10166 save_LDFLAGS="$LDFLAGS"
10167 LDFLAGS="$LDFLAGS -b"
10168 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10170 # The linker can only warn and ignore the option if not recognized
10171 # So say no if there are warnings
10172 if test -s conftest.err; then
10173 # Append any errors to the config.log.
10174 cat conftest.err 1>&5
10175 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10177 if diff conftest.exp conftest.er2 >/dev/null; then
10178 lt_cv_prog_compiler__b=yes
10181 lt_cv_prog_compiler__b=yes
10185 LDFLAGS="$save_LDFLAGS"
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10189 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10191 if test x"$lt_cv_prog_compiler__b" = xyes; then
10192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10200 if test "$with_gnu_ld" = no; then
10201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10202 hardcode_libdir_separator=:
10207 hardcode_shlibpath_var=no
10210 hardcode_direct=yes
10211 hardcode_direct_absolute=yes
10212 export_dynamic_flag_spec='${wl}-E'
10214 # hardcode_minus_L: Not really in the search PATH,
10215 # but as the default location of the library.
10216 hardcode_minus_L=yes
10222 irix5* | irix6* | nonstopux*)
10223 if test "$GCC" = yes; then
10224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10225 # Try to use the -exported_symbol ld option, if it does not
10226 # work, assume that -exports_file does not work either and
10227 # implicitly export all symbols.
10228 # This should be the same for all languages, so no per-tag cache variable.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10230 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10231 if ${lt_cv_irix_exported_symbol+:} false; then :
10232 $as_echo_n "(cached) " >&6
10234 save_LDFLAGS="$LDFLAGS"
10235 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10238 int foo (void) { return 0; }
10240 if ac_fn_c_try_link "$LINENO"; then :
10241 lt_cv_irix_exported_symbol=yes
10243 lt_cv_irix_exported_symbol=no
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LDFLAGS="$save_LDFLAGS"
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10250 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10251 if test "$lt_cv_irix_exported_symbol" = yes; then
10252 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10255 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'
10256 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'
10258 archive_cmds_need_lc='no'
10259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10260 hardcode_libdir_separator=:
10262 link_all_deplibs=yes
10265 netbsd* | netbsdelf*-gnu)
10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10269 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10271 hardcode_libdir_flag_spec='-R$libdir'
10272 hardcode_direct=yes
10273 hardcode_shlibpath_var=no
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_direct=yes
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 hardcode_libdir_separator=:
10281 hardcode_shlibpath_var=no
10288 if test -f /usr/libexec/ld.so; then
10289 hardcode_direct=yes
10290 hardcode_shlibpath_var=no
10291 hardcode_direct_absolute=yes
10292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10296 export_dynamic_flag_spec='${wl}-E'
10299 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_libdir_flag_spec='-R$libdir'
10304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10305 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10315 hardcode_libdir_flag_spec='-L$libdir'
10316 hardcode_minus_L=yes
10317 allow_undefined_flag=unsupported
10318 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'
10319 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10323 if test "$GCC" = yes; then
10324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10325 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'
10327 allow_undefined_flag=' -expect_unresolved \*'
10328 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'
10330 archive_cmds_need_lc='no'
10331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10332 hardcode_libdir_separator=:
10335 osf4* | osf5*) # as osf3* with the addition of -msym flag
10336 if test "$GCC" = yes; then
10337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10338 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341 allow_undefined_flag=' -expect_unresolved \*'
10342 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'
10343 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~
10344 $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'
10346 # Both c and cxx compiler support -rpath directly
10347 hardcode_libdir_flag_spec='-rpath $libdir'
10349 archive_cmds_need_lc='no'
10350 hardcode_libdir_separator=:
10354 no_undefined_flag=' -z defs'
10355 if test "$GCC" = yes; then
10357 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361 case `$CC -V 2>&1` in
10364 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10365 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10370 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10372 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10376 hardcode_libdir_flag_spec='-R$libdir'
10377 hardcode_shlibpath_var=no
10379 solaris2.[0-5] | solaris2.[0-5].*) ;;
10381 # The compiler driver will combine and reorder linker options,
10382 # but understands `-z linker_flag'. GCC discards it without `$wl',
10383 # but is careful enough not to reorder.
10384 # Supported since Solaris 2.6 (maybe 2.5.1?)
10385 if test "$GCC" = yes; then
10386 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10392 link_all_deplibs=yes
10396 if test "x$host_vendor" = xsequent; then
10397 # Use $CC to link under sequent, because it throws in some extra .o
10398 # files that make .init and .fini sections work.
10399 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10401 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_direct=yes
10405 hardcode_minus_L=yes
10406 hardcode_shlibpath_var=no
10410 case $host_vendor in
10412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413 hardcode_direct=yes # is this really true???
10416 ## LD is ld it makes a PLAMLIB
10417 ## CC just makes a GrossModule.
10418 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10419 reload_cmds='$CC -r -o $output$reload_objs'
10423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10427 runpath_var='LD_RUN_PATH'
10428 hardcode_shlibpath_var=no
10432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_shlibpath_var=no
10434 export_dynamic_flag_spec='-Bexport'
10438 if test -d /usr/nec; then
10439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_shlibpath_var=no
10441 runpath_var=LD_RUN_PATH
10442 hardcode_runpath_var=yes
10447 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10448 no_undefined_flag='${wl}-z,text'
10449 archive_cmds_need_lc=no
10450 hardcode_shlibpath_var=no
10451 runpath_var='LD_RUN_PATH'
10453 if test "$GCC" = yes; then
10454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 sysv5* | sco3.2v5* | sco5v6*)
10463 # Note: We can NOT use -z defs as we might desire, because we do not
10464 # link with -lc, and that would cause any symbols used from libc to
10465 # always be unresolved, which means just about no library would
10466 # ever link correctly. If we're not using GNU ld we use -z text
10467 # though, which does catch some bad symbols but isn't as heavy-handed
10469 no_undefined_flag='${wl}-z,text'
10470 allow_undefined_flag='${wl}-z,nodefs'
10471 archive_cmds_need_lc=no
10472 hardcode_shlibpath_var=no
10473 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10474 hardcode_libdir_separator=':'
10475 link_all_deplibs=yes
10476 export_dynamic_flag_spec='${wl}-Bexport'
10477 runpath_var='LD_RUN_PATH'
10479 if test "$GCC" = yes; then
10480 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_shlibpath_var=no
10499 if test x$host_vendor = xsni; then
10501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10502 export_dynamic_flag_spec='${wl}-Blargedynsym'
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10509 $as_echo "$ld_shlibs" >&6; }
10510 test "$ld_shlibs" = no && can_build_shared=no
10512 with_gnu_ld=$with_gnu_ld
10529 # Do we need to explicitly link libc?
10531 case "x$archive_cmds_need_lc" in
10533 # Assume -lc should be added
10534 archive_cmds_need_lc=yes
10536 if test "$enable_shared" = yes && test "$GCC" = yes; then
10537 case $archive_cmds in
10539 # FIXME: we may have to deal with multi-command sequences.
10542 # Test whether the compiler implicitly links with -lc since on some
10543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10544 # to ld, don't add -lc before -lgcc.
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10547 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10548 $as_echo_n "(cached) " >&6
10551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10554 (eval $ac_compile) 2>&5
10556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10557 test $ac_status = 0; } 2>conftest.err; then
10560 libobjs=conftest.$ac_objext
10562 wl=$lt_prog_compiler_wl
10563 pic_flag=$lt_prog_compiler_pic
10569 lt_save_allow_undefined_flag=$allow_undefined_flag
10570 allow_undefined_flag=
10571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10572 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10575 test $ac_status = 0; }
10577 lt_cv_archive_cmds_need_lc=no
10579 lt_cv_archive_cmds_need_lc=yes
10581 allow_undefined_flag=$lt_save_allow_undefined_flag
10583 cat conftest.err 1>&5
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10589 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10590 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10751 if test "$GCC" = yes; then
10753 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10754 *) lt_awk_arg="/^libraries:/" ;;
10757 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10758 *) lt_sed_strip_eq="s,=/,/,g" ;;
10760 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10761 case $lt_search_path_spec in
10763 # if the path contains ";" then we assume it to be the separator
10764 # otherwise default to the standard path separator (i.e. ":") - it is
10765 # assumed that no part of a normal pathname contains ";" but that should
10766 # okay in the real world where ";" in dirpaths is itself problematic.
10767 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10770 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10773 # Ok, now we have the path, separated by spaces, we can step through it
10774 # and add multilib dir if necessary.
10775 lt_tmp_lt_search_path_spec=
10776 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10777 for lt_sys_path in $lt_search_path_spec; do
10778 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10779 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10781 test -d "$lt_sys_path" && \
10782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10785 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10786 BEGIN {RS=" "; FS="/|\n";} {
10789 for (lt_i = NF; lt_i > 0; lt_i--) {
10790 if ($lt_i != "" && $lt_i != ".") {
10791 if ($lt_i == "..") {
10794 if (lt_count == 0) {
10795 lt_foo="/" $lt_i lt_foo;
10802 if (lt_foo != "") { lt_freq[lt_foo]++; }
10803 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10805 # AWK program above erroneously prepends '/' to C:/dos/paths
10808 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10809 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10811 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10815 library_names_spec=
10816 libname_spec='lib$name'
10820 postuninstall_cmds=
10824 shlibpath_overrides_runpath=unknown
10826 dynamic_linker="$host_os ld.so"
10827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10828 need_lib_prefix=unknown
10829 hardcode_into_libs=no
10831 # when you set need_version to no, make sure it does not cause -set_version
10832 # flags to be left without arguments
10833 need_version=unknown
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10839 shlibpath_var=LIBPATH
10841 # AIX 3 has no versioning support, so we append a major version to the name.
10842 soname_spec='${libname}${release}${shared_ext}$major'
10846 version_type=linux # correct to gnu/linux during the next big refactor
10849 hardcode_into_libs=yes
10850 if test "$host_cpu" = ia64; then
10851 # AIX 5 supports IA64
10852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10853 shlibpath_var=LD_LIBRARY_PATH
10855 # With GCC up to 2.95.x, collect2 would create an import file
10856 # for dependence libraries. The import file would start with
10857 # the line `#! .'. This would cause the generated library to
10858 # depend on `.', always an invalid library. This was fixed in
10859 # development snapshots of GCC prior to 3.0.
10861 aix4 | aix4.[01] | aix4.[01].*)
10862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10864 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10867 can_build_shared=no
10871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10872 # soname into executable. Probably we can add versioning support to
10873 # collect2, so additional links can be useful in future.
10874 if test "$aix_use_runtimelinking" = yes; then
10875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10876 # instead of lib<name>.a to let people know that these are not
10877 # typical AIX shared libraries.
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 # We preserve .a as extension for shared libraries through AIX4.2
10881 # and later when we are not doing run time linking.
10882 library_names_spec='${libname}${release}.a $libname.a'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LIBPATH
10892 # Since July 2007 AmigaOS4 officially supports .so libraries.
10893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 library_names_spec='$libname.ixlibrary $libname.a'
10898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10899 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'
10905 library_names_spec='${libname}${shared_ext}'
10906 dynamic_linker="$host_os ld.so"
10907 shlibpath_var=LIBRARY_PATH
10911 version_type=linux # correct to gnu/linux during the next big refactor
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10919 # the default ld.so.conf also contains /usr/contrib/lib and
10920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10921 # libtool to hard-code these into programs
10924 cygwin* | mingw* | pw32* | cegcc*)
10925 version_type=windows
10930 case $GCC,$cc_basename in
10933 library_names_spec='$libname.dll.a'
10934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10935 postinstall_cmds='base_file=`basename \${file}`~
10936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10937 dldir=$destdir/`dirname \$dlpath`~
10938 test -d \$dldir || mkdir -p \$dldir~
10939 $install_prog $dir/$dlname \$dldir/$dlname~
10940 chmod a+x \$dldir/$dlname~
10941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10945 dlpath=$dir/\$dldll~
10947 shlibpath_overrides_runpath=yes
10951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10954 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10957 # MinGW DLLs use traditional 'lib' prefix
10958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961 # pw32 DLLs use 'pw' prefix rather than 'lib'
10962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10965 dynamic_linker='Win32 ld.exe'
10970 libname_spec='$name'
10971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10972 library_names_spec='${libname}.dll.lib'
10976 sys_lib_search_path_spec=
10979 for lt_path in $LIB
10982 # Let DOS variable expansion print the short 8.3 style file name.
10983 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10984 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10987 # Convert to MSYS style.
10988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10991 # Convert to unix form, then to dos form, then back to unix form
10992 # but this time dos style (no spaces!) so that the unix form looks
10993 # like /cygdrive/c/PROGRA~1:/cygdr...
10994 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10995 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10996 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10999 sys_lib_search_path_spec="$LIB"
11000 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11001 # It is most probably a Windows format PATH.
11002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11006 # FIXME: find the short name or the path components, as spaces are
11007 # common. (e.g. "Program Files" -> "PROGRA~1")
11011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11012 postinstall_cmds='base_file=`basename \${file}`~
11013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11014 dldir=$destdir/`dirname \$dlpath`~
11015 test -d \$dldir || mkdir -p \$dldir~
11016 $install_prog $dir/$dlname \$dldir/$dlname'
11017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11018 dlpath=$dir/\$dldll~
11020 shlibpath_overrides_runpath=yes
11021 dynamic_linker='Win32 link.exe'
11025 # Assume MSVC wrapper
11026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11027 dynamic_linker='Win32 ld.exe'
11030 # FIXME: first we should search . and the directory the executable is in
11034 darwin* | rhapsody*)
11035 dynamic_linker="$host_os dyld"
11036 version_type=darwin
11039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11040 soname_spec='${libname}${release}${major}$shared_ext'
11041 shlibpath_overrides_runpath=yes
11042 shlibpath_var=DYLD_LIBRARY_PATH
11043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11050 version_type=linux # correct to gnu/linux during the next big refactor
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11058 freebsd* | dragonfly*)
11059 # DragonFly does not have aout. When/if they implement a new
11060 # versioning mechanism, adjust this.
11061 if test -x /usr/bin/objformat; then
11062 objformat=`/usr/bin/objformat`
11065 freebsd[23].*) objformat=aout ;;
11066 *) objformat=elf ;;
11069 version_type=freebsd-$objformat
11070 case $version_type in
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11081 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11086 freebsd3.[01]* | freebsdelf3.[01]*)
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11092 shlibpath_overrides_runpath=no
11093 hardcode_into_libs=yes
11095 *) # from 4.6 on, and DragonFly
11096 shlibpath_overrides_runpath=yes
11097 hardcode_into_libs=yes
11103 version_type=linux # correct to gnu/linux during the next big refactor
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11114 version_type=linux # correct to gnu/linux during the next big refactor
11117 dynamic_linker="$host_os runtime_loader"
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11123 hardcode_into_libs=yes
11126 hpux9* | hpux10* | hpux11*)
11127 # Give a soname corresponding to the major version so that dld.sl refuses to
11128 # link against other versions.
11135 hardcode_into_libs=yes
11136 dynamic_linker="$host_os dld.so"
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 soname_spec='${libname}${release}${shared_ext}$major'
11141 if test "X$HPUX_IA64_MODE" = X32; then
11142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11150 hardcode_into_libs=yes
11151 dynamic_linker="$host_os dld.sl"
11152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11161 dynamic_linker="$host_os dld.sl"
11162 shlibpath_var=SHLIB_PATH
11163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11169 postinstall_cmds='chmod 555 $lib'
11170 # or fails outright, so override atomically:
11171 install_override_mode=555
11175 version_type=linux # correct to gnu/linux during the next big refactor
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=no
11183 hardcode_into_libs=yes
11186 irix5* | irix6* | nonstopux*)
11188 nonstopux*) version_type=nonstopux ;;
11190 if test "$lt_cv_prog_gnu_ld" = yes; then
11191 version_type=linux # correct to gnu/linux during the next big refactor
11198 soname_spec='${libname}${release}${shared_ext}$major'
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11201 irix5* | nonstopux*)
11202 libsuff= shlibsuff=
11205 case $LD in # libtool.m4 will add one of these switches to LD
11206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11207 libsuff= shlibsuff= libmagic=32-bit;;
11208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11209 libsuff=32 shlibsuff=N32 libmagic=N32;;
11210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11212 *) libsuff= shlibsuff= libmagic=never-match;;
11216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11217 shlibpath_overrides_runpath=no
11218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11220 hardcode_into_libs=yes
11223 # No shared lib support for Linux oldld, aout, or coff.
11224 linux*oldld* | linux*aout* | linux*coff*)
11228 # This must be glibc/ELF.
11229 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11230 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=no
11239 # Some binutils ld are patched to set DT_RUNPATH
11240 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11241 $as_echo_n "(cached) " >&6
11243 lt_cv_shlibpath_overrides_runpath=no
11244 save_LDFLAGS=$LDFLAGS
11245 save_libdir=$libdir
11246 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11247 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11261 lt_cv_shlibpath_overrides_runpath=yes
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LDFLAGS=$save_LDFLAGS
11267 libdir=$save_libdir
11271 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11273 # This implies no fast_install, which is unacceptable.
11274 # Some rework will be needed to allow for fast_install
11275 # before this can be enabled.
11276 hardcode_into_libs=yes
11278 # Append ld.so.conf contents to the search path
11279 if test -f /etc/ld.so.conf; then
11280 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' ' '`
11281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11284 # We used to test for /lib/ld.so.1 and disable shared libraries on
11285 # powerpc, because MkLinux only supported shared libraries with the
11286 # GNU dynamic linker. Since this was broken with cross compilers,
11287 # most powerpc-linux boxes support dynamic linking these days and
11288 # people can always --disable-shared, the test was removed, and we
11289 # assume the GNU/Linux dynamic linker is in use.
11290 dynamic_linker='GNU/Linux ld.so'
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=no
11301 hardcode_into_libs=yes
11302 dynamic_linker='NetBSD ld.elf_so'
11309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11312 dynamic_linker='NetBSD (a.out) ld.so'
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 dynamic_linker='NetBSD ld.elf_so'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11324 version_type=linux # correct to gnu/linux during the next big refactor
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=no
11338 hardcode_into_libs=yes
11339 dynamic_linker='ldqnx.so'
11344 sys_lib_dlsearch_path_spec="/usr/lib"
11346 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11348 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11349 *) need_version=no ;;
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11356 openbsd2.[89] | openbsd2.[89].*)
11357 shlibpath_overrides_runpath=no
11360 shlibpath_overrides_runpath=yes
11364 shlibpath_overrides_runpath=yes
11369 libname_spec='$name'
11372 library_names_spec='$libname${shared_ext} $libname.a'
11373 dynamic_linker='OS/2 ld.exe'
11374 shlibpath_var=LIBPATH
11377 osf3* | osf4* | osf5*)
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11393 version_type=linux # correct to gnu/linux during the next big refactor
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400 hardcode_into_libs=yes
11401 # ldd complains unless libraries are executable
11402 postinstall_cmds='chmod +x $lib'
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 shlibpath_overrides_runpath=yes
11411 if test "$with_gnu_ld" = yes; then
11418 version_type=linux # correct to gnu/linux during the next big refactor
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 case $host_vendor in
11424 shlibpath_overrides_runpath=no
11426 runpath_var=LD_RUN_PATH
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11441 if test -d /usr/nec ;then
11442 version_type=linux # correct to gnu/linux during the next big refactor
11443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11444 soname_spec='$libname${shared_ext}.$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11450 version_type=freebsd-elf
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11458 if test "$with_gnu_ld" = yes; then
11459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11468 sys_lib_dlsearch_path_spec='/usr/lib'
11472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11473 version_type=linux # correct to gnu/linux during the next big refactor
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11483 version_type=linux # correct to gnu/linux during the next big refactor
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11494 $as_echo "$dynamic_linker" >&6; }
11495 test "$dynamic_linker" = no && can_build_shared=no
11497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11498 if test "$GCC" = yes; then
11499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11502 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11503 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11505 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11601 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11603 if test -n "$hardcode_libdir_flag_spec" ||
11604 test -n "$runpath_var" ||
11605 test "X$hardcode_automatic" = "Xyes" ; then
11607 # We can hardcode non-existent directories.
11608 if test "$hardcode_direct" != no &&
11609 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11610 # have to relink, otherwise we might link with an installed library
11611 # when we should be linking with a yet-to-be-installed one
11612 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11613 test "$hardcode_minus_L" != no; then
11614 # Linking always hardcodes the temporary library directory.
11615 hardcode_action=relink
11617 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11618 hardcode_action=immediate
11621 # We cannot hardcode anything, or else we can only hardcode existing
11623 hardcode_action=unsupported
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11626 $as_echo "$hardcode_action" >&6; }
11628 if test "$hardcode_action" = relink ||
11629 test "$inherit_rpath" = yes; then
11630 # Fast installation is not supported
11631 enable_fast_install=no
11632 elif test "$shlibpath_overrides_runpath" = yes ||
11633 test "$enable_shared" = no; then
11634 # Fast installation is not necessary
11635 enable_fast_install=needless
11643 if test "x$enable_dlopen" != xyes; then
11644 enable_dlopen=unknown
11645 enable_dlopen_self=unknown
11646 enable_dlopen_self_static=unknown
11653 lt_cv_dlopen="load_add_on"
11655 lt_cv_dlopen_self=yes
11658 mingw* | pw32* | cegcc*)
11659 lt_cv_dlopen="LoadLibrary"
11664 lt_cv_dlopen="dlopen"
11669 # if libdl is installed we need to link against it
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11672 if ${ac_cv_lib_dl_dlopen+:} false; then :
11673 $as_echo_n "(cached) " >&6
11675 ac_check_lib_save_LIBS=$LIBS
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 ac_cv_lib_dl_dlopen=yes
11698 ac_cv_lib_dl_dlopen=no
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11706 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11710 lt_cv_dlopen="dyld"
11712 lt_cv_dlopen_self=yes
11719 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11720 if test "x$ac_cv_func_shl_load" = xyes; then :
11721 lt_cv_dlopen="shl_load"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11724 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11725 if ${ac_cv_lib_dld_shl_load+:} false; then :
11726 $as_echo_n "(cached) " >&6
11728 ac_check_lib_save_LIBS=$LIBS
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11743 return shl_load ();
11748 if ac_fn_c_try_link "$LINENO"; then :
11749 ac_cv_lib_dld_shl_load=yes
11751 ac_cv_lib_dld_shl_load=no
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11755 LIBS=$ac_check_lib_save_LIBS
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11758 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11759 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11760 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11762 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11763 if test "x$ac_cv_func_dlopen" = xyes; then :
11764 lt_cv_dlopen="dlopen"
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11767 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11768 if ${ac_cv_lib_dl_dlopen+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 ac_check_lib_save_LIBS=$LIBS
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_lib_dl_dlopen=yes
11794 ac_cv_lib_dl_dlopen=no
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11801 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11802 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11803 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11806 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11807 if ${ac_cv_lib_svld_dlopen+:} false; then :
11808 $as_echo_n "(cached) " >&6
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-lsvld $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_lib_svld_dlopen=yes
11833 ac_cv_lib_svld_dlopen=no
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11840 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11841 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11845 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11846 if ${ac_cv_lib_dld_dld_link+:} false; then :
11847 $as_echo_n "(cached) " >&6
11849 ac_check_lib_save_LIBS=$LIBS
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11864 return dld_link ();
11869 if ac_fn_c_try_link "$LINENO"; then :
11870 ac_cv_lib_dld_dld_link=yes
11872 ac_cv_lib_dld_dld_link=no
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 LIBS=$ac_check_lib_save_LIBS
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11879 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11880 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11902 if test "x$lt_cv_dlopen" != xno; then
11908 case $lt_cv_dlopen in
11910 save_CPPFLAGS="$CPPFLAGS"
11911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11913 save_LDFLAGS="$LDFLAGS"
11914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11917 LIBS="$lt_cv_dlopen_libs $LIBS"
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11920 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11921 if ${lt_cv_dlopen_self+:} false; then :
11922 $as_echo_n "(cached) " >&6
11924 if test "$cross_compiling" = yes; then :
11925 lt_cv_dlopen_self=cross
11927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11928 lt_status=$lt_dlunknown
11929 cat > conftest.$ac_ext <<_LT_EOF
11930 #line $LINENO "configure"
11931 #include "confdefs.h"
11940 # define LT_DLGLOBAL RTLD_GLOBAL
11943 # define LT_DLGLOBAL DL_GLOBAL
11945 # define LT_DLGLOBAL 0
11949 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11950 find out it does not work in some platform. */
11951 #ifndef LT_DLLAZY_OR_NOW
11953 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11956 # define LT_DLLAZY_OR_NOW DL_LAZY
11959 # define LT_DLLAZY_OR_NOW RTLD_NOW
11962 # define LT_DLLAZY_OR_NOW DL_NOW
11964 # define LT_DLLAZY_OR_NOW 0
11971 /* When -fvisbility=hidden is used, assume the code has been annotated
11972 correspondingly for the symbols needed. */
11973 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11974 int fnord () __attribute__((visibility("default")));
11977 int fnord () { return 42; }
11980 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11981 int status = $lt_dlunknown;
11985 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11988 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11989 else puts (dlerror ());
11991 /* dlclose (self); */
11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12000 (eval $ac_link) 2>&5
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12004 (./conftest; exit; ) >&5 2>/dev/null
12006 case x$lt_status in
12007 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12008 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12009 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12012 # compilation failed
12013 lt_cv_dlopen_self=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12021 $as_echo "$lt_cv_dlopen_self" >&6; }
12023 if test "x$lt_cv_dlopen_self" = xyes; then
12024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12026 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12027 if ${lt_cv_dlopen_self_static+:} false; then :
12028 $as_echo_n "(cached) " >&6
12030 if test "$cross_compiling" = yes; then :
12031 lt_cv_dlopen_self_static=cross
12033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12034 lt_status=$lt_dlunknown
12035 cat > conftest.$ac_ext <<_LT_EOF
12036 #line $LINENO "configure"
12037 #include "confdefs.h"
12046 # define LT_DLGLOBAL RTLD_GLOBAL
12049 # define LT_DLGLOBAL DL_GLOBAL
12051 # define LT_DLGLOBAL 0
12055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12056 find out it does not work in some platform. */
12057 #ifndef LT_DLLAZY_OR_NOW
12059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12062 # define LT_DLLAZY_OR_NOW DL_LAZY
12065 # define LT_DLLAZY_OR_NOW RTLD_NOW
12068 # define LT_DLLAZY_OR_NOW DL_NOW
12070 # define LT_DLLAZY_OR_NOW 0
12077 /* When -fvisbility=hidden is used, assume the code has been annotated
12078 correspondingly for the symbols needed. */
12079 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12080 int fnord () __attribute__((visibility("default")));
12083 int fnord () { return 42; }
12086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12087 int status = $lt_dlunknown;
12091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12094 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12095 else puts (dlerror ());
12097 /* dlclose (self); */
12105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12106 (eval $ac_link) 2>&5
12108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12110 (./conftest; exit; ) >&5 2>/dev/null
12112 case x$lt_status in
12113 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12114 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12115 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12118 # compilation failed
12119 lt_cv_dlopen_self_static=no
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12127 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12130 CPPFLAGS="$save_CPPFLAGS"
12131 LDFLAGS="$save_LDFLAGS"
12136 case $lt_cv_dlopen_self in
12137 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12138 *) enable_dlopen_self=unknown ;;
12141 case $lt_cv_dlopen_self_static in
12142 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12143 *) enable_dlopen_self_static=unknown ;;
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12166 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12167 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12168 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12169 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171 $as_echo "yes" >&6; }
12173 # FIXME - insert some real tests, host_os isn't really good enough
12176 if test -n "$STRIP" ; then
12177 striplib="$STRIP -x"
12178 old_striplib="$STRIP -S"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12204 # Report which library types will actually be built
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12206 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12208 $as_echo "$can_build_shared" >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12211 $as_echo_n "checking whether to build shared libraries... " >&6; }
12212 test "$can_build_shared" = "no" && enable_shared=no
12214 # On AIX, shared libraries and static libraries use the same namespace, and
12215 # are all built from PIC.
12218 test "$enable_shared" = yes && enable_static=no
12219 if test -n "$RANLIB"; then
12220 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12221 postinstall_cmds='$RANLIB $lib'
12226 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12227 test "$enable_shared" = yes && enable_static=no
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12232 $as_echo "$enable_shared" >&6; }
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12235 $as_echo_n "checking whether to build static libraries... " >&6; }
12236 # Make sure either enable_shared or enable_static is yes.
12237 test "$enable_shared" = yes || enable_static=yes
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12239 $as_echo "$enable_static" >&6; }
12246 ac_cpp='$CPP $CPPFLAGS'
12247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12253 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12254 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12255 (test "X$CXX" != "Xg++"))) ; then
12257 ac_cpp='$CXXCPP $CPPFLAGS'
12258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12262 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12263 if test -z "$CXXCPP"; then
12264 if ${ac_cv_prog_CXXCPP+:} false; then :
12265 $as_echo_n "(cached) " >&6
12267 # Double quotes because CXXCPP needs to be expanded
12268 for CXXCPP in "$CXX -E" "/lib/cpp"
12270 ac_preproc_ok=false
12271 for ac_cxx_preproc_warn_flag in '' yes
12273 # Use a header file that comes with gcc, so configuring glibc
12274 # with a fresh cross-compiler works.
12275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276 # <limits.h> exists even on freestanding compilers.
12277 # On the NeXT, cc -E runs the code through the compiler's parser,
12278 # not just through cpp. "Syntax error" is here to catch this case.
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12282 # include <limits.h>
12284 # include <assert.h>
12288 if ac_fn_cxx_try_cpp "$LINENO"; then :
12291 # Broken: fails on valid input.
12294 rm -f conftest.err conftest.i conftest.$ac_ext
12296 # OK, works on sane cases. Now check whether nonexistent headers
12297 # can be detected and how.
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <ac_nonexistent.h>
12302 if ac_fn_cxx_try_cpp "$LINENO"; then :
12303 # Broken: success on invalid input.
12306 # Passes both tests.
12310 rm -f conftest.err conftest.i conftest.$ac_ext
12313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12314 rm -f conftest.i conftest.err conftest.$ac_ext
12315 if $ac_preproc_ok; then :
12320 ac_cv_prog_CXXCPP=$CXXCPP
12323 CXXCPP=$ac_cv_prog_CXXCPP
12325 ac_cv_prog_CXXCPP=$CXXCPP
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12328 $as_echo "$CXXCPP" >&6; }
12329 ac_preproc_ok=false
12330 for ac_cxx_preproc_warn_flag in '' yes
12332 # Use a header file that comes with gcc, so configuring glibc
12333 # with a fresh cross-compiler works.
12334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12335 # <limits.h> exists even on freestanding compilers.
12336 # On the NeXT, cc -E runs the code through the compiler's parser,
12337 # not just through cpp. "Syntax error" is here to catch this case.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 # include <limits.h>
12343 # include <assert.h>
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12350 # Broken: fails on valid input.
12353 rm -f conftest.err conftest.i conftest.$ac_ext
12355 # OK, works on sane cases. Now check whether nonexistent headers
12356 # can be detected and how.
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 #include <ac_nonexistent.h>
12361 if ac_fn_cxx_try_cpp "$LINENO"; then :
12362 # Broken: success on invalid input.
12365 # Passes both tests.
12369 rm -f conftest.err conftest.i conftest.$ac_ext
12372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12373 rm -f conftest.i conftest.err conftest.$ac_ext
12374 if $ac_preproc_ok; then :
12377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12379 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12380 See \`config.log' for more details" "$LINENO" 5; }
12384 ac_cpp='$CPP $CPPFLAGS'
12385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12390 _lt_caught_CXX_error=yes
12394 ac_cpp='$CXXCPP $CPPFLAGS'
12395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12399 archive_cmds_need_lc_CXX=no
12400 allow_undefined_flag_CXX=
12401 always_export_symbols_CXX=no
12402 archive_expsym_cmds_CXX=
12403 compiler_needs_object_CXX=no
12404 export_dynamic_flag_spec_CXX=
12405 hardcode_direct_CXX=no
12406 hardcode_direct_absolute_CXX=no
12407 hardcode_libdir_flag_spec_CXX=
12408 hardcode_libdir_separator_CXX=
12409 hardcode_minus_L_CXX=no
12410 hardcode_shlibpath_var_CXX=unsupported
12411 hardcode_automatic_CXX=no
12412 inherit_rpath_CXX=no
12414 module_expsym_cmds_CXX=
12415 link_all_deplibs_CXX=unknown
12416 old_archive_cmds_CXX=$old_archive_cmds
12417 reload_flag_CXX=$reload_flag
12418 reload_cmds_CXX=$reload_cmds
12419 no_undefined_flag_CXX=
12420 whole_archive_flag_spec_CXX=
12421 enable_shared_with_static_runtimes_CXX=no
12423 # Source file extension for C++ test sources.
12426 # Object file extension for compiled C++ test sources.
12430 # No sense in running all these tests if we already determined that
12431 # the CXX compiler isn't working. Some variables (like enable_shared)
12432 # are currently assumed to apply to all compilers on this platform,
12433 # and will be corrupted by setting them based on a non-working compiler.
12434 if test "$_lt_caught_CXX_error" != yes; then
12435 # Code to be used in simple compile tests
12436 lt_simple_compile_test_code="int some_variable = 0;"
12438 # Code to be used in simple link tests
12439 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12441 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12448 # If no C compiler was specified, use CC.
12451 # If no C compiler flags were specified, use CFLAGS.
12452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12454 # Allow CC to be a program name with arguments.
12458 # save warnings/boilerplate of simple test code
12459 ac_outfile=conftest.$ac_objext
12460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12462 _lt_compiler_boilerplate=`cat conftest.err`
12465 ac_outfile=conftest.$ac_objext
12466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12468 _lt_linker_boilerplate=`cat conftest.err`
12472 # Allow CC to be a program name with arguments.
12474 lt_save_CFLAGS=$CFLAGS
12478 lt_save_with_gnu_ld=$with_gnu_ld
12479 lt_save_path_LD=$lt_cv_path_LD
12480 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12481 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12483 $as_unset lt_cv_prog_gnu_ld
12485 if test -n "${lt_cv_path_LDCXX+set}"; then
12486 lt_cv_path_LD=$lt_cv_path_LDCXX
12488 $as_unset lt_cv_path_LD
12490 test -z "${LDCXX+set}" || LD=$LDCXX
12495 for cc_temp in $compiler""; do
12497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12503 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12506 if test -n "$compiler"; then
12507 # We don't want -fno-exception when compiling C++ code, so set the
12508 # no_builtin_flag separately
12509 if test "$GXX" = yes; then
12510 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12512 lt_prog_compiler_no_builtin_flag_CXX=
12515 if test "$GXX" = yes; then
12516 # Set up default GNU C++ configuration
12520 # Check whether --with-gnu-ld was given.
12521 if test "${with_gnu_ld+set}" = set; then :
12522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12528 if test "$GCC" = yes; then
12529 # Check if gcc -print-prog-name=ld gives a path.
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12531 $as_echo_n "checking for ld used by $CC... " >&6; }
12534 # gcc leaves a trailing carriage return which upsets mingw
12535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12540 # Accept absolute paths.
12542 re_direlt='/[^/][^/]*/\.\./'
12543 # Canonicalize the pathname of ld
12544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12548 test -z "$LD" && LD="$ac_prog"
12551 # If it fails, then pretend we aren't using GCC.
12555 # If it is relative, then search for the first ld in PATH.
12556 with_gnu_ld=unknown
12559 elif test "$with_gnu_ld" = yes; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12561 $as_echo_n "checking for GNU ld... " >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12564 $as_echo_n "checking for non-GNU ld... " >&6; }
12566 if ${lt_cv_path_LD+:} false; then :
12567 $as_echo_n "(cached) " >&6
12569 if test -z "$LD"; then
12570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12571 for ac_dir in $PATH; do
12573 test -z "$ac_dir" && ac_dir=.
12574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12575 lt_cv_path_LD="$ac_dir/$ac_prog"
12576 # Check to see if the program is GNU ld. I'd rather use --version,
12577 # but apparently some variants of GNU ld only accept -v.
12578 # Break only if it was the GNU/non-GNU ld that we prefer.
12579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12580 *GNU* | *'with BFD'*)
12581 test "$with_gnu_ld" != no && break
12584 test "$with_gnu_ld" != yes && break
12591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12595 LD="$lt_cv_path_LD"
12596 if test -n "$LD"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12598 $as_echo "$LD" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12603 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12606 if ${lt_cv_prog_gnu_ld+:} false; then :
12607 $as_echo_n "(cached) " >&6
12609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12610 case `$LD -v 2>&1 </dev/null` in
12611 *GNU* | *'with BFD'*)
12612 lt_cv_prog_gnu_ld=yes
12615 lt_cv_prog_gnu_ld=no
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12620 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12621 with_gnu_ld=$lt_cv_prog_gnu_ld
12629 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12630 # archiving commands below assume that GNU ld is being used.
12631 if test "$with_gnu_ld" = yes; then
12632 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12633 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12636 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12638 # If archive_cmds runs LD, not CC, wlarc should be empty
12639 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12640 # investigate it a little bit more. (MM)
12643 # ancient GNU ld didn't support --whole-archive et. al.
12644 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12645 $GREP 'no-whole-archive' > /dev/null; then
12646 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12648 whole_archive_flag_spec_CXX=
12654 # A generic and very simple default shared library creation
12655 # command for GNU C++ for the case where it uses the native
12656 # linker, instead of GNU ld. If possible, this setting should
12657 # overridden to take advantage of the native linker features on
12658 # the platform it is being used on.
12659 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12662 # Commands to make compiler produce verbose output that lists
12663 # what "hidden" libraries, object files and flags are used when
12664 # linking a shared library.
12665 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12673 # PORTME: fill in a description of your system's C++ link characteristics
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12675 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12679 # FIXME: insert proper C++ library support
12683 if test "$host_cpu" = ia64; then
12684 # On IA64, the linker does run time linking by default, so we don't
12685 # have to do anything special.
12686 aix_use_runtimelinking=no
12687 exp_sym_flag='-Bexport'
12690 aix_use_runtimelinking=no
12692 # Test if we are trying to use run time linking or normal
12693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12694 # need to do runtime linking.
12695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12696 for ld_flag in $LDFLAGS; do
12699 aix_use_runtimelinking=yes
12707 exp_sym_flag='-bexport'
12708 no_entry_flag='-bnoentry'
12711 # When large executables or shared objects are built, AIX ld can
12712 # have problems creating the table of contents. If linking a library
12713 # or program results in "error TOC overflow" add -mminimal-toc to
12714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12717 archive_cmds_CXX=''
12718 hardcode_direct_CXX=yes
12719 hardcode_direct_absolute_CXX=yes
12720 hardcode_libdir_separator_CXX=':'
12721 link_all_deplibs_CXX=yes
12722 file_list_spec_CXX='${wl}-f,'
12724 if test "$GXX" = yes; then
12725 case $host_os in aix4.[012]|aix4.[012].*)
12726 # We only want to do this on AIX 4.2 and lower, the check
12727 # below for broken collect2 doesn't work under 4.3+
12728 collect2name=`${CC} -print-prog-name=collect2`
12729 if test -f "$collect2name" &&
12730 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12732 # We have reworked collect2
12735 # We have old collect2
12736 hardcode_direct_CXX=unsupported
12737 # It fails to find uninstalled libraries when the uninstalled
12738 # path is not listed in the libpath. Setting hardcode_minus_L
12739 # to unsupported forces relinking
12740 hardcode_minus_L_CXX=yes
12741 hardcode_libdir_flag_spec_CXX='-L$libdir'
12742 hardcode_libdir_separator_CXX=
12745 shared_flag='-shared'
12746 if test "$aix_use_runtimelinking" = yes; then
12747 shared_flag="$shared_flag "'${wl}-G'
12751 if test "$host_cpu" = ia64; then
12752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12753 # chokes on -Wl,-G. The following line is correct:
12756 if test "$aix_use_runtimelinking" = yes; then
12757 shared_flag='${wl}-G'
12759 shared_flag='${wl}-bM:SRE'
12764 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12765 # It seems that -bexpall does not export symbols beginning with
12766 # underscore (_), so it is better to generate a list of symbols to
12768 always_export_symbols_CXX=yes
12769 if test "$aix_use_runtimelinking" = yes; then
12770 # Warning - without using the other runtime loading flags (-brtl),
12771 # -berok will link without error, but may produce a broken library.
12772 allow_undefined_flag_CXX='-berok'
12773 # Determine the default libpath from the value encoded in an empty
12775 if test "${lt_cv_aix_libpath+set}" = set; then
12776 aix_libpath=$lt_cv_aix_libpath
12778 if ${lt_cv_aix_libpath__CXX+:} false; then :
12779 $as_echo_n "(cached) " >&6
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12792 if ac_fn_cxx_try_link "$LINENO"; then :
12794 lt_aix_libpath_sed='
12795 /Import File Strings/,/^$/ {
12797 s/^0 *\([^ ]*\) *$/\1/
12801 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12802 # Check for a 64-bit object if we didn't find anything.
12803 if test -z "$lt_cv_aix_libpath__CXX"; then
12804 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 if test -z "$lt_cv_aix_libpath__CXX"; then
12810 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12815 aix_libpath=$lt_cv_aix_libpath__CXX
12818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12820 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"
12822 if test "$host_cpu" = ia64; then
12823 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12824 allow_undefined_flag_CXX="-z nodefs"
12825 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"
12827 # Determine the default libpath from the value encoded in an
12828 # empty executable.
12829 if test "${lt_cv_aix_libpath+set}" = set; then
12830 aix_libpath=$lt_cv_aix_libpath
12832 if ${lt_cv_aix_libpath__CXX+:} false; then :
12833 $as_echo_n "(cached) " >&6
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12846 if ac_fn_cxx_try_link "$LINENO"; then :
12848 lt_aix_libpath_sed='
12849 /Import File Strings/,/^$/ {
12851 s/^0 *\([^ ]*\) *$/\1/
12855 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12856 # Check for a 64-bit object if we didn't find anything.
12857 if test -z "$lt_cv_aix_libpath__CXX"; then
12858 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863 if test -z "$lt_cv_aix_libpath__CXX"; then
12864 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12869 aix_libpath=$lt_cv_aix_libpath__CXX
12872 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12873 # Warning - without using the other run time loading flags,
12874 # -berok will link without error, but may produce a broken library.
12875 no_undefined_flag_CXX=' ${wl}-bernotok'
12876 allow_undefined_flag_CXX=' ${wl}-berok'
12877 if test "$with_gnu_ld" = yes; then
12878 # We only use this code for GNU lds that support --whole-archive.
12879 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12881 # Exported symbols can be pulled into shared objects from archives
12882 whole_archive_flag_spec_CXX='$convenience'
12884 archive_cmds_need_lc_CXX=yes
12885 # This is similar to how AIX traditionally builds its shared
12887 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'
12893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12894 allow_undefined_flag_CXX=unsupported
12895 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12896 # support --undefined. This deserves some investigation. FIXME
12897 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 case $cc_basename in
12906 # FIXME: insert proper C++ library support
12912 cygwin* | mingw* | pw32* | cegcc*)
12913 case $GXX,$cc_basename in
12916 # hardcode_libdir_flag_spec is actually meaningless, as there is
12917 # no search path for DLLs.
12918 hardcode_libdir_flag_spec_CXX=' '
12919 allow_undefined_flag_CXX=unsupported
12920 always_export_symbols_CXX=yes
12921 file_list_spec_CXX='@'
12922 # Tell ltmain to make .lib files, not .a files.
12924 # Tell ltmain to make .dll files, not .so files.
12926 # FIXME: Setting linknames here is a bad hack.
12927 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12928 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12929 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12931 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12933 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12935 # The linker will not automatically build a static lib if we build a DLL.
12936 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12937 enable_shared_with_static_runtimes_CXX=yes
12939 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12940 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12941 lt_tool_outputfile="@TOOL_OUTPUT@"~
12942 case $lt_outputfile in
12945 lt_outputfile="$lt_outputfile.exe"
12946 lt_tool_outputfile="$lt_tool_outputfile.exe"
12949 func_to_tool_file "$lt_outputfile"~
12950 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12952 $RM "$lt_outputfile.manifest";
12957 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12958 # as there is no search path for DLLs.
12959 hardcode_libdir_flag_spec_CXX='-L$libdir'
12960 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12961 allow_undefined_flag_CXX=unsupported
12962 always_export_symbols_CXX=no
12963 enable_shared_with_static_runtimes_CXX=yes
12965 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12966 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'
12967 # If the export-symbols file already is a .def file (1st line
12968 # is EXPORTS), use it as is; otherwise, prepend...
12969 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970 cp $export_symbols $output_objdir/$soname.def;
12972 echo EXPORTS > $output_objdir/$soname.def;
12973 cat $export_symbols >> $output_objdir/$soname.def;
12975 $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'
12982 darwin* | rhapsody*)
12985 archive_cmds_need_lc_CXX=no
12986 hardcode_direct_CXX=no
12987 hardcode_automatic_CXX=yes
12988 hardcode_shlibpath_var_CXX=unsupported
12989 if test "$lt_cv_ld_force_load" = "yes"; then
12990 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\"`'
12993 whole_archive_flag_spec_CXX=''
12995 link_all_deplibs_CXX=yes
12996 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12997 case $cc_basename in
12998 ifort*) _lt_dar_can_shared=yes ;;
12999 *) _lt_dar_can_shared=$GCC ;;
13001 if test "$_lt_dar_can_shared" = "yes"; then
13002 output_verbose_link_cmd=func_echo_all
13003 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}"
13004 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13005 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}"
13006 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}"
13007 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13008 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}"
13009 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}"
13019 case $cc_basename in
13021 # FIXME: insert proper C++ library support
13025 # Green Hills C++ Compiler
13026 # FIXME: insert proper C++ library support
13030 # FIXME: insert proper C++ library support
13037 # C++ shared libraries reported to be fairly broken before
13043 archive_cmds_need_lc_CXX=no
13046 freebsd* | dragonfly*)
13047 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13056 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13057 link_all_deplibs_CXX=yes
13061 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13062 hardcode_libdir_separator_CXX=:
13063 export_dynamic_flag_spec_CXX='${wl}-E'
13064 hardcode_direct_CXX=yes
13065 hardcode_minus_L_CXX=yes # Not in the search PATH,
13066 # but as the default
13067 # location of the library.
13069 case $cc_basename in
13071 # FIXME: insert proper C++ library support
13075 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'
13076 # Commands to make compiler produce verbose output that lists
13077 # what "hidden" libraries, object files and flags are used when
13078 # linking a shared library.
13080 # There doesn't appear to be a way to prevent this compiler from
13081 # explicitly linking system object files so we need to strip them
13082 # from the output so that they don't get included in the library
13084 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"'
13087 if test "$GXX" = yes; then
13088 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13090 # FIXME: insert proper C++ library support
13098 if test $with_gnu_ld = no; then
13099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13100 hardcode_libdir_separator_CXX=:
13106 export_dynamic_flag_spec_CXX='${wl}-E'
13112 hardcode_direct_CXX=no
13113 hardcode_shlibpath_var_CXX=no
13116 hardcode_direct_CXX=yes
13117 hardcode_direct_absolute_CXX=yes
13118 hardcode_minus_L_CXX=yes # Not in the search PATH,
13119 # but as the default
13120 # location of the library.
13124 case $cc_basename in
13126 # FIXME: insert proper C++ library support
13132 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13135 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13138 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13141 # Commands to make compiler produce verbose output that lists
13142 # what "hidden" libraries, object files and flags are used when
13143 # linking a shared library.
13145 # There doesn't appear to be a way to prevent this compiler from
13146 # explicitly linking system object files so we need to strip them
13147 # from the output so that they don't get included in the library
13149 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"'
13152 if test "$GXX" = yes; then
13153 if test $with_gnu_ld = no; then
13156 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13159 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 # FIXME: insert proper C++ library support
13175 hardcode_direct_CXX=no
13176 hardcode_shlibpath_var_CXX=no
13177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13178 export_dynamic_flag_spec_CXX='${wl}-E'
13179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13180 # Instead, shared libraries are loaded at an image base (0x10000000 by
13181 # default) and relocated if they conflict, which is a slow very memory
13182 # consuming and fragmenting process. To avoid this, we pick a random,
13183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13185 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'
13186 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'
13189 case $cc_basename in
13192 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'
13194 # Archives containing C++ object files must be created using
13195 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13196 # necessary to make sure instantiated templates are included
13198 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13201 if test "$GXX" = yes; then
13202 if test "$with_gnu_ld" = no; then
13203 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13205 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13208 link_all_deplibs_CXX=yes
13211 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13212 hardcode_libdir_separator_CXX=:
13213 inherit_rpath_CXX=yes
13216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13217 case $cc_basename in
13219 # Kuck and Associates, Inc. (KAI) C++ Compiler
13221 # KCC will only create a shared library if the output file
13222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13223 # to its proper name (with version) after linking.
13224 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'
13225 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'
13226 # Commands to make compiler produce verbose output that lists
13227 # what "hidden" libraries, object files and flags are used when
13228 # linking a shared library.
13230 # There doesn't appear to be a way to prevent this compiler from
13231 # explicitly linking system object files so we need to strip them
13232 # from the output so that they don't get included in the library
13234 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"'
13236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239 # Archives containing C++ object files must be created using
13240 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13241 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13246 # version 8.0 and above of icpc choke on multiply defined symbols
13247 # if we add $predep_objects and $postdep_objects, however 7.1 and
13248 # earlier do not add the objects themselves.
13249 case `$CC -V 2>&1` in
13251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13252 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'
13254 *) # Version 8.0 or newer
13257 ia64*) tmp_idyn=' -i_dynamic';;
13259 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260 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'
13263 archive_cmds_need_lc_CXX=no
13264 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13266 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13269 # Portland Group C++ compiler
13271 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13272 prelink_cmds_CXX='tpldir=Template.dir~
13274 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13275 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13276 old_archive_cmds_CXX='tpldir=Template.dir~
13278 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13279 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13281 archive_cmds_CXX='tpldir=Template.dir~
13283 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13284 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13285 archive_expsym_cmds_CXX='tpldir=Template.dir~
13287 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13288 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13290 *) # Version 6 and above use weak symbols
13291 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13292 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'
13296 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13298 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'
13302 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13303 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'
13305 runpath_var=LD_RUN_PATH
13306 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13307 hardcode_libdir_separator_CXX=:
13309 # Commands to make compiler produce verbose output that lists
13310 # what "hidden" libraries, object files and flags are used when
13311 # linking a shared library.
13313 # There doesn't appear to be a way to prevent this compiler from
13314 # explicitly linking system object files so we need to strip them
13315 # from the output so that they don't get included in the library
13317 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'
13319 xl* | mpixl* | bgxl*)
13320 # IBM XL 8.0 on PPC, with GNU ld
13321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13323 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 if test "x$supports_anon_versioning" = xyes; then
13325 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13327 echo "local: *; };" >> $output_objdir/$libname.ver~
13328 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13332 case `$CC -V 2>&1 | sed 5q` in
13335 no_undefined_flag_CXX=' -zdefs'
13336 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13337 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'
13338 hardcode_libdir_flag_spec_CXX='-R$libdir'
13339 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'
13340 compiler_needs_object_CXX=yes
13342 # Not sure whether something based on
13343 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13345 output_verbose_link_cmd='func_echo_all'
13347 # Archives containing C++ object files must be created using
13348 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13349 # necessary to make sure instantiated templates are included
13351 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13359 # FIXME: insert proper C++ library support
13364 # FIXME: insert proper C++ library support
13369 case $cc_basename in
13371 # FIXME: insert proper C++ library support
13375 # FIXME: insert proper C++ library support
13382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13383 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13385 hardcode_libdir_flag_spec_CXX='-R$libdir'
13386 hardcode_direct_CXX=yes
13387 hardcode_shlibpath_var_CXX=no
13389 # Workaround some broken pre-1.5 toolchains
13390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13398 # C++ shared libraries are fairly broken
13403 if test -f /usr/libexec/ld.so; then
13404 hardcode_direct_CXX=yes
13405 hardcode_shlibpath_var_CXX=no
13406 hardcode_direct_absolute_CXX=yes
13407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13411 export_dynamic_flag_spec_CXX='${wl}-E'
13412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13414 output_verbose_link_cmd=func_echo_all
13420 osf3* | osf4* | osf5*)
13421 case $cc_basename in
13423 # Kuck and Associates, Inc. (KAI) C++ Compiler
13425 # KCC will only create a shared library if the output file
13426 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13427 # to its proper name (with version) after linking.
13428 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'
13430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13431 hardcode_libdir_separator_CXX=:
13433 # Archives containing C++ object files must be created using
13434 # the KAI C++ compiler.
13436 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13437 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13441 # Rational C++ 2.4.1
13442 # FIXME: insert proper C++ library support
13448 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13449 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'
13450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13453 allow_undefined_flag_CXX=' -expect_unresolved \*'
13454 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'
13455 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13456 echo "-hidden">> $lib.exp~
13457 $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~
13459 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13463 hardcode_libdir_separator_CXX=:
13465 # Commands to make compiler produce verbose output that lists
13466 # what "hidden" libraries, object files and flags are used when
13467 # linking a shared library.
13469 # There doesn't appear to be a way to prevent this compiler from
13470 # explicitly linking system object files so we need to strip them
13471 # from the output so that they don't get included in the library
13473 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"'
13476 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13477 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480 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'
13483 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13488 hardcode_libdir_separator_CXX=:
13490 # Commands to make compiler produce verbose output that lists
13491 # what "hidden" libraries, object files and flags are used when
13492 # linking a shared library.
13493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13496 # FIXME: insert proper C++ library support
13504 # FIXME: insert proper C++ library support
13509 case $cc_basename in
13512 # FIXME: insert proper C++ library support
13517 # FIXME: insert proper C++ library support
13521 # FIXME: insert proper C++ library support
13528 case $cc_basename in
13530 # Sun C++ 4.2, 5.x and Centerline C++
13531 archive_cmds_need_lc_CXX=yes
13532 no_undefined_flag_CXX=' -zdefs'
13533 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13534 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13535 $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'
13537 hardcode_libdir_flag_spec_CXX='-R$libdir'
13538 hardcode_shlibpath_var_CXX=no
13540 solaris2.[0-5] | solaris2.[0-5].*) ;;
13542 # The compiler driver will combine and reorder linker options,
13543 # but understands `-z linker_flag'.
13544 # Supported since Solaris 2.6 (maybe 2.5.1?)
13545 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13548 link_all_deplibs_CXX=yes
13550 output_verbose_link_cmd='func_echo_all'
13552 # Archives containing C++ object files must be created using
13553 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13554 # necessary to make sure instantiated templates are included
13556 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13559 # Green Hills C++ Compiler
13560 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13562 # The C++ compiler must be used to create the archive.
13563 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13566 # GNU C++ compiler with Solaris linker
13567 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13568 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13569 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13570 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13571 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13572 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13574 # Commands to make compiler produce verbose output that lists
13575 # what "hidden" libraries, object files and flags are used when
13576 # linking a shared library.
13577 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13579 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13581 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13582 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13583 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13588 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13591 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13593 solaris2.[0-5] | solaris2.[0-5].*) ;;
13595 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13603 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13604 no_undefined_flag_CXX='${wl}-z,text'
13605 archive_cmds_need_lc_CXX=no
13606 hardcode_shlibpath_var_CXX=no
13607 runpath_var='LD_RUN_PATH'
13609 case $cc_basename in
13611 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13612 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13615 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13616 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621 sysv5* | sco3.2v5* | sco5v6*)
13622 # Note: We can NOT use -z defs as we might desire, because we do not
13623 # link with -lc, and that would cause any symbols used from libc to
13624 # always be unresolved, which means just about no library would
13625 # ever link correctly. If we're not using GNU ld we use -z text
13626 # though, which does catch some bad symbols but isn't as heavy-handed
13628 no_undefined_flag_CXX='${wl}-z,text'
13629 allow_undefined_flag_CXX='${wl}-z,nodefs'
13630 archive_cmds_need_lc_CXX=no
13631 hardcode_shlibpath_var_CXX=no
13632 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13633 hardcode_libdir_separator_CXX=':'
13634 link_all_deplibs_CXX=yes
13635 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13636 runpath_var='LD_RUN_PATH'
13638 case $cc_basename in
13640 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13643 '"$old_archive_cmds_CXX"
13644 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13645 '"$reload_cmds_CXX"
13648 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 case $cc_basename in
13657 # NonStop-UX NCC 3.20
13658 # FIXME: insert proper C++ library support
13662 # FIXME: insert proper C++ library support
13669 # FIXME: insert proper C++ library support
13674 # FIXME: insert proper C++ library support
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13680 $as_echo "$ld_shlibs_CXX" >&6; }
13681 test "$ld_shlibs_CXX" = no && can_build_shared=no
13687 ## There is no encapsulation within the following macros, do not change
13688 ## the running order or otherwise move them around unless you know exactly
13689 ## what you are doing...
13690 # Dependencies to place before and after the object being linked:
13691 predep_objects_CXX=
13692 postdep_objects_CXX=
13695 compiler_lib_search_path_CXX=
13697 cat > conftest.$ac_ext <<_LT_EOF
13701 Foo (void) { a = 0; }
13708 _lt_libdeps_save_CFLAGS=$CFLAGS
13709 case "$CC $CFLAGS " in #(
13710 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13711 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13712 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13716 (eval $ac_compile) 2>&5
13718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719 test $ac_status = 0; }; then
13720 # Parse the compiler output and extract the necessary
13721 # objects, libraries and library flags.
13723 # Sentinel used to keep track of whether or not we are before
13724 # the conftest object file.
13725 pre_test_object_deps_done=no
13727 for p in `eval "$output_verbose_link_cmd"`; do
13728 case ${prev}${p} in
13731 # Some compilers place space between "-{L,R}" and the path.
13732 # Remove the space.
13733 if test $p = "-L" ||
13734 test $p = "-R"; then
13739 # Expand the sysroot to ease extracting the directories later.
13740 if test -z "$prev"; then
13742 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13743 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13744 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13748 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13750 if test "$pre_test_object_deps_done" = no; then
13753 # Internal compiler library paths should come after those
13754 # provided the user. The postdeps already come after the
13755 # user supplied libs so there is no need to process them.
13756 if test -z "$compiler_lib_search_path_CXX"; then
13757 compiler_lib_search_path_CXX="${prev}${p}"
13759 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13762 # The "-l" case would never come before the object being
13763 # linked, so don't bother handling this case.
13766 if test -z "$postdeps_CXX"; then
13767 postdeps_CXX="${prev}${p}"
13769 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13775 *.lto.$objext) ;; # Ignore GCC LTO objects
13777 # This assumes that the test object file only shows up
13778 # once in the compiler output.
13779 if test "$p" = "conftest.$objext"; then
13780 pre_test_object_deps_done=yes
13784 if test "$pre_test_object_deps_done" = no; then
13785 if test -z "$predep_objects_CXX"; then
13786 predep_objects_CXX="$p"
13788 predep_objects_CXX="$predep_objects_CXX $p"
13791 if test -z "$postdep_objects_CXX"; then
13792 postdep_objects_CXX="$p"
13794 postdep_objects_CXX="$postdep_objects_CXX $p"
13799 *) ;; # Ignore the rest.
13807 echo "libtool.m4: error: problem compiling CXX test program"
13810 $RM -f confest.$objext
13811 CFLAGS=$_lt_libdeps_save_CFLAGS
13813 # PORTME: override above test on systems where it is broken
13816 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13817 # hack all around it, let's just trust "g++" to DTRT.
13818 predep_objects_CXX=
13819 postdep_objects_CXX=
13824 case `$CC -V 2>&1 | sed 5q` in
13828 # The more standards-conforming stlport4 library is
13829 # incompatible with the Cstd library. Avoid specifying
13830 # it if it's in CXXFLAGS. Ignore libCrun as
13831 # -library=stlport4 depends on it.
13832 case " $CXX $CXXFLAGS " in
13833 *" -library=stlport4 "*)
13834 solaris_use_stlport4=yes
13838 if test "$solaris_use_stlport4" != yes; then
13839 postdeps_CXX='-library=Cstd -library=Crun'
13846 case $cc_basename in
13848 # The more standards-conforming stlport4 library is
13849 # incompatible with the Cstd library. Avoid specifying
13850 # it if it's in CXXFLAGS. Ignore libCrun as
13851 # -library=stlport4 depends on it.
13852 case " $CXX $CXXFLAGS " in
13853 *" -library=stlport4 "*)
13854 solaris_use_stlport4=yes
13858 # Adding this requires a known-good setup of shared libraries for
13859 # Sun compiler versions before 5.6, else PIC objects from an old
13860 # archive will be linked into the output, leading to subtle bugs.
13861 if test "$solaris_use_stlport4" != yes; then
13862 postdeps_CXX='-library=Cstd -library=Crun'
13870 case " $postdeps_CXX " in
13871 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13873 compiler_lib_search_dirs_CXX=
13874 if test -n "${compiler_lib_search_path_CXX}"; then
13875 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13908 lt_prog_compiler_wl_CXX=
13909 lt_prog_compiler_pic_CXX=
13910 lt_prog_compiler_static_CXX=
13913 # C++ specific cases for pic, static, wl, etc.
13914 if test "$GXX" = yes; then
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_static_CXX='-static'
13920 # All AIX code is PIC.
13921 if test "$host_cpu" = ia64; then
13922 # AIX 5 now supports IA64 processor
13923 lt_prog_compiler_static_CXX='-Bstatic'
13930 # see comment about AmigaOS4 .so support
13931 lt_prog_compiler_pic_CXX='-fPIC'
13934 # FIXME: we need at least 68020 code to build shared libraries, but
13935 # adding the `-m68020' flag to GCC prevents building anything better,
13937 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13942 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13943 # PIC is the default for these OSes.
13945 mingw* | cygwin* | os2* | pw32* | cegcc*)
13946 # This hack is so that the source file can tell whether it is being
13947 # built for inclusion in a dll (and should export symbols for example).
13948 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13949 # (--disable-auto-import) libraries
13950 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13952 darwin* | rhapsody*)
13953 # PIC is the default on this platform
13954 # Common symbols not allowed in MH_DYLIB files
13955 lt_prog_compiler_pic_CXX='-fno-common'
13958 # DJGPP does not support shared libraries at all
13959 lt_prog_compiler_pic_CXX=
13962 # PIC is the default for Haiku.
13963 # The "-static" flag exists, but is broken.
13964 lt_prog_compiler_static_CXX=
13967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13968 # Instead, we relocate shared libraries at runtime.
13971 if test -d /usr/nec; then
13972 lt_prog_compiler_pic_CXX=-Kconform_pic
13976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13978 # sets the default TLS model and affects inlining.
13983 lt_prog_compiler_pic_CXX='-fPIC'
13988 # QNX uses GNU C++, but need to define -shared option too, otherwise
13989 # it will coredump.
13990 lt_prog_compiler_pic_CXX='-fPIC -shared'
13993 lt_prog_compiler_pic_CXX='-fPIC'
13999 # All AIX code is PIC.
14000 if test "$host_cpu" = ia64; then
14001 # AIX 5 now supports IA64 processor
14002 lt_prog_compiler_static_CXX='-Bstatic'
14004 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14008 case $cc_basename in
14010 # Green Hills C++ Compiler
14011 # _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"
14015 mingw* | cygwin* | os2* | pw32* | cegcc*)
14016 # This hack is so that the source file can tell whether it is being
14017 # built for inclusion in a dll (and should export symbols for example).
14018 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14021 case $cc_basename in
14023 lt_prog_compiler_pic_CXX='-KPIC'
14026 # Green Hills C++ Compiler
14027 lt_prog_compiler_pic_CXX='-pic'
14033 freebsd* | dragonfly*)
14034 # FreeBSD uses GNU C++
14036 hpux9* | hpux10* | hpux11*)
14037 case $cc_basename in
14039 lt_prog_compiler_wl_CXX='-Wl,'
14040 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14041 if test "$host_cpu" != ia64; then
14042 lt_prog_compiler_pic_CXX='+Z'
14046 lt_prog_compiler_wl_CXX='-Wl,'
14047 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14053 lt_prog_compiler_pic_CXX='+Z'
14062 # This is c89, which is MS Visual C++ (no shared libs)
14063 # Anyone wants to do a port?
14065 irix5* | irix6* | nonstopux*)
14066 case $cc_basename in
14068 lt_prog_compiler_wl_CXX='-Wl,'
14069 lt_prog_compiler_static_CXX='-non_shared'
14070 # CC pic flag -KPIC is the default.
14076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14077 case $cc_basename in
14080 lt_prog_compiler_wl_CXX='--backend -Wl,'
14081 lt_prog_compiler_pic_CXX='-fPIC'
14084 # old Intel C++ for x86_64 which still supported -KPIC.
14085 lt_prog_compiler_wl_CXX='-Wl,'
14086 lt_prog_compiler_pic_CXX='-KPIC'
14087 lt_prog_compiler_static_CXX='-static'
14090 # Intel C++, used to be incompatible with GCC.
14091 # ICC 10 doesn't accept -KPIC any more.
14092 lt_prog_compiler_wl_CXX='-Wl,'
14093 lt_prog_compiler_pic_CXX='-fPIC'
14094 lt_prog_compiler_static_CXX='-static'
14097 # Portland Group C++ compiler
14098 lt_prog_compiler_wl_CXX='-Wl,'
14099 lt_prog_compiler_pic_CXX='-fpic'
14100 lt_prog_compiler_static_CXX='-Bstatic'
14104 # Make sure the PIC flag is empty. It appears that all Alpha
14105 # Linux and Compaq Tru64 Unix objects are PIC.
14106 lt_prog_compiler_pic_CXX=
14107 lt_prog_compiler_static_CXX='-non_shared'
14109 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14110 # IBM XL 8.0, 9.0 on PPC and BlueGene
14111 lt_prog_compiler_wl_CXX='-Wl,'
14112 lt_prog_compiler_pic_CXX='-qpic'
14113 lt_prog_compiler_static_CXX='-qstaticlink'
14116 case `$CC -V 2>&1 | sed 5q` in
14119 lt_prog_compiler_pic_CXX='-KPIC'
14120 lt_prog_compiler_static_CXX='-Bstatic'
14121 lt_prog_compiler_wl_CXX='-Qoption ld '
14132 case $cc_basename in
14134 lt_prog_compiler_pic_CXX='-W c,exportall'
14140 netbsd* | netbsdelf*-gnu)
14143 # QNX uses GNU C++, but need to define -shared option too, otherwise
14144 # it will coredump.
14145 lt_prog_compiler_pic_CXX='-fPIC -shared'
14147 osf3* | osf4* | osf5*)
14148 case $cc_basename in
14150 lt_prog_compiler_wl_CXX='--backend -Wl,'
14153 # Rational C++ 2.4.1
14154 lt_prog_compiler_pic_CXX='-pic'
14157 # Digital/Compaq C++
14158 lt_prog_compiler_wl_CXX='-Wl,'
14159 # Make sure the PIC flag is empty. It appears that all Alpha
14160 # Linux and Compaq Tru64 Unix objects are PIC.
14161 lt_prog_compiler_pic_CXX=
14162 lt_prog_compiler_static_CXX='-non_shared'
14171 case $cc_basename in
14173 # Sun C++ 4.2, 5.x and Centerline C++
14174 lt_prog_compiler_pic_CXX='-KPIC'
14175 lt_prog_compiler_static_CXX='-Bstatic'
14176 lt_prog_compiler_wl_CXX='-Qoption ld '
14179 # Green Hills C++ Compiler
14180 lt_prog_compiler_pic_CXX='-PIC'
14187 case $cc_basename in
14190 lt_prog_compiler_pic_CXX='-pic'
14191 lt_prog_compiler_static_CXX='-Bstatic'
14195 lt_prog_compiler_pic_CXX='-pic'
14201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14202 case $cc_basename in
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 lt_prog_compiler_pic_CXX='-KPIC'
14206 lt_prog_compiler_static_CXX='-Bstatic'
14211 case $cc_basename in
14213 # NonStop-UX NCC 3.20
14214 lt_prog_compiler_pic_CXX='-KPIC'
14223 lt_prog_compiler_can_build_shared_CXX=no
14229 # For platforms which do not support PIC, -DPIC is meaningless:
14231 lt_prog_compiler_pic_CXX=
14234 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14239 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14240 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14241 $as_echo_n "(cached) " >&6
14243 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14246 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14247 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14250 # Check to make sure the PIC flag actually works.
14252 if test -n "$lt_prog_compiler_pic_CXX"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14255 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14256 $as_echo_n "(cached) " >&6
14258 lt_cv_prog_compiler_pic_works_CXX=no
14259 ac_outfile=conftest.$ac_objext
14260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14262 # Insert the option either (1) after the last *FLAGS variable, or
14263 # (2) before a word containing "conftest.", or (3) at the end.
14264 # Note that $ac_compile itself does not contain backslashes and begins
14265 # with a dollar sign (not a hyphen), so the echo should work correctly.
14266 # The option is referenced via a variable to avoid confusing sed.
14267 lt_compile=`echo "$ac_compile" | $SED \
14268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270 -e 's:$: $lt_compiler_flag:'`
14271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14272 (eval "$lt_compile" 2>conftest.err)
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 if (exit $ac_status) && test -s "$ac_outfile"; then
14277 # The compiler can only warn and ignore the option if not recognized
14278 # So say no if there are warnings other than the usual output.
14279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14282 lt_cv_prog_compiler_pic_works_CXX=yes
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14291 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14292 case $lt_prog_compiler_pic_CXX in
14294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14297 lt_prog_compiler_pic_CXX=
14298 lt_prog_compiler_can_build_shared_CXX=no
14308 # Check to make sure the static flag actually works.
14310 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14313 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14314 $as_echo_n "(cached) " >&6
14316 lt_cv_prog_compiler_static_works_CXX=no
14317 save_LDFLAGS="$LDFLAGS"
14318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14321 # The linker can only warn and ignore the option if not recognized
14322 # So say no if there are warnings
14323 if test -s conftest.err; then
14324 # Append any errors to the config.log.
14325 cat conftest.err 1>&5
14326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14328 if diff conftest.exp conftest.er2 >/dev/null; then
14329 lt_cv_prog_compiler_static_works_CXX=yes
14332 lt_cv_prog_compiler_static_works_CXX=yes
14336 LDFLAGS="$save_LDFLAGS"
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14342 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14345 lt_prog_compiler_static_CXX=
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14353 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14354 $as_echo_n "(cached) " >&6
14356 lt_cv_prog_compiler_c_o_CXX=no
14357 $RM -r conftest 2>/dev/null
14361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14363 lt_compiler_flag="-o out/conftest2.$ac_objext"
14364 # Insert the option either (1) after the last *FLAGS variable, or
14365 # (2) before a word containing "conftest.", or (3) at the end.
14366 # Note that $ac_compile itself does not contain backslashes and begins
14367 # with a dollar sign (not a hyphen), so the echo should work correctly.
14368 lt_compile=`echo "$ac_compile" | $SED \
14369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14371 -e 's:$: $lt_compiler_flag:'`
14372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14373 (eval "$lt_compile" 2>out/conftest.err)
14375 cat out/conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14379 # The compiler can only warn and ignore the option if not recognized
14380 # So say no if there are warnings
14381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14384 lt_cv_prog_compiler_c_o_CXX=yes
14389 # SGI C++ compiler will create directory out/ii_files/ for
14390 # template instantiation
14391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14392 $RM out/* && rmdir out
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14405 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14406 $as_echo_n "(cached) " >&6
14408 lt_cv_prog_compiler_c_o_CXX=no
14409 $RM -r conftest 2>/dev/null
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14415 lt_compiler_flag="-o out/conftest2.$ac_objext"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>out/conftest.err)
14427 cat out/conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
14433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_c_o_CXX=yes
14441 # SGI C++ compiler will create directory out/ii_files/ for
14442 # template instantiation
14443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444 $RM out/* && rmdir out
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14451 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14456 hard_links="nottested"
14457 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14458 # do not overwrite the value of need_locks provided by the user
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14460 $as_echo_n "checking if we can lock with hard links... " >&6; }
14463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14465 ln conftest.a conftest.b 2>&5 || hard_links=no
14466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14468 $as_echo "$hard_links" >&6; }
14469 if test "$hard_links" = no; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14484 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14487 # If we're using GNU nm, then we don't want the "-C" option.
14488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14489 # Also, AIX nm treats weak defined symbols like other global defined
14490 # symbols, whereas GNU nm marks them as "W".
14491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14492 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'
14494 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'
14498 export_symbols_cmds_CXX="$ltdll_cmds"
14500 cygwin* | mingw* | cegcc*)
14501 case $cc_basename in
14503 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14506 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14507 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14511 linux* | k*bsd*-gnu | gnu*)
14512 link_all_deplibs_CXX=no
14515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14520 $as_echo "$ld_shlibs_CXX" >&6; }
14521 test "$ld_shlibs_CXX" = no && can_build_shared=no
14523 with_gnu_ld_CXX=$with_gnu_ld
14531 # Do we need to explicitly link libc?
14533 case "x$archive_cmds_need_lc_CXX" in
14535 # Assume -lc should be added
14536 archive_cmds_need_lc_CXX=yes
14538 if test "$enable_shared" = yes && test "$GCC" = yes; then
14539 case $archive_cmds_CXX in
14541 # FIXME: we may have to deal with multi-command sequences.
14544 # Test whether the compiler implicitly links with -lc since on some
14545 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14546 # to ld, don't add -lc before -lgcc.
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14548 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14549 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14550 $as_echo_n "(cached) " >&6
14553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14556 (eval $ac_compile) 2>&5
14558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14559 test $ac_status = 0; } 2>conftest.err; then
14562 libobjs=conftest.$ac_objext
14564 wl=$lt_prog_compiler_wl_CXX
14565 pic_flag=$lt_prog_compiler_pic_CXX
14571 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14572 allow_undefined_flag_CXX=
14573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14574 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14577 test $ac_status = 0; }
14579 lt_cv_archive_cmds_need_lc_CXX=no
14581 lt_cv_archive_cmds_need_lc_CXX=yes
14583 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14585 cat conftest.err 1>&5
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14591 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14592 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14663 library_names_spec=
14664 libname_spec='lib$name'
14668 postuninstall_cmds=
14672 shlibpath_overrides_runpath=unknown
14674 dynamic_linker="$host_os ld.so"
14675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14676 need_lib_prefix=unknown
14677 hardcode_into_libs=no
14679 # when you set need_version to no, make sure it does not cause -set_version
14680 # flags to be left without arguments
14681 need_version=unknown
14685 version_type=linux # correct to gnu/linux during the next big refactor
14686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14687 shlibpath_var=LIBPATH
14689 # AIX 3 has no versioning support, so we append a major version to the name.
14690 soname_spec='${libname}${release}${shared_ext}$major'
14694 version_type=linux # correct to gnu/linux during the next big refactor
14697 hardcode_into_libs=yes
14698 if test "$host_cpu" = ia64; then
14699 # AIX 5 supports IA64
14700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14701 shlibpath_var=LD_LIBRARY_PATH
14703 # With GCC up to 2.95.x, collect2 would create an import file
14704 # for dependence libraries. The import file would start with
14705 # the line `#! .'. This would cause the generated library to
14706 # depend on `.', always an invalid library. This was fixed in
14707 # development snapshots of GCC prior to 3.0.
14709 aix4 | aix4.[01] | aix4.[01].*)
14710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14715 can_build_shared=no
14719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14720 # soname into executable. Probably we can add versioning support to
14721 # collect2, so additional links can be useful in future.
14722 if test "$aix_use_runtimelinking" = yes; then
14723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14724 # instead of lib<name>.a to let people know that these are not
14725 # typical AIX shared libraries.
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 # We preserve .a as extension for shared libraries through AIX4.2
14729 # and later when we are not doing run time linking.
14730 library_names_spec='${libname}${release}.a $libname.a'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LIBPATH
14740 # Since July 2007 AmigaOS4 officially supports .so libraries.
14741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 library_names_spec='$libname.ixlibrary $libname.a'
14746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747 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'
14753 library_names_spec='${libname}${shared_ext}'
14754 dynamic_linker="$host_os ld.so"
14755 shlibpath_var=LIBRARY_PATH
14759 version_type=linux # correct to gnu/linux during the next big refactor
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14767 # the default ld.so.conf also contains /usr/contrib/lib and
14768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14769 # libtool to hard-code these into programs
14772 cygwin* | mingw* | pw32* | cegcc*)
14773 version_type=windows
14778 case $GCC,$cc_basename in
14781 library_names_spec='$libname.dll.a'
14782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14783 postinstall_cmds='base_file=`basename \${file}`~
14784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14785 dldir=$destdir/`dirname \$dlpath`~
14786 test -d \$dldir || mkdir -p \$dldir~
14787 $install_prog $dir/$dlname \$dldir/$dlname~
14788 chmod a+x \$dldir/$dlname~
14789 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14790 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14793 dlpath=$dir/\$dldll~
14795 shlibpath_overrides_runpath=yes
14799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804 # MinGW DLLs use traditional 'lib' prefix
14805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14808 # pw32 DLLs use 'pw' prefix rather than 'lib'
14809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14812 dynamic_linker='Win32 ld.exe'
14817 libname_spec='$name'
14818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14819 library_names_spec='${libname}.dll.lib'
14823 sys_lib_search_path_spec=
14826 for lt_path in $LIB
14829 # Let DOS variable expansion print the short 8.3 style file name.
14830 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14831 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14834 # Convert to MSYS style.
14835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14838 # Convert to unix form, then to dos form, then back to unix form
14839 # but this time dos style (no spaces!) so that the unix form looks
14840 # like /cygdrive/c/PROGRA~1:/cygdr...
14841 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14842 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14843 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14846 sys_lib_search_path_spec="$LIB"
14847 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14848 # It is most probably a Windows format PATH.
14849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14853 # FIXME: find the short name or the path components, as spaces are
14854 # common. (e.g. "Program Files" -> "PROGRA~1")
14858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14859 postinstall_cmds='base_file=`basename \${file}`~
14860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14861 dldir=$destdir/`dirname \$dlpath`~
14862 test -d \$dldir || mkdir -p \$dldir~
14863 $install_prog $dir/$dlname \$dldir/$dlname'
14864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14865 dlpath=$dir/\$dldll~
14867 shlibpath_overrides_runpath=yes
14868 dynamic_linker='Win32 link.exe'
14872 # Assume MSVC wrapper
14873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14874 dynamic_linker='Win32 ld.exe'
14877 # FIXME: first we should search . and the directory the executable is in
14881 darwin* | rhapsody*)
14882 dynamic_linker="$host_os dyld"
14883 version_type=darwin
14886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14887 soname_spec='${libname}${release}${major}$shared_ext'
14888 shlibpath_overrides_runpath=yes
14889 shlibpath_var=DYLD_LIBRARY_PATH
14890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14896 version_type=linux # correct to gnu/linux during the next big refactor
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14904 freebsd* | dragonfly*)
14905 # DragonFly does not have aout. When/if they implement a new
14906 # versioning mechanism, adjust this.
14907 if test -x /usr/bin/objformat; then
14908 objformat=`/usr/bin/objformat`
14911 freebsd[23].*) objformat=aout ;;
14912 *) objformat=elf ;;
14915 version_type=freebsd-$objformat
14916 case $version_type in
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14927 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=yes
14932 freebsd3.[01]* | freebsdelf3.[01]*)
14933 shlibpath_overrides_runpath=yes
14934 hardcode_into_libs=yes
14936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14938 shlibpath_overrides_runpath=no
14939 hardcode_into_libs=yes
14941 *) # from 4.6 on, and DragonFly
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14949 version_type=linux # correct to gnu/linux during the next big refactor
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=no
14956 hardcode_into_libs=yes
14960 version_type=linux # correct to gnu/linux during the next big refactor
14963 dynamic_linker="$host_os runtime_loader"
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14965 soname_spec='${libname}${release}${shared_ext}$major'
14966 shlibpath_var=LIBRARY_PATH
14967 shlibpath_overrides_runpath=yes
14968 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14969 hardcode_into_libs=yes
14972 hpux9* | hpux10* | hpux11*)
14973 # Give a soname corresponding to the major version so that dld.sl refuses to
14974 # link against other versions.
14981 hardcode_into_libs=yes
14982 dynamic_linker="$host_os dld.so"
14983 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 if test "X$HPUX_IA64_MODE" = X32; then
14988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14990 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14996 hardcode_into_libs=yes
14997 dynamic_linker="$host_os dld.sl"
14998 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15007 dynamic_linker="$host_os dld.sl"
15008 shlibpath_var=SHLIB_PATH
15009 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15014 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15015 postinstall_cmds='chmod 555 $lib'
15016 # or fails outright, so override atomically:
15017 install_override_mode=555
15021 version_type=linux # correct to gnu/linux during the next big refactor
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 shlibpath_overrides_runpath=no
15029 hardcode_into_libs=yes
15032 irix5* | irix6* | nonstopux*)
15034 nonstopux*) version_type=nonstopux ;;
15036 if test "$lt_cv_prog_gnu_ld" = yes; then
15037 version_type=linux # correct to gnu/linux during the next big refactor
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15047 irix5* | nonstopux*)
15048 libsuff= shlibsuff=
15051 case $LD in # libtool.m4 will add one of these switches to LD
15052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15053 libsuff= shlibsuff= libmagic=32-bit;;
15054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15055 libsuff=32 shlibsuff=N32 libmagic=N32;;
15056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15058 *) libsuff= shlibsuff= libmagic=never-match;;
15062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15063 shlibpath_overrides_runpath=no
15064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15066 hardcode_into_libs=yes
15069 # No shared lib support for Linux oldld, aout, or coff.
15070 linux*oldld* | linux*aout* | linux*coff*)
15074 # This must be glibc/ELF.
15075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15076 version_type=linux # correct to gnu/linux during the next big refactor
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 shlibpath_overrides_runpath=no
15085 # Some binutils ld are patched to set DT_RUNPATH
15086 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15087 $as_echo_n "(cached) " >&6
15089 lt_cv_shlibpath_overrides_runpath=no
15090 save_LDFLAGS=$LDFLAGS
15091 save_libdir=$libdir
15092 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15093 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15105 if ac_fn_cxx_try_link "$LINENO"; then :
15106 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15107 lt_cv_shlibpath_overrides_runpath=yes
15110 rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 LDFLAGS=$save_LDFLAGS
15113 libdir=$save_libdir
15117 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15119 # This implies no fast_install, which is unacceptable.
15120 # Some rework will be needed to allow for fast_install
15121 # before this can be enabled.
15122 hardcode_into_libs=yes
15124 # Append ld.so.conf contents to the search path
15125 if test -f /etc/ld.so.conf; then
15126 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' ' '`
15127 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15130 # We used to test for /lib/ld.so.1 and disable shared libraries on
15131 # powerpc, because MkLinux only supported shared libraries with the
15132 # GNU dynamic linker. Since this was broken with cross compilers,
15133 # most powerpc-linux boxes support dynamic linking these days and
15134 # people can always --disable-shared, the test was removed, and we
15135 # assume the GNU/Linux dynamic linker is in use.
15136 dynamic_linker='GNU/Linux ld.so'
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 shlibpath_var=LD_LIBRARY_PATH
15146 shlibpath_overrides_runpath=no
15147 hardcode_into_libs=yes
15148 dynamic_linker='NetBSD ld.elf_so'
15155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15158 dynamic_linker='NetBSD (a.out) ld.so'
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15161 soname_spec='${libname}${release}${shared_ext}$major'
15162 dynamic_linker='NetBSD ld.elf_so'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=yes
15166 hardcode_into_libs=yes
15170 version_type=linux # correct to gnu/linux during the next big refactor
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=no
15184 hardcode_into_libs=yes
15185 dynamic_linker='ldqnx.so'
15190 sys_lib_dlsearch_path_spec="/usr/lib"
15192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15195 *) need_version=no ;;
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15199 shlibpath_var=LD_LIBRARY_PATH
15200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15202 openbsd2.[89] | openbsd2.[89].*)
15203 shlibpath_overrides_runpath=no
15206 shlibpath_overrides_runpath=yes
15210 shlibpath_overrides_runpath=yes
15215 libname_spec='$name'
15218 library_names_spec='$libname${shared_ext} $libname.a'
15219 dynamic_linker='OS/2 ld.exe'
15220 shlibpath_var=LIBPATH
15223 osf3* | osf4* | osf5*)
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15239 version_type=linux # correct to gnu/linux during the next big refactor
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 # ldd complains unless libraries are executable
15248 postinstall_cmds='chmod +x $lib'
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 if test "$with_gnu_ld" = yes; then
15264 version_type=linux # correct to gnu/linux during the next big refactor
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 shlibpath_var=LD_LIBRARY_PATH
15268 case $host_vendor in
15270 shlibpath_overrides_runpath=no
15272 runpath_var=LD_RUN_PATH
15280 shlibpath_overrides_runpath=no
15281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15287 if test -d /usr/nec ;then
15288 version_type=linux # correct to gnu/linux during the next big refactor
15289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15290 soname_spec='$libname${shared_ext}.$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15296 version_type=freebsd-elf
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 shlibpath_overrides_runpath=yes
15303 hardcode_into_libs=yes
15304 if test "$with_gnu_ld" = yes; then
15305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15314 sys_lib_dlsearch_path_spec='/usr/lib'
15318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15319 version_type=linux # correct to gnu/linux during the next big refactor
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=no
15325 hardcode_into_libs=yes
15329 version_type=linux # correct to gnu/linux during the next big refactor
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15340 $as_echo "$dynamic_linker" >&6; }
15341 test "$dynamic_linker" = no && can_build_shared=no
15343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15344 if test "$GCC" = yes; then
15345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15393 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15394 hardcode_action_CXX=
15395 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15396 test -n "$runpath_var_CXX" ||
15397 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15399 # We can hardcode non-existent directories.
15400 if test "$hardcode_direct_CXX" != no &&
15401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15402 # have to relink, otherwise we might link with an installed library
15403 # when we should be linking with a yet-to-be-installed one
15404 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15405 test "$hardcode_minus_L_CXX" != no; then
15406 # Linking always hardcodes the temporary library directory.
15407 hardcode_action_CXX=relink
15409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15410 hardcode_action_CXX=immediate
15413 # We cannot hardcode anything, or else we can only hardcode existing
15415 hardcode_action_CXX=unsupported
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15418 $as_echo "$hardcode_action_CXX" >&6; }
15420 if test "$hardcode_action_CXX" = relink ||
15421 test "$inherit_rpath_CXX" = yes; then
15422 # Fast installation is not supported
15423 enable_fast_install=no
15424 elif test "$shlibpath_overrides_runpath" = yes ||
15425 test "$enable_shared" = no; then
15426 # Fast installation is not necessary
15427 enable_fast_install=needless
15436 fi # test -n "$compiler"
15439 CFLAGS=$lt_save_CFLAGS
15443 with_gnu_ld=$lt_save_with_gnu_ld
15444 lt_cv_path_LDCXX=$lt_cv_path_LD
15445 lt_cv_path_LD=$lt_save_path_LD
15446 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15447 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15448 fi # test "$_lt_caught_CXX_error" != yes
15451 ac_cpp='$CPP $CPPFLAGS'
15452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15470 ac_config_commands="$ac_config_commands libtool"
15475 # Only expand once:
15480 # Checks for libraries.
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
15482 $as_echo_n "checking for main in -lm... " >&6; }
15483 if ${ac_cv_lib_m_main+:} false; then :
15484 $as_echo_n "(cached) " >&6
15486 ac_check_lib_save_LIBS=$LIBS
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15500 if ac_fn_c_try_link "$LINENO"; then :
15501 ac_cv_lib_m_main=yes
15503 ac_cv_lib_m_main=no
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
15510 $as_echo "$ac_cv_lib_m_main" >&6; }
15511 if test "x$ac_cv_lib_m_main" = xyes; then :
15512 cat >>confdefs.h <<_ACEOF
15513 #define HAVE_LIBM 1
15521 # Checks for header files.
15522 for ac_header in stdint.h stdlib.h string.h
15524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15527 cat >>confdefs.h <<_ACEOF
15528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15536 # Checks for typedefs, structures, and compiler characteristics.
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15538 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15539 if ${ac_cv_header_stdbool_h+:} false; then :
15540 $as_echo_n "(cached) " >&6
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15545 #include <stdbool.h>
15547 "error: bool is not defined"
15550 "error: false is not defined"
15553 "error: false is not 0"
15556 "error: true is not defined"
15559 "error: true is not 1"
15561 #ifndef __bool_true_false_are_defined
15562 "error: __bool_true_false_are_defined is not defined"
15565 struct s { _Bool s: 1; _Bool t; } s;
15567 char a[true == 1 ? 1 : -1];
15568 char b[false == 0 ? 1 : -1];
15569 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15570 char d[(bool) 0.5 == true ? 1 : -1];
15571 /* See body of main program for 'e'. */
15572 char f[(_Bool) 0.0 == false ? 1 : -1];
15574 char h[sizeof (_Bool)];
15575 char i[sizeof s.t];
15576 enum { j = false, k = true, l = false * true, m = true * 256 };
15577 /* The following fails for
15578 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15580 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15581 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15582 /* Catch a bug in an HP-UX C compiler. See
15583 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15584 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15596 /* Refer to every declared value, to avoid compiler optimizations. */
15597 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15598 + !m + !n + !o + !p + !q + !pq);
15604 if ac_fn_c_try_compile "$LINENO"; then :
15605 ac_cv_header_stdbool_h=yes
15607 ac_cv_header_stdbool_h=no
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15612 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15613 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15614 if test "x$ac_cv_type__Bool" = xyes; then :
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE__BOOL 1
15623 if test $ac_cv_header_stdbool_h = yes; then
15625 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15630 $as_echo_n "checking for inline... " >&6; }
15631 if ${ac_cv_c_inline+:} false; then :
15632 $as_echo_n "(cached) " >&6
15635 for ac_kw in inline __inline__ __inline; do
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #ifndef __cplusplus
15640 static $ac_kw foo_t static_foo () {return 0; }
15641 $ac_kw foo_t foo () {return 0; }
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 ac_cv_c_inline=$ac_kw
15648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649 test "$ac_cv_c_inline" != no && break
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15654 $as_echo "$ac_cv_c_inline" >&6; }
15656 case $ac_cv_c_inline in
15659 case $ac_cv_c_inline in
15661 *) ac_val=$ac_cv_c_inline;;
15663 cat >>confdefs.h <<_ACEOF
15664 #ifndef __cplusplus
15665 #define inline $ac_val
15671 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15672 case $ac_cv_c_int16_t in #(
15676 cat >>confdefs.h <<_ACEOF
15677 #define int16_t $ac_cv_c_int16_t
15682 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15683 case $ac_cv_c_int32_t in #(
15687 cat >>confdefs.h <<_ACEOF
15688 #define int32_t $ac_cv_c_int32_t
15693 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15694 case $ac_cv_c_int64_t in #(
15698 cat >>confdefs.h <<_ACEOF
15699 #define int64_t $ac_cv_c_int64_t
15704 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
15705 case $ac_cv_c_int8_t in #(
15709 cat >>confdefs.h <<_ACEOF
15710 #define int8_t $ac_cv_c_int8_t
15715 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15716 case $ac_cv_c_uint16_t in #(
15721 cat >>confdefs.h <<_ACEOF
15722 #define uint16_t $ac_cv_c_uint16_t
15727 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15728 case $ac_cv_c_uint32_t in #(
15732 $as_echo "#define _UINT32_T 1" >>confdefs.h
15735 cat >>confdefs.h <<_ACEOF
15736 #define uint32_t $ac_cv_c_uint32_t
15741 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15742 case $ac_cv_c_uint64_t in #(
15746 $as_echo "#define _UINT64_T 1" >>confdefs.h
15749 cat >>confdefs.h <<_ACEOF
15750 #define uint64_t $ac_cv_c_uint64_t
15755 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15756 case $ac_cv_c_uint8_t in #(
15760 $as_echo "#define _UINT8_T 1" >>confdefs.h
15763 cat >>confdefs.h <<_ACEOF
15764 #define uint8_t $ac_cv_c_uint8_t
15770 # Checks for library functions.
15771 for ac_header in stdlib.h
15773 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15774 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_STDLIB_H 1
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15784 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15785 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15786 $as_echo_n "(cached) " >&6
15788 if test "$cross_compiling" = yes; then :
15789 ac_cv_func_malloc_0_nonnull=no
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15794 # include <stdlib.h>
15802 return ! malloc (0);
15807 if ac_fn_c_try_run "$LINENO"; then :
15808 ac_cv_func_malloc_0_nonnull=yes
15810 ac_cv_func_malloc_0_nonnull=no
15812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15813 conftest.$ac_objext conftest.beam conftest.$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15818 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15819 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15821 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15824 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15826 case " $LIBOBJS " in
15827 *" malloc.$ac_objext "* ) ;;
15828 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15833 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15838 for ac_func in memset
15840 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
15841 if test "x$ac_cv_func_memset" = xyes; then :
15842 cat >>confdefs.h <<_ACEOF
15843 #define HAVE_MEMSET 1
15850 # OpenCORE AMR soname version to use
15851 # goes by ‘current[:revision[:age]]’ with the soname ending up as
15852 # current.age.revision.
15853 OPENCORE_AMRNB_VERSION=0:3:0
15854 OPENCORE_AMRWB_VERSION=0:3:0
15858 ac_config_files="$ac_config_files Makefile amrnb/Makefile amrwb/Makefile test/Makefile amrnb/opencore-amrnb.pc amrwb/opencore-amrwb.pc"
15860 cat >confcache <<\_ACEOF
15861 # This file is a shell script that caches the results of configure
15862 # tests run on this system so they can be shared between configure
15863 # scripts and configure runs, see configure's option --config-cache.
15864 # It is not useful on other systems. If it contains results you don't
15865 # want to keep, you may remove or edit it.
15867 # config.status only pays attention to the cache file if you give it
15868 # the --recheck option to rerun configure.
15870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15872 # following values.
15876 # The following way of writing the cache mishandles newlines in values,
15877 # but we know of no workaround that is simple, portable, and efficient.
15878 # So, we kill variables containing newlines.
15879 # Ultrix sh set writes to stderr and can't be redirected directly,
15880 # and sets the high bit in the cache file unless we assign to the vars.
15882 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15883 eval ac_val=\$$ac_var
15887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15888 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15891 _ | IFS | as_nl) ;; #(
15892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15893 *) { eval $ac_var=; unset $ac_var;} ;;
15899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15900 *${as_nl}ac_space=\ *)
15901 # `set' does not quote correctly, so add quotes: double-quote
15902 # substitution turns \\\\ into \\, and sed turns \\ into \.
15905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15908 # `set' quotes correctly as required by POSIX, so do not add quotes.
15909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15922 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15923 if test -w "$cache_file"; then
15924 if test "x$cache_file" != "x/dev/null"; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15926 $as_echo "$as_me: updating cache $cache_file" >&6;}
15927 if test ! -f "$cache_file" || test -h "$cache_file"; then
15928 cat confcache >"$cache_file"
15930 case $cache_file in #(
15932 mv -f confcache "$cache_file"$$ &&
15933 mv -f "$cache_file"$$ "$cache_file" ;; #(
15935 mv -f confcache "$cache_file" ;;
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15947 # Let make expand exec_prefix.
15948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15950 DEFS=-DHAVE_CONFIG_H
15955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15956 # 1. Remove the extension, and $U if already installed.
15957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15958 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15960 # will be set to the directory where LIBOBJS objects are built.
15961 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15962 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15964 LIBOBJS=$ac_libobjs
15966 LTLIBOBJS=$ac_ltlibobjs
15969 if test -n "$EXEEXT"; then
15971 am__EXEEXT_FALSE='#'
15973 am__EXEEXT_TRUE='#'
15977 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15978 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15981 if test -z "${COMPILE_AS_C_TRUE}" && test -z "${COMPILE_AS_C_FALSE}"; then
15982 as_fn_error $? "conditional \"COMPILE_AS_C\" was never defined.
15983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15985 if test -z "${GCC_ARMV5_TRUE}" && test -z "${GCC_ARMV5_FALSE}"; then
15986 as_fn_error $? "conditional \"GCC_ARMV5\" was never defined.
15987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15989 if test -z "${AMRNB_ENCODER_TRUE}" && test -z "${AMRNB_ENCODER_FALSE}"; then
15990 as_fn_error $? "conditional \"AMRNB_ENCODER\" was never defined.
15991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15993 if test -z "${AMRNB_DECODER_TRUE}" && test -z "${AMRNB_DECODER_FALSE}"; then
15994 as_fn_error $? "conditional \"AMRNB_DECODER\" was never defined.
15995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15997 if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
15998 as_fn_error $? "conditional \"EXAMPLES\" was never defined.
15999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16002 as_fn_error $? "conditional \"AMDEP\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16006 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16014 : "${CONFIG_STATUS=./config.status}"
16016 ac_clean_files_save=$ac_clean_files
16017 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16019 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16021 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16023 # Generated by $as_me.
16024 # Run this file to recreate the current configuration.
16025 # Compiler output produced by configure, useful for debugging
16026 # configure, is in config.log if it exists.
16029 ac_cs_recheck=false
16032 SHELL=\${CONFIG_SHELL-$SHELL}
16035 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16036 ## -------------------- ##
16037 ## M4sh Initialization. ##
16038 ## -------------------- ##
16040 # Be more Bourne compatible
16041 DUALCASE=1; export DUALCASE # for MKS sh
16042 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16045 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16046 # is contrary to our usage. Disable this feature.
16047 alias -g '${1+"$@"}'='"$@"'
16048 setopt NO_GLOB_SUBST
16050 case `(set -o) 2>/dev/null` in #(
16062 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16063 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16064 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16066 # Prefer a ksh shell builtin over an external printf program on Solaris,
16067 # but without wasting forks for bash or zsh.
16068 if test -z "$BASH_VERSION$ZSH_VERSION" \
16069 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16070 as_echo='print -r --'
16071 as_echo_n='print -rn --'
16072 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16073 as_echo='printf %s\n'
16074 as_echo_n='printf %s'
16076 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16077 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16078 as_echo_n='/usr/ucb/echo -n'
16080 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16081 as_echo_n_body='eval
16085 expr "X$arg" : "X\\(.*\\)$as_nl";
16086 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16088 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16090 export as_echo_n_body
16091 as_echo_n='sh -c $as_echo_n_body as_echo'
16093 export as_echo_body
16094 as_echo='sh -c $as_echo_body as_echo'
16097 # The user is always right.
16098 if test "${PATH_SEPARATOR+set}" != set; then
16100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16108 # We need space, tab and new line, in precisely that order. Quoting is
16109 # there to prevent editors from complaining about space-tab.
16110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16111 # splitting by setting IFS to empty value.)
16114 # Find who we are. Look in the path if we contain no directory separator.
16117 *[\\/]* ) as_myself=$0 ;;
16118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $PATH
16122 test -z "$as_dir" && as_dir=.
16123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16129 # We did not find ourselves, most probably we were run as `sh COMMAND'
16130 # in which case we are not to be found in the path.
16131 if test "x$as_myself" = x; then
16134 if test ! -f "$as_myself"; then
16135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16139 # Unset variables that we do not need and which cause bugs (e.g. in
16140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16141 # suppresses any "Segmentation fault" message there. '((' could
16142 # trigger a bug in pdksh 5.2.14.
16143 for as_var in BASH_ENV ENV MAIL MAILPATH
16144 do eval test x\${$as_var+set} = xset \
16145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16161 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16162 # ----------------------------------------
16163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16165 # script with STATUS, using 1 if that was 0.
16168 as_status=$1; test $as_status -eq 0 && as_status=1
16170 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16173 $as_echo "$as_me: error: $2" >&2
16174 as_fn_exit $as_status
16178 # as_fn_set_status STATUS
16179 # -----------------------
16180 # Set $? to STATUS, without forking.
16181 as_fn_set_status ()
16184 } # as_fn_set_status
16186 # as_fn_exit STATUS
16187 # -----------------
16188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16192 as_fn_set_status $1
16198 # Portably unset VAR.
16201 { eval $1=; unset $1;}
16203 as_unset=as_fn_unset
16204 # as_fn_append VAR VALUE
16205 # ----------------------
16206 # Append the text in VALUE to the end of the definition contained in VAR. Take
16207 # advantage of any shell optimizations that allow amortized linear growth over
16208 # repeated appends, instead of the typical quadratic growth present in naive
16210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16211 eval 'as_fn_append ()
16222 # as_fn_arith ARG...
16223 # ------------------
16224 # Perform arithmetic evaluation on the ARGs, and store the result in the
16225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16226 # must be portable across $(()) and expr.
16227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16228 eval 'as_fn_arith ()
16235 as_val=`expr "$@" || test $? -eq 1`
16240 if expr a : '\(a\)' >/dev/null 2>&1 &&
16241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16248 as_basename=basename
16253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16259 as_me=`$as_basename -- "$0" ||
16260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16261 X"$0" : 'X\(//\)$' \| \
16262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16264 sed '/^.*\/\([^/][^/]*\)\/*$/{
16278 # Avoid depending upon Character Ranges.
16279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16282 as_cr_digits='0123456789'
16283 as_cr_alnum=$as_cr_Letters$as_cr_digits
16285 ECHO_C= ECHO_N= ECHO_T=
16286 case `echo -n x` in #(((((
16288 case `echo 'xy\c'` in
16289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16298 rm -f conf$$ conf$$.exe conf$$.file
16299 if test -d conf$$.dir; then
16300 rm -f conf$$.dir/conf$$.file
16303 mkdir conf$$.dir 2>/dev/null
16305 if (echo >conf$$.file) 2>/dev/null; then
16306 if ln -s conf$$.file conf$$ 2>/dev/null; then
16308 # ... but there are two gotchas:
16309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16311 # In both cases, we have to default to `cp -p'.
16312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16314 elif ln conf$$.file conf$$ 2>/dev/null; then
16322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16323 rmdir conf$$.dir 2>/dev/null
16328 # Create "$as_dir" as a directory, including parents if necessary.
16333 -*) as_dir=./$as_dir;;
16335 test -d "$as_dir" || eval $as_mkdir_p || {
16339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16340 *) as_qdir=$as_dir;;
16342 as_dirs="'$as_qdir' $as_dirs"
16343 as_dir=`$as_dirname -- "$as_dir" ||
16344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16345 X"$as_dir" : 'X\(//\)[^/]' \| \
16346 X"$as_dir" : 'X\(//\)$' \| \
16347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16348 $as_echo X"$as_dir" |
16349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16353 /^X\(\/\/\)[^/].*/{
16366 test -d "$as_dir" && break
16368 test -z "$as_dirs" || eval "mkdir $as_dirs"
16369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16373 if mkdir -p . 2>/dev/null; then
16374 as_mkdir_p='mkdir -p "$as_dir"'
16376 test -d ./-p && rmdir ./-p
16380 if test -x / >/dev/null 2>&1; then
16381 as_test_x='test -x'
16383 if ls -dL / >/dev/null 2>&1; then
16390 if test -d "$1"; then
16396 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16397 ???[sx]*):;;*)false;;esac;fi
16401 as_executable_p=$as_test_x
16403 # Sed expression to map a string onto a valid CPP name.
16404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16406 # Sed expression to map a string onto a valid variable name.
16407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16411 ## ----------------------------------- ##
16412 ## Main body of $CONFIG_STATUS script. ##
16413 ## ----------------------------------- ##
16415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 # Save the log message, to keep $0 and so on meaningful, and to
16419 # report actual input values of CONFIG_FILES etc. instead of their
16420 # values after options handling.
16422 This file was extended by opencore-amr $as_me 0.1.3, which was
16423 generated by GNU Autoconf 2.68. Invocation command line was
16425 CONFIG_FILES = $CONFIG_FILES
16426 CONFIG_HEADERS = $CONFIG_HEADERS
16427 CONFIG_LINKS = $CONFIG_LINKS
16428 CONFIG_COMMANDS = $CONFIG_COMMANDS
16431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16436 case $ac_config_files in *"
16437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16440 case $ac_config_headers in *"
16441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446 # Files that config.status was made for.
16447 config_files="$ac_config_files"
16448 config_headers="$ac_config_headers"
16449 config_commands="$ac_config_commands"
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16455 \`$as_me' instantiates files and other configuration actions
16456 from templates according to the current configuration. Unless the files
16457 and actions are specified as TAGs, all are instantiated by default.
16459 Usage: $0 [OPTION]... [TAG]...
16461 -h, --help print this help, then exit
16462 -V, --version print version number and configuration settings, then exit
16463 --config print configuration, then exit
16464 -q, --quiet, --silent
16465 do not print progress messages
16466 -d, --debug don't remove temporary files
16467 --recheck update $as_me by reconfiguring in the same conditions
16468 --file=FILE[:TEMPLATE]
16469 instantiate the configuration file FILE
16470 --header=FILE[:TEMPLATE]
16471 instantiate the configuration header FILE
16473 Configuration files:
16476 Configuration headers:
16479 Configuration commands:
16482 Report bugs to <http://sourceforge.net/projects/opencore-amr/>."
16485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16488 opencore-amr config.status 0.1.3
16489 configured by $0, generated by GNU Autoconf 2.68,
16490 with options \\"\$ac_cs_config\\"
16492 Copyright (C) 2010 Free Software Foundation, Inc.
16493 This config.status script is free software; the Free Software Foundation
16494 gives unlimited permission to copy, distribute and modify it."
16501 test -n "\$AWK" || AWK=awk
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 # The default lists apply if the user does not specify any file.
16511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16528 # Handling of the options.
16529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16532 $as_echo "$ac_cs_version"; exit ;;
16533 --config | --confi | --conf | --con | --co | --c )
16534 $as_echo "$ac_cs_config"; exit ;;
16535 --debug | --debu | --deb | --de | --d | -d )
16537 --file | --fil | --fi | --f )
16540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16541 '') as_fn_error $? "missing file argument" ;;
16543 as_fn_append CONFIG_FILES " '$ac_optarg'"
16544 ac_need_defaults=false;;
16545 --header | --heade | --head | --hea )
16548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16551 ac_need_defaults=false;;
16553 # Conflict between --help and --header
16554 as_fn_error $? "ambiguous option: \`$1'
16555 Try \`$0 --help' for more information.";;
16556 --help | --hel | -h )
16557 $as_echo "$ac_cs_usage"; exit ;;
16558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16562 # This is an error.
16563 -*) as_fn_error $? "unrecognized option: \`$1'
16564 Try \`$0 --help' for more information." ;;
16566 *) as_fn_append ac_config_targets " $1"
16567 ac_need_defaults=false ;;
16573 ac_configure_extra_args=
16575 if $ac_cs_silent; then
16577 ac_configure_extra_args="$ac_configure_extra_args --silent"
16581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582 if \$ac_cs_recheck; then
16583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16586 CONFIG_SHELL='$SHELL'
16587 export CONFIG_SHELL
16592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16597 ## Running $as_me. ##
16603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16610 # The HP-UX ksh and POSIX shell print the target directory to stdout
16611 # if CDPATH is set.
16612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16614 sed_quote_subst='$sed_quote_subst'
16615 double_quote_subst='$double_quote_subst'
16616 delay_variable_subst='$delay_variable_subst'
16617 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16618 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16619 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16620 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16621 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16622 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16623 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16624 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16625 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16626 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16627 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16628 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16629 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16630 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16631 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16637 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16638 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16639 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16640 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16641 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16642 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16643 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16644 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16645 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16646 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16647 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16648 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16649 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16653 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16654 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16655 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16672 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16673 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"`'
16674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16747 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16748 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16749 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16750 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16751 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16752 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16753 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16754 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16755 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16756 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16757 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16758 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16759 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16760 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16761 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16762 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16763 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16764 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16765 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16766 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16767 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16768 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16769 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16770 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16771 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16772 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16773 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16774 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16775 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16776 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16777 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16778 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16779 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16780 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16781 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16782 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16783 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16784 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16785 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16786 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16787 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16788 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16789 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16790 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16791 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16792 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16793 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16794 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16795 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16796 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16797 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16798 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16799 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16800 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16803 LTCFLAGS='$LTCFLAGS'
16804 compiler='$compiler_DEFAULT'
16806 # A function that is used when there is no print builtin or printf.
16807 func_fallback_echo ()
16809 eval 'cat <<_LTECHO_EOF
16814 # Quote evaled strings.
16829 deplibs_check_method \
16834 sharedlib_from_linklib_cmd \
16837 archiver_list_spec \
16843 lt_cv_sys_global_symbol_pipe \
16844 lt_cv_sys_global_symbol_to_cdecl \
16845 lt_cv_sys_global_symbol_to_c_name_address \
16846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16847 nm_file_list_spec \
16848 lt_prog_compiler_no_builtin_flag \
16849 lt_prog_compiler_pic \
16850 lt_prog_compiler_wl \
16851 lt_prog_compiler_static \
16852 lt_cv_prog_compiler_c_o \
16861 export_dynamic_flag_spec \
16862 whole_archive_flag_spec \
16863 compiler_needs_object \
16865 allow_undefined_flag \
16866 no_undefined_flag \
16867 hardcode_libdir_flag_spec \
16868 hardcode_libdir_separator \
16872 variables_saved_for_relink \
16874 library_names_spec \
16876 install_override_mode \
16880 compiler_lib_search_dirs \
16885 compiler_lib_search_path \
16889 lt_prog_compiler_no_builtin_flag_CXX \
16890 lt_prog_compiler_pic_CXX \
16891 lt_prog_compiler_wl_CXX \
16892 lt_prog_compiler_static_CXX \
16893 lt_cv_prog_compiler_c_o_CXX \
16894 export_dynamic_flag_spec_CXX \
16895 whole_archive_flag_spec_CXX \
16896 compiler_needs_object_CXX \
16898 allow_undefined_flag_CXX \
16899 no_undefined_flag_CXX \
16900 hardcode_libdir_flag_spec_CXX \
16901 hardcode_libdir_separator_CXX \
16902 exclude_expsyms_CXX \
16903 include_expsyms_CXX \
16904 file_list_spec_CXX \
16905 compiler_lib_search_dirs_CXX \
16906 predep_objects_CXX \
16907 postdep_objects_CXX \
16910 compiler_lib_search_path_CXX; do
16911 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16912 *[\\\\\\\`\\"\\\$]*)
16913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16921 # Double-quote double-evaled strings.
16922 for var in reload_cmds \
16923 old_postinstall_cmds \
16924 old_postuninstall_cmds \
16926 extract_expsyms_cmds \
16927 old_archive_from_new_cmds \
16928 old_archive_from_expsyms_cmds \
16930 archive_expsym_cmds \
16932 module_expsym_cmds \
16933 export_symbols_cmds \
16937 postuninstall_cmds \
16939 sys_lib_search_path_spec \
16940 sys_lib_dlsearch_path_spec \
16942 old_archive_cmds_CXX \
16943 old_archive_from_new_cmds_CXX \
16944 old_archive_from_expsyms_cmds_CXX \
16946 archive_expsym_cmds_CXX \
16948 module_expsym_cmds_CXX \
16949 export_symbols_cmds_CXX \
16951 postlink_cmds_CXX; do
16952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16953 *[\\\\\\\`\\"\\\$]*)
16954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16962 ac_aux_dir='$ac_aux_dir'
16963 xsi_shell='$xsi_shell'
16964 lt_shell_append='$lt_shell_append'
16966 # See if we are running on zsh, and set the options which allow our
16967 # commands through without removal of \ escapes INIT.
16968 if test -n "\${ZSH_VERSION+set}" ; then
16969 setopt NO_GLOB_SUBST
16975 TIMESTAMP='$TIMESTAMP'
16986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16988 # Handling of arguments.
16989 for ac_config_target in $ac_config_targets
16991 case $ac_config_target in
16992 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16993 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16994 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16996 "amrnb/Makefile") CONFIG_FILES="$CONFIG_FILES amrnb/Makefile" ;;
16997 "amrwb/Makefile") CONFIG_FILES="$CONFIG_FILES amrwb/Makefile" ;;
16998 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16999 "amrnb/opencore-amrnb.pc") CONFIG_FILES="$CONFIG_FILES amrnb/opencore-amrnb.pc" ;;
17000 "amrwb/opencore-amrwb.pc") CONFIG_FILES="$CONFIG_FILES amrwb/opencore-amrwb.pc" ;;
17002 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17007 # If the user did not use the arguments to specify the items to instantiate,
17008 # then the envvar interface is used. Set only those that are not.
17009 # We use the long form for the default assignment because of an extremely
17010 # bizarre bug on SunOS 4.1.3.
17011 if $ac_need_defaults; then
17012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17014 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17017 # Have a temporary directory for convenience. Make it in the build tree
17018 # simply because there is no reason against having it here, and in addition,
17019 # creating and moving files from /tmp can sometimes cause problems.
17020 # Hook for its removal unless debugging.
17021 # Note that there is a small window in which the directory will not be cleaned:
17022 # after its creation but before its name has been assigned to `$tmp'.
17026 trap 'exit_status=$?
17027 : "${ac_tmp:=$tmp}"
17028 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17030 trap 'as_fn_exit 1' 1 2 13 15
17032 # Create a (secure) tmp directory for tmp files.
17035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17039 tmp=./conf$$-$RANDOM
17040 (umask 077 && mkdir "$tmp")
17041 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17044 # Set up the scripts for CONFIG_FILES section.
17045 # No need to generate them if there are no CONFIG_FILES.
17046 # This happens for instance with `./config.status config.h'.
17047 if test -n "$CONFIG_FILES"; then
17050 ac_cr=`echo X | tr X '\015'`
17051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17052 # But we know of no other shell where ac_cr would be empty at this
17053 # point, so we can use a bashism as a fallback.
17054 if test "x$ac_cr" = x; then
17055 eval ac_cr=\$\'\\r\'
17057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17061 ac_cs_awk_cr=$ac_cr
17064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17069 echo "cat >conf$$subs.awk <<_ACEOF" &&
17070 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17072 } >conf$$subs.sh ||
17073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17074 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17076 for ac_last_try in false false false false false :; do
17077 . ./conf$$subs.sh ||
17078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17080 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17081 if test $ac_delim_n = $ac_delim_num; then
17083 elif $ac_last_try; then
17084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17089 rm -f conf$$subs.sh
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17096 s/^/S["/; s/!.*/"]=/
17106 s/\(.\{148\}\)..*/\1/
17108 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17120 s/\(.\{148\}\)..*/\1/
17122 s/["\\]/\\&/g; s/^/"/; s/$/"/
17126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17131 ' <conf$$subs.awk | sed '
17136 ' >>$CONFIG_STATUS || ac_write_fail=1
17137 rm -f conf$$subs.awk
17138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17140 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17141 for (key in S) S_is_set[key] = 1
17147 nfields = split(line, field, "@")
17149 len = length(field[1])
17150 for (i = 2; i < nfields; i++) {
17152 keylen = length(key)
17153 if (S_is_set[key]) {
17155 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17156 len += length(value) + length(field[++i])
17167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17169 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17172 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17173 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17176 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17177 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17178 # trailing colons and then remove the whole line if VPATH becomes empty
17179 # (actually we leave an empty line to preserve line numbers).
17180 if test "x$srcdir" = x.; then
17181 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 fi # test -n "$CONFIG_FILES"
17202 # Set up the scripts for CONFIG_HEADERS section.
17203 # No need to generate them if there are no CONFIG_HEADERS.
17204 # This happens for instance with `./config.status Makefile'.
17205 if test -n "$CONFIG_HEADERS"; then
17206 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17210 # Transform confdefs.h into an awk script `defines.awk', embedded as
17211 # here-document in config.status, that substitutes the proper values into
17212 # config.h.in to produce config.h.
17214 # Create a delimiter string that does not exist in confdefs.h, to ease
17215 # handling of long lines.
17217 for ac_last_try in false false :; do
17218 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17219 if test -z "$ac_tt"; then
17221 elif $ac_last_try; then
17222 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17228 # For the awk script, D is an array of macro values keyed by name,
17229 # likewise P contains macro parameters if any. Preserve backslash
17230 # newline sequences.
17232 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17234 s/.\{148\}/&'"$ac_delim"'/g
17237 s/^[ ]*#[ ]*define[ ][ ]*/ /
17244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17250 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17251 D["\1"]=" \3\\\\\\n"\\/p
17253 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17258 s/.\{148\}/&'"$ac_delim"'/g
17263 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17266 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17268 ' <confdefs.h | sed '
17269 s/'"$ac_delim"'/"\\\
17270 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 for (key in D) D_is_set[key] = 1
17276 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17278 split(line, arg, " ")
17279 if (arg[1] == "#") {
17283 defundef = substr(arg[1], 2)
17286 split(mac1, mac2, "(") #)
17288 prefix = substr(line, 1, index(line, defundef) - 1)
17289 if (D_is_set[macro]) {
17290 # Preserve the white space surrounding the "#".
17291 print prefix "define", macro P[macro] D[macro]
17294 # Replace #undef with comments. This is necessary, for example,
17295 # in the case of _POSIX_SOURCE, which is predefined and required
17296 # on some systems where configure will not decide to define it.
17297 if (defundef == "undef") {
17298 print "/*", prefix defundef, macro, "*/"
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17308 fi # test -n "$CONFIG_HEADERS"
17311 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17316 :[FHLC]) ac_mode=$ac_tag; continue;;
17318 case $ac_mode$ac_tag in
17320 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17321 :[FH]-) ac_tag=-:-;;
17322 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17339 -) ac_f="$ac_tmp/stdin";;
17340 *) # Look for the file first in the build tree, then in the source tree
17341 # (if the path is not absolute). The absolute path cannot be DOS-style,
17342 # because $ac_f cannot contain `:'.
17346 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17348 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17350 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17351 as_fn_append ac_file_inputs " '$ac_f'"
17354 # Let's still pretend it is `configure' which instantiates (i.e., don't
17355 # use $as_me), people would be surprised to read:
17356 # /* config.h. Generated by config.status. */
17357 configure_input='Generated from '`
17358 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17360 if test x"$ac_file" != x-; then
17361 configure_input="$ac_file. $configure_input"
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17363 $as_echo "$as_me: creating $ac_file" >&6;}
17365 # Neutralize special characters interpreted by sed in replacement strings.
17366 case $configure_input in #(
17367 *\&* | *\|* | *\\* )
17368 ac_sed_conf_input=`$as_echo "$configure_input" |
17369 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17370 *) ac_sed_conf_input=$configure_input;;
17374 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17380 ac_dir=`$as_dirname -- "$ac_file" ||
17381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382 X"$ac_file" : 'X\(//\)[^/]' \| \
17383 X"$ac_file" : 'X\(//\)$' \| \
17384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17385 $as_echo X"$ac_file" |
17386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17390 /^X\(\/\/\)[^/].*/{
17403 as_dir="$ac_dir"; as_fn_mkdir_p
17407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17410 # A ".." for each directory in $ac_dir_suffix.
17411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17412 case $ac_top_builddir_sub in
17413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17417 ac_abs_top_builddir=$ac_pwd
17418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17419 # for backward compatibility:
17420 ac_top_builddir=$ac_top_build_prefix
17423 .) # We are building in place.
17425 ac_top_srcdir=$ac_top_builddir_sub
17426 ac_abs_top_srcdir=$ac_pwd ;;
17427 [\\/]* | ?:[\\/]* ) # Absolute name.
17428 ac_srcdir=$srcdir$ac_dir_suffix;
17429 ac_top_srcdir=$srcdir
17430 ac_abs_top_srcdir=$srcdir ;;
17431 *) # Relative name.
17432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17433 ac_top_srcdir=$ac_top_build_prefix$srcdir
17434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17449 ac_MKDIR_P=$MKDIR_P
17451 [\\/$]* | ?:[\\/]* ) ;;
17452 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17457 # If the template does not know about datarootdir, expand it.
17458 # FIXME: This hack should be removed a few years after 2.60.
17459 ac_datarootdir_hack=; ac_datarootdir_seen=
17470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17471 *datarootdir*) ac_datarootdir_seen=yes;;
17472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17477 ac_datarootdir_hack='
17478 s&@datadir@&$datadir&g
17479 s&@docdir@&$docdir&g
17480 s&@infodir@&$infodir&g
17481 s&@localedir@&$localedir&g
17482 s&@mandir@&$mandir&g
17483 s&\\\${datarootdir}&$datarootdir&g' ;;
17487 # Neutralize VPATH when `$srcdir' = `.'.
17488 # Shell code in configure.ac might set extrasub.
17489 # FIXME: do we really want to maintain this feature?
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 ac_sed_extra="$ac_vpsub
17494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17497 s|@configure_input@|$ac_sed_conf_input|;t t
17498 s&@top_builddir@&$ac_top_builddir_sub&;t t
17499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17500 s&@srcdir@&$ac_srcdir&;t t
17501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17502 s&@top_srcdir@&$ac_top_srcdir&;t t
17503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17504 s&@builddir@&$ac_builddir&;t t
17505 s&@abs_builddir@&$ac_abs_builddir&;t t
17506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17507 s&@INSTALL@&$ac_INSTALL&;t t
17508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17509 $ac_datarootdir_hack
17511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17519 which seems to be undefined. Please make sure it is defined" >&5
17520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17521 which seems to be undefined. Please make sure it is defined" >&2;}
17523 rm -f "$ac_tmp/stdin"
17525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17534 if test x"$ac_file" != x-; then
17536 $as_echo "/* $configure_input */" \
17537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17538 } >"$ac_tmp/config.h" \
17539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17540 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17545 mv "$ac_tmp/config.h" "$ac_file" \
17546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17549 $as_echo "/* $configure_input */" \
17550 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17551 || as_fn_error $? "could not create -" "$LINENO" 5
17553 # Compute "$ac_file"'s index in $config_headers.
17556 for _am_header in $config_headers :; do
17557 case $_am_header in
17558 $_am_arg | $_am_arg:* )
17561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17566 X"$_am_arg" : 'X\(//\)[^/]' \| \
17567 X"$_am_arg" : 'X\(//\)$' \| \
17568 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17569 $as_echo X"$_am_arg" |
17570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17574 /^X\(\/\/\)[^/].*/{
17586 s/.*/./; q'`/stamp-h$_am_stamp_count
17589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17590 $as_echo "$as_me: executing $ac_file commands" >&6;}
17595 case $ac_file$ac_mode in
17596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17597 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17598 # are listed without --file. Let's play safe and only enable the eval
17599 # if we detect the quoting.
17600 case $CONFIG_FILES in
17601 *\'*) eval set x "$CONFIG_FILES" ;;
17602 *) set x $CONFIG_FILES ;;
17607 # Strip MF so we end up with the name of the file.
17608 mf=`echo "$mf" | sed -e 's/:.*$//'`
17609 # Check whether this is an Automake generated Makefile or not.
17610 # We used to match only the files named `Makefile.in', but
17611 # some people rename them; so instead we look at the file content.
17612 # Grep'ing the first line is not enough: some people post-process
17613 # each Makefile.in and add a new line on top of each file to say so.
17614 # Grep'ing the whole file is not good either: AIX grep has a line
17615 # limit of 2048, but all sed's we know have understand at least 4000.
17616 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17617 dirpart=`$as_dirname -- "$mf" ||
17618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17619 X"$mf" : 'X\(//\)[^/]' \| \
17620 X"$mf" : 'X\(//\)$' \| \
17621 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17627 /^X\(\/\/\)[^/].*/{
17643 # Extract the definition of DEPDIR, am__include, and am__quote
17644 # from the Makefile without running `make'.
17645 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17646 test -z "$DEPDIR" && continue
17647 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17648 test -z "am__include" && continue
17649 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17650 # When using ansi2knr, U may be empty or an underscore; expand it
17651 U=`sed -n 's/^U = //p' < "$mf"`
17652 # Find all dependency output files, they are included files with
17653 # $(DEPDIR) in their names. We invoke sed twice because it is the
17654 # simplest approach to changing $(DEPDIR) to its actual value in the
17656 for file in `sed -n "
17657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17659 # Make sure the directory exists.
17660 test -f "$dirpart/$file" && continue
17661 fdir=`$as_dirname -- "$file" ||
17662 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17663 X"$file" : 'X\(//\)[^/]' \| \
17664 X"$file" : 'X\(//\)$' \| \
17665 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17666 $as_echo X"$file" |
17667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17671 /^X\(\/\/\)[^/].*/{
17684 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17685 # echo "creating $dirpart/$file"
17686 echo '# dummy' > "$dirpart/$file"
17693 # See if we are running on zsh, and set the options which allow our
17694 # commands through without removal of \ escapes.
17695 if test -n "${ZSH_VERSION+set}" ; then
17696 setopt NO_GLOB_SUBST
17699 cfgfile="${ofile}T"
17700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17703 cat <<_LT_EOF >> "$cfgfile"
17706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17712 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17714 # Written by Gordon Matzigkeit, 1996
17716 # This file is part of GNU Libtool.
17718 # GNU Libtool is free software; you can redistribute it and/or
17719 # modify it under the terms of the GNU General Public License as
17720 # published by the Free Software Foundation; either version 2 of
17721 # the License, or (at your option) any later version.
17723 # As a special exception to the GNU General Public License,
17724 # if you distribute this file as part of a program or library that
17725 # is built using GNU Libtool, you may include this file under the
17726 # same distribution terms that you use for the rest of that program.
17728 # GNU Libtool is distributed in the hope that it will be useful,
17729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17731 # GNU General Public License for more details.
17733 # You should have received a copy of the GNU General Public License
17734 # along with GNU Libtool; see the file COPYING. If not, a copy
17735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17736 # obtained by writing to the Free Software Foundation, Inc.,
17737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17740 # The names of the tagged configurations supported by this script.
17741 available_tags="CXX "
17743 # ### BEGIN LIBTOOL CONFIG
17745 # Which release of libtool.m4 was used?
17746 macro_version=$macro_version
17747 macro_revision=$macro_revision
17749 # Whether or not to build shared libraries.
17750 build_libtool_libs=$enable_shared
17752 # Whether or not to build static libraries.
17753 build_old_libs=$enable_static
17755 # What type of objects to build.
17758 # Whether or not to optimize for fast installation.
17759 fast_install=$enable_fast_install
17761 # Shell to use when invoking shell scripts.
17764 # An echo program that protects backslashes.
17767 # The PATH separator for the build system.
17768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17771 host_alias=$host_alias
17775 # The build system.
17776 build_alias=$build_alias
17780 # A sed program that does not truncate output.
17783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17784 Xsed="\$SED -e 1s/^X//"
17786 # A grep program that handles long lines.
17792 # A literal string matcher.
17795 # A BSD- or MS-compatible name lister.
17798 # Whether we need soft or hard links.
17801 # What is the maximum length of a command?
17802 max_cmd_len=$max_cmd_len
17804 # Object file suffix (normally "o").
17807 # Executable file suffix (normally "").
17810 # whether the shell understands "unset".
17813 # turn spaces into newlines.
17816 # turn newlines into spaces.
17819 # convert \$build file names to \$host format.
17820 to_host_file_cmd=$lt_cv_to_host_file_cmd
17822 # convert \$build files to toolchain format.
17823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17825 # An object symbol dumper.
17826 OBJDUMP=$lt_OBJDUMP
17828 # Method to check whether dependent libraries are shared objects.
17829 deplibs_check_method=$lt_deplibs_check_method
17831 # Command to use when deplibs_check_method = "file_magic".
17832 file_magic_cmd=$lt_file_magic_cmd
17834 # How to find potential files when deplibs_check_method = "file_magic".
17835 file_magic_glob=$lt_file_magic_glob
17837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17838 want_nocaseglob=$lt_want_nocaseglob
17840 # DLL creation program.
17841 DLLTOOL=$lt_DLLTOOL
17843 # Command to associate shared and link libraries.
17844 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17849 # Flags to create an archive.
17850 AR_FLAGS=$lt_AR_FLAGS
17852 # How to feed a file listing to the archiver.
17853 archiver_list_spec=$lt_archiver_list_spec
17855 # A symbol stripping program.
17858 # Commands used to install an old-style archive.
17860 old_postinstall_cmds=$lt_old_postinstall_cmds
17861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863 # Whether to use a lock for old archive extraction.
17864 lock_old_archive_extraction=$lock_old_archive_extraction
17869 # LTCC compiler flags.
17870 LTCFLAGS=$lt_CFLAGS
17872 # Take the output of nm and produce a listing of raw symbols and C names.
17873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17875 # Transform the output of nm in a proper C declaration.
17876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17878 # Transform the output of nm in a C name address pair.
17879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17881 # Transform the output of nm in a C name address pair when lib prefix is needed.
17882 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17884 # Specify filename containing input files for \$NM.
17885 nm_file_list_spec=$lt_nm_file_list_spec
17887 # The root where to search for dependent libraries,and in which our libraries should be installed.
17888 lt_sysroot=$lt_sysroot
17890 # The name of the directory that contains temporary libtool files.
17893 # Used to examine libraries when file_magic_cmd begins with "file".
17894 MAGIC_CMD=$MAGIC_CMD
17896 # Must we lock files when doing compilation?
17897 need_locks=$lt_need_locks
17900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17903 DSYMUTIL=$lt_DSYMUTIL
17905 # Tool to change global to local symbols on Mac OS X.
17908 # Tool to manipulate fat objects and archives on Mac OS X.
17911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17915 OTOOL64=$lt_OTOOL64
17917 # Old archive suffix (normally "a").
17920 # Shared library suffix (normally ".so").
17921 shrext_cmds=$lt_shrext_cmds
17923 # The commands to extract the exported symbol list from a shared archive.
17924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17926 # Variables whose values should be saved in libtool wrapper scripts and
17927 # restored at link time.
17928 variables_saved_for_relink=$lt_variables_saved_for_relink
17930 # Do we need the "lib" prefix for modules?
17931 need_lib_prefix=$need_lib_prefix
17933 # Do we need a version for libraries?
17934 need_version=$need_version
17936 # Library versioning type.
17937 version_type=$version_type
17939 # Shared library runtime path variable.
17940 runpath_var=$runpath_var
17942 # Shared library path variable.
17943 shlibpath_var=$shlibpath_var
17945 # Is shlibpath searched before the hard-coded library search path?
17946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17948 # Format of library name prefix.
17949 libname_spec=$lt_libname_spec
17951 # List of archive names. First name is the real one, the rest are links.
17952 # The last name is the one that the linker finds with -lNAME
17953 library_names_spec=$lt_library_names_spec
17955 # The coded name of the library, if different from the real name.
17956 soname_spec=$lt_soname_spec
17958 # Permission mode override for installation of shared libraries.
17959 install_override_mode=$lt_install_override_mode
17961 # Command to use after installation of a shared archive.
17962 postinstall_cmds=$lt_postinstall_cmds
17964 # Command to use after uninstallation of a shared archive.
17965 postuninstall_cmds=$lt_postuninstall_cmds
17967 # Commands used to finish a libtool library installation in a directory.
17968 finish_cmds=$lt_finish_cmds
17970 # As "finish_cmds", except a single script fragment to be evaled but
17972 finish_eval=$lt_finish_eval
17974 # Whether we should hardcode library paths into libraries.
17975 hardcode_into_libs=$hardcode_into_libs
17977 # Compile-time system search path for libraries.
17978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17980 # Run-time system search path for libraries.
17981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17983 # Whether dlopen is supported.
17984 dlopen_support=$enable_dlopen
17986 # Whether dlopen of programs is supported.
17987 dlopen_self=$enable_dlopen_self
17989 # Whether dlopen of statically linked programs is supported.
17990 dlopen_self_static=$enable_dlopen_self_static
17992 # Commands to strip libraries.
17993 old_striplib=$lt_old_striplib
17994 striplib=$lt_striplib
17997 # The linker used to build libraries.
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag
18002 reload_cmds=$lt_reload_cmds
18004 # Commands used to build an old-style archive.
18005 old_archive_cmds=$lt_old_archive_cmds
18007 # A language specific compiler.
18010 # Is the compiler the GNU compiler?
18013 # Compiler flag to turn off builtin functions.
18014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18016 # Additional compiler flags for building library objects.
18017 pic_flag=$lt_lt_prog_compiler_pic
18019 # How to pass a linker flag through the compiler.
18020 wl=$lt_lt_prog_compiler_wl
18022 # Compiler flag to prevent dynamic linking.
18023 link_static_flag=$lt_lt_prog_compiler_static
18025 # Does compiler simultaneously support -c and -o options?
18026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18028 # Whether or not to add -lc for building shared libraries.
18029 build_libtool_need_lc=$archive_cmds_need_lc
18031 # Whether or not to disallow shared libs when runtime libs are static.
18032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18040 # Whether the compiler copes with passing no objects directly.
18041 compiler_needs_object=$lt_compiler_needs_object
18043 # Create an old-style archive from a shared archive.
18044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18046 # Create a temporary old-style archive to link instead of a shared archive.
18047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18049 # Commands used to build a shared archive.
18050 archive_cmds=$lt_archive_cmds
18051 archive_expsym_cmds=$lt_archive_expsym_cmds
18053 # Commands used to build a loadable module if different from building
18054 # a shared archive.
18055 module_cmds=$lt_module_cmds
18056 module_expsym_cmds=$lt_module_expsym_cmds
18058 # Whether we are building with GNU ld or not.
18059 with_gnu_ld=$lt_with_gnu_ld
18061 # Flag that allows shared libraries with undefined symbols to be built.
18062 allow_undefined_flag=$lt_allow_undefined_flag
18064 # Flag that enforces no undefined symbols.
18065 no_undefined_flag=$lt_no_undefined_flag
18067 # Flag to hardcode \$libdir into a binary during linking.
18068 # This must work even if \$libdir does not exist
18069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18071 # Whether we need a single "-rpath" flag with a separated argument.
18072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18075 # DIR into the resulting binary.
18076 hardcode_direct=$hardcode_direct
18078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18079 # DIR into the resulting binary and the resulting library dependency is
18080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18081 # library is relocated.
18082 hardcode_direct_absolute=$hardcode_direct_absolute
18084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18085 # into the resulting binary.
18086 hardcode_minus_L=$hardcode_minus_L
18088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18089 # into the resulting binary.
18090 hardcode_shlibpath_var=$hardcode_shlibpath_var
18092 # Set to "yes" if building a shared library automatically hardcodes DIR
18093 # into the library and all subsequent libraries and executables linked
18095 hardcode_automatic=$hardcode_automatic
18097 # Set to yes if linker adds runtime paths of dependent libraries
18098 # to runtime path list.
18099 inherit_rpath=$inherit_rpath
18101 # Whether libtool must link a program against all its dependency libraries.
18102 link_all_deplibs=$link_all_deplibs
18104 # Set to "yes" if exported symbols are required.
18105 always_export_symbols=$always_export_symbols
18107 # The commands to list exported symbols.
18108 export_symbols_cmds=$lt_export_symbols_cmds
18110 # Symbols that should not be listed in the preloaded symbols.
18111 exclude_expsyms=$lt_exclude_expsyms
18113 # Symbols that must always be exported.
18114 include_expsyms=$lt_include_expsyms
18116 # Commands necessary for linking programs (against libraries) with templates.
18117 prelink_cmds=$lt_prelink_cmds
18119 # Commands necessary for finishing linking programs.
18120 postlink_cmds=$lt_postlink_cmds
18122 # Specify filename containing input files.
18123 file_list_spec=$lt_file_list_spec
18125 # How to hardcode a shared library path into an executable.
18126 hardcode_action=$hardcode_action
18128 # The directories searched by this compiler when creating a shared library.
18129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18131 # Dependencies to place before and after the objects being linked to
18132 # create a shared library.
18133 predep_objects=$lt_predep_objects
18134 postdep_objects=$lt_postdep_objects
18135 predeps=$lt_predeps
18136 postdeps=$lt_postdeps
18138 # The library search path used internally by the compiler when linking
18139 # a shared library.
18140 compiler_lib_search_path=$lt_compiler_lib_search_path
18142 # ### END LIBTOOL CONFIG
18148 cat <<\_LT_EOF >> "$cfgfile"
18149 # AIX sometimes has problems with the GCC collect2 program. For some
18150 # reason, if we set the COLLECT_NAMES environment variable, the problems
18151 # vanish in a puff of smoke.
18152 if test "X${COLLECT_NAMES+set}" != Xset; then
18154 export COLLECT_NAMES
18161 ltmain="$ac_aux_dir/ltmain.sh"
18164 # We use sed instead of cat because bash on DJGPP gets confused if
18165 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18166 # text mode, it properly converts lines to CR/LF. This bash problem
18167 # is reportedly fixed, but why not run on old versions too?
18168 sed '$q' "$ltmain" >> "$cfgfile" \
18169 || (rm -f "$cfgfile"; exit 1)
18171 if test x"$xsi_shell" = xyes; then
18172 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18176 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18177 \ * ) func_dirname_result="${3}" ;;\
18179 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18180 && mv -f "$cfgfile.tmp" "$cfgfile" \
18181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18182 test 0 -eq $? || _lt_function_replace_fail=:
18185 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18188 \ func_basename_result="${1##*/}"\
18189 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18190 && mv -f "$cfgfile.tmp" "$cfgfile" \
18191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18192 test 0 -eq $? || _lt_function_replace_fail=:
18195 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18196 func_dirname_and_basename ()\
18199 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18200 \ * ) func_dirname_result="${3}" ;;\
18202 \ func_basename_result="${1##*/}"\
18203 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18204 && mv -f "$cfgfile.tmp" "$cfgfile" \
18205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18206 test 0 -eq $? || _lt_function_replace_fail=:
18209 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18212 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18213 \ # positional parameters, so assign one to ordinary parameter first.\
18214 \ func_stripname_result=${3}\
18215 \ func_stripname_result=${func_stripname_result#"${1}"}\
18216 \ func_stripname_result=${func_stripname_result%"${2}"}\
18217 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18218 && mv -f "$cfgfile.tmp" "$cfgfile" \
18219 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18220 test 0 -eq $? || _lt_function_replace_fail=:
18223 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18224 func_split_long_opt ()\
18226 \ func_split_long_opt_name=${1%%=*}\
18227 \ func_split_long_opt_arg=${1#*=}\
18228 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18229 && mv -f "$cfgfile.tmp" "$cfgfile" \
18230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18231 test 0 -eq $? || _lt_function_replace_fail=:
18234 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18235 func_split_short_opt ()\
18237 \ func_split_short_opt_arg=${1#??}\
18238 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18239 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18240 && mv -f "$cfgfile.tmp" "$cfgfile" \
18241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18242 test 0 -eq $? || _lt_function_replace_fail=:
18245 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18249 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18250 \ *) func_lo2o_result=${1} ;;\
18252 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18253 && mv -f "$cfgfile.tmp" "$cfgfile" \
18254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18255 test 0 -eq $? || _lt_function_replace_fail=:
18258 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18261 func_xform_result=${1%.*}.lo\
18262 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18263 && mv -f "$cfgfile.tmp" "$cfgfile" \
18264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18265 test 0 -eq $? || _lt_function_replace_fail=:
18268 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18271 func_arith_result=$(( $* ))\
18272 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18273 && mv -f "$cfgfile.tmp" "$cfgfile" \
18274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18275 test 0 -eq $? || _lt_function_replace_fail=:
18278 sed -e '/^func_len ()$/,/^} # func_len /c\
18281 func_len_result=${#1}\
18282 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18283 && mv -f "$cfgfile.tmp" "$cfgfile" \
18284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18285 test 0 -eq $? || _lt_function_replace_fail=:
18289 if test x"$lt_shell_append" = xyes; then
18290 sed -e '/^func_append ()$/,/^} # func_append /c\
18293 eval "${1}+=\\${2}"\
18294 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18295 && mv -f "$cfgfile.tmp" "$cfgfile" \
18296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18297 test 0 -eq $? || _lt_function_replace_fail=:
18300 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18301 func_append_quoted ()\
18303 \ func_quote_for_eval "${2}"\
18304 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18305 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18306 && mv -f "$cfgfile.tmp" "$cfgfile" \
18307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18308 test 0 -eq $? || _lt_function_replace_fail=:
18311 # Save a `func_append' function call where possible by direct use of '+='
18312 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18313 && mv -f "$cfgfile.tmp" "$cfgfile" \
18314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18315 test 0 -eq $? || _lt_function_replace_fail=:
18317 # Save a `func_append' function call even when '+=' is not available
18318 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18319 && mv -f "$cfgfile.tmp" "$cfgfile" \
18320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18321 test 0 -eq $? || _lt_function_replace_fail=:
18324 if test x"$_lt_function_replace_fail" = x":"; then
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18326 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18330 mv -f "$cfgfile" "$ofile" ||
18331 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18335 cat <<_LT_EOF >> "$ofile"
18337 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18339 # The linker used to build libraries.
18342 # How to create reloadable object files.
18343 reload_flag=$lt_reload_flag_CXX
18344 reload_cmds=$lt_reload_cmds_CXX
18346 # Commands used to build an old-style archive.
18347 old_archive_cmds=$lt_old_archive_cmds_CXX
18349 # A language specific compiler.
18350 CC=$lt_compiler_CXX
18352 # Is the compiler the GNU compiler?
18355 # Compiler flag to turn off builtin functions.
18356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18358 # Additional compiler flags for building library objects.
18359 pic_flag=$lt_lt_prog_compiler_pic_CXX
18361 # How to pass a linker flag through the compiler.
18362 wl=$lt_lt_prog_compiler_wl_CXX
18364 # Compiler flag to prevent dynamic linking.
18365 link_static_flag=$lt_lt_prog_compiler_static_CXX
18367 # Does compiler simultaneously support -c and -o options?
18368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18370 # Whether or not to add -lc for building shared libraries.
18371 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18373 # Whether or not to disallow shared libs when runtime libs are static.
18374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18376 # Compiler flag to allow reflexive dlopens.
18377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18379 # Compiler flag to generate shared objects directly from archives.
18380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18382 # Whether the compiler copes with passing no objects directly.
18383 compiler_needs_object=$lt_compiler_needs_object_CXX
18385 # Create an old-style archive from a shared archive.
18386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18388 # Create a temporary old-style archive to link instead of a shared archive.
18389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18391 # Commands used to build a shared archive.
18392 archive_cmds=$lt_archive_cmds_CXX
18393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18395 # Commands used to build a loadable module if different from building
18396 # a shared archive.
18397 module_cmds=$lt_module_cmds_CXX
18398 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18400 # Whether we are building with GNU ld or not.
18401 with_gnu_ld=$lt_with_gnu_ld_CXX
18403 # Flag that allows shared libraries with undefined symbols to be built.
18404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18406 # Flag that enforces no undefined symbols.
18407 no_undefined_flag=$lt_no_undefined_flag_CXX
18409 # Flag to hardcode \$libdir into a binary during linking.
18410 # This must work even if \$libdir does not exist
18411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18413 # Whether we need a single "-rpath" flag with a separated argument.
18414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18417 # DIR into the resulting binary.
18418 hardcode_direct=$hardcode_direct_CXX
18420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18421 # DIR into the resulting binary and the resulting library dependency is
18422 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18423 # library is relocated.
18424 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18426 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18427 # into the resulting binary.
18428 hardcode_minus_L=$hardcode_minus_L_CXX
18430 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18431 # into the resulting binary.
18432 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18434 # Set to "yes" if building a shared library automatically hardcodes DIR
18435 # into the library and all subsequent libraries and executables linked
18437 hardcode_automatic=$hardcode_automatic_CXX
18439 # Set to yes if linker adds runtime paths of dependent libraries
18440 # to runtime path list.
18441 inherit_rpath=$inherit_rpath_CXX
18443 # Whether libtool must link a program against all its dependency libraries.
18444 link_all_deplibs=$link_all_deplibs_CXX
18446 # Set to "yes" if exported symbols are required.
18447 always_export_symbols=$always_export_symbols_CXX
18449 # The commands to list exported symbols.
18450 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18452 # Symbols that should not be listed in the preloaded symbols.
18453 exclude_expsyms=$lt_exclude_expsyms_CXX
18455 # Symbols that must always be exported.
18456 include_expsyms=$lt_include_expsyms_CXX
18458 # Commands necessary for linking programs (against libraries) with templates.
18459 prelink_cmds=$lt_prelink_cmds_CXX
18461 # Commands necessary for finishing linking programs.
18462 postlink_cmds=$lt_postlink_cmds_CXX
18464 # Specify filename containing input files.
18465 file_list_spec=$lt_file_list_spec_CXX
18467 # How to hardcode a shared library path into an executable.
18468 hardcode_action=$hardcode_action_CXX
18470 # The directories searched by this compiler when creating a shared library.
18471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18473 # Dependencies to place before and after the objects being linked to
18474 # create a shared library.
18475 predep_objects=$lt_predep_objects_CXX
18476 postdep_objects=$lt_postdep_objects_CXX
18477 predeps=$lt_predeps_CXX
18478 postdeps=$lt_postdeps_CXX
18480 # The library search path used internally by the compiler when linking
18481 # a shared library.
18482 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18484 # ### END LIBTOOL TAG CONFIG: CXX
18495 ac_clean_files=$ac_clean_files_save
18497 test $ac_write_fail = 0 ||
18498 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18501 # configure is writing to config.log, and then calls config.status.
18502 # config.status does its own redirection, appending to config.log.
18503 # Unfortunately, on DOS this fails, as config.log is still kept open
18504 # by configure, so config.status won't be able to write to it; its
18505 # output is simply discarded. So we exec the FD to /dev/null,
18506 # effectively closing config.log, so it can be properly (re)opened and
18507 # appended to by config.status. When coming back to configure, we
18508 # need to make the FD available again.
18509 if test "$no_create" != yes; then
18511 ac_config_status_args=
18512 test "$silent" = yes &&
18513 ac_config_status_args="$ac_config_status_args --quiet"
18515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18518 # would make configure fail if this is the last instruction.
18519 $ac_cs_success || as_fn_exit 1
18521 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18523 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}