2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.6.5.
5 # Report bugs to <help@www.openfst.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: help@www.openfst.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenFst'
592 PACKAGE_TARNAME='openfst'
593 PACKAGE_VERSION='1.6.5'
594 PACKAGE_STRING='OpenFst 1.6.5'
595 PACKAGE_BUGREPORT='help@www.openfst.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_unique_file="src/lib/fst.cc"
635 ac_subst_vars='am__EXEEXT_FALSE
749 INSTALL_STRIP_PROGRAM
791 program_transform_name
804 enable_option_checking
806 enable_dependency_tracking
819 enable_lookahead_fsts
829 ac_precious_vars='build_alias
846 # Initialize some variables set by options.
848 ac_init_version=false
849 ac_unrecognized_opts=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
860 program_transform_name=s,x,x,
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1153 -site=* | --site=* | --sit=*)
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=no ;;
1212 # Obsolete; use --with-x.
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $? "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures OpenFst 1.6.5 to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/openfst]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of OpenFst 1.6.5:";;
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --enable-dependency-tracking
1465 do not reject slow dependency extractors
1466 --disable-dependency-tracking
1467 speeds up one-time build
1468 --enable-static[=PKGS] build static libraries [default=no]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-compact-fsts enable CompactFst extensions
1474 --enable-compress enable compression extension
1475 --enable-const-fsts enable ConstFst extensions
1476 --enable-far enable FAR extensions
1477 --enable-linear-fsts enable LinearTagger/ClassifierFst extensions
1478 --enable-lookahead-fsts enable LookAheadFst extensions
1479 --enable-mpdt enable MPDT extensions
1480 --enable-ngram-fsts enable NGramFst extension
1481 --enable-pdt enable PDT extensions
1482 --enable-python enable Python extensions
1483 --enable-special enable special-matcher extensions
1484 --enable-bin enable fst::script and command-line binaries
1485 --enable-grm enable all dependencies of OpenGrm
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot=DIR Search for dependent libraries within DIR
1494 (or the compiler's sysroot if not specified).
1495 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 PYTHON the Python interpreter
1511 The installed Python version to use, for example '2.3'. This
1512 string will be appended to the Python interpreter canonical
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to <help@www.openfst.org>.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1581 OpenFst configure 1.6.5
1582 generated by GNU Autoconf 2.69
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_compile
1633 # ac_fn_cxx_try_compile LINENO
1634 # ----------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_cxx_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_cxx_try_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1734 if ac_fn_c_try_compile "$LINENO"; then :
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_header_compile
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_link"
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>&5
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803 { { case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_try") 2>&5
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; }; }; then :
1815 $as_echo "$as_me: program exited with status $ac_status" >&5
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1819 ac_retval=$ac_status
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1850 # include <limits.h>
1852 # include <assert.h>
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1879 if ac_fn_c_try_link "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_func
1894 # ac_fn_cxx_try_cpp LINENO
1895 # ------------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_cpp ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_cpp conftest.$ac_ext"
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } > conftest.i && {
1916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_cxx_try_cpp
1931 # ac_fn_cxx_try_link LINENO
1932 # -------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_link ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 test -x conftest$ac_exeext
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1975 } # ac_fn_cxx_try_link
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1980 It was created by OpenFst $as_me 1.6.5, which was
1981 generated by GNU Autoconf 2.69. Invocation command line was
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 $as_echo "PATH: $as_dir"
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2041 ac_must_keep_next=false
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057 as_fn_append ac_configure_args1 " '$ac_arg'"
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 -* ) ac_must_keep_next=true ;;
2073 as_fn_append ac_configure_args " '$ac_arg'"
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log. We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2091 $as_echo "## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##"
2095 # The following way of writing the cache mishandles newlines in values,
2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098 eval ac_val=\$$ac_var
2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106 _ | IFS | as_nl) ;; #(
2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108 *) { eval $ac_var=; unset $ac_var;} ;;
2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114 *${as_nl}ac_space=\ *)
2116 "s/'\''/'\''\\\\'\'''\''/g;
2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2127 $as_echo "## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##"
2131 for ac_var in $ac_subst_vars
2133 eval ac_val=\$$ac_var
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 $as_echo "$ac_var='\''$ac_val'\''"
2141 if test -n "$ac_subst_files"; then
2142 $as_echo "## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##"
2146 for ac_var in $ac_subst_files
2148 eval ac_val=\$$ac_var
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 $as_echo "$ac_var='\''$ac_val'\''"
2157 if test -s confdefs.h; then
2158 $as_echo "## ----------- ##
2165 test "$ac_signal" != 0 &&
2166 $as_echo "$as_me: caught signal $ac_signal"
2167 $as_echo "$as_me: exit $exit_status"
2169 rm -f core *.core core.conftest.* &&
2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 for ac_signal in 1 2 13 15; do
2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2179 rm -f -r conftest* confdefs.h
2181 $as_echo "/* confdefs.h */" > confdefs.h
2183 # Predefined preprocessor variables.
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_NAME "$PACKAGE_NAME"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_STRING "$PACKAGE_STRING"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_URL "$PACKAGE_URL"
2210 # Let the site file select an alternate cache file if it wants to.
2211 # Prefer an explicitly selected file to automatically selected ones.
2214 if test -n "$CONFIG_SITE"; then
2215 # We do not want a PATH search for config.site.
2216 case $CONFIG_SITE in #((
2217 -*) ac_site_file1=./$CONFIG_SITE;;
2218 */*) ac_site_file1=$CONFIG_SITE;;
2219 *) ac_site_file1=./$CONFIG_SITE;;
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
2225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230 test "x$ac_site_file" = xNONE && continue
2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234 sed 's/^/| /' "$ac_site_file" >&5
2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "failed to load site script $ac_site_file
2239 See \`config.log' for more details" "$LINENO" 5; }
2243 if test -r "$cache_file"; then
2244 # Some versions of bash will fail to source /dev/null (special files
2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2250 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251 *) . "./$cache_file";;
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2260 # Check that the precious variables saved in the cache have kept the same
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265 eval ac_new_set=\$ac_env_${ac_var}_set
2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267 eval ac_new_val=\$ac_env_${ac_var}_value
2268 case $ac_old_set,$ac_new_set in
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2279 if test "x$ac_old_val" != "x$ac_new_val"; then
2280 # differences in whitespace do not lead to failure.
2281 ac_old_val_w=`echo x $ac_old_val`
2282 ac_new_val_w=`echo x $ac_new_val`
2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286 ac_cache_corrupted=:
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290 eval $ac_var=\$ac_old_val
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2293 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2298 # Pass precious variables to config.status.
2299 if test "$ac_new_set" = set; then
2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 *) ac_arg=$ac_var=$ac_new_val ;;
2304 case " $ac_configure_args " in
2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310 if $ac_cache_corrupted; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 am__api_version='1.14'
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332 if test -f "$ac_dir/install-sh"; then
2334 ac_install_sh="$ac_aux_dir/install-sh -c"
2336 elif test -f "$ac_dir/install.sh"; then
2338 ac_install_sh="$ac_aux_dir/install.sh -c"
2340 elif test -f "$ac_dir/shtool"; then
2342 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 if test -z "$ac_aux_dir"; then
2347 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2355 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2356 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2359 # Find a good install program. We prefer a C program (faster),
2360 # so one script is as good as another. But avoid the broken or
2361 # incompatible versions:
2362 # SysV /etc/install, /usr/sbin/install
2363 # SunOS /usr/etc/install
2364 # IRIX /sbin/install
2366 # AmigaOS /C/install, which installs bootblocks on floppy discs
2367 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2368 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2369 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2370 # OS/2's system install, which has a completely different semantic
2371 # ./install, which can be erroneously created by make from ./install.sh.
2372 # Reject install programs that cannot install multiple files.
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2374 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2375 if test -z "$INSTALL"; then
2376 if ${ac_cv_path_install+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 # Account for people who put trailing slashes in PATH elements.
2385 case $as_dir/ in #((
2386 ./ | .// | /[cC]/* | \
2387 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2388 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2391 # OSF1 and SCO ODT 3.0 have their own names for install.
2392 # Don't use installbsd from OSF since it installs stuff as root
2394 for ac_prog in ginstall scoinst install; do
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2397 if test $ac_prog = install &&
2398 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399 # AIX install. It has an incompatible calling convention.
2401 elif test $ac_prog = install &&
2402 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403 # program-specific install script used by HP pwplus--don't use.
2406 rm -rf conftest.one conftest.two conftest.dir
2407 echo one > conftest.one
2408 echo two > conftest.two
2410 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2411 test -s conftest.one && test -s conftest.two &&
2412 test -s conftest.dir/conftest.one &&
2413 test -s conftest.dir/conftest.two
2415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2428 rm -rf conftest.one conftest.two conftest.dir
2431 if test "${ac_cv_path_install+set}" = set; then
2432 INSTALL=$ac_cv_path_install
2434 # As a last resort, use the slow shell script. Don't cache a
2435 # value for INSTALL within a source directory, because that will
2436 # break other packages using the cache if that directory is
2437 # removed, or if the value is a relative name.
2438 INSTALL=$ac_install_sh
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2442 $as_echo "$INSTALL" >&6; }
2444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2445 # It thinks the first close brace ends the variable substitution.
2446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2453 $as_echo_n "checking whether build environment is sane... " >&6; }
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name. Accept space and tab only in the latter.
2459 *[\\\"\#\$\&\'\`$am_lf]*)
2460 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2464 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2467 # Do 'set' in a subshell so we don't clobber the current shell's
2468 # arguments. Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2474 for am_try in 1 2; do
2475 echo "timestamp, slept: $am_has_slept" > conftest.file
2476 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2477 if test "$*" = "X"; then
2479 set X `ls -t "$srcdir/configure" conftest.file`
2481 if test "$*" != "X $srcdir/configure conftest.file" \
2482 && test "$*" != "X conftest.file $srcdir/configure"; then
2484 # If neither matched, then we have a broken ls. This can happen
2485 # if, for instance, CONFIG_SHELL is bash and it inherits a
2486 # broken ls alias from the environment. This has actually
2487 # happened. Such a system could not be considered "sane".
2488 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2489 alias in your environment" "$LINENO" 5
2491 if test "$2" = conftest.file || test $am_try -eq 2; then
2498 test "$2" = conftest.file
2504 as_fn_error $? "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 # If we didn't sleep, we still need to ensure time stamps of config.status and
2510 # generated files are strictly newer.
2512 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2519 test "$program_prefix" != NONE &&
2520 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2521 # Use a double $ so make ignores it.
2522 test "$program_suffix" != NONE &&
2523 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2524 # Double any \ or $.
2525 # By default was `s,x,x', remove it if useless.
2526 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2527 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529 # expand $ac_aux_dir to an absolute path
2530 am_aux_dir=`cd $ac_aux_dir && pwd`
2532 if test x"${MISSING+set}" != xset; then
2535 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540 # Use eval to expand $SHELL
2541 if eval "$MISSING --is-lightweight"; then
2542 am_missing_run="$MISSING "
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2546 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2549 if test x"${install_sh}" != xset; then
2552 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 install_sh="\${SHELL} $am_aux_dir/install-sh"
2558 # Installed binaries are usually stripped using 'strip' when the user
2559 # run "make install-strip". However 'strip' might not be the right
2560 # tool to use in cross-compilation environments, therefore Automake
2561 # will honor the 'STRIP' environment variable to overrule this program.
2562 if test "$cross_compiling" != no; then
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}strip; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_STRIP+:} false; then :
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$STRIP"; then
2572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 STRIP=$ac_cv_prog_STRIP
2592 if test -n "$STRIP"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2594 $as_echo "$STRIP" >&6; }
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2602 if test -z "$ac_cv_prog_STRIP"; then
2604 # Extract the first word of "strip", so it can be a program name with args.
2605 set dummy strip; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$ac_ct_STRIP"; then
2612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_STRIP="strip"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2632 if test -n "$ac_ct_STRIP"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2634 $as_echo "$ac_ct_STRIP" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2640 if test "x$ac_ct_STRIP" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2652 STRIP="$ac_cv_prog_STRIP"
2656 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2659 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2660 if test -z "$MKDIR_P"; then
2661 if ${ac_cv_path_mkdir+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668 test -z "$as_dir" && as_dir=.
2669 for ac_prog in mkdir gmkdir; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2672 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2673 'mkdir (GNU coreutils) '* | \
2674 'mkdir (coreutils) '* | \
2675 'mkdir (fileutils) '4.1*)
2676 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2686 test -d ./--version && rmdir ./--version
2687 if test "${ac_cv_path_mkdir+set}" = set; then
2688 MKDIR_P="$ac_cv_path_mkdir -p"
2690 # As a last resort, use the slow shell script. Don't cache a
2691 # value for MKDIR_P within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the value is a relative name.
2694 MKDIR_P="$ac_install_sh -d"
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2698 $as_echo "$MKDIR_P" >&6; }
2700 for ac_prog in gawk mawk nawk awk
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_AWK+:} false; then :
2707 $as_echo_n "(cached) " >&6
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 if test -n "$AWK"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2739 test -n "$AWK" && break
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2745 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2746 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2747 $as_echo_n "(cached) " >&6
2749 cat >conftest.make <<\_ACEOF
2752 @echo '@@@%%%=$(MAKE)=@@@%%%'
2754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2757 eval ac_cv_prog_make_${ac_make}_set=yes;;
2759 eval ac_cv_prog_make_${ac_make}_set=no;;
2763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 SET_MAKE="MAKE=${MAKE-make}"
2773 rm -rf .tst 2>/dev/null
2774 mkdir .tst 2>/dev/null
2775 if test -d .tst; then
2780 rmdir .tst 2>/dev/null
2782 # Check whether --enable-silent-rules was given.
2783 if test "${enable_silent_rules+set}" = set; then :
2784 enableval=$enable_silent_rules;
2787 case $enable_silent_rules in # (((
2788 yes) AM_DEFAULT_VERBOSITY=0;;
2789 no) AM_DEFAULT_VERBOSITY=1;;
2790 *) AM_DEFAULT_VERBOSITY=1;;
2792 am_make=${MAKE-make}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2794 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2795 if ${am_cv_make_support_nested_variables+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if $as_echo 'TRUE=$(BAR$(V))
2804 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2805 am_cv_make_support_nested_variables=yes
2807 am_cv_make_support_nested_variables=no
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2811 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2812 if test $am_cv_make_support_nested_variables = yes; then
2814 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2816 AM_V=$AM_DEFAULT_VERBOSITY
2817 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2823 # is not polluted with repeated "-I."
2824 am__isrc=' -I$(srcdir)'
2825 # test to see if srcdir already configured
2826 if test -f $srcdir/config.status; then
2827 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2831 # test whether we have cygpath
2832 if test -z "$CYGPATH_W"; then
2833 if (cygpath --version) >/dev/null 2>/dev/null; then
2834 CYGPATH_W='cygpath -w'
2841 # Define the identity of the package.
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE "$PACKAGE"
2851 cat >>confdefs.h <<_ACEOF
2852 #define VERSION "$VERSION"
2855 # Some tools Automake needs.
2857 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2860 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2863 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2866 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2869 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871 # For better backward compatibility. To be removed once Automake 1.9.x
2872 # dies out for good. For more background, see:
2873 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2874 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2875 mkdir_p='$(MKDIR_P)'
2877 # We need awk for the "check" target. The system "awk" is bad on
2879 # Always define AMTAR for backward compatibility. Yes, it's still used
2880 # in the wild :-( We should find a proper way to deprecate it ...
2884 # We'll loop over all known methods to create a tar archive until one works.
2885 _am_tools='gnutar pax cpio none'
2887 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2894 # POSIX will say in a future version that running "rm -f" with no argument
2895 # is OK; and we want to be able to make that assumption in our Makefile
2896 # recipes. So use an aggressive probe to check that the usage we want is
2897 # actually supported "in the wild" to an acceptable degree.
2898 # See automake bug#10828.
2899 # To make any issue more visible, cause the running configure to be aborted
2900 # by default if the 'rm' program in use doesn't match our expectations; the
2901 # user can still override this though.
2902 if rm -f && rm -fr && rm -rf; then : OK; else
2906 Your 'rm' program seems unable to run without file operands specified
2907 on the command line, even when the '-f' option is present. This is contrary
2908 to the behaviour of most rm programs out there, and not conforming with
2909 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2911 Please tell bug-automake@gnu.org about your system, including the value
2912 of your $PATH and any error possibly output before this message. This
2913 can help us improve future automake versions.
2916 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2917 echo 'Configuration will proceed anyway, since you have set the' >&2
2918 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2922 Aborting the configuration process, to ensure you take notice of the issue.
2924 You can download and install GNU coreutils to get an 'rm' implementation
2925 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2927 If you want to complete the configuration process using your problematic
2928 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2929 to "yes", and re-run configure.
2932 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2935 DEPDIR="${am__leading_dot}deps"
2937 ac_config_commands="$ac_config_commands depfiles"
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2943 @echo this is the am__doit target
2946 # If we don't find an include directive, just comment out the code.
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # Ignore all kinds of additional output from 'make'.
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964 echo '.include "confinc"' > confmf
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=.include
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976 $as_echo "$_am_result" >&6; }
2977 rm -f confinc confmf
2979 # Check whether --enable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then :
2981 enableval=$enable_dependency_tracking;
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2989 if test "x$enable_dependency_tracking" != xno; then
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3042 if test -z "$ac_cv_prog_CC"; then
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045 set dummy gcc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CC="gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3080 if test "x$ac_ct_CC" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_CC="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3136 if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl.exe
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$CC" && break
3236 if test -z "$CC"; then
3238 for ac_prog in cl.exe
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_CC="$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3277 test -n "$ac_ct_CC" && break
3280 if test "x$ac_ct_CC" = x; then
3283 case $cross_compiling:$ac_tool_warned in
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned=yes ;;
3296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details" "$LINENO" 5; }
3301 # Provide some information about the compiler.
3302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3305 for ac_option in --version -v -V -qversion; do
3306 { { ac_try="$ac_compiler $ac_option >&5"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315 if test -s conftest.err; then
3317 ... rest of stderr output deleted ...
3318 10q' conftest.err >conftest.er1
3319 cat conftest.er1 >&5
3321 rm -f conftest.er1 conftest.err
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3337 ac_clean_files_save=$ac_clean_files
3338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339 # Try to create an executable without -o first, disregard a.out.
3340 # It will help us diagnose broken compilers, and finding out an intuition
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346 # The possible output files:
3347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3350 for ac_file in $ac_files
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3359 if { { ac_try="$ac_link_default"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link_default") 2>&5
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3375 for ac_file in $ac_files ''
3377 test -f "$ac_file" || continue
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3382 # We found the default executable, but exeext='' is most
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3400 test "$ac_cv_exeext" = no && ac_cv_exeext=
3405 if test -z "$ac_file"; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error 77 "C compiler cannot create executables
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422 $as_echo "$ac_file" >&6; }
3423 ac_exeext=$ac_cv_exeext
3425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3426 ac_clean_files=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428 $as_echo_n "checking for suffix of executables... " >&6; }
3429 if { { ac_try="$ac_link"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3442 # work properly (i.e., refer to `conftest.exe'), while it won't with
3444 for ac_file in conftest.exe conftest conftest.*; do
3445 test -f "$ac_file" || continue
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details" "$LINENO" 5; }
3459 rm -f conftest conftest$ac_cv_exeext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3472 FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
3479 ac_clean_files="$ac_clean_files conftest.out"
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483 $as_echo_n "checking whether we are cross compiling... " >&6; }
3484 if test "$cross_compiling" != yes; then
3485 { { ac_try="$ac_link"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link") 2>&5
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 if { ac_try='./conftest$ac_cv_exeext'
3497 { { case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_try") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; }; then
3509 if test "$cross_compiling" = maybe; then
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot run C compiled programs.
3515 If you meant to cross compile, use \`--host'.
3516 See \`config.log' for more details" "$LINENO" 5; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521 $as_echo "$cross_compiling" >&6; }
3523 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3524 ac_clean_files=$ac_clean_files_save
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526 $as_echo_n "checking for suffix of object files... " >&6; }
3527 if ${ac_cv_objext+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 rm -f conftest.o conftest.obj
3542 if { { ac_try="$ac_compile"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compile") 2>&5
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 for ac_file in conftest.o conftest.obj conftest.*; do
3554 test -f "$ac_file" || continue;
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of object files: cannot compile
3568 See \`config.log' for more details" "$LINENO" 5; }
3570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573 $as_echo "$ac_cv_objext" >&6; }
3574 OBJEXT=$ac_cv_objext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578 if ${ac_cv_c_compiler_gnu+:} false; then :
3579 $as_echo_n "(cached) " >&6
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3595 if ac_fn_c_try_compile "$LINENO"; then :
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606 if test $ac_compiler_gnu = yes; then
3611 ac_test_CFLAGS=${CFLAGS+set}
3612 ac_save_CFLAGS=$CFLAGS
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3615 if ${ac_cv_prog_cc_g+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 if ac_fn_c_try_compile "$LINENO"; then :
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675 $as_echo "$ac_cv_prog_cc_g" >&6; }
3676 if test "$ac_test_CFLAGS" = set; then
3677 CFLAGS=$ac_save_CFLAGS
3678 elif test $ac_cv_prog_cc_g = yes; then
3679 if test "$GCC" = yes; then
3685 if test "$GCC" = yes; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693 if ${ac_cv_prog_cc_c89+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_cv_prog_cc_c89=no
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3704 struct buf { int x; };
3705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706 static char *e (p, i)
3712 static char *f (char * (*g) (char **, int), char **p, ...)
3717 s = g (p, va_arg (v,int));
3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3723 function prototypes and stuff, but not '\xHH' hex character constants.
3724 These don't provoke an error unfortunately, instead are silently treated
3725 as 'x'. The following induces an error, until -std is added to get
3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3727 array size at least. It's necessary to write '\x00'==0 to get something
3728 that's true only with -std. */
3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732 inside strings and character constants. */
3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3736 int test (int i, double x);
3737 struct s1 {int (*f) (int a);};
3738 struct s2 {int (*f) (double a);};
3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_c89=$ac_arg
3757 rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c89" != "xno" && break
3760 rm -f conftest.$ac_ext
3765 case "x$ac_cv_prog_cc_c89" in
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3773 CC="$CC $ac_cv_prog_cc_c89"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3777 if test "x$ac_cv_prog_cc_c89" != xno; then :
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3793 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3794 if ${am_cv_prog_cc_c_o+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 # Make sure it works both with $CC and with simple cc.
3809 # Following AC_PROG_CC_C_O, we do the test twice because some
3810 # compilers refuse to overwrite an existing .o file with -o,
3811 # though they will create one.
3812 am_cv_prog_cc_c_o=yes
3814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } \
3819 && test -f conftest2.$ac_objext; then
3822 am_cv_prog_cc_c_o=no
3826 rm -f core conftest*
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3830 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3831 if test "$am_cv_prog_cc_c_o" != yes; then
3832 # Losing compiler, so override with the script.
3833 # FIXME: It is wrong to rewrite CC.
3834 # But if we don't then we get into trouble of one sort or another.
3835 # A longer-term fix would be to have automake use am__CC in this case,
3836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3837 CC="$am_aux_dir/compile $CC"
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 depcc="$CC" am_compiler_list=
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3849 $as_echo_n "checking dependency style of $depcc... " >&6; }
3850 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3854 # We make a subdir and do the tests there. Otherwise we can end up
3855 # making bogus files that we don't know about and never remove. For
3856 # instance it was reported that on HP-UX the gcc test will end up
3857 # making a dummy file named 'D' -- because '-MD' means "put the output
3861 # Copy depcomp to subdir because otherwise we won't find it if we're
3862 # using a relative directory.
3863 cp "$am_depcomp" conftest.dir
3865 # We will build objects and dependencies in a subdirectory because
3866 # it helps to detect inapplicable dependency modes. For instance
3867 # both Tru64's cc and ICC support -MD to output dependencies as a
3868 # side effect of compilation, but ICC will put the dependencies in
3869 # the current directory while Tru64 will put them in the object
3873 am_cv_CC_dependencies_compiler_type=none
3874 if test "$am_compiler_list" = ""; then
3875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878 case " $depcc " in #(
3879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3882 for depmode in $am_compiler_list; do
3883 # Setup a source with many dependencies, because some compilers
3884 # like to wrap large dependency lists on column 80 (with \), and
3885 # we should not choose a depcomp mode which is confused by this.
3887 # We need to recreate these files for each test, as the compiler may
3888 # overwrite some of them when testing with obscure command lines.
3889 # This happens at least with the AIX C compiler.
3891 for i in 1 2 3 4 5 6; do
3892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3894 # Solaris 10 /bin/sh.
3895 echo '/* dummy */' > sub/conftst$i.h
3897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3900 # mode. It turns out that the SunPro C++ compiler does not properly
3901 # handle '-M -o', and we need to detect this. Also, some Intel
3902 # versions had trouble with output in subdirs.
3903 am__obj=sub/conftest.${OBJEXT-o}
3904 am__minus_obj="-o $am__obj"
3907 # This depmode causes a compiler race in universal mode.
3908 test "$am__universal" = false || continue
3911 # After this tag, mechanisms are not by side-effect, so they'll
3912 # only be used when explicitly requested.
3913 if test "x$enable_dependency_tracking" = xyes; then
3919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3920 # This compiler won't grok '-c -o', but also, the minuso test has
3921 # not run yet. These depmodes are late enough in the game, and
3922 # so weak that their functioning should not be impacted.
3923 am__obj=conftest.${OBJEXT-o}
3928 if depmode=$depmode \
3929 source=sub/conftest.c object=$am__obj \
3930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3932 >/dev/null 2>conftest.err &&
3933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937 # icc doesn't choke on unknown options, it will just issue warnings
3938 # or remarks (even with -Werror). So we grep stderr for any message
3939 # that says an option was ignored or not supported.
3940 # When given -MP, icc 7.0 and 7.1 complain thusly:
3941 # icc: Command line warning: ignoring option '-M'; no argument required
3942 # The diagnosis changed in icc 8.0:
3943 # icc: Command line remark: option '-MP' not supported
3944 if (grep 'ignoring option' conftest.err ||
3945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946 am_cv_CC_dependencies_compiler_type=$depmode
3955 am_cv_CC_dependencies_compiler_type=none
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3960 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3961 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3964 test "x$enable_dependency_tracking" != xno \
3965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_FALSE='#'
3969 am__fastdepCC_TRUE='#'
3970 am__fastdepCC_FALSE=
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in ar lib "link -lib"
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_AR+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 if test -n "$AR"; then
3986 ac_cv_prog_AR="$AR" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$AR"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4008 $as_echo "$AR" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4015 test -n "$AR" && break
4018 if test -z "$AR"; then
4020 for ac_prog in ar lib "link -lib"
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 if test -n "$ac_ct_AR"; then
4030 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_ac_ct_AR="$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4050 if test -n "$ac_ct_AR"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4052 $as_echo "$ac_ct_AR" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4059 test -n "$ac_ct_AR" && break
4062 if test "x$ac_ct_AR" = x; then
4065 case $cross_compiling:$ac_tool_warned in
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4078 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4079 if ${am_cv_ar_interface+:} false; then :
4080 $as_echo_n "(cached) " >&6
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 am_cv_ar_interface=ar
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 int some_variable = 0;
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4096 (eval $am_ar_try) 2>&5
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }
4100 if test "$ac_status" -eq 0; then
4101 am_cv_ar_interface=ar
4103 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4105 (eval $am_ar_try) 2>&5
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }
4109 if test "$ac_status" -eq 0; then
4110 am_cv_ar_interface=lib
4112 am_cv_ar_interface=unknown
4115 rm -f conftest.lib libconftest.a
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4127 $as_echo "$am_cv_ar_interface" >&6; }
4129 case $am_cv_ar_interface in
4133 # Microsoft lib, so override with the ar-lib wrapper script.
4134 # FIXME: It is wrong to rewrite AR.
4135 # But if we don't then we get into trouble of one sort or another.
4136 # A longer-term fix would be to have automake use am__AR in this case,
4137 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4139 AR="$am_aux_dir/ar-lib $AR"
4142 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4147 # OpenFst does not throw exceptions, so we do not generate exception handling
4148 # code. However, users are free to re-enable exception handling.
4149 # OpenFst assumes char is unsigned; -fsigned-char is likely unsafe.
4150 CPPFLAGS="$CPPFLAGS -fno-exceptions -funsigned-char"
4151 CXXFLAGS="$CXXFLAGS -std=c++11"
4154 ac_cpp='$CXXCPP $CPPFLAGS'
4155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4158 if test -z "$CXX"; then
4159 if test -n "$CCC"; then
4162 if test -n "$ac_tool_prefix"; then
4163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_CXX+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 if test -n "$CXX"; then
4173 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 if test -n "$CXX"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4195 $as_echo "$CXX" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4202 test -n "$CXX" && break
4205 if test -z "$CXX"; then
4207 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4209 # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$ac_ct_CXX"; then
4217 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_ac_ct_CXX="$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4237 if test -n "$ac_ct_CXX"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4239 $as_echo "$ac_ct_CXX" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4246 test -n "$ac_ct_CXX" && break
4249 if test "x$ac_ct_CXX" = x; then
4252 case $cross_compiling:$ac_tool_warned in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4264 # Provide some information about the compiler.
4265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4268 for ac_option in --version -v -V -qversion; do
4269 { { ac_try="$ac_compiler $ac_option >&5"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4278 if test -s conftest.err; then
4280 ... rest of stderr output deleted ...
4281 10q' conftest.err >conftest.er1
4282 cat conftest.er1 >&5
4284 rm -f conftest.er1 conftest.err
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4291 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4318 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4324 ac_test_CXXFLAGS=${CXXFLAGS+set}
4325 ac_save_CXXFLAGS=$CXXFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4327 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4328 if ${ac_cv_prog_cxx_g+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4332 ac_cxx_werror_flag=yes
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4346 if ac_fn_cxx_try_compile "$LINENO"; then :
4347 ac_cv_prog_cxx_g=yes
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 if ac_fn_cxx_try_compile "$LINENO"; then :
4378 ac_cv_prog_cxx_g=yes
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4388 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4389 if test "$ac_test_CXXFLAGS" = set; then
4390 CXXFLAGS=$ac_save_CXXFLAGS
4391 elif test $ac_cv_prog_cxx_g = yes; then
4392 if test "$GXX" = yes; then
4398 if test "$GXX" = yes; then
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410 depcc="$CXX" am_compiler_list=
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 $as_echo_n "checking dependency style of $depcc... " >&6; }
4414 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418 # We make a subdir and do the tests there. Otherwise we can end up
4419 # making bogus files that we don't know about and never remove. For
4420 # instance it was reported that on HP-UX the gcc test will end up
4421 # making a dummy file named 'D' -- because '-MD' means "put the output
4425 # Copy depcomp to subdir because otherwise we won't find it if we're
4426 # using a relative directory.
4427 cp "$am_depcomp" conftest.dir
4429 # We will build objects and dependencies in a subdirectory because
4430 # it helps to detect inapplicable dependency modes. For instance
4431 # both Tru64's cc and ICC support -MD to output dependencies as a
4432 # side effect of compilation, but ICC will put the dependencies in
4433 # the current directory while Tru64 will put them in the object
4437 am_cv_CXX_dependencies_compiler_type=none
4438 if test "$am_compiler_list" = ""; then
4439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442 case " $depcc " in #(
4443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4446 for depmode in $am_compiler_list; do
4447 # Setup a source with many dependencies, because some compilers
4448 # like to wrap large dependency lists on column 80 (with \), and
4449 # we should not choose a depcomp mode which is confused by this.
4451 # We need to recreate these files for each test, as the compiler may
4452 # overwrite some of them when testing with obscure command lines.
4453 # This happens at least with the AIX C compiler.
4455 for i in 1 2 3 4 5 6; do
4456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4458 # Solaris 10 /bin/sh.
4459 echo '/* dummy */' > sub/conftst$i.h
4461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4463 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4464 # mode. It turns out that the SunPro C++ compiler does not properly
4465 # handle '-M -o', and we need to detect this. Also, some Intel
4466 # versions had trouble with output in subdirs.
4467 am__obj=sub/conftest.${OBJEXT-o}
4468 am__minus_obj="-o $am__obj"
4471 # This depmode causes a compiler race in universal mode.
4472 test "$am__universal" = false || continue
4475 # After this tag, mechanisms are not by side-effect, so they'll
4476 # only be used when explicitly requested.
4477 if test "x$enable_dependency_tracking" = xyes; then
4483 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484 # This compiler won't grok '-c -o', but also, the minuso test has
4485 # not run yet. These depmodes are late enough in the game, and
4486 # so weak that their functioning should not be impacted.
4487 am__obj=conftest.${OBJEXT-o}
4492 if depmode=$depmode \
4493 source=sub/conftest.c object=$am__obj \
4494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496 >/dev/null 2>conftest.err &&
4497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501 # icc doesn't choke on unknown options, it will just issue warnings
4502 # or remarks (even with -Werror). So we grep stderr for any message
4503 # that says an option was ignored or not supported.
4504 # When given -MP, icc 7.0 and 7.1 complain thusly:
4505 # icc: Command line warning: ignoring option '-M'; no argument required
4506 # The diagnosis changed in icc 8.0:
4507 # icc: Command line remark: option '-MP' not supported
4508 if (grep 'ignoring option' conftest.err ||
4509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510 am_cv_CXX_dependencies_compiler_type=$depmode
4519 am_cv_CXX_dependencies_compiler_type=none
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4524 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4525 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4528 test "x$enable_dependency_tracking" != xno \
4529 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4530 am__fastdepCXX_TRUE=
4531 am__fastdepCXX_FALSE='#'
4533 am__fastdepCXX_TRUE='#'
4534 am__fastdepCXX_FALSE=
4538 # Check whether --enable-static was given.
4539 if test "${enable_static+set}" = set; then :
4540 enableval=$enable_static; p=${PACKAGE-default}
4542 yes) enable_static=yes ;;
4543 no) enable_static=no ;;
4546 # Look at the argument we got. We use all the common list separators.
4547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4548 for pkg in $enableval; do
4550 if test "X$pkg" = "X$p"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4577 macro_version='2.4.2'
4578 macro_revision='1.3337'
4592 ltmain="$ac_aux_dir/ltmain.sh"
4594 # Make sure we can run config.sub.
4595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if ${ac_cv_build+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613 $as_echo "$ac_cv_build" >&6; }
4614 case $ac_cv_build in
4616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619 ac_save_IFS=$IFS; IFS='-'
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633 $as_echo_n "checking host system type... " >&6; }
4634 if ${ac_cv_host+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 if test "x$host_alias" = x; then
4638 ac_cv_host=$ac_cv_build
4640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646 $as_echo "$ac_cv_host" >&6; }
4649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4652 ac_save_IFS=$IFS; IFS='-'
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4665 # Backslashify metacharacters that are still active within
4666 # double-quoted strings.
4667 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4669 # Same as above, but do not quote variable references.
4670 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4672 # Sed substitution to delay expansion of an escaped shell variable in a
4673 # double_quote_subst'ed string.
4674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4676 # Sed substitution to delay expansion of an escaped single quote.
4677 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4679 # Sed substitution to avoid accidental globbing in evaled expressions
4680 no_glob_subst='s/\*/\\\*/g'
4682 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4683 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4687 $as_echo_n "checking how to print strings... " >&6; }
4688 # Test print first, because it will be a builtin if present.
4689 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4690 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4692 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4695 # Use this function as a fallback that always works.
4696 func_fallback_echo ()
4698 eval 'cat <<_LTECHO_EOF
4702 ECHO='func_fallback_echo'
4705 # func_echo_all arg...
4706 # Invoke $ECHO with all args, space-separated.
4713 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4714 $as_echo "printf" >&6; } ;;
4715 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4716 $as_echo "print -r" >&6; } ;;
4717 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4718 $as_echo "cat" >&6; } ;;
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4735 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4736 if ${ac_cv_path_SED+:} false; then :
4737 $as_echo_n "(cached) " >&6
4739 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4740 for ac_i in 1 2 3 4 5 6 7; do
4741 ac_script="$ac_script$as_nl$ac_script"
4743 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4744 { ac_script=; unset ac_script;}
4745 if test -z "$SED"; then
4746 ac_path_SED_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_prog in sed gsed; do
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4756 as_fn_executable_p "$ac_path_SED" || continue
4757 # Check for GNU ac_path_SED and select it if it is found.
4758 # Check for GNU $ac_path_SED
4759 case `"$ac_path_SED" --version 2>&1` in
4761 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4764 $as_echo_n 0123456789 >"conftest.in"
4767 cat "conftest.in" "conftest.in" >"conftest.tmp"
4768 mv "conftest.tmp" "conftest.in"
4769 cp "conftest.in" "conftest.nl"
4770 $as_echo '' >> "conftest.nl"
4771 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773 as_fn_arith $ac_count + 1 && ac_count=$as_val
4774 if test $ac_count -gt ${ac_path_SED_max-0}; then
4775 # Best one so far, save it but keep looking for a better one
4776 ac_cv_path_SED="$ac_path_SED"
4777 ac_path_SED_max=$ac_count
4779 # 10*(2^10) chars as input seems more than enough
4780 test $ac_count -gt 10 && break
4782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 $ac_path_SED_found && break 3
4790 if test -z "$ac_cv_path_SED"; then
4791 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4799 $as_echo "$ac_cv_path_SED" >&6; }
4800 SED="$ac_cv_path_SED"
4803 test -z "$SED" && SED=sed
4804 Xsed="$SED -e 1s/^X//"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4817 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4818 if ${ac_cv_path_GREP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -z "$GREP"; then
4822 ac_path_GREP_found=false
4823 # Loop through the user's path and test for each of PROGNAME-LIST
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4828 test -z "$as_dir" && as_dir=.
4829 for ac_prog in grep ggrep; do
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4832 as_fn_executable_p "$ac_path_GREP" || continue
4833 # Check for GNU ac_path_GREP and select it if it is found.
4834 # Check for GNU $ac_path_GREP
4835 case `"$ac_path_GREP" --version 2>&1` in
4837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4840 $as_echo_n 0123456789 >"conftest.in"
4843 cat "conftest.in" "conftest.in" >"conftest.tmp"
4844 mv "conftest.tmp" "conftest.in"
4845 cp "conftest.in" "conftest.nl"
4846 $as_echo 'GREP' >> "conftest.nl"
4847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4849 as_fn_arith $ac_count + 1 && ac_count=$as_val
4850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4851 # Best one so far, save it but keep looking for a better one
4852 ac_cv_path_GREP="$ac_path_GREP"
4853 ac_path_GREP_max=$ac_count
4855 # 10*(2^10) chars as input seems more than enough
4856 test $ac_count -gt 10 && break
4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 $ac_path_GREP_found && break 3
4866 if test -z "$ac_cv_path_GREP"; then
4867 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870 ac_cv_path_GREP=$GREP
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4875 $as_echo "$ac_cv_path_GREP" >&6; }
4876 GREP="$ac_cv_path_GREP"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4880 $as_echo_n "checking for egrep... " >&6; }
4881 if ${ac_cv_path_EGREP+:} false; then :
4882 $as_echo_n "(cached) " >&6
4884 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4885 then ac_cv_path_EGREP="$GREP -E"
4887 if test -z "$EGREP"; then
4888 ac_path_EGREP_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894 test -z "$as_dir" && as_dir=.
4895 for ac_prog in egrep; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4898 as_fn_executable_p "$ac_path_EGREP" || continue
4899 # Check for GNU ac_path_EGREP and select it if it is found.
4900 # Check for GNU $ac_path_EGREP
4901 case `"$ac_path_EGREP" --version 2>&1` in
4903 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4906 $as_echo_n 0123456789 >"conftest.in"
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 $as_echo 'EGREP' >> "conftest.nl"
4913 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_EGREP="$ac_path_EGREP"
4919 ac_path_EGREP_max=$ac_count
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 $ac_path_EGREP_found && break 3
4932 if test -z "$ac_cv_path_EGREP"; then
4933 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4936 ac_cv_path_EGREP=$EGREP
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4942 $as_echo "$ac_cv_path_EGREP" >&6; }
4943 EGREP="$ac_cv_path_EGREP"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4947 $as_echo_n "checking for fgrep... " >&6; }
4948 if ${ac_cv_path_FGREP+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4952 then ac_cv_path_FGREP="$GREP -F"
4954 if test -z "$FGREP"; then
4955 ac_path_FGREP_found=false
4956 # Loop through the user's path and test for each of PROGNAME-LIST
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4961 test -z "$as_dir" && as_dir=.
4962 for ac_prog in fgrep; do
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4965 as_fn_executable_p "$ac_path_FGREP" || continue
4966 # Check for GNU ac_path_FGREP and select it if it is found.
4967 # Check for GNU $ac_path_FGREP
4968 case `"$ac_path_FGREP" --version 2>&1` in
4970 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4973 $as_echo_n 0123456789 >"conftest.in"
4976 cat "conftest.in" "conftest.in" >"conftest.tmp"
4977 mv "conftest.tmp" "conftest.in"
4978 cp "conftest.in" "conftest.nl"
4979 $as_echo 'FGREP' >> "conftest.nl"
4980 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4982 as_fn_arith $ac_count + 1 && ac_count=$as_val
4983 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4984 # Best one so far, save it but keep looking for a better one
4985 ac_cv_path_FGREP="$ac_path_FGREP"
4986 ac_path_FGREP_max=$ac_count
4988 # 10*(2^10) chars as input seems more than enough
4989 test $ac_count -gt 10 && break
4991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4994 $ac_path_FGREP_found && break 3
4999 if test -z "$ac_cv_path_FGREP"; then
5000 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003 ac_cv_path_FGREP=$FGREP
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5009 $as_echo "$ac_cv_path_FGREP" >&6; }
5010 FGREP="$ac_cv_path_FGREP"
5013 test -z "$GREP" && GREP=grep
5033 # Check whether --with-gnu-ld was given.
5034 if test "${with_gnu_ld+set}" = set; then :
5035 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5041 if test "$GCC" = yes; then
5042 # Check if gcc -print-prog-name=ld gives a path.
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5044 $as_echo_n "checking for ld used by $CC... " >&6; }
5047 # gcc leaves a trailing carriage return which upsets mingw
5048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5053 # Accept absolute paths.
5055 re_direlt='/[^/][^/]*/\.\./'
5056 # Canonicalize the pathname of ld
5057 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5058 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5059 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5061 test -z "$LD" && LD="$ac_prog"
5064 # If it fails, then pretend we aren't using GCC.
5068 # If it is relative, then search for the first ld in PATH.
5072 elif test "$with_gnu_ld" = yes; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5074 $as_echo_n "checking for GNU ld... " >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5077 $as_echo_n "checking for non-GNU ld... " >&6; }
5079 if ${lt_cv_path_LD+:} false; then :
5080 $as_echo_n "(cached) " >&6
5082 if test -z "$LD"; then
5083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5084 for ac_dir in $PATH; do
5086 test -z "$ac_dir" && ac_dir=.
5087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5088 lt_cv_path_LD="$ac_dir/$ac_prog"
5089 # Check to see if the program is GNU ld. I'd rather use --version,
5090 # but apparently some variants of GNU ld only accept -v.
5091 # Break only if it was the GNU/non-GNU ld that we prefer.
5092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5093 *GNU* | *'with BFD'*)
5094 test "$with_gnu_ld" != no && break
5097 test "$with_gnu_ld" != yes && break
5104 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5109 if test -n "$LD"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5111 $as_echo "$LD" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5116 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5118 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5119 if ${lt_cv_prog_gnu_ld+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5123 case `$LD -v 2>&1 </dev/null` in
5124 *GNU* | *'with BFD'*)
5125 lt_cv_prog_gnu_ld=yes
5128 lt_cv_prog_gnu_ld=no
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5133 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5134 with_gnu_ld=$lt_cv_prog_gnu_ld
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5145 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5146 if ${lt_cv_path_NM+:} false; then :
5147 $as_echo_n "(cached) " >&6
5149 if test -n "$NM"; then
5150 # Let the user override the test.
5153 lt_nm_to_check="${ac_tool_prefix}nm"
5154 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5155 lt_nm_to_check="$lt_nm_to_check nm"
5157 for lt_tmp_nm in $lt_nm_to_check; do
5158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5159 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5161 test -z "$ac_dir" && ac_dir=.
5162 tmp_nm="$ac_dir/$lt_tmp_nm"
5163 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5164 # Check to see if the nm accepts a BSD-compat flag.
5165 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5166 # nm: unknown option "B" ignored
5167 # Tru64's nm complains that /dev/null is an invalid object file
5168 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5169 */dev/null* | *'Invalid file or object type'*)
5170 lt_cv_path_NM="$tmp_nm -B"
5174 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5176 lt_cv_path_NM="$tmp_nm -p"
5180 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5181 continue # so that we can try to find one that supports BSD flags
5190 : ${lt_cv_path_NM=no}
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5194 $as_echo "$lt_cv_path_NM" >&6; }
5195 if test "$lt_cv_path_NM" != "no"; then
5198 # Didn't find any BSD compatible name lister, look for dumpbin.
5199 if test -n "$DUMPBIN"; then :
5200 # Let the user override the test.
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in dumpbin "link -dump"
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_DUMPBIN+:} false; then :
5210 $as_echo_n "(cached) " >&6
5212 if test -n "$DUMPBIN"; then
5213 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 DUMPBIN=$ac_cv_prog_DUMPBIN
5233 if test -n "$DUMPBIN"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5235 $as_echo "$DUMPBIN" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 test -n "$DUMPBIN" && break
5245 if test -z "$DUMPBIN"; then
5246 ac_ct_DUMPBIN=$DUMPBIN
5247 for ac_prog in dumpbin "link -dump"
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -n "$ac_ct_DUMPBIN"; then
5257 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5277 if test -n "$ac_ct_DUMPBIN"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5279 $as_echo "$ac_ct_DUMPBIN" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 test -n "$ac_ct_DUMPBIN" && break
5289 if test "x$ac_ct_DUMPBIN" = x; then
5292 case $cross_compiling:$ac_tool_warned in
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5298 DUMPBIN=$ac_ct_DUMPBIN
5302 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5304 DUMPBIN="$DUMPBIN -symbols"
5312 if test "$DUMPBIN" != ":"; then
5316 test -z "$NM" && NM=nm
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5324 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5325 if ${lt_cv_nm_interface+:} false; then :
5326 $as_echo_n "(cached) " >&6
5328 lt_cv_nm_interface="BSD nm"
5329 echo "int some_variable = 0;" > conftest.$ac_ext
5330 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5331 (eval "$ac_compile" 2>conftest.err)
5332 cat conftest.err >&5
5333 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5334 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5335 cat conftest.err >&5
5336 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5337 cat conftest.out >&5
5338 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5339 lt_cv_nm_interface="MS dumpbin"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5344 $as_echo "$lt_cv_nm_interface" >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5347 $as_echo_n "checking whether ln -s works... " >&6; }
5349 if test "$LN_S" = "ln -s"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5354 $as_echo "no, using $LN_S" >&6; }
5357 # find the maximum length of command line arguments
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5359 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5360 if ${lt_cv_sys_max_cmd_len+:} false; then :
5361 $as_echo_n "(cached) " >&6
5368 # On DJGPP, this test can blow up pretty badly due to problems in libc
5369 # (any single argument exceeding 2000 bytes causes a buffer overrun
5370 # during glob expansion). Even if it were fixed, the result of this
5371 # check would be larger than it should be.
5372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 # Under GNU Hurd, this test is not required because there is
5377 # no limit to the length of command line arguments.
5378 # Libtool will interpret -1 as no limit whatsoever
5379 lt_cv_sys_max_cmd_len=-1;
5382 cygwin* | mingw* | cegcc*)
5383 # On Win9x/ME, this test blows up -- it succeeds, but takes
5384 # about 5 minutes as the teststring grows exponentially.
5385 # Worse, since 9x/ME are not pre-emptively multitasking,
5386 # you end up with a "frozen" computer, even though with patience
5387 # the test eventually succeeds (with a max line length of 256k).
5388 # Instead, let's just punt: use the minimum linelength reported by
5389 # all of the supported platforms: 8192 (on NT/2K/XP).
5390 lt_cv_sys_max_cmd_len=8192;
5394 # On MiNT this can take a long time and run out of memory.
5395 lt_cv_sys_max_cmd_len=8192;
5399 # On AmigaOS with pdksh, this test takes hours, literally.
5400 # So we just punt and use a minimum line length of 8192.
5401 lt_cv_sys_max_cmd_len=8192;
5404 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5405 # This has been around since 386BSD, at least. Likely further.
5406 if test -x /sbin/sysctl; then
5407 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5408 elif test -x /usr/sbin/sysctl; then
5409 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5411 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5413 # And add a safety zone
5414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5420 lt_cv_sys_max_cmd_len=196608
5424 # The test takes a long time on OS/2.
5425 lt_cv_sys_max_cmd_len=8192
5429 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5430 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5431 # nice to cause kernel panics so lets avoid the loop below.
5432 # First set a reasonable default.
5433 lt_cv_sys_max_cmd_len=16384
5435 if test -x /sbin/sysconfig; then
5436 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5437 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5442 lt_cv_sys_max_cmd_len=102400
5444 sysv5* | sco5v6* | sysv4.2uw2*)
5445 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5446 if test -n "$kargmax"; then
5447 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5449 lt_cv_sys_max_cmd_len=32768
5453 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5454 if test -n "$lt_cv_sys_max_cmd_len" && \
5455 test undefined != "$lt_cv_sys_max_cmd_len"; then
5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5459 # Make teststring a little bigger before we do anything with it.
5460 # a 1K string should be a reasonable start.
5461 for i in 1 2 3 4 5 6 7 8 ; do
5462 teststring=$teststring$teststring
5464 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465 # If test is not a shell built-in, we'll probably end up computing a
5466 # maximum length that is only half of the actual maximum length, but
5468 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5469 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5470 test $i != 17 # 1/2 MB should be enough
5473 teststring=$teststring$teststring
5475 # Only check the string length outside the loop.
5476 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5478 # Add a significant safety factor because C++ compilers can tack on
5479 # massive amounts of additional arguments before passing them to the
5480 # linker. It appears as though 1/2 is a usable value.
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5488 if test -n $lt_cv_sys_max_cmd_len ; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5490 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5493 $as_echo "none" >&6; }
5495 max_cmd_len=$lt_cv_sys_max_cmd_len
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5507 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5508 # Try some XSI features
5511 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5513 && eval 'test $(( 1 + 1 )) -eq 2 \
5514 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5517 $as_echo "$xsi_shell" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5521 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5523 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5525 && lt_shell_append=yes
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5527 $as_echo "$lt_shell_append" >&6; }
5530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5540 # test EBCDIC or ASCII
5541 case `echo X|tr X '\101'` in
5542 A) # ASCII based system
5543 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5544 lt_SP2NL='tr \040 \012'
5545 lt_NL2SP='tr \015\012 \040\040'
5547 *) # EBCDIC based system
5548 lt_SP2NL='tr \100 \n'
5549 lt_NL2SP='tr \r\n \100\100'
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5562 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5563 if ${lt_cv_to_host_file_cmd+:} false; then :
5564 $as_echo_n "(cached) " >&6
5569 *-*-mingw* ) # actually msys
5570 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5573 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5575 * ) # otherwise, assume *nix
5576 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5582 *-*-mingw* ) # actually msys
5583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5586 lt_cv_to_host_file_cmd=func_convert_file_noop
5588 * ) # otherwise, assume *nix
5589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5593 * ) # unhandled hosts (and "normal" native builds)
5594 lt_cv_to_host_file_cmd=func_convert_file_noop
5600 to_host_file_cmd=$lt_cv_to_host_file_cmd
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5602 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5609 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5610 if ${lt_cv_to_tool_file_cmd+:} false; then :
5611 $as_echo_n "(cached) " >&6
5613 #assume ordinary cross tools, or native build.
5614 lt_cv_to_tool_file_cmd=func_convert_file_noop
5618 *-*-mingw* ) # actually msys
5619 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5627 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5629 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5636 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5637 if ${lt_cv_ld_reload_flag+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 lt_cv_ld_reload_flag='-r'
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5643 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5644 reload_flag=$lt_cv_ld_reload_flag
5645 case $reload_flag in
5647 *) reload_flag=" $reload_flag" ;;
5649 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5651 cygwin* | mingw* | pw32* | cegcc*)
5652 if test "$GCC" != yes; then
5657 if test "$GCC" = yes; then
5658 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5660 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_OBJDUMP+:} false; then :
5679 $as_echo_n "(cached) " >&6
5681 if test -n "$OBJDUMP"; then
5682 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 OBJDUMP=$ac_cv_prog_OBJDUMP
5702 if test -n "$OBJDUMP"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5704 $as_echo "$OBJDUMP" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5712 if test -z "$ac_cv_prog_OBJDUMP"; then
5713 ac_ct_OBJDUMP=$OBJDUMP
5714 # Extract the first word of "objdump", so it can be a program name with args.
5715 set dummy objdump; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 if test -n "$ac_ct_OBJDUMP"; then
5722 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5742 if test -n "$ac_ct_OBJDUMP"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5744 $as_echo "$ac_ct_OBJDUMP" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5750 if test "x$ac_ct_OBJDUMP" = x; then
5753 case $cross_compiling:$ac_tool_warned in
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5757 ac_tool_warned=yes ;;
5759 OBJDUMP=$ac_ct_OBJDUMP
5762 OBJDUMP="$ac_cv_prog_OBJDUMP"
5765 test -z "$OBJDUMP" && OBJDUMP=objdump
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5776 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5777 if ${lt_cv_deplibs_check_method+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 lt_cv_file_magic_cmd='$MAGIC_CMD'
5781 lt_cv_file_magic_test_file=
5782 lt_cv_deplibs_check_method='unknown'
5783 # Need to set the preceding variable on all platforms that support
5784 # interlibrary dependencies.
5785 # 'none' -- dependencies not supported.
5786 # `unknown' -- same as none, but documents that we really don't know.
5787 # 'pass_all' -- all dependencies passed with no checks.
5788 # 'test_compile' -- check by making test program.
5789 # 'file_magic [[regex]]' -- check by looking for files in library path
5790 # which responds to the $file_magic_cmd with a given extended regex.
5791 # If you have `file' or equivalent on your system and you're not sure
5792 # whether `pass_all' will *always* work, you probably want this one.
5796 lt_cv_deplibs_check_method=pass_all
5800 lt_cv_deplibs_check_method=pass_all
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5805 lt_cv_file_magic_cmd='/usr/bin/file -L'
5806 lt_cv_file_magic_test_file=/shlib/libc.so
5810 # func_win32_libid is a shell function defined in ltmain.sh
5811 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5812 lt_cv_file_magic_cmd='func_win32_libid'
5816 # Base MSYS/MinGW do not provide the 'file' command needed by
5817 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5818 # unless we find 'file', for example because we are cross-compiling.
5819 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5820 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5822 lt_cv_file_magic_cmd='func_win32_libid'
5824 # Keep this pattern in sync with the one in func_win32_libid.
5825 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5826 lt_cv_file_magic_cmd='$OBJDUMP -f'
5831 # use the weaker test based on 'objdump'. See mingw*.
5832 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5833 lt_cv_file_magic_cmd='$OBJDUMP -f'
5836 darwin* | rhapsody*)
5837 lt_cv_deplibs_check_method=pass_all
5840 freebsd* | dragonfly*)
5841 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5844 # Not sure whether the presence of OpenBSD here was a mistake.
5845 # Let's accept both of them until this is cleared up.
5846 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5847 lt_cv_file_magic_cmd=/usr/bin/file
5848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5852 lt_cv_deplibs_check_method=pass_all
5857 lt_cv_deplibs_check_method=pass_all
5860 hpux10.20* | hpux11*)
5861 lt_cv_file_magic_cmd=/usr/bin/file
5864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5865 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5868 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]'
5869 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5873 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5879 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5883 irix5* | irix6* | nonstopux*)
5885 *-32|*"-32 ") libmagic=32-bit;;
5886 *-n32|*"-n32 ") libmagic=N32;;
5887 *-64|*"-64 ") libmagic=64-bit;;
5888 *) libmagic=never-match;;
5890 lt_cv_deplibs_check_method=pass_all
5893 # This must be glibc/ELF.
5894 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5895 lt_cv_deplibs_check_method=pass_all
5898 netbsd* | netbsdelf*-gnu)
5899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5908 lt_cv_file_magic_cmd=/usr/bin/file
5909 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5913 lt_cv_deplibs_check_method=pass_all
5917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5924 osf3* | osf4* | osf5*)
5925 lt_cv_deplibs_check_method=pass_all
5929 lt_cv_deplibs_check_method=pass_all
5933 lt_cv_deplibs_check_method=pass_all
5936 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5937 lt_cv_deplibs_check_method=pass_all
5941 case $host_vendor in
5943 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]'
5944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5947 lt_cv_deplibs_check_method=pass_all
5950 lt_cv_file_magic_cmd='/bin/file'
5951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5954 lt_cv_file_magic_cmd='/bin/file'
5955 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5956 lt_cv_file_magic_test_file=/lib/libc.so
5959 lt_cv_deplibs_check_method=pass_all
5962 lt_cv_deplibs_check_method=pass_all
5968 lt_cv_deplibs_check_method=pass_all
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5974 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5978 if test "$build" = "$host"; then
5981 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5984 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5990 file_magic_cmd=$lt_cv_file_magic_cmd
5991 deplibs_check_method=$lt_cv_deplibs_check_method
5992 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_DLLTOOL+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 if test -n "$DLLTOOL"; then
6024 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 DLLTOOL=$ac_cv_prog_DLLTOOL
6044 if test -n "$DLLTOOL"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6046 $as_echo "$DLLTOOL" >&6; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6054 if test -z "$ac_cv_prog_DLLTOOL"; then
6055 ac_ct_DLLTOOL=$DLLTOOL
6056 # Extract the first word of "dlltool", so it can be a program name with args.
6057 set dummy dlltool; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$ac_ct_DLLTOOL"; then
6064 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6084 if test -n "$ac_ct_DLLTOOL"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6086 $as_echo "$ac_ct_DLLTOOL" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6092 if test "x$ac_ct_DLLTOOL" = x; then
6095 case $cross_compiling:$ac_tool_warned in
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6101 DLLTOOL=$ac_ct_DLLTOOL
6104 DLLTOOL="$ac_cv_prog_DLLTOOL"
6107 test -z "$DLLTOOL" && DLLTOOL=dlltool
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6119 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6120 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 lt_cv_sharedlib_from_linklib_cmd='unknown'
6126 cygwin* | mingw* | pw32* | cegcc*)
6127 # two different shell functions defined in ltmain.sh
6128 # decide which to use based on capabilities of $DLLTOOL
6129 case `$DLLTOOL --help 2>&1` in
6130 *--identify-strict*)
6131 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6134 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6139 # fallback: assume linklib IS sharedlib
6140 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6146 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6147 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6148 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6156 if test -n "$ac_tool_prefix"; then
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_prog_AR+:} false; then :
6164 $as_echo_n "(cached) " >&6
6166 if test -n "$AR"; then
6167 ac_cv_prog_AR="$AR" # Let the user override the test.
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 if test -n "$AR"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6189 $as_echo "$AR" >&6; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6196 test -n "$AR" && break
6199 if test -z "$AR"; then
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204 set dummy $ac_prog; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6208 $as_echo_n "(cached) " >&6
6210 if test -n "$ac_ct_AR"; then
6211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_AR="$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231 if test -n "$ac_ct_AR"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6233 $as_echo "$ac_ct_AR" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6240 test -n "$ac_ct_AR" && break
6243 if test "x$ac_ct_AR" = x; then
6246 case $cross_compiling:$ac_tool_warned in
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250 ac_tool_warned=yes ;;
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6270 $as_echo_n "checking for archiver @FILE support... " >&6; }
6271 if ${lt_cv_ar_at_file+:} false; then :
6272 $as_echo_n "(cached) " >&6
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6286 if ac_fn_c_try_compile "$LINENO"; then :
6287 echo conftest.$ac_objext > conftest.lst
6288 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6290 (eval $lt_ar_try) 2>&5
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }
6294 if test "$ac_status" -eq 0; then
6295 # Ensure the archiver fails upon bogus file names.
6296 rm -f conftest.$ac_objext libconftest.a
6297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6298 (eval $lt_ar_try) 2>&5
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }
6302 if test "$ac_status" -ne 0; then
6306 rm -f conftest.* libconftest.a
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6313 $as_echo "$lt_cv_ar_at_file" >&6; }
6315 if test "x$lt_cv_ar_at_file" = xno; then
6318 archiver_list_spec=$lt_cv_ar_at_file
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}strip; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_STRIP+:} false; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$STRIP"; then
6336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 STRIP=$ac_cv_prog_STRIP
6356 if test -n "$STRIP"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358 $as_echo "$STRIP" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6366 if test -z "$ac_cv_prog_STRIP"; then
6368 # Extract the first word of "strip", so it can be a program name with args.
6369 set dummy strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$ac_ct_STRIP"; then
6376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_ac_ct_STRIP="strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396 if test -n "$ac_ct_STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398 $as_echo "$ac_ct_STRIP" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 if test "x$ac_ct_STRIP" = x; then
6407 case $cross_compiling:$ac_tool_warned in
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6416 STRIP="$ac_cv_prog_STRIP"
6419 test -z "$STRIP" && STRIP=:
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_RANLIB+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$RANLIB"; then
6435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 RANLIB=$ac_cv_prog_RANLIB
6455 if test -n "$RANLIB"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457 $as_echo "$RANLIB" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6465 if test -z "$ac_cv_prog_RANLIB"; then
6466 ac_ct_RANLIB=$RANLIB
6467 # Extract the first word of "ranlib", so it can be a program name with args.
6468 set dummy ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$ac_ct_RANLIB"; then
6475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_ac_ct_RANLIB="ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495 if test -n "$ac_ct_RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497 $as_echo "$ac_ct_RANLIB" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6503 if test "x$ac_ct_RANLIB" = x; then
6506 case $cross_compiling:$ac_tool_warned in
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6512 RANLIB=$ac_ct_RANLIB
6515 RANLIB="$ac_cv_prog_RANLIB"
6518 test -z "$RANLIB" && RANLIB=:
6525 # Determine commands to create old-style static archives.
6526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6527 old_postinstall_cmds='chmod 644 $oldlib'
6528 old_postuninstall_cmds=
6530 if test -n "$RANLIB"; then
6533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6544 lock_old_archive_extraction=yes ;;
6546 lock_old_archive_extraction=no ;;
6587 # If no C compiler was specified, use CC.
6590 # If no C compiler flags were specified, use CFLAGS.
6591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6593 # Allow CC to be a program name with arguments.
6597 # Check for command to grab the raw symbol name followed by C symbol from nm.
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6600 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6601 $as_echo_n "(cached) " >&6
6604 # These are sane defaults that work on at least a few old systems.
6605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6607 # Character class describing NM global symbol codes.
6608 symcode='[BCDEGRST]'
6610 # Regexp to match symbols that can be accessed directly from C.
6611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6613 # Define system-specific variables.
6618 cygwin* | mingw* | pw32* | cegcc*)
6619 symcode='[ABCDGISTW]'
6622 if test "$host_cpu" = ia64; then
6623 symcode='[ABCDEGRST]'
6627 symcode='[BCDEGRST]'
6630 symcode='[BCDEGQRST]'
6641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6649 # If we're using GNU nm, then use its standard symbol codes.
6650 case `$NM -V 2>&1` in
6651 *GNU* | *'with BFD'*)
6652 symcode='[ABCDGIRSTW]' ;;
6655 # Transform an extracted symbol line into a proper C declaration.
6656 # Some systems (esp. on ia64) link data and code symbols differently,
6657 # so use this general approach.
6658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6660 # Transform an extracted symbol line into symbol name and symbol address
6661 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6662 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'"
6664 # Handle CRLF in mingw tool chain
6668 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6672 # Try without a prefix underscore, then with it.
6673 for ac_symprfx in "" "_"; do
6675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6676 symxfrm="\\1 $ac_symprfx\\2 \\2"
6678 # Write the raw and C identifiers.
6679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6680 # Fake it for dumpbin and say T for any non-static function
6681 # and D for any global variable.
6682 # Also find C++ and __fastcall symbols from MSVC++,
6683 # which start with @ or ?.
6684 lt_cv_sys_global_symbol_pipe="$AWK '"\
6685 " {last_section=section; section=\$ 3};"\
6686 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6687 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688 " \$ 0!~/External *\|/{next};"\
6689 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690 " {if(hide[section]) next};"\
6691 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695 " ' prfx=^$ac_symprfx"
6697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6699 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6701 # Check to see that the pipe works correctly.
6705 cat > conftest.$ac_ext <<_LT_EOF
6710 void nm_test_func(void);
6711 void nm_test_func(void){}
6715 int main(){nm_test_var='a';nm_test_func();return(0);}
6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719 (eval $ac_compile) 2>&5
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; then
6723 # Now try to grab the symbols.
6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6726 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; } && test -s "$nlist"; then
6730 # Try sorting and uniquifying the output.
6731 if sort "$nlist" | uniq > "$nlist"T; then
6732 mv -f "$nlist"T "$nlist"
6737 # Make sure that we snagged all the symbols we need.
6738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6740 cat <<_LT_EOF > conftest.$ac_ext
6741 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6742 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6743 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6744 relocations are performed -- see ld's documentation on pseudo-relocs. */
6745 # define LT_DLSYM_CONST
6746 #elif defined(__osf__)
6747 /* This system does not cope well with relocations in const data. */
6748 # define LT_DLSYM_CONST
6750 # define LT_DLSYM_CONST const
6758 # Now generate the symbol file.
6759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6761 cat <<_LT_EOF >> conftest.$ac_ext
6763 /* The mapping between symbol names and symbols. */
6764 LT_DLSYM_CONST struct {
6768 lt__PROGRAM__LTX_preloaded_symbols[] =
6770 { "@PROGRAM@", (void *) 0 },
6772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6773 cat <<\_LT_EOF >> conftest.$ac_ext
6777 /* This works around a problem in FreeBSD linker */
6778 #ifdef FREEBSD_WORKAROUND
6779 static const void *lt_preloaded_setup() {
6780 return lt__PROGRAM__LTX_preloaded_symbols;
6788 # Now try linking the two files.
6789 mv conftest.$ac_objext conftstm.$ac_objext
6790 lt_globsym_save_LIBS=$LIBS
6791 lt_globsym_save_CFLAGS=$CFLAGS
6792 LIBS="conftstm.$ac_objext"
6793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6795 (eval $ac_link) 2>&5
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6801 LIBS=$lt_globsym_save_LIBS
6802 CFLAGS=$lt_globsym_save_CFLAGS
6804 echo "cannot find nm_test_func in $nlist" >&5
6807 echo "cannot find nm_test_var in $nlist" >&5
6810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6813 echo "$progname: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 rm -rf conftest* conftst*
6818 # Do not use the global_symbol_pipe unless it works.
6819 if test "$pipe_works" = yes; then
6822 lt_cv_sys_global_symbol_pipe=
6828 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6829 lt_cv_sys_global_symbol_to_cdecl=
6831 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6833 $as_echo "failed" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6836 $as_echo "ok" >&6; }
6839 # Response file support.
6840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841 nm_file_list_spec='@'
6842 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6843 nm_file_list_spec='@'
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6873 $as_echo_n "checking for sysroot... " >&6; }
6875 # Check whether --with-sysroot was given.
6876 if test "${with_sysroot+set}" = set; then :
6877 withval=$with_sysroot;
6884 case ${with_sysroot} in #(
6886 if test "$GCC" = yes; then
6887 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6891 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6897 $as_echo "${with_sysroot}" >&6; }
6898 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6903 $as_echo "${lt_sysroot:-no}" >&6; }
6909 # Check whether --enable-libtool-lock was given.
6910 if test "${enable_libtool_lock+set}" = set; then :
6911 enableval=$enable_libtool_lock;
6914 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6916 # Some flags need to be propagated to the compiler or linker for good
6920 # Find out which ABI we are using.
6921 echo 'int i;' > conftest.$ac_ext
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923 (eval $ac_compile) 2>&5
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 case `/usr/bin/file conftest.$ac_objext` in
6939 # Find out which ABI we are using.
6940 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 if test "$lt_cv_prog_gnu_ld" = yes; then
6947 case `/usr/bin/file conftest.$ac_objext` in
6949 LD="${LD-ld} -melf32bsmip"
6952 LD="${LD-ld} -melf32bmipn32"
6955 LD="${LD-ld} -melf64bmip"
6959 case `/usr/bin/file conftest.$ac_objext` in
6975 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6976 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6977 # Find out which ABI we are using.
6978 echo 'int i;' > conftest.$ac_ext
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 case `/usr/bin/file conftest.o` in
6987 x86_64-*kfreebsd*-gnu)
6988 LD="${LD-ld} -m elf_i386_fbsd"
6991 case `/usr/bin/file conftest.o` in
6993 LD="${LD-ld} -m elf32_x86_64"
6996 LD="${LD-ld} -m elf_i386"
7001 LD="${LD-ld} -m elf32lppclinux"
7004 LD="${LD-ld} -m elf32ppclinux"
7007 LD="${LD-ld} -m elf_s390"
7010 LD="${LD-ld} -m elf32_sparc"
7016 x86_64-*kfreebsd*-gnu)
7017 LD="${LD-ld} -m elf_x86_64_fbsd"
7020 LD="${LD-ld} -m elf_x86_64"
7023 LD="${LD-ld} -m elf64lppc"
7026 LD="${LD-ld} -m elf64ppc"
7028 s390*-*linux*|s390*-*tpf*)
7029 LD="${LD-ld} -m elf64_s390"
7032 LD="${LD-ld} -m elf64_sparc"
7042 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7043 SAVE_CFLAGS="$CFLAGS"
7044 CFLAGS="$CFLAGS -belf"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7046 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7047 if ${lt_cv_cc_needs_belf+:} false; then :
7048 $as_echo_n "(cached) " >&6
7051 ac_cpp='$CPP $CPPFLAGS'
7052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 lt_cv_cc_needs_belf=yes
7070 lt_cv_cc_needs_belf=no
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7082 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7083 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7084 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7085 CFLAGS="$SAVE_CFLAGS"
7089 # Find out which ABI we are using.
7090 echo 'int i;' > conftest.$ac_ext
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092 (eval $ac_compile) 2>&5
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; }; then
7096 case `/usr/bin/file conftest.o` in
7098 case $lt_cv_prog_gnu_ld in
7102 LD="${LD-ld} -m elf_x86_64"
7105 LD="${LD-ld} -m elf64_sparc"
7108 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7109 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7126 need_locks="$enable_libtool_lock"
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}mt; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7134 $as_echo_n "(cached) " >&6
7136 if test -n "$MANIFEST_TOOL"; then
7137 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7157 if test -n "$MANIFEST_TOOL"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7159 $as_echo "$MANIFEST_TOOL" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7167 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7168 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7169 # Extract the first word of "mt", so it can be a program name with args.
7170 set dummy mt; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$ac_ct_MANIFEST_TOOL"; then
7177 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7197 if test -n "$ac_ct_MANIFEST_TOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7199 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7205 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7208 case $cross_compiling:$ac_tool_warned in
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7214 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7217 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7220 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7222 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7223 if ${lt_cv_path_mainfest_tool+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 lt_cv_path_mainfest_tool=no
7227 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7228 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7229 cat conftest.err >&5
7230 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7231 lt_cv_path_mainfest_tool=yes
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7236 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7237 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7247 rhapsody* | darwin*)
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$DSYMUTIL"; then
7257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288 ac_ct_DSYMUTIL=$DSYMUTIL
7289 # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_DSYMUTIL"; then
7297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_DSYMUTIL" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 DSYMUTIL=$ac_ct_DSYMUTIL
7337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_NMEDIT+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$NMEDIT"; then
7349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380 ac_ct_NMEDIT=$NMEDIT
7381 # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_NMEDIT"; then
7389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_NMEDIT" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7426 NMEDIT=$ac_ct_NMEDIT
7429 NMEDIT="$ac_cv_prog_NMEDIT"
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_LIPO+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$LIPO"; then
7441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_LIPO"; then
7473 # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 if test -n "$ac_ct_LIPO"; then
7481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_LIPO="lipo"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_LIPO" = x; then
7512 case $cross_compiling:$ac_tool_warned in
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7521 LIPO="$ac_cv_prog_LIPO"
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$OTOOL"; then
7533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7563 if test -z "$ac_cv_prog_OTOOL"; then
7565 # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$ac_ct_OTOOL"; then
7573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_OTOOL="otool"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7601 if test "x$ac_ct_OTOOL" = x; then
7604 case $cross_compiling:$ac_tool_warned in
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7613 OTOOL="$ac_cv_prog_OTOOL"
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_OTOOL64+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$OTOOL64"; then
7625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656 ac_ct_OTOOL64=$OTOOL64
7657 # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$ac_ct_OTOOL64"; then
7665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_ac_ct_OTOOL64="otool64"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_OTOOL64" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 OTOOL64=$ac_ct_OTOOL64
7705 OTOOL64="$ac_cv_prog_OTOOL64"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if ${lt_cv_apple_cc_single_mod+:} false; then :
7737 $as_echo_n "(cached) " >&6
7739 lt_cv_apple_cc_single_mod=no
7740 if test -z "${LT_MULTI_MODULE}"; then
7741 # By default we will add the -single_module flag. You can override
7742 # by either setting the environment variable LT_MULTI_MODULE
7743 # non-empty at configure time, or by adding -multi_module to the
7745 rm -rf libconftest.dylib*
7746 echo "int foo(void){return 1;}" > conftest.c
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7752 # If there is a non-empty error log, and "single_module"
7753 # appears in it, assume the flag caused a linker warning
7754 if test -s conftest.err && $GREP single_module conftest.err; then
7755 cat conftest.err >&5
7756 # Otherwise, if the output was created with a 0 exit code from
7757 # the compiler, it worked.
7758 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7759 lt_cv_apple_cc_single_mod=yes
7761 cat conftest.err >&5
7763 rm -rf libconftest.dylib*
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7768 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7771 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7772 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7773 $as_echo_n "(cached) " >&6
7775 lt_cv_ld_exported_symbols_list=no
7776 save_LDFLAGS=$LDFLAGS
7777 echo "_main" > conftest.sym
7778 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7790 if ac_fn_c_try_link "$LINENO"; then :
7791 lt_cv_ld_exported_symbols_list=yes
7793 lt_cv_ld_exported_symbols_list=no
7795 rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797 LDFLAGS="$save_LDFLAGS"
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7801 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7804 $as_echo_n "checking for -force_load linker flag... " >&6; }
7805 if ${lt_cv_ld_force_load+:} false; then :
7806 $as_echo_n "(cached) " >&6
7808 lt_cv_ld_force_load=no
7809 cat > conftest.c << _LT_EOF
7810 int forced_loaded() { return 2;}
7812 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7813 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7814 echo "$AR cru libconftest.a conftest.o" >&5
7815 $AR cru libconftest.a conftest.o 2>&5
7816 echo "$RANLIB libconftest.a" >&5
7817 $RANLIB libconftest.a 2>&5
7818 cat > conftest.c << _LT_EOF
7819 int main() { return 0;}
7821 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7822 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7824 if test -s conftest.err && $GREP force_load conftest.err; then
7825 cat conftest.err >&5
7826 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7827 lt_cv_ld_force_load=yes
7829 cat conftest.err >&5
7831 rm -f conftest.err libconftest.a conftest conftest.c
7832 rm -rf conftest.dSYM
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7836 $as_echo "$lt_cv_ld_force_load" >&6; }
7838 rhapsody* | darwin1.[012])
7839 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7841 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7842 darwin*) # darwin 5.x on
7843 # if running on 10.5 or later, the deployment target defaults
7844 # to the OS version, if on x86, and 10.4, the deployment
7845 # target defaults to 10.4. Don't you love it?
7846 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7847 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7848 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7850 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7852 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7856 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7857 _lt_dar_single_mod='$single_module'
7859 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7860 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7862 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7864 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7865 _lt_dsymutil='~$DSYMUTIL $lib || :'
7873 ac_cpp='$CPP $CPPFLAGS'
7874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7878 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7879 # On Suns, sometimes $CPP names a directory.
7880 if test -n "$CPP" && test -d "$CPP"; then
7883 if test -z "$CPP"; then
7884 if ${ac_cv_prog_CPP+:} false; then :
7885 $as_echo_n "(cached) " >&6
7887 # Double quotes because CPP needs to be expanded
7888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7891 for ac_c_preproc_warn_flag in '' yes
7893 # Use a header file that comes with gcc, so configuring glibc
7894 # with a fresh cross-compiler works.
7895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896 # <limits.h> exists even on freestanding compilers.
7897 # On the NeXT, cc -E runs the code through the compiler's parser,
7898 # not just through cpp. "Syntax error" is here to catch this case.
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7902 # include <limits.h>
7904 # include <assert.h>
7908 if ac_fn_c_try_cpp "$LINENO"; then :
7911 # Broken: fails on valid input.
7914 rm -f conftest.err conftest.i conftest.$ac_ext
7916 # OK, works on sane cases. Now check whether nonexistent headers
7917 # can be detected and how.
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <ac_nonexistent.h>
7922 if ac_fn_c_try_cpp "$LINENO"; then :
7923 # Broken: success on invalid input.
7926 # Passes both tests.
7930 rm -f conftest.err conftest.i conftest.$ac_ext
7933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7934 rm -f conftest.i conftest.err conftest.$ac_ext
7935 if $ac_preproc_ok; then :
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7948 $as_echo "$CPP" >&6; }
7950 for ac_c_preproc_warn_flag in '' yes
7952 # Use a header file that comes with gcc, so configuring glibc
7953 # with a fresh cross-compiler works.
7954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955 # <limits.h> exists even on freestanding compilers.
7956 # On the NeXT, cc -E runs the code through the compiler's parser,
7957 # not just through cpp. "Syntax error" is here to catch this case.
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7961 # include <limits.h>
7963 # include <assert.h>
7967 if ac_fn_c_try_cpp "$LINENO"; then :
7970 # Broken: fails on valid input.
7973 rm -f conftest.err conftest.i conftest.$ac_ext
7975 # OK, works on sane cases. Now check whether nonexistent headers
7976 # can be detected and how.
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 #include <ac_nonexistent.h>
7981 if ac_fn_c_try_cpp "$LINENO"; then :
7982 # Broken: success on invalid input.
7985 # Passes both tests.
7989 rm -f conftest.err conftest.i conftest.$ac_ext
7992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7993 rm -f conftest.i conftest.err conftest.$ac_ext
7994 if $ac_preproc_ok; then :
7997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7999 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8000 See \`config.log' for more details" "$LINENO" 5; }
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8011 $as_echo_n "checking for ANSI C header files... " >&6; }
8012 if ${ac_cv_header_stdc+:} false; then :
8013 $as_echo_n "(cached) " >&6
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8030 if ac_fn_c_try_compile "$LINENO"; then :
8031 ac_cv_header_stdc=yes
8033 ac_cv_header_stdc=no
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 if test $ac_cv_header_stdc = yes; then
8038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045 $EGREP "memchr" >/dev/null 2>&1; then :
8048 ac_cv_header_stdc=no
8054 if test $ac_cv_header_stdc = yes; then
8055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "free" >/dev/null 2>&1; then :
8065 ac_cv_header_stdc=no
8071 if test $ac_cv_header_stdc = yes; then
8072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073 if test "$cross_compiling" = yes; then :
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8080 #if ((' ' & 0x0FF) == 0x020)
8081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8084 # define ISLOWER(c) \
8085 (('a' <= (c) && (c) <= 'i') \
8086 || ('j' <= (c) && (c) <= 'r') \
8087 || ('s' <= (c) && (c) <= 'z'))
8088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8096 for (i = 0; i < 256; i++)
8097 if (XOR (islower (i), ISLOWER (i))
8098 || toupper (i) != TOUPPER (i))
8103 if ac_fn_c_try_run "$LINENO"; then :
8106 ac_cv_header_stdc=no
8108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8109 conftest.$ac_objext conftest.beam conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8115 $as_echo "$ac_cv_header_stdc" >&6; }
8116 if test $ac_cv_header_stdc = yes; then
8118 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8123 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8124 inttypes.h stdint.h unistd.h
8126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8127 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8129 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8130 cat >>confdefs.h <<_ACEOF
8131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139 for ac_header in dlfcn.h
8141 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8143 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8144 cat >>confdefs.h <<_ACEOF
8145 #define HAVE_DLFCN_H 1
8155 func_stripname_cnf ()
8158 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8159 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8161 } # func_stripname_cnf
8177 # Check whether --enable-shared was given.
8178 if test "${enable_shared+set}" = set; then :
8179 enableval=$enable_shared; p=${PACKAGE-default}
8181 yes) enable_shared=yes ;;
8182 no) enable_shared=no ;;
8185 # Look at the argument we got. We use all the common list separators.
8186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8187 for pkg in $enableval; do
8189 if test "X$pkg" = "X$p"; then
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then :
8212 withval=$with_pic; lt_p=${PACKAGE-default}
8214 yes|no) pic_mode=$withval ;;
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for lt_pkg in $withval; do
8221 if test "X$lt_pkg" = "X$lt_p"; then
8233 test -z "$pic_mode" && pic_mode=default
8241 # Check whether --enable-fast-install was given.
8242 if test "${enable_fast_install+set}" = set; then :
8243 enableval=$enable_fast_install; p=${PACKAGE-default}
8245 yes) enable_fast_install=yes ;;
8246 no) enable_fast_install=no ;;
8248 enable_fast_install=no
8249 # Look at the argument we got. We use all the common list separators.
8250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251 for pkg in $enableval; do
8253 if test "X$pkg" = "X$p"; then
8254 enable_fast_install=yes
8261 enable_fast_install=yes
8274 # This can be used to rebuild libtool when needed
8275 LIBTOOL_DEPS="$ltmain"
8277 # Always use our own libtool.
8278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8309 test -z "$LN_S" && LN_S="ln -s"
8324 if test -n "${ZSH_VERSION+set}" ; then
8325 setopt NO_GLOB_SUBST
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8329 $as_echo_n "checking for objdir... " >&6; }
8330 if ${lt_cv_objdir+:} false; then :
8331 $as_echo_n "(cached) " >&6
8333 rm -f .libs 2>/dev/null
8334 mkdir .libs 2>/dev/null
8335 if test -d .libs; then
8338 # MS-DOS does not allow filenames that begin with a dot.
8341 rmdir .libs 2>/dev/null
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8344 $as_echo "$lt_cv_objdir" >&6; }
8345 objdir=$lt_cv_objdir
8351 cat >>confdefs.h <<_ACEOF
8352 #define LT_OBJDIR "$lt_cv_objdir/"
8360 # AIX sometimes has problems with the GCC collect2 program. For some
8361 # reason, if we set the COLLECT_NAMES environment variable, the problems
8362 # vanish in a puff of smoke.
8363 if test "X${COLLECT_NAMES+set}" != Xset; then
8365 export COLLECT_NAMES
8372 can_build_shared=yes
8374 # All known linkers require a `.a' archive for static linking (except MSVC,
8375 # which needs '.lib').
8378 with_gnu_ld="$lt_cv_prog_gnu_ld"
8381 old_CFLAGS="$CFLAGS"
8383 # Set sane defaults for various variables
8384 test -z "$CC" && CC=cc
8385 test -z "$LTCC" && LTCC=$CC
8386 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8387 test -z "$LD" && LD=ld
8388 test -z "$ac_objext" && ac_objext=o
8390 for cc_temp in $compiler""; do
8392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8398 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8401 # Only perform the check for file, if the check method requires it
8402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8403 case $deplibs_check_method in
8405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8407 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8408 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8409 $as_echo_n "(cached) " >&6
8413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8416 lt_save_MAGIC_CMD="$MAGIC_CMD"
8417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/${ac_tool_prefix}file; then
8423 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424 if test -n "$file_magic_test_file"; then
8425 case $deplibs_check_method in
8427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430 $EGREP "$file_magic_regex" > /dev/null; then
8435 *** Warning: the command libtool uses to detect shared libraries,
8436 *** $file_magic_cmd, produces output that libtool cannot recognize.
8437 *** The result is that libtool may fail to recognize shared libraries
8438 *** as such. This will affect the creation of libtool libraries that
8439 *** depend on shared libraries, but programs linked with such libtool
8440 *** libraries will work regardless of this problem. Nevertheless, you
8441 *** may want to report the problem to your system manager and/or to
8442 *** bug-libtool@gnu.org
8452 MAGIC_CMD="$lt_save_MAGIC_CMD"
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if test -n "$MAGIC_CMD"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8460 $as_echo "$MAGIC_CMD" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8470 if test -z "$lt_cv_path_MAGIC_CMD"; then
8471 if test -n "$ac_tool_prefix"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8473 $as_echo_n "checking for file... " >&6; }
8474 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8475 $as_echo_n "(cached) " >&6
8479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8482 lt_save_MAGIC_CMD="$MAGIC_CMD"
8483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8485 for ac_dir in $ac_dummy; do
8487 test -z "$ac_dir" && ac_dir=.
8488 if test -f $ac_dir/file; then
8489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8490 if test -n "$file_magic_test_file"; then
8491 case $deplibs_check_method in
8493 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8496 $EGREP "$file_magic_regex" > /dev/null; then
8501 *** Warning: the command libtool uses to detect shared libraries,
8502 *** $file_magic_cmd, produces output that libtool cannot recognize.
8503 *** The result is that libtool may fail to recognize shared libraries
8504 *** as such. This will affect the creation of libtool libraries that
8505 *** depend on shared libraries, but programs linked with such libtool
8506 *** libraries will work regardless of this problem. Nevertheless, you
8507 *** may want to report the problem to your system manager and/or to
8508 *** bug-libtool@gnu.org
8518 MAGIC_CMD="$lt_save_MAGIC_CMD"
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if test -n "$MAGIC_CMD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8526 $as_echo "$MAGIC_CMD" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8542 # Use C for the default configuration in the libtool script
8546 ac_cpp='$CPP $CPPFLAGS'
8547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8552 # Source file extension for C test sources.
8555 # Object file extension for compiled C test sources.
8559 # Code to be used in simple compile tests
8560 lt_simple_compile_test_code="int some_variable = 0;"
8562 # Code to be used in simple link tests
8563 lt_simple_link_test_code='int main(){return(0);}'
8571 # If no C compiler was specified, use CC.
8574 # If no C compiler flags were specified, use CFLAGS.
8575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8577 # Allow CC to be a program name with arguments.
8580 # Save the default compiler, since it gets overwritten when the other
8581 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8582 compiler_DEFAULT=$CC
8584 # save warnings/boilerplate of simple test code
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8587 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8588 _lt_compiler_boilerplate=`cat conftest.err`
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8593 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594 _lt_linker_boilerplate=`cat conftest.err`
8599 ## There is no encapsulation within the following macros, do not change
8600 ## the running order or otherwise move them around unless you know exactly
8601 ## what you are doing...
8602 if test -n "$compiler"; then
8604 lt_prog_compiler_no_builtin_flag=
8606 if test "$GCC" = yes; then
8607 case $cc_basename in
8609 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8611 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8615 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8616 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 lt_cv_prog_compiler_rtti_exceptions=no
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622 lt_compiler_flag="-fno-rtti -fno-exceptions"
8623 # Insert the option either (1) after the last *FLAGS variable, or
8624 # (2) before a word containing "conftest.", or (3) at the end.
8625 # Note that $ac_compile itself does not contain backslashes and begins
8626 # with a dollar sign (not a hyphen), so the echo should work correctly.
8627 # The option is referenced via a variable to avoid confusing sed.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>conftest.err)
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s "$ac_outfile"; then
8638 # The compiler can only warn and ignore the option if not recognized
8639 # So say no if there are warnings other than the usual output.
8640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8643 lt_cv_prog_compiler_rtti_exceptions=yes
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8650 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8665 lt_prog_compiler_wl=
8666 lt_prog_compiler_pic=
8667 lt_prog_compiler_static=
8670 if test "$GCC" = yes; then
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_static='-static'
8676 # All AIX code is PIC.
8677 if test "$host_cpu" = ia64; then
8678 # AIX 5 now supports IA64 processor
8679 lt_prog_compiler_static='-Bstatic'
8686 # see comment about AmigaOS4 .so support
8687 lt_prog_compiler_pic='-fPIC'
8690 # FIXME: we need at least 68020 code to build shared libraries, but
8691 # adding the `-m68020' flag to GCC prevents building anything better,
8693 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8698 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8699 # PIC is the default for these OSes.
8702 mingw* | cygwin* | pw32* | os2* | cegcc*)
8703 # This hack is so that the source file can tell whether it is being
8704 # built for inclusion in a dll (and should export symbols for example).
8705 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8706 # (--disable-auto-import) libraries
8707 lt_prog_compiler_pic='-DDLL_EXPORT'
8710 darwin* | rhapsody*)
8711 # PIC is the default on this platform
8712 # Common symbols not allowed in MH_DYLIB files
8713 lt_prog_compiler_pic='-fno-common'
8717 # PIC is the default for Haiku.
8718 # The "-static" flag exists, but is broken.
8719 lt_prog_compiler_static=
8723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8725 # sets the default TLS model and affects inlining.
8731 lt_prog_compiler_pic='-fPIC'
8737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8738 # Instead, we relocate shared libraries at runtime.
8742 # Just because we use GCC doesn't mean we suddenly get shared libraries
8743 # on systems that don't support them.
8744 lt_prog_compiler_can_build_shared=no
8749 # QNX uses GNU C++, but need to define -shared option too, otherwise
8751 lt_prog_compiler_pic='-fPIC -shared'
8755 if test -d /usr/nec; then
8756 lt_prog_compiler_pic=-Kconform_pic
8761 lt_prog_compiler_pic='-fPIC'
8765 case $cc_basename in
8766 nvcc*) # Cuda Compiler Driver 2.2
8767 lt_prog_compiler_wl='-Xlinker '
8768 if test -n "$lt_prog_compiler_pic"; then
8769 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8774 # PORTME Check for flag to pass linker flags through the system compiler.
8777 lt_prog_compiler_wl='-Wl,'
8778 if test "$host_cpu" = ia64; then
8779 # AIX 5 now supports IA64 processor
8780 lt_prog_compiler_static='-Bstatic'
8782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8786 mingw* | cygwin* | pw32* | os2* | cegcc*)
8787 # This hack is so that the source file can tell whether it is being
8788 # built for inclusion in a dll (and should export symbols for example).
8789 lt_prog_compiler_pic='-DDLL_EXPORT'
8792 hpux9* | hpux10* | hpux11*)
8793 lt_prog_compiler_wl='-Wl,'
8794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8801 lt_prog_compiler_pic='+Z'
8804 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8805 lt_prog_compiler_static='${wl}-a ${wl}archive'
8808 irix5* | irix6* | nonstopux*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # PIC (with -KPIC) is the default.
8811 lt_prog_compiler_static='-non_shared'
8814 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8815 case $cc_basename in
8816 # old Intel for x86_64 which still supported -KPIC.
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-static'
8822 # icc used to be incompatible with GCC.
8823 # ICC 10 doesn't accept -KPIC any more.
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-fPIC'
8827 lt_prog_compiler_static='-static'
8829 # Lahey Fortran 8.1.
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='--shared'
8833 lt_prog_compiler_static='--static'
8836 # NAG Fortran compiler
8837 lt_prog_compiler_wl='-Wl,-Wl,,'
8838 lt_prog_compiler_pic='-PIC'
8839 lt_prog_compiler_static='-Bstatic'
8841 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8842 # Portland Group compilers (*not* the Pentium gcc compiler,
8843 # which looks to be a dead project)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-fpic'
8846 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_wl='-Wl,'
8850 # All Alpha code is PIC.
8851 lt_prog_compiler_static='-non_shared'
8853 xl* | bgxl* | bgf* | mpixl*)
8854 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-qpic'
8857 lt_prog_compiler_static='-qstaticlink'
8860 case `$CC -V 2>&1 | sed 5q` in
8861 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8862 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8863 lt_prog_compiler_pic='-KPIC'
8864 lt_prog_compiler_static='-Bstatic'
8865 lt_prog_compiler_wl=''
8867 *Sun\ F* | *Sun*Fortran*)
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_wl='-Qoption ld '
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8878 *Intel*\ [CF]*Compiler*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-fpic'
8886 lt_prog_compiler_static='-Bstatic'
8894 lt_prog_compiler_pic='-KPIC'
8895 lt_prog_compiler_static='-Bstatic'
8899 # QNX uses GNU C++, but need to define -shared option too, otherwise
8901 lt_prog_compiler_pic='-fPIC -shared'
8904 osf3* | osf4* | osf5*)
8905 lt_prog_compiler_wl='-Wl,'
8906 # All OSF/1 code is PIC.
8907 lt_prog_compiler_static='-non_shared'
8911 lt_prog_compiler_static='-non_shared'
8915 lt_prog_compiler_pic='-KPIC'
8916 lt_prog_compiler_static='-Bstatic'
8917 case $cc_basename in
8918 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8919 lt_prog_compiler_wl='-Qoption ld ';;
8921 lt_prog_compiler_wl='-Wl,';;
8926 lt_prog_compiler_wl='-Qoption ld '
8927 lt_prog_compiler_pic='-PIC'
8928 lt_prog_compiler_static='-Bstatic'
8931 sysv4 | sysv4.2uw2* | sysv4.3*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8938 if test -d /usr/nec ;then
8939 lt_prog_compiler_pic='-Kconform_pic'
8940 lt_prog_compiler_static='-Bstatic'
8944 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-KPIC'
8947 lt_prog_compiler_static='-Bstatic'
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_can_build_shared=no
8956 lt_prog_compiler_pic='-pic'
8957 lt_prog_compiler_static='-Bstatic'
8961 lt_prog_compiler_can_build_shared=no
8967 # For platforms which do not support PIC, -DPIC is meaningless:
8969 lt_prog_compiler_pic=
8972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8977 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8978 if ${lt_cv_prog_compiler_pic+:} false; then :
8979 $as_echo_n "(cached) " >&6
8981 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8984 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8985 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8988 # Check to make sure the PIC flag actually works.
8990 if test -n "$lt_prog_compiler_pic"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8992 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8993 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8994 $as_echo_n "(cached) " >&6
8996 lt_cv_prog_compiler_pic_works=no
8997 ac_outfile=conftest.$ac_objext
8998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9000 # Insert the option either (1) after the last *FLAGS variable, or
9001 # (2) before a word containing "conftest.", or (3) at the end.
9002 # Note that $ac_compile itself does not contain backslashes and begins
9003 # with a dollar sign (not a hyphen), so the echo should work correctly.
9004 # The option is referenced via a variable to avoid confusing sed.
9005 lt_compile=`echo "$ac_compile" | $SED \
9006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9008 -e 's:$: $lt_compiler_flag:'`
9009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9010 (eval "$lt_compile" 2>conftest.err)
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 if (exit $ac_status) && test -s "$ac_outfile"; then
9015 # The compiler can only warn and ignore the option if not recognized
9016 # So say no if there are warnings other than the usual output.
9017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9020 lt_cv_prog_compiler_pic_works=yes
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9027 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9029 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9030 case $lt_prog_compiler_pic in
9032 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9035 lt_prog_compiler_pic=
9036 lt_prog_compiler_can_build_shared=no
9052 # Check to make sure the static flag actually works.
9054 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9056 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9057 if ${lt_cv_prog_compiler_static_works+:} false; then :
9058 $as_echo_n "(cached) " >&6
9060 lt_cv_prog_compiler_static_works=no
9061 save_LDFLAGS="$LDFLAGS"
9062 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9065 # The linker can only warn and ignore the option if not recognized
9066 # So say no if there are warnings
9067 if test -s conftest.err; then
9068 # Append any errors to the config.log.
9069 cat conftest.err 1>&5
9070 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072 if diff conftest.exp conftest.er2 >/dev/null; then
9073 lt_cv_prog_compiler_static_works=yes
9076 lt_cv_prog_compiler_static_works=yes
9080 LDFLAGS="$save_LDFLAGS"
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9084 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9086 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9089 lt_prog_compiler_static=
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9100 if ${lt_cv_prog_compiler_c_o+:} false; then :
9101 $as_echo_n "(cached) " >&6
9103 lt_cv_prog_compiler_c_o=no
9104 $RM -r conftest 2>/dev/null
9108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110 lt_compiler_flag="-o out/conftest2.$ac_objext"
9111 # Insert the option either (1) after the last *FLAGS variable, or
9112 # (2) before a word containing "conftest.", or (3) at the end.
9113 # Note that $ac_compile itself does not contain backslashes and begins
9114 # with a dollar sign (not a hyphen), so the echo should work correctly.
9115 lt_compile=`echo "$ac_compile" | $SED \
9116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9118 -e 's:$: $lt_compiler_flag:'`
9119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9120 (eval "$lt_compile" 2>out/conftest.err)
9122 cat out/conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9126 # The compiler can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9131 lt_cv_prog_compiler_c_o=yes
9136 # SGI C++ compiler will create directory out/ii_files/ for
9137 # template instantiation
9138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9139 $RM out/* && rmdir out
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9146 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9155 if ${lt_cv_prog_compiler_c_o+:} false; then :
9156 $as_echo_n "(cached) " >&6
9158 lt_cv_prog_compiler_c_o=no
9159 $RM -r conftest 2>/dev/null
9163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165 lt_compiler_flag="-o out/conftest2.$ac_objext"
9166 # Insert the option either (1) after the last *FLAGS variable, or
9167 # (2) before a word containing "conftest.", or (3) at the end.
9168 # Note that $ac_compile itself does not contain backslashes and begins
9169 # with a dollar sign (not a hyphen), so the echo should work correctly.
9170 lt_compile=`echo "$ac_compile" | $SED \
9171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173 -e 's:$: $lt_compiler_flag:'`
9174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175 (eval "$lt_compile" 2>out/conftest.err)
9177 cat out/conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181 # The compiler can only warn and ignore the option if not recognized
9182 # So say no if there are warnings
9183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_c_o=yes
9191 # SGI C++ compiler will create directory out/ii_files/ for
9192 # template instantiation
9193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9194 $RM out/* && rmdir out
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206 hard_links="nottested"
9207 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9208 # do not overwrite the value of need_locks provided by the user
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9210 $as_echo_n "checking if we can lock with hard links... " >&6; }
9213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9215 ln conftest.a conftest.b 2>&5 || hard_links=no
9216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9218 $as_echo "$hard_links" >&6; }
9219 if test "$hard_links" = no; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9221 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9234 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9237 allow_undefined_flag=
9238 always_export_symbols=no
9240 archive_expsym_cmds=
9241 compiler_needs_object=no
9242 enable_shared_with_static_runtimes=no
9243 export_dynamic_flag_spec=
9244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9245 hardcode_automatic=no
9247 hardcode_direct_absolute=no
9248 hardcode_libdir_flag_spec=
9249 hardcode_libdir_separator=
9251 hardcode_shlibpath_var=unsupported
9253 link_all_deplibs=unknown
9256 old_archive_from_new_cmds=
9257 old_archive_from_expsyms_cmds=
9258 thread_safe_flag_spec=
9259 whole_archive_flag_spec=
9260 # include_expsyms should be a list of space-separated symbols to be *always*
9261 # included in the symbol list
9263 # exclude_expsyms can be an extended regexp of symbols to exclude
9264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9266 # as well as any symbol that contains `d'.
9267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9269 # platforms (ab)use it in PIC code, but their linkers get confused if
9270 # the symbol is explicitly referenced. Since portable code cannot
9271 # rely on this symbol name, it's probably fine to never include it in
9272 # preloaded symbol tables.
9273 # Exclude shared library initialization/finalization symbols.
9274 extract_expsyms_cmds=
9277 cygwin* | mingw* | pw32* | cegcc*)
9278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9279 # When not using gcc, we currently assume that we are using
9280 # Microsoft Visual C++.
9281 if test "$GCC" != yes; then
9286 # we just hope/assume this is gcc and not c89 (= MSVC++)
9292 linux* | k*bsd*-gnu | gnu*)
9299 # On some targets, GNU ld is compatible enough with the native linker
9300 # that we're better off using the native interface for both.
9301 lt_use_gnu_ld_interface=no
9302 if test "$with_gnu_ld" = yes; then
9305 # The AIX port of GNU ld has always aspired to compatibility
9306 # with the native linker. However, as the warning in the GNU ld
9307 # block says, versions before 2.19.5* couldn't really create working
9308 # shared libraries, regardless of the interface used.
9309 case `$LD -v 2>&1` in
9310 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9311 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9312 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9314 lt_use_gnu_ld_interface=yes
9319 lt_use_gnu_ld_interface=yes
9324 if test "$lt_use_gnu_ld_interface" = yes; then
9325 # If archive_cmds runs LD, not CC, wlarc should be empty
9328 # Set some defaults for GNU ld with shared library support. These
9329 # are reset later if shared libraries are not supported. Putting them
9330 # here allows them to be overridden if necessary.
9331 runpath_var=LD_RUN_PATH
9332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9333 export_dynamic_flag_spec='${wl}--export-dynamic'
9334 # ancient GNU ld didn't support --whole-archive et. al.
9335 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9336 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9338 whole_archive_flag_spec=
9340 supports_anon_versioning=no
9341 case `$LD -v 2>&1` in
9342 *GNU\ gold*) supports_anon_versioning=yes ;;
9343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9346 *\ 2.11.*) ;; # other 2.11 versions
9347 *) supports_anon_versioning=yes ;;
9350 # See if GNU ld supports shared libraries.
9353 # On AIX/PPC, the GNU linker is very broken
9354 if test "$host_cpu" != ia64; then
9358 *** Warning: the GNU linker, at least up to release 2.19, is reported
9359 *** to be unable to reliably create shared libraries on AIX.
9360 *** Therefore, libtool is disabling shared libraries support. If you
9361 *** really care for shared libraries, you may want to install binutils
9362 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9363 *** You will then need to restart the configuration process.
9372 # see comment about AmigaOS4 .so support
9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 archive_expsym_cmds=''
9377 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)'
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_minus_L=yes
9385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386 allow_undefined_flag=unsupported
9387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9388 # support --undefined. This deserves some investigation. FIXME
9389 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395 cygwin* | mingw* | pw32* | cegcc*)
9396 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9397 # as there is no search path for DLLs.
9398 hardcode_libdir_flag_spec='-L$libdir'
9399 export_dynamic_flag_spec='${wl}--export-all-symbols'
9400 allow_undefined_flag=unsupported
9401 always_export_symbols=no
9402 enable_shared_with_static_runtimes=yes
9403 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'
9404 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9406 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408 # If the export-symbols file already is a .def file (1st line
9409 # is EXPORTS), use it as is; otherwise, prepend...
9410 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9411 cp $export_symbols $output_objdir/$soname.def;
9413 echo EXPORTS > $output_objdir/$soname.def;
9414 cat $export_symbols >> $output_objdir/$soname.def;
9416 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 link_all_deplibs=yes
9429 hardcode_shlibpath_var=no
9430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9431 export_dynamic_flag_spec='${wl}-E'
9432 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9433 # Instead, shared libraries are loaded at an image base (0x10000000 by
9434 # default) and relocated if they conflict, which is a slow very memory
9435 # consuming and fragmenting process. To avoid this, we pick a random,
9436 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9437 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9439 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'
9442 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9444 if test "$host_os" = linux-dietlibc; then
9445 case $cc_basename in
9446 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9449 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9450 && test "$tmp_diet" = no
9452 tmp_addflag=' $pic_flag'
9453 tmp_sharedflag='-shared'
9454 case $cc_basename,$host_cpu in
9455 pgcc*) # Portland Group C compiler
9456 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'
9457 tmp_addflag=' $pic_flag'
9459 pgf77* | pgf90* | pgf95* | pgfortran*)
9460 # Portland Group f77 and f90 compilers
9461 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'
9462 tmp_addflag=' $pic_flag -Mnomain' ;;
9463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9464 tmp_addflag=' -i_dynamic' ;;
9465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9466 tmp_addflag=' -i_dynamic -nofor_main' ;;
9467 ifc* | ifort*) # Intel Fortran compiler
9468 tmp_addflag=' -nofor_main' ;;
9469 lf95*) # Lahey Fortran 8.1
9470 whole_archive_flag_spec=
9471 tmp_sharedflag='--shared' ;;
9472 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9473 tmp_sharedflag='-qmkshrobj'
9475 nvcc*) # Cuda Compiler Driver 2.2
9476 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'
9477 compiler_needs_object=yes
9480 case `$CC -V 2>&1 | sed 5q` in
9481 *Sun\ C*) # Sun C 5.9
9482 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'
9483 compiler_needs_object=yes
9484 tmp_sharedflag='-G' ;;
9485 *Sun\ F*) # Sun Fortran 8.3
9486 tmp_sharedflag='-G' ;;
9488 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 if test "x$supports_anon_versioning" = xyes; then
9491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9497 case $cc_basename in
9498 xlf* | bgf* | bgxlf* | mpixlf*)
9499 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9500 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9503 if test "x$supports_anon_versioning" = xyes; then
9504 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9505 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9506 echo "local: *; };" >> $output_objdir/$libname.ver~
9507 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9516 netbsd* | netbsdelf*-gnu)
9517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9532 *** create shared libraries on Solaris systems. Therefore, libtool
9533 *** is disabling shared libraries support. We urge you to upgrade GNU
9534 *** binutils to release 2.9.1 or newer. Another option is to modify
9535 *** your PATH or compiler configuration so that the native linker is
9536 *** used, and then restart.
9539 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9548 case `$LD -v 2>&1` in
9549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9554 *** reliably create shared libraries on SCO systems. Therefore, libtool
9555 *** is disabling shared libraries support. We urge you to upgrade GNU
9556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9557 *** your PATH or compiler configuration so that the native linker is
9558 *** used, and then restart.
9563 # For security reasons, it is highly recommended that you always
9564 # use absolute paths for naming shared libraries, and exclude the
9565 # DT_RUNPATH tag from executables and libraries. But doing so
9566 # requires that you compile everything twice, which is a pain.
9567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_shlibpath_var=no
9586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9595 if test "$ld_shlibs" = no; then
9597 hardcode_libdir_flag_spec=
9598 export_dynamic_flag_spec=
9599 whole_archive_flag_spec=
9602 # PORTME fill in a description of your system's linker (not GNU ld)
9605 allow_undefined_flag=unsupported
9606 always_export_symbols=yes
9607 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'
9608 # Note: this linker hardcodes the directories in LIBPATH if there
9609 # are no directories specified by -L.
9610 hardcode_minus_L=yes
9611 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9612 # Neither direct hardcoding nor static linking is supported with a
9614 hardcode_direct=unsupported
9619 if test "$host_cpu" = ia64; then
9620 # On IA64, the linker does run time linking by default, so we don't
9621 # have to do anything special.
9622 aix_use_runtimelinking=no
9623 exp_sym_flag='-Bexport'
9626 # If we're using GNU nm, then we don't want the "-C" option.
9627 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9628 # Also, AIX nm treats weak defined symbols like other global
9629 # defined symbols, whereas GNU nm marks them as "W".
9630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9631 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'
9633 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'
9635 aix_use_runtimelinking=no
9637 # Test if we are trying to use run time linking or normal
9638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9639 # need to do runtime linking.
9640 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9641 for ld_flag in $LDFLAGS; do
9642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9643 aix_use_runtimelinking=yes
9650 exp_sym_flag='-bexport'
9651 no_entry_flag='-bnoentry'
9654 # When large executables or shared objects are built, AIX ld can
9655 # have problems creating the table of contents. If linking a library
9656 # or program results in "error TOC overflow" add -mminimal-toc to
9657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9662 hardcode_direct_absolute=yes
9663 hardcode_libdir_separator=':'
9664 link_all_deplibs=yes
9665 file_list_spec='${wl}-f,'
9667 if test "$GCC" = yes; then
9668 case $host_os in aix4.[012]|aix4.[012].*)
9669 # We only want to do this on AIX 4.2 and lower, the check
9670 # below for broken collect2 doesn't work under 4.3+
9671 collect2name=`${CC} -print-prog-name=collect2`
9672 if test -f "$collect2name" &&
9673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9675 # We have reworked collect2
9678 # We have old collect2
9679 hardcode_direct=unsupported
9680 # It fails to find uninstalled libraries when the uninstalled
9681 # path is not listed in the libpath. Setting hardcode_minus_L
9682 # to unsupported forces relinking
9683 hardcode_minus_L=yes
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 hardcode_libdir_separator=
9689 shared_flag='-shared'
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag="$shared_flag "'${wl}-G'
9696 if test "$host_cpu" = ia64; then
9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698 # chokes on -Wl,-G. The following line is correct:
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag='${wl}-G'
9704 shared_flag='${wl}-bM:SRE'
9709 export_dynamic_flag_spec='${wl}-bexpall'
9710 # It seems that -bexpall does not export symbols beginning with
9711 # underscore (_), so it is better to generate a list of symbols to export.
9712 always_export_symbols=yes
9713 if test "$aix_use_runtimelinking" = yes; then
9714 # Warning - without using the other runtime loading flags (-brtl),
9715 # -berok will link without error, but may produce a broken library.
9716 allow_undefined_flag='-berok'
9717 # Determine the default libpath from the value encoded in an
9719 if test "${lt_cv_aix_libpath+set}" = set; then
9720 aix_libpath=$lt_cv_aix_libpath
9722 if ${lt_cv_aix_libpath_+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9736 if ac_fn_c_try_link "$LINENO"; then :
9738 lt_aix_libpath_sed='
9739 /Import File Strings/,/^$/ {
9741 s/^0 *\([^ ]*\) *$/\1/
9745 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 # Check for a 64-bit object if we didn't find anything.
9747 if test -z "$lt_cv_aix_libpath_"; then
9748 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 if test -z "$lt_cv_aix_libpath_"; then
9754 lt_cv_aix_libpath_="/usr/lib:/lib"
9759 aix_libpath=$lt_cv_aix_libpath_
9762 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9763 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"
9765 if test "$host_cpu" = ia64; then
9766 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9767 allow_undefined_flag="-z nodefs"
9768 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"
9770 # Determine the default libpath from the value encoded in an
9772 if test "${lt_cv_aix_libpath+set}" = set; then
9773 aix_libpath=$lt_cv_aix_libpath
9775 if ${lt_cv_aix_libpath_+:} false; then :
9776 $as_echo_n "(cached) " >&6
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9789 if ac_fn_c_try_link "$LINENO"; then :
9791 lt_aix_libpath_sed='
9792 /Import File Strings/,/^$/ {
9794 s/^0 *\([^ ]*\) *$/\1/
9798 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799 # Check for a 64-bit object if we didn't find anything.
9800 if test -z "$lt_cv_aix_libpath_"; then
9801 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 rm -f core conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 if test -z "$lt_cv_aix_libpath_"; then
9807 lt_cv_aix_libpath_="/usr/lib:/lib"
9812 aix_libpath=$lt_cv_aix_libpath_
9815 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9816 # Warning - without using the other run time loading flags,
9817 # -berok will link without error, but may produce a broken library.
9818 no_undefined_flag=' ${wl}-bernotok'
9819 allow_undefined_flag=' ${wl}-berok'
9820 if test "$with_gnu_ld" = yes; then
9821 # We only use this code for GNU lds that support --whole-archive.
9822 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9824 # Exported symbols can be pulled into shared objects from archives
9825 whole_archive_flag_spec='$convenience'
9827 archive_cmds_need_lc=yes
9828 # This is similar to how AIX traditionally builds its shared libraries.
9829 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'
9837 # see comment about AmigaOS4 .so support
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9839 archive_expsym_cmds=''
9842 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)'
9843 hardcode_libdir_flag_spec='-L$libdir'
9844 hardcode_minus_L=yes
9850 export_dynamic_flag_spec=-rdynamic
9853 cygwin* | mingw* | pw32* | cegcc*)
9854 # When not using gcc, we currently assume that we are using
9855 # Microsoft Visual C++.
9856 # hardcode_libdir_flag_spec is actually meaningless, as there is
9857 # no search path for DLLs.
9858 case $cc_basename in
9861 hardcode_libdir_flag_spec=' '
9862 allow_undefined_flag=unsupported
9863 always_export_symbols=yes
9865 # Tell ltmain to make .lib files, not .a files.
9867 # Tell ltmain to make .dll files, not .so files.
9869 # FIXME: Setting linknames here is a bad hack.
9870 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9871 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9872 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9874 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9876 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9878 # The linker will not automatically build a static lib if we build a DLL.
9879 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9880 enable_shared_with_static_runtimes=yes
9881 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9884 old_postinstall_cmds='chmod 644 $oldlib'
9885 postlink_cmds='lt_outputfile="@OUTPUT@"~
9886 lt_tool_outputfile="@TOOL_OUTPUT@"~
9887 case $lt_outputfile in
9890 lt_outputfile="$lt_outputfile.exe"
9891 lt_tool_outputfile="$lt_tool_outputfile.exe"
9894 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9895 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9896 $RM "$lt_outputfile.manifest";
9900 # Assume MSVC wrapper
9901 hardcode_libdir_flag_spec=' '
9902 allow_undefined_flag=unsupported
9903 # Tell ltmain to make .lib files, not .a files.
9905 # Tell ltmain to make .dll files, not .so files.
9907 # FIXME: Setting linknames here is a bad hack.
9908 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9909 # The linker will automatically build a .lib file if we build a DLL.
9910 old_archive_from_new_cmds='true'
9911 # FIXME: Should let the user specify the lib program.
9912 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9913 enable_shared_with_static_runtimes=yes
9918 darwin* | rhapsody*)
9921 archive_cmds_need_lc=no
9923 hardcode_automatic=yes
9924 hardcode_shlibpath_var=unsupported
9925 if test "$lt_cv_ld_force_load" = "yes"; then
9926 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\"`'
9929 whole_archive_flag_spec=''
9931 link_all_deplibs=yes
9932 allow_undefined_flag="$_lt_dar_allow_undefined"
9933 case $cc_basename in
9934 ifort*) _lt_dar_can_shared=yes ;;
9935 *) _lt_dar_can_shared=$GCC ;;
9937 if test "$_lt_dar_can_shared" = "yes"; then
9938 output_verbose_link_cmd=func_echo_all
9939 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9940 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9941 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}"
9942 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}"
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_shlibpath_var=no
9956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9957 # support. Future versions do this automatically, but an explicit c++rt0.o
9958 # does not break anything, and helps significantly (at the cost of a little
9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9962 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_shlibpath_var=no
9967 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_minus_L=yes
9972 hardcode_shlibpath_var=no
9975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9976 freebsd* | dragonfly*)
9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978 hardcode_libdir_flag_spec='-R$libdir'
9980 hardcode_shlibpath_var=no
9984 if test "$GCC" = yes; then
9985 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'
9987 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'
9989 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator=:
9993 # hardcode_minus_L: Not really in the search PATH,
9994 # but as the default location of the library.
9995 hardcode_minus_L=yes
9996 export_dynamic_flag_spec='${wl}-E'
10000 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10001 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10005 if test "$with_gnu_ld" = no; then
10006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007 hardcode_libdir_separator=:
10008 hardcode_direct=yes
10009 hardcode_direct_absolute=yes
10010 export_dynamic_flag_spec='${wl}-E'
10011 # hardcode_minus_L: Not really in the search PATH,
10012 # but as the default location of the library.
10013 hardcode_minus_L=yes
10018 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10021 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10040 # Older versions of the 11.00 compiler do not understand -b yet
10041 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10043 $as_echo_n "checking if $CC understands -b... " >&6; }
10044 if ${lt_cv_prog_compiler__b+:} false; then :
10045 $as_echo_n "(cached) " >&6
10047 lt_cv_prog_compiler__b=no
10048 save_LDFLAGS="$LDFLAGS"
10049 LDFLAGS="$LDFLAGS -b"
10050 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10052 # The linker can only warn and ignore the option if not recognized
10053 # So say no if there are warnings
10054 if test -s conftest.err; then
10055 # Append any errors to the config.log.
10056 cat conftest.err 1>&5
10057 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10059 if diff conftest.exp conftest.er2 >/dev/null; then
10060 lt_cv_prog_compiler__b=yes
10063 lt_cv_prog_compiler__b=yes
10067 LDFLAGS="$save_LDFLAGS"
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10071 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10073 if test x"$lt_cv_prog_compiler__b" = xyes; then
10074 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10082 if test "$with_gnu_ld" = no; then
10083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10084 hardcode_libdir_separator=:
10089 hardcode_shlibpath_var=no
10092 hardcode_direct=yes
10093 hardcode_direct_absolute=yes
10094 export_dynamic_flag_spec='${wl}-E'
10096 # hardcode_minus_L: Not really in the search PATH,
10097 # but as the default location of the library.
10098 hardcode_minus_L=yes
10104 irix5* | irix6* | nonstopux*)
10105 if test "$GCC" = yes; then
10106 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'
10107 # Try to use the -exported_symbol ld option, if it does not
10108 # work, assume that -exports_file does not work either and
10109 # implicitly export all symbols.
10110 # This should be the same for all languages, so no per-tag cache variable.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10112 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10113 if ${lt_cv_irix_exported_symbol+:} false; then :
10114 $as_echo_n "(cached) " >&6
10116 save_LDFLAGS="$LDFLAGS"
10117 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10120 int foo (void) { return 0; }
10122 if ac_fn_c_try_link "$LINENO"; then :
10123 lt_cv_irix_exported_symbol=yes
10125 lt_cv_irix_exported_symbol=no
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LDFLAGS="$save_LDFLAGS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10132 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10133 if test "$lt_cv_irix_exported_symbol" = yes; then
10134 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'
10137 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'
10138 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'
10140 archive_cmds_need_lc='no'
10141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142 hardcode_libdir_separator=:
10144 link_all_deplibs=yes
10147 netbsd* | netbsdelf*-gnu)
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 hardcode_direct=yes
10155 hardcode_shlibpath_var=no
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 hardcode_direct=yes
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 hardcode_libdir_separator=:
10163 hardcode_shlibpath_var=no
10170 if test -f /usr/libexec/ld.so; then
10171 hardcode_direct=yes
10172 hardcode_shlibpath_var=no
10173 hardcode_direct_absolute=yes
10174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10178 export_dynamic_flag_spec='${wl}-E'
10181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_libdir_flag_spec='-R$libdir'
10186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_minus_L=yes
10199 allow_undefined_flag=unsupported
10200 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'
10201 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10205 if test "$GCC" = yes; then
10206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10207 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'
10209 allow_undefined_flag=' -expect_unresolved \*'
10210 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'
10212 archive_cmds_need_lc='no'
10213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10214 hardcode_libdir_separator=:
10217 osf4* | osf5*) # as osf3* with the addition of -msym flag
10218 if test "$GCC" = yes; then
10219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10220 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'
10221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10223 allow_undefined_flag=' -expect_unresolved \*'
10224 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'
10225 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~
10226 $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'
10228 # Both c and cxx compiler support -rpath directly
10229 hardcode_libdir_flag_spec='-rpath $libdir'
10231 archive_cmds_need_lc='no'
10232 hardcode_libdir_separator=:
10236 no_undefined_flag=' -z defs'
10237 if test "$GCC" = yes; then
10239 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10241 $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'
10243 case `$CC -V 2>&1` in
10246 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10252 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10258 hardcode_libdir_flag_spec='-R$libdir'
10259 hardcode_shlibpath_var=no
10261 solaris2.[0-5] | solaris2.[0-5].*) ;;
10263 # The compiler driver will combine and reorder linker options,
10264 # but understands `-z linker_flag'. GCC discards it without `$wl',
10265 # but is careful enough not to reorder.
10266 # Supported since Solaris 2.6 (maybe 2.5.1?)
10267 if test "$GCC" = yes; then
10268 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10270 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10274 link_all_deplibs=yes
10278 if test "x$host_vendor" = xsequent; then
10279 # Use $CC to link under sequent, because it throws in some extra .o
10280 # files that make .init and .fini sections work.
10281 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10292 case $host_vendor in
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_direct=yes # is this really true???
10298 ## LD is ld it makes a PLAMLIB
10299 ## CC just makes a GrossModule.
10300 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10301 reload_cmds='$CC -r -o $output$reload_objs'
10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10309 runpath_var='LD_RUN_PATH'
10310 hardcode_shlibpath_var=no
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_shlibpath_var=no
10316 export_dynamic_flag_spec='-Bexport'
10320 if test -d /usr/nec; then
10321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322 hardcode_shlibpath_var=no
10323 runpath_var=LD_RUN_PATH
10324 hardcode_runpath_var=yes
10329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10330 no_undefined_flag='${wl}-z,text'
10331 archive_cmds_need_lc=no
10332 hardcode_shlibpath_var=no
10333 runpath_var='LD_RUN_PATH'
10335 if test "$GCC" = yes; then
10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 sysv5* | sco3.2v5* | sco5v6*)
10345 # Note: We can NOT use -z defs as we might desire, because we do not
10346 # link with -lc, and that would cause any symbols used from libc to
10347 # always be unresolved, which means just about no library would
10348 # ever link correctly. If we're not using GNU ld we use -z text
10349 # though, which does catch some bad symbols but isn't as heavy-handed
10351 no_undefined_flag='${wl}-z,text'
10352 allow_undefined_flag='${wl}-z,nodefs'
10353 archive_cmds_need_lc=no
10354 hardcode_shlibpath_var=no
10355 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10356 hardcode_libdir_separator=':'
10357 link_all_deplibs=yes
10358 export_dynamic_flag_spec='${wl}-Bexport'
10359 runpath_var='LD_RUN_PATH'
10361 if test "$GCC" = yes; then
10362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_shlibpath_var=no
10381 if test x$host_vendor = xsni; then
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384 export_dynamic_flag_spec='${wl}-Blargedynsym'
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10391 $as_echo "$ld_shlibs" >&6; }
10392 test "$ld_shlibs" = no && can_build_shared=no
10394 with_gnu_ld=$with_gnu_ld
10411 # Do we need to explicitly link libc?
10413 case "x$archive_cmds_need_lc" in
10415 # Assume -lc should be added
10416 archive_cmds_need_lc=yes
10418 if test "$enable_shared" = yes && test "$GCC" = yes; then
10419 case $archive_cmds in
10421 # FIXME: we may have to deal with multi-command sequences.
10424 # Test whether the compiler implicitly links with -lc since on some
10425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10426 # to ld, don't add -lc before -lgcc.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10429 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10430 $as_echo_n "(cached) " >&6
10433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10436 (eval $ac_compile) 2>&5
10438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10439 test $ac_status = 0; } 2>conftest.err; then
10442 libobjs=conftest.$ac_objext
10444 wl=$lt_prog_compiler_wl
10445 pic_flag=$lt_prog_compiler_pic
10451 lt_save_allow_undefined_flag=$allow_undefined_flag
10452 allow_undefined_flag=
10453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10454 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10457 test $ac_status = 0; }
10459 lt_cv_archive_cmds_need_lc=no
10461 lt_cv_archive_cmds_need_lc=yes
10463 allow_undefined_flag=$lt_save_allow_undefined_flag
10465 cat conftest.err 1>&5
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10471 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10472 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10631 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10633 if test "$GCC" = yes; then
10635 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10636 *) lt_awk_arg="/^libraries:/" ;;
10639 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10640 *) lt_sed_strip_eq="s,=/,/,g" ;;
10642 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10643 case $lt_search_path_spec in
10645 # if the path contains ";" then we assume it to be the separator
10646 # otherwise default to the standard path separator (i.e. ":") - it is
10647 # assumed that no part of a normal pathname contains ";" but that should
10648 # okay in the real world where ";" in dirpaths is itself problematic.
10649 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10655 # Ok, now we have the path, separated by spaces, we can step through it
10656 # and add multilib dir if necessary.
10657 lt_tmp_lt_search_path_spec=
10658 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10659 for lt_sys_path in $lt_search_path_spec; do
10660 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10661 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10663 test -d "$lt_sys_path" && \
10664 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10667 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10668 BEGIN {RS=" "; FS="/|\n";} {
10671 for (lt_i = NF; lt_i > 0; lt_i--) {
10672 if ($lt_i != "" && $lt_i != ".") {
10673 if ($lt_i == "..") {
10676 if (lt_count == 0) {
10677 lt_foo="/" $lt_i lt_foo;
10684 if (lt_foo != "") { lt_freq[lt_foo]++; }
10685 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10687 # AWK program above erroneously prepends '/' to C:/dos/paths
10690 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10691 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10693 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10697 library_names_spec=
10698 libname_spec='lib$name'
10702 postuninstall_cmds=
10706 shlibpath_overrides_runpath=unknown
10708 dynamic_linker="$host_os ld.so"
10709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10710 need_lib_prefix=unknown
10711 hardcode_into_libs=no
10713 # when you set need_version to no, make sure it does not cause -set_version
10714 # flags to be left without arguments
10715 need_version=unknown
10719 version_type=linux # correct to gnu/linux during the next big refactor
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10721 shlibpath_var=LIBPATH
10723 # AIX 3 has no versioning support, so we append a major version to the name.
10724 soname_spec='${libname}${release}${shared_ext}$major'
10728 version_type=linux # correct to gnu/linux during the next big refactor
10731 hardcode_into_libs=yes
10732 if test "$host_cpu" = ia64; then
10733 # AIX 5 supports IA64
10734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10735 shlibpath_var=LD_LIBRARY_PATH
10737 # With GCC up to 2.95.x, collect2 would create an import file
10738 # for dependence libraries. The import file would start with
10739 # the line `#! .'. This would cause the generated library to
10740 # depend on `.', always an invalid library. This was fixed in
10741 # development snapshots of GCC prior to 3.0.
10743 aix4 | aix4.[01] | aix4.[01].*)
10744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10746 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10749 can_build_shared=no
10753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10754 # soname into executable. Probably we can add versioning support to
10755 # collect2, so additional links can be useful in future.
10756 if test "$aix_use_runtimelinking" = yes; then
10757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10758 # instead of lib<name>.a to let people know that these are not
10759 # typical AIX shared libraries.
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 # We preserve .a as extension for shared libraries through AIX4.2
10763 # and later when we are not doing run time linking.
10764 library_names_spec='${libname}${release}.a $libname.a'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10767 shlibpath_var=LIBPATH
10774 # Since July 2007 AmigaOS4 officially supports .so libraries.
10775 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 library_names_spec='$libname.ixlibrary $libname.a'
10780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10781 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'
10787 library_names_spec='${libname}${shared_ext}'
10788 dynamic_linker="$host_os ld.so"
10789 shlibpath_var=LIBRARY_PATH
10793 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10801 # the default ld.so.conf also contains /usr/contrib/lib and
10802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10803 # libtool to hard-code these into programs
10806 cygwin* | mingw* | pw32* | cegcc*)
10807 version_type=windows
10812 case $GCC,$cc_basename in
10815 library_names_spec='$libname.dll.a'
10816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10817 postinstall_cmds='base_file=`basename \${file}`~
10818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10819 dldir=$destdir/`dirname \$dlpath`~
10820 test -d \$dldir || mkdir -p \$dldir~
10821 $install_prog $dir/$dlname \$dldir/$dlname~
10822 chmod a+x \$dldir/$dlname~
10823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10827 dlpath=$dir/\$dldll~
10829 shlibpath_overrides_runpath=yes
10833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10839 # MinGW DLLs use traditional 'lib' prefix
10840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843 # pw32 DLLs use 'pw' prefix rather than 'lib'
10844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 dynamic_linker='Win32 ld.exe'
10852 libname_spec='$name'
10853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854 library_names_spec='${libname}.dll.lib'
10858 sys_lib_search_path_spec=
10861 for lt_path in $LIB
10864 # Let DOS variable expansion print the short 8.3 style file name.
10865 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10866 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10869 # Convert to MSYS style.
10870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10873 # Convert to unix form, then to dos form, then back to unix form
10874 # but this time dos style (no spaces!) so that the unix form looks
10875 # like /cygdrive/c/PROGRA~1:/cygdr...
10876 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10877 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10878 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10881 sys_lib_search_path_spec="$LIB"
10882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10883 # It is most probably a Windows format PATH.
10884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10888 # FIXME: find the short name or the path components, as spaces are
10889 # common. (e.g. "Program Files" -> "PROGRA~1")
10893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10894 postinstall_cmds='base_file=`basename \${file}`~
10895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10896 dldir=$destdir/`dirname \$dlpath`~
10897 test -d \$dldir || mkdir -p \$dldir~
10898 $install_prog $dir/$dlname \$dldir/$dlname'
10899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10900 dlpath=$dir/\$dldll~
10902 shlibpath_overrides_runpath=yes
10903 dynamic_linker='Win32 link.exe'
10907 # Assume MSVC wrapper
10908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10909 dynamic_linker='Win32 ld.exe'
10912 # FIXME: first we should search . and the directory the executable is in
10916 darwin* | rhapsody*)
10917 dynamic_linker="$host_os dyld"
10918 version_type=darwin
10921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10922 soname_spec='${libname}${release}${major}$shared_ext'
10923 shlibpath_overrides_runpath=yes
10924 shlibpath_var=DYLD_LIBRARY_PATH
10925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10932 version_type=linux # correct to gnu/linux during the next big refactor
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10940 freebsd* | dragonfly*)
10941 # DragonFly does not have aout. When/if they implement a new
10942 # versioning mechanism, adjust this.
10943 if test -x /usr/bin/objformat; then
10944 objformat=`/usr/bin/objformat`
10947 freebsd[23].*) objformat=aout ;;
10948 *) objformat=elf ;;
10951 version_type=freebsd-$objformat
10952 case $version_type in
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10963 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10968 freebsd3.[01]* | freebsdelf3.[01]*)
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10974 shlibpath_overrides_runpath=no
10975 hardcode_into_libs=yes
10977 *) # from 4.6 on, and DragonFly
10978 shlibpath_overrides_runpath=yes
10979 hardcode_into_libs=yes
10985 version_type=linux # correct to gnu/linux during the next big refactor
10988 dynamic_linker="$host_os runtime_loader"
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10994 hardcode_into_libs=yes
10997 hpux9* | hpux10* | hpux11*)
10998 # Give a soname corresponding to the major version so that dld.sl refuses to
10999 # link against other versions.
11006 hardcode_into_libs=yes
11007 dynamic_linker="$host_os dld.so"
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 if test "X$HPUX_IA64_MODE" = X32; then
11013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11021 hardcode_into_libs=yes
11022 dynamic_linker="$host_os dld.sl"
11023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11032 dynamic_linker="$host_os dld.sl"
11033 shlibpath_var=SHLIB_PATH
11034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11040 postinstall_cmds='chmod 555 $lib'
11041 # or fails outright, so override atomically:
11042 install_override_mode=555
11046 version_type=linux # correct to gnu/linux during the next big refactor
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=no
11054 hardcode_into_libs=yes
11057 irix5* | irix6* | nonstopux*)
11059 nonstopux*) version_type=nonstopux ;;
11061 if test "$lt_cv_prog_gnu_ld" = yes; then
11062 version_type=linux # correct to gnu/linux during the next big refactor
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11072 irix5* | nonstopux*)
11073 libsuff= shlibsuff=
11076 case $LD in # libtool.m4 will add one of these switches to LD
11077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11078 libsuff= shlibsuff= libmagic=32-bit;;
11079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11080 libsuff=32 shlibsuff=N32 libmagic=N32;;
11081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11083 *) libsuff= shlibsuff= libmagic=never-match;;
11087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11088 shlibpath_overrides_runpath=no
11089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11091 hardcode_into_libs=yes
11094 # No shared lib support for Linux oldld, aout, or coff.
11095 linux*oldld* | linux*aout* | linux*coff*)
11099 # This must be glibc/ELF.
11100 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11101 version_type=linux # correct to gnu/linux during the next big refactor
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11110 # Some binutils ld are patched to set DT_RUNPATH
11111 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11112 $as_echo_n "(cached) " >&6
11114 lt_cv_shlibpath_overrides_runpath=no
11115 save_LDFLAGS=$LDFLAGS
11116 save_libdir=$libdir
11117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11132 lt_cv_shlibpath_overrides_runpath=yes
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LDFLAGS=$save_LDFLAGS
11138 libdir=$save_libdir
11142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11144 # This implies no fast_install, which is unacceptable.
11145 # Some rework will be needed to allow for fast_install
11146 # before this can be enabled.
11147 hardcode_into_libs=yes
11149 # Append ld.so.conf contents to the search path
11150 if test -f /etc/ld.so.conf; then
11151 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' ' '`
11152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11155 # We used to test for /lib/ld.so.1 and disable shared libraries on
11156 # powerpc, because MkLinux only supported shared libraries with the
11157 # GNU dynamic linker. Since this was broken with cross compilers,
11158 # most powerpc-linux boxes support dynamic linking these days and
11159 # people can always --disable-shared, the test was removed, and we
11160 # assume the GNU/Linux dynamic linker is in use.
11161 dynamic_linker='GNU/Linux ld.so'
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=no
11172 hardcode_into_libs=yes
11173 dynamic_linker='NetBSD ld.elf_so'
11180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11183 dynamic_linker='NetBSD (a.out) ld.so'
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 dynamic_linker='NetBSD ld.elf_so'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 shlibpath_overrides_runpath=yes
11191 hardcode_into_libs=yes
11195 version_type=linux # correct to gnu/linux during the next big refactor
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=no
11209 hardcode_into_libs=yes
11210 dynamic_linker='ldqnx.so'
11215 sys_lib_dlsearch_path_spec="/usr/lib"
11217 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11219 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11220 *) need_version=no ;;
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11227 openbsd2.[89] | openbsd2.[89].*)
11228 shlibpath_overrides_runpath=no
11231 shlibpath_overrides_runpath=yes
11235 shlibpath_overrides_runpath=yes
11240 libname_spec='$name'
11243 library_names_spec='$libname${shared_ext} $libname.a'
11244 dynamic_linker='OS/2 ld.exe'
11245 shlibpath_var=LIBPATH
11248 osf3* | osf4* | osf5*)
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11256 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11264 version_type=linux # correct to gnu/linux during the next big refactor
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 hardcode_into_libs=yes
11272 # ldd complains unless libraries are executable
11273 postinstall_cmds='chmod +x $lib'
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=yes
11282 if test "$with_gnu_ld" = yes; then
11289 version_type=linux # correct to gnu/linux during the next big refactor
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 case $host_vendor in
11295 shlibpath_overrides_runpath=no
11297 runpath_var=LD_RUN_PATH
11305 shlibpath_overrides_runpath=no
11306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11312 if test -d /usr/nec ;then
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11315 soname_spec='$libname${shared_ext}.$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11321 version_type=freebsd-elf
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes
11328 hardcode_into_libs=yes
11329 if test "$with_gnu_ld" = yes; then
11330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11332 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11335 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11339 sys_lib_dlsearch_path_spec='/usr/lib'
11343 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11344 version_type=linux # correct to gnu/linux during the next big refactor
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=no
11350 hardcode_into_libs=yes
11354 version_type=linux # correct to gnu/linux during the next big refactor
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 shlibpath_var=LD_LIBRARY_PATH
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11365 $as_echo "$dynamic_linker" >&6; }
11366 test "$dynamic_linker" = no && can_build_shared=no
11368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11369 if test "$GCC" = yes; then
11370 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11373 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11374 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11377 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11474 if test -n "$hardcode_libdir_flag_spec" ||
11475 test -n "$runpath_var" ||
11476 test "X$hardcode_automatic" = "Xyes" ; then
11478 # We can hardcode non-existent directories.
11479 if test "$hardcode_direct" != no &&
11480 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11481 # have to relink, otherwise we might link with an installed library
11482 # when we should be linking with a yet-to-be-installed one
11483 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11484 test "$hardcode_minus_L" != no; then
11485 # Linking always hardcodes the temporary library directory.
11486 hardcode_action=relink
11488 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11489 hardcode_action=immediate
11492 # We cannot hardcode anything, or else we can only hardcode existing
11494 hardcode_action=unsupported
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11497 $as_echo "$hardcode_action" >&6; }
11499 if test "$hardcode_action" = relink ||
11500 test "$inherit_rpath" = yes; then
11501 # Fast installation is not supported
11502 enable_fast_install=no
11503 elif test "$shlibpath_overrides_runpath" = yes ||
11504 test "$enable_shared" = no; then
11505 # Fast installation is not necessary
11506 enable_fast_install=needless
11514 if test "x$enable_dlopen" != xyes; then
11515 enable_dlopen=unknown
11516 enable_dlopen_self=unknown
11517 enable_dlopen_self_static=unknown
11524 lt_cv_dlopen="load_add_on"
11526 lt_cv_dlopen_self=yes
11529 mingw* | pw32* | cegcc*)
11530 lt_cv_dlopen="LoadLibrary"
11535 lt_cv_dlopen="dlopen"
11540 # if libdl is installed we need to link against it
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11543 if ${ac_cv_lib_dl_dlopen+:} false; then :
11544 $as_echo_n "(cached) " >&6
11546 ac_check_lib_save_LIBS=$LIBS
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_dl_dlopen=yes
11569 ac_cv_lib_dl_dlopen=no
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11581 lt_cv_dlopen="dyld"
11583 lt_cv_dlopen_self=yes
11590 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11591 if test "x$ac_cv_func_shl_load" = xyes; then :
11592 lt_cv_dlopen="shl_load"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11596 if ${ac_cv_lib_dld_shl_load+:} false; then :
11597 $as_echo_n "(cached) " >&6
11599 ac_check_lib_save_LIBS=$LIBS
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11614 return shl_load ();
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_dld_shl_load=yes
11622 ac_cv_lib_dld_shl_load=no
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11630 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11633 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11634 if test "x$ac_cv_func_dlopen" = xyes; then :
11635 lt_cv_dlopen="dlopen"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11639 if ${ac_cv_lib_dl_dlopen+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 ac_check_lib_save_LIBS=$LIBS
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dl_dlopen=yes
11665 ac_cv_lib_dl_dlopen=no
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11678 if ${ac_cv_lib_svld_dlopen+:} false; then :
11679 $as_echo_n "(cached) " >&6
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lsvld $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11701 if ac_fn_c_try_link "$LINENO"; then :
11702 ac_cv_lib_svld_dlopen=yes
11704 ac_cv_lib_svld_dlopen=no
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11717 if ${ac_cv_lib_dld_dld_link+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 ac_check_lib_save_LIBS=$LIBS
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11735 return dld_link ();
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dld_dld_link=yes
11743 ac_cv_lib_dld_dld_link=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11773 if test "x$lt_cv_dlopen" != xno; then
11779 case $lt_cv_dlopen in
11781 save_CPPFLAGS="$CPPFLAGS"
11782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11784 save_LDFLAGS="$LDFLAGS"
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11788 LIBS="$lt_cv_dlopen_libs $LIBS"
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11792 if ${lt_cv_dlopen_self+:} false; then :
11793 $as_echo_n "(cached) " >&6
11795 if test "$cross_compiling" = yes; then :
11796 lt_cv_dlopen_self=cross
11798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799 lt_status=$lt_dlunknown
11800 cat > conftest.$ac_ext <<_LT_EOF
11801 #line $LINENO "configure"
11802 #include "confdefs.h"
11811 # define LT_DLGLOBAL RTLD_GLOBAL
11814 # define LT_DLGLOBAL DL_GLOBAL
11816 # define LT_DLGLOBAL 0
11820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821 find out it does not work in some platform. */
11822 #ifndef LT_DLLAZY_OR_NOW
11824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11827 # define LT_DLLAZY_OR_NOW DL_LAZY
11830 # define LT_DLLAZY_OR_NOW RTLD_NOW
11833 # define LT_DLLAZY_OR_NOW DL_NOW
11835 # define LT_DLLAZY_OR_NOW 0
11842 /* When -fvisbility=hidden is used, assume the code has been annotated
11843 correspondingly for the symbols needed. */
11844 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11845 int fnord () __attribute__((visibility("default")));
11848 int fnord () { return 42; }
11851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11852 int status = $lt_dlunknown;
11856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11860 else puts (dlerror ());
11862 /* dlclose (self); */
11870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11871 (eval $ac_link) 2>&5
11873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11874 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11875 (./conftest; exit; ) >&5 2>/dev/null
11877 case x$lt_status in
11878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11883 # compilation failed
11884 lt_cv_dlopen_self=no
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11892 $as_echo "$lt_cv_dlopen_self" >&6; }
11894 if test "x$lt_cv_dlopen_self" = xyes; then
11895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11897 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11898 if ${lt_cv_dlopen_self_static+:} false; then :
11899 $as_echo_n "(cached) " >&6
11901 if test "$cross_compiling" = yes; then :
11902 lt_cv_dlopen_self_static=cross
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<_LT_EOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11917 # define LT_DLGLOBAL RTLD_GLOBAL
11920 # define LT_DLGLOBAL DL_GLOBAL
11922 # define LT_DLGLOBAL 0
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11933 # define LT_DLLAZY_OR_NOW DL_LAZY
11936 # define LT_DLLAZY_OR_NOW RTLD_NOW
11939 # define LT_DLLAZY_OR_NOW DL_NOW
11941 # define LT_DLLAZY_OR_NOW 0
11948 /* When -fvisbility=hidden is used, assume the code has been annotated
11949 correspondingly for the symbols needed. */
11950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951 int fnord () __attribute__((visibility("default")));
11954 int fnord () { return 42; }
11957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958 int status = $lt_dlunknown;
11962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 else puts (dlerror ());
11968 /* dlclose (self); */
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977 (eval $ac_link) 2>&5
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11981 (./conftest; exit; ) >&5 2>/dev/null
11983 case x$lt_status in
11984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11989 # compilation failed
11990 lt_cv_dlopen_self_static=no
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12001 CPPFLAGS="$save_CPPFLAGS"
12002 LDFLAGS="$save_LDFLAGS"
12007 case $lt_cv_dlopen_self in
12008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12009 *) enable_dlopen_self=unknown ;;
12012 case $lt_cv_dlopen_self_static in
12013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12014 *) enable_dlopen_self_static=unknown ;;
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12039 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12040 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042 $as_echo "yes" >&6; }
12044 # FIXME - insert some real tests, host_os isn't really good enough
12047 if test -n "$STRIP" ; then
12048 striplib="$STRIP -x"
12049 old_striplib="$STRIP -S"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051 $as_echo "yes" >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12075 # Report which library types will actually be built
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12079 $as_echo "$can_build_shared" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12082 $as_echo_n "checking whether to build shared libraries... " >&6; }
12083 test "$can_build_shared" = "no" && enable_shared=no
12085 # On AIX, shared libraries and static libraries use the same namespace, and
12086 # are all built from PIC.
12089 test "$enable_shared" = yes && enable_static=no
12090 if test -n "$RANLIB"; then
12091 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12092 postinstall_cmds='$RANLIB $lib'
12097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12098 test "$enable_shared" = yes && enable_static=no
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12103 $as_echo "$enable_shared" >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12106 $as_echo_n "checking whether to build static libraries... " >&6; }
12107 # Make sure either enable_shared or enable_static is yes.
12108 test "$enable_shared" = yes || enable_static=yes
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12110 $as_echo "$enable_static" >&6; }
12117 ac_cpp='$CPP $CPPFLAGS'
12118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12126 (test "X$CXX" != "Xg++"))) ; then
12128 ac_cpp='$CXXCPP $CPPFLAGS'
12129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12134 if test -z "$CXXCPP"; then
12135 if ${ac_cv_prog_CXXCPP+:} false; then :
12136 $as_echo_n "(cached) " >&6
12138 # Double quotes because CXXCPP needs to be expanded
12139 for CXXCPP in "$CXX -E" "/lib/cpp"
12141 ac_preproc_ok=false
12142 for ac_cxx_preproc_warn_flag in '' yes
12144 # Use a header file that comes with gcc, so configuring glibc
12145 # with a fresh cross-compiler works.
12146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12147 # <limits.h> exists even on freestanding compilers.
12148 # On the NeXT, cc -E runs the code through the compiler's parser,
12149 # not just through cpp. "Syntax error" is here to catch this case.
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 # include <limits.h>
12155 # include <assert.h>
12159 if ac_fn_cxx_try_cpp "$LINENO"; then :
12162 # Broken: fails on valid input.
12165 rm -f conftest.err conftest.i conftest.$ac_ext
12167 # OK, works on sane cases. Now check whether nonexistent headers
12168 # can be detected and how.
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171 #include <ac_nonexistent.h>
12173 if ac_fn_cxx_try_cpp "$LINENO"; then :
12174 # Broken: success on invalid input.
12177 # Passes both tests.
12181 rm -f conftest.err conftest.i conftest.$ac_ext
12184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12185 rm -f conftest.i conftest.err conftest.$ac_ext
12186 if $ac_preproc_ok; then :
12191 ac_cv_prog_CXXCPP=$CXXCPP
12194 CXXCPP=$ac_cv_prog_CXXCPP
12196 ac_cv_prog_CXXCPP=$CXXCPP
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12199 $as_echo "$CXXCPP" >&6; }
12200 ac_preproc_ok=false
12201 for ac_cxx_preproc_warn_flag in '' yes
12203 # Use a header file that comes with gcc, so configuring glibc
12204 # with a fresh cross-compiler works.
12205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 # <limits.h> exists even on freestanding compilers.
12207 # On the NeXT, cc -E runs the code through the compiler's parser,
12208 # not just through cpp. "Syntax error" is here to catch this case.
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12212 # include <limits.h>
12214 # include <assert.h>
12218 if ac_fn_cxx_try_cpp "$LINENO"; then :
12221 # Broken: fails on valid input.
12224 rm -f conftest.err conftest.i conftest.$ac_ext
12226 # OK, works on sane cases. Now check whether nonexistent headers
12227 # can be detected and how.
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #include <ac_nonexistent.h>
12232 if ac_fn_cxx_try_cpp "$LINENO"; then :
12233 # Broken: success on invalid input.
12236 # Passes both tests.
12240 rm -f conftest.err conftest.i conftest.$ac_ext
12243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12244 rm -f conftest.i conftest.err conftest.$ac_ext
12245 if $ac_preproc_ok; then :
12248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12250 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12251 See \`config.log' for more details" "$LINENO" 5; }
12255 ac_cpp='$CPP $CPPFLAGS'
12256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261 _lt_caught_CXX_error=yes
12265 ac_cpp='$CXXCPP $CPPFLAGS'
12266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12270 archive_cmds_need_lc_CXX=no
12271 allow_undefined_flag_CXX=
12272 always_export_symbols_CXX=no
12273 archive_expsym_cmds_CXX=
12274 compiler_needs_object_CXX=no
12275 export_dynamic_flag_spec_CXX=
12276 hardcode_direct_CXX=no
12277 hardcode_direct_absolute_CXX=no
12278 hardcode_libdir_flag_spec_CXX=
12279 hardcode_libdir_separator_CXX=
12280 hardcode_minus_L_CXX=no
12281 hardcode_shlibpath_var_CXX=unsupported
12282 hardcode_automatic_CXX=no
12283 inherit_rpath_CXX=no
12285 module_expsym_cmds_CXX=
12286 link_all_deplibs_CXX=unknown
12287 old_archive_cmds_CXX=$old_archive_cmds
12288 reload_flag_CXX=$reload_flag
12289 reload_cmds_CXX=$reload_cmds
12290 no_undefined_flag_CXX=
12291 whole_archive_flag_spec_CXX=
12292 enable_shared_with_static_runtimes_CXX=no
12294 # Source file extension for C++ test sources.
12297 # Object file extension for compiled C++ test sources.
12301 # No sense in running all these tests if we already determined that
12302 # the CXX compiler isn't working. Some variables (like enable_shared)
12303 # are currently assumed to apply to all compilers on this platform,
12304 # and will be corrupted by setting them based on a non-working compiler.
12305 if test "$_lt_caught_CXX_error" != yes; then
12306 # Code to be used in simple compile tests
12307 lt_simple_compile_test_code="int some_variable = 0;"
12309 # Code to be used in simple link tests
12310 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12319 # If no C compiler was specified, use CC.
12322 # If no C compiler flags were specified, use CFLAGS.
12323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12325 # Allow CC to be a program name with arguments.
12329 # save warnings/boilerplate of simple test code
12330 ac_outfile=conftest.$ac_objext
12331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12333 _lt_compiler_boilerplate=`cat conftest.err`
12336 ac_outfile=conftest.$ac_objext
12337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12339 _lt_linker_boilerplate=`cat conftest.err`
12343 # Allow CC to be a program name with arguments.
12345 lt_save_CFLAGS=$CFLAGS
12349 lt_save_with_gnu_ld=$with_gnu_ld
12350 lt_save_path_LD=$lt_cv_path_LD
12351 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12352 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12354 $as_unset lt_cv_prog_gnu_ld
12356 if test -n "${lt_cv_path_LDCXX+set}"; then
12357 lt_cv_path_LD=$lt_cv_path_LDCXX
12359 $as_unset lt_cv_path_LD
12361 test -z "${LDCXX+set}" || LD=$LDCXX
12366 for cc_temp in $compiler""; do
12368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12374 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12377 if test -n "$compiler"; then
12378 # We don't want -fno-exception when compiling C++ code, so set the
12379 # no_builtin_flag separately
12380 if test "$GXX" = yes; then
12381 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12383 lt_prog_compiler_no_builtin_flag_CXX=
12386 if test "$GXX" = yes; then
12387 # Set up default GNU C++ configuration
12391 # Check whether --with-gnu-ld was given.
12392 if test "${with_gnu_ld+set}" = set; then :
12393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12399 if test "$GCC" = yes; then
12400 # Check if gcc -print-prog-name=ld gives a path.
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12402 $as_echo_n "checking for ld used by $CC... " >&6; }
12405 # gcc leaves a trailing carriage return which upsets mingw
12406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12411 # Accept absolute paths.
12413 re_direlt='/[^/][^/]*/\.\./'
12414 # Canonicalize the pathname of ld
12415 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12416 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12417 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12419 test -z "$LD" && LD="$ac_prog"
12422 # If it fails, then pretend we aren't using GCC.
12426 # If it is relative, then search for the first ld in PATH.
12427 with_gnu_ld=unknown
12430 elif test "$with_gnu_ld" = yes; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12432 $as_echo_n "checking for GNU ld... " >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12435 $as_echo_n "checking for non-GNU ld... " >&6; }
12437 if ${lt_cv_path_LD+:} false; then :
12438 $as_echo_n "(cached) " >&6
12440 if test -z "$LD"; then
12441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12442 for ac_dir in $PATH; do
12444 test -z "$ac_dir" && ac_dir=.
12445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12446 lt_cv_path_LD="$ac_dir/$ac_prog"
12447 # Check to see if the program is GNU ld. I'd rather use --version,
12448 # but apparently some variants of GNU ld only accept -v.
12449 # Break only if it was the GNU/non-GNU ld that we prefer.
12450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12451 *GNU* | *'with BFD'*)
12452 test "$with_gnu_ld" != no && break
12455 test "$with_gnu_ld" != yes && break
12462 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12466 LD="$lt_cv_path_LD"
12467 if test -n "$LD"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12469 $as_echo "$LD" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12474 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12476 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12477 if ${lt_cv_prog_gnu_ld+:} false; then :
12478 $as_echo_n "(cached) " >&6
12480 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12481 case `$LD -v 2>&1 </dev/null` in
12482 *GNU* | *'with BFD'*)
12483 lt_cv_prog_gnu_ld=yes
12486 lt_cv_prog_gnu_ld=no
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12491 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12492 with_gnu_ld=$lt_cv_prog_gnu_ld
12500 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12501 # archiving commands below assume that GNU ld is being used.
12502 if test "$with_gnu_ld" = yes; then
12503 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12504 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'
12506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12509 # If archive_cmds runs LD, not CC, wlarc should be empty
12510 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12511 # investigate it a little bit more. (MM)
12514 # ancient GNU ld didn't support --whole-archive et. al.
12515 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12516 $GREP 'no-whole-archive' > /dev/null; then
12517 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12519 whole_archive_flag_spec_CXX=
12525 # A generic and very simple default shared library creation
12526 # command for GNU C++ for the case where it uses the native
12527 # linker, instead of GNU ld. If possible, this setting should
12528 # overridden to take advantage of the native linker features on
12529 # the platform it is being used on.
12530 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12533 # Commands to make compiler produce verbose output that lists
12534 # what "hidden" libraries, object files and flags are used when
12535 # linking a shared library.
12536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12544 # PORTME: fill in a description of your system's C++ link characteristics
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12550 # FIXME: insert proper C++ library support
12554 if test "$host_cpu" = ia64; then
12555 # On IA64, the linker does run time linking by default, so we don't
12556 # have to do anything special.
12557 aix_use_runtimelinking=no
12558 exp_sym_flag='-Bexport'
12561 aix_use_runtimelinking=no
12563 # Test if we are trying to use run time linking or normal
12564 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12565 # need to do runtime linking.
12566 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12567 for ld_flag in $LDFLAGS; do
12570 aix_use_runtimelinking=yes
12578 exp_sym_flag='-bexport'
12579 no_entry_flag='-bnoentry'
12582 # When large executables or shared objects are built, AIX ld can
12583 # have problems creating the table of contents. If linking a library
12584 # or program results in "error TOC overflow" add -mminimal-toc to
12585 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12586 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12588 archive_cmds_CXX=''
12589 hardcode_direct_CXX=yes
12590 hardcode_direct_absolute_CXX=yes
12591 hardcode_libdir_separator_CXX=':'
12592 link_all_deplibs_CXX=yes
12593 file_list_spec_CXX='${wl}-f,'
12595 if test "$GXX" = yes; then
12596 case $host_os in aix4.[012]|aix4.[012].*)
12597 # We only want to do this on AIX 4.2 and lower, the check
12598 # below for broken collect2 doesn't work under 4.3+
12599 collect2name=`${CC} -print-prog-name=collect2`
12600 if test -f "$collect2name" &&
12601 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12603 # We have reworked collect2
12606 # We have old collect2
12607 hardcode_direct_CXX=unsupported
12608 # It fails to find uninstalled libraries when the uninstalled
12609 # path is not listed in the libpath. Setting hardcode_minus_L
12610 # to unsupported forces relinking
12611 hardcode_minus_L_CXX=yes
12612 hardcode_libdir_flag_spec_CXX='-L$libdir'
12613 hardcode_libdir_separator_CXX=
12616 shared_flag='-shared'
12617 if test "$aix_use_runtimelinking" = yes; then
12618 shared_flag="$shared_flag "'${wl}-G'
12622 if test "$host_cpu" = ia64; then
12623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12624 # chokes on -Wl,-G. The following line is correct:
12627 if test "$aix_use_runtimelinking" = yes; then
12628 shared_flag='${wl}-G'
12630 shared_flag='${wl}-bM:SRE'
12635 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12636 # It seems that -bexpall does not export symbols beginning with
12637 # underscore (_), so it is better to generate a list of symbols to
12639 always_export_symbols_CXX=yes
12640 if test "$aix_use_runtimelinking" = yes; then
12641 # Warning - without using the other runtime loading flags (-brtl),
12642 # -berok will link without error, but may produce a broken library.
12643 allow_undefined_flag_CXX='-berok'
12644 # Determine the default libpath from the value encoded in an empty
12646 if test "${lt_cv_aix_libpath+set}" = set; then
12647 aix_libpath=$lt_cv_aix_libpath
12649 if ${lt_cv_aix_libpath__CXX+:} false; then :
12650 $as_echo_n "(cached) " >&6
12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12663 if ac_fn_cxx_try_link "$LINENO"; then :
12665 lt_aix_libpath_sed='
12666 /Import File Strings/,/^$/ {
12668 s/^0 *\([^ ]*\) *$/\1/
12672 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12673 # Check for a 64-bit object if we didn't find anything.
12674 if test -z "$lt_cv_aix_libpath__CXX"; then
12675 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 if test -z "$lt_cv_aix_libpath__CXX"; then
12681 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12686 aix_libpath=$lt_cv_aix_libpath__CXX
12689 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12691 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"
12693 if test "$host_cpu" = ia64; then
12694 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12695 allow_undefined_flag_CXX="-z nodefs"
12696 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"
12698 # Determine the default libpath from the value encoded in an
12699 # empty executable.
12700 if test "${lt_cv_aix_libpath+set}" = set; then
12701 aix_libpath=$lt_cv_aix_libpath
12703 if ${lt_cv_aix_libpath__CXX+:} false; then :
12704 $as_echo_n "(cached) " >&6
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12717 if ac_fn_cxx_try_link "$LINENO"; then :
12719 lt_aix_libpath_sed='
12720 /Import File Strings/,/^$/ {
12722 s/^0 *\([^ ]*\) *$/\1/
12726 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12727 # Check for a 64-bit object if we didn't find anything.
12728 if test -z "$lt_cv_aix_libpath__CXX"; then
12729 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 if test -z "$lt_cv_aix_libpath__CXX"; then
12735 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12740 aix_libpath=$lt_cv_aix_libpath__CXX
12743 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12744 # Warning - without using the other run time loading flags,
12745 # -berok will link without error, but may produce a broken library.
12746 no_undefined_flag_CXX=' ${wl}-bernotok'
12747 allow_undefined_flag_CXX=' ${wl}-berok'
12748 if test "$with_gnu_ld" = yes; then
12749 # We only use this code for GNU lds that support --whole-archive.
12750 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12752 # Exported symbols can be pulled into shared objects from archives
12753 whole_archive_flag_spec_CXX='$convenience'
12755 archive_cmds_need_lc_CXX=yes
12756 # This is similar to how AIX traditionally builds its shared
12758 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'
12764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12765 allow_undefined_flag_CXX=unsupported
12766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12767 # support --undefined. This deserves some investigation. FIXME
12768 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12775 case $cc_basename in
12777 # FIXME: insert proper C++ library support
12783 cygwin* | mingw* | pw32* | cegcc*)
12784 case $GXX,$cc_basename in
12787 # hardcode_libdir_flag_spec is actually meaningless, as there is
12788 # no search path for DLLs.
12789 hardcode_libdir_flag_spec_CXX=' '
12790 allow_undefined_flag_CXX=unsupported
12791 always_export_symbols_CXX=yes
12792 file_list_spec_CXX='@'
12793 # Tell ltmain to make .lib files, not .a files.
12795 # Tell ltmain to make .dll files, not .so files.
12797 # FIXME: Setting linknames here is a bad hack.
12798 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12799 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12800 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12802 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12804 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12806 # The linker will not automatically build a static lib if we build a DLL.
12807 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12808 enable_shared_with_static_runtimes_CXX=yes
12810 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12811 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12812 lt_tool_outputfile="@TOOL_OUTPUT@"~
12813 case $lt_outputfile in
12816 lt_outputfile="$lt_outputfile.exe"
12817 lt_tool_outputfile="$lt_tool_outputfile.exe"
12820 func_to_tool_file "$lt_outputfile"~
12821 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12822 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12823 $RM "$lt_outputfile.manifest";
12828 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12829 # as there is no search path for DLLs.
12830 hardcode_libdir_flag_spec_CXX='-L$libdir'
12831 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12832 allow_undefined_flag_CXX=unsupported
12833 always_export_symbols_CXX=no
12834 enable_shared_with_static_runtimes_CXX=yes
12836 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12837 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'
12838 # If the export-symbols file already is a .def file (1st line
12839 # is EXPORTS), use it as is; otherwise, prepend...
12840 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12841 cp $export_symbols $output_objdir/$soname.def;
12843 echo EXPORTS > $output_objdir/$soname.def;
12844 cat $export_symbols >> $output_objdir/$soname.def;
12846 $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'
12853 darwin* | rhapsody*)
12856 archive_cmds_need_lc_CXX=no
12857 hardcode_direct_CXX=no
12858 hardcode_automatic_CXX=yes
12859 hardcode_shlibpath_var_CXX=unsupported
12860 if test "$lt_cv_ld_force_load" = "yes"; then
12861 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\"`'
12864 whole_archive_flag_spec_CXX=''
12866 link_all_deplibs_CXX=yes
12867 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12868 case $cc_basename in
12869 ifort*) _lt_dar_can_shared=yes ;;
12870 *) _lt_dar_can_shared=$GCC ;;
12872 if test "$_lt_dar_can_shared" = "yes"; then
12873 output_verbose_link_cmd=func_echo_all
12874 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}"
12875 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12876 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}"
12877 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}"
12878 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12879 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}"
12880 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}"
12890 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12896 # Green Hills C++ Compiler
12897 # FIXME: insert proper C++ library support
12901 # FIXME: insert proper C++ library support
12908 # C++ shared libraries reported to be fairly broken before
12914 archive_cmds_need_lc_CXX=no
12917 freebsd* | dragonfly*)
12918 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12924 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925 link_all_deplibs_CXX=yes
12929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12930 hardcode_libdir_separator_CXX=:
12931 export_dynamic_flag_spec_CXX='${wl}-E'
12932 hardcode_direct_CXX=yes
12933 hardcode_minus_L_CXX=yes # Not in the search PATH,
12934 # but as the default
12935 # location of the library.
12937 case $cc_basename in
12939 # FIXME: insert proper C++ library support
12943 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'
12944 # Commands to make compiler produce verbose output that lists
12945 # what "hidden" libraries, object files and flags are used when
12946 # linking a shared library.
12948 # There doesn't appear to be a way to prevent this compiler from
12949 # explicitly linking system object files so we need to strip them
12950 # from the output so that they don't get included in the library
12952 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"'
12955 if test "$GXX" = yes; then
12956 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'
12958 # FIXME: insert proper C++ library support
12966 if test $with_gnu_ld = no; then
12967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12968 hardcode_libdir_separator_CXX=:
12974 export_dynamic_flag_spec_CXX='${wl}-E'
12980 hardcode_direct_CXX=no
12981 hardcode_shlibpath_var_CXX=no
12984 hardcode_direct_CXX=yes
12985 hardcode_direct_absolute_CXX=yes
12986 hardcode_minus_L_CXX=yes # Not in the search PATH,
12987 # but as the default
12988 # location of the library.
12992 case $cc_basename in
12994 # FIXME: insert proper C++ library support
13000 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13006 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13009 # Commands to make compiler produce verbose output that lists
13010 # what "hidden" libraries, object files and flags are used when
13011 # linking a shared library.
13013 # There doesn't appear to be a way to prevent this compiler from
13014 # explicitly linking system object files so we need to strip them
13015 # from the output so that they don't get included in the library
13017 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"'
13020 if test "$GXX" = yes; then
13021 if test $with_gnu_ld = no; then
13024 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13030 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'
13035 # FIXME: insert proper C++ library support
13043 hardcode_direct_CXX=no
13044 hardcode_shlibpath_var_CXX=no
13045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13046 export_dynamic_flag_spec_CXX='${wl}-E'
13047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13048 # Instead, shared libraries are loaded at an image base (0x10000000 by
13049 # default) and relocated if they conflict, which is a slow very memory
13050 # consuming and fragmenting process. To avoid this, we pick a random,
13051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13052 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13053 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'
13054 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'
13057 case $cc_basename in
13060 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'
13062 # Archives containing C++ object files must be created using
13063 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13064 # necessary to make sure instantiated templates are included
13066 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13069 if test "$GXX" = yes; then
13070 if test "$with_gnu_ld" = no; then
13071 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'
13073 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'
13076 link_all_deplibs_CXX=yes
13079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13080 hardcode_libdir_separator_CXX=:
13081 inherit_rpath_CXX=yes
13084 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13085 case $cc_basename in
13087 # Kuck and Associates, Inc. (KAI) C++ Compiler
13089 # KCC will only create a shared library if the output file
13090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13091 # to its proper name (with version) after linking.
13092 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'
13093 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'
13094 # Commands to make compiler produce verbose output that lists
13095 # what "hidden" libraries, object files and flags are used when
13096 # linking a shared library.
13098 # There doesn't appear to be a way to prevent this compiler from
13099 # explicitly linking system object files so we need to strip them
13100 # from the output so that they don't get included in the library
13102 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"'
13104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13107 # Archives containing C++ object files must be created using
13108 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13109 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13114 # version 8.0 and above of icpc choke on multiply defined symbols
13115 # if we add $predep_objects and $postdep_objects, however 7.1 and
13116 # earlier do not add the objects themselves.
13117 case `$CC -V 2>&1` in
13119 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 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'
13122 *) # Version 8.0 or newer
13125 ia64*) tmp_idyn=' -i_dynamic';;
13127 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 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'
13131 archive_cmds_need_lc_CXX=no
13132 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13134 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13137 # Portland Group C++ compiler
13139 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13140 prelink_cmds_CXX='tpldir=Template.dir~
13142 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13143 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13144 old_archive_cmds_CXX='tpldir=Template.dir~
13146 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13147 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13149 archive_cmds_CXX='tpldir=Template.dir~
13151 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13152 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13153 archive_expsym_cmds_CXX='tpldir=Template.dir~
13155 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13156 $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'
13158 *) # Version 6 and above use weak symbols
13159 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13160 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'
13164 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13165 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13166 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'
13170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171 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'
13173 runpath_var=LD_RUN_PATH
13174 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13175 hardcode_libdir_separator_CXX=:
13177 # Commands to make compiler produce verbose output that lists
13178 # what "hidden" libraries, object files and flags are used when
13179 # linking a shared library.
13181 # There doesn't appear to be a way to prevent this compiler from
13182 # explicitly linking system object files so we need to strip them
13183 # from the output so that they don't get included in the library
13185 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'
13187 xl* | mpixl* | bgxl*)
13188 # IBM XL 8.0 on PPC, with GNU ld
13189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13191 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 if test "x$supports_anon_versioning" = xyes; then
13193 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13195 echo "local: *; };" >> $output_objdir/$libname.ver~
13196 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13200 case `$CC -V 2>&1 | sed 5q` in
13203 no_undefined_flag_CXX=' -zdefs'
13204 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205 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'
13206 hardcode_libdir_flag_spec_CXX='-R$libdir'
13207 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'
13208 compiler_needs_object_CXX=yes
13210 # Not sure whether something based on
13211 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13213 output_verbose_link_cmd='func_echo_all'
13215 # Archives containing C++ object files must be created using
13216 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13217 # necessary to make sure instantiated templates are included
13219 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13227 # FIXME: insert proper C++ library support
13232 # FIXME: insert proper C++ library support
13237 case $cc_basename in
13239 # FIXME: insert proper C++ library support
13243 # FIXME: insert proper C++ library support
13250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13251 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13253 hardcode_libdir_flag_spec_CXX='-R$libdir'
13254 hardcode_direct_CXX=yes
13255 hardcode_shlibpath_var_CXX=no
13257 # Workaround some broken pre-1.5 toolchains
13258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13266 # C++ shared libraries are fairly broken
13271 if test -f /usr/libexec/ld.so; then
13272 hardcode_direct_CXX=yes
13273 hardcode_shlibpath_var_CXX=no
13274 hardcode_direct_absolute_CXX=yes
13275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13278 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13279 export_dynamic_flag_spec_CXX='${wl}-E'
13280 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13282 output_verbose_link_cmd=func_echo_all
13288 osf3* | osf4* | osf5*)
13289 case $cc_basename in
13291 # Kuck and Associates, Inc. (KAI) C++ Compiler
13293 # KCC will only create a shared library if the output file
13294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13295 # to its proper name (with version) after linking.
13296 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'
13298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13299 hardcode_libdir_separator_CXX=:
13301 # Archives containing C++ object files must be created using
13302 # the KAI C++ compiler.
13304 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13305 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13309 # Rational C++ 2.4.1
13310 # FIXME: insert proper C++ library support
13316 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13317 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'
13318 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13321 allow_undefined_flag_CXX=' -expect_unresolved \*'
13322 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'
13323 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13324 echo "-hidden">> $lib.exp~
13325 $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~
13327 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13331 hardcode_libdir_separator_CXX=:
13333 # Commands to make compiler produce verbose output that lists
13334 # what "hidden" libraries, object files and flags are used when
13335 # linking a shared library.
13337 # There doesn't appear to be a way to prevent this compiler from
13338 # explicitly linking system object files so we need to strip them
13339 # from the output so that they don't get included in the library
13341 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"'
13344 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13345 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13348 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'
13351 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'
13355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13356 hardcode_libdir_separator_CXX=:
13358 # Commands to make compiler produce verbose output that lists
13359 # what "hidden" libraries, object files and flags are used when
13360 # linking a shared library.
13361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13364 # FIXME: insert proper C++ library support
13372 # FIXME: insert proper C++ library support
13377 case $cc_basename in
13380 # FIXME: insert proper C++ library support
13385 # FIXME: insert proper C++ library support
13389 # FIXME: insert proper C++ library support
13396 case $cc_basename in
13398 # Sun C++ 4.2, 5.x and Centerline C++
13399 archive_cmds_need_lc_CXX=yes
13400 no_undefined_flag_CXX=' -zdefs'
13401 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13402 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13403 $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'
13405 hardcode_libdir_flag_spec_CXX='-R$libdir'
13406 hardcode_shlibpath_var_CXX=no
13408 solaris2.[0-5] | solaris2.[0-5].*) ;;
13410 # The compiler driver will combine and reorder linker options,
13411 # but understands `-z linker_flag'.
13412 # Supported since Solaris 2.6 (maybe 2.5.1?)
13413 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13416 link_all_deplibs_CXX=yes
13418 output_verbose_link_cmd='func_echo_all'
13420 # Archives containing C++ object files must be created using
13421 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13422 # necessary to make sure instantiated templates are included
13424 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13427 # Green Hills C++ Compiler
13428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430 # The C++ compiler must be used to create the archive.
13431 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13434 # GNU C++ compiler with Solaris linker
13435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13436 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13437 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13438 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13439 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13440 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13447 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13449 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13450 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13451 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13453 # Commands to make compiler produce verbose output that lists
13454 # what "hidden" libraries, object files and flags are used when
13455 # linking a shared library.
13456 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13459 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13461 solaris2.[0-5] | solaris2.[0-5].*) ;;
13463 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13471 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13472 no_undefined_flag_CXX='${wl}-z,text'
13473 archive_cmds_need_lc_CXX=no
13474 hardcode_shlibpath_var_CXX=no
13475 runpath_var='LD_RUN_PATH'
13477 case $cc_basename in
13479 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 sysv5* | sco3.2v5* | sco5v6*)
13490 # Note: We can NOT use -z defs as we might desire, because we do not
13491 # link with -lc, and that would cause any symbols used from libc to
13492 # always be unresolved, which means just about no library would
13493 # ever link correctly. If we're not using GNU ld we use -z text
13494 # though, which does catch some bad symbols but isn't as heavy-handed
13496 no_undefined_flag_CXX='${wl}-z,text'
13497 allow_undefined_flag_CXX='${wl}-z,nodefs'
13498 archive_cmds_need_lc_CXX=no
13499 hardcode_shlibpath_var_CXX=no
13500 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13501 hardcode_libdir_separator_CXX=':'
13502 link_all_deplibs_CXX=yes
13503 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13504 runpath_var='LD_RUN_PATH'
13506 case $cc_basename in
13508 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13511 '"$old_archive_cmds_CXX"
13512 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13513 '"$reload_cmds_CXX"
13516 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 case $cc_basename in
13525 # NonStop-UX NCC 3.20
13526 # FIXME: insert proper C++ library support
13530 # FIXME: insert proper C++ library support
13537 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13548 $as_echo "$ld_shlibs_CXX" >&6; }
13549 test "$ld_shlibs_CXX" = no && can_build_shared=no
13555 ## There is no encapsulation within the following macros, do not change
13556 ## the running order or otherwise move them around unless you know exactly
13557 ## what you are doing...
13558 # Dependencies to place before and after the object being linked:
13559 predep_objects_CXX=
13560 postdep_objects_CXX=
13563 compiler_lib_search_path_CXX=
13565 cat > conftest.$ac_ext <<_LT_EOF
13569 Foo (void) { a = 0; }
13576 _lt_libdeps_save_CFLAGS=$CFLAGS
13577 case "$CC $CFLAGS " in #(
13578 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13579 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13580 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13584 (eval $ac_compile) 2>&5
13586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13587 test $ac_status = 0; }; then
13588 # Parse the compiler output and extract the necessary
13589 # objects, libraries and library flags.
13591 # Sentinel used to keep track of whether or not we are before
13592 # the conftest object file.
13593 pre_test_object_deps_done=no
13595 for p in `eval "$output_verbose_link_cmd"`; do
13596 case ${prev}${p} in
13599 # Some compilers place space between "-{L,R}" and the path.
13600 # Remove the space.
13601 if test $p = "-L" ||
13602 test $p = "-R"; then
13607 # Expand the sysroot to ease extracting the directories later.
13608 if test -z "$prev"; then
13610 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13611 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13612 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13616 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13618 if test "$pre_test_object_deps_done" = no; then
13621 # Internal compiler library paths should come after those
13622 # provided the user. The postdeps already come after the
13623 # user supplied libs so there is no need to process them.
13624 if test -z "$compiler_lib_search_path_CXX"; then
13625 compiler_lib_search_path_CXX="${prev}${p}"
13627 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13630 # The "-l" case would never come before the object being
13631 # linked, so don't bother handling this case.
13634 if test -z "$postdeps_CXX"; then
13635 postdeps_CXX="${prev}${p}"
13637 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13643 *.lto.$objext) ;; # Ignore GCC LTO objects
13645 # This assumes that the test object file only shows up
13646 # once in the compiler output.
13647 if test "$p" = "conftest.$objext"; then
13648 pre_test_object_deps_done=yes
13652 if test "$pre_test_object_deps_done" = no; then
13653 if test -z "$predep_objects_CXX"; then
13654 predep_objects_CXX="$p"
13656 predep_objects_CXX="$predep_objects_CXX $p"
13659 if test -z "$postdep_objects_CXX"; then
13660 postdep_objects_CXX="$p"
13662 postdep_objects_CXX="$postdep_objects_CXX $p"
13667 *) ;; # Ignore the rest.
13675 echo "libtool.m4: error: problem compiling CXX test program"
13678 $RM -f confest.$objext
13679 CFLAGS=$_lt_libdeps_save_CFLAGS
13681 # PORTME: override above test on systems where it is broken
13684 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13685 # hack all around it, let's just trust "g++" to DTRT.
13686 predep_objects_CXX=
13687 postdep_objects_CXX=
13692 case `$CC -V 2>&1 | sed 5q` in
13696 # The more standards-conforming stlport4 library is
13697 # incompatible with the Cstd library. Avoid specifying
13698 # it if it's in CXXFLAGS. Ignore libCrun as
13699 # -library=stlport4 depends on it.
13700 case " $CXX $CXXFLAGS " in
13701 *" -library=stlport4 "*)
13702 solaris_use_stlport4=yes
13706 if test "$solaris_use_stlport4" != yes; then
13707 postdeps_CXX='-library=Cstd -library=Crun'
13714 case $cc_basename in
13716 # The more standards-conforming stlport4 library is
13717 # incompatible with the Cstd library. Avoid specifying
13718 # it if it's in CXXFLAGS. Ignore libCrun as
13719 # -library=stlport4 depends on it.
13720 case " $CXX $CXXFLAGS " in
13721 *" -library=stlport4 "*)
13722 solaris_use_stlport4=yes
13726 # Adding this requires a known-good setup of shared libraries for
13727 # Sun compiler versions before 5.6, else PIC objects from an old
13728 # archive will be linked into the output, leading to subtle bugs.
13729 if test "$solaris_use_stlport4" != yes; then
13730 postdeps_CXX='-library=Cstd -library=Crun'
13738 case " $postdeps_CXX " in
13739 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13741 compiler_lib_search_dirs_CXX=
13742 if test -n "${compiler_lib_search_path_CXX}"; then
13743 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13776 lt_prog_compiler_wl_CXX=
13777 lt_prog_compiler_pic_CXX=
13778 lt_prog_compiler_static_CXX=
13781 # C++ specific cases for pic, static, wl, etc.
13782 if test "$GXX" = yes; then
13783 lt_prog_compiler_wl_CXX='-Wl,'
13784 lt_prog_compiler_static_CXX='-static'
13788 # All AIX code is PIC.
13789 if test "$host_cpu" = ia64; then
13790 # AIX 5 now supports IA64 processor
13791 lt_prog_compiler_static_CXX='-Bstatic'
13798 # see comment about AmigaOS4 .so support
13799 lt_prog_compiler_pic_CXX='-fPIC'
13802 # FIXME: we need at least 68020 code to build shared libraries, but
13803 # adding the `-m68020' flag to GCC prevents building anything better,
13805 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13810 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13811 # PIC is the default for these OSes.
13813 mingw* | cygwin* | os2* | pw32* | cegcc*)
13814 # This hack is so that the source file can tell whether it is being
13815 # built for inclusion in a dll (and should export symbols for example).
13816 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13817 # (--disable-auto-import) libraries
13818 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13820 darwin* | rhapsody*)
13821 # PIC is the default on this platform
13822 # Common symbols not allowed in MH_DYLIB files
13823 lt_prog_compiler_pic_CXX='-fno-common'
13826 # DJGPP does not support shared libraries at all
13827 lt_prog_compiler_pic_CXX=
13830 # PIC is the default for Haiku.
13831 # The "-static" flag exists, but is broken.
13832 lt_prog_compiler_static_CXX=
13835 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13836 # Instead, we relocate shared libraries at runtime.
13839 if test -d /usr/nec; then
13840 lt_prog_compiler_pic_CXX=-Kconform_pic
13844 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13845 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13846 # sets the default TLS model and affects inlining.
13851 lt_prog_compiler_pic_CXX='-fPIC'
13856 # QNX uses GNU C++, but need to define -shared option too, otherwise
13857 # it will coredump.
13858 lt_prog_compiler_pic_CXX='-fPIC -shared'
13861 lt_prog_compiler_pic_CXX='-fPIC'
13867 # All AIX code is PIC.
13868 if test "$host_cpu" = ia64; then
13869 # AIX 5 now supports IA64 processor
13870 lt_prog_compiler_static_CXX='-Bstatic'
13872 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13876 case $cc_basename in
13878 # Green Hills C++ Compiler
13879 # _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"
13883 mingw* | cygwin* | os2* | pw32* | cegcc*)
13884 # This hack is so that the source file can tell whether it is being
13885 # built for inclusion in a dll (and should export symbols for example).
13886 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13889 case $cc_basename in
13891 lt_prog_compiler_pic_CXX='-KPIC'
13894 # Green Hills C++ Compiler
13895 lt_prog_compiler_pic_CXX='-pic'
13901 freebsd* | dragonfly*)
13902 # FreeBSD uses GNU C++
13904 hpux9* | hpux10* | hpux11*)
13905 case $cc_basename in
13907 lt_prog_compiler_wl_CXX='-Wl,'
13908 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13909 if test "$host_cpu" != ia64; then
13910 lt_prog_compiler_pic_CXX='+Z'
13914 lt_prog_compiler_wl_CXX='-Wl,'
13915 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13921 lt_prog_compiler_pic_CXX='+Z'
13930 # This is c89, which is MS Visual C++ (no shared libs)
13931 # Anyone wants to do a port?
13933 irix5* | irix6* | nonstopux*)
13934 case $cc_basename in
13936 lt_prog_compiler_wl_CXX='-Wl,'
13937 lt_prog_compiler_static_CXX='-non_shared'
13938 # CC pic flag -KPIC is the default.
13944 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13945 case $cc_basename in
13948 lt_prog_compiler_wl_CXX='--backend -Wl,'
13949 lt_prog_compiler_pic_CXX='-fPIC'
13952 # old Intel C++ for x86_64 which still supported -KPIC.
13953 lt_prog_compiler_wl_CXX='-Wl,'
13954 lt_prog_compiler_pic_CXX='-KPIC'
13955 lt_prog_compiler_static_CXX='-static'
13958 # Intel C++, used to be incompatible with GCC.
13959 # ICC 10 doesn't accept -KPIC any more.
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_pic_CXX='-fPIC'
13962 lt_prog_compiler_static_CXX='-static'
13965 # Portland Group C++ compiler
13966 lt_prog_compiler_wl_CXX='-Wl,'
13967 lt_prog_compiler_pic_CXX='-fpic'
13968 lt_prog_compiler_static_CXX='-Bstatic'
13972 # Make sure the PIC flag is empty. It appears that all Alpha
13973 # Linux and Compaq Tru64 Unix objects are PIC.
13974 lt_prog_compiler_pic_CXX=
13975 lt_prog_compiler_static_CXX='-non_shared'
13977 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13978 # IBM XL 8.0, 9.0 on PPC and BlueGene
13979 lt_prog_compiler_wl_CXX='-Wl,'
13980 lt_prog_compiler_pic_CXX='-qpic'
13981 lt_prog_compiler_static_CXX='-qstaticlink'
13984 case `$CC -V 2>&1 | sed 5q` in
13987 lt_prog_compiler_pic_CXX='-KPIC'
13988 lt_prog_compiler_static_CXX='-Bstatic'
13989 lt_prog_compiler_wl_CXX='-Qoption ld '
14000 case $cc_basename in
14002 lt_prog_compiler_pic_CXX='-W c,exportall'
14008 netbsd* | netbsdelf*-gnu)
14011 # QNX uses GNU C++, but need to define -shared option too, otherwise
14012 # it will coredump.
14013 lt_prog_compiler_pic_CXX='-fPIC -shared'
14015 osf3* | osf4* | osf5*)
14016 case $cc_basename in
14018 lt_prog_compiler_wl_CXX='--backend -Wl,'
14021 # Rational C++ 2.4.1
14022 lt_prog_compiler_pic_CXX='-pic'
14025 # Digital/Compaq C++
14026 lt_prog_compiler_wl_CXX='-Wl,'
14027 # Make sure the PIC flag is empty. It appears that all Alpha
14028 # Linux and Compaq Tru64 Unix objects are PIC.
14029 lt_prog_compiler_pic_CXX=
14030 lt_prog_compiler_static_CXX='-non_shared'
14039 case $cc_basename in
14041 # Sun C++ 4.2, 5.x and Centerline C++
14042 lt_prog_compiler_pic_CXX='-KPIC'
14043 lt_prog_compiler_static_CXX='-Bstatic'
14044 lt_prog_compiler_wl_CXX='-Qoption ld '
14047 # Green Hills C++ Compiler
14048 lt_prog_compiler_pic_CXX='-PIC'
14055 case $cc_basename in
14058 lt_prog_compiler_pic_CXX='-pic'
14059 lt_prog_compiler_static_CXX='-Bstatic'
14063 lt_prog_compiler_pic_CXX='-pic'
14069 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14070 case $cc_basename in
14072 lt_prog_compiler_wl_CXX='-Wl,'
14073 lt_prog_compiler_pic_CXX='-KPIC'
14074 lt_prog_compiler_static_CXX='-Bstatic'
14079 case $cc_basename in
14081 # NonStop-UX NCC 3.20
14082 lt_prog_compiler_pic_CXX='-KPIC'
14091 lt_prog_compiler_can_build_shared_CXX=no
14097 # For platforms which do not support PIC, -DPIC is meaningless:
14099 lt_prog_compiler_pic_CXX=
14102 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14107 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14108 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14109 $as_echo_n "(cached) " >&6
14111 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14114 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14115 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14118 # Check to make sure the PIC flag actually works.
14120 if test -n "$lt_prog_compiler_pic_CXX"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14122 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14123 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14124 $as_echo_n "(cached) " >&6
14126 lt_cv_prog_compiler_pic_works_CXX=no
14127 ac_outfile=conftest.$ac_objext
14128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14129 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14130 # Insert the option either (1) after the last *FLAGS variable, or
14131 # (2) before a word containing "conftest.", or (3) at the end.
14132 # Note that $ac_compile itself does not contain backslashes and begins
14133 # with a dollar sign (not a hyphen), so the echo should work correctly.
14134 # The option is referenced via a variable to avoid confusing sed.
14135 lt_compile=`echo "$ac_compile" | $SED \
14136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14138 -e 's:$: $lt_compiler_flag:'`
14139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14140 (eval "$lt_compile" 2>conftest.err)
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 if (exit $ac_status) && test -s "$ac_outfile"; then
14145 # The compiler can only warn and ignore the option if not recognized
14146 # So say no if there are warnings other than the usual output.
14147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14150 lt_cv_prog_compiler_pic_works_CXX=yes
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14157 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14159 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14160 case $lt_prog_compiler_pic_CXX in
14162 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14165 lt_prog_compiler_pic_CXX=
14166 lt_prog_compiler_can_build_shared_CXX=no
14176 # Check to make sure the static flag actually works.
14178 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14180 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14181 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14182 $as_echo_n "(cached) " >&6
14184 lt_cv_prog_compiler_static_works_CXX=no
14185 save_LDFLAGS="$LDFLAGS"
14186 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14187 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14188 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14189 # The linker can only warn and ignore the option if not recognized
14190 # So say no if there are warnings
14191 if test -s conftest.err; then
14192 # Append any errors to the config.log.
14193 cat conftest.err 1>&5
14194 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14196 if diff conftest.exp conftest.er2 >/dev/null; then
14197 lt_cv_prog_compiler_static_works_CXX=yes
14200 lt_cv_prog_compiler_static_works_CXX=yes
14204 LDFLAGS="$save_LDFLAGS"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14208 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14210 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14213 lt_prog_compiler_static_CXX=
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14221 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 lt_cv_prog_compiler_c_o_CXX=no
14225 $RM -r conftest 2>/dev/null
14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231 lt_compiler_flag="-o out/conftest2.$ac_objext"
14232 # Insert the option either (1) after the last *FLAGS variable, or
14233 # (2) before a word containing "conftest.", or (3) at the end.
14234 # Note that $ac_compile itself does not contain backslashes and begins
14235 # with a dollar sign (not a hyphen), so the echo should work correctly.
14236 lt_compile=`echo "$ac_compile" | $SED \
14237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14239 -e 's:$: $lt_compiler_flag:'`
14240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14241 (eval "$lt_compile" 2>out/conftest.err)
14243 cat out/conftest.err >&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14247 # The compiler can only warn and ignore the option if not recognized
14248 # So say no if there are warnings
14249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14252 lt_cv_prog_compiler_c_o_CXX=yes
14257 # SGI C++ compiler will create directory out/ii_files/ for
14258 # template instantiation
14259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14260 $RM out/* && rmdir out
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14267 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14273 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14274 $as_echo_n "(cached) " >&6
14276 lt_cv_prog_compiler_c_o_CXX=no
14277 $RM -r conftest 2>/dev/null
14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14283 lt_compiler_flag="-o out/conftest2.$ac_objext"
14284 # Insert the option either (1) after the last *FLAGS variable, or
14285 # (2) before a word containing "conftest.", or (3) at the end.
14286 # Note that $ac_compile itself does not contain backslashes and begins
14287 # with a dollar sign (not a hyphen), so the echo should work correctly.
14288 lt_compile=`echo "$ac_compile" | $SED \
14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14291 -e 's:$: $lt_compiler_flag:'`
14292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14293 (eval "$lt_compile" 2>out/conftest.err)
14295 cat out/conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14299 # The compiler can only warn and ignore the option if not recognized
14300 # So say no if there are warnings
14301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14304 lt_cv_prog_compiler_c_o_CXX=yes
14309 # SGI C++ compiler will create directory out/ii_files/ for
14310 # template instantiation
14311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14312 $RM out/* && rmdir out
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14319 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14324 hard_links="nottested"
14325 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14326 # do not overwrite the value of need_locks provided by the user
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14328 $as_echo_n "checking if we can lock with hard links... " >&6; }
14331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14333 ln conftest.a conftest.b 2>&5 || hard_links=no
14334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14336 $as_echo "$hard_links" >&6; }
14337 if test "$hard_links" = no; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14351 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14352 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14355 # If we're using GNU nm, then we don't want the "-C" option.
14356 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14357 # Also, AIX nm treats weak defined symbols like other global defined
14358 # symbols, whereas GNU nm marks them as "W".
14359 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14360 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'
14362 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'
14366 export_symbols_cmds_CXX="$ltdll_cmds"
14368 cygwin* | mingw* | cegcc*)
14369 case $cc_basename in
14371 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14374 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'
14375 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14379 linux* | k*bsd*-gnu | gnu*)
14380 link_all_deplibs_CXX=no
14383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14388 $as_echo "$ld_shlibs_CXX" >&6; }
14389 test "$ld_shlibs_CXX" = no && can_build_shared=no
14391 with_gnu_ld_CXX=$with_gnu_ld
14399 # Do we need to explicitly link libc?
14401 case "x$archive_cmds_need_lc_CXX" in
14403 # Assume -lc should be added
14404 archive_cmds_need_lc_CXX=yes
14406 if test "$enable_shared" = yes && test "$GCC" = yes; then
14407 case $archive_cmds_CXX in
14409 # FIXME: we may have to deal with multi-command sequences.
14412 # Test whether the compiler implicitly links with -lc since on some
14413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14414 # to ld, don't add -lc before -lgcc.
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14416 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14417 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14418 $as_echo_n "(cached) " >&6
14421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14424 (eval $ac_compile) 2>&5
14426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427 test $ac_status = 0; } 2>conftest.err; then
14430 libobjs=conftest.$ac_objext
14432 wl=$lt_prog_compiler_wl_CXX
14433 pic_flag=$lt_prog_compiler_pic_CXX
14439 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14440 allow_undefined_flag_CXX=
14441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14442 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14445 test $ac_status = 0; }
14447 lt_cv_archive_cmds_need_lc_CXX=no
14449 lt_cv_archive_cmds_need_lc_CXX=yes
14451 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14453 cat conftest.err 1>&5
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14459 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14460 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14531 library_names_spec=
14532 libname_spec='lib$name'
14536 postuninstall_cmds=
14540 shlibpath_overrides_runpath=unknown
14542 dynamic_linker="$host_os ld.so"
14543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14544 need_lib_prefix=unknown
14545 hardcode_into_libs=no
14547 # when you set need_version to no, make sure it does not cause -set_version
14548 # flags to be left without arguments
14549 need_version=unknown
14553 version_type=linux # correct to gnu/linux during the next big refactor
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14555 shlibpath_var=LIBPATH
14557 # AIX 3 has no versioning support, so we append a major version to the name.
14558 soname_spec='${libname}${release}${shared_ext}$major'
14562 version_type=linux # correct to gnu/linux during the next big refactor
14565 hardcode_into_libs=yes
14566 if test "$host_cpu" = ia64; then
14567 # AIX 5 supports IA64
14568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14569 shlibpath_var=LD_LIBRARY_PATH
14571 # With GCC up to 2.95.x, collect2 would create an import file
14572 # for dependence libraries. The import file would start with
14573 # the line `#! .'. This would cause the generated library to
14574 # depend on `.', always an invalid library. This was fixed in
14575 # development snapshots of GCC prior to 3.0.
14577 aix4 | aix4.[01] | aix4.[01].*)
14578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14580 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14583 can_build_shared=no
14587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14588 # soname into executable. Probably we can add versioning support to
14589 # collect2, so additional links can be useful in future.
14590 if test "$aix_use_runtimelinking" = yes; then
14591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14592 # instead of lib<name>.a to let people know that these are not
14593 # typical AIX shared libraries.
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 # We preserve .a as extension for shared libraries through AIX4.2
14597 # and later when we are not doing run time linking.
14598 library_names_spec='${libname}${release}.a $libname.a'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14601 shlibpath_var=LIBPATH
14608 # Since July 2007 AmigaOS4 officially supports .so libraries.
14609 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 library_names_spec='$libname.ixlibrary $libname.a'
14614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14615 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'
14621 library_names_spec='${libname}${shared_ext}'
14622 dynamic_linker="$host_os ld.so"
14623 shlibpath_var=LIBRARY_PATH
14627 version_type=linux # correct to gnu/linux during the next big refactor
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14635 # the default ld.so.conf also contains /usr/contrib/lib and
14636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14637 # libtool to hard-code these into programs
14640 cygwin* | mingw* | pw32* | cegcc*)
14641 version_type=windows
14646 case $GCC,$cc_basename in
14649 library_names_spec='$libname.dll.a'
14650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14651 postinstall_cmds='base_file=`basename \${file}`~
14652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14653 dldir=$destdir/`dirname \$dlpath`~
14654 test -d \$dldir || mkdir -p \$dldir~
14655 $install_prog $dir/$dlname \$dldir/$dlname~
14656 chmod a+x \$dldir/$dlname~
14657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14661 dlpath=$dir/\$dldll~
14663 shlibpath_overrides_runpath=yes
14667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14672 # MinGW DLLs use traditional 'lib' prefix
14673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14676 # pw32 DLLs use 'pw' prefix rather than 'lib'
14677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14680 dynamic_linker='Win32 ld.exe'
14685 libname_spec='$name'
14686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14687 library_names_spec='${libname}.dll.lib'
14691 sys_lib_search_path_spec=
14694 for lt_path in $LIB
14697 # Let DOS variable expansion print the short 8.3 style file name.
14698 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14699 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14702 # Convert to MSYS style.
14703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14706 # Convert to unix form, then to dos form, then back to unix form
14707 # but this time dos style (no spaces!) so that the unix form looks
14708 # like /cygdrive/c/PROGRA~1:/cygdr...
14709 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14710 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14711 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14714 sys_lib_search_path_spec="$LIB"
14715 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14716 # It is most probably a Windows format PATH.
14717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14721 # FIXME: find the short name or the path components, as spaces are
14722 # common. (e.g. "Program Files" -> "PROGRA~1")
14726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14727 postinstall_cmds='base_file=`basename \${file}`~
14728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14729 dldir=$destdir/`dirname \$dlpath`~
14730 test -d \$dldir || mkdir -p \$dldir~
14731 $install_prog $dir/$dlname \$dldir/$dlname'
14732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14733 dlpath=$dir/\$dldll~
14735 shlibpath_overrides_runpath=yes
14736 dynamic_linker='Win32 link.exe'
14740 # Assume MSVC wrapper
14741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14742 dynamic_linker='Win32 ld.exe'
14745 # FIXME: first we should search . and the directory the executable is in
14749 darwin* | rhapsody*)
14750 dynamic_linker="$host_os dyld"
14751 version_type=darwin
14754 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14755 soname_spec='${libname}${release}${major}$shared_ext'
14756 shlibpath_overrides_runpath=yes
14757 shlibpath_var=DYLD_LIBRARY_PATH
14758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14764 version_type=linux # correct to gnu/linux during the next big refactor
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14772 freebsd* | dragonfly*)
14773 # DragonFly does not have aout. When/if they implement a new
14774 # versioning mechanism, adjust this.
14775 if test -x /usr/bin/objformat; then
14776 objformat=`/usr/bin/objformat`
14779 freebsd[23].*) objformat=aout ;;
14780 *) objformat=elf ;;
14783 version_type=freebsd-$objformat
14784 case $version_type in
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14795 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes
14800 freebsd3.[01]* | freebsdelf3.[01]*)
14801 shlibpath_overrides_runpath=yes
14802 hardcode_into_libs=yes
14804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14806 shlibpath_overrides_runpath=no
14807 hardcode_into_libs=yes
14809 *) # from 4.6 on, and DragonFly
14810 shlibpath_overrides_runpath=yes
14811 hardcode_into_libs=yes
14817 version_type=linux # correct to gnu/linux during the next big refactor
14820 dynamic_linker="$host_os runtime_loader"
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14823 shlibpath_var=LIBRARY_PATH
14824 shlibpath_overrides_runpath=yes
14825 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14826 hardcode_into_libs=yes
14829 hpux9* | hpux10* | hpux11*)
14830 # Give a soname corresponding to the major version so that dld.sl refuses to
14831 # link against other versions.
14838 hardcode_into_libs=yes
14839 dynamic_linker="$host_os dld.so"
14840 shlibpath_var=LD_LIBRARY_PATH
14841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 if test "X$HPUX_IA64_MODE" = X32; then
14845 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14847 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14853 hardcode_into_libs=yes
14854 dynamic_linker="$host_os dld.sl"
14855 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14864 dynamic_linker="$host_os dld.sl"
14865 shlibpath_var=SHLIB_PATH
14866 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14871 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14872 postinstall_cmds='chmod 555 $lib'
14873 # or fails outright, so override atomically:
14874 install_override_mode=555
14878 version_type=linux # correct to gnu/linux during the next big refactor
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 shlibpath_overrides_runpath=no
14886 hardcode_into_libs=yes
14889 irix5* | irix6* | nonstopux*)
14891 nonstopux*) version_type=nonstopux ;;
14893 if test "$lt_cv_prog_gnu_ld" = yes; then
14894 version_type=linux # correct to gnu/linux during the next big refactor
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 irix5* | nonstopux*)
14905 libsuff= shlibsuff=
14908 case $LD in # libtool.m4 will add one of these switches to LD
14909 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14910 libsuff= shlibsuff= libmagic=32-bit;;
14911 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14912 libsuff=32 shlibsuff=N32 libmagic=N32;;
14913 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14914 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14915 *) libsuff= shlibsuff= libmagic=never-match;;
14919 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14920 shlibpath_overrides_runpath=no
14921 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14922 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14923 hardcode_into_libs=yes
14926 # No shared lib support for Linux oldld, aout, or coff.
14927 linux*oldld* | linux*aout* | linux*coff*)
14931 # This must be glibc/ELF.
14932 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14933 version_type=linux # correct to gnu/linux during the next big refactor
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=no
14942 # Some binutils ld are patched to set DT_RUNPATH
14943 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14944 $as_echo_n "(cached) " >&6
14946 lt_cv_shlibpath_overrides_runpath=no
14947 save_LDFLAGS=$LDFLAGS
14948 save_libdir=$libdir
14949 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14950 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h. */
14962 if ac_fn_cxx_try_link "$LINENO"; then :
14963 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14964 lt_cv_shlibpath_overrides_runpath=yes
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14969 LDFLAGS=$save_LDFLAGS
14970 libdir=$save_libdir
14974 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14976 # This implies no fast_install, which is unacceptable.
14977 # Some rework will be needed to allow for fast_install
14978 # before this can be enabled.
14979 hardcode_into_libs=yes
14981 # Append ld.so.conf contents to the search path
14982 if test -f /etc/ld.so.conf; then
14983 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' ' '`
14984 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14987 # We used to test for /lib/ld.so.1 and disable shared libraries on
14988 # powerpc, because MkLinux only supported shared libraries with the
14989 # GNU dynamic linker. Since this was broken with cross compilers,
14990 # most powerpc-linux boxes support dynamic linking these days and
14991 # people can always --disable-shared, the test was removed, and we
14992 # assume the GNU/Linux dynamic linker is in use.
14993 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=no
15004 hardcode_into_libs=yes
15005 dynamic_linker='NetBSD ld.elf_so'
15012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15015 dynamic_linker='NetBSD (a.out) ld.so'
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15018 soname_spec='${libname}${release}${shared_ext}$major'
15019 dynamic_linker='NetBSD ld.elf_so'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=yes
15023 hardcode_into_libs=yes
15027 version_type=linux # correct to gnu/linux during the next big refactor
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 shlibpath_overrides_runpath=yes
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 shlibpath_var=LD_LIBRARY_PATH
15040 shlibpath_overrides_runpath=no
15041 hardcode_into_libs=yes
15042 dynamic_linker='ldqnx.so'
15047 sys_lib_dlsearch_path_spec="/usr/lib"
15049 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15051 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15052 *) need_version=no ;;
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15059 openbsd2.[89] | openbsd2.[89].*)
15060 shlibpath_overrides_runpath=no
15063 shlibpath_overrides_runpath=yes
15067 shlibpath_overrides_runpath=yes
15072 libname_spec='$name'
15075 library_names_spec='$libname${shared_ext} $libname.a'
15076 dynamic_linker='OS/2 ld.exe'
15077 shlibpath_var=LIBPATH
15080 osf3* | osf4* | osf5*)
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15096 version_type=linux # correct to gnu/linux during the next big refactor
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=yes
15103 hardcode_into_libs=yes
15104 # ldd complains unless libraries are executable
15105 postinstall_cmds='chmod +x $lib'
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15112 shlibpath_var=LD_LIBRARY_PATH
15113 shlibpath_overrides_runpath=yes
15114 if test "$with_gnu_ld" = yes; then
15121 version_type=linux # correct to gnu/linux during the next big refactor
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 shlibpath_var=LD_LIBRARY_PATH
15125 case $host_vendor in
15127 shlibpath_overrides_runpath=no
15129 runpath_var=LD_RUN_PATH
15137 shlibpath_overrides_runpath=no
15138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15144 if test -d /usr/nec ;then
15145 version_type=linux # correct to gnu/linux during the next big refactor
15146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147 soname_spec='$libname${shared_ext}.$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153 version_type=freebsd-elf
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15160 hardcode_into_libs=yes
15161 if test "$with_gnu_ld" = yes; then
15162 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15171 sys_lib_dlsearch_path_spec='/usr/lib'
15175 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15176 version_type=linux # correct to gnu/linux during the next big refactor
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 shlibpath_var=LD_LIBRARY_PATH
15181 shlibpath_overrides_runpath=no
15182 hardcode_into_libs=yes
15186 version_type=linux # correct to gnu/linux during the next big refactor
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15197 $as_echo "$dynamic_linker" >&6; }
15198 test "$dynamic_linker" = no && can_build_shared=no
15200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15201 if test "$GCC" = yes; then
15202 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15205 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15206 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15208 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15209 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15251 hardcode_action_CXX=
15252 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15253 test -n "$runpath_var_CXX" ||
15254 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15256 # We can hardcode non-existent directories.
15257 if test "$hardcode_direct_CXX" != no &&
15258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15259 # have to relink, otherwise we might link with an installed library
15260 # when we should be linking with a yet-to-be-installed one
15261 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15262 test "$hardcode_minus_L_CXX" != no; then
15263 # Linking always hardcodes the temporary library directory.
15264 hardcode_action_CXX=relink
15266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15267 hardcode_action_CXX=immediate
15270 # We cannot hardcode anything, or else we can only hardcode existing
15272 hardcode_action_CXX=unsupported
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15275 $as_echo "$hardcode_action_CXX" >&6; }
15277 if test "$hardcode_action_CXX" = relink ||
15278 test "$inherit_rpath_CXX" = yes; then
15279 # Fast installation is not supported
15280 enable_fast_install=no
15281 elif test "$shlibpath_overrides_runpath" = yes ||
15282 test "$enable_shared" = no; then
15283 # Fast installation is not necessary
15284 enable_fast_install=needless
15293 fi # test -n "$compiler"
15296 CFLAGS=$lt_save_CFLAGS
15300 with_gnu_ld=$lt_save_with_gnu_ld
15301 lt_cv_path_LDCXX=$lt_cv_path_LD
15302 lt_cv_path_LD=$lt_save_path_LD
15303 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15304 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15305 fi # test "$_lt_caught_CXX_error" != yes
15308 ac_cpp='$CPP $CPPFLAGS'
15309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15327 ac_config_commands="$ac_config_commands libtool"
15332 # Only expand once:
15336 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
15339 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/lib/Makefile src/bin/Makefile src/test/Makefile src/extensions/Makefile src/extensions/compact/Makefile src/extensions/compress/Makefile src/extensions/const/Makefile src/extensions/far/Makefile src/extensions/linear/Makefile src/extensions/lookahead/Makefile src/extensions/mpdt/Makefile src/extensions/ngram/Makefile src/extensions/pdt/Makefile src/extensions/python/Makefile src/extensions/special/Makefile src/script/Makefile"
15343 ac_cpp='$CXXCPP $CPPFLAGS'
15344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15349 # Check whether --enable-compact-fsts was given.
15350 if test "${enable_compact_fsts+set}" = set; then :
15351 enableval=$enable_compact_fsts;
15353 enable_compact_fsts=no
15356 if test "x$enable_compact_fsts" != xno; then
15358 HAVE_COMPACT_FALSE='#'
15360 HAVE_COMPACT_TRUE='#'
15361 HAVE_COMPACT_FALSE=
15365 # Check whether --enable-compress was given.
15366 if test "${enable_compress+set}" = set; then :
15367 enableval=$enable_compress;
15372 if test "x$enable_compress" != xno; then
15373 HAVE_COMPRESS_TRUE=
15374 HAVE_COMPRESS_FALSE='#'
15376 HAVE_COMPRESS_TRUE='#'
15377 HAVE_COMPRESS_FALSE=
15381 # Check whether --enable-const-fsts was given.
15382 if test "${enable_const_fsts+set}" = set; then :
15383 enableval=$enable_const_fsts;
15385 enable_const_fsts=no
15388 if test "x$enable_const_fsts" != xno; then
15390 HAVE_CONST_FALSE='#'
15392 HAVE_CONST_TRUE='#'
15397 # Check whether --enable-far was given.
15398 if test "${enable_far+set}" = set; then :
15399 enableval=$enable_far;
15404 if test "x$enable_far" != xno; then
15413 # Check whether --enable-linear-fsts was given.
15414 if test "${enable_linear_fsts+set}" = set; then :
15415 enableval=$enable_linear_fsts;
15417 enable_linear_fsts=no
15420 if test "x$enable_linear_fsts" != xno; then
15422 HAVE_LINEAR_FALSE='#'
15424 HAVE_LINEAR_TRUE='#'
15429 # Check whether --enable-lookahead-fsts was given.
15430 if test "${enable_lookahead_fsts+set}" = set; then :
15431 enableval=$enable_lookahead_fsts;
15433 enable_lookahead_fsts=no
15436 if test "x$enable_lookahead_fsts" != xno; then
15437 HAVE_LOOKAHEAD_TRUE=
15438 HAVE_LOOKAHEAD_FALSE='#'
15440 HAVE_LOOKAHEAD_TRUE='#'
15441 HAVE_LOOKAHEAD_FALSE=
15445 # Check whether --enable-mpdt was given.
15446 if test "${enable_mpdt+set}" = set; then :
15447 enableval=$enable_mpdt;
15452 if test "x$enable_mpdt" != xno; then
15454 HAVE_MPDT_FALSE='#'
15461 # Check whether --enable-ngram-fsts was given.
15462 if test "${enable_ngram_fsts+set}" = set; then :
15463 enableval=$enable_ngram_fsts;
15465 enable_ngram_fsts=no
15468 if test "x$enable_ngram_fsts" != xno; then
15470 HAVE_NGRAM_FALSE='#'
15472 HAVE_NGRAM_TRUE='#'
15477 # Check whether --enable-pdt was given.
15478 if test "${enable_pdt+set}" = set; then :
15479 enableval=$enable_pdt;
15484 if test "x$enable_pdt" != xno; then
15493 # Check whether --enable-python was given.
15494 if test "${enable_python+set}" = set; then :
15495 enableval=$enable_python;
15500 if test "x$enable_python" != xno; then
15502 HAVE_PYTHON_FALSE='#'
15504 HAVE_PYTHON_TRUE='#'
15508 if test "x$enable_python" != xno; then
15515 if test -n "$PYTHON"; then
15516 # If the user set $PYTHON, use it and don't search something else.
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
15518 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
15520 # split strings by '.' and convert to numeric. Append some zeros
15521 # because we need at least 4 digits for the hex conversion.
15522 # map returns an iterator in Python 3.0 and a list in 2.x
15523 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
15525 # xrange is not present in Python 3.0 and range returns an iterator
15526 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15527 sys.exit(sys.hexversion < minverhex)"
15528 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
15529 ($PYTHON -c "$prog") >&5 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; then :
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15537 $as_echo "no" >&6; }
15538 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
15540 am_display_PYTHON=$PYTHON
15542 # Otherwise, try each interpreter until we find one that satisfies
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
15545 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
15546 if ${am_cv_pathless_PYTHON+:} false; then :
15547 $as_echo_n "(cached) " >&6
15550 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
15551 test "$am_cv_pathless_PYTHON" = none && break
15553 # split strings by '.' and convert to numeric. Append some zeros
15554 # because we need at least 4 digits for the hex conversion.
15555 # map returns an iterator in Python 3.0 and a list in 2.x
15556 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
15558 # xrange is not present in Python 3.0 and range returns an iterator
15559 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
15560 sys.exit(sys.hexversion < minverhex)"
15561 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
15562 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; then :
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
15571 $as_echo "$am_cv_pathless_PYTHON" >&6; }
15572 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
15573 if test "$am_cv_pathless_PYTHON" = none; then
15576 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15577 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579 $as_echo_n "checking for $ac_word... " >&6; }
15580 if ${ac_cv_path_PYTHON+:} false; then :
15581 $as_echo_n "(cached) " >&6
15585 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15592 test -z "$as_dir" && as_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15606 PYTHON=$ac_cv_path_PYTHON
15607 if test -n "$PYTHON"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15609 $as_echo "$PYTHON" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15617 am_display_PYTHON=$am_cv_pathless_PYTHON
15621 if test "$PYTHON" = :; then
15622 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15627 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15628 if ${am_cv_python_version+:} false; then :
15629 $as_echo_n "(cached) " >&6
15631 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15634 $as_echo "$am_cv_python_version" >&6; }
15635 PYTHON_VERSION=$am_cv_python_version
15639 PYTHON_PREFIX='${prefix}'
15641 PYTHON_EXEC_PREFIX='${exec_prefix}'
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15646 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15647 if ${am_cv_python_platform+:} false; then :
15648 $as_echo_n "(cached) " >&6
15650 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15653 $as_echo "$am_cv_python_platform" >&6; }
15654 PYTHON_PLATFORM=$am_cv_python_platform
15657 # Just factor out some code duplication.
15658 am_python_setup_sysconfig="\
15660 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15661 # with python 3.x. See automake bug#10227.
15664 except ImportError:
15665 can_use_sysconfig = 0
15667 can_use_sysconfig = 1
15668 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15669 # <https://github.com/pypa/virtualenv/issues/118>
15671 from platform import python_implementation
15672 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15673 can_use_sysconfig = 0
15674 except ImportError:
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15679 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15680 if ${am_cv_python_pythondir+:} false; then :
15681 $as_echo_n "(cached) " >&6
15683 if test "x$prefix" = xNONE
15685 am_py_prefix=$ac_default_prefix
15687 am_py_prefix=$prefix
15689 am_cv_python_pythondir=`$PYTHON -c "
15690 $am_python_setup_sysconfig
15691 if can_use_sysconfig:
15692 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
15694 from distutils import sysconfig
15695 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15696 sys.stdout.write(sitedir)"`
15697 case $am_cv_python_pythondir in
15699 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15700 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15703 case $am_py_prefix in
15706 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15714 $as_echo "$am_cv_python_pythondir" >&6; }
15715 pythondir=$am_cv_python_pythondir
15719 pkgpythondir=\${pythondir}/$PACKAGE
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15723 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15724 if ${am_cv_python_pyexecdir+:} false; then :
15725 $as_echo_n "(cached) " >&6
15727 if test "x$exec_prefix" = xNONE
15729 am_py_exec_prefix=$am_py_prefix
15731 am_py_exec_prefix=$exec_prefix
15733 am_cv_python_pyexecdir=`$PYTHON -c "
15734 $am_python_setup_sysconfig
15735 if can_use_sysconfig:
15736 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
15738 from distutils import sysconfig
15739 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
15740 sys.stdout.write(sitedir)"`
15741 case $am_cv_python_pyexecdir in
15742 $am_py_exec_prefix*)
15743 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15744 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15747 case $am_py_exec_prefix in
15750 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15758 $as_echo "$am_cv_python_pyexecdir" >&6; }
15759 pyexecdir=$am_cv_python_pyexecdir
15763 pkgpyexecdir=\${pyexecdir}/$PACKAGE
15772 # Allow the use of a (user set) custom python version
15776 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15777 set dummy python$PYTHON_VERSION; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_path_PYTHON+:} false; then :
15781 $as_echo_n "(cached) " >&6
15785 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 for as_dir in $PATH
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15806 PYTHON=$ac_cv_path_PYTHON
15807 if test -n "$PYTHON"; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15809 $as_echo "$PYTHON" >&6; }
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 $as_echo "no" >&6; }
15816 if test -z "$PYTHON"; then
15817 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15822 # Check for a version of Python >= 2.1.0
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15825 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15826 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15827 ver = string.split(sys.version)[0]; \
15828 print ver >= '2.1.0'"`
15829 if test "$ac_supports_python_ver" != "True"; then
15830 if test -z "$PYTHON_NOVERSIONCHECK"; then
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832 $as_echo "no" >&6; }
15833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15836 This version of the AC_PYTHON_DEVEL macro
15837 doesn't work properly with versions of Python before
15838 2.1.0. You may need to re-run configure, setting the
15839 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15840 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15841 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15842 to something else than an empty string.
15844 See \`config.log' for more details" "$LINENO" 5; }
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15847 $as_echo "skip at user request" >&6; }
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15851 $as_echo "yes" >&6; }
15855 # if the macro parameter ``version'' is set, honour it
15857 if test -n ">= '2.7'"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
15859 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
15860 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15861 ver = string.split(sys.version)[0]; \
15862 print ver >= '2.7'"`
15863 if test "$ac_supports_python_ver" = "True"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868 $as_echo "no" >&6; }
15869 as_fn_error $? "this package requires Python >= '2.7'.
15870 If you have it installed, but it isn't the default Python
15871 interpreter in your system path, please pass the PYTHON_VERSION
15872 variable to configure. See \`\`configure --help'' for reference.
15879 # Check if you have distutils, else fail
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15882 $as_echo_n "checking for the distutils Python package... " >&6; }
15883 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15884 if test -z "$ac_distutils_result"; then
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 $as_echo "no" >&6; }
15890 as_fn_error $? "cannot import Python module \"distutils\".
15891 Please check your Python installation. The error was:
15892 $ac_distutils_result" "$LINENO" 5
15897 # Check for Python include path
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15900 $as_echo_n "checking for Python include path... " >&6; }
15901 if test -z "$PYTHON_CPPFLAGS"; then
15902 python_path=`$PYTHON -c "import distutils.sysconfig; \
15903 print distutils.sysconfig.get_python_inc();"`
15904 if test -n "${python_path}"; then
15905 python_path="-I$python_path"
15907 PYTHON_CPPFLAGS=$python_path
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15910 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15914 # Check for Python library path
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15917 $as_echo_n "checking for Python library path... " >&6; }
15918 if test -z "$PYTHON_LDFLAGS"; then
15919 # (makes two attempts to ensure we've got a version number
15920 # from the interpreter)
15921 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15922 from string import join; \
15923 print join(get_config_vars('VERSION'))"`
15924 if test "$py_version" == "None"; then
15925 if test -n "$PYTHON_VERSION"; then
15926 py_version=$PYTHON_VERSION
15928 py_version=`$PYTHON -c "import sys; \
15929 print sys.version[:3]"`
15933 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15934 from string import join; \
15935 print '-L' + get_python_lib(0,1), \
15936 '-lpython';"`$py_version
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15939 $as_echo "$PYTHON_LDFLAGS" >&6; }
15943 # Check for site packages
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15946 $as_echo_n "checking for Python site-packages path... " >&6; }
15947 if test -z "$PYTHON_SITE_PKG"; then
15948 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15949 print distutils.sysconfig.get_python_lib(0,0);"`
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15952 $as_echo "$PYTHON_SITE_PKG" >&6; }
15956 # libraries which must be linked in when embedding
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15959 $as_echo_n "checking python extra libraries... " >&6; }
15960 if test -z "$PYTHON_EXTRA_LIBS"; then
15961 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15962 conf = distutils.sysconfig.get_config_var; \
15963 print conf('LOCALMODLIBS'), conf('LIBS')"`
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15966 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15970 # linking flags needed when embedding
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15973 $as_echo_n "checking python extra linking flags... " >&6; }
15974 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15975 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15976 conf = distutils.sysconfig.get_config_var; \
15977 print conf('LINKFORSHARED')"`
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15980 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15984 # final check to see if everything compiles alright
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15987 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15989 ac_cpp='$CPP $CPPFLAGS'
15990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994 # save current global flags
15995 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
15996 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16000 #include <Python.h>
16012 if ac_fn_c_try_link "$LINENO"; then :
16017 rm -f core conftest.err conftest.$ac_objext \
16018 conftest$ac_exeext conftest.$ac_ext
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16021 $as_echo "$pythonexists" >&6; }
16023 if test ! "$pythonexists" = "yes"; then
16025 Could not link test program to Python. Maybe the main Python library has been
16026 installed in some non-standard library path. If so, pass it to configure,
16027 via the LDFLAGS environment variable.
16028 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16029 ============================================================================
16031 You probably have to install the development version of the Python package
16032 for your distribution. The exact name of this package varies among them.
16033 ============================================================================
16038 ac_cpp='$CXXCPP $CPPFLAGS'
16039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16043 # turn back to default flags
16044 CPPFLAGS="$ac_save_CPPFLAGS"
16045 LIBS="$ac_save_LIBS"
16053 # Check whether --enable-special was given.
16054 if test "${enable_special+set}" = set; then :
16055 enableval=$enable_special;
16060 if test "x$enable_special" != xno; then
16062 HAVE_SPECIAL_FALSE='#'
16064 HAVE_SPECIAL_TRUE='#'
16065 HAVE_SPECIAL_FALSE=
16069 # --enable-bin enables script and bin "extensions".
16070 # Check whether --enable-bin was given.
16071 if test "${enable_bin+set}" = set; then :
16072 enableval=$enable_bin;
16077 if test "x$enable_bin" != xno; then
16085 if test "x$enable_bin" != xno; then
16087 HAVE_SCRIPT_FALSE='#'
16089 HAVE_SCRIPT_TRUE='#'
16094 # --enable-grm enables dependencies of OpenGrm: far, mpdt, and pdt.
16095 # Check whether --enable-grm was given.
16096 if test "${enable_grm+set}" = set; then :
16097 enableval=$enable_grm;
16102 if test "x$enable_grm" != xno; then
16112 # Check whether --with-libfstdir was given.
16113 if test "${with_libfstdir+set}" = set; then :
16114 withval=$with_libfstdir;
16116 with_libfstdir=${libdir}/fst
16120 libfstdir=$with_libfstdir
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16125 if ${ac_cv_lib_dl_dlopen+:} false; then :
16126 $as_echo_n "(cached) " >&6
16128 ac_check_lib_save_LIBS=$LIBS
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16148 if ac_fn_cxx_try_link "$LINENO"; then :
16149 ac_cv_lib_dl_dlopen=yes
16151 ac_cv_lib_dl_dlopen=no
16153 rm -f core conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16155 LIBS=$ac_check_lib_save_LIBS
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16159 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16165 cat >confcache <<\_ACEOF
16166 # This file is a shell script that caches the results of configure
16167 # tests run on this system so they can be shared between configure
16168 # scripts and configure runs, see configure's option --config-cache.
16169 # It is not useful on other systems. If it contains results you don't
16170 # want to keep, you may remove or edit it.
16172 # config.status only pays attention to the cache file if you give it
16173 # the --recheck option to rerun configure.
16175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16177 # following values.
16181 # The following way of writing the cache mishandles newlines in values,
16182 # but we know of no workaround that is simple, portable, and efficient.
16183 # So, we kill variables containing newlines.
16184 # Ultrix sh set writes to stderr and can't be redirected directly,
16185 # and sets the high bit in the cache file unless we assign to the vars.
16187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16188 eval ac_val=\$$ac_var
16192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16196 _ | IFS | as_nl) ;; #(
16197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16198 *) { eval $ac_var=; unset $ac_var;} ;;
16204 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16205 *${as_nl}ac_space=\ *)
16206 # `set' does not quote correctly, so add quotes: double-quote
16207 # substitution turns \\\\ into \\, and sed turns \\ into \.
16210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16213 # `set' quotes correctly as required by POSIX, so do not add quotes.
16214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16227 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16228 if test -w "$cache_file"; then
16229 if test "x$cache_file" != "x/dev/null"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16231 $as_echo "$as_me: updating cache $cache_file" >&6;}
16232 if test ! -f "$cache_file" || test -h "$cache_file"; then
16233 cat confcache >"$cache_file"
16235 case $cache_file in #(
16237 mv -f confcache "$cache_file"$$ &&
16238 mv -f "$cache_file"$$ "$cache_file" ;; #(
16240 mv -f confcache "$cache_file" ;;
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16252 # Let make expand exec_prefix.
16253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16255 DEFS=-DHAVE_CONFIG_H
16260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16261 # 1. Remove the extension, and $U if already installed.
16262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16263 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16265 # will be set to the directory where LIBOBJS objects are built.
16266 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16267 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16269 LIBOBJS=$ac_libobjs
16271 LTLIBOBJS=$ac_ltlibobjs
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16275 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16276 if test -n "$am_sleep_pid"; then
16277 # Hide warnings about reused PIDs.
16278 wait $am_sleep_pid 2>/dev/null
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16281 $as_echo "done" >&6; }
16282 if test -n "$EXEEXT"; then
16284 am__EXEEXT_FALSE='#'
16286 am__EXEEXT_TRUE='#'
16290 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16291 as_fn_error $? "conditional \"AMDEP\" was never defined.
16292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16294 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16295 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16298 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16299 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16302 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
16303 as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16306 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
16307 as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16310 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
16311 as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
16312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16314 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
16315 as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
16316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16318 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
16319 as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
16320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16322 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
16323 as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
16324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16326 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
16327 as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
16328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16330 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
16331 as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
16332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16334 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
16335 as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
16336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16338 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16339 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16342 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
16343 as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
16344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16346 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
16347 as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
16348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16350 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
16351 as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
16352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16354 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
16355 as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
16356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16359 : "${CONFIG_STATUS=./config.status}"
16361 ac_clean_files_save=$ac_clean_files
16362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16364 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16366 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16368 # Generated by $as_me.
16369 # Run this file to recreate the current configuration.
16370 # Compiler output produced by configure, useful for debugging
16371 # configure, is in config.log if it exists.
16374 ac_cs_recheck=false
16377 SHELL=\${CONFIG_SHELL-$SHELL}
16380 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16381 ## -------------------- ##
16382 ## M4sh Initialization. ##
16383 ## -------------------- ##
16385 # Be more Bourne compatible
16386 DUALCASE=1; export DUALCASE # for MKS sh
16387 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16390 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16391 # is contrary to our usage. Disable this feature.
16392 alias -g '${1+"$@"}'='"$@"'
16393 setopt NO_GLOB_SUBST
16395 case `(set -o) 2>/dev/null` in #(
16407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16411 # Prefer a ksh shell builtin over an external printf program on Solaris,
16412 # but without wasting forks for bash or zsh.
16413 if test -z "$BASH_VERSION$ZSH_VERSION" \
16414 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16415 as_echo='print -r --'
16416 as_echo_n='print -rn --'
16417 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16418 as_echo='printf %s\n'
16419 as_echo_n='printf %s'
16421 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16422 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16423 as_echo_n='/usr/ucb/echo -n'
16425 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16426 as_echo_n_body='eval
16430 expr "X$arg" : "X\\(.*\\)$as_nl";
16431 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16433 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16435 export as_echo_n_body
16436 as_echo_n='sh -c $as_echo_n_body as_echo'
16438 export as_echo_body
16439 as_echo='sh -c $as_echo_body as_echo'
16442 # The user is always right.
16443 if test "${PATH_SEPARATOR+set}" != set; then
16445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16446 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16453 # We need space, tab and new line, in precisely that order. Quoting is
16454 # there to prevent editors from complaining about space-tab.
16455 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16456 # splitting by setting IFS to empty value.)
16459 # Find who we are. Look in the path if we contain no directory separator.
16462 *[\\/]* ) as_myself=$0 ;;
16463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464 for as_dir in $PATH
16467 test -z "$as_dir" && as_dir=.
16468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16474 # We did not find ourselves, most probably we were run as `sh COMMAND'
16475 # in which case we are not to be found in the path.
16476 if test "x$as_myself" = x; then
16479 if test ! -f "$as_myself"; then
16480 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16484 # Unset variables that we do not need and which cause bugs (e.g. in
16485 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16486 # suppresses any "Segmentation fault" message there. '((' could
16487 # trigger a bug in pdksh 5.2.14.
16488 for as_var in BASH_ENV ENV MAIL MAILPATH
16489 do eval test x\${$as_var+set} = xset \
16490 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16506 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16507 # ----------------------------------------
16508 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16509 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16510 # script with STATUS, using 1 if that was 0.
16513 as_status=$1; test $as_status -eq 0 && as_status=1
16515 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16516 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16518 $as_echo "$as_me: error: $2" >&2
16519 as_fn_exit $as_status
16523 # as_fn_set_status STATUS
16524 # -----------------------
16525 # Set $? to STATUS, without forking.
16526 as_fn_set_status ()
16529 } # as_fn_set_status
16531 # as_fn_exit STATUS
16532 # -----------------
16533 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16537 as_fn_set_status $1
16543 # Portably unset VAR.
16546 { eval $1=; unset $1;}
16548 as_unset=as_fn_unset
16549 # as_fn_append VAR VALUE
16550 # ----------------------
16551 # Append the text in VALUE to the end of the definition contained in VAR. Take
16552 # advantage of any shell optimizations that allow amortized linear growth over
16553 # repeated appends, instead of the typical quadratic growth present in naive
16555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16556 eval 'as_fn_append ()
16567 # as_fn_arith ARG...
16568 # ------------------
16569 # Perform arithmetic evaluation on the ARGs, and store the result in the
16570 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16571 # must be portable across $(()) and expr.
16572 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16573 eval 'as_fn_arith ()
16580 as_val=`expr "$@" || test $? -eq 1`
16585 if expr a : '\(a\)' >/dev/null 2>&1 &&
16586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16593 as_basename=basename
16598 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16604 as_me=`$as_basename -- "$0" ||
16605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16606 X"$0" : 'X\(//\)$' \| \
16607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16609 sed '/^.*\/\([^/][^/]*\)\/*$/{
16623 # Avoid depending upon Character Ranges.
16624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16627 as_cr_digits='0123456789'
16628 as_cr_alnum=$as_cr_Letters$as_cr_digits
16630 ECHO_C= ECHO_N= ECHO_T=
16631 case `echo -n x` in #(((((
16633 case `echo 'xy\c'` in
16634 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16636 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16643 rm -f conf$$ conf$$.exe conf$$.file
16644 if test -d conf$$.dir; then
16645 rm -f conf$$.dir/conf$$.file
16648 mkdir conf$$.dir 2>/dev/null
16650 if (echo >conf$$.file) 2>/dev/null; then
16651 if ln -s conf$$.file conf$$ 2>/dev/null; then
16653 # ... but there are two gotchas:
16654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16656 # In both cases, we have to default to `cp -pR'.
16657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16659 elif ln conf$$.file conf$$ 2>/dev/null; then
16667 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16668 rmdir conf$$.dir 2>/dev/null
16673 # Create "$as_dir" as a directory, including parents if necessary.
16678 -*) as_dir=./$as_dir;;
16680 test -d "$as_dir" || eval $as_mkdir_p || {
16684 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16685 *) as_qdir=$as_dir;;
16687 as_dirs="'$as_qdir' $as_dirs"
16688 as_dir=`$as_dirname -- "$as_dir" ||
16689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16690 X"$as_dir" : 'X\(//\)[^/]' \| \
16691 X"$as_dir" : 'X\(//\)$' \| \
16692 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16693 $as_echo X"$as_dir" |
16694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16698 /^X\(\/\/\)[^/].*/{
16711 test -d "$as_dir" && break
16713 test -z "$as_dirs" || eval "mkdir $as_dirs"
16714 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16718 if mkdir -p . 2>/dev/null; then
16719 as_mkdir_p='mkdir -p "$as_dir"'
16721 test -d ./-p && rmdir ./-p
16726 # as_fn_executable_p FILE
16727 # -----------------------
16728 # Test if FILE is an executable regular file.
16729 as_fn_executable_p ()
16731 test -f "$1" && test -x "$1"
16732 } # as_fn_executable_p
16733 as_test_x='test -x'
16734 as_executable_p=as_fn_executable_p
16736 # Sed expression to map a string onto a valid CPP name.
16737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16739 # Sed expression to map a string onto a valid variable name.
16740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16744 ## ----------------------------------- ##
16745 ## Main body of $CONFIG_STATUS script. ##
16746 ## ----------------------------------- ##
16748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16751 # Save the log message, to keep $0 and so on meaningful, and to
16752 # report actual input values of CONFIG_FILES etc. instead of their
16753 # values after options handling.
16755 This file was extended by OpenFst $as_me 1.6.5, which was
16756 generated by GNU Autoconf 2.69. Invocation command line was
16758 CONFIG_FILES = $CONFIG_FILES
16759 CONFIG_HEADERS = $CONFIG_HEADERS
16760 CONFIG_LINKS = $CONFIG_LINKS
16761 CONFIG_COMMANDS = $CONFIG_COMMANDS
16764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16769 case $ac_config_files in *"
16770 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16773 case $ac_config_headers in *"
16774 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 # Files that config.status was made for.
16780 config_files="$ac_config_files"
16781 config_headers="$ac_config_headers"
16782 config_commands="$ac_config_commands"
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16788 \`$as_me' instantiates files and other configuration actions
16789 from templates according to the current configuration. Unless the files
16790 and actions are specified as TAGs, all are instantiated by default.
16792 Usage: $0 [OPTION]... [TAG]...
16794 -h, --help print this help, then exit
16795 -V, --version print version number and configuration settings, then exit
16796 --config print configuration, then exit
16797 -q, --quiet, --silent
16798 do not print progress messages
16799 -d, --debug don't remove temporary files
16800 --recheck update $as_me by reconfiguring in the same conditions
16801 --file=FILE[:TEMPLATE]
16802 instantiate the configuration file FILE
16803 --header=FILE[:TEMPLATE]
16804 instantiate the configuration header FILE
16806 Configuration files:
16809 Configuration headers:
16812 Configuration commands:
16815 Report bugs to <help@www.openfst.org>."
16818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16819 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16821 OpenFst config.status 1.6.5
16822 configured by $0, generated by GNU Autoconf 2.69,
16823 with options \\"\$ac_cs_config\\"
16825 Copyright (C) 2012 Free Software Foundation, Inc.
16826 This config.status script is free software; the Free Software Foundation
16827 gives unlimited permission to copy, distribute and modify it."
16834 test -n "\$AWK" || AWK=awk
16837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838 # The default lists apply if the user does not specify any file.
16844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16845 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16861 # Handling of the options.
16862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16865 $as_echo "$ac_cs_version"; exit ;;
16866 --config | --confi | --conf | --con | --co | --c )
16867 $as_echo "$ac_cs_config"; exit ;;
16868 --debug | --debu | --deb | --de | --d | -d )
16870 --file | --fil | --fi | --f )
16873 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16874 '') as_fn_error $? "missing file argument" ;;
16876 as_fn_append CONFIG_FILES " '$ac_optarg'"
16877 ac_need_defaults=false;;
16878 --header | --heade | --head | --hea )
16881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16883 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16884 ac_need_defaults=false;;
16886 # Conflict between --help and --header
16887 as_fn_error $? "ambiguous option: \`$1'
16888 Try \`$0 --help' for more information.";;
16889 --help | --hel | -h )
16890 $as_echo "$ac_cs_usage"; exit ;;
16891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16892 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16895 # This is an error.
16896 -*) as_fn_error $? "unrecognized option: \`$1'
16897 Try \`$0 --help' for more information." ;;
16899 *) as_fn_append ac_config_targets " $1"
16900 ac_need_defaults=false ;;
16906 ac_configure_extra_args=
16908 if $ac_cs_silent; then
16910 ac_configure_extra_args="$ac_configure_extra_args --silent"
16914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915 if \$ac_cs_recheck; then
16916 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16918 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16919 CONFIG_SHELL='$SHELL'
16920 export CONFIG_SHELL
16925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16930 ## Running $as_me. ##
16936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16940 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16943 # The HP-UX ksh and POSIX shell print the target directory to stdout
16944 # if CDPATH is set.
16945 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16947 sed_quote_subst='$sed_quote_subst'
16948 double_quote_subst='$double_quote_subst'
16949 delay_variable_subst='$delay_variable_subst'
16950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16951 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16952 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16953 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16954 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16955 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16956 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16957 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16958 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16959 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16960 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16961 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16962 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16963 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16964 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16965 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16966 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16967 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16968 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16969 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16970 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16971 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16972 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16973 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16974 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16975 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16976 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16977 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16978 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16979 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16980 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16981 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16982 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16983 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16984 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16985 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16986 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16987 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16988 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16989 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16990 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16991 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16992 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17005 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17006 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"`'
17007 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17008 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17009 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17010 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17011 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17012 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17013 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17014 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17015 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17016 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17017 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17018 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17019 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17020 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17021 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17022 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17023 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17024 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17025 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17026 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17027 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17028 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17029 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17030 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17031 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17032 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17033 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17034 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17035 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17036 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17037 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17038 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17039 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17040 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17041 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17042 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17043 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17044 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17045 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17046 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17047 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17048 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17049 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17050 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17051 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17052 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17053 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17054 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17055 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17056 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17057 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17058 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17059 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17060 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17061 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17062 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17063 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17064 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17065 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17066 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17067 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17068 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17069 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17070 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17071 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17072 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17073 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17074 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17075 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17076 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17077 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17078 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17079 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17080 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17081 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17082 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17083 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17084 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17085 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17086 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17087 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17088 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17089 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17090 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17091 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17092 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17093 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17094 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17095 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17096 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17097 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17098 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17099 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17100 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17101 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17102 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17103 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17104 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17105 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17106 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17107 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17108 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17109 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17110 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17111 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17112 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17113 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17114 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17115 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17116 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17117 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17118 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17119 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17120 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17121 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17122 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17123 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17124 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17125 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17126 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17127 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17128 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17129 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17130 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17131 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17132 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17133 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17136 LTCFLAGS='$LTCFLAGS'
17137 compiler='$compiler_DEFAULT'
17139 # A function that is used when there is no print builtin or printf.
17140 func_fallback_echo ()
17142 eval 'cat <<_LTECHO_EOF
17147 # Quote evaled strings.
17162 deplibs_check_method \
17167 sharedlib_from_linklib_cmd \
17170 archiver_list_spec \
17176 lt_cv_sys_global_symbol_pipe \
17177 lt_cv_sys_global_symbol_to_cdecl \
17178 lt_cv_sys_global_symbol_to_c_name_address \
17179 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17180 nm_file_list_spec \
17181 lt_prog_compiler_no_builtin_flag \
17182 lt_prog_compiler_pic \
17183 lt_prog_compiler_wl \
17184 lt_prog_compiler_static \
17185 lt_cv_prog_compiler_c_o \
17194 export_dynamic_flag_spec \
17195 whole_archive_flag_spec \
17196 compiler_needs_object \
17198 allow_undefined_flag \
17199 no_undefined_flag \
17200 hardcode_libdir_flag_spec \
17201 hardcode_libdir_separator \
17205 variables_saved_for_relink \
17207 library_names_spec \
17209 install_override_mode \
17213 compiler_lib_search_dirs \
17218 compiler_lib_search_path \
17222 lt_prog_compiler_no_builtin_flag_CXX \
17223 lt_prog_compiler_pic_CXX \
17224 lt_prog_compiler_wl_CXX \
17225 lt_prog_compiler_static_CXX \
17226 lt_cv_prog_compiler_c_o_CXX \
17227 export_dynamic_flag_spec_CXX \
17228 whole_archive_flag_spec_CXX \
17229 compiler_needs_object_CXX \
17231 allow_undefined_flag_CXX \
17232 no_undefined_flag_CXX \
17233 hardcode_libdir_flag_spec_CXX \
17234 hardcode_libdir_separator_CXX \
17235 exclude_expsyms_CXX \
17236 include_expsyms_CXX \
17237 file_list_spec_CXX \
17238 compiler_lib_search_dirs_CXX \
17239 predep_objects_CXX \
17240 postdep_objects_CXX \
17243 compiler_lib_search_path_CXX; do
17244 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17245 *[\\\\\\\`\\"\\\$]*)
17246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17254 # Double-quote double-evaled strings.
17255 for var in reload_cmds \
17256 old_postinstall_cmds \
17257 old_postuninstall_cmds \
17259 extract_expsyms_cmds \
17260 old_archive_from_new_cmds \
17261 old_archive_from_expsyms_cmds \
17263 archive_expsym_cmds \
17265 module_expsym_cmds \
17266 export_symbols_cmds \
17270 postuninstall_cmds \
17272 sys_lib_search_path_spec \
17273 sys_lib_dlsearch_path_spec \
17275 old_archive_cmds_CXX \
17276 old_archive_from_new_cmds_CXX \
17277 old_archive_from_expsyms_cmds_CXX \
17279 archive_expsym_cmds_CXX \
17281 module_expsym_cmds_CXX \
17282 export_symbols_cmds_CXX \
17284 postlink_cmds_CXX; do
17285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17286 *[\\\\\\\`\\"\\\$]*)
17287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17295 ac_aux_dir='$ac_aux_dir'
17296 xsi_shell='$xsi_shell'
17297 lt_shell_append='$lt_shell_append'
17299 # See if we are running on zsh, and set the options which allow our
17300 # commands through without removal of \ escapes INIT.
17301 if test -n "\${ZSH_VERSION+set}" ; then
17302 setopt NO_GLOB_SUBST
17308 TIMESTAMP='$TIMESTAMP'
17319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17321 # Handling of arguments.
17322 for ac_config_target in $ac_config_targets
17324 case $ac_config_target in
17325 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17326 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17327 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17328 "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
17329 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17330 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17331 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
17332 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17333 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
17334 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17335 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
17336 "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
17337 "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
17338 "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
17339 "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
17340 "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
17341 "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
17342 "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
17343 "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
17344 "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
17345 "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
17346 "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
17347 "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
17349 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17354 # If the user did not use the arguments to specify the items to instantiate,
17355 # then the envvar interface is used. Set only those that are not.
17356 # We use the long form for the default assignment because of an extremely
17357 # bizarre bug on SunOS 4.1.3.
17358 if $ac_need_defaults; then
17359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17364 # Have a temporary directory for convenience. Make it in the build tree
17365 # simply because there is no reason against having it here, and in addition,
17366 # creating and moving files from /tmp can sometimes cause problems.
17367 # Hook for its removal unless debugging.
17368 # Note that there is a small window in which the directory will not be cleaned:
17369 # after its creation but before its name has been assigned to `$tmp'.
17373 trap 'exit_status=$?
17374 : "${ac_tmp:=$tmp}"
17375 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17377 trap 'as_fn_exit 1' 1 2 13 15
17379 # Create a (secure) tmp directory for tmp files.
17382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17386 tmp=./conf$$-$RANDOM
17387 (umask 077 && mkdir "$tmp")
17388 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17391 # Set up the scripts for CONFIG_FILES section.
17392 # No need to generate them if there are no CONFIG_FILES.
17393 # This happens for instance with `./config.status config.h'.
17394 if test -n "$CONFIG_FILES"; then
17397 ac_cr=`echo X | tr X '\015'`
17398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17399 # But we know of no other shell where ac_cr would be empty at this
17400 # point, so we can use a bashism as a fallback.
17401 if test "x$ac_cr" = x; then
17402 eval ac_cr=\$\'\\r\'
17404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17408 ac_cs_awk_cr=$ac_cr
17411 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17416 echo "cat >conf$$subs.awk <<_ACEOF" &&
17417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17419 } >conf$$subs.sh ||
17420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17421 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17423 for ac_last_try in false false false false false :; do
17424 . ./conf$$subs.sh ||
17425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17428 if test $ac_delim_n = $ac_delim_num; then
17430 elif $ac_last_try; then
17431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17436 rm -f conf$$subs.sh
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17443 s/^/S["/; s/!.*/"]=/
17453 s/\(.\{148\}\)..*/\1/
17455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17460 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17467 s/\(.\{148\}\)..*/\1/
17469 s/["\\]/\\&/g; s/^/"/; s/$/"/
17473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17478 ' <conf$$subs.awk | sed '
17483 ' >>$CONFIG_STATUS || ac_write_fail=1
17484 rm -f conf$$subs.awk
17485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17487 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17488 for (key in S) S_is_set[key] = 1
17494 nfields = split(line, field, "@")
17496 len = length(field[1])
17497 for (i = 2; i < nfields; i++) {
17499 keylen = length(key)
17500 if (S_is_set[key]) {
17502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17503 len += length(value) + length(field[++i])
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17519 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17520 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17523 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17524 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17525 # trailing colons and then remove the whole line if VPATH becomes empty
17526 # (actually we leave an empty line to preserve line numbers).
17527 if test "x$srcdir" = x.; then
17528 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 fi # test -n "$CONFIG_FILES"
17549 # Set up the scripts for CONFIG_HEADERS section.
17550 # No need to generate them if there are no CONFIG_HEADERS.
17551 # This happens for instance with `./config.status Makefile'.
17552 if test -n "$CONFIG_HEADERS"; then
17553 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17557 # Transform confdefs.h into an awk script `defines.awk', embedded as
17558 # here-document in config.status, that substitutes the proper values into
17559 # config.h.in to produce config.h.
17561 # Create a delimiter string that does not exist in confdefs.h, to ease
17562 # handling of long lines.
17564 for ac_last_try in false false :; do
17565 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17566 if test -z "$ac_tt"; then
17568 elif $ac_last_try; then
17569 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17575 # For the awk script, D is an array of macro values keyed by name,
17576 # likewise P contains macro parameters if any. Preserve backslash
17577 # newline sequences.
17579 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17581 s/.\{148\}/&'"$ac_delim"'/g
17584 s/^[ ]*#[ ]*define[ ][ ]*/ /
17591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17598 D["\1"]=" \3\\\\\\n"\\/p
17600 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17605 s/.\{148\}/&'"$ac_delim"'/g
17610 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17613 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17615 ' <confdefs.h | sed '
17616 s/'"$ac_delim"'/"\\\
17617 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17620 for (key in D) D_is_set[key] = 1
17623 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17625 split(line, arg, " ")
17626 if (arg[1] == "#") {
17630 defundef = substr(arg[1], 2)
17633 split(mac1, mac2, "(") #)
17635 prefix = substr(line, 1, index(line, defundef) - 1)
17636 if (D_is_set[macro]) {
17637 # Preserve the white space surrounding the "#".
17638 print prefix "define", macro P[macro] D[macro]
17641 # Replace #undef with comments. This is necessary, for example,
17642 # in the case of _POSIX_SOURCE, which is predefined and required
17643 # on some systems where configure will not decide to define it.
17644 if (defundef == "undef") {
17645 print "/*", prefix defundef, macro, "*/"
17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17654 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17655 fi # test -n "$CONFIG_HEADERS"
17658 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17663 :[FHLC]) ac_mode=$ac_tag; continue;;
17665 case $ac_mode$ac_tag in
17667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17668 :[FH]-) ac_tag=-:-;;
17669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17686 -) ac_f="$ac_tmp/stdin";;
17687 *) # Look for the file first in the build tree, then in the source tree
17688 # (if the path is not absolute). The absolute path cannot be DOS-style,
17689 # because $ac_f cannot contain `:'.
17693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17698 as_fn_append ac_file_inputs " '$ac_f'"
17701 # Let's still pretend it is `configure' which instantiates (i.e., don't
17702 # use $as_me), people would be surprised to read:
17703 # /* config.h. Generated by config.status. */
17704 configure_input='Generated from '`
17705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17707 if test x"$ac_file" != x-; then
17708 configure_input="$ac_file. $configure_input"
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17710 $as_echo "$as_me: creating $ac_file" >&6;}
17712 # Neutralize special characters interpreted by sed in replacement strings.
17713 case $configure_input in #(
17714 *\&* | *\|* | *\\* )
17715 ac_sed_conf_input=`$as_echo "$configure_input" |
17716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17717 *) ac_sed_conf_input=$configure_input;;
17721 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17727 ac_dir=`$as_dirname -- "$ac_file" ||
17728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17729 X"$ac_file" : 'X\(//\)[^/]' \| \
17730 X"$ac_file" : 'X\(//\)$' \| \
17731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17732 $as_echo X"$ac_file" |
17733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17737 /^X\(\/\/\)[^/].*/{
17750 as_dir="$ac_dir"; as_fn_mkdir_p
17754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17757 # A ".." for each directory in $ac_dir_suffix.
17758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17759 case $ac_top_builddir_sub in
17760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17764 ac_abs_top_builddir=$ac_pwd
17765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17766 # for backward compatibility:
17767 ac_top_builddir=$ac_top_build_prefix
17770 .) # We are building in place.
17772 ac_top_srcdir=$ac_top_builddir_sub
17773 ac_abs_top_srcdir=$ac_pwd ;;
17774 [\\/]* | ?:[\\/]* ) # Absolute name.
17775 ac_srcdir=$srcdir$ac_dir_suffix;
17776 ac_top_srcdir=$srcdir
17777 ac_abs_top_srcdir=$srcdir ;;
17778 *) # Relative name.
17779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17780 ac_top_srcdir=$ac_top_build_prefix$srcdir
17781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17796 ac_MKDIR_P=$MKDIR_P
17798 [\\/$]* | ?:[\\/]* ) ;;
17799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 # If the template does not know about datarootdir, expand it.
17805 # FIXME: This hack should be removed a few years after 2.60.
17806 ac_datarootdir_hack=; ac_datarootdir_seen=
17817 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17818 *datarootdir*) ac_datarootdir_seen=yes;;
17819 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17821 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17824 ac_datarootdir_hack='
17825 s&@datadir@&$datadir&g
17826 s&@docdir@&$docdir&g
17827 s&@infodir@&$infodir&g
17828 s&@localedir@&$localedir&g
17829 s&@mandir@&$mandir&g
17830 s&\\\${datarootdir}&$datarootdir&g' ;;
17834 # Neutralize VPATH when `$srcdir' = `.'.
17835 # Shell code in configure.ac might set extrasub.
17836 # FIXME: do we really want to maintain this feature?
17837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17838 ac_sed_extra="$ac_vpsub
17841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17844 s|@configure_input@|$ac_sed_conf_input|;t t
17845 s&@top_builddir@&$ac_top_builddir_sub&;t t
17846 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17847 s&@srcdir@&$ac_srcdir&;t t
17848 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17849 s&@top_srcdir@&$ac_top_srcdir&;t t
17850 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17851 s&@builddir@&$ac_builddir&;t t
17852 s&@abs_builddir@&$ac_abs_builddir&;t t
17853 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17854 s&@INSTALL@&$ac_INSTALL&;t t
17855 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17856 $ac_datarootdir_hack
17858 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17864 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17866 which seems to be undefined. Please make sure it is defined" >&5
17867 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17868 which seems to be undefined. Please make sure it is defined" >&2;}
17870 rm -f "$ac_tmp/stdin"
17872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17881 if test x"$ac_file" != x-; then
17883 $as_echo "/* $configure_input */" \
17884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17885 } >"$ac_tmp/config.h" \
17886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17887 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17889 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17892 mv "$ac_tmp/config.h" "$ac_file" \
17893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17896 $as_echo "/* $configure_input */" \
17897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17898 || as_fn_error $? "could not create -" "$LINENO" 5
17900 # Compute "$ac_file"'s index in $config_headers.
17903 for _am_header in $config_headers :; do
17904 case $_am_header in
17905 $_am_arg | $_am_arg:* )
17908 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17911 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17912 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17913 X"$_am_arg" : 'X\(//\)[^/]' \| \
17914 X"$_am_arg" : 'X\(//\)$' \| \
17915 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17916 $as_echo X"$_am_arg" |
17917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17921 /^X\(\/\/\)[^/].*/{
17933 s/.*/./; q'`/stamp-h$_am_stamp_count
17936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17937 $as_echo "$as_me: executing $ac_file commands" >&6;}
17942 case $ac_file$ac_mode in
17943 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17944 # Older Autoconf quotes --file arguments for eval, but not when files
17945 # are listed without --file. Let's play safe and only enable the eval
17946 # if we detect the quoting.
17947 case $CONFIG_FILES in
17948 *\'*) eval set x "$CONFIG_FILES" ;;
17949 *) set x $CONFIG_FILES ;;
17954 # Strip MF so we end up with the name of the file.
17955 mf=`echo "$mf" | sed -e 's/:.*$//'`
17956 # Check whether this is an Automake generated Makefile or not.
17957 # We used to match only the files named 'Makefile.in', but
17958 # some people rename them; so instead we look at the file content.
17959 # Grep'ing the first line is not enough: some people post-process
17960 # each Makefile.in and add a new line on top of each file to say so.
17961 # Grep'ing the whole file is not good either: AIX grep has a line
17962 # limit of 2048, but all sed's we know have understand at least 4000.
17963 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17964 dirpart=`$as_dirname -- "$mf" ||
17965 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17966 X"$mf" : 'X\(//\)[^/]' \| \
17967 X"$mf" : 'X\(//\)$' \| \
17968 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17974 /^X\(\/\/\)[^/].*/{
17990 # Extract the definition of DEPDIR, am__include, and am__quote
17991 # from the Makefile without running 'make'.
17992 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17993 test -z "$DEPDIR" && continue
17994 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17995 test -z "$am__include" && continue
17996 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17997 # Find all dependency output files, they are included files with
17998 # $(DEPDIR) in their names. We invoke sed twice because it is the
17999 # simplest approach to changing $(DEPDIR) to its actual value in the
18001 for file in `sed -n "
18002 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18003 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18004 # Make sure the directory exists.
18005 test -f "$dirpart/$file" && continue
18006 fdir=`$as_dirname -- "$file" ||
18007 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18008 X"$file" : 'X\(//\)[^/]' \| \
18009 X"$file" : 'X\(//\)$' \| \
18010 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18011 $as_echo X"$file" |
18012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18016 /^X\(\/\/\)[^/].*/{
18029 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18030 # echo "creating $dirpart/$file"
18031 echo '# dummy' > "$dirpart/$file"
18038 # See if we are running on zsh, and set the options which allow our
18039 # commands through without removal of \ escapes.
18040 if test -n "${ZSH_VERSION+set}" ; then
18041 setopt NO_GLOB_SUBST
18044 cfgfile="${ofile}T"
18045 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18048 cat <<_LT_EOF >> "$cfgfile"
18051 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18052 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18054 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18056 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18057 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18059 # Written by Gordon Matzigkeit, 1996
18061 # This file is part of GNU Libtool.
18063 # GNU Libtool is free software; you can redistribute it and/or
18064 # modify it under the terms of the GNU General Public License as
18065 # published by the Free Software Foundation; either version 2 of
18066 # the License, or (at your option) any later version.
18068 # As a special exception to the GNU General Public License,
18069 # if you distribute this file as part of a program or library that
18070 # is built using GNU Libtool, you may include this file under the
18071 # same distribution terms that you use for the rest of that program.
18073 # GNU Libtool is distributed in the hope that it will be useful,
18074 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18075 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18076 # GNU General Public License for more details.
18078 # You should have received a copy of the GNU General Public License
18079 # along with GNU Libtool; see the file COPYING. If not, a copy
18080 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18081 # obtained by writing to the Free Software Foundation, Inc.,
18082 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18085 # The names of the tagged configurations supported by this script.
18086 available_tags="CXX "
18088 # ### BEGIN LIBTOOL CONFIG
18090 # Whether or not to build static libraries.
18091 build_old_libs=$enable_static
18093 # Which release of libtool.m4 was used?
18094 macro_version=$macro_version
18095 macro_revision=$macro_revision
18097 # Whether or not to build shared libraries.
18098 build_libtool_libs=$enable_shared
18100 # What type of objects to build.
18103 # Whether or not to optimize for fast installation.
18104 fast_install=$enable_fast_install
18106 # Shell to use when invoking shell scripts.
18109 # An echo program that protects backslashes.
18112 # The PATH separator for the build system.
18113 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18116 host_alias=$host_alias
18120 # The build system.
18121 build_alias=$build_alias
18125 # A sed program that does not truncate output.
18128 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18129 Xsed="\$SED -e 1s/^X//"
18131 # A grep program that handles long lines.
18137 # A literal string matcher.
18140 # A BSD- or MS-compatible name lister.
18143 # Whether we need soft or hard links.
18146 # What is the maximum length of a command?
18147 max_cmd_len=$max_cmd_len
18149 # Object file suffix (normally "o").
18152 # Executable file suffix (normally "").
18155 # whether the shell understands "unset".
18158 # turn spaces into newlines.
18161 # turn newlines into spaces.
18164 # convert \$build file names to \$host format.
18165 to_host_file_cmd=$lt_cv_to_host_file_cmd
18167 # convert \$build files to toolchain format.
18168 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18170 # An object symbol dumper.
18171 OBJDUMP=$lt_OBJDUMP
18173 # Method to check whether dependent libraries are shared objects.
18174 deplibs_check_method=$lt_deplibs_check_method
18176 # Command to use when deplibs_check_method = "file_magic".
18177 file_magic_cmd=$lt_file_magic_cmd
18179 # How to find potential files when deplibs_check_method = "file_magic".
18180 file_magic_glob=$lt_file_magic_glob
18182 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18183 want_nocaseglob=$lt_want_nocaseglob
18185 # DLL creation program.
18186 DLLTOOL=$lt_DLLTOOL
18188 # Command to associate shared and link libraries.
18189 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18194 # Flags to create an archive.
18195 AR_FLAGS=$lt_AR_FLAGS
18197 # How to feed a file listing to the archiver.
18198 archiver_list_spec=$lt_archiver_list_spec
18200 # A symbol stripping program.
18203 # Commands used to install an old-style archive.
18205 old_postinstall_cmds=$lt_old_postinstall_cmds
18206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18208 # Whether to use a lock for old archive extraction.
18209 lock_old_archive_extraction=$lock_old_archive_extraction
18214 # LTCC compiler flags.
18215 LTCFLAGS=$lt_CFLAGS
18217 # Take the output of nm and produce a listing of raw symbols and C names.
18218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18220 # Transform the output of nm in a proper C declaration.
18221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18223 # Transform the output of nm in a C name address pair.
18224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18226 # Transform the output of nm in a C name address pair when lib prefix is needed.
18227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18229 # Specify filename containing input files for \$NM.
18230 nm_file_list_spec=$lt_nm_file_list_spec
18232 # The root where to search for dependent libraries,and in which our libraries should be installed.
18233 lt_sysroot=$lt_sysroot
18235 # The name of the directory that contains temporary libtool files.
18238 # Used to examine libraries when file_magic_cmd begins with "file".
18239 MAGIC_CMD=$MAGIC_CMD
18241 # Must we lock files when doing compilation?
18242 need_locks=$lt_need_locks
18245 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18247 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18248 DSYMUTIL=$lt_DSYMUTIL
18250 # Tool to change global to local symbols on Mac OS X.
18253 # Tool to manipulate fat objects and archives on Mac OS X.
18256 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18259 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18260 OTOOL64=$lt_OTOOL64
18262 # Old archive suffix (normally "a").
18265 # Shared library suffix (normally ".so").
18266 shrext_cmds=$lt_shrext_cmds
18268 # The commands to extract the exported symbol list from a shared archive.
18269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18271 # Variables whose values should be saved in libtool wrapper scripts and
18272 # restored at link time.
18273 variables_saved_for_relink=$lt_variables_saved_for_relink
18275 # Do we need the "lib" prefix for modules?
18276 need_lib_prefix=$need_lib_prefix
18278 # Do we need a version for libraries?
18279 need_version=$need_version
18281 # Library versioning type.
18282 version_type=$version_type
18284 # Shared library runtime path variable.
18285 runpath_var=$runpath_var
18287 # Shared library path variable.
18288 shlibpath_var=$shlibpath_var
18290 # Is shlibpath searched before the hard-coded library search path?
18291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18296 # List of archive names. First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME
18298 library_names_spec=$lt_library_names_spec
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18303 # Permission mode override for installation of shared libraries.
18304 install_override_mode=$lt_install_override_mode
18306 # Command to use after installation of a shared archive.
18307 postinstall_cmds=$lt_postinstall_cmds
18309 # Command to use after uninstallation of a shared archive.
18310 postuninstall_cmds=$lt_postuninstall_cmds
18312 # Commands used to finish a libtool library installation in a directory.
18313 finish_cmds=$lt_finish_cmds
18315 # As "finish_cmds", except a single script fragment to be evaled but
18317 finish_eval=$lt_finish_eval
18319 # Whether we should hardcode library paths into libraries.
18320 hardcode_into_libs=$hardcode_into_libs
18322 # Compile-time system search path for libraries.
18323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18325 # Run-time system search path for libraries.
18326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18328 # Whether dlopen is supported.
18329 dlopen_support=$enable_dlopen
18331 # Whether dlopen of programs is supported.
18332 dlopen_self=$enable_dlopen_self
18334 # Whether dlopen of statically linked programs is supported.
18335 dlopen_self_static=$enable_dlopen_self_static
18337 # Commands to strip libraries.
18338 old_striplib=$lt_old_striplib
18339 striplib=$lt_striplib
18342 # The linker used to build libraries.
18345 # How to create reloadable object files.
18346 reload_flag=$lt_reload_flag
18347 reload_cmds=$lt_reload_cmds
18349 # Commands used to build an old-style archive.
18350 old_archive_cmds=$lt_old_archive_cmds
18352 # A language specific compiler.
18355 # Is the compiler the GNU compiler?
18358 # Compiler flag to turn off builtin functions.
18359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18361 # Additional compiler flags for building library objects.
18362 pic_flag=$lt_lt_prog_compiler_pic
18364 # How to pass a linker flag through the compiler.
18365 wl=$lt_lt_prog_compiler_wl
18367 # Compiler flag to prevent dynamic linking.
18368 link_static_flag=$lt_lt_prog_compiler_static
18370 # Does compiler simultaneously support -c and -o options?
18371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18373 # Whether or not to add -lc for building shared libraries.
18374 build_libtool_need_lc=$archive_cmds_need_lc
18376 # Whether or not to disallow shared libs when runtime libs are static.
18377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18379 # Compiler flag to allow reflexive dlopens.
18380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18382 # Compiler flag to generate shared objects directly from archives.
18383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18385 # Whether the compiler copes with passing no objects directly.
18386 compiler_needs_object=$lt_compiler_needs_object
18388 # Create an old-style archive from a shared archive.
18389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18391 # Create a temporary old-style archive to link instead of a shared archive.
18392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18394 # Commands used to build a shared archive.
18395 archive_cmds=$lt_archive_cmds
18396 archive_expsym_cmds=$lt_archive_expsym_cmds
18398 # Commands used to build a loadable module if different from building
18399 # a shared archive.
18400 module_cmds=$lt_module_cmds
18401 module_expsym_cmds=$lt_module_expsym_cmds
18403 # Whether we are building with GNU ld or not.
18404 with_gnu_ld=$lt_with_gnu_ld
18406 # Flag that allows shared libraries with undefined symbols to be built.
18407 allow_undefined_flag=$lt_allow_undefined_flag
18409 # Flag that enforces no undefined symbols.
18410 no_undefined_flag=$lt_no_undefined_flag
18412 # Flag to hardcode \$libdir into a binary during linking.
18413 # This must work even if \$libdir does not exist
18414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18416 # Whether we need a single "-rpath" flag with a separated argument.
18417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18420 # DIR into the resulting binary.
18421 hardcode_direct=$hardcode_direct
18423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18424 # DIR into the resulting binary and the resulting library dependency is
18425 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18426 # library is relocated.
18427 hardcode_direct_absolute=$hardcode_direct_absolute
18429 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18430 # into the resulting binary.
18431 hardcode_minus_L=$hardcode_minus_L
18433 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18434 # into the resulting binary.
18435 hardcode_shlibpath_var=$hardcode_shlibpath_var
18437 # Set to "yes" if building a shared library automatically hardcodes DIR
18438 # into the library and all subsequent libraries and executables linked
18440 hardcode_automatic=$hardcode_automatic
18442 # Set to yes if linker adds runtime paths of dependent libraries
18443 # to runtime path list.
18444 inherit_rpath=$inherit_rpath
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs
18449 # Set to "yes" if exported symbols are required.
18450 always_export_symbols=$always_export_symbols
18452 # The commands to list exported symbols.
18453 export_symbols_cmds=$lt_export_symbols_cmds
18455 # Symbols that should not be listed in the preloaded symbols.
18456 exclude_expsyms=$lt_exclude_expsyms
18458 # Symbols that must always be exported.
18459 include_expsyms=$lt_include_expsyms
18461 # Commands necessary for linking programs (against libraries) with templates.
18462 prelink_cmds=$lt_prelink_cmds
18464 # Commands necessary for finishing linking programs.
18465 postlink_cmds=$lt_postlink_cmds
18467 # Specify filename containing input files.
18468 file_list_spec=$lt_file_list_spec
18470 # How to hardcode a shared library path into an executable.
18471 hardcode_action=$hardcode_action
18473 # The directories searched by this compiler when creating a shared library.
18474 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18476 # Dependencies to place before and after the objects being linked to
18477 # create a shared library.
18478 predep_objects=$lt_predep_objects
18479 postdep_objects=$lt_postdep_objects
18480 predeps=$lt_predeps
18481 postdeps=$lt_postdeps
18483 # The library search path used internally by the compiler when linking
18484 # a shared library.
18485 compiler_lib_search_path=$lt_compiler_lib_search_path
18487 # ### END LIBTOOL CONFIG
18493 cat <<\_LT_EOF >> "$cfgfile"
18494 # AIX sometimes has problems with the GCC collect2 program. For some
18495 # reason, if we set the COLLECT_NAMES environment variable, the problems
18496 # vanish in a puff of smoke.
18497 if test "X${COLLECT_NAMES+set}" != Xset; then
18499 export COLLECT_NAMES
18506 ltmain="$ac_aux_dir/ltmain.sh"
18509 # We use sed instead of cat because bash on DJGPP gets confused if
18510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18511 # text mode, it properly converts lines to CR/LF. This bash problem
18512 # is reportedly fixed, but why not run on old versions too?
18513 sed '$q' "$ltmain" >> "$cfgfile" \
18514 || (rm -f "$cfgfile"; exit 1)
18516 if test x"$xsi_shell" = xyes; then
18517 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18521 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18522 \ * ) func_dirname_result="${3}" ;;\
18524 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18525 && mv -f "$cfgfile.tmp" "$cfgfile" \
18526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18527 test 0 -eq $? || _lt_function_replace_fail=:
18530 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18533 \ func_basename_result="${1##*/}"\
18534 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18535 && mv -f "$cfgfile.tmp" "$cfgfile" \
18536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18537 test 0 -eq $? || _lt_function_replace_fail=:
18540 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18541 func_dirname_and_basename ()\
18544 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18545 \ * ) func_dirname_result="${3}" ;;\
18547 \ func_basename_result="${1##*/}"\
18548 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18549 && mv -f "$cfgfile.tmp" "$cfgfile" \
18550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18551 test 0 -eq $? || _lt_function_replace_fail=:
18554 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18557 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18558 \ # positional parameters, so assign one to ordinary parameter first.\
18559 \ func_stripname_result=${3}\
18560 \ func_stripname_result=${func_stripname_result#"${1}"}\
18561 \ func_stripname_result=${func_stripname_result%"${2}"}\
18562 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18563 && mv -f "$cfgfile.tmp" "$cfgfile" \
18564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18565 test 0 -eq $? || _lt_function_replace_fail=:
18568 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18569 func_split_long_opt ()\
18571 \ func_split_long_opt_name=${1%%=*}\
18572 \ func_split_long_opt_arg=${1#*=}\
18573 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18574 && mv -f "$cfgfile.tmp" "$cfgfile" \
18575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18576 test 0 -eq $? || _lt_function_replace_fail=:
18579 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18580 func_split_short_opt ()\
18582 \ func_split_short_opt_arg=${1#??}\
18583 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18584 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18585 && mv -f "$cfgfile.tmp" "$cfgfile" \
18586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18587 test 0 -eq $? || _lt_function_replace_fail=:
18590 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18594 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18595 \ *) func_lo2o_result=${1} ;;\
18597 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18598 && mv -f "$cfgfile.tmp" "$cfgfile" \
18599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18600 test 0 -eq $? || _lt_function_replace_fail=:
18603 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18606 func_xform_result=${1%.*}.lo\
18607 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18608 && mv -f "$cfgfile.tmp" "$cfgfile" \
18609 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18610 test 0 -eq $? || _lt_function_replace_fail=:
18613 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18616 func_arith_result=$(( $* ))\
18617 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18618 && mv -f "$cfgfile.tmp" "$cfgfile" \
18619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18620 test 0 -eq $? || _lt_function_replace_fail=:
18623 sed -e '/^func_len ()$/,/^} # func_len /c\
18626 func_len_result=${#1}\
18627 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18628 && mv -f "$cfgfile.tmp" "$cfgfile" \
18629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18630 test 0 -eq $? || _lt_function_replace_fail=:
18634 if test x"$lt_shell_append" = xyes; then
18635 sed -e '/^func_append ()$/,/^} # func_append /c\
18638 eval "${1}+=\\${2}"\
18639 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18640 && mv -f "$cfgfile.tmp" "$cfgfile" \
18641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18642 test 0 -eq $? || _lt_function_replace_fail=:
18645 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18646 func_append_quoted ()\
18648 \ func_quote_for_eval "${2}"\
18649 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18650 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18651 && mv -f "$cfgfile.tmp" "$cfgfile" \
18652 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18653 test 0 -eq $? || _lt_function_replace_fail=:
18656 # Save a `func_append' function call where possible by direct use of '+='
18657 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18658 && mv -f "$cfgfile.tmp" "$cfgfile" \
18659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18660 test 0 -eq $? || _lt_function_replace_fail=:
18662 # Save a `func_append' function call even when '+=' is not available
18663 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18664 && mv -f "$cfgfile.tmp" "$cfgfile" \
18665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18666 test 0 -eq $? || _lt_function_replace_fail=:
18669 if test x"$_lt_function_replace_fail" = x":"; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18671 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18675 mv -f "$cfgfile" "$ofile" ||
18676 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18680 cat <<_LT_EOF >> "$ofile"
18682 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18684 # The linker used to build libraries.
18687 # How to create reloadable object files.
18688 reload_flag=$lt_reload_flag_CXX
18689 reload_cmds=$lt_reload_cmds_CXX
18691 # Commands used to build an old-style archive.
18692 old_archive_cmds=$lt_old_archive_cmds_CXX
18694 # A language specific compiler.
18695 CC=$lt_compiler_CXX
18697 # Is the compiler the GNU compiler?
18700 # Compiler flag to turn off builtin functions.
18701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_CXX
18706 # How to pass a linker flag through the compiler.
18707 wl=$lt_lt_prog_compiler_wl_CXX
18709 # Compiler flag to prevent dynamic linking.
18710 link_static_flag=$lt_lt_prog_compiler_static_CXX
18712 # Does compiler simultaneously support -c and -o options?
18713 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18715 # Whether or not to add -lc for building shared libraries.
18716 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18718 # Whether or not to disallow shared libs when runtime libs are static.
18719 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18721 # Compiler flag to allow reflexive dlopens.
18722 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18724 # Compiler flag to generate shared objects directly from archives.
18725 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18727 # Whether the compiler copes with passing no objects directly.
18728 compiler_needs_object=$lt_compiler_needs_object_CXX
18730 # Create an old-style archive from a shared archive.
18731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18733 # Create a temporary old-style archive to link instead of a shared archive.
18734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18736 # Commands used to build a shared archive.
18737 archive_cmds=$lt_archive_cmds_CXX
18738 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18740 # Commands used to build a loadable module if different from building
18741 # a shared archive.
18742 module_cmds=$lt_module_cmds_CXX
18743 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18745 # Whether we are building with GNU ld or not.
18746 with_gnu_ld=$lt_with_gnu_ld_CXX
18748 # Flag that allows shared libraries with undefined symbols to be built.
18749 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18751 # Flag that enforces no undefined symbols.
18752 no_undefined_flag=$lt_no_undefined_flag_CXX
18754 # Flag to hardcode \$libdir into a binary during linking.
18755 # This must work even if \$libdir does not exist
18756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18758 # Whether we need a single "-rpath" flag with a separated argument.
18759 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18761 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18762 # DIR into the resulting binary.
18763 hardcode_direct=$hardcode_direct_CXX
18765 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18766 # DIR into the resulting binary and the resulting library dependency is
18767 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18768 # library is relocated.
18769 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18771 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18772 # into the resulting binary.
18773 hardcode_minus_L=$hardcode_minus_L_CXX
18775 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18776 # into the resulting binary.
18777 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18779 # Set to "yes" if building a shared library automatically hardcodes DIR
18780 # into the library and all subsequent libraries and executables linked
18782 hardcode_automatic=$hardcode_automatic_CXX
18784 # Set to yes if linker adds runtime paths of dependent libraries
18785 # to runtime path list.
18786 inherit_rpath=$inherit_rpath_CXX
18788 # Whether libtool must link a program against all its dependency libraries.
18789 link_all_deplibs=$link_all_deplibs_CXX
18791 # Set to "yes" if exported symbols are required.
18792 always_export_symbols=$always_export_symbols_CXX
18794 # The commands to list exported symbols.
18795 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18797 # Symbols that should not be listed in the preloaded symbols.
18798 exclude_expsyms=$lt_exclude_expsyms_CXX
18800 # Symbols that must always be exported.
18801 include_expsyms=$lt_include_expsyms_CXX
18803 # Commands necessary for linking programs (against libraries) with templates.
18804 prelink_cmds=$lt_prelink_cmds_CXX
18806 # Commands necessary for finishing linking programs.
18807 postlink_cmds=$lt_postlink_cmds_CXX
18809 # Specify filename containing input files.
18810 file_list_spec=$lt_file_list_spec_CXX
18812 # How to hardcode a shared library path into an executable.
18813 hardcode_action=$hardcode_action_CXX
18815 # The directories searched by this compiler when creating a shared library.
18816 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18818 # Dependencies to place before and after the objects being linked to
18819 # create a shared library.
18820 predep_objects=$lt_predep_objects_CXX
18821 postdep_objects=$lt_postdep_objects_CXX
18822 predeps=$lt_predeps_CXX
18823 postdeps=$lt_postdeps_CXX
18825 # The library search path used internally by the compiler when linking
18826 # a shared library.
18827 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18829 # ### END LIBTOOL TAG CONFIG: CXX
18840 ac_clean_files=$ac_clean_files_save
18842 test $ac_write_fail = 0 ||
18843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18846 # configure is writing to config.log, and then calls config.status.
18847 # config.status does its own redirection, appending to config.log.
18848 # Unfortunately, on DOS this fails, as config.log is still kept open
18849 # by configure, so config.status won't be able to write to it; its
18850 # output is simply discarded. So we exec the FD to /dev/null,
18851 # effectively closing config.log, so it can be properly (re)opened and
18852 # appended to by config.status. When coming back to configure, we
18853 # need to make the FD available again.
18854 if test "$no_create" != yes; then
18856 ac_config_status_args=
18857 test "$silent" = yes &&
18858 ac_config_status_args="$ac_config_status_args --quiet"
18860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18863 # would make configure fail if this is the last instruction.
18864 $ac_cs_success || as_fn_exit 1
18866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}