2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenFst 1.7.8.
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.7.8'
594 PACKAGE_STRING='OpenFst 1.7.8'
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
751 INSTALL_STRIP_PROGRAM
794 program_transform_name
808 enable_option_checking
810 enable_dependency_tracking
824 enable_lookahead_fsts
835 ac_precious_vars='build_alias
853 # Initialize some variables set by options.
855 ac_init_version=false
856 ac_unrecognized_opts=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 runstatedir='${localstatedir}/run'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1142 -runstatedir | --runstatedir | --runstatedi | --runstated \
1143 | --runstate | --runstat | --runsta | --runst | --runs \
1144 | --run | --ru | --r)
1145 ac_prev=runstatedir ;;
1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148 | --run=* | --ru=* | --r=*)
1149 runstatedir=$ac_optarg ;;
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir runstatedir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1297 # Be sure to have absolute directory names.
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1401 \`configure' configures OpenFst 1.7.8 to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/openfst]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of OpenFst 1.7.8:";;
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-compact-fsts enable CompactFst extensions
1492 --enable-compress enable compression extension
1493 --enable-const-fsts enable ConstFst extensions
1494 --enable-far enable FAR extensions
1495 --enable-linear-fsts enable LinearTagger/ClassifierFst extensions
1496 --enable-lookahead-fsts enable LookAheadFst extensions
1497 --enable-mpdt enable MPDT extensions
1498 --enable-ngram-fsts enable NGramFst extension
1499 --enable-pdt enable PDT extensions
1500 --enable-python enable Python extensions
1501 --enable-special enable special-matcher extensions
1502 --enable-bin enable fst::script and command-line binaries
1503 --enable-fsts enable all FST SOs
1504 --enable-grm enable all dependencies of OpenGrm
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 --with-aix-soname=aix|svr4|both
1512 shared library versioning (aka "SONAME") variant to
1513 provide on AIX, [default=aix].
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1516 compiler's sysroot if not specified).
1517 --with-libfstdir=DIR fst dynamic extensions [LIBDIR/fst]
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
1530 User-defined run-time library search path.
1532 CXXCPP C++ preprocessor
1533 PYTHON the Python interpreter
1535 The installed Python version to use, for example '2.3'. This
1536 string will be appended to the Python interpreter canonical
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <help@www.openfst.org>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1605 OpenFst configure 1.7.8
1606 generated by GNU Autoconf 2.69
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_compile
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_cxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_cxx_try_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1758 if ac_fn_c_try_compile "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_header_compile
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } > conftest.i && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=$ac_status
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1874 # include <limits.h>
1876 # include <assert.h>
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1903 if ac_fn_c_try_link "$LINENO"; then :
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_func
1918 # ac_fn_cxx_try_cpp LINENO
1919 # ------------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_cpp ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } > conftest.i && {
1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_cxx_try_cpp
1955 # ac_fn_cxx_try_link LINENO
1956 # -------------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_link ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 test -x conftest$ac_exeext
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1999 } # ac_fn_cxx_try_link
2001 # ac_fn_cxx_try_run LINENO
2002 # ------------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2005 ac_fn_cxx_try_run ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>&5
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2019 { { case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_try") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; }; }; then :
2031 $as_echo "$as_me: program exited with status $ac_status" >&5
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2035 ac_retval=$ac_status
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2041 } # ac_fn_cxx_try_run
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2046 It was created by OpenFst $as_me 1.7.8, which was
2047 generated by GNU Autoconf 2.69. Invocation command line was
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_must_keep_next=false
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 -* ) ac_must_keep_next=true ;;
2139 as_fn_append ac_configure_args " '$ac_arg'"
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log. We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2157 $as_echo "## ---------------- ##
2158 ## Cache variables. ##
2159 ## ---------------- ##"
2161 # The following way of writing the cache mishandles newlines in values,
2163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164 eval ac_val=\$$ac_var
2168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172 _ | IFS | as_nl) ;; #(
2173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2174 *) { eval $ac_var=; unset $ac_var;} ;;
2179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2180 *${as_nl}ac_space=\ *)
2182 "s/'\''/'\''\\\\'\'''\''/g;
2183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 $as_echo "## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##"
2197 for ac_var in $ac_subst_vars
2199 eval ac_val=\$$ac_var
2201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 $as_echo "$ac_var='\''$ac_val'\''"
2207 if test -n "$ac_subst_files"; then
2208 $as_echo "## ------------------- ##
2209 ## File substitutions. ##
2210 ## ------------------- ##"
2212 for ac_var in $ac_subst_files
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2223 if test -s confdefs.h; then
2224 $as_echo "## ----------- ##
2231 test "$ac_signal" != 0 &&
2232 $as_echo "$as_me: caught signal $ac_signal"
2233 $as_echo "$as_me: exit $exit_status"
2235 rm -f core *.core core.conftest.* &&
2236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239 for ac_signal in 1 2 13 15; do
2240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2245 rm -f -r conftest* confdefs.h
2247 $as_echo "/* confdefs.h */" > confdefs.h
2249 # Predefined preprocessor variables.
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_NAME "$PACKAGE_NAME"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_STRING "$PACKAGE_STRING"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_URL "$PACKAGE_URL"
2276 # Let the site file select an alternate cache file if it wants to.
2277 # Prefer an explicitly selected file to automatically selected ones.
2280 if test -n "$CONFIG_SITE"; then
2281 # We do not want a PATH search for config.site.
2282 case $CONFIG_SITE in #((
2283 -*) ac_site_file1=./$CONFIG_SITE;;
2284 */*) ac_site_file1=$CONFIG_SITE;;
2285 *) ac_site_file1=./$CONFIG_SITE;;
2287 elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296 test "x$ac_site_file" = xNONE && continue
2297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 as_fn_error $? "failed to load site script $ac_site_file
2305 See \`config.log' for more details" "$LINENO" 5; }
2309 if test -r "$cache_file"; then
2310 # Some versions of bash will fail to source /dev/null (special files
2311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2314 $as_echo "$as_me: loading cache $cache_file" >&6;}
2316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2317 *) . "./$cache_file";;
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2322 $as_echo "$as_me: creating cache $cache_file" >&6;}
2326 # Check that the precious variables saved in the cache have kept the same
2328 ac_cache_corrupted=false
2329 for ac_var in $ac_precious_vars; do
2330 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2331 eval ac_new_set=\$ac_env_${ac_var}_set
2332 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2333 eval ac_new_val=\$ac_env_${ac_var}_value
2334 case $ac_old_set,$ac_new_set in
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2337 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2341 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2342 ac_cache_corrupted=: ;;
2345 if test "x$ac_old_val" != "x$ac_new_val"; then
2346 # differences in whitespace do not lead to failure.
2347 ac_old_val_w=`echo x $ac_old_val`
2348 ac_new_val_w=`echo x $ac_new_val`
2349 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2351 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2352 ac_cache_corrupted=:
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2355 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2356 eval $ac_var=\$ac_old_val
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2359 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2361 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2364 # Pass precious variables to config.status.
2365 if test "$ac_new_set" = set; then
2367 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2368 *) ac_arg=$ac_var=$ac_new_val ;;
2370 case " $ac_configure_args " in
2371 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2372 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2376 if $ac_cache_corrupted; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2380 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2381 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383 ## -------------------- ##
2384 ## Main body of script. ##
2385 ## -------------------- ##
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 am__api_version='1.16'
2397 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2398 if test -f "$ac_dir/install-sh"; then
2400 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 elif test -f "$ac_dir/install.sh"; then
2404 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 elif test -f "$ac_dir/shtool"; then
2408 ac_install_sh="$ac_aux_dir/shtool install -c"
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if ${ac_cv_path_install+:} false; then :
2443 $as_echo_n "(cached) " >&6
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2519 $as_echo_n "checking whether build environment is sane... " >&6; }
2520 # Reject unsafe characters in $srcdir or the absolute working directory
2521 # name. Accept space and tab only in the latter.
2525 *[\\\"\#\$\&\'\`$am_lf]*)
2526 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2530 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533 # Do 'set' in a subshell so we don't clobber the current shell's
2534 # arguments. Must try -L first in case configure is actually a
2535 # symlink; some systems play weird games with the mod time of symlinks
2536 # (eg FreeBSD returns the mod time of the symlink's containing
2540 for am_try in 1 2; do
2541 echo "timestamp, slept: $am_has_slept" > conftest.file
2542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2543 if test "$*" = "X"; then
2545 set X `ls -t "$srcdir/configure" conftest.file`
2547 if test "$*" != "X $srcdir/configure conftest.file" \
2548 && test "$*" != "X conftest.file $srcdir/configure"; then
2550 # If neither matched, then we have a broken ls. This can happen
2551 # if, for instance, CONFIG_SHELL is bash and it inherits a
2552 # broken ls alias from the environment. This has actually
2553 # happened. Such a system could not be considered "sane".
2554 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2557 if test "$2" = conftest.file || test $am_try -eq 2; then
2564 test "$2" = conftest.file
2570 as_fn_error $? "newly created file is older than distributed files!
2571 Check your system clock" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 # If we didn't sleep, we still need to ensure time stamps of config.status and
2576 # generated files are strictly newer.
2578 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2585 test "$program_prefix" != NONE &&
2586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2587 # Use a double $ so make ignores it.
2588 test "$program_suffix" != NONE &&
2589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2590 # Double any \ or $.
2591 # By default was `s,x,x', remove it if useless.
2592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595 # Expand $ac_aux_dir to an absolute path.
2596 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2598 if test x"${MISSING+set}" != xset; then
2601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606 # Use eval to expand $SHELL
2607 if eval "$MISSING --is-lightweight"; then
2608 am_missing_run="$MISSING "
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615 if test x"${install_sh+set}" != xset; then
2618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 install_sh="\${SHELL} $am_aux_dir/install-sh"
2624 # Installed binaries are usually stripped using 'strip' when the user
2625 # run "make install-strip". However 'strip' might not be the right
2626 # tool to use in cross-compilation environments, therefore Automake
2627 # will honor the 'STRIP' environment variable to overrule this program.
2628 if test "$cross_compiling" != no; then
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}strip; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if ${ac_cv_prog_STRIP+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 if test -n "$STRIP"; then
2638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 STRIP=$ac_cv_prog_STRIP
2658 if test -n "$STRIP"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2660 $as_echo "$STRIP" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_STRIP"; then
2670 # Extract the first word of "strip", so it can be a program name with args.
2671 set dummy strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_STRIP"; then
2678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_ac_ct_STRIP="strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2698 if test -n "$ac_ct_STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2700 $as_echo "$ac_ct_STRIP" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_STRIP" = x; then
2709 case $cross_compiling:$ac_tool_warned in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2718 STRIP="$ac_cv_prog_STRIP"
2722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2726 if test -z "$MKDIR_P"; then
2727 if ${ac_cv_path_mkdir+:} false; then :
2728 $as_echo_n "(cached) " >&6
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734 test -z "$as_dir" && as_dir=.
2735 for ac_prog in mkdir gmkdir; do
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2739 'mkdir (GNU coreutils) '* | \
2740 'mkdir (coreutils) '* | \
2741 'mkdir (fileutils) '4.1*)
2742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2752 test -d ./--version && rmdir ./--version
2753 if test "${ac_cv_path_mkdir+set}" = set; then
2754 MKDIR_P="$ac_cv_path_mkdir -p"
2756 # As a last resort, use the slow shell script. Don't cache a
2757 # value for MKDIR_P within a source directory, because that will
2758 # break other packages using the cache if that directory is
2759 # removed, or if the value is a relative name.
2760 MKDIR_P="$ac_install_sh -d"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2764 $as_echo "$MKDIR_P" >&6; }
2766 for ac_prog in gawk mawk nawk awk
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_AWK+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_AWK="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$AWK"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2798 $as_echo "$AWK" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$AWK" && break
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2812 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 cat >conftest.make <<\_ACEOF
2818 @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823 eval ac_cv_prog_make_${ac_make}_set=yes;;
2825 eval ac_cv_prog_make_${ac_make}_set=no;;
2829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2831 $as_echo "yes" >&6; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 SET_MAKE="MAKE=${MAKE-make}"
2839 rm -rf .tst 2>/dev/null
2840 mkdir .tst 2>/dev/null
2841 if test -d .tst; then
2846 rmdir .tst 2>/dev/null
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2853 case $enable_silent_rules in # (((
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=1;;
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if $as_echo 'TRUE=$(BAR$(V))
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2873 am_cv_make_support_nested_variables=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2907 # Define the identity of the package.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2921 # Some tools Automake needs.
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937 # For better backward compatibility. To be removed once Automake 1.9.x
2938 # dies out for good. For more background, see:
2939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2941 mkdir_p='$(MKDIR_P)'
2943 # We need awk for the "check" target (and possibly the TAP driver). The
2944 # system "awk" is bad on some platforms.
2945 # Always define AMTAR for backward compatibility. Yes, it's still used
2946 # in the wild :-( We should find a proper way to deprecate it ...
2950 # We'll loop over all known methods to create a tar archive until one works.
2951 _am_tools='gnutar pax cpio none'
2953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2960 # POSIX will say in a future version that running "rm -f" with no argument
2961 # is OK; and we want to be able to make that assumption in our Makefile
2962 # recipes. So use an aggressive probe to check that the usage we want is
2963 # actually supported "in the wild" to an acceptable degree.
2964 # See automake bug#10828.
2965 # To make any issue more visible, cause the running configure to be aborted
2966 # by default if the 'rm' program in use doesn't match our expectations; the
2967 # user can still override this though.
2968 if rm -f && rm -fr && rm -rf; then : OK; else
2972 Your 'rm' program seems unable to run without file operands specified
2973 on the command line, even when the '-f' option is present. This is contrary
2974 to the behaviour of most rm programs out there, and not conforming with
2975 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977 Please tell bug-automake@gnu.org about your system, including the value
2978 of your $PATH and any error possibly output before this message. This
2979 can help us improve future automake versions.
2982 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2983 echo 'Configuration will proceed anyway, since you have set the' >&2
2984 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988 Aborting the configuration process, to ensure you take notice of the issue.
2990 You can download and install GNU coreutils to get an 'rm' implementation
2991 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2993 If you want to complete the configuration process using your problematic
2994 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2995 to "yes", and re-run configure.
2998 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002 DEPDIR="${am__leading_dot}deps"
3004 ac_config_commands="$ac_config_commands depfiles"
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3007 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3008 cat > confinc.mk << 'END'
3010 @echo this is the am__doit target >confinc.out
3015 # BSD make does it like this.
3016 echo '.include "confinc.mk" # ignored' > confmf.BSD
3017 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3018 echo 'include confinc.mk # ignored' > confmf.GNU
3020 for s in GNU BSD; do
3021 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3022 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 case $?:`cat confinc.out 2>/dev/null` in #(
3027 '0:this is the am__doit target') :
3030 am__include='.include' am__quote='"' ;; #(
3032 am__include='include' am__quote='' ;;
3037 if test "$am__include" != "#"; then
3038 _am_result="yes ($s style)"
3042 rm -f confinc.* confmf.*
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3044 $as_echo "${_am_result}" >&6; }
3046 # Check whether --enable-dependency-tracking was given.
3047 if test "${enable_dependency_tracking+set}" = set; then :
3048 enableval=$enable_dependency_tracking;
3051 if test "x$enable_dependency_tracking" != xno; then
3052 am_depcomp="$ac_aux_dir/depcomp"
3056 if test "x$enable_dependency_tracking" != xno; then
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_CC"; then
3111 # Extract the first word of "gcc", so it can be a program name with args.
3112 set dummy gcc; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_CC="gcc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_CC" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}cc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3203 if test -z "$CC"; then
3204 # Extract the first word of "cc", so it can be a program name with args.
3205 set dummy cc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3223 ac_prog_rejected=yes
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test $ac_prog_rejected = yes; then
3235 # We found a bogon in the path, so make sure we never use it.
3236 set dummy $ac_cv_prog_CC
3238 if test $# != 0; then
3239 # We chose a different compiler from the bogus one.
3240 # However, it has the same basename, so the bogon will be chosen
3241 # first if we set CC to just the basename; use the full file name.
3243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$CC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in cl.exe
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$CC" && break
3303 if test -z "$CC"; then
3305 for ac_prog in cl.exe
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$ac_ct_CC"; then
3315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_ac_ct_CC="$ac_prog"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3335 if test -n "$ac_ct_CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3337 $as_echo "$ac_ct_CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3344 test -n "$ac_ct_CC" && break
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "no acceptable C compiler found in \$PATH
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 # Provide some information about the compiler.
3369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 for ac_option in --version -v -V -qversion; do
3373 { { ac_try="$ac_compiler $ac_option >&5"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382 if test -s conftest.err; then
3384 ... rest of stderr output deleted ...
3385 10q' conftest.err >conftest.er1
3386 cat conftest.er1 >&5
3388 rm -f conftest.er1 conftest.err
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3410 $as_echo_n "checking whether the C compiler works... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417 for ac_file in $ac_files
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426 if { { ac_try="$ac_link_default"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link_default") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 # We found the default executable, but exeext='' is most
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472 if test -z "$ac_file"; then :
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error 77 "C compiler cannot create executables
3481 See \`config.log' for more details" "$LINENO" 5; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3487 $as_echo_n "checking for C compiler default output file name... " >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3489 $as_echo "$ac_file" >&6; }
3490 ac_exeext=$ac_cv_exeext
3492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3495 $as_echo_n "checking for suffix of executables... " >&6; }
3496 if { { ac_try="$ac_link"
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_link") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3509 # work properly (i.e., refer to `conftest.exe'), while it won't with
3511 for ac_file in conftest.exe conftest conftest.*; do
3512 test -f "$ac_file" || continue
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 rm -f conftest conftest$ac_cv_exeext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3528 $as_echo "$ac_cv_exeext" >&6; }
3530 rm -f conftest.$ac_ext
3531 EXEEXT=$ac_cv_exeext
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3539 FILE *f = fopen ("conftest.out", "w");
3540 return ferror (f) || fclose (f) != 0;
3546 ac_clean_files="$ac_clean_files conftest.out"
3547 # Check that the compiler produces executables we can run. If not, either
3548 # the compiler is broken, or we cross compile.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3550 $as_echo_n "checking whether we are cross compiling... " >&6; }
3551 if test "$cross_compiling" != yes; then
3552 { { ac_try="$ac_link"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 if { ac_try='./conftest$ac_cv_exeext'
3564 { { case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; }; then
3576 if test "$cross_compiling" = maybe; then
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error $? "cannot run C compiled programs.
3582 If you meant to cross compile, use \`--host'.
3583 See \`config.log' for more details" "$LINENO" 5; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3590 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3593 $as_echo_n "checking for suffix of object files... " >&6; }
3594 if ${ac_cv_objext+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 rm -f conftest.o conftest.obj
3609 if { { ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compile") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 for ac_file in conftest.o conftest.obj conftest.*; do
3621 test -f "$ac_file" || continue;
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error $? "cannot compute suffix of object files: cannot compile
3635 See \`config.log' for more details" "$LINENO" 5; }
3637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3640 $as_echo "$ac_cv_objext" >&6; }
3641 OBJEXT=$ac_cv_objext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3645 if ${ac_cv_c_compiler_gnu+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3673 if test $ac_compiler_gnu = yes; then
3678 ac_test_CFLAGS=${CFLAGS+set}
3679 ac_save_CFLAGS=$CFLAGS
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3682 if ${ac_cv_prog_cc_g+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 ac_save_c_werror_flag=$ac_c_werror_flag
3686 ac_c_werror_flag=yes
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 if ac_fn_c_try_compile "$LINENO"; then :
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_c_werror_flag=$ac_save_c_werror_flag
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3742 $as_echo "$ac_cv_prog_cc_g" >&6; }
3743 if test "$ac_test_CFLAGS" = set; then
3744 CFLAGS=$ac_save_CFLAGS
3745 elif test $ac_cv_prog_cc_g = yes; then
3746 if test "$GCC" = yes; then
3752 if test "$GCC" = yes; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3760 if ${ac_cv_prog_cc_c89+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_cv_prog_cc_c89=no
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3784 s = g (p, va_arg (v,int));
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 CC="$ac_save_CC $ac_arg"
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_c89=$ac_arg
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 rm -f conftest.$ac_ext
3832 case "x$ac_cv_prog_cc_c89" in
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3844 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3860 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3861 if ${am_cv_prog_cc_c_o+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3875 # Make sure it works both with $CC and with simple cc.
3876 # Following AC_PROG_CC_C_O, we do the test twice because some
3877 # compilers refuse to overwrite an existing .o file with -o,
3878 # though they will create one.
3879 am_cv_prog_cc_c_o=yes
3881 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3882 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } \
3886 && test -f conftest2.$ac_objext; then
3889 am_cv_prog_cc_c_o=no
3893 rm -f core conftest*
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3897 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3898 if test "$am_cv_prog_cc_c_o" != yes; then
3899 # Losing compiler, so override with the script.
3900 # FIXME: It is wrong to rewrite CC.
3901 # But if we don't then we get into trouble of one sort or another.
3902 # A longer-term fix would be to have automake use am__CC in this case,
3903 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3904 CC="$am_aux_dir/compile $CC"
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 depcc="$CC" am_compiler_list=
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921 # We make a subdir and do the tests there. Otherwise we can end up
3922 # making bogus files that we don't know about and never remove. For
3923 # instance it was reported that on HP-UX the gcc test will end up
3924 # making a dummy file named 'D' -- because '-MD' means "put the output
3928 # Copy depcomp to subdir because otherwise we won't find it if we're
3929 # using a relative directory.
3930 cp "$am_depcomp" conftest.dir
3932 # We will build objects and dependencies in a subdirectory because
3933 # it helps to detect inapplicable dependency modes. For instance
3934 # both Tru64's cc and ICC support -MD to output dependencies as a
3935 # side effect of compilation, but ICC will put the dependencies in
3936 # the current directory while Tru64 will put them in the object
3940 am_cv_CC_dependencies_compiler_type=none
3941 if test "$am_compiler_list" = ""; then
3942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3945 case " $depcc " in #(
3946 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3949 for depmode in $am_compiler_list; do
3950 # Setup a source with many dependencies, because some compilers
3951 # like to wrap large dependency lists on column 80 (with \), and
3952 # we should not choose a depcomp mode which is confused by this.
3954 # We need to recreate these files for each test, as the compiler may
3955 # overwrite some of them when testing with obscure command lines.
3956 # This happens at least with the AIX C compiler.
3958 for i in 1 2 3 4 5 6; do
3959 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3960 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3961 # Solaris 10 /bin/sh.
3962 echo '/* dummy */' > sub/conftst$i.h
3964 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3966 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3967 # mode. It turns out that the SunPro C++ compiler does not properly
3968 # handle '-M -o', and we need to detect this. Also, some Intel
3969 # versions had trouble with output in subdirs.
3970 am__obj=sub/conftest.${OBJEXT-o}
3971 am__minus_obj="-o $am__obj"
3974 # This depmode causes a compiler race in universal mode.
3975 test "$am__universal" = false || continue
3978 # After this tag, mechanisms are not by side-effect, so they'll
3979 # only be used when explicitly requested.
3980 if test "x$enable_dependency_tracking" = xyes; then
3986 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3987 # This compiler won't grok '-c -o', but also, the minuso test has
3988 # not run yet. These depmodes are late enough in the game, and
3989 # so weak that their functioning should not be impacted.
3990 am__obj=conftest.${OBJEXT-o}
3995 if depmode=$depmode \
3996 source=sub/conftest.c object=$am__obj \
3997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3998 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3999 >/dev/null 2>conftest.err &&
4000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4002 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4004 # icc doesn't choke on unknown options, it will just issue warnings
4005 # or remarks (even with -Werror). So we grep stderr for any message
4006 # that says an option was ignored or not supported.
4007 # When given -MP, icc 7.0 and 7.1 complain thusly:
4008 # icc: Command line warning: ignoring option '-M'; no argument required
4009 # The diagnosis changed in icc 8.0:
4010 # icc: Command line remark: option '-MP' not supported
4011 if (grep 'ignoring option' conftest.err ||
4012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4013 am_cv_CC_dependencies_compiler_type=$depmode
4022 am_cv_CC_dependencies_compiler_type=none
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4031 test "x$enable_dependency_tracking" != xno \
4032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4034 am__fastdepCC_FALSE='#'
4036 am__fastdepCC_TRUE='#'
4037 am__fastdepCC_FALSE=
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog in ar lib "link -lib"
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_AR+:} false; then :
4050 $as_echo_n "(cached) " >&6
4052 if test -n "$AR"; then
4053 ac_cv_prog_AR="$AR" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 if test -n "$AR"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4075 $as_echo "$AR" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 test -n "$AR" && break
4085 if test -z "$AR"; then
4087 for ac_prog in ar lib "link -lib"
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$ac_ct_AR"; then
4097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_ac_ct_AR="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4117 if test -n "$ac_ct_AR"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4119 $as_echo "$ac_ct_AR" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$ac_ct_AR" && break
4129 if test "x$ac_ct_AR" = x; then
4132 case $cross_compiling:$ac_tool_warned in
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4145 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4146 if ${am_cv_ar_interface+:} false; then :
4147 $as_echo_n "(cached) " >&6
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 am_cv_ar_interface=ar
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 int some_variable = 0;
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4163 (eval $am_ar_try) 2>&5
4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166 test $ac_status = 0; }
4167 if test "$ac_status" -eq 0; then
4168 am_cv_ar_interface=ar
4170 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4172 (eval $am_ar_try) 2>&5
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }
4176 if test "$ac_status" -eq 0; then
4177 am_cv_ar_interface=lib
4179 am_cv_ar_interface=unknown
4182 rm -f conftest.lib libconftest.a
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4194 $as_echo "$am_cv_ar_interface" >&6; }
4196 case $am_cv_ar_interface in
4200 # Microsoft lib, so override with the ar-lib wrapper script.
4201 # FIXME: It is wrong to rewrite AR.
4202 # But if we don't then we get into trouble of one sort or another.
4203 # A longer-term fix would be to have automake use am__AR in this case,
4204 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4206 AR="$am_aux_dir/ar-lib $AR"
4209 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4215 ac_cpp='$CXXCPP $CPPFLAGS'
4216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219 if test -z "$CXX"; then
4220 if test -n "$CCC"; then
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CXX+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$CXX"; then
4234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$CXX"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4256 $as_echo "$CXX" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$CXX" && break
4266 if test -z "$CXX"; then
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$ac_ct_CXX"; then
4278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_CXX="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4298 if test -n "$ac_ct_CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4300 $as_echo "$ac_ct_CXX" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$ac_ct_CXX" && break
4310 if test "x$ac_ct_CXX" = x; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4325 # Provide some information about the compiler.
4326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4329 for ac_option in --version -v -V -qversion; do
4330 { { ac_try="$ac_compiler $ac_option >&5"
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339 if test -s conftest.err; then
4341 ... rest of stderr output deleted ...
4342 10q' conftest.err >conftest.er1
4343 cat conftest.er1 >&5
4345 rm -f conftest.er1 conftest.err
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4352 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4369 if ac_fn_cxx_try_compile "$LINENO"; then :
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4380 if test $ac_compiler_gnu = yes; then
4385 ac_test_CXXFLAGS=${CXXFLAGS+set}
4386 ac_save_CXXFLAGS=$CXXFLAGS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4389 if ${ac_cv_prog_cxx_g+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4393 ac_cxx_werror_flag=yes
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4407 if ac_fn_cxx_try_compile "$LINENO"; then :
4408 ac_cv_prog_cxx_g=yes
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4438 if ac_fn_cxx_try_compile "$LINENO"; then :
4439 ac_cv_prog_cxx_g=yes
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4450 if test "$ac_test_CXXFLAGS" = set; then
4451 CXXFLAGS=$ac_save_CXXFLAGS
4452 elif test $ac_cv_prog_cxx_g = yes; then
4453 if test "$GXX" = yes; then
4459 if test "$GXX" = yes; then
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471 depcc="$CXX" am_compiler_list=
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4474 $as_echo_n "checking dependency style of $depcc... " >&6; }
4475 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4476 $as_echo_n "(cached) " >&6
4478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4479 # We make a subdir and do the tests there. Otherwise we can end up
4480 # making bogus files that we don't know about and never remove. For
4481 # instance it was reported that on HP-UX the gcc test will end up
4482 # making a dummy file named 'D' -- because '-MD' means "put the output
4486 # Copy depcomp to subdir because otherwise we won't find it if we're
4487 # using a relative directory.
4488 cp "$am_depcomp" conftest.dir
4490 # We will build objects and dependencies in a subdirectory because
4491 # it helps to detect inapplicable dependency modes. For instance
4492 # both Tru64's cc and ICC support -MD to output dependencies as a
4493 # side effect of compilation, but ICC will put the dependencies in
4494 # the current directory while Tru64 will put them in the object
4498 am_cv_CXX_dependencies_compiler_type=none
4499 if test "$am_compiler_list" = ""; then
4500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4503 case " $depcc " in #(
4504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4507 for depmode in $am_compiler_list; do
4508 # Setup a source with many dependencies, because some compilers
4509 # like to wrap large dependency lists on column 80 (with \), and
4510 # we should not choose a depcomp mode which is confused by this.
4512 # We need to recreate these files for each test, as the compiler may
4513 # overwrite some of them when testing with obscure command lines.
4514 # This happens at least with the AIX C compiler.
4516 for i in 1 2 3 4 5 6; do
4517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4519 # Solaris 10 /bin/sh.
4520 echo '/* dummy */' > sub/conftst$i.h
4522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4525 # mode. It turns out that the SunPro C++ compiler does not properly
4526 # handle '-M -o', and we need to detect this. Also, some Intel
4527 # versions had trouble with output in subdirs.
4528 am__obj=sub/conftest.${OBJEXT-o}
4529 am__minus_obj="-o $am__obj"
4532 # This depmode causes a compiler race in universal mode.
4533 test "$am__universal" = false || continue
4536 # After this tag, mechanisms are not by side-effect, so they'll
4537 # only be used when explicitly requested.
4538 if test "x$enable_dependency_tracking" = xyes; then
4544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4545 # This compiler won't grok '-c -o', but also, the minuso test has
4546 # not run yet. These depmodes are late enough in the game, and
4547 # so weak that their functioning should not be impacted.
4548 am__obj=conftest.${OBJEXT-o}
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=$am__obj \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CXX_dependencies_compiler_type=$depmode
4580 am_cv_CXX_dependencies_compiler_type=none
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4586 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCXX_TRUE=
4592 am__fastdepCXX_FALSE='#'
4594 am__fastdepCXX_TRUE='#'
4595 am__fastdepCXX_FALSE=
4599 # This library does not throw exceptions, so we do not generate exception
4600 # handling code. However, users are free to re-enable exception handling.
4601 CXX="$CXX -std=c++11 -fno-exceptions"
4603 # Check whether --enable-static was given.
4604 if test "${enable_static+set}" = set; then :
4605 enableval=$enable_static; p=${PACKAGE-default}
4607 yes) enable_static=yes ;;
4608 no) enable_static=no ;;
4611 # Look at the argument we got. We use all the common list separators.
4612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4613 for pkg in $enableval; do
4615 if test "X$pkg" = "X$p"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4637 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4642 macro_version='2.4.6'
4643 macro_revision='2.4.6'
4657 ltmain=$ac_aux_dir/ltmain.sh
4659 # Make sure we can run config.sub.
4660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4661 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4664 $as_echo_n "checking build system type... " >&6; }
4665 if ${ac_cv_build+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 ac_build_alias=$build_alias
4669 test "x$ac_build_alias" = x &&
4670 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4671 test "x$ac_build_alias" = x &&
4672 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4673 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4678 $as_echo "$ac_cv_build" >&6; }
4679 case $ac_cv_build in
4681 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4684 ac_save_IFS=$IFS; IFS='-'
4690 # Remember, the first character of IFS is used to create $*,
4691 # except with old shells:
4694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4698 $as_echo_n "checking host system type... " >&6; }
4699 if ${ac_cv_host+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 if test "x$host_alias" = x; then
4703 ac_cv_host=$ac_cv_build
4705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4706 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4711 $as_echo "$ac_cv_host" >&6; }
4714 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4717 ac_save_IFS=$IFS; IFS='-'
4723 # Remember, the first character of IFS is used to create $*,
4724 # except with old shells:
4727 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst='s/\*/\\\*/g'
4747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4767 ECHO='func_fallback_echo'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in sed gsed; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_SED" || continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4829 $as_echo_n 0123456789 >"conftest.in"
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 $ac_path_SED_found && break 3
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4868 test -z "$SED" && SED=sed
4869 Xsed="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4883 if ${ac_cv_path_GREP+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -z "$GREP"; then
4887 ac_path_GREP_found=false
4888 # Loop through the user's path and test for each of PROGNAME-LIST
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4893 test -z "$as_dir" && as_dir=.
4894 for ac_prog in grep ggrep; do
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4897 as_fn_executable_p "$ac_path_GREP" || continue
4898 # Check for GNU ac_path_GREP and select it if it is found.
4899 # Check for GNU $ac_path_GREP
4900 case `"$ac_path_GREP" --version 2>&1` in
4902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4905 $as_echo_n 0123456789 >"conftest.in"
4908 cat "conftest.in" "conftest.in" >"conftest.tmp"
4909 mv "conftest.tmp" "conftest.in"
4910 cp "conftest.in" "conftest.nl"
4911 $as_echo 'GREP' >> "conftest.nl"
4912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914 as_fn_arith $ac_count + 1 && ac_count=$as_val
4915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4916 # Best one so far, save it but keep looking for a better one
4917 ac_cv_path_GREP="$ac_path_GREP"
4918 ac_path_GREP_max=$ac_count
4920 # 10*(2^10) chars as input seems more than enough
4921 test $ac_count -gt 10 && break
4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 $ac_path_GREP_found && break 3
4931 if test -z "$ac_cv_path_GREP"; then
4932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4935 ac_cv_path_GREP=$GREP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4940 $as_echo "$ac_cv_path_GREP" >&6; }
4941 GREP="$ac_cv_path_GREP"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4945 $as_echo_n "checking for egrep... " >&6; }
4946 if ${ac_cv_path_EGREP+:} false; then :
4947 $as_echo_n "(cached) " >&6
4949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4950 then ac_cv_path_EGREP="$GREP -E"
4952 if test -z "$EGREP"; then
4953 ac_path_EGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in egrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_EGREP" || continue
4964 # Check for GNU ac_path_EGREP and select it if it is found.
4965 # Check for GNU $ac_path_EGREP
4966 case `"$ac_path_EGREP" --version 2>&1` in
4968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4971 $as_echo_n 0123456789 >"conftest.in"
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'EGREP' >> "conftest.nl"
4978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_EGREP="$ac_path_EGREP"
4984 ac_path_EGREP_max=$ac_count
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992 $ac_path_EGREP_found && break 3
4997 if test -z "$ac_cv_path_EGREP"; then
4998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001 ac_cv_path_EGREP=$EGREP
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5007 $as_echo "$ac_cv_path_EGREP" >&6; }
5008 EGREP="$ac_cv_path_EGREP"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5012 $as_echo_n "checking for fgrep... " >&6; }
5013 if ${ac_cv_path_FGREP+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5017 then ac_cv_path_FGREP="$GREP -F"
5019 if test -z "$FGREP"; then
5020 ac_path_FGREP_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in fgrep; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5030 as_fn_executable_p "$ac_path_FGREP" || continue
5031 # Check for GNU ac_path_FGREP and select it if it is found.
5032 # Check for GNU $ac_path_FGREP
5033 case `"$ac_path_FGREP" --version 2>&1` in
5035 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5038 $as_echo_n 0123456789 >"conftest.in"
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo 'FGREP' >> "conftest.nl"
5045 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_FGREP="$ac_path_FGREP"
5051 ac_path_FGREP_max=$ac_count
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059 $ac_path_FGREP_found && break 3
5064 if test -z "$ac_cv_path_FGREP"; then
5065 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 ac_cv_path_FGREP=$FGREP
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5074 $as_echo "$ac_cv_path_FGREP" >&6; }
5075 FGREP="$ac_cv_path_FGREP"
5078 test -z "$GREP" && GREP=grep
5098 # Check whether --with-gnu-ld was given.
5099 if test "${with_gnu_ld+set}" = set; then :
5100 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5106 if test yes = "$GCC"; then
5107 # Check if gcc -print-prog-name=ld gives a path.
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5109 $as_echo_n "checking for ld used by $CC... " >&6; }
5112 # gcc leaves a trailing carriage return, which upsets mingw
5113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5118 # Accept absolute paths.
5120 re_direlt='/[^/][^/]*/\.\./'
5121 # Canonicalize the pathname of ld
5122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5126 test -z "$LD" && LD=$ac_prog
5129 # If it fails, then pretend we aren't using GCC.
5133 # If it is relative, then search for the first ld in PATH.
5137 elif test yes = "$with_gnu_ld"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5139 $as_echo_n "checking for GNU ld... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5142 $as_echo_n "checking for non-GNU ld... " >&6; }
5144 if ${lt_cv_path_LD+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -z "$LD"; then
5148 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH; do
5151 test -z "$ac_dir" && ac_dir=.
5152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5153 lt_cv_path_LD=$ac_dir/$ac_prog
5154 # Check to see if the program is GNU ld. I'd rather use --version,
5155 # but apparently some variants of GNU ld only accept -v.
5156 # Break only if it was the GNU/non-GNU ld that we prefer.
5157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5158 *GNU* | *'with BFD'*)
5159 test no != "$with_gnu_ld" && break
5162 test yes != "$with_gnu_ld" && break
5169 lt_cv_path_LD=$LD # Let the user override the test with a path.
5174 if test -n "$LD"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5176 $as_echo "$LD" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5181 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5183 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5184 if ${lt_cv_prog_gnu_ld+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5188 case `$LD -v 2>&1 </dev/null` in
5189 *GNU* | *'with BFD'*)
5190 lt_cv_prog_gnu_ld=yes
5193 lt_cv_prog_gnu_ld=no
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5198 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5199 with_gnu_ld=$lt_cv_prog_gnu_ld
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5210 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5211 if ${lt_cv_path_NM+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$NM"; then
5215 # Let the user override the test.
5218 lt_nm_to_check=${ac_tool_prefix}nm
5219 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5220 lt_nm_to_check="$lt_nm_to_check nm"
5222 for lt_tmp_nm in $lt_nm_to_check; do
5223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5224 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5226 test -z "$ac_dir" && ac_dir=.
5227 tmp_nm=$ac_dir/$lt_tmp_nm
5228 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5229 # Check to see if the nm accepts a BSD-compat flag.
5230 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5231 # nm: unknown option "B" ignored
5232 # Tru64's nm complains that /dev/null is an invalid object file
5233 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5235 mingw*) lt_bad_file=conftest.nm/nofile ;;
5236 *) lt_bad_file=/dev/null ;;
5238 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5239 *$lt_bad_file* | *'Invalid file or object type'*)
5240 lt_cv_path_NM="$tmp_nm -B"
5244 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5246 lt_cv_path_NM="$tmp_nm -p"
5250 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5251 continue # so that we can try to find one that supports BSD flags
5260 : ${lt_cv_path_NM=no}
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5264 $as_echo "$lt_cv_path_NM" >&6; }
5265 if test no != "$lt_cv_path_NM"; then
5268 # Didn't find any BSD compatible name lister, look for dumpbin.
5269 if test -n "$DUMPBIN"; then :
5270 # Let the user override the test.
5272 if test -n "$ac_tool_prefix"; then
5273 for ac_prog in dumpbin "link -dump"
5275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_DUMPBIN+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$DUMPBIN"; then
5283 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 DUMPBIN=$ac_cv_prog_DUMPBIN
5303 if test -n "$DUMPBIN"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5305 $as_echo "$DUMPBIN" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 test -n "$DUMPBIN" && break
5315 if test -z "$DUMPBIN"; then
5316 ac_ct_DUMPBIN=$DUMPBIN
5317 for ac_prog in dumpbin "link -dump"
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5324 $as_echo_n "(cached) " >&6
5326 if test -n "$ac_ct_DUMPBIN"; then
5327 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5347 if test -n "$ac_ct_DUMPBIN"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5349 $as_echo "$ac_ct_DUMPBIN" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5356 test -n "$ac_ct_DUMPBIN" && break
5359 if test "x$ac_ct_DUMPBIN" = x; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned=yes ;;
5368 DUMPBIN=$ac_ct_DUMPBIN
5372 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5374 DUMPBIN="$DUMPBIN -symbols -headers"
5382 if test : != "$DUMPBIN"; then
5386 test -z "$NM" && NM=nm
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5394 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5395 if ${lt_cv_nm_interface+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 lt_cv_nm_interface="BSD nm"
5399 echo "int some_variable = 0;" > conftest.$ac_ext
5400 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5401 (eval "$ac_compile" 2>conftest.err)
5402 cat conftest.err >&5
5403 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5404 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5405 cat conftest.err >&5
5406 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5407 cat conftest.out >&5
5408 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5409 lt_cv_nm_interface="MS dumpbin"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5414 $as_echo "$lt_cv_nm_interface" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5417 $as_echo_n "checking whether ln -s works... " >&6; }
5419 if test "$LN_S" = "ln -s"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5421 $as_echo "yes" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5424 $as_echo "no, using $LN_S" >&6; }
5427 # find the maximum length of command line arguments
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5429 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5430 if ${lt_cv_sys_max_cmd_len+:} false; then :
5431 $as_echo_n "(cached) " >&6
5438 # On DJGPP, this test can blow up pretty badly due to problems in libc
5439 # (any single argument exceeding 2000 bytes causes a buffer overrun
5440 # during glob expansion). Even if it were fixed, the result of this
5441 # check would be larger than it should be.
5442 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5446 # Under GNU Hurd, this test is not required because there is
5447 # no limit to the length of command line arguments.
5448 # Libtool will interpret -1 as no limit whatsoever
5449 lt_cv_sys_max_cmd_len=-1;
5452 cygwin* | mingw* | cegcc*)
5453 # On Win9x/ME, this test blows up -- it succeeds, but takes
5454 # about 5 minutes as the teststring grows exponentially.
5455 # Worse, since 9x/ME are not pre-emptively multitasking,
5456 # you end up with a "frozen" computer, even though with patience
5457 # the test eventually succeeds (with a max line length of 256k).
5458 # Instead, let's just punt: use the minimum linelength reported by
5459 # all of the supported platforms: 8192 (on NT/2K/XP).
5460 lt_cv_sys_max_cmd_len=8192;
5464 # On MiNT this can take a long time and run out of memory.
5465 lt_cv_sys_max_cmd_len=8192;
5469 # On AmigaOS with pdksh, this test takes hours, literally.
5470 # So we just punt and use a minimum line length of 8192.
5471 lt_cv_sys_max_cmd_len=8192;
5474 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5475 # This has been around since 386BSD, at least. Likely further.
5476 if test -x /sbin/sysctl; then
5477 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5478 elif test -x /usr/sbin/sysctl; then
5479 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5481 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5483 # And add a safety zone
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5489 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5490 lt_cv_sys_max_cmd_len=196608
5494 # The test takes a long time on OS/2.
5495 lt_cv_sys_max_cmd_len=8192
5499 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5500 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5501 # nice to cause kernel panics so lets avoid the loop below.
5502 # First set a reasonable default.
5503 lt_cv_sys_max_cmd_len=16384
5505 if test -x /sbin/sysconfig; then
5506 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5507 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5512 lt_cv_sys_max_cmd_len=102400
5514 sysv5* | sco5v6* | sysv4.2uw2*)
5515 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5516 if test -n "$kargmax"; then
5517 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5519 lt_cv_sys_max_cmd_len=32768
5523 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5524 if test -n "$lt_cv_sys_max_cmd_len" && \
5525 test undefined != "$lt_cv_sys_max_cmd_len"; then
5526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529 # Make teststring a little bigger before we do anything with it.
5530 # a 1K string should be a reasonable start.
5531 for i in 1 2 3 4 5 6 7 8; do
5532 teststring=$teststring$teststring
5534 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5535 # If test is not a shell built-in, we'll probably end up computing a
5536 # maximum length that is only half of the actual maximum length, but
5538 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5539 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5540 test 17 != "$i" # 1/2 MB should be enough
5543 teststring=$teststring$teststring
5545 # Only check the string length outside the loop.
5546 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5548 # Add a significant safety factor because C++ compilers can tack on
5549 # massive amounts of additional arguments before passing them to the
5550 # linker. It appears as though 1/2 is a usable value.
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5558 if test -n "$lt_cv_sys_max_cmd_len"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5560 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5563 $as_echo "none" >&6; }
5565 max_cmd_len=$lt_cv_sys_max_cmd_len
5576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5586 # test EBCDIC or ASCII
5587 case `echo X|tr X '\101'` in
5588 A) # ASCII based system
5589 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5590 lt_SP2NL='tr \040 \012'
5591 lt_NL2SP='tr \015\012 \040\040'
5593 *) # EBCDIC based system
5594 lt_SP2NL='tr \100 \n'
5595 lt_NL2SP='tr \r\n \100\100'
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5608 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5609 if ${lt_cv_to_host_file_cmd+:} false; then :
5610 $as_echo_n "(cached) " >&6
5615 *-*-mingw* ) # actually msys
5616 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5619 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5621 * ) # otherwise, assume *nix
5622 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5628 *-*-mingw* ) # actually msys
5629 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5632 lt_cv_to_host_file_cmd=func_convert_file_noop
5634 * ) # otherwise, assume *nix
5635 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5639 * ) # unhandled hosts (and "normal" native builds)
5640 lt_cv_to_host_file_cmd=func_convert_file_noop
5646 to_host_file_cmd=$lt_cv_to_host_file_cmd
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5648 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5655 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5656 if ${lt_cv_to_tool_file_cmd+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 #assume ordinary cross tools, or native build.
5660 lt_cv_to_tool_file_cmd=func_convert_file_noop
5664 *-*-mingw* ) # actually msys
5665 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5673 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5675 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5682 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5683 if ${lt_cv_ld_reload_flag+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 lt_cv_ld_reload_flag='-r'
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5689 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5690 reload_flag=$lt_cv_ld_reload_flag
5691 case $reload_flag in
5693 *) reload_flag=" $reload_flag" ;;
5695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5697 cygwin* | mingw* | pw32* | cegcc*)
5698 if test yes != "$GCC"; then
5703 if test yes = "$GCC"; then
5704 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5719 if test -n "$ac_tool_prefix"; then
5720 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_OBJDUMP+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 if test -n "$OBJDUMP"; then
5728 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 OBJDUMP=$ac_cv_prog_OBJDUMP
5748 if test -n "$OBJDUMP"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5750 $as_echo "$OBJDUMP" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5758 if test -z "$ac_cv_prog_OBJDUMP"; then
5759 ac_ct_OBJDUMP=$OBJDUMP
5760 # Extract the first word of "objdump", so it can be a program name with args.
5761 set dummy objdump; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5765 $as_echo_n "(cached) " >&6
5767 if test -n "$ac_ct_OBJDUMP"; then
5768 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5788 if test -n "$ac_ct_OBJDUMP"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5790 $as_echo "$ac_ct_OBJDUMP" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5796 if test "x$ac_ct_OBJDUMP" = x; then
5799 case $cross_compiling:$ac_tool_warned in
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803 ac_tool_warned=yes ;;
5805 OBJDUMP=$ac_ct_OBJDUMP
5808 OBJDUMP="$ac_cv_prog_OBJDUMP"
5811 test -z "$OBJDUMP" && OBJDUMP=objdump
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5822 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5823 if ${lt_cv_deplibs_check_method+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 lt_cv_file_magic_cmd='$MAGIC_CMD'
5827 lt_cv_file_magic_test_file=
5828 lt_cv_deplibs_check_method='unknown'
5829 # Need to set the preceding variable on all platforms that support
5830 # interlibrary dependencies.
5831 # 'none' -- dependencies not supported.
5832 # 'unknown' -- same as none, but documents that we really don't know.
5833 # 'pass_all' -- all dependencies passed with no checks.
5834 # 'test_compile' -- check by making test program.
5835 # 'file_magic [[regex]]' -- check by looking for files in library path
5836 # that responds to the $file_magic_cmd with a given extended regex.
5837 # If you have 'file' or equivalent on your system and you're not sure
5838 # whether 'pass_all' will *always* work, you probably want this one.
5842 lt_cv_deplibs_check_method=pass_all
5846 lt_cv_deplibs_check_method=pass_all
5850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5851 lt_cv_file_magic_cmd='/usr/bin/file -L'
5852 lt_cv_file_magic_test_file=/shlib/libc.so
5856 # func_win32_libid is a shell function defined in ltmain.sh
5857 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5858 lt_cv_file_magic_cmd='func_win32_libid'
5862 # Base MSYS/MinGW do not provide the 'file' command needed by
5863 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5864 # unless we find 'file', for example because we are cross-compiling.
5865 if ( file / ) >/dev/null 2>&1; then
5866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5867 lt_cv_file_magic_cmd='func_win32_libid'
5869 # Keep this pattern in sync with the one in func_win32_libid.
5870 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5871 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 # use the weaker test based on 'objdump'. See mingw*.
5877 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5878 lt_cv_file_magic_cmd='$OBJDUMP -f'
5881 darwin* | rhapsody*)
5882 lt_cv_deplibs_check_method=pass_all
5885 freebsd* | dragonfly*)
5886 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5889 # Not sure whether the presence of OpenBSD here was a mistake.
5890 # Let's accept both of them until this is cleared up.
5891 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5892 lt_cv_file_magic_cmd=/usr/bin/file
5893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5897 lt_cv_deplibs_check_method=pass_all
5902 lt_cv_deplibs_check_method=pass_all
5905 hpux10.20* | hpux11*)
5906 lt_cv_file_magic_cmd=/usr/bin/file
5909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5913 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]'
5914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5924 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5928 irix5* | irix6* | nonstopux*)
5930 *-32|*"-32 ") libmagic=32-bit;;
5931 *-n32|*"-n32 ") libmagic=N32;;
5932 *-64|*"-64 ") libmagic=64-bit;;
5933 *) libmagic=never-match;;
5935 lt_cv_deplibs_check_method=pass_all
5938 # This must be glibc/ELF.
5939 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5940 lt_cv_deplibs_check_method=pass_all
5943 netbsd* | netbsdelf*-gnu)
5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5953 lt_cv_file_magic_cmd=/usr/bin/file
5954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5958 lt_cv_deplibs_check_method=pass_all
5962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5969 osf3* | osf4* | osf5*)
5970 lt_cv_deplibs_check_method=pass_all
5974 lt_cv_deplibs_check_method=pass_all
5978 lt_cv_deplibs_check_method=pass_all
5981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5982 lt_cv_deplibs_check_method=pass_all
5986 case $host_vendor in
5988 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]'
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5992 lt_cv_deplibs_check_method=pass_all
5995 lt_cv_file_magic_cmd='/bin/file'
5996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5999 lt_cv_file_magic_cmd='/bin/file'
6000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6001 lt_cv_file_magic_test_file=/lib/libc.so
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_deplibs_check_method=pass_all
6013 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_deplibs_check_method=pass_all
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6022 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6026 if test "$build" = "$host"; then
6029 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6032 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6038 file_magic_cmd=$lt_cv_file_magic_cmd
6039 deplibs_check_method=$lt_cv_deplibs_check_method
6040 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_DLLTOOL+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 if test -n "$DLLTOOL"; then
6072 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 DLLTOOL=$ac_cv_prog_DLLTOOL
6092 if test -n "$DLLTOOL"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6094 $as_echo "$DLLTOOL" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6102 if test -z "$ac_cv_prog_DLLTOOL"; then
6103 ac_ct_DLLTOOL=$DLLTOOL
6104 # Extract the first word of "dlltool", so it can be a program name with args.
6105 set dummy dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$ac_ct_DLLTOOL"; then
6112 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6132 if test -n "$ac_ct_DLLTOOL"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6134 $as_echo "$ac_ct_DLLTOOL" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6140 if test "x$ac_ct_DLLTOOL" = x; then
6143 case $cross_compiling:$ac_tool_warned in
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6149 DLLTOOL=$ac_ct_DLLTOOL
6152 DLLTOOL="$ac_cv_prog_DLLTOOL"
6155 test -z "$DLLTOOL" && DLLTOOL=dlltool
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6167 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6168 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 lt_cv_sharedlib_from_linklib_cmd='unknown'
6174 cygwin* | mingw* | pw32* | cegcc*)
6175 # two different shell functions defined in ltmain.sh;
6176 # decide which one to use based on capabilities of $DLLTOOL
6177 case `$DLLTOOL --help 2>&1` in
6178 *--identify-strict*)
6179 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6187 # fallback: assume linklib IS sharedlib
6188 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6194 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6195 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6196 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6204 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if ${ac_cv_prog_AR+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 if test -n "$AR"; then
6215 ac_cv_prog_AR="$AR" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 if test -n "$AR"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6237 $as_echo "$AR" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6244 test -n "$AR" && break
6247 if test -z "$AR"; then
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$ac_ct_AR"; then
6259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268 ac_cv_prog_ac_ct_AR="$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279 if test -n "$ac_ct_AR"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6281 $as_echo "$ac_ct_AR" >&6; }
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6288 test -n "$ac_ct_AR" && break
6291 if test "x$ac_ct_AR" = x; then
6294 case $cross_compiling:$ac_tool_warned in
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6318 $as_echo_n "checking for archiver @FILE support... " >&6; }
6319 if ${lt_cv_ar_at_file+:} false; then :
6320 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 echo conftest.$ac_objext > conftest.lst
6336 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6338 (eval $lt_ar_try) 2>&5
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }
6342 if test 0 -eq "$ac_status"; then
6343 # Ensure the archiver fails upon bogus file names.
6344 rm -f conftest.$ac_objext libconftest.a
6345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6346 (eval $lt_ar_try) 2>&5
6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6349 test $ac_status = 0; }
6350 if test 0 -ne "$ac_status"; then
6354 rm -f conftest.* libconftest.a
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6361 $as_echo "$lt_cv_ar_at_file" >&6; }
6363 if test no = "$lt_cv_ar_at_file"; then
6366 archiver_list_spec=$lt_cv_ar_at_file
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}strip; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_STRIP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$STRIP"; then
6384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 STRIP=$ac_cv_prog_STRIP
6404 if test -n "$STRIP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6406 $as_echo "$STRIP" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_STRIP"; then
6416 # Extract the first word of "strip", so it can be a program name with args.
6417 set dummy strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_STRIP"; then
6424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_STRIP="strip"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444 if test -n "$ac_ct_STRIP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446 $as_echo "$ac_ct_STRIP" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_STRIP" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6464 STRIP="$ac_cv_prog_STRIP"
6467 test -z "$STRIP" && STRIP=:
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_RANLIB+:} false; then :
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$RANLIB"; then
6483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 RANLIB=$ac_cv_prog_RANLIB
6503 if test -n "$RANLIB"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6505 $as_echo "$RANLIB" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if test -z "$ac_cv_prog_RANLIB"; then
6514 ac_ct_RANLIB=$RANLIB
6515 # Extract the first word of "ranlib", so it can be a program name with args.
6516 set dummy ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$ac_ct_RANLIB"; then
6523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_ac_ct_RANLIB="ranlib"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6543 if test -n "$ac_ct_RANLIB"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6545 $as_echo "$ac_ct_RANLIB" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_RANLIB" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6560 RANLIB=$ac_ct_RANLIB
6563 RANLIB="$ac_cv_prog_RANLIB"
6566 test -z "$RANLIB" && RANLIB=:
6573 # Determine commands to create old-style static archives.
6574 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6575 old_postinstall_cmds='chmod 644 $oldlib'
6576 old_postuninstall_cmds=
6578 if test -n "$RANLIB"; then
6581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6592 lock_old_archive_extraction=yes ;;
6594 lock_old_archive_extraction=no ;;
6635 # If no C compiler was specified, use CC.
6638 # If no C compiler flags were specified, use CFLAGS.
6639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6641 # Allow CC to be a program name with arguments.
6645 # Check for command to grab the raw symbol name followed by C symbol from nm.
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6647 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6648 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6649 $as_echo_n "(cached) " >&6
6652 # These are sane defaults that work on at least a few old systems.
6653 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6655 # Character class describing NM global symbol codes.
6656 symcode='[BCDEGRST]'
6658 # Regexp to match symbols that can be accessed directly from C.
6659 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6661 # Define system-specific variables.
6666 cygwin* | mingw* | pw32* | cegcc*)
6667 symcode='[ABCDGISTW]'
6670 if test ia64 = "$host_cpu"; then
6671 symcode='[ABCDEGRST]'
6675 symcode='[BCDEGRST]'
6678 symcode='[BCDEGQRST]'
6689 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6697 # If we're using GNU nm, then use its standard symbol codes.
6698 case `$NM -V 2>&1` in
6699 *GNU* | *'with BFD'*)
6700 symcode='[ABCDGIRSTW]' ;;
6703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6704 # Gets list of data symbols to import.
6705 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6706 # Adjust the below global symbol transforms to fixup imported variables.
6707 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6708 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6709 lt_c_name_lib_hook="\
6710 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6711 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6713 # Disable hooks by default.
6714 lt_cv_sys_global_symbol_to_import=
6720 # Transform an extracted symbol line into a proper C declaration.
6721 # Some systems (esp. on ia64) link data and code symbols differently,
6722 # so use this general approach.
6723 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6725 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6726 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6728 # Transform an extracted symbol line into symbol name and symbol address
6729 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6731 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6732 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6734 # Transform an extracted symbol line into symbol name with lib prefix and
6736 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6737 $lt_c_name_lib_hook\
6738 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6739 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6740 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6742 # Handle CRLF in mingw tool chain
6746 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6750 # Try without a prefix underscore, then with it.
6751 for ac_symprfx in "" "_"; do
6753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6754 symxfrm="\\1 $ac_symprfx\\2 \\2"
6756 # Write the raw and C identifiers.
6757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758 # Fake it for dumpbin and say T for any non-static function,
6759 # D for any global variable and I for any imported variable.
6760 # Also find C++ and __fastcall symbols from MSVC++,
6761 # which start with @ or ?.
6762 lt_cv_sys_global_symbol_pipe="$AWK '"\
6763 " {last_section=section; section=\$ 3};"\
6764 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6765 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6766 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6767 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6768 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6769 " \$ 0!~/External *\|/{next};"\
6770 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6771 " {if(hide[section]) next};"\
6772 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6773 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6774 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6775 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6776 " ' prfx=^$ac_symprfx"
6778 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6780 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6782 # Check to see that the pipe works correctly.
6786 cat > conftest.$ac_ext <<_LT_EOF
6791 void nm_test_func(void);
6792 void nm_test_func(void){}
6796 int main(){nm_test_var='a';nm_test_func();return(0);}
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 # Now try to grab the symbols.
6806 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6807 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6808 # Try sorting and uniquifying the output.
6809 if sort "$nlist" | uniq > "$nlist"T; then
6810 mv -f "$nlist"T "$nlist"
6815 # Make sure that we snagged all the symbols we need.
6816 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6817 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6818 cat <<_LT_EOF > conftest.$ac_ext
6819 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6820 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6821 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6822 relocations are performed -- see ld's documentation on pseudo-relocs. */
6823 # define LT_DLSYM_CONST
6824 #elif defined __osf__
6825 /* This system does not cope well with relocations in const data. */
6826 # define LT_DLSYM_CONST
6828 # define LT_DLSYM_CONST const
6836 # Now generate the symbol file.
6837 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6839 cat <<_LT_EOF >> conftest.$ac_ext
6841 /* The mapping between symbol names and symbols. */
6842 LT_DLSYM_CONST struct {
6846 lt__PROGRAM__LTX_preloaded_symbols[] =
6848 { "@PROGRAM@", (void *) 0 },
6850 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6851 cat <<\_LT_EOF >> conftest.$ac_ext
6855 /* This works around a problem in FreeBSD linker */
6856 #ifdef FREEBSD_WORKAROUND
6857 static const void *lt_preloaded_setup() {
6858 return lt__PROGRAM__LTX_preloaded_symbols;
6866 # Now try linking the two files.
6867 mv conftest.$ac_objext conftstm.$ac_objext
6868 lt_globsym_save_LIBS=$LIBS
6869 lt_globsym_save_CFLAGS=$CFLAGS
6870 LIBS=conftstm.$ac_objext
6871 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6873 (eval $ac_link) 2>&5
6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6879 LIBS=$lt_globsym_save_LIBS
6880 CFLAGS=$lt_globsym_save_CFLAGS
6882 echo "cannot find nm_test_func in $nlist" >&5
6885 echo "cannot find nm_test_var in $nlist" >&5
6888 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6891 echo "$progname: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6894 rm -rf conftest* conftst*
6896 # Do not use the global_symbol_pipe unless it works.
6897 if test yes = "$pipe_works"; then
6900 lt_cv_sys_global_symbol_pipe=
6906 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6907 lt_cv_sys_global_symbol_to_cdecl=
6909 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6911 $as_echo "failed" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6914 $as_echo "ok" >&6; }
6917 # Response file support.
6918 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6919 nm_file_list_spec='@'
6920 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6921 nm_file_list_spec='@'
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6961 $as_echo_n "checking for sysroot... " >&6; }
6963 # Check whether --with-sysroot was given.
6964 if test "${with_sysroot+set}" = set; then :
6965 withval=$with_sysroot;
6972 case $with_sysroot in #(
6974 if test yes = "$GCC"; then
6975 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6979 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6985 $as_echo "$with_sysroot" >&6; }
6986 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6991 $as_echo "${lt_sysroot:-no}" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6998 $as_echo_n "checking for a working dd... " >&6; }
6999 if ${ac_cv_path_lt_DD+:} false; then :
7000 $as_echo_n "(cached) " >&6
7002 printf 0123456789abcdef0123456789abcdef >conftest.i
7003 cat conftest.i conftest.i >conftest2.i
7005 if test -z "$lt_DD"; then
7006 ac_path_lt_DD_found=false
7007 # Loop through the user's path and test for each of PROGNAME-LIST
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_prog in dd; do
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7016 as_fn_executable_p "$ac_path_lt_DD" || continue
7017 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7018 cmp -s conftest.i conftest.out \
7019 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7021 $ac_path_lt_DD_found && break 3
7026 if test -z "$ac_cv_path_lt_DD"; then
7030 ac_cv_path_lt_DD=$lt_DD
7033 rm -f conftest.i conftest2.i conftest.out
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7036 $as_echo "$ac_cv_path_lt_DD" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7040 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7041 if ${lt_cv_truncate_bin+:} false; then :
7042 $as_echo_n "(cached) " >&6
7044 printf 0123456789abcdef0123456789abcdef >conftest.i
7045 cat conftest.i conftest.i >conftest2.i
7047 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7048 cmp -s conftest.i conftest.out \
7049 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7051 rm -f conftest.i conftest2.i conftest.out
7052 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7055 $as_echo "$lt_cv_truncate_bin" >&6; }
7063 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7066 for cc_temp in $*""; do
7068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7074 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7077 # Check whether --enable-libtool-lock was given.
7078 if test "${enable_libtool_lock+set}" = set; then :
7079 enableval=$enable_libtool_lock;
7082 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7084 # Some flags need to be propagated to the compiler or linker for good
7088 # Find out what ABI is being produced by ac_compile, and set mode
7089 # options accordingly.
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.$ac_objext` in
7108 # Find out what ABI is being produced by ac_compile, and set linker
7109 # options accordingly.
7110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7112 (eval $ac_compile) 2>&5
7114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7115 test $ac_status = 0; }; then
7116 if test yes = "$lt_cv_prog_gnu_ld"; then
7117 case `/usr/bin/file conftest.$ac_objext` in
7119 LD="${LD-ld} -melf32bsmip"
7122 LD="${LD-ld} -melf32bmipn32"
7125 LD="${LD-ld} -melf64bmip"
7129 case `/usr/bin/file conftest.$ac_objext` in
7146 # Find out what ABI is being produced by ac_compile, and set linker
7147 # options accordingly.
7148 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150 (eval $ac_compile) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7155 case `/usr/bin/file conftest.$ac_objext` in
7163 case `/usr/bin/file conftest.$ac_objext` in
7165 emul="${emul}btsmip"
7168 emul="${emul}ltsmip"
7171 case `/usr/bin/file conftest.$ac_objext` in
7176 LD="${LD-ld} -m $emul"
7181 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7182 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7183 # Find out what ABI is being produced by ac_compile, and set linker
7184 # options accordingly. Note that the listed cases only cover the
7185 # situations where additional linker options are needed (such as when
7186 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7187 # vice versa); the common cases where no linker options are needed do
7188 # not appear in the list.
7189 echo 'int i;' > conftest.$ac_ext
7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191 (eval $ac_compile) 2>&5
7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194 test $ac_status = 0; }; then
7195 case `/usr/bin/file conftest.o` in
7198 x86_64-*kfreebsd*-gnu)
7199 LD="${LD-ld} -m elf_i386_fbsd"
7202 case `/usr/bin/file conftest.o` in
7204 LD="${LD-ld} -m elf32_x86_64"
7207 LD="${LD-ld} -m elf_i386"
7211 powerpc64le-*linux*)
7212 LD="${LD-ld} -m elf32lppclinux"
7215 LD="${LD-ld} -m elf32ppclinux"
7218 LD="${LD-ld} -m elf_s390"
7221 LD="${LD-ld} -m elf32_sparc"
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7231 LD="${LD-ld} -m elf_x86_64"
7234 LD="${LD-ld} -m elf64lppc"
7237 LD="${LD-ld} -m elf64ppc"
7239 s390*-*linux*|s390*-*tpf*)
7240 LD="${LD-ld} -m elf64_s390"
7243 LD="${LD-ld} -m elf64_sparc"
7253 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7255 CFLAGS="$CFLAGS -belf"
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7257 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7258 if ${lt_cv_cc_needs_belf+:} false; then :
7259 $as_echo_n "(cached) " >&6
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 lt_cv_cc_needs_belf=yes
7281 lt_cv_cc_needs_belf=no
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7293 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7294 if test yes != "$lt_cv_cc_needs_belf"; then
7295 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7300 # Find out what ABI is being produced by ac_compile, and set linker
7301 # options accordingly.
7302 echo 'int i;' > conftest.$ac_ext
7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7304 (eval $ac_compile) 2>&5
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; }; then
7308 case `/usr/bin/file conftest.o` in
7310 case $lt_cv_prog_gnu_ld in
7313 i?86-*-solaris*|x86_64-*-solaris*)
7314 LD="${LD-ld} -m elf_x86_64"
7317 LD="${LD-ld} -m elf64_sparc"
7320 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7321 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7326 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7338 need_locks=$enable_libtool_lock
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$MANIFEST_TOOL"; then
7349 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7369 if test -n "$MANIFEST_TOOL"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7371 $as_echo "$MANIFEST_TOOL" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7380 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7381 # Extract the first word of "mt", so it can be a program name with args.
7382 set dummy mt; 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_MANIFEST_TOOL+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_MANIFEST_TOOL"; then
7389 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7409 if test -n "$ac_ct_MANIFEST_TOOL"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7411 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_MANIFEST_TOOL" = 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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7429 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7432 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7434 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7435 if ${lt_cv_path_mainfest_tool+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 lt_cv_path_mainfest_tool=no
7439 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7440 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7441 cat conftest.err >&5
7442 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7443 lt_cv_path_mainfest_tool=yes
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7448 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7449 if test yes != "$lt_cv_path_mainfest_tool"; then
7459 rhapsody* | darwin*)
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$DSYMUTIL"; then
7469 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7489 if test -n "$DSYMUTIL"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7491 $as_echo "$DSYMUTIL" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7499 if test -z "$ac_cv_prog_DSYMUTIL"; then
7500 ac_ct_DSYMUTIL=$DSYMUTIL
7501 # Extract the first word of "dsymutil", so it can be a program name with args.
7502 set dummy dsymutil; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$ac_ct_DSYMUTIL"; then
7509 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7529 if test -n "$ac_ct_DSYMUTIL"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7531 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7537 if test "x$ac_ct_DSYMUTIL" = x; then
7540 case $cross_compiling:$ac_tool_warned in
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7546 DSYMUTIL=$ac_ct_DSYMUTIL
7549 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_NMEDIT+:} false; then :
7558 $as_echo_n "(cached) " >&6
7560 if test -n "$NMEDIT"; then
7561 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 NMEDIT=$ac_cv_prog_NMEDIT
7581 if test -n "$NMEDIT"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7583 $as_echo "$NMEDIT" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_NMEDIT"; then
7592 ac_ct_NMEDIT=$NMEDIT
7593 # Extract the first word of "nmedit", so it can be a program name with args.
7594 set dummy nmedit; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$ac_ct_NMEDIT"; then
7601 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7621 if test -n "$ac_ct_NMEDIT"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7623 $as_echo "$ac_ct_NMEDIT" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_NMEDIT" = x; then
7632 case $cross_compiling:$ac_tool_warned in
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7638 NMEDIT=$ac_ct_NMEDIT
7641 NMEDIT="$ac_cv_prog_NMEDIT"
7644 if test -n "$ac_tool_prefix"; then
7645 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_LIPO+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 if test -n "$LIPO"; then
7653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 LIPO=$ac_cv_prog_LIPO
7673 if test -n "$LIPO"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7675 $as_echo "$LIPO" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7683 if test -z "$ac_cv_prog_LIPO"; then
7685 # Extract the first word of "lipo", so it can be a program name with args.
7686 set dummy lipo; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 if test -n "$ac_ct_LIPO"; then
7693 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_ac_ct_LIPO="lipo"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7713 if test -n "$ac_ct_LIPO"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7715 $as_echo "$ac_ct_LIPO" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7721 if test "x$ac_ct_LIPO" = x; then
7724 case $cross_compiling:$ac_tool_warned in
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728 ac_tool_warned=yes ;;
7733 LIPO="$ac_cv_prog_LIPO"
7736 if test -n "$ac_tool_prefix"; then
7737 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7738 set dummy ${ac_tool_prefix}otool; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_OTOOL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7744 if test -n "$OTOOL"; then
7745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 OTOOL=$ac_cv_prog_OTOOL
7765 if test -n "$OTOOL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7767 $as_echo "$OTOOL" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7775 if test -z "$ac_cv_prog_OTOOL"; then
7777 # Extract the first word of "otool", so it can be a program name with args.
7778 set dummy otool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 if test -n "$ac_ct_OTOOL"; then
7785 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_ac_ct_OTOOL="otool"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7805 if test -n "$ac_ct_OTOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7807 $as_echo "$ac_ct_OTOOL" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7813 if test "x$ac_ct_OTOOL" = x; then
7816 case $cross_compiling:$ac_tool_warned in
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7825 OTOOL="$ac_cv_prog_OTOOL"
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_OTOOL64+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$OTOOL64"; then
7837 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 OTOOL64=$ac_cv_prog_OTOOL64
7857 if test -n "$OTOOL64"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7859 $as_echo "$OTOOL64" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test -z "$ac_cv_prog_OTOOL64"; then
7868 ac_ct_OTOOL64=$OTOOL64
7869 # Extract the first word of "otool64", so it can be a program name with args.
7870 set dummy otool64; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 if test -n "$ac_ct_OTOOL64"; then
7877 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_ac_ct_OTOOL64="otool64"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7897 if test -n "$ac_ct_OTOOL64"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7899 $as_echo "$ac_ct_OTOOL64" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 if test "x$ac_ct_OTOOL64" = x; then
7908 case $cross_compiling:$ac_tool_warned in
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7914 OTOOL64=$ac_ct_OTOOL64
7917 OTOOL64="$ac_cv_prog_OTOOL64"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7947 $as_echo_n "checking for -single_module linker flag... " >&6; }
7948 if ${lt_cv_apple_cc_single_mod+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 lt_cv_apple_cc_single_mod=no
7952 if test -z "$LT_MULTI_MODULE"; then
7953 # By default we will add the -single_module flag. You can override
7954 # by either setting the environment variable LT_MULTI_MODULE
7955 # non-empty at configure time, or by adding -multi_module to the
7957 rm -rf libconftest.dylib*
7958 echo "int foo(void){return 1;}" > conftest.c
7959 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7960 -dynamiclib -Wl,-single_module conftest.c" >&5
7961 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7962 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7964 # If there is a non-empty error log, and "single_module"
7965 # appears in it, assume the flag caused a linker warning
7966 if test -s conftest.err && $GREP single_module conftest.err; then
7967 cat conftest.err >&5
7968 # Otherwise, if the output was created with a 0 exit code from
7969 # the compiler, it worked.
7970 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7971 lt_cv_apple_cc_single_mod=yes
7973 cat conftest.err >&5
7975 rm -rf libconftest.dylib*
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7983 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7984 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 lt_cv_ld_exported_symbols_list=no
7988 save_LDFLAGS=$LDFLAGS
7989 echo "_main" > conftest.sym
7990 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 lt_cv_ld_exported_symbols_list=yes
8005 lt_cv_ld_exported_symbols_list=no
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 LDFLAGS=$save_LDFLAGS
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8013 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8016 $as_echo_n "checking for -force_load linker flag... " >&6; }
8017 if ${lt_cv_ld_force_load+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 lt_cv_ld_force_load=no
8021 cat > conftest.c << _LT_EOF
8022 int forced_loaded() { return 2;}
8024 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8025 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8026 echo "$AR cr libconftest.a conftest.o" >&5
8027 $AR cr libconftest.a conftest.o 2>&5
8028 echo "$RANLIB libconftest.a" >&5
8029 $RANLIB libconftest.a 2>&5
8030 cat > conftest.c << _LT_EOF
8031 int main() { return 0;}
8033 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8034 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8036 if test -s conftest.err && $GREP force_load conftest.err; then
8037 cat conftest.err >&5
8038 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8039 lt_cv_ld_force_load=yes
8041 cat conftest.err >&5
8043 rm -f conftest.err libconftest.a conftest conftest.c
8044 rm -rf conftest.dSYM
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8048 $as_echo "$lt_cv_ld_force_load" >&6; }
8050 rhapsody* | darwin1.[012])
8051 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8053 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8054 darwin*) # darwin 5.x on
8055 # if running on 10.5 or later, the deployment target defaults
8056 # to the OS version, if on x86, and 10.4, the deployment
8057 # target defaults to 10.4. Don't you love it?
8058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8060 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8062 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8064 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8068 if test yes = "$lt_cv_apple_cc_single_mod"; then
8069 _lt_dar_single_mod='$single_module'
8071 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8072 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8076 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8077 _lt_dsymutil='~$DSYMUTIL $lib || :'
8084 # func_munge_path_list VARIABLE PATH
8085 # -----------------------------------
8086 # VARIABLE is name of variable containing _space_ separated list of
8087 # directories to be munged by the contents of PATH, which is string
8090 # string "DIR[ DIR]" will be prepended to VARIABLE
8092 # string "DIR[ DIR]" will be appended to VARIABLE
8093 # "DIRP[:DIRP]::[DIRA:]DIRA"
8094 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8095 # "DIRA[ DIRA]" will be appended to VARIABLE
8097 # VARIABLE will be replaced by "DIR[ DIR]"
8098 func_munge_path_list ()
8104 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8107 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8110 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8111 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8114 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8125 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8126 # On Suns, sometimes $CPP names a directory.
8127 if test -n "$CPP" && test -d "$CPP"; then
8130 if test -z "$CPP"; then
8131 if ${ac_cv_prog_CPP+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 # Double quotes because CPP needs to be expanded
8135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8138 for ac_c_preproc_warn_flag in '' yes
8140 # Use a header file that comes with gcc, so configuring glibc
8141 # with a fresh cross-compiler works.
8142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143 # <limits.h> exists even on freestanding compilers.
8144 # On the NeXT, cc -E runs the code through the compiler's parser,
8145 # not just through cpp. "Syntax error" is here to catch this case.
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8149 # include <limits.h>
8151 # include <assert.h>
8155 if ac_fn_c_try_cpp "$LINENO"; then :
8158 # Broken: fails on valid input.
8161 rm -f conftest.err conftest.i conftest.$ac_ext
8163 # OK, works on sane cases. Now check whether nonexistent headers
8164 # can be detected and how.
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <ac_nonexistent.h>
8169 if ac_fn_c_try_cpp "$LINENO"; then :
8170 # Broken: success on invalid input.
8173 # Passes both tests.
8177 rm -f conftest.err conftest.i conftest.$ac_ext
8180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8181 rm -f conftest.i conftest.err conftest.$ac_ext
8182 if $ac_preproc_ok; then :
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8195 $as_echo "$CPP" >&6; }
8197 for ac_c_preproc_warn_flag in '' yes
8199 # Use a header file that comes with gcc, so configuring glibc
8200 # with a fresh cross-compiler works.
8201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8202 # <limits.h> exists even on freestanding compilers.
8203 # On the NeXT, cc -E runs the code through the compiler's parser,
8204 # not just through cpp. "Syntax error" is here to catch this case.
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8208 # include <limits.h>
8210 # include <assert.h>
8214 if ac_fn_c_try_cpp "$LINENO"; then :
8217 # Broken: fails on valid input.
8220 rm -f conftest.err conftest.i conftest.$ac_ext
8222 # OK, works on sane cases. Now check whether nonexistent headers
8223 # can be detected and how.
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 #include <ac_nonexistent.h>
8228 if ac_fn_c_try_cpp "$LINENO"; then :
8229 # Broken: success on invalid input.
8232 # Passes both tests.
8236 rm -f conftest.err conftest.i conftest.$ac_ext
8239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8240 rm -f conftest.i conftest.err conftest.$ac_ext
8241 if $ac_preproc_ok; then :
8244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8246 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8247 See \`config.log' for more details" "$LINENO" 5; }
8251 ac_cpp='$CPP $CPPFLAGS'
8252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8258 $as_echo_n "checking for ANSI C header files... " >&6; }
8259 if ${ac_cv_header_stdc+:} false; then :
8260 $as_echo_n "(cached) " >&6
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 ac_cv_header_stdc=yes
8280 ac_cv_header_stdc=no
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 if test $ac_cv_header_stdc = yes; then
8285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292 $EGREP "memchr" >/dev/null 2>&1; then :
8295 ac_cv_header_stdc=no
8301 if test $ac_cv_header_stdc = yes; then
8302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "free" >/dev/null 2>&1; then :
8312 ac_cv_header_stdc=no
8318 if test $ac_cv_header_stdc = yes; then
8319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8320 if test "$cross_compiling" = yes; then :
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8327 #if ((' ' & 0x0FF) == 0x020)
8328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8331 # define ISLOWER(c) \
8332 (('a' <= (c) && (c) <= 'i') \
8333 || ('j' <= (c) && (c) <= 'r') \
8334 || ('s' <= (c) && (c) <= 'z'))
8335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8343 for (i = 0; i < 256; i++)
8344 if (XOR (islower (i), ISLOWER (i))
8345 || toupper (i) != TOUPPER (i))
8350 if ac_fn_c_try_run "$LINENO"; then :
8353 ac_cv_header_stdc=no
8355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8356 conftest.$ac_objext conftest.beam conftest.$ac_ext
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8362 $as_echo "$ac_cv_header_stdc" >&6; }
8363 if test $ac_cv_header_stdc = yes; then
8365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8371 inttypes.h stdint.h unistd.h
8373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8377 cat >>confdefs.h <<_ACEOF
8378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8386 for ac_header in dlfcn.h
8388 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DLFCN_H 1
8402 func_stripname_cnf ()
8405 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8406 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8408 } # func_stripname_cnf
8424 # Check whether --enable-shared was given.
8425 if test "${enable_shared+set}" = set; then :
8426 enableval=$enable_shared; p=${PACKAGE-default}
8428 yes) enable_shared=yes ;;
8429 no) enable_shared=no ;;
8432 # Look at the argument we got. We use all the common list separators.
8433 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8434 for pkg in $enableval; do
8436 if test "X$pkg" = "X$p"; then
8457 # Check whether --with-pic was given.
8458 if test "${with_pic+set}" = set; then :
8459 withval=$with_pic; lt_p=${PACKAGE-default}
8461 yes|no) pic_mode=$withval ;;
8464 # Look at the argument we got. We use all the common list separators.
8465 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8466 for lt_pkg in $withval; do
8468 if test "X$lt_pkg" = "X$lt_p"; then
8486 # Check whether --enable-fast-install was given.
8487 if test "${enable_fast_install+set}" = set; then :
8488 enableval=$enable_fast_install; p=${PACKAGE-default}
8490 yes) enable_fast_install=yes ;;
8491 no) enable_fast_install=no ;;
8493 enable_fast_install=no
8494 # Look at the argument we got. We use all the common list separators.
8495 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8496 for pkg in $enableval; do
8498 if test "X$pkg" = "X$p"; then
8499 enable_fast_install=yes
8506 enable_fast_install=yes
8516 shared_archive_member_spec=
8517 case $host,$enable_shared in
8518 power*-*-aix[5-9]*,yes)
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8520 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8522 # Check whether --with-aix-soname was given.
8523 if test "${with_aix_soname+set}" = set; then :
8524 withval=$with_aix_soname; case $withval in
8528 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8531 lt_cv_with_aix_soname=$with_aix_soname
8533 if ${lt_cv_with_aix_soname+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 lt_cv_with_aix_soname=aix
8539 with_aix_soname=$lt_cv_with_aix_soname
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8543 $as_echo "$with_aix_soname" >&6; }
8544 if test aix != "$with_aix_soname"; then
8545 # For the AIX way of multilib, we name the shared archive member
8546 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8547 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8548 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8549 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8550 if test 64 = "${OBJECT_MODE-32}"; then
8551 shared_archive_member_spec=shr_64
8553 shared_archive_member_spec=shr
8571 # This can be used to rebuild libtool when needed
8572 LIBTOOL_DEPS=$ltmain
8574 # Always use our own libtool.
8575 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8606 test -z "$LN_S" && LN_S="ln -s"
8621 if test -n "${ZSH_VERSION+set}"; then
8622 setopt NO_GLOB_SUBST
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8626 $as_echo_n "checking for objdir... " >&6; }
8627 if ${lt_cv_objdir+:} false; then :
8628 $as_echo_n "(cached) " >&6
8630 rm -f .libs 2>/dev/null
8631 mkdir .libs 2>/dev/null
8632 if test -d .libs; then
8635 # MS-DOS does not allow filenames that begin with a dot.
8638 rmdir .libs 2>/dev/null
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8641 $as_echo "$lt_cv_objdir" >&6; }
8642 objdir=$lt_cv_objdir
8648 cat >>confdefs.h <<_ACEOF
8649 #define LT_OBJDIR "$lt_cv_objdir/"
8657 # AIX sometimes has problems with the GCC collect2 program. For some
8658 # reason, if we set the COLLECT_NAMES environment variable, the problems
8659 # vanish in a puff of smoke.
8660 if test set != "${COLLECT_NAMES+set}"; then
8662 export COLLECT_NAMES
8669 can_build_shared=yes
8671 # All known linkers require a '.a' archive for static linking (except MSVC,
8672 # which needs '.lib').
8675 with_gnu_ld=$lt_cv_prog_gnu_ld
8680 # Set sane defaults for various variables
8681 test -z "$CC" && CC=cc
8682 test -z "$LTCC" && LTCC=$CC
8683 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8684 test -z "$LD" && LD=ld
8685 test -z "$ac_objext" && ac_objext=o
8687 func_cc_basename $compiler
8688 cc_basename=$func_cc_basename_result
8691 # Only perform the check for file, if the check method requires it
8692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8693 case $deplibs_check_method in
8695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8698 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8699 $as_echo_n "(cached) " >&6
8703 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8706 lt_save_MAGIC_CMD=$MAGIC_CMD
8707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8709 for ac_dir in $ac_dummy; do
8711 test -z "$ac_dir" && ac_dir=.
8712 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8713 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8714 if test -n "$file_magic_test_file"; then
8715 case $deplibs_check_method in
8717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8720 $EGREP "$file_magic_regex" > /dev/null; then
8725 *** Warning: the command libtool uses to detect shared libraries,
8726 *** $file_magic_cmd, produces output that libtool cannot recognize.
8727 *** The result is that libtool may fail to recognize shared libraries
8728 *** as such. This will affect the creation of libtool libraries that
8729 *** depend on shared libraries, but programs linked with such libtool
8730 *** libraries will work regardless of this problem. Nevertheless, you
8731 *** may want to report the problem to your system manager and/or to
8732 *** bug-libtool@gnu.org
8742 MAGIC_CMD=$lt_save_MAGIC_CMD
8747 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8748 if test -n "$MAGIC_CMD"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8750 $as_echo "$MAGIC_CMD" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8760 if test -z "$lt_cv_path_MAGIC_CMD"; then
8761 if test -n "$ac_tool_prefix"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8763 $as_echo_n "checking for file... " >&6; }
8764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8765 $as_echo_n "(cached) " >&6
8769 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8772 lt_save_MAGIC_CMD=$MAGIC_CMD
8773 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8775 for ac_dir in $ac_dummy; do
8777 test -z "$ac_dir" && ac_dir=.
8778 if test -f "$ac_dir/file"; then
8779 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8780 if test -n "$file_magic_test_file"; then
8781 case $deplibs_check_method in
8783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8784 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8786 $EGREP "$file_magic_regex" > /dev/null; then
8791 *** Warning: the command libtool uses to detect shared libraries,
8792 *** $file_magic_cmd, produces output that libtool cannot recognize.
8793 *** The result is that libtool may fail to recognize shared libraries
8794 *** as such. This will affect the creation of libtool libraries that
8795 *** depend on shared libraries, but programs linked with such libtool
8796 *** libraries will work regardless of this problem. Nevertheless, you
8797 *** may want to report the problem to your system manager and/or to
8798 *** bug-libtool@gnu.org
8808 MAGIC_CMD=$lt_save_MAGIC_CMD
8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8814 if test -n "$MAGIC_CMD"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8816 $as_echo "$MAGIC_CMD" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8832 # Use C for the default configuration in the libtool script
8836 ac_cpp='$CPP $CPPFLAGS'
8837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8842 # Source file extension for C test sources.
8845 # Object file extension for compiled C test sources.
8849 # Code to be used in simple compile tests
8850 lt_simple_compile_test_code="int some_variable = 0;"
8852 # Code to be used in simple link tests
8853 lt_simple_link_test_code='int main(){return(0);}'
8861 # If no C compiler was specified, use CC.
8864 # If no C compiler flags were specified, use CFLAGS.
8865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8867 # Allow CC to be a program name with arguments.
8870 # Save the default compiler, since it gets overwritten when the other
8871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8872 compiler_DEFAULT=$CC
8874 # save warnings/boilerplate of simple test code
8875 ac_outfile=conftest.$ac_objext
8876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878 _lt_compiler_boilerplate=`cat conftest.err`
8881 ac_outfile=conftest.$ac_objext
8882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8884 _lt_linker_boilerplate=`cat conftest.err`
8889 ## There is no encapsulation within the following macros, do not change
8890 ## the running order or otherwise move them around unless you know exactly
8891 ## what you are doing...
8892 if test -n "$compiler"; then
8894 lt_prog_compiler_no_builtin_flag=
8896 if test yes = "$GCC"; then
8897 case $cc_basename in
8899 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8901 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8906 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8907 $as_echo_n "(cached) " >&6
8909 lt_cv_prog_compiler_rtti_exceptions=no
8910 ac_outfile=conftest.$ac_objext
8911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8913 # Insert the option either (1) after the last *FLAGS variable, or
8914 # (2) before a word containing "conftest.", or (3) at the end.
8915 # Note that $ac_compile itself does not contain backslashes and begins
8916 # with a dollar sign (not a hyphen), so the echo should work correctly.
8917 # The option is referenced via a variable to avoid confusing sed.
8918 lt_compile=`echo "$ac_compile" | $SED \
8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8921 -e 's:$: $lt_compiler_flag:'`
8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8923 (eval "$lt_compile" 2>conftest.err)
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 if (exit $ac_status) && test -s "$ac_outfile"; then
8928 # The compiler can only warn and ignore the option if not recognized
8929 # So say no if there are warnings other than the usual output.
8930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8933 lt_cv_prog_compiler_rtti_exceptions=yes
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8942 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8955 lt_prog_compiler_wl=
8956 lt_prog_compiler_pic=
8957 lt_prog_compiler_static=
8960 if test yes = "$GCC"; then
8961 lt_prog_compiler_wl='-Wl,'
8962 lt_prog_compiler_static='-static'
8966 # All AIX code is PIC.
8967 if test ia64 = "$host_cpu"; then
8968 # AIX 5 now supports IA64 processor
8969 lt_prog_compiler_static='-Bstatic'
8971 lt_prog_compiler_pic='-fPIC'
8977 # see comment about AmigaOS4 .so support
8978 lt_prog_compiler_pic='-fPIC'
8981 # FIXME: we need at least 68020 code to build shared libraries, but
8982 # adding the '-m68020' flag to GCC prevents building anything better,
8984 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8990 # PIC is the default for these OSes.
8993 mingw* | cygwin* | pw32* | os2* | cegcc*)
8994 # This hack is so that the source file can tell whether it is being
8995 # built for inclusion in a dll (and should export symbols for example).
8996 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8997 # (--disable-auto-import) libraries
8998 lt_prog_compiler_pic='-DDLL_EXPORT'
9001 lt_prog_compiler_static='$wl-static'
9006 darwin* | rhapsody*)
9007 # PIC is the default on this platform
9008 # Common symbols not allowed in MH_DYLIB files
9009 lt_prog_compiler_pic='-fno-common'
9013 # PIC is the default for Haiku.
9014 # The "-static" flag exists, but is broken.
9015 lt_prog_compiler_static=
9019 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9020 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9021 # sets the default TLS model and affects inlining.
9027 lt_prog_compiler_pic='-fPIC'
9033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9034 # Instead, we relocate shared libraries at runtime.
9038 # Just because we use GCC doesn't mean we suddenly get shared libraries
9039 # on systems that don't support them.
9040 lt_prog_compiler_can_build_shared=no
9045 # QNX uses GNU C++, but need to define -shared option too, otherwise
9047 lt_prog_compiler_pic='-fPIC -shared'
9051 if test -d /usr/nec; then
9052 lt_prog_compiler_pic=-Kconform_pic
9057 lt_prog_compiler_pic='-fPIC'
9061 case $cc_basename in
9062 nvcc*) # Cuda Compiler Driver 2.2
9063 lt_prog_compiler_wl='-Xlinker '
9064 if test -n "$lt_prog_compiler_pic"; then
9065 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9070 # PORTME Check for flag to pass linker flags through the system compiler.
9073 lt_prog_compiler_wl='-Wl,'
9074 if test ia64 = "$host_cpu"; then
9075 # AIX 5 now supports IA64 processor
9076 lt_prog_compiler_static='-Bstatic'
9078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9082 darwin* | rhapsody*)
9083 # PIC is the default on this platform
9084 # Common symbols not allowed in MH_DYLIB files
9085 lt_prog_compiler_pic='-fno-common'
9086 case $cc_basename in
9088 # NAG Fortran compiler
9089 lt_prog_compiler_wl='-Wl,-Wl,,'
9090 lt_prog_compiler_pic='-PIC'
9091 lt_prog_compiler_static='-Bstatic'
9096 mingw* | cygwin* | pw32* | os2* | cegcc*)
9097 # This hack is so that the source file can tell whether it is being
9098 # built for inclusion in a dll (and should export symbols for example).
9099 lt_prog_compiler_pic='-DDLL_EXPORT'
9102 lt_prog_compiler_static='$wl-static'
9107 hpux9* | hpux10* | hpux11*)
9108 lt_prog_compiler_wl='-Wl,'
9109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9116 lt_prog_compiler_pic='+Z'
9119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9120 lt_prog_compiler_static='$wl-a ${wl}archive'
9123 irix5* | irix6* | nonstopux*)
9124 lt_prog_compiler_wl='-Wl,'
9125 # PIC (with -KPIC) is the default.
9126 lt_prog_compiler_static='-non_shared'
9129 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9130 case $cc_basename in
9131 # old Intel for x86_64, which still supported -KPIC.
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-KPIC'
9135 lt_prog_compiler_static='-static'
9137 # flang / f18. f95 an alias for gfortran or flang on Debian
9138 flang* | f18* | f95*)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fPIC'
9141 lt_prog_compiler_static='-static'
9143 # icc used to be incompatible with GCC.
9144 # ICC 10 doesn't accept -KPIC any more.
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-fPIC'
9148 lt_prog_compiler_static='-static'
9150 # Lahey Fortran 8.1.
9152 lt_prog_compiler_wl='-Wl,'
9153 lt_prog_compiler_pic='--shared'
9154 lt_prog_compiler_static='--static'
9157 # NAG Fortran compiler
9158 lt_prog_compiler_wl='-Wl,-Wl,,'
9159 lt_prog_compiler_pic='-PIC'
9160 lt_prog_compiler_static='-Bstatic'
9163 # Fabrice Bellard et al's Tiny C Compiler
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fPIC'
9166 lt_prog_compiler_static='-static'
9168 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9169 # Portland Group compilers (*not* the Pentium gcc compiler,
9170 # which looks to be a dead project)
9171 lt_prog_compiler_wl='-Wl,'
9172 lt_prog_compiler_pic='-fpic'
9173 lt_prog_compiler_static='-Bstatic'
9176 lt_prog_compiler_wl='-Wl,'
9177 # All Alpha code is PIC.
9178 lt_prog_compiler_static='-non_shared'
9180 xl* | bgxl* | bgf* | mpixl*)
9181 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_pic='-qpic'
9184 lt_prog_compiler_static='-qstaticlink'
9187 case `$CC -V 2>&1 | sed 5q` in
9188 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9189 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9190 lt_prog_compiler_pic='-KPIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 lt_prog_compiler_wl=''
9194 *Sun\ F* | *Sun*Fortran*)
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9197 lt_prog_compiler_wl='-Qoption ld '
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 lt_prog_compiler_wl='-Wl,'
9205 *Intel*\ [CF]*Compiler*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_pic='-fPIC'
9208 lt_prog_compiler_static='-static'
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-fpic'
9213 lt_prog_compiler_static='-Bstatic'
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-Bstatic'
9226 # QNX uses GNU C++, but need to define -shared option too, otherwise
9228 lt_prog_compiler_pic='-fPIC -shared'
9231 osf3* | osf4* | osf5*)
9232 lt_prog_compiler_wl='-Wl,'
9233 # All OSF/1 code is PIC.
9234 lt_prog_compiler_static='-non_shared'
9238 lt_prog_compiler_static='-non_shared'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-Bstatic'
9244 case $cc_basename in
9245 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9246 lt_prog_compiler_wl='-Qoption ld ';;
9248 lt_prog_compiler_wl='-Wl,';;
9253 lt_prog_compiler_wl='-Qoption ld '
9254 lt_prog_compiler_pic='-PIC'
9255 lt_prog_compiler_static='-Bstatic'
9258 sysv4 | sysv4.2uw2* | sysv4.3*)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='-KPIC'
9261 lt_prog_compiler_static='-Bstatic'
9265 if test -d /usr/nec; then
9266 lt_prog_compiler_pic='-Kconform_pic'
9267 lt_prog_compiler_static='-Bstatic'
9271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_can_build_shared=no
9283 lt_prog_compiler_pic='-pic'
9284 lt_prog_compiler_static='-Bstatic'
9288 lt_prog_compiler_can_build_shared=no
9294 # For platforms that do not support PIC, -DPIC is meaningless:
9296 lt_prog_compiler_pic=
9299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9304 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9305 if ${lt_cv_prog_compiler_pic+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9311 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9312 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9315 # Check to make sure the PIC flag actually works.
9317 if test -n "$lt_prog_compiler_pic"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9320 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9321 $as_echo_n "(cached) " >&6
9323 lt_cv_prog_compiler_pic_works=no
9324 ac_outfile=conftest.$ac_objext
9325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9327 # Insert the option either (1) after the last *FLAGS variable, or
9328 # (2) before a word containing "conftest.", or (3) at the end.
9329 # Note that $ac_compile itself does not contain backslashes and begins
9330 # with a dollar sign (not a hyphen), so the echo should work correctly.
9331 # The option is referenced via a variable to avoid confusing sed.
9332 lt_compile=`echo "$ac_compile" | $SED \
9333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9335 -e 's:$: $lt_compiler_flag:'`
9336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9337 (eval "$lt_compile" 2>conftest.err)
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 if (exit $ac_status) && test -s "$ac_outfile"; then
9342 # The compiler can only warn and ignore the option if not recognized
9343 # So say no if there are warnings other than the usual output.
9344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9347 lt_cv_prog_compiler_pic_works=yes
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9356 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9357 case $lt_prog_compiler_pic in
9359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9362 lt_prog_compiler_pic=
9363 lt_prog_compiler_can_build_shared=no
9379 # Check to make sure the static flag actually works.
9381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9383 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9384 if ${lt_cv_prog_compiler_static_works+:} false; then :
9385 $as_echo_n "(cached) " >&6
9387 lt_cv_prog_compiler_static_works=no
9388 save_LDFLAGS=$LDFLAGS
9389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392 # The linker can only warn and ignore the option if not recognized
9393 # So say no if there are warnings
9394 if test -s conftest.err; then
9395 # Append any errors to the config.log.
9396 cat conftest.err 1>&5
9397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399 if diff conftest.exp conftest.er2 >/dev/null; then
9400 lt_cv_prog_compiler_static_works=yes
9403 lt_cv_prog_compiler_static_works=yes
9407 LDFLAGS=$save_LDFLAGS
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9413 if test yes = "$lt_cv_prog_compiler_static_works"; then
9416 lt_prog_compiler_static=
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9427 if ${lt_cv_prog_compiler_c_o+:} false; then :
9428 $as_echo_n "(cached) " >&6
9430 lt_cv_prog_compiler_c_o=no
9431 $RM -r conftest 2>/dev/null
9435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9437 lt_compiler_flag="-o out/conftest2.$ac_objext"
9438 # Insert the option either (1) after the last *FLAGS variable, or
9439 # (2) before a word containing "conftest.", or (3) at the end.
9440 # Note that $ac_compile itself does not contain backslashes and begins
9441 # with a dollar sign (not a hyphen), so the echo should work correctly.
9442 lt_compile=`echo "$ac_compile" | $SED \
9443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445 -e 's:$: $lt_compiler_flag:'`
9446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9447 (eval "$lt_compile" 2>out/conftest.err)
9449 cat out/conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9453 # The compiler can only warn and ignore the option if not recognized
9454 # So say no if there are warnings
9455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9458 lt_cv_prog_compiler_c_o=yes
9463 # SGI C++ compiler will create directory out/ii_files/ for
9464 # template instantiation
9465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9466 $RM out/* && rmdir out
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9481 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9482 if ${lt_cv_prog_compiler_c_o+:} false; then :
9483 $as_echo_n "(cached) " >&6
9485 lt_cv_prog_compiler_c_o=no
9486 $RM -r conftest 2>/dev/null
9490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9492 lt_compiler_flag="-o out/conftest2.$ac_objext"
9493 # Insert the option either (1) after the last *FLAGS variable, or
9494 # (2) before a word containing "conftest.", or (3) at the end.
9495 # Note that $ac_compile itself does not contain backslashes and begins
9496 # with a dollar sign (not a hyphen), so the echo should work correctly.
9497 lt_compile=`echo "$ac_compile" | $SED \
9498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500 -e 's:$: $lt_compiler_flag:'`
9501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9502 (eval "$lt_compile" 2>out/conftest.err)
9504 cat out/conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9508 # The compiler can only warn and ignore the option if not recognized
9509 # So say no if there are warnings
9510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513 lt_cv_prog_compiler_c_o=yes
9518 # SGI C++ compiler will create directory out/ii_files/ for
9519 # template instantiation
9520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521 $RM out/* && rmdir out
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9533 hard_links=nottested
9534 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9535 # do not overwrite the value of need_locks provided by the user
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9537 $as_echo_n "checking if we can lock with hard links... " >&6; }
9540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9542 ln conftest.a conftest.b 2>&5 || hard_links=no
9543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9545 $as_echo "$hard_links" >&6; }
9546 if test no = "$hard_links"; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9548 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9564 allow_undefined_flag=
9565 always_export_symbols=no
9567 archive_expsym_cmds=
9568 compiler_needs_object=no
9569 enable_shared_with_static_runtimes=no
9570 export_dynamic_flag_spec=
9571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572 hardcode_automatic=no
9574 hardcode_direct_absolute=no
9575 hardcode_libdir_flag_spec=
9576 hardcode_libdir_separator=
9578 hardcode_shlibpath_var=unsupported
9580 link_all_deplibs=unknown
9583 old_archive_from_new_cmds=
9584 old_archive_from_expsyms_cmds=
9585 thread_safe_flag_spec=
9586 whole_archive_flag_spec=
9587 # include_expsyms should be a list of space-separated symbols to be *always*
9588 # included in the symbol list
9590 # exclude_expsyms can be an extended regexp of symbols to exclude
9591 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9592 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9593 # as well as any symbol that contains 'd'.
9594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9596 # platforms (ab)use it in PIC code, but their linkers get confused if
9597 # the symbol is explicitly referenced. Since portable code cannot
9598 # rely on this symbol name, it's probably fine to never include it in
9599 # preloaded symbol tables.
9600 # Exclude shared library initialization/finalization symbols.
9601 extract_expsyms_cmds=
9604 cygwin* | mingw* | pw32* | cegcc*)
9605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9606 # When not using gcc, we currently assume that we are using
9607 # Microsoft Visual C++.
9608 if test yes != "$GCC"; then
9613 # we just hope/assume this is gcc and not c89 (= MSVC++)
9619 linux* | k*bsd*-gnu | gnu*)
9626 # On some targets, GNU ld is compatible enough with the native linker
9627 # that we're better off using the native interface for both.
9628 lt_use_gnu_ld_interface=no
9629 if test yes = "$with_gnu_ld"; then
9632 # The AIX port of GNU ld has always aspired to compatibility
9633 # with the native linker. However, as the warning in the GNU ld
9634 # block says, versions before 2.19.5* couldn't really create working
9635 # shared libraries, regardless of the interface used.
9636 case `$LD -v 2>&1` in
9637 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9638 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9639 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9641 lt_use_gnu_ld_interface=yes
9646 lt_use_gnu_ld_interface=yes
9651 if test yes = "$lt_use_gnu_ld_interface"; then
9652 # If archive_cmds runs LD, not CC, wlarc should be empty
9655 # Set some defaults for GNU ld with shared library support. These
9656 # are reset later if shared libraries are not supported. Putting them
9657 # here allows them to be overridden if necessary.
9658 runpath_var=LD_RUN_PATH
9659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9660 export_dynamic_flag_spec='$wl--export-dynamic'
9661 # ancient GNU ld didn't support --whole-archive et. al.
9662 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9663 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9665 whole_archive_flag_spec=
9667 supports_anon_versioning=no
9668 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9669 *GNU\ gold*) supports_anon_versioning=yes ;;
9670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9673 *\ 2.11.*) ;; # other 2.11 versions
9674 *) supports_anon_versioning=yes ;;
9677 # See if GNU ld supports shared libraries.
9680 # On AIX/PPC, the GNU linker is very broken
9681 if test ia64 != "$host_cpu"; then
9685 *** Warning: the GNU linker, at least up to release 2.19, is reported
9686 *** to be unable to reliably create shared libraries on AIX.
9687 *** Therefore, libtool is disabling shared libraries support. If you
9688 *** really care for shared libraries, you may want to install binutils
9689 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9690 *** You will then need to restart the configuration process.
9699 # see comment about AmigaOS4 .so support
9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701 archive_expsym_cmds=''
9704 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)'
9705 hardcode_libdir_flag_spec='-L$libdir'
9706 hardcode_minus_L=yes
9712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9713 allow_undefined_flag=unsupported
9714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9715 # support --undefined. This deserves some investigation. FIXME
9716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9724 # as there is no search path for DLLs.
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 export_dynamic_flag_spec='$wl--export-all-symbols'
9727 allow_undefined_flag=unsupported
9728 always_export_symbols=no
9729 enable_shared_with_static_runtimes=yes
9730 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'
9731 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9735 # If the export-symbols file already is a .def file, use it as
9736 # is; otherwise, prepend EXPORTS...
9737 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9738 cp $export_symbols $output_objdir/$soname.def;
9740 echo EXPORTS > $output_objdir/$soname.def;
9741 cat $export_symbols >> $output_objdir/$soname.def;
9743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9751 link_all_deplibs=yes
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9757 allow_undefined_flag=unsupported
9759 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9760 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9761 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9762 $ECHO EXPORTS >> $output_objdir/$libname.def~
9763 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9764 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9765 emximp -o $lib $output_objdir/$libname.def'
9766 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9767 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9768 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9769 $ECHO EXPORTS >> $output_objdir/$libname.def~
9771 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9772 prefix_cmds="$prefix_cmds -e 1d";
9774 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9775 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9776 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9777 emximp -o $lib $output_objdir/$libname.def'
9778 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9779 enable_shared_with_static_runtimes=yes
9784 hardcode_shlibpath_var=no
9785 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9786 export_dynamic_flag_spec='$wl-E'
9787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9788 # Instead, shared libraries are loaded at an image base (0x10000000 by
9789 # default) and relocated if they conflict, which is a slow very memory
9790 # consuming and fragmenting process. To avoid this, we pick a random,
9791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9794 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'
9797 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9799 if test linux-dietlibc = "$host_os"; then
9800 case $cc_basename in
9801 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9804 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9805 && test no = "$tmp_diet"
9807 tmp_addflag=' $pic_flag'
9808 tmp_sharedflag='-shared'
9809 case $cc_basename,$host_cpu in
9810 pgcc*) # Portland Group C compiler
9811 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'
9812 tmp_addflag=' $pic_flag'
9814 pgf77* | pgf90* | pgf95* | pgfortran*)
9815 # Portland Group f77 and f90 compilers
9816 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'
9817 tmp_addflag=' $pic_flag -Mnomain' ;;
9818 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9819 tmp_addflag=' -i_dynamic' ;;
9820 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9821 tmp_addflag=' -i_dynamic -nofor_main' ;;
9822 ifc* | ifort*) # Intel Fortran compiler
9823 tmp_addflag=' -nofor_main' ;;
9824 lf95*) # Lahey Fortran 8.1
9825 whole_archive_flag_spec=
9826 tmp_sharedflag='--shared' ;;
9827 nagfor*) # NAGFOR 5.3
9828 tmp_sharedflag='-Wl,-shared' ;;
9829 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9830 tmp_sharedflag='-qmkshrobj'
9832 nvcc*) # Cuda Compiler Driver 2.2
9833 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'
9834 compiler_needs_object=yes
9837 case `$CC -V 2>&1 | sed 5q` in
9838 *Sun\ C*) # Sun C 5.9
9839 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'
9840 compiler_needs_object=yes
9841 tmp_sharedflag='-G' ;;
9842 *Sun\ F*) # Sun Fortran 8.3
9843 tmp_sharedflag='-G' ;;
9845 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9847 if test yes = "$supports_anon_versioning"; then
9848 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9850 echo "local: *; };" >> $output_objdir/$libname.ver~
9851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9854 case $cc_basename in
9856 export_dynamic_flag_spec='-rdynamic'
9858 xlf* | bgf* | bgxlf* | mpixlf*)
9859 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9860 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9862 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9863 if test yes = "$supports_anon_versioning"; then
9864 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9866 echo "local: *; };" >> $output_objdir/$libname.ver~
9867 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9876 netbsd* | netbsdelf*-gnu)
9877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9878 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9882 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9887 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9892 *** create shared libraries on Solaris systems. Therefore, libtool
9893 *** is disabling shared libraries support. We urge you to upgrade GNU
9894 *** binutils to release 2.9.1 or newer. Another option is to modify
9895 *** your PATH or compiler configuration so that the native linker is
9896 *** used, and then restart.
9899 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9908 case `$LD -v 2>&1` in
9909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9913 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9914 *** reliably create shared libraries on SCO systems. Therefore, libtool
9915 *** is disabling shared libraries support. We urge you to upgrade GNU
9916 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9917 *** your PATH or compiler configuration so that the native linker is
9918 *** used, and then restart.
9923 # For security reasons, it is highly recommended that you always
9924 # use absolute paths for naming shared libraries, and exclude the
9925 # DT_RUNPATH tag from executables and libraries. But doing so
9926 # requires that you compile everything twice, which is a pain.
9927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9928 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9930 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9939 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_shlibpath_var=no
9946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9948 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9955 if test no = "$ld_shlibs"; then
9957 hardcode_libdir_flag_spec=
9958 export_dynamic_flag_spec=
9959 whole_archive_flag_spec=
9962 # PORTME fill in a description of your system's linker (not GNU ld)
9965 allow_undefined_flag=unsupported
9966 always_export_symbols=yes
9967 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'
9968 # Note: this linker hardcodes the directories in LIBPATH if there
9969 # are no directories specified by -L.
9970 hardcode_minus_L=yes
9971 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9972 # Neither direct hardcoding nor static linking is supported with a
9974 hardcode_direct=unsupported
9979 if test ia64 = "$host_cpu"; then
9980 # On IA64, the linker does run time linking by default, so we don't
9981 # have to do anything special.
9982 aix_use_runtimelinking=no
9983 exp_sym_flag='-Bexport'
9986 # If we're using GNU nm, then we don't want the "-C" option.
9987 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9988 # Without the "-l" option, or with the "-B" option, AIX nm treats
9989 # weak defined symbols like other global defined symbols, whereas
9990 # GNU nm marks them as "W".
9991 # While the 'weak' keyword is ignored in the Export File, we need
9992 # it in the Import File for the 'aix-soname' feature, so we have
9993 # to replace the "-B" option with "-P" for AIX nm.
9994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9995 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9997 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9999 aix_use_runtimelinking=no
10001 # Test if we are trying to use run time linking or normal
10002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10003 # have runtime linking enabled, and use it for executables.
10004 # For shared libraries, we enable/disable runtime linking
10005 # depending on the kind of the shared library created -
10006 # when "with_aix_soname,aix_use_runtimelinking" is:
10007 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10008 # "aix,yes" lib.so shared, rtl:yes, for executables
10009 # lib.a static archive
10010 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10011 # lib.a(lib.so.V) shared, rtl:no, for executables
10012 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10013 # lib.a(lib.so.V) shared, rtl:no
10014 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10015 # lib.a static archive
10016 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10017 for ld_flag in $LDFLAGS; do
10018 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10019 aix_use_runtimelinking=yes
10023 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10024 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10025 # so we don't have lib.a shared libs to link our executables.
10026 # We have to force runtime linking in this case.
10027 aix_use_runtimelinking=yes
10028 LDFLAGS="$LDFLAGS -Wl,-brtl"
10033 exp_sym_flag='-bexport'
10034 no_entry_flag='-bnoentry'
10037 # When large executables or shared objects are built, AIX ld can
10038 # have problems creating the table of contents. If linking a library
10039 # or program results in "error TOC overflow" add -mminimal-toc to
10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10044 hardcode_direct=yes
10045 hardcode_direct_absolute=yes
10046 hardcode_libdir_separator=':'
10047 link_all_deplibs=yes
10048 file_list_spec='$wl-f,'
10049 case $with_aix_soname,$aix_use_runtimelinking in
10050 aix,*) ;; # traditional, no import file
10051 svr4,* | *,yes) # use import file
10052 # The Import File defines what to hardcode.
10054 hardcode_direct_absolute=no
10058 if test yes = "$GCC"; then
10059 case $host_os in aix4.[012]|aix4.[012].*)
10060 # We only want to do this on AIX 4.2 and lower, the check
10061 # below for broken collect2 doesn't work under 4.3+
10062 collect2name=`$CC -print-prog-name=collect2`
10063 if test -f "$collect2name" &&
10064 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10066 # We have reworked collect2
10069 # We have old collect2
10070 hardcode_direct=unsupported
10071 # It fails to find uninstalled libraries when the uninstalled
10072 # path is not listed in the libpath. Setting hardcode_minus_L
10073 # to unsupported forces relinking
10074 hardcode_minus_L=yes
10075 hardcode_libdir_flag_spec='-L$libdir'
10076 hardcode_libdir_separator=
10080 shared_flag='-shared'
10081 if test yes = "$aix_use_runtimelinking"; then
10082 shared_flag="$shared_flag "'$wl-G'
10084 # Need to ensure runtime linking is disabled for the traditional
10085 # shared library, or the linker may eventually find shared libraries
10086 # /with/ Import File - we do not want to mix them.
10087 shared_flag_aix='-shared'
10088 shared_flag_svr4='-shared $wl-G'
10091 if test ia64 = "$host_cpu"; then
10092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10093 # chokes on -Wl,-G. The following line is correct:
10096 if test yes = "$aix_use_runtimelinking"; then
10097 shared_flag='$wl-G'
10099 shared_flag='$wl-bM:SRE'
10101 shared_flag_aix='$wl-bM:SRE'
10102 shared_flag_svr4='$wl-G'
10106 export_dynamic_flag_spec='$wl-bexpall'
10107 # It seems that -bexpall does not export symbols beginning with
10108 # underscore (_), so it is better to generate a list of symbols to export.
10109 always_export_symbols=yes
10110 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10111 # Warning - without using the other runtime loading flags (-brtl),
10112 # -berok will link without error, but may produce a broken library.
10113 allow_undefined_flag='-berok'
10114 # Determine the default libpath from the value encoded in an
10115 # empty executable.
10116 if test set = "${lt_cv_aix_libpath+set}"; then
10117 aix_libpath=$lt_cv_aix_libpath
10119 if ${lt_cv_aix_libpath_+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10133 if ac_fn_c_try_link "$LINENO"; then :
10135 lt_aix_libpath_sed='
10136 /Import File Strings/,/^$/ {
10138 s/^0 *\([^ ]*\) *$/\1/
10142 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 # Check for a 64-bit object if we didn't find anything.
10144 if test -z "$lt_cv_aix_libpath_"; then
10145 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_=/usr/lib:/lib
10156 aix_libpath=$lt_cv_aix_libpath_
10159 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10160 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10162 if test ia64 = "$host_cpu"; then
10163 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10164 allow_undefined_flag="-z nodefs"
10165 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"
10167 # Determine the default libpath from the value encoded in an
10168 # empty executable.
10169 if test set = "${lt_cv_aix_libpath+set}"; then
10170 aix_libpath=$lt_cv_aix_libpath
10172 if ${lt_cv_aix_libpath_+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10186 if ac_fn_c_try_link "$LINENO"; then :
10188 lt_aix_libpath_sed='
10189 /Import File Strings/,/^$/ {
10191 s/^0 *\([^ ]*\) *$/\1/
10195 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 # Check for a 64-bit object if we didn't find anything.
10197 if test -z "$lt_cv_aix_libpath_"; then
10198 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 if test -z "$lt_cv_aix_libpath_"; then
10204 lt_cv_aix_libpath_=/usr/lib:/lib
10209 aix_libpath=$lt_cv_aix_libpath_
10212 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10213 # Warning - without using the other run time loading flags,
10214 # -berok will link without error, but may produce a broken library.
10215 no_undefined_flag=' $wl-bernotok'
10216 allow_undefined_flag=' $wl-berok'
10217 if test yes = "$with_gnu_ld"; then
10218 # We only use this code for GNU lds that support --whole-archive.
10219 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10221 # Exported symbols can be pulled into shared objects from archives
10222 whole_archive_flag_spec='$convenience'
10224 archive_cmds_need_lc=yes
10225 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10226 # -brtl affects multiple linker settings, -berok does not and is overridden later
10227 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10228 if test svr4 != "$with_aix_soname"; then
10229 # This is similar to how AIX traditionally builds its shared libraries.
10230 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10232 if test aix != "$with_aix_soname"; then
10233 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10235 # used by -dlpreopen to get the symbols
10236 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10238 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10246 # see comment about AmigaOS4 .so support
10247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10248 archive_expsym_cmds=''
10251 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)'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_minus_L=yes
10259 export_dynamic_flag_spec=-rdynamic
10262 cygwin* | mingw* | pw32* | cegcc*)
10263 # When not using gcc, we currently assume that we are using
10264 # Microsoft Visual C++.
10265 # hardcode_libdir_flag_spec is actually meaningless, as there is
10266 # no search path for DLLs.
10267 case $cc_basename in
10270 hardcode_libdir_flag_spec=' '
10271 allow_undefined_flag=unsupported
10272 always_export_symbols=yes
10274 # Tell ltmain to make .lib files, not .a files.
10276 # Tell ltmain to make .dll files, not .so files.
10278 # FIXME: Setting linknames here is a bad hack.
10279 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10280 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10281 cp "$export_symbols" "$output_objdir/$soname.def";
10282 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10284 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10286 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10288 # The linker will not automatically build a static lib if we build a DLL.
10289 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10290 enable_shared_with_static_runtimes=yes
10291 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10294 old_postinstall_cmds='chmod 644 $oldlib'
10295 postlink_cmds='lt_outputfile="@OUTPUT@"~
10296 lt_tool_outputfile="@TOOL_OUTPUT@"~
10297 case $lt_outputfile in
10300 lt_outputfile=$lt_outputfile.exe
10301 lt_tool_outputfile=$lt_tool_outputfile.exe
10304 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10305 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10306 $RM "$lt_outputfile.manifest";
10310 # Assume MSVC wrapper
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10315 # Tell ltmain to make .dll files, not .so files.
10317 # FIXME: Setting linknames here is a bad hack.
10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 enable_shared_with_static_runtimes=yes
10328 darwin* | rhapsody*)
10331 archive_cmds_need_lc=no
10333 hardcode_automatic=yes
10334 hardcode_shlibpath_var=unsupported
10335 if test yes = "$lt_cv_ld_force_load"; then
10336 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\"`'
10339 whole_archive_flag_spec=''
10341 link_all_deplibs=yes
10342 allow_undefined_flag=$_lt_dar_allow_undefined
10343 case $cc_basename in
10344 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10345 *) _lt_dar_can_shared=$GCC ;;
10347 if test yes = "$_lt_dar_can_shared"; then
10348 output_verbose_link_cmd=func_echo_all
10349 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10350 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10351 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"
10352 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"
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_libdir_flag_spec='-L$libdir'
10363 hardcode_shlibpath_var=no
10366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10367 # support. Future versions do this automatically, but an explicit c++rt0.o
10368 # does not break anything, and helps significantly (at the cost of a little
10371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10372 hardcode_libdir_flag_spec='-R$libdir'
10373 hardcode_direct=yes
10374 hardcode_shlibpath_var=no
10377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_direct=yes
10381 hardcode_minus_L=yes
10382 hardcode_shlibpath_var=no
10385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10386 freebsd* | dragonfly*)
10387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10388 hardcode_libdir_flag_spec='-R$libdir'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10394 if test yes = "$GCC"; then
10395 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10397 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10399 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10400 hardcode_libdir_separator=:
10401 hardcode_direct=yes
10403 # hardcode_minus_L: Not really in the search PATH,
10404 # but as the default location of the library.
10405 hardcode_minus_L=yes
10406 export_dynamic_flag_spec='$wl-E'
10410 if test yes,no = "$GCC,$with_gnu_ld"; then
10411 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10415 if test no = "$with_gnu_ld"; then
10416 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10417 hardcode_libdir_separator=:
10418 hardcode_direct=yes
10419 hardcode_direct_absolute=yes
10420 export_dynamic_flag_spec='$wl-E'
10421 # hardcode_minus_L: Not really in the search PATH,
10422 # but as the default location of the library.
10423 hardcode_minus_L=yes
10428 if test yes,no = "$GCC,$with_gnu_ld"; then
10431 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10434 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10437 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10450 # Older versions of the 11.00 compiler do not understand -b yet
10451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10453 $as_echo_n "checking if $CC understands -b... " >&6; }
10454 if ${lt_cv_prog_compiler__b+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 lt_cv_prog_compiler__b=no
10458 save_LDFLAGS=$LDFLAGS
10459 LDFLAGS="$LDFLAGS -b"
10460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10462 # The linker can only warn and ignore the option if not recognized
10463 # So say no if there are warnings
10464 if test -s conftest.err; then
10465 # Append any errors to the config.log.
10466 cat conftest.err 1>&5
10467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10469 if diff conftest.exp conftest.er2 >/dev/null; then
10470 lt_cv_prog_compiler__b=yes
10473 lt_cv_prog_compiler__b=yes
10477 LDFLAGS=$save_LDFLAGS
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10481 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10483 if test yes = "$lt_cv_prog_compiler__b"; then
10484 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10492 if test no = "$with_gnu_ld"; then
10493 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10494 hardcode_libdir_separator=:
10499 hardcode_shlibpath_var=no
10502 hardcode_direct=yes
10503 hardcode_direct_absolute=yes
10504 export_dynamic_flag_spec='$wl-E'
10506 # hardcode_minus_L: Not really in the search PATH,
10507 # but as the default location of the library.
10508 hardcode_minus_L=yes
10514 irix5* | irix6* | nonstopux*)
10515 if test yes = "$GCC"; then
10516 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'
10517 # Try to use the -exported_symbol ld option, if it does not
10518 # work, assume that -exports_file does not work either and
10519 # implicitly export all symbols.
10520 # This should be the same for all languages, so no per-tag cache variable.
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10522 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10523 if ${lt_cv_irix_exported_symbol+:} false; then :
10524 $as_echo_n "(cached) " >&6
10526 save_LDFLAGS=$LDFLAGS
10527 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 int foo (void) { return 0; }
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 lt_cv_irix_exported_symbol=yes
10535 lt_cv_irix_exported_symbol=no
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LDFLAGS=$save_LDFLAGS
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10542 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10543 if test yes = "$lt_cv_irix_exported_symbol"; then
10544 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'
10546 link_all_deplibs=no
10548 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'
10549 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'
10551 archive_cmds_need_lc='no'
10552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10553 hardcode_libdir_separator=:
10555 link_all_deplibs=yes
10559 case $cc_basename in
10561 # Fabrice Bellard et al's Tiny C Compiler
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10568 netbsd* | netbsdelf*-gnu)
10569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_direct=yes
10576 hardcode_shlibpath_var=no
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes
10582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10583 hardcode_libdir_separator=:
10584 hardcode_shlibpath_var=no
10590 openbsd* | bitrig*)
10591 if test -f /usr/libexec/ld.so; then
10592 hardcode_direct=yes
10593 hardcode_shlibpath_var=no
10594 hardcode_direct_absolute=yes
10595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10598 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10599 export_dynamic_flag_spec='$wl-E'
10601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10602 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_minus_L=yes
10612 allow_undefined_flag=unsupported
10614 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10617 $ECHO EXPORTS >> $output_objdir/$libname.def~
10618 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10620 emximp -o $lib $output_objdir/$libname.def'
10621 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10622 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10623 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10624 $ECHO EXPORTS >> $output_objdir/$libname.def~
10625 prefix_cmds="$SED"~
10626 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10627 prefix_cmds="$prefix_cmds -e 1d";
10629 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10630 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10632 emximp -o $lib $output_objdir/$libname.def'
10633 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10634 enable_shared_with_static_runtimes=yes
10638 if test yes = "$GCC"; then
10639 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10640 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'
10642 allow_undefined_flag=' -expect_unresolved \*'
10643 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'
10645 archive_cmds_need_lc='no'
10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647 hardcode_libdir_separator=:
10650 osf4* | osf5*) # as osf3* with the addition of -msym flag
10651 if test yes = "$GCC"; then
10652 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10653 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'
10654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10656 allow_undefined_flag=' -expect_unresolved \*'
10657 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'
10658 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~
10659 $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'
10661 # Both c and cxx compiler support -rpath directly
10662 hardcode_libdir_flag_spec='-rpath $libdir'
10664 archive_cmds_need_lc='no'
10665 hardcode_libdir_separator=:
10669 no_undefined_flag=' -z defs'
10670 if test yes = "$GCC"; then
10672 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10674 $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'
10676 case `$CC -V 2>&1` in
10679 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10681 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10685 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10691 hardcode_libdir_flag_spec='-R$libdir'
10692 hardcode_shlibpath_var=no
10694 solaris2.[0-5] | solaris2.[0-5].*) ;;
10696 # The compiler driver will combine and reorder linker options,
10697 # but understands '-z linker_flag'. GCC discards it without '$wl',
10698 # but is careful enough not to reorder.
10699 # Supported since Solaris 2.6 (maybe 2.5.1?)
10700 if test yes = "$GCC"; then
10701 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10703 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10707 link_all_deplibs=yes
10711 if test sequent = "$host_vendor"; then
10712 # Use $CC to link under sequent, because it throws in some extra .o
10713 # files that make .init and .fini sections work.
10714 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_libdir_flag_spec='-L$libdir'
10719 hardcode_direct=yes
10720 hardcode_minus_L=yes
10721 hardcode_shlibpath_var=no
10725 case $host_vendor in
10727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_direct=yes # is this really true???
10731 ## LD is ld it makes a PLAMLIB
10732 ## CC just makes a GrossModule.
10733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10734 reload_cmds='$CC -r -o $output$reload_objs'
10738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10742 runpath_var='LD_RUN_PATH'
10743 hardcode_shlibpath_var=no
10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10748 hardcode_shlibpath_var=no
10749 export_dynamic_flag_spec='-Bexport'
10753 if test -d /usr/nec; then
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_shlibpath_var=no
10756 runpath_var=LD_RUN_PATH
10757 hardcode_runpath_var=yes
10762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10763 no_undefined_flag='$wl-z,text'
10764 archive_cmds_need_lc=no
10765 hardcode_shlibpath_var=no
10766 runpath_var='LD_RUN_PATH'
10768 if test yes = "$GCC"; then
10769 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 sysv5* | sco3.2v5* | sco5v6*)
10778 # Note: We CANNOT use -z defs as we might desire, because we do not
10779 # link with -lc, and that would cause any symbols used from libc to
10780 # always be unresolved, which means just about no library would
10781 # ever link correctly. If we're not using GNU ld we use -z text
10782 # though, which does catch some bad symbols but isn't as heavy-handed
10784 no_undefined_flag='$wl-z,text'
10785 allow_undefined_flag='$wl-z,nodefs'
10786 archive_cmds_need_lc=no
10787 hardcode_shlibpath_var=no
10788 hardcode_libdir_flag_spec='$wl-R,$libdir'
10789 hardcode_libdir_separator=':'
10790 link_all_deplibs=yes
10791 export_dynamic_flag_spec='$wl-Bexport'
10792 runpath_var='LD_RUN_PATH'
10794 if test yes = "$GCC"; then
10795 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_shlibpath_var=no
10814 if test sni = "$host_vendor"; then
10816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10817 export_dynamic_flag_spec='$wl-Blargedynsym'
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10824 $as_echo "$ld_shlibs" >&6; }
10825 test no = "$ld_shlibs" && can_build_shared=no
10827 with_gnu_ld=$with_gnu_ld
10844 # Do we need to explicitly link libc?
10846 case "x$archive_cmds_need_lc" in
10848 # Assume -lc should be added
10849 archive_cmds_need_lc=yes
10851 if test yes,yes = "$GCC,$enable_shared"; then
10852 case $archive_cmds in
10854 # FIXME: we may have to deal with multi-command sequences.
10857 # Test whether the compiler implicitly links with -lc since on some
10858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10859 # to ld, don't add -lc before -lgcc.
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10862 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10863 $as_echo_n "(cached) " >&6
10866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10869 (eval $ac_compile) 2>&5
10871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10872 test $ac_status = 0; } 2>conftest.err; then
10875 libobjs=conftest.$ac_objext
10877 wl=$lt_prog_compiler_wl
10878 pic_flag=$lt_prog_compiler_pic
10884 lt_save_allow_undefined_flag=$allow_undefined_flag
10885 allow_undefined_flag=
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10887 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; }
10892 lt_cv_archive_cmds_need_lc=no
10894 lt_cv_archive_cmds_need_lc=yes
10896 allow_undefined_flag=$lt_save_allow_undefined_flag
10898 cat conftest.err 1>&5
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10904 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10905 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11064 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11066 if test yes = "$GCC"; then
11068 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11069 *) lt_awk_arg='/^libraries:/' ;;
11072 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11073 *) lt_sed_strip_eq='s|=/|/|g' ;;
11075 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11076 case $lt_search_path_spec in
11078 # if the path contains ";" then we assume it to be the separator
11079 # otherwise default to the standard path separator (i.e. ":") - it is
11080 # assumed that no part of a normal pathname contains ";" but that should
11081 # okay in the real world where ";" in dirpaths is itself problematic.
11082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11088 # Ok, now we have the path, separated by spaces, we can step through it
11089 # and add multilib dir if necessary...
11090 lt_tmp_lt_search_path_spec=
11091 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11092 # ...but if some path component already ends with the multilib dir we assume
11093 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11094 case "$lt_multi_os_dir; $lt_search_path_spec " in
11095 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11099 for lt_sys_path in $lt_search_path_spec; do
11100 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11102 elif test -n "$lt_multi_os_dir"; then
11103 test -d "$lt_sys_path" && \
11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11108 BEGIN {RS = " "; FS = "/|\n";} {
11111 for (lt_i = NF; lt_i > 0; lt_i--) {
11112 if ($lt_i != "" && $lt_i != ".") {
11113 if ($lt_i == "..") {
11116 if (lt_count == 0) {
11117 lt_foo = "/" $lt_i lt_foo;
11124 if (lt_foo != "") { lt_freq[lt_foo]++; }
11125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11127 # AWK program above erroneously prepends '/' to C:/dos/paths
11130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11131 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137 library_names_spec=
11138 libname_spec='lib$name'
11142 postuninstall_cmds=
11146 shlibpath_overrides_runpath=unknown
11148 dynamic_linker="$host_os ld.so"
11149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11150 need_lib_prefix=unknown
11151 hardcode_into_libs=no
11153 # when you set need_version to no, make sure it does not cause -set_version
11154 # flags to be left without arguments
11155 need_version=unknown
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11163 shlibpath_var=LIBPATH
11165 # AIX 3 has no versioning support, so we append a major version to the name.
11166 soname_spec='$libname$release$shared_ext$major'
11170 version_type=linux # correct to gnu/linux during the next big refactor
11173 hardcode_into_libs=yes
11174 if test ia64 = "$host_cpu"; then
11175 # AIX 5 supports IA64
11176 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11177 shlibpath_var=LD_LIBRARY_PATH
11179 # With GCC up to 2.95.x, collect2 would create an import file
11180 # for dependence libraries. The import file would start with
11181 # the line '#! .'. This would cause the generated library to
11182 # depend on '.', always an invalid library. This was fixed in
11183 # development snapshots of GCC prior to 3.0.
11185 aix4 | aix4.[01] | aix4.[01].*)
11186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11188 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11191 can_build_shared=no
11195 # Using Import Files as archive members, it is possible to support
11196 # filename-based versioning of shared library archives on AIX. While
11197 # this would work for both with and without runtime linking, it will
11198 # prevent static linking of such archives. So we do filename-based
11199 # shared library versioning with .so extension only, which is used
11200 # when both runtime linking and shared linking is enabled.
11201 # Unfortunately, runtime linking may impact performance, so we do
11202 # not want this to be the default eventually. Also, we use the
11203 # versioned .so libs for executables only if there is the -brtl
11204 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11205 # To allow for filename-based versioning support, we need to create
11206 # libNAME.so.V as an archive file, containing:
11207 # *) an Import File, referring to the versioned filename of the
11208 # archive as well as the shared archive member, telling the
11209 # bitwidth (32 or 64) of that shared object, and providing the
11210 # list of exported symbols of that shared object, eventually
11211 # decorated with the 'weak' keyword
11212 # *) the shared object with the F_LOADONLY flag set, to really avoid
11213 # it being seen by the linker.
11214 # At run time we better use the real file rather than another symlink,
11215 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11217 case $with_aix_soname,$aix_use_runtimelinking in
11218 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11219 # soname into executable. Probably we can add versioning support to
11220 # collect2, so additional links can be useful in future.
11221 aix,yes) # traditional libtool
11222 dynamic_linker='AIX unversionable lib.so'
11223 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11224 # instead of lib<name>.a to let people know that these are not
11225 # typical AIX shared libraries.
11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 aix,no) # traditional AIX only
11229 dynamic_linker='AIX lib.a(lib.so.V)'
11230 # We preserve .a as extension for shared libraries through AIX4.2
11231 # and later when we are not doing run time linking.
11232 library_names_spec='$libname$release.a $libname.a'
11233 soname_spec='$libname$release$shared_ext$major'
11235 svr4,*) # full svr4 only
11236 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11237 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11238 # We do not specify a path in Import Files, so LIBPATH fires.
11239 shlibpath_overrides_runpath=yes
11241 *,yes) # both, prefer svr4
11242 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11243 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11244 # unpreferred sharedlib libNAME.a needs extra handling
11245 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11246 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11247 # We do not specify a path in Import Files, so LIBPATH fires.
11248 shlibpath_overrides_runpath=yes
11250 *,no) # both, prefer aix
11251 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11252 library_names_spec='$libname$release.a $libname.a'
11253 soname_spec='$libname$release$shared_ext$major'
11254 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11255 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11256 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11259 shlibpath_var=LIBPATH
11266 # Since July 2007 AmigaOS4 officially supports .so libraries.
11267 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11271 library_names_spec='$libname.ixlibrary $libname.a'
11272 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11273 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11279 library_names_spec='$libname$shared_ext'
11280 dynamic_linker="$host_os ld.so"
11281 shlibpath_var=LIBRARY_PATH
11285 version_type=linux # correct to gnu/linux during the next big refactor
11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288 soname_spec='$libname$release$shared_ext$major'
11289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11293 # the default ld.so.conf also contains /usr/contrib/lib and
11294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11295 # libtool to hard-code these into programs
11298 cygwin* | mingw* | pw32* | cegcc*)
11299 version_type=windows
11304 case $GCC,$cc_basename in
11307 library_names_spec='$libname.dll.a'
11308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11309 postinstall_cmds='base_file=`basename \$file`~
11310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11311 dldir=$destdir/`dirname \$dlpath`~
11312 test -d \$dldir || mkdir -p \$dldir~
11313 $install_prog $dir/$dlname \$dldir/$dlname~
11314 chmod a+x \$dldir/$dlname~
11315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11319 dlpath=$dir/\$dldll~
11321 shlibpath_overrides_runpath=yes
11325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11326 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11328 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11331 # MinGW DLLs use traditional 'lib' prefix
11332 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11335 # pw32 DLLs use 'pw' prefix rather than 'lib'
11336 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11339 dynamic_linker='Win32 ld.exe'
11344 libname_spec='$name'
11345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346 library_names_spec='$libname.dll.lib'
11350 sys_lib_search_path_spec=
11353 for lt_path in $LIB
11356 # Let DOS variable expansion print the short 8.3 style file name.
11357 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11358 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11361 # Convert to MSYS style.
11362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11365 # Convert to unix form, then to dos form, then back to unix form
11366 # but this time dos style (no spaces!) so that the unix form looks
11367 # like /cygdrive/c/PROGRA~1:/cygdr...
11368 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11369 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11370 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11373 sys_lib_search_path_spec=$LIB
11374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11375 # It is most probably a Windows format PATH.
11376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11380 # FIXME: find the short name or the path components, as spaces are
11381 # common. (e.g. "Program Files" -> "PROGRA~1")
11385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386 postinstall_cmds='base_file=`basename \$file`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname'
11391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392 dlpath=$dir/\$dldll~
11394 shlibpath_overrides_runpath=yes
11395 dynamic_linker='Win32 link.exe'
11399 # Assume MSVC wrapper
11400 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11401 dynamic_linker='Win32 ld.exe'
11404 # FIXME: first we should search . and the directory the executable is in
11408 darwin* | rhapsody*)
11409 dynamic_linker="$host_os dyld"
11410 version_type=darwin
11413 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11414 soname_spec='$libname$release$major$shared_ext'
11415 shlibpath_overrides_runpath=yes
11416 shlibpath_var=DYLD_LIBRARY_PATH
11417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11419 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11424 version_type=linux # correct to gnu/linux during the next big refactor
11427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428 soname_spec='$libname$release$shared_ext$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11432 freebsd* | dragonfly*)
11433 # DragonFly does not have aout. When/if they implement a new
11434 # versioning mechanism, adjust this.
11435 if test -x /usr/bin/objformat; then
11436 objformat=`/usr/bin/objformat`
11439 freebsd[23].*) objformat=aout ;;
11440 *) objformat=elf ;;
11443 version_type=freebsd-$objformat
11444 case $version_type in
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec='$libname$release$shared_ext$major'
11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11456 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11461 freebsd3.[01]* | freebsdelf3.[01]*)
11462 shlibpath_overrides_runpath=yes
11463 hardcode_into_libs=yes
11465 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11466 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11467 shlibpath_overrides_runpath=no
11468 hardcode_into_libs=yes
11470 *) # from 4.6 on, and DragonFly
11471 shlibpath_overrides_runpath=yes
11472 hardcode_into_libs=yes
11478 version_type=linux # correct to gnu/linux during the next big refactor
11481 dynamic_linker="$host_os runtime_loader"
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 shlibpath_var=LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11487 hardcode_into_libs=yes
11490 hpux9* | hpux10* | hpux11*)
11491 # Give a soname corresponding to the major version so that dld.sl refuses to
11492 # link against other versions.
11499 hardcode_into_libs=yes
11500 dynamic_linker="$host_os dld.so"
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504 soname_spec='$libname$release$shared_ext$major'
11505 if test 32 = "$HPUX_IA64_MODE"; then
11506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11507 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11510 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11515 hardcode_into_libs=yes
11516 dynamic_linker="$host_os dld.sl"
11517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11520 soname_spec='$libname$release$shared_ext$major'
11521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11526 dynamic_linker="$host_os dld.sl"
11527 shlibpath_var=SHLIB_PATH
11528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11533 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11534 postinstall_cmds='chmod 555 $lib'
11535 # or fails outright, so override atomically:
11536 install_override_mode=555
11540 version_type=linux # correct to gnu/linux during the next big refactor
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=no
11548 hardcode_into_libs=yes
11551 irix5* | irix6* | nonstopux*)
11553 nonstopux*) version_type=nonstopux ;;
11555 if test yes = "$lt_cv_prog_gnu_ld"; then
11556 version_type=linux # correct to gnu/linux during the next big refactor
11563 soname_spec='$libname$release$shared_ext$major'
11564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11566 irix5* | nonstopux*)
11567 libsuff= shlibsuff=
11570 case $LD in # libtool.m4 will add one of these switches to LD
11571 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11572 libsuff= shlibsuff= libmagic=32-bit;;
11573 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11574 libsuff=32 shlibsuff=N32 libmagic=N32;;
11575 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11576 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11577 *) libsuff= shlibsuff= libmagic=never-match;;
11581 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11582 shlibpath_overrides_runpath=no
11583 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11584 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11585 hardcode_into_libs=yes
11588 # No shared lib support for Linux oldld, aout, or coff.
11589 linux*oldld* | linux*aout* | linux*coff*)
11594 version_type=none # Android doesn't support versioned libraries.
11597 library_names_spec='$libname$release$shared_ext'
11598 soname_spec='$libname$release$shared_ext'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11603 # This implies no fast_install, which is unacceptable.
11604 # Some rework will be needed to allow for fast_install
11605 # before this can be enabled.
11606 hardcode_into_libs=yes
11608 dynamic_linker='Android linker'
11609 # Don't embed -rpath directories since the linker doesn't support them.
11610 hardcode_libdir_flag_spec='-L$libdir'
11613 # This must be glibc/ELF.
11614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11615 version_type=linux # correct to gnu/linux during the next big refactor
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=no
11624 # Some binutils ld are patched to set DT_RUNPATH
11625 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11626 $as_echo_n "(cached) " >&6
11628 lt_cv_shlibpath_overrides_runpath=no
11629 save_LDFLAGS=$LDFLAGS
11630 save_libdir=$libdir
11631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11646 lt_cv_shlibpath_overrides_runpath=yes
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LDFLAGS=$save_LDFLAGS
11652 libdir=$save_libdir
11656 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11658 # This implies no fast_install, which is unacceptable.
11659 # Some rework will be needed to allow for fast_install
11660 # before this can be enabled.
11661 hardcode_into_libs=yes
11663 # Ideally, we could use ldconfig to report *all* directores which are
11664 # searched for libraries, however this is still not possible. Aside from not
11665 # being certain /sbin/ldconfig is available, command
11666 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11667 # even though it is searched at run-time. Try to do the best guess by
11668 # appending ld.so.conf contents (and includes) to the search path.
11669 if test -f /etc/ld.so.conf; then
11670 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' ' '`
11671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11674 # We used to test for /lib/ld.so.1 and disable shared libraries on
11675 # powerpc, because MkLinux only supported shared libraries with the
11676 # GNU dynamic linker. Since this was broken with cross compilers,
11677 # most powerpc-linux boxes support dynamic linking these days and
11678 # people can always --disable-shared, the test was removed, and we
11679 # assume the GNU/Linux dynamic linker is in use.
11680 dynamic_linker='GNU/Linux ld.so'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=no
11691 hardcode_into_libs=yes
11692 dynamic_linker='NetBSD ld.elf_so'
11699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11702 dynamic_linker='NetBSD (a.out) ld.so'
11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11705 soname_spec='$libname$release$shared_ext$major'
11706 dynamic_linker='NetBSD ld.elf_so'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 hardcode_into_libs=yes
11714 version_type=linux # correct to gnu/linux during the next big refactor
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes
11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725 soname_spec='$libname$release$shared_ext$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=no
11728 hardcode_into_libs=yes
11729 dynamic_linker='ldqnx.so'
11732 openbsd* | bitrig*)
11734 sys_lib_dlsearch_path_spec=/usr/lib
11736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11748 libname_spec='$name'
11749 version_type=windows
11753 # OS/2 can only load a DLL with a base name of 8 characters or less.
11754 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11755 v=$($ECHO $release$versuffix | tr -d .-);
11756 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11757 $ECHO $n$v`$shared_ext'
11758 library_names_spec='${libname}_dll.$libext'
11759 dynamic_linker='OS/2 ld.exe'
11760 shlibpath_var=BEGINLIBPATH
11761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11763 postinstall_cmds='base_file=`basename \$file`~
11764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11765 dldir=$destdir/`dirname \$dlpath`~
11766 test -d \$dldir || mkdir -p \$dldir~
11767 $install_prog $dir/$dlname \$dldir/$dlname~
11768 chmod a+x \$dldir/$dlname~
11769 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11770 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11773 dlpath=$dir/\$dldll~
11777 osf3* | osf4* | osf5*)
11781 soname_spec='$libname$release$shared_ext$major'
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11793 version_type=linux # correct to gnu/linux during the next big refactor
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797 soname_spec='$libname$release$shared_ext$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11801 # ldd complains unless libraries are executable
11802 postinstall_cmds='chmod +x $lib'
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11808 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 if test yes = "$with_gnu_ld"; then
11818 version_type=linux # correct to gnu/linux during the next big refactor
11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11820 soname_spec='$libname$release$shared_ext$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 case $host_vendor in
11824 shlibpath_overrides_runpath=no
11826 runpath_var=LD_RUN_PATH
11834 shlibpath_overrides_runpath=no
11835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11841 if test -d /usr/nec; then
11842 version_type=linux # correct to gnu/linux during the next big refactor
11843 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11844 soname_spec='$libname$shared_ext.$major'
11845 shlibpath_var=LD_LIBRARY_PATH
11849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11854 soname_spec='$libname$release$shared_ext$major'
11855 shlibpath_var=LD_LIBRARY_PATH
11856 shlibpath_overrides_runpath=yes
11857 hardcode_into_libs=yes
11858 if test yes = "$with_gnu_ld"; then
11859 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11861 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11864 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11868 sys_lib_dlsearch_path_spec='/usr/lib'
11872 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11873 version_type=linux # correct to gnu/linux during the next big refactor
11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=no
11879 hardcode_into_libs=yes
11883 version_type=linux # correct to gnu/linux during the next big refactor
11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11885 soname_spec='$libname$release$shared_ext$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11894 $as_echo "$dynamic_linker" >&6; }
11895 test no = "$dynamic_linker" && can_build_shared=no
11897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11898 if test yes = "$GCC"; then
11899 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11902 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11903 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11906 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11907 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11910 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11911 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11913 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11914 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11916 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11917 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12016 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12018 if test -n "$hardcode_libdir_flag_spec" ||
12019 test -n "$runpath_var" ||
12020 test yes = "$hardcode_automatic"; then
12022 # We can hardcode non-existent directories.
12023 if test no != "$hardcode_direct" &&
12024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12025 # have to relink, otherwise we might link with an installed library
12026 # when we should be linking with a yet-to-be-installed one
12027 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12028 test no != "$hardcode_minus_L"; then
12029 # Linking always hardcodes the temporary library directory.
12030 hardcode_action=relink
12032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12033 hardcode_action=immediate
12036 # We cannot hardcode anything, or else we can only hardcode existing
12038 hardcode_action=unsupported
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12041 $as_echo "$hardcode_action" >&6; }
12043 if test relink = "$hardcode_action" ||
12044 test yes = "$inherit_rpath"; then
12045 # Fast installation is not supported
12046 enable_fast_install=no
12047 elif test yes = "$shlibpath_overrides_runpath" ||
12048 test no = "$enable_shared"; then
12049 # Fast installation is not necessary
12050 enable_fast_install=needless
12058 if test yes != "$enable_dlopen"; then
12059 enable_dlopen=unknown
12060 enable_dlopen_self=unknown
12061 enable_dlopen_self_static=unknown
12068 lt_cv_dlopen=load_add_on
12070 lt_cv_dlopen_self=yes
12073 mingw* | pw32* | cegcc*)
12074 lt_cv_dlopen=LoadLibrary
12079 lt_cv_dlopen=dlopen
12084 # if libdl is installed we need to link against it
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12087 if ${ac_cv_lib_dl_dlopen+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 ac_check_lib_save_LIBS=$LIBS
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12110 if ac_fn_c_try_link "$LINENO"; then :
12111 ac_cv_lib_dl_dlopen=yes
12113 ac_cv_lib_dl_dlopen=no
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12120 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12121 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12122 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12127 lt_cv_dlopen_self=yes
12134 # Don't try to run any link tests for TPF. We know it's impossible
12135 # because TPF is a cross-compiler, and we know how we open DSOs.
12136 lt_cv_dlopen=dlopen
12138 lt_cv_dlopen_self=no
12142 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12143 if test "x$ac_cv_func_shl_load" = xyes; then :
12144 lt_cv_dlopen=shl_load
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12147 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12148 if ${ac_cv_lib_dld_shl_load+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 ac_check_lib_save_LIBS=$LIBS
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12166 return shl_load ();
12171 if ac_fn_c_try_link "$LINENO"; then :
12172 ac_cv_lib_dld_shl_load=yes
12174 ac_cv_lib_dld_shl_load=no
12176 rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12181 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12182 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12183 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12185 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12186 if test "x$ac_cv_func_dlopen" = xyes; then :
12187 lt_cv_dlopen=dlopen
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12191 if ${ac_cv_lib_dl_dlopen+:} false; then :
12192 $as_echo_n "(cached) " >&6
12194 ac_check_lib_save_LIBS=$LIBS
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_dl_dlopen=yes
12217 ac_cv_lib_dl_dlopen=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12224 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12225 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12226 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12230 if ${ac_cv_lib_svld_dlopen+:} false; then :
12231 $as_echo_n "(cached) " >&6
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lsvld $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12238 /* Override any GCC internal prototype to avoid an error.
12239 Use char because int might match the return type of a GCC
12240 builtin and then its argument prototype would still apply. */
12253 if ac_fn_c_try_link "$LINENO"; then :
12254 ac_cv_lib_svld_dlopen=yes
12256 ac_cv_lib_svld_dlopen=no
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12264 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12265 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12269 if ${ac_cv_lib_dld_dld_link+:} false; then :
12270 $as_echo_n "(cached) " >&6
12272 ac_check_lib_save_LIBS=$LIBS
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12287 return dld_link ();
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_dld_dld_link=yes
12295 ac_cv_lib_dld_dld_link=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12302 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12303 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12304 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12325 if test no = "$lt_cv_dlopen"; then
12331 case $lt_cv_dlopen in
12333 save_CPPFLAGS=$CPPFLAGS
12334 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12336 save_LDFLAGS=$LDFLAGS
12337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12340 LIBS="$lt_cv_dlopen_libs $LIBS"
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12343 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12344 if ${lt_cv_dlopen_self+:} false; then :
12345 $as_echo_n "(cached) " >&6
12347 if test yes = "$cross_compiling"; then :
12348 lt_cv_dlopen_self=cross
12350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12351 lt_status=$lt_dlunknown
12352 cat > conftest.$ac_ext <<_LT_EOF
12353 #line $LINENO "configure"
12354 #include "confdefs.h"
12363 # define LT_DLGLOBAL RTLD_GLOBAL
12366 # define LT_DLGLOBAL DL_GLOBAL
12368 # define LT_DLGLOBAL 0
12372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12373 find out it does not work in some platform. */
12374 #ifndef LT_DLLAZY_OR_NOW
12376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12379 # define LT_DLLAZY_OR_NOW DL_LAZY
12382 # define LT_DLLAZY_OR_NOW RTLD_NOW
12385 # define LT_DLLAZY_OR_NOW DL_NOW
12387 # define LT_DLLAZY_OR_NOW 0
12394 /* When -fvisibility=hidden is used, assume the code has been annotated
12395 correspondingly for the symbols needed. */
12396 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12397 int fnord () __attribute__((visibility("default")));
12400 int fnord () { return 42; }
12403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12404 int status = $lt_dlunknown;
12408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12412 else puts (dlerror ());
12414 /* dlclose (self); */
12422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12423 (eval $ac_link) 2>&5
12425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12427 (./conftest; exit; ) >&5 2>/dev/null
12429 case x$lt_status in
12430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12435 # compilation failed
12436 lt_cv_dlopen_self=no
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12444 $as_echo "$lt_cv_dlopen_self" >&6; }
12446 if test yes = "$lt_cv_dlopen_self"; then
12447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12449 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12450 if ${lt_cv_dlopen_self_static+:} false; then :
12451 $as_echo_n "(cached) " >&6
12453 if test yes = "$cross_compiling"; then :
12454 lt_cv_dlopen_self_static=cross
12456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12457 lt_status=$lt_dlunknown
12458 cat > conftest.$ac_ext <<_LT_EOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12469 # define LT_DLGLOBAL RTLD_GLOBAL
12472 # define LT_DLGLOBAL DL_GLOBAL
12474 # define LT_DLGLOBAL 0
12478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12479 find out it does not work in some platform. */
12480 #ifndef LT_DLLAZY_OR_NOW
12482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12485 # define LT_DLLAZY_OR_NOW DL_LAZY
12488 # define LT_DLLAZY_OR_NOW RTLD_NOW
12491 # define LT_DLLAZY_OR_NOW DL_NOW
12493 # define LT_DLLAZY_OR_NOW 0
12500 /* When -fvisibility=hidden is used, assume the code has been annotated
12501 correspondingly for the symbols needed. */
12502 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12503 int fnord () __attribute__((visibility("default")));
12506 int fnord () { return 42; }
12509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12510 int status = $lt_dlunknown;
12514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12518 else puts (dlerror ());
12520 /* dlclose (self); */
12528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12529 (eval $ac_link) 2>&5
12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12532 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12533 (./conftest; exit; ) >&5 2>/dev/null
12535 case x$lt_status in
12536 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12537 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12538 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12541 # compilation failed
12542 lt_cv_dlopen_self_static=no
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12550 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12553 CPPFLAGS=$save_CPPFLAGS
12554 LDFLAGS=$save_LDFLAGS
12559 case $lt_cv_dlopen_self in
12560 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12561 *) enable_dlopen_self=unknown ;;
12564 case $lt_cv_dlopen_self_static in
12565 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12566 *) enable_dlopen_self_static=unknown ;;
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12589 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12590 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12591 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12592 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12596 # FIXME - insert some real tests, host_os isn't really good enough
12599 if test -n "$STRIP"; then
12600 striplib="$STRIP -x"
12601 old_striplib="$STRIP -S"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12627 # Report what library types will actually be built
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12629 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12631 $as_echo "$can_build_shared" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12634 $as_echo_n "checking whether to build shared libraries... " >&6; }
12635 test no = "$can_build_shared" && enable_shared=no
12637 # On AIX, shared libraries and static libraries use the same namespace, and
12638 # are all built from PIC.
12641 test yes = "$enable_shared" && enable_static=no
12642 if test -n "$RANLIB"; then
12643 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12644 postinstall_cmds='$RANLIB $lib'
12649 if test ia64 != "$host_cpu"; then
12650 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12651 yes,aix,yes) ;; # shared object as lib.so file only
12652 yes,svr4,*) ;; # shared object as lib.so archive member only
12653 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12659 $as_echo "$enable_shared" >&6; }
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12662 $as_echo_n "checking whether to build static libraries... " >&6; }
12663 # Make sure either enable_shared or enable_static is yes.
12664 test yes = "$enable_shared" || enable_static=yes
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12666 $as_echo "$enable_static" >&6; }
12673 ac_cpp='$CPP $CPPFLAGS'
12674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680 if test -n "$CXX" && ( test no != "$CXX" &&
12681 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12682 (test g++ != "$CXX"))); then
12684 ac_cpp='$CXXCPP $CPPFLAGS'
12685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12689 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12690 if test -z "$CXXCPP"; then
12691 if ${ac_cv_prog_CXXCPP+:} false; then :
12692 $as_echo_n "(cached) " >&6
12694 # Double quotes because CXXCPP needs to be expanded
12695 for CXXCPP in "$CXX -E" "/lib/cpp"
12697 ac_preproc_ok=false
12698 for ac_cxx_preproc_warn_flag in '' yes
12700 # Use a header file that comes with gcc, so configuring glibc
12701 # with a fresh cross-compiler works.
12702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12703 # <limits.h> exists even on freestanding compilers.
12704 # On the NeXT, cc -E runs the code through the compiler's parser,
12705 # not just through cpp. "Syntax error" is here to catch this case.
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 # include <limits.h>
12711 # include <assert.h>
12715 if ac_fn_cxx_try_cpp "$LINENO"; then :
12718 # Broken: fails on valid input.
12721 rm -f conftest.err conftest.i conftest.$ac_ext
12723 # OK, works on sane cases. Now check whether nonexistent headers
12724 # can be detected and how.
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include <ac_nonexistent.h>
12729 if ac_fn_cxx_try_cpp "$LINENO"; then :
12730 # Broken: success on invalid input.
12733 # Passes both tests.
12737 rm -f conftest.err conftest.i conftest.$ac_ext
12740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12741 rm -f conftest.i conftest.err conftest.$ac_ext
12742 if $ac_preproc_ok; then :
12747 ac_cv_prog_CXXCPP=$CXXCPP
12750 CXXCPP=$ac_cv_prog_CXXCPP
12752 ac_cv_prog_CXXCPP=$CXXCPP
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12755 $as_echo "$CXXCPP" >&6; }
12756 ac_preproc_ok=false
12757 for ac_cxx_preproc_warn_flag in '' yes
12759 # Use a header file that comes with gcc, so configuring glibc
12760 # with a fresh cross-compiler works.
12761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12762 # <limits.h> exists even on freestanding compilers.
12763 # On the NeXT, cc -E runs the code through the compiler's parser,
12764 # not just through cpp. "Syntax error" is here to catch this case.
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12768 # include <limits.h>
12770 # include <assert.h>
12774 if ac_fn_cxx_try_cpp "$LINENO"; then :
12777 # Broken: fails on valid input.
12780 rm -f conftest.err conftest.i conftest.$ac_ext
12782 # OK, works on sane cases. Now check whether nonexistent headers
12783 # can be detected and how.
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <ac_nonexistent.h>
12788 if ac_fn_cxx_try_cpp "$LINENO"; then :
12789 # Broken: success on invalid input.
12792 # Passes both tests.
12796 rm -f conftest.err conftest.i conftest.$ac_ext
12799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12800 rm -f conftest.i conftest.err conftest.$ac_ext
12801 if $ac_preproc_ok; then :
12804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12807 See \`config.log' for more details" "$LINENO" 5; }
12811 ac_cpp='$CPP $CPPFLAGS'
12812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817 _lt_caught_CXX_error=yes
12821 ac_cpp='$CXXCPP $CPPFLAGS'
12822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12826 archive_cmds_need_lc_CXX=no
12827 allow_undefined_flag_CXX=
12828 always_export_symbols_CXX=no
12829 archive_expsym_cmds_CXX=
12830 compiler_needs_object_CXX=no
12831 export_dynamic_flag_spec_CXX=
12832 hardcode_direct_CXX=no
12833 hardcode_direct_absolute_CXX=no
12834 hardcode_libdir_flag_spec_CXX=
12835 hardcode_libdir_separator_CXX=
12836 hardcode_minus_L_CXX=no
12837 hardcode_shlibpath_var_CXX=unsupported
12838 hardcode_automatic_CXX=no
12839 inherit_rpath_CXX=no
12841 module_expsym_cmds_CXX=
12842 link_all_deplibs_CXX=unknown
12843 old_archive_cmds_CXX=$old_archive_cmds
12844 reload_flag_CXX=$reload_flag
12845 reload_cmds_CXX=$reload_cmds
12846 no_undefined_flag_CXX=
12847 whole_archive_flag_spec_CXX=
12848 enable_shared_with_static_runtimes_CXX=no
12850 # Source file extension for C++ test sources.
12853 # Object file extension for compiled C++ test sources.
12857 # No sense in running all these tests if we already determined that
12858 # the CXX compiler isn't working. Some variables (like enable_shared)
12859 # are currently assumed to apply to all compilers on this platform,
12860 # and will be corrupted by setting them based on a non-working compiler.
12861 if test yes != "$_lt_caught_CXX_error"; then
12862 # Code to be used in simple compile tests
12863 lt_simple_compile_test_code="int some_variable = 0;"
12865 # Code to be used in simple link tests
12866 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12875 # If no C compiler was specified, use CC.
12878 # If no C compiler flags were specified, use CFLAGS.
12879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12881 # Allow CC to be a program name with arguments.
12885 # save warnings/boilerplate of simple test code
12886 ac_outfile=conftest.$ac_objext
12887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12889 _lt_compiler_boilerplate=`cat conftest.err`
12892 ac_outfile=conftest.$ac_objext
12893 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12894 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12895 _lt_linker_boilerplate=`cat conftest.err`
12899 # Allow CC to be a program name with arguments.
12901 lt_save_CFLAGS=$CFLAGS
12905 lt_save_with_gnu_ld=$with_gnu_ld
12906 lt_save_path_LD=$lt_cv_path_LD
12907 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12908 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12910 $as_unset lt_cv_prog_gnu_ld
12912 if test -n "${lt_cv_path_LDCXX+set}"; then
12913 lt_cv_path_LD=$lt_cv_path_LDCXX
12915 $as_unset lt_cv_path_LD
12917 test -z "${LDCXX+set}" || LD=$LDCXX
12922 func_cc_basename $compiler
12923 cc_basename=$func_cc_basename_result
12926 if test -n "$compiler"; then
12927 # We don't want -fno-exception when compiling C++ code, so set the
12928 # no_builtin_flag separately
12929 if test yes = "$GXX"; then
12930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12932 lt_prog_compiler_no_builtin_flag_CXX=
12935 if test yes = "$GXX"; then
12936 # Set up default GNU C++ configuration
12940 # Check whether --with-gnu-ld was given.
12941 if test "${with_gnu_ld+set}" = set; then :
12942 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12948 if test yes = "$GCC"; then
12949 # Check if gcc -print-prog-name=ld gives a path.
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12951 $as_echo_n "checking for ld used by $CC... " >&6; }
12954 # gcc leaves a trailing carriage return, which upsets mingw
12955 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12957 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12960 # Accept absolute paths.
12962 re_direlt='/[^/][^/]*/\.\./'
12963 # Canonicalize the pathname of ld
12964 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12965 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12966 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12968 test -z "$LD" && LD=$ac_prog
12971 # If it fails, then pretend we aren't using GCC.
12975 # If it is relative, then search for the first ld in PATH.
12976 with_gnu_ld=unknown
12979 elif test yes = "$with_gnu_ld"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12981 $as_echo_n "checking for GNU ld... " >&6; }
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12984 $as_echo_n "checking for non-GNU ld... " >&6; }
12986 if ${lt_cv_path_LD+:} false; then :
12987 $as_echo_n "(cached) " >&6
12989 if test -z "$LD"; then
12990 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12991 for ac_dir in $PATH; do
12993 test -z "$ac_dir" && ac_dir=.
12994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12995 lt_cv_path_LD=$ac_dir/$ac_prog
12996 # Check to see if the program is GNU ld. I'd rather use --version,
12997 # but apparently some variants of GNU ld only accept -v.
12998 # Break only if it was the GNU/non-GNU ld that we prefer.
12999 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13000 *GNU* | *'with BFD'*)
13001 test no != "$with_gnu_ld" && break
13004 test yes != "$with_gnu_ld" && break
13011 lt_cv_path_LD=$LD # Let the user override the test with a path.
13016 if test -n "$LD"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13018 $as_echo "$LD" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13023 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13025 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13026 if ${lt_cv_prog_gnu_ld+:} false; then :
13027 $as_echo_n "(cached) " >&6
13029 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13030 case `$LD -v 2>&1 </dev/null` in
13031 *GNU* | *'with BFD'*)
13032 lt_cv_prog_gnu_ld=yes
13035 lt_cv_prog_gnu_ld=no
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13040 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13041 with_gnu_ld=$lt_cv_prog_gnu_ld
13049 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13050 # archiving commands below assume that GNU ld is being used.
13051 if test yes = "$with_gnu_ld"; then
13052 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13053 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'
13055 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13056 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13058 # If archive_cmds runs LD, not CC, wlarc should be empty
13059 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13060 # investigate it a little bit more. (MM)
13063 # ancient GNU ld didn't support --whole-archive et. al.
13064 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13065 $GREP 'no-whole-archive' > /dev/null; then
13066 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13068 whole_archive_flag_spec_CXX=
13074 # A generic and very simple default shared library creation
13075 # command for GNU C++ for the case where it uses the native
13076 # linker, instead of GNU ld. If possible, this setting should
13077 # overridden to take advantage of the native linker features on
13078 # the platform it is being used on.
13079 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13082 # Commands to make compiler produce verbose output that lists
13083 # what "hidden" libraries, object files and flags are used when
13084 # linking a shared library.
13085 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13093 # PORTME: fill in a description of your system's C++ link characteristics
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13099 # FIXME: insert proper C++ library support
13103 if test ia64 = "$host_cpu"; then
13104 # On IA64, the linker does run time linking by default, so we don't
13105 # have to do anything special.
13106 aix_use_runtimelinking=no
13107 exp_sym_flag='-Bexport'
13110 aix_use_runtimelinking=no
13112 # Test if we are trying to use run time linking or normal
13113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13114 # have runtime linking enabled, and use it for executables.
13115 # For shared libraries, we enable/disable runtime linking
13116 # depending on the kind of the shared library created -
13117 # when "with_aix_soname,aix_use_runtimelinking" is:
13118 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13119 # "aix,yes" lib.so shared, rtl:yes, for executables
13120 # lib.a static archive
13121 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13122 # lib.a(lib.so.V) shared, rtl:no, for executables
13123 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13124 # lib.a(lib.so.V) shared, rtl:no
13125 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13126 # lib.a static archive
13127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13128 for ld_flag in $LDFLAGS; do
13131 aix_use_runtimelinking=yes
13136 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13137 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13138 # so we don't have lib.a shared libs to link our executables.
13139 # We have to force runtime linking in this case.
13140 aix_use_runtimelinking=yes
13141 LDFLAGS="$LDFLAGS -Wl,-brtl"
13146 exp_sym_flag='-bexport'
13147 no_entry_flag='-bnoentry'
13150 # When large executables or shared objects are built, AIX ld can
13151 # have problems creating the table of contents. If linking a library
13152 # or program results in "error TOC overflow" add -mminimal-toc to
13153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13156 archive_cmds_CXX=''
13157 hardcode_direct_CXX=yes
13158 hardcode_direct_absolute_CXX=yes
13159 hardcode_libdir_separator_CXX=':'
13160 link_all_deplibs_CXX=yes
13161 file_list_spec_CXX='$wl-f,'
13162 case $with_aix_soname,$aix_use_runtimelinking in
13163 aix,*) ;; # no import file
13164 svr4,* | *,yes) # use import file
13165 # The Import File defines what to hardcode.
13166 hardcode_direct_CXX=no
13167 hardcode_direct_absolute_CXX=no
13171 if test yes = "$GXX"; then
13172 case $host_os in aix4.[012]|aix4.[012].*)
13173 # We only want to do this on AIX 4.2 and lower, the check
13174 # below for broken collect2 doesn't work under 4.3+
13175 collect2name=`$CC -print-prog-name=collect2`
13176 if test -f "$collect2name" &&
13177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13179 # We have reworked collect2
13182 # We have old collect2
13183 hardcode_direct_CXX=unsupported
13184 # It fails to find uninstalled libraries when the uninstalled
13185 # path is not listed in the libpath. Setting hardcode_minus_L
13186 # to unsupported forces relinking
13187 hardcode_minus_L_CXX=yes
13188 hardcode_libdir_flag_spec_CXX='-L$libdir'
13189 hardcode_libdir_separator_CXX=
13192 shared_flag='-shared'
13193 if test yes = "$aix_use_runtimelinking"; then
13194 shared_flag=$shared_flag' $wl-G'
13196 # Need to ensure runtime linking is disabled for the traditional
13197 # shared library, or the linker may eventually find shared libraries
13198 # /with/ Import File - we do not want to mix them.
13199 shared_flag_aix='-shared'
13200 shared_flag_svr4='-shared $wl-G'
13203 if test ia64 = "$host_cpu"; then
13204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13205 # chokes on -Wl,-G. The following line is correct:
13208 if test yes = "$aix_use_runtimelinking"; then
13209 shared_flag='$wl-G'
13211 shared_flag='$wl-bM:SRE'
13213 shared_flag_aix='$wl-bM:SRE'
13214 shared_flag_svr4='$wl-G'
13218 export_dynamic_flag_spec_CXX='$wl-bexpall'
13219 # It seems that -bexpall does not export symbols beginning with
13220 # underscore (_), so it is better to generate a list of symbols to
13222 always_export_symbols_CXX=yes
13223 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13224 # Warning - without using the other runtime loading flags (-brtl),
13225 # -berok will link without error, but may produce a broken library.
13226 # The "-G" linker flag allows undefined symbols.
13227 no_undefined_flag_CXX='-bernotok'
13228 # Determine the default libpath from the value encoded in an empty
13230 if test set = "${lt_cv_aix_libpath+set}"; then
13231 aix_libpath=$lt_cv_aix_libpath
13233 if ${lt_cv_aix_libpath__CXX+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13247 if ac_fn_cxx_try_link "$LINENO"; then :
13249 lt_aix_libpath_sed='
13250 /Import File Strings/,/^$/ {
13252 s/^0 *\([^ ]*\) *$/\1/
13256 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13257 # Check for a 64-bit object if we didn't find anything.
13258 if test -z "$lt_cv_aix_libpath__CXX"; then
13259 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 if test -z "$lt_cv_aix_libpath__CXX"; then
13265 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13270 aix_libpath=$lt_cv_aix_libpath__CXX
13273 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13275 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13277 if test ia64 = "$host_cpu"; then
13278 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13279 allow_undefined_flag_CXX="-z nodefs"
13280 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"
13282 # Determine the default libpath from the value encoded in an
13283 # empty executable.
13284 if test set = "${lt_cv_aix_libpath+set}"; then
13285 aix_libpath=$lt_cv_aix_libpath
13287 if ${lt_cv_aix_libpath__CXX+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13301 if ac_fn_cxx_try_link "$LINENO"; then :
13303 lt_aix_libpath_sed='
13304 /Import File Strings/,/^$/ {
13306 s/^0 *\([^ ]*\) *$/\1/
13310 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13311 # Check for a 64-bit object if we didn't find anything.
13312 if test -z "$lt_cv_aix_libpath__CXX"; then
13313 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 if test -z "$lt_cv_aix_libpath__CXX"; then
13319 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13324 aix_libpath=$lt_cv_aix_libpath__CXX
13327 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13328 # Warning - without using the other run time loading flags,
13329 # -berok will link without error, but may produce a broken library.
13330 no_undefined_flag_CXX=' $wl-bernotok'
13331 allow_undefined_flag_CXX=' $wl-berok'
13332 if test yes = "$with_gnu_ld"; then
13333 # We only use this code for GNU lds that support --whole-archive.
13334 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13336 # Exported symbols can be pulled into shared objects from archives
13337 whole_archive_flag_spec_CXX='$convenience'
13339 archive_cmds_need_lc_CXX=yes
13340 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13341 # -brtl affects multiple linker settings, -berok does not and is overridden later
13342 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13343 if test svr4 != "$with_aix_soname"; then
13344 # This is similar to how AIX traditionally builds its shared
13345 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13346 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13348 if test aix != "$with_aix_soname"; then
13349 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13351 # used by -dlpreopen to get the symbols
13352 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13354 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13361 allow_undefined_flag_CXX=unsupported
13362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13363 # support --undefined. This deserves some investigation. FIXME
13364 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13371 case $cc_basename in
13373 # FIXME: insert proper C++ library support
13379 cygwin* | mingw* | pw32* | cegcc*)
13380 case $GXX,$cc_basename in
13383 # hardcode_libdir_flag_spec is actually meaningless, as there is
13384 # no search path for DLLs.
13385 hardcode_libdir_flag_spec_CXX=' '
13386 allow_undefined_flag_CXX=unsupported
13387 always_export_symbols_CXX=yes
13388 file_list_spec_CXX='@'
13389 # Tell ltmain to make .lib files, not .a files.
13391 # Tell ltmain to make .dll files, not .so files.
13393 # FIXME: Setting linknames here is a bad hack.
13394 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13395 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13396 cp "$export_symbols" "$output_objdir/$soname.def";
13397 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13399 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13401 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13403 # The linker will not automatically build a static lib if we build a DLL.
13404 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13405 enable_shared_with_static_runtimes_CXX=yes
13407 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13408 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13409 lt_tool_outputfile="@TOOL_OUTPUT@"~
13410 case $lt_outputfile in
13413 lt_outputfile=$lt_outputfile.exe
13414 lt_tool_outputfile=$lt_tool_outputfile.exe
13417 func_to_tool_file "$lt_outputfile"~
13418 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13419 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13420 $RM "$lt_outputfile.manifest";
13425 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13426 # as there is no search path for DLLs.
13427 hardcode_libdir_flag_spec_CXX='-L$libdir'
13428 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13429 allow_undefined_flag_CXX=unsupported
13430 always_export_symbols_CXX=no
13431 enable_shared_with_static_runtimes_CXX=yes
13433 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13434 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'
13435 # If the export-symbols file already is a .def file, use it as
13436 # is; otherwise, prepend EXPORTS...
13437 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13438 cp $export_symbols $output_objdir/$soname.def;
13440 echo EXPORTS > $output_objdir/$soname.def;
13441 cat $export_symbols >> $output_objdir/$soname.def;
13443 $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'
13450 darwin* | rhapsody*)
13453 archive_cmds_need_lc_CXX=no
13454 hardcode_direct_CXX=no
13455 hardcode_automatic_CXX=yes
13456 hardcode_shlibpath_var_CXX=unsupported
13457 if test yes = "$lt_cv_ld_force_load"; then
13458 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\"`'
13461 whole_archive_flag_spec_CXX=''
13463 link_all_deplibs_CXX=yes
13464 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13465 case $cc_basename in
13466 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13467 *) _lt_dar_can_shared=$GCC ;;
13469 if test yes = "$_lt_dar_can_shared"; then
13470 output_verbose_link_cmd=func_echo_all
13471 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"
13472 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13473 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"
13474 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"
13475 if test yes != "$lt_cv_apple_cc_single_mod"; then
13476 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"
13477 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"
13487 hardcode_libdir_flag_spec_CXX='-L$libdir'
13488 hardcode_minus_L_CXX=yes
13489 allow_undefined_flag_CXX=unsupported
13491 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13492 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13493 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13494 $ECHO EXPORTS >> $output_objdir/$libname.def~
13495 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13496 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13497 emximp -o $lib $output_objdir/$libname.def'
13498 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13499 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13500 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13501 $ECHO EXPORTS >> $output_objdir/$libname.def~
13502 prefix_cmds="$SED"~
13503 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13504 prefix_cmds="$prefix_cmds -e 1d";
13506 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13507 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13509 emximp -o $lib $output_objdir/$libname.def'
13510 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13511 enable_shared_with_static_runtimes_CXX=yes
13515 case $cc_basename in
13517 # FIXME: insert proper C++ library support
13521 # Green Hills C++ Compiler
13522 # FIXME: insert proper C++ library support
13526 # FIXME: insert proper C++ library support
13533 # C++ shared libraries reported to be fairly broken before
13539 archive_cmds_need_lc_CXX=no
13542 freebsd* | dragonfly*)
13543 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13549 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13550 link_all_deplibs_CXX=yes
13554 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13555 hardcode_libdir_separator_CXX=:
13556 export_dynamic_flag_spec_CXX='$wl-E'
13557 hardcode_direct_CXX=yes
13558 hardcode_minus_L_CXX=yes # Not in the search PATH,
13559 # but as the default
13560 # location of the library.
13562 case $cc_basename in
13564 # FIXME: insert proper C++ library support
13568 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13569 # Commands to make compiler produce verbose output that lists
13570 # what "hidden" libraries, object files and flags are used when
13571 # linking a shared library.
13573 # There doesn't appear to be a way to prevent this compiler from
13574 # explicitly linking system object files so we need to strip them
13575 # from the output so that they don't get included in the library
13577 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"'
13580 if test yes = "$GXX"; then
13581 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13583 # FIXME: insert proper C++ library support
13591 if test no = "$with_gnu_ld"; then
13592 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13593 hardcode_libdir_separator_CXX=:
13599 export_dynamic_flag_spec_CXX='$wl-E'
13605 hardcode_direct_CXX=no
13606 hardcode_shlibpath_var_CXX=no
13609 hardcode_direct_CXX=yes
13610 hardcode_direct_absolute_CXX=yes
13611 hardcode_minus_L_CXX=yes # Not in the search PATH,
13612 # but as the default
13613 # location of the library.
13617 case $cc_basename in
13619 # FIXME: insert proper C++ library support
13625 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13628 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13634 # Commands to make compiler produce verbose output that lists
13635 # what "hidden" libraries, object files and flags are used when
13636 # linking a shared library.
13638 # There doesn't appear to be a way to prevent this compiler from
13639 # explicitly linking system object files so we need to strip them
13640 # from the output so that they don't get included in the library
13642 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"'
13645 if test yes = "$GXX"; then
13646 if test no = "$with_gnu_ld"; then
13649 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13655 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'
13660 # FIXME: insert proper C++ library support
13668 hardcode_direct_CXX=no
13669 hardcode_shlibpath_var_CXX=no
13670 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13671 export_dynamic_flag_spec_CXX='$wl-E'
13672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13673 # Instead, shared libraries are loaded at an image base (0x10000000 by
13674 # default) and relocated if they conflict, which is a slow very memory
13675 # consuming and fragmenting process. To avoid this, we pick a random,
13676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13678 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'
13679 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'
13682 case $cc_basename in
13685 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'
13687 # Archives containing C++ object files must be created using
13688 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13689 # necessary to make sure instantiated templates are included
13691 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13694 if test yes = "$GXX"; then
13695 if test no = "$with_gnu_ld"; then
13696 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'
13698 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'
13701 link_all_deplibs_CXX=yes
13704 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13705 hardcode_libdir_separator_CXX=:
13706 inherit_rpath_CXX=yes
13709 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13710 case $cc_basename in
13712 # Kuck and Associates, Inc. (KAI) C++ Compiler
13714 # KCC will only create a shared library if the output file
13715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13716 # to its proper name (with version) after linking.
13717 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'
13718 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'
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13723 # There doesn't appear to be a way to prevent this compiler from
13724 # explicitly linking system object files so we need to strip them
13725 # from the output so that they don't get included in the library
13727 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"'
13729 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13730 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13732 # Archives containing C++ object files must be created using
13733 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13734 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13739 # version 8.0 and above of icpc choke on multiply defined symbols
13740 # if we add $predep_objects and $postdep_objects, however 7.1 and
13741 # earlier do not add the objects themselves.
13742 case `$CC -V 2>&1` in
13744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13745 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'
13747 *) # Version 8.0 or newer
13750 ia64*) tmp_idyn=' -i_dynamic';;
13752 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13753 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'
13756 archive_cmds_need_lc_CXX=no
13757 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13758 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13759 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13762 # Portland Group C++ compiler
13764 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13765 prelink_cmds_CXX='tpldir=Template.dir~
13767 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13768 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13769 old_archive_cmds_CXX='tpldir=Template.dir~
13771 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13772 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13774 archive_cmds_CXX='tpldir=Template.dir~
13776 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13777 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13778 archive_expsym_cmds_CXX='tpldir=Template.dir~
13780 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13781 $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'
13783 *) # Version 6 and above use weak symbols
13784 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13785 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'
13789 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13790 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13791 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'
13795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13796 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'
13798 runpath_var=LD_RUN_PATH
13799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13800 hardcode_libdir_separator_CXX=:
13802 # Commands to make compiler produce verbose output that lists
13803 # what "hidden" libraries, object files and flags are used when
13804 # linking a shared library.
13806 # There doesn't appear to be a way to prevent this compiler from
13807 # explicitly linking system object files so we need to strip them
13808 # from the output so that they don't get included in the library
13810 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'
13812 xl* | mpixl* | bgxl*)
13813 # IBM XL 8.0 on PPC, with GNU ld
13814 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13815 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13816 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13817 if test yes = "$supports_anon_versioning"; then
13818 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13820 echo "local: *; };" >> $output_objdir/$libname.ver~
13821 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13825 case `$CC -V 2>&1 | sed 5q` in
13828 no_undefined_flag_CXX=' -zdefs'
13829 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13830 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'
13831 hardcode_libdir_flag_spec_CXX='-R$libdir'
13832 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'
13833 compiler_needs_object_CXX=yes
13835 # Not sure whether something based on
13836 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13838 output_verbose_link_cmd='func_echo_all'
13840 # Archives containing C++ object files must be created using
13841 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13842 # necessary to make sure instantiated templates are included
13844 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13852 # FIXME: insert proper C++ library support
13857 # FIXME: insert proper C++ library support
13862 case $cc_basename in
13864 # FIXME: insert proper C++ library support
13868 # FIXME: insert proper C++ library support
13875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13876 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13878 hardcode_libdir_flag_spec_CXX='-R$libdir'
13879 hardcode_direct_CXX=yes
13880 hardcode_shlibpath_var_CXX=no
13882 # Workaround some broken pre-1.5 toolchains
13883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13890 openbsd* | bitrig*)
13891 if test -f /usr/libexec/ld.so; then
13892 hardcode_direct_CXX=yes
13893 hardcode_shlibpath_var_CXX=no
13894 hardcode_direct_absolute_CXX=yes
13895 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13896 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13898 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13899 export_dynamic_flag_spec_CXX='$wl-E'
13900 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13902 output_verbose_link_cmd=func_echo_all
13908 osf3* | osf4* | osf5*)
13909 case $cc_basename in
13911 # Kuck and Associates, Inc. (KAI) C++ Compiler
13913 # KCC will only create a shared library if the output file
13914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13915 # to its proper name (with version) after linking.
13916 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'
13918 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13919 hardcode_libdir_separator_CXX=:
13921 # Archives containing C++ object files must be created using
13922 # the KAI C++ compiler.
13924 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13925 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13929 # Rational C++ 2.4.1
13930 # FIXME: insert proper C++ library support
13936 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13937 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'
13938 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13941 allow_undefined_flag_CXX=' -expect_unresolved \*'
13942 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'
13943 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13944 echo "-hidden">> $lib.exp~
13945 $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~
13947 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13951 hardcode_libdir_separator_CXX=:
13953 # Commands to make compiler produce verbose output that lists
13954 # what "hidden" libraries, object files and flags are used when
13955 # linking a shared library.
13957 # There doesn't appear to be a way to prevent this compiler from
13958 # explicitly linking system object files so we need to strip them
13959 # from the output so that they don't get included in the library
13961 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"'
13964 if test yes,no = "$GXX,$with_gnu_ld"; then
13965 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13968 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'
13971 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'
13975 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13976 hardcode_libdir_separator_CXX=:
13978 # Commands to make compiler produce verbose output that lists
13979 # what "hidden" libraries, object files and flags are used when
13980 # linking a shared library.
13981 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
13984 # FIXME: insert proper C++ library support
13992 # FIXME: insert proper C++ library support
13997 case $cc_basename in
14000 # FIXME: insert proper C++ library support
14005 # FIXME: insert proper C++ library support
14009 # FIXME: insert proper C++ library support
14016 case $cc_basename in
14018 # Sun C++ 4.2, 5.x and Centerline C++
14019 archive_cmds_need_lc_CXX=yes
14020 no_undefined_flag_CXX=' -zdefs'
14021 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14022 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14023 $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'
14025 hardcode_libdir_flag_spec_CXX='-R$libdir'
14026 hardcode_shlibpath_var_CXX=no
14028 solaris2.[0-5] | solaris2.[0-5].*) ;;
14030 # The compiler driver will combine and reorder linker options,
14031 # but understands '-z linker_flag'.
14032 # Supported since Solaris 2.6 (maybe 2.5.1?)
14033 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14036 link_all_deplibs_CXX=yes
14038 output_verbose_link_cmd='func_echo_all'
14040 # Archives containing C++ object files must be created using
14041 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14042 # necessary to make sure instantiated templates are included
14044 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14047 # Green Hills C++ Compiler
14048 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14050 # The C++ compiler must be used to create the archive.
14051 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14054 # GNU C++ compiler with Solaris linker
14055 if test yes,no = "$GXX,$with_gnu_ld"; then
14056 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14057 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14058 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14059 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14060 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14062 # Commands to make compiler produce verbose output that lists
14063 # what "hidden" libraries, object files and flags are used when
14064 # linking a shared library.
14065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14067 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14069 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14070 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14071 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14073 # Commands to make compiler produce verbose output that lists
14074 # what "hidden" libraries, object files and flags are used when
14075 # linking a shared library.
14076 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14079 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14081 solaris2.[0-5] | solaris2.[0-5].*) ;;
14083 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14092 no_undefined_flag_CXX='$wl-z,text'
14093 archive_cmds_need_lc_CXX=no
14094 hardcode_shlibpath_var_CXX=no
14095 runpath_var='LD_RUN_PATH'
14097 case $cc_basename in
14099 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14100 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14109 sysv5* | sco3.2v5* | sco5v6*)
14110 # Note: We CANNOT use -z defs as we might desire, because we do not
14111 # link with -lc, and that would cause any symbols used from libc to
14112 # always be unresolved, which means just about no library would
14113 # ever link correctly. If we're not using GNU ld we use -z text
14114 # though, which does catch some bad symbols but isn't as heavy-handed
14116 no_undefined_flag_CXX='$wl-z,text'
14117 allow_undefined_flag_CXX='$wl-z,nodefs'
14118 archive_cmds_need_lc_CXX=no
14119 hardcode_shlibpath_var_CXX=no
14120 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14121 hardcode_libdir_separator_CXX=':'
14122 link_all_deplibs_CXX=yes
14123 export_dynamic_flag_spec_CXX='$wl-Bexport'
14124 runpath_var='LD_RUN_PATH'
14126 case $cc_basename in
14128 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14129 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14131 '"$old_archive_cmds_CXX"
14132 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14133 '"$reload_cmds_CXX"
14136 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14143 case $cc_basename in
14145 # NonStop-UX NCC 3.20
14146 # FIXME: insert proper C++ library support
14150 # FIXME: insert proper C++ library support
14157 # FIXME: insert proper C++ library support
14162 # FIXME: insert proper C++ library support
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14168 $as_echo "$ld_shlibs_CXX" >&6; }
14169 test no = "$ld_shlibs_CXX" && can_build_shared=no
14175 ## There is no encapsulation within the following macros, do not change
14176 ## the running order or otherwise move them around unless you know exactly
14177 ## what you are doing...
14178 # Dependencies to place before and after the object being linked:
14179 predep_objects_CXX=
14180 postdep_objects_CXX=
14183 compiler_lib_search_path_CXX=
14185 cat > conftest.$ac_ext <<_LT_EOF
14189 Foo (void) { a = 0; }
14196 _lt_libdeps_save_CFLAGS=$CFLAGS
14197 case "$CC $CFLAGS " in #(
14198 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14199 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14200 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14204 (eval $ac_compile) 2>&5
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207 test $ac_status = 0; }; then
14208 # Parse the compiler output and extract the necessary
14209 # objects, libraries and library flags.
14211 # Sentinel used to keep track of whether or not we are before
14212 # the conftest object file.
14213 pre_test_object_deps_done=no
14215 for p in `eval "$output_verbose_link_cmd"`; do
14219 # Some compilers place space between "-{L,R}" and the path.
14220 # Remove the space.
14221 if test x-L = "$p" ||
14222 test x-R = "$p"; then
14227 # Expand the sysroot to ease extracting the directories later.
14228 if test -z "$prev"; then
14230 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14231 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14232 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14236 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14238 if test no = "$pre_test_object_deps_done"; then
14241 # Internal compiler library paths should come after those
14242 # provided the user. The postdeps already come after the
14243 # user supplied libs so there is no need to process them.
14244 if test -z "$compiler_lib_search_path_CXX"; then
14245 compiler_lib_search_path_CXX=$prev$p
14247 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14250 # The "-l" case would never come before the object being
14251 # linked, so don't bother handling this case.
14254 if test -z "$postdeps_CXX"; then
14255 postdeps_CXX=$prev$p
14257 postdeps_CXX="${postdeps_CXX} $prev$p"
14263 *.lto.$objext) ;; # Ignore GCC LTO objects
14265 # This assumes that the test object file only shows up
14266 # once in the compiler output.
14267 if test "$p" = "conftest.$objext"; then
14268 pre_test_object_deps_done=yes
14272 if test no = "$pre_test_object_deps_done"; then
14273 if test -z "$predep_objects_CXX"; then
14274 predep_objects_CXX=$p
14276 predep_objects_CXX="$predep_objects_CXX $p"
14279 if test -z "$postdep_objects_CXX"; then
14280 postdep_objects_CXX=$p
14282 postdep_objects_CXX="$postdep_objects_CXX $p"
14287 *) ;; # Ignore the rest.
14295 echo "libtool.m4: error: problem compiling CXX test program"
14298 $RM -f confest.$objext
14299 CFLAGS=$_lt_libdeps_save_CFLAGS
14301 # PORTME: override above test on systems where it is broken
14304 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14305 # hack all around it, let's just trust "g++" to DTRT.
14306 predep_objects_CXX=
14307 postdep_objects_CXX=
14313 case " $postdeps_CXX " in
14314 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14316 compiler_lib_search_dirs_CXX=
14317 if test -n "${compiler_lib_search_path_CXX}"; then
14318 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14351 lt_prog_compiler_wl_CXX=
14352 lt_prog_compiler_pic_CXX=
14353 lt_prog_compiler_static_CXX=
14356 # C++ specific cases for pic, static, wl, etc.
14357 if test yes = "$GXX"; then
14358 lt_prog_compiler_wl_CXX='-Wl,'
14359 lt_prog_compiler_static_CXX='-static'
14363 # All AIX code is PIC.
14364 if test ia64 = "$host_cpu"; then
14365 # AIX 5 now supports IA64 processor
14366 lt_prog_compiler_static_CXX='-Bstatic'
14368 lt_prog_compiler_pic_CXX='-fPIC'
14374 # see comment about AmigaOS4 .so support
14375 lt_prog_compiler_pic_CXX='-fPIC'
14378 # FIXME: we need at least 68020 code to build shared libraries, but
14379 # adding the '-m68020' flag to GCC prevents building anything better,
14381 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14387 # PIC is the default for these OSes.
14389 mingw* | cygwin* | os2* | pw32* | cegcc*)
14390 # This hack is so that the source file can tell whether it is being
14391 # built for inclusion in a dll (and should export symbols for example).
14392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14393 # (--disable-auto-import) libraries
14394 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14397 lt_prog_compiler_static_CXX='$wl-static'
14401 darwin* | rhapsody*)
14402 # PIC is the default on this platform
14403 # Common symbols not allowed in MH_DYLIB files
14404 lt_prog_compiler_pic_CXX='-fno-common'
14407 # DJGPP does not support shared libraries at all
14408 lt_prog_compiler_pic_CXX=
14411 # PIC is the default for Haiku.
14412 # The "-static" flag exists, but is broken.
14413 lt_prog_compiler_static_CXX=
14416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14417 # Instead, we relocate shared libraries at runtime.
14420 if test -d /usr/nec; then
14421 lt_prog_compiler_pic_CXX=-Kconform_pic
14425 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14426 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14427 # sets the default TLS model and affects inlining.
14432 lt_prog_compiler_pic_CXX='-fPIC'
14437 # QNX uses GNU C++, but need to define -shared option too, otherwise
14438 # it will coredump.
14439 lt_prog_compiler_pic_CXX='-fPIC -shared'
14442 lt_prog_compiler_pic_CXX='-fPIC'
14448 # All AIX code is PIC.
14449 if test ia64 = "$host_cpu"; then
14450 # AIX 5 now supports IA64 processor
14451 lt_prog_compiler_static_CXX='-Bstatic'
14453 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14457 case $cc_basename in
14459 # Green Hills C++ Compiler
14460 # _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"
14464 mingw* | cygwin* | os2* | pw32* | cegcc*)
14465 # This hack is so that the source file can tell whether it is being
14466 # built for inclusion in a dll (and should export symbols for example).
14467 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14470 case $cc_basename in
14472 lt_prog_compiler_pic_CXX='-KPIC'
14475 # Green Hills C++ Compiler
14476 lt_prog_compiler_pic_CXX='-pic'
14482 freebsd* | dragonfly*)
14483 # FreeBSD uses GNU C++
14485 hpux9* | hpux10* | hpux11*)
14486 case $cc_basename in
14488 lt_prog_compiler_wl_CXX='-Wl,'
14489 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14490 if test ia64 != "$host_cpu"; then
14491 lt_prog_compiler_pic_CXX='+Z'
14495 lt_prog_compiler_wl_CXX='-Wl,'
14496 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14502 lt_prog_compiler_pic_CXX='+Z'
14511 # This is c89, which is MS Visual C++ (no shared libs)
14512 # Anyone wants to do a port?
14514 irix5* | irix6* | nonstopux*)
14515 case $cc_basename in
14517 lt_prog_compiler_wl_CXX='-Wl,'
14518 lt_prog_compiler_static_CXX='-non_shared'
14519 # CC pic flag -KPIC is the default.
14525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14526 case $cc_basename in
14529 lt_prog_compiler_wl_CXX='--backend -Wl,'
14530 lt_prog_compiler_pic_CXX='-fPIC'
14533 # old Intel C++ for x86_64, which still supported -KPIC.
14534 lt_prog_compiler_wl_CXX='-Wl,'
14535 lt_prog_compiler_pic_CXX='-KPIC'
14536 lt_prog_compiler_static_CXX='-static'
14539 # Intel C++, used to be incompatible with GCC.
14540 # ICC 10 doesn't accept -KPIC any more.
14541 lt_prog_compiler_wl_CXX='-Wl,'
14542 lt_prog_compiler_pic_CXX='-fPIC'
14543 lt_prog_compiler_static_CXX='-static'
14546 # Portland Group C++ compiler
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_pic_CXX='-fpic'
14549 lt_prog_compiler_static_CXX='-Bstatic'
14553 # Make sure the PIC flag is empty. It appears that all Alpha
14554 # Linux and Compaq Tru64 Unix objects are PIC.
14555 lt_prog_compiler_pic_CXX=
14556 lt_prog_compiler_static_CXX='-non_shared'
14558 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14559 # IBM XL 8.0, 9.0 on PPC and BlueGene
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 lt_prog_compiler_pic_CXX='-qpic'
14562 lt_prog_compiler_static_CXX='-qstaticlink'
14565 case `$CC -V 2>&1 | sed 5q` in
14568 lt_prog_compiler_pic_CXX='-KPIC'
14569 lt_prog_compiler_static_CXX='-Bstatic'
14570 lt_prog_compiler_wl_CXX='-Qoption ld '
14581 case $cc_basename in
14583 lt_prog_compiler_pic_CXX='-W c,exportall'
14589 netbsd* | netbsdelf*-gnu)
14592 # QNX uses GNU C++, but need to define -shared option too, otherwise
14593 # it will coredump.
14594 lt_prog_compiler_pic_CXX='-fPIC -shared'
14596 osf3* | osf4* | osf5*)
14597 case $cc_basename in
14599 lt_prog_compiler_wl_CXX='--backend -Wl,'
14602 # Rational C++ 2.4.1
14603 lt_prog_compiler_pic_CXX='-pic'
14606 # Digital/Compaq C++
14607 lt_prog_compiler_wl_CXX='-Wl,'
14608 # Make sure the PIC flag is empty. It appears that all Alpha
14609 # Linux and Compaq Tru64 Unix objects are PIC.
14610 lt_prog_compiler_pic_CXX=
14611 lt_prog_compiler_static_CXX='-non_shared'
14620 case $cc_basename in
14622 # Sun C++ 4.2, 5.x and Centerline C++
14623 lt_prog_compiler_pic_CXX='-KPIC'
14624 lt_prog_compiler_static_CXX='-Bstatic'
14625 lt_prog_compiler_wl_CXX='-Qoption ld '
14628 # Green Hills C++ Compiler
14629 lt_prog_compiler_pic_CXX='-PIC'
14636 case $cc_basename in
14639 lt_prog_compiler_pic_CXX='-pic'
14640 lt_prog_compiler_static_CXX='-Bstatic'
14644 lt_prog_compiler_pic_CXX='-pic'
14650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14651 case $cc_basename in
14653 lt_prog_compiler_wl_CXX='-Wl,'
14654 lt_prog_compiler_pic_CXX='-KPIC'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14660 case $cc_basename in
14662 # NonStop-UX NCC 3.20
14663 lt_prog_compiler_pic_CXX='-KPIC'
14672 lt_prog_compiler_can_build_shared_CXX=no
14678 # For platforms that do not support PIC, -DPIC is meaningless:
14680 lt_prog_compiler_pic_CXX=
14683 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14689 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14690 $as_echo_n "(cached) " >&6
14692 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14695 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14696 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14699 # Check to make sure the PIC flag actually works.
14701 if test -n "$lt_prog_compiler_pic_CXX"; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14704 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14705 $as_echo_n "(cached) " >&6
14707 lt_cv_prog_compiler_pic_works_CXX=no
14708 ac_outfile=conftest.$ac_objext
14709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14711 # Insert the option either (1) after the last *FLAGS variable, or
14712 # (2) before a word containing "conftest.", or (3) at the end.
14713 # Note that $ac_compile itself does not contain backslashes and begins
14714 # with a dollar sign (not a hyphen), so the echo should work correctly.
14715 # The option is referenced via a variable to avoid confusing sed.
14716 lt_compile=`echo "$ac_compile" | $SED \
14717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14719 -e 's:$: $lt_compiler_flag:'`
14720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14721 (eval "$lt_compile" 2>conftest.err)
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 if (exit $ac_status) && test -s "$ac_outfile"; then
14726 # The compiler can only warn and ignore the option if not recognized
14727 # So say no if there are warnings other than the usual output.
14728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14731 lt_cv_prog_compiler_pic_works_CXX=yes
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14740 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14741 case $lt_prog_compiler_pic_CXX in
14743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14746 lt_prog_compiler_pic_CXX=
14747 lt_prog_compiler_can_build_shared_CXX=no
14757 # Check to make sure the static flag actually works.
14759 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14762 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14763 $as_echo_n "(cached) " >&6
14765 lt_cv_prog_compiler_static_works_CXX=no
14766 save_LDFLAGS=$LDFLAGS
14767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14770 # The linker can only warn and ignore the option if not recognized
14771 # So say no if there are warnings
14772 if test -s conftest.err; then
14773 # Append any errors to the config.log.
14774 cat conftest.err 1>&5
14775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14777 if diff conftest.exp conftest.er2 >/dev/null; then
14778 lt_cv_prog_compiler_static_works_CXX=yes
14781 lt_cv_prog_compiler_static_works_CXX=yes
14785 LDFLAGS=$save_LDFLAGS
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14791 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14794 lt_prog_compiler_static_CXX=
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14802 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14803 $as_echo_n "(cached) " >&6
14805 lt_cv_prog_compiler_c_o_CXX=no
14806 $RM -r conftest 2>/dev/null
14810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14812 lt_compiler_flag="-o out/conftest2.$ac_objext"
14813 # Insert the option either (1) after the last *FLAGS variable, or
14814 # (2) before a word containing "conftest.", or (3) at the end.
14815 # Note that $ac_compile itself does not contain backslashes and begins
14816 # with a dollar sign (not a hyphen), so the echo should work correctly.
14817 lt_compile=`echo "$ac_compile" | $SED \
14818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820 -e 's:$: $lt_compiler_flag:'`
14821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14822 (eval "$lt_compile" 2>out/conftest.err)
14824 cat out/conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14828 # The compiler can only warn and ignore the option if not recognized
14829 # So say no if there are warnings
14830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14833 lt_cv_prog_compiler_c_o_CXX=yes
14838 # SGI C++ compiler will create directory out/ii_files/ for
14839 # template instantiation
14840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14841 $RM out/* && rmdir out
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14854 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14855 $as_echo_n "(cached) " >&6
14857 lt_cv_prog_compiler_c_o_CXX=no
14858 $RM -r conftest 2>/dev/null
14862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14864 lt_compiler_flag="-o out/conftest2.$ac_objext"
14865 # Insert the option either (1) after the last *FLAGS variable, or
14866 # (2) before a word containing "conftest.", or (3) at the end.
14867 # Note that $ac_compile itself does not contain backslashes and begins
14868 # with a dollar sign (not a hyphen), so the echo should work correctly.
14869 lt_compile=`echo "$ac_compile" | $SED \
14870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14872 -e 's:$: $lt_compiler_flag:'`
14873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14874 (eval "$lt_compile" 2>out/conftest.err)
14876 cat out/conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14880 # The compiler can only warn and ignore the option if not recognized
14881 # So say no if there are warnings
14882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14885 lt_cv_prog_compiler_c_o_CXX=yes
14890 # SGI C++ compiler will create directory out/ii_files/ for
14891 # template instantiation
14892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14893 $RM out/* && rmdir out
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14905 hard_links=nottested
14906 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14907 # do not overwrite the value of need_locks provided by the user
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14909 $as_echo_n "checking if we can lock with hard links... " >&6; }
14912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14914 ln conftest.a conftest.b 2>&5 || hard_links=no
14915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14917 $as_echo "$hard_links" >&6; }
14918 if test no = "$hard_links"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14920 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14936 # If we're using GNU nm, then we don't want the "-C" option.
14937 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14938 # Without the "-l" option, or with the "-B" option, AIX nm treats
14939 # weak defined symbols like other global defined symbols, whereas
14940 # GNU nm marks them as "W".
14941 # While the 'weak' keyword is ignored in the Export File, we need
14942 # it in the Import File for the 'aix-soname' feature, so we have
14943 # to replace the "-B" option with "-P" for AIX nm.
14944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14945 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14947 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14951 export_symbols_cmds_CXX=$ltdll_cmds
14953 cygwin* | mingw* | cegcc*)
14954 case $cc_basename in
14956 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14959 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'
14960 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14964 linux* | k*bsd*-gnu | gnu*)
14965 link_all_deplibs_CXX=no
14968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14973 $as_echo "$ld_shlibs_CXX" >&6; }
14974 test no = "$ld_shlibs_CXX" && can_build_shared=no
14976 with_gnu_ld_CXX=$with_gnu_ld
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_CXX" in
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14991 if test yes,yes = "$GCC,$enable_shared"; then
14992 case $archive_cmds_CXX in
14994 # FIXME: we may have to deal with multi-command sequences.
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15002 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15003 $as_echo_n "(cached) " >&6
15006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15009 (eval $ac_compile) 2>&5
15011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 test $ac_status = 0; } 2>conftest.err; then
15015 libobjs=conftest.$ac_objext
15017 wl=$lt_prog_compiler_wl_CXX
15018 pic_flag=$lt_prog_compiler_pic_CXX
15024 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15025 allow_undefined_flag_CXX=
15026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15027 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; }
15032 lt_cv_archive_cmds_need_lc_CXX=no
15034 lt_cv_archive_cmds_need_lc_CXX=yes
15036 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15038 cat conftest.err 1>&5
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15044 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15045 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15114 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15116 library_names_spec=
15117 libname_spec='lib$name'
15121 postuninstall_cmds=
15125 shlibpath_overrides_runpath=unknown
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15140 version_type=linux # correct to gnu/linux during the next big refactor
15141 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15142 shlibpath_var=LIBPATH
15144 # AIX 3 has no versioning support, so we append a major version to the name.
15145 soname_spec='$libname$release$shared_ext$major'
15149 version_type=linux # correct to gnu/linux during the next big refactor
15152 hardcode_into_libs=yes
15153 if test ia64 = "$host_cpu"; then
15154 # AIX 5 supports IA64
15155 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15156 shlibpath_var=LD_LIBRARY_PATH
15158 # With GCC up to 2.95.x, collect2 would create an import file
15159 # for dependence libraries. The import file would start with
15160 # the line '#! .'. This would cause the generated library to
15161 # depend on '.', always an invalid library. This was fixed in
15162 # development snapshots of GCC prior to 3.0.
15164 aix4 | aix4.[01] | aix4.[01].*)
15165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15167 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15170 can_build_shared=no
15174 # Using Import Files as archive members, it is possible to support
15175 # filename-based versioning of shared library archives on AIX. While
15176 # this would work for both with and without runtime linking, it will
15177 # prevent static linking of such archives. So we do filename-based
15178 # shared library versioning with .so extension only, which is used
15179 # when both runtime linking and shared linking is enabled.
15180 # Unfortunately, runtime linking may impact performance, so we do
15181 # not want this to be the default eventually. Also, we use the
15182 # versioned .so libs for executables only if there is the -brtl
15183 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15184 # To allow for filename-based versioning support, we need to create
15185 # libNAME.so.V as an archive file, containing:
15186 # *) an Import File, referring to the versioned filename of the
15187 # archive as well as the shared archive member, telling the
15188 # bitwidth (32 or 64) of that shared object, and providing the
15189 # list of exported symbols of that shared object, eventually
15190 # decorated with the 'weak' keyword
15191 # *) the shared object with the F_LOADONLY flag set, to really avoid
15192 # it being seen by the linker.
15193 # At run time we better use the real file rather than another symlink,
15194 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15196 case $with_aix_soname,$aix_use_runtimelinking in
15197 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15198 # soname into executable. Probably we can add versioning support to
15199 # collect2, so additional links can be useful in future.
15200 aix,yes) # traditional libtool
15201 dynamic_linker='AIX unversionable lib.so'
15202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15203 # instead of lib<name>.a to let people know that these are not
15204 # typical AIX shared libraries.
15205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15207 aix,no) # traditional AIX only
15208 dynamic_linker='AIX lib.a(lib.so.V)'
15209 # We preserve .a as extension for shared libraries through AIX4.2
15210 # and later when we are not doing run time linking.
15211 library_names_spec='$libname$release.a $libname.a'
15212 soname_spec='$libname$release$shared_ext$major'
15214 svr4,*) # full svr4 only
15215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15217 # We do not specify a path in Import Files, so LIBPATH fires.
15218 shlibpath_overrides_runpath=yes
15220 *,yes) # both, prefer svr4
15221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15223 # unpreferred sharedlib libNAME.a needs extra handling
15224 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15225 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15226 # We do not specify a path in Import Files, so LIBPATH fires.
15227 shlibpath_overrides_runpath=yes
15229 *,no) # both, prefer aix
15230 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15231 library_names_spec='$libname$release.a $libname.a'
15232 soname_spec='$libname$release$shared_ext$major'
15233 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15234 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15235 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15238 shlibpath_var=LIBPATH
15245 # Since July 2007 AmigaOS4 officially supports .so libraries.
15246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15250 library_names_spec='$libname.ixlibrary $libname.a'
15251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15252 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15258 library_names_spec='$libname$shared_ext'
15259 dynamic_linker="$host_os ld.so"
15260 shlibpath_var=LIBRARY_PATH
15264 version_type=linux # correct to gnu/linux during the next big refactor
15266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15267 soname_spec='$libname$release$shared_ext$major'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272 # the default ld.so.conf also contains /usr/contrib/lib and
15273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274 # libtool to hard-code these into programs
15277 cygwin* | mingw* | pw32* | cegcc*)
15278 version_type=windows
15283 case $GCC,$cc_basename in
15286 library_names_spec='$libname.dll.a'
15287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15288 postinstall_cmds='base_file=`basename \$file`~
15289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15290 dldir=$destdir/`dirname \$dlpath`~
15291 test -d \$dldir || mkdir -p \$dldir~
15292 $install_prog $dir/$dlname \$dldir/$dlname~
15293 chmod a+x \$dldir/$dlname~
15294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15298 dlpath=$dir/\$dldll~
15300 shlibpath_overrides_runpath=yes
15304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15305 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15309 # MinGW DLLs use traditional 'lib' prefix
15310 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15313 # pw32 DLLs use 'pw' prefix rather than 'lib'
15314 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15317 dynamic_linker='Win32 ld.exe'
15322 libname_spec='$name'
15323 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15324 library_names_spec='$libname.dll.lib'
15328 sys_lib_search_path_spec=
15331 for lt_path in $LIB
15334 # Let DOS variable expansion print the short 8.3 style file name.
15335 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15336 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15339 # Convert to MSYS style.
15340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15343 # Convert to unix form, then to dos form, then back to unix form
15344 # but this time dos style (no spaces!) so that the unix form looks
15345 # like /cygdrive/c/PROGRA~1:/cygdr...
15346 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15347 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15348 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15351 sys_lib_search_path_spec=$LIB
15352 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15353 # It is most probably a Windows format PATH.
15354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15358 # FIXME: find the short name or the path components, as spaces are
15359 # common. (e.g. "Program Files" -> "PROGRA~1")
15363 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15364 postinstall_cmds='base_file=`basename \$file`~
15365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15366 dldir=$destdir/`dirname \$dlpath`~
15367 test -d \$dldir || mkdir -p \$dldir~
15368 $install_prog $dir/$dlname \$dldir/$dlname'
15369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15370 dlpath=$dir/\$dldll~
15372 shlibpath_overrides_runpath=yes
15373 dynamic_linker='Win32 link.exe'
15377 # Assume MSVC wrapper
15378 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15379 dynamic_linker='Win32 ld.exe'
15382 # FIXME: first we should search . and the directory the executable is in
15386 darwin* | rhapsody*)
15387 dynamic_linker="$host_os dyld"
15388 version_type=darwin
15391 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15392 soname_spec='$libname$release$major$shared_ext'
15393 shlibpath_overrides_runpath=yes
15394 shlibpath_var=DYLD_LIBRARY_PATH
15395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15401 version_type=linux # correct to gnu/linux during the next big refactor
15404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15405 soname_spec='$libname$release$shared_ext$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15409 freebsd* | dragonfly*)
15410 # DragonFly does not have aout. When/if they implement a new
15411 # versioning mechanism, adjust this.
15412 if test -x /usr/bin/objformat; then
15413 objformat=`/usr/bin/objformat`
15416 freebsd[23].*) objformat=aout ;;
15417 *) objformat=elf ;;
15420 version_type=freebsd-$objformat
15421 case $version_type in
15423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15424 soname_spec='$libname$release$shared_ext$major'
15429 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15433 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes
15438 freebsd3.[01]* | freebsdelf3.[01]*)
15439 shlibpath_overrides_runpath=yes
15440 hardcode_into_libs=yes
15442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15444 shlibpath_overrides_runpath=no
15445 hardcode_into_libs=yes
15447 *) # from 4.6 on, and DragonFly
15448 shlibpath_overrides_runpath=yes
15449 hardcode_into_libs=yes
15455 version_type=linux # correct to gnu/linux during the next big refactor
15458 dynamic_linker="$host_os runtime_loader"
15459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15460 soname_spec='$libname$release$shared_ext$major'
15461 shlibpath_var=LIBRARY_PATH
15462 shlibpath_overrides_runpath=no
15463 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15464 hardcode_into_libs=yes
15467 hpux9* | hpux10* | hpux11*)
15468 # Give a soname corresponding to the major version so that dld.sl refuses to
15469 # link against other versions.
15476 hardcode_into_libs=yes
15477 dynamic_linker="$host_os dld.so"
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15481 soname_spec='$libname$release$shared_ext$major'
15482 if test 32 = "$HPUX_IA64_MODE"; then
15483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15484 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15487 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15492 hardcode_into_libs=yes
15493 dynamic_linker="$host_os dld.sl"
15494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15497 soname_spec='$libname$release$shared_ext$major'
15498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15503 dynamic_linker="$host_os dld.sl"
15504 shlibpath_var=SHLIB_PATH
15505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15507 soname_spec='$libname$release$shared_ext$major'
15510 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15511 postinstall_cmds='chmod 555 $lib'
15512 # or fails outright, so override atomically:
15513 install_override_mode=555
15517 version_type=linux # correct to gnu/linux during the next big refactor
15520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15521 soname_spec='$libname$release$shared_ext$major'
15522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 hardcode_into_libs=yes
15528 irix5* | irix6* | nonstopux*)
15530 nonstopux*) version_type=nonstopux ;;
15532 if test yes = "$lt_cv_prog_gnu_ld"; then
15533 version_type=linux # correct to gnu/linux during the next big refactor
15540 soname_spec='$libname$release$shared_ext$major'
15541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15543 irix5* | nonstopux*)
15544 libsuff= shlibsuff=
15547 case $LD in # libtool.m4 will add one of these switches to LD
15548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15549 libsuff= shlibsuff= libmagic=32-bit;;
15550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15551 libsuff=32 shlibsuff=N32 libmagic=N32;;
15552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15554 *) libsuff= shlibsuff= libmagic=never-match;;
15558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15559 shlibpath_overrides_runpath=no
15560 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15561 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15562 hardcode_into_libs=yes
15565 # No shared lib support for Linux oldld, aout, or coff.
15566 linux*oldld* | linux*aout* | linux*coff*)
15571 version_type=none # Android doesn't support versioned libraries.
15574 library_names_spec='$libname$release$shared_ext'
15575 soname_spec='$libname$release$shared_ext'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15580 # This implies no fast_install, which is unacceptable.
15581 # Some rework will be needed to allow for fast_install
15582 # before this can be enabled.
15583 hardcode_into_libs=yes
15585 dynamic_linker='Android linker'
15586 # Don't embed -rpath directories since the linker doesn't support them.
15587 hardcode_libdir_flag_spec_CXX='-L$libdir'
15590 # This must be glibc/ELF.
15591 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15592 version_type=linux # correct to gnu/linux during the next big refactor
15595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15596 soname_spec='$libname$release$shared_ext$major'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15601 # Some binutils ld are patched to set DT_RUNPATH
15602 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15603 $as_echo_n "(cached) " >&6
15605 lt_cv_shlibpath_overrides_runpath=no
15606 save_LDFLAGS=$LDFLAGS
15607 save_libdir=$libdir
15608 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15609 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15621 if ac_fn_cxx_try_link "$LINENO"; then :
15622 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15623 lt_cv_shlibpath_overrides_runpath=yes
15626 rm -f core conftest.err conftest.$ac_objext \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LDFLAGS=$save_LDFLAGS
15629 libdir=$save_libdir
15633 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15635 # This implies no fast_install, which is unacceptable.
15636 # Some rework will be needed to allow for fast_install
15637 # before this can be enabled.
15638 hardcode_into_libs=yes
15640 # Ideally, we could use ldconfig to report *all* directores which are
15641 # searched for libraries, however this is still not possible. Aside from not
15642 # being certain /sbin/ldconfig is available, command
15643 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15644 # even though it is searched at run-time. Try to do the best guess by
15645 # appending ld.so.conf contents (and includes) to the search path.
15646 if test -f /etc/ld.so.conf; then
15647 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' ' '`
15648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15651 # We used to test for /lib/ld.so.1 and disable shared libraries on
15652 # powerpc, because MkLinux only supported shared libraries with the
15653 # GNU dynamic linker. Since this was broken with cross compilers,
15654 # most powerpc-linux boxes support dynamic linking these days and
15655 # people can always --disable-shared, the test was removed, and we
15656 # assume the GNU/Linux dynamic linker is in use.
15657 dynamic_linker='GNU/Linux ld.so'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 shlibpath_overrides_runpath=no
15668 hardcode_into_libs=yes
15669 dynamic_linker='NetBSD ld.elf_so'
15676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15679 dynamic_linker='NetBSD (a.out) ld.so'
15681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15682 soname_spec='$libname$release$shared_ext$major'
15683 dynamic_linker='NetBSD ld.elf_so'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=yes
15687 hardcode_into_libs=yes
15691 version_type=linux # correct to gnu/linux during the next big refactor
15692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15702 soname_spec='$libname$release$shared_ext$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=no
15705 hardcode_into_libs=yes
15706 dynamic_linker='ldqnx.so'
15709 openbsd* | bitrig*)
15711 sys_lib_dlsearch_path_spec=/usr/lib
15713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15725 libname_spec='$name'
15726 version_type=windows
15730 # OS/2 can only load a DLL with a base name of 8 characters or less.
15731 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15732 v=$($ECHO $release$versuffix | tr -d .-);
15733 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15734 $ECHO $n$v`$shared_ext'
15735 library_names_spec='${libname}_dll.$libext'
15736 dynamic_linker='OS/2 ld.exe'
15737 shlibpath_var=BEGINLIBPATH
15738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15740 postinstall_cmds='base_file=`basename \$file`~
15741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15742 dldir=$destdir/`dirname \$dlpath`~
15743 test -d \$dldir || mkdir -p \$dldir~
15744 $install_prog $dir/$dlname \$dldir/$dlname~
15745 chmod a+x \$dldir/$dlname~
15746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15750 dlpath=$dir/\$dldll~
15754 osf3* | osf4* | osf5*)
15758 soname_spec='$libname$release$shared_ext$major'
15759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15770 version_type=linux # correct to gnu/linux during the next big refactor
15773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15774 soname_spec='$libname$release$shared_ext$major'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=yes
15777 hardcode_into_libs=yes
15778 # ldd complains unless libraries are executable
15779 postinstall_cmds='chmod +x $lib'
15784 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15786 shlibpath_var=LD_LIBRARY_PATH
15787 shlibpath_overrides_runpath=yes
15788 if test yes = "$with_gnu_ld"; then
15795 version_type=linux # correct to gnu/linux during the next big refactor
15796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15797 soname_spec='$libname$release$shared_ext$major'
15798 shlibpath_var=LD_LIBRARY_PATH
15799 case $host_vendor in
15801 shlibpath_overrides_runpath=no
15803 runpath_var=LD_RUN_PATH
15811 shlibpath_overrides_runpath=no
15812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15818 if test -d /usr/nec; then
15819 version_type=linux # correct to gnu/linux during the next big refactor
15820 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15821 soname_spec='$libname$shared_ext.$major'
15822 shlibpath_var=LD_LIBRARY_PATH
15826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15831 soname_spec='$libname$release$shared_ext$major'
15832 shlibpath_var=LD_LIBRARY_PATH
15833 shlibpath_overrides_runpath=yes
15834 hardcode_into_libs=yes
15835 if test yes = "$with_gnu_ld"; then
15836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15845 sys_lib_dlsearch_path_spec='/usr/lib'
15849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15850 version_type=linux # correct to gnu/linux during the next big refactor
15853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=no
15856 hardcode_into_libs=yes
15860 version_type=linux # correct to gnu/linux during the next big refactor
15861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15862 soname_spec='$libname$release$shared_ext$major'
15863 shlibpath_var=LD_LIBRARY_PATH
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15871 $as_echo "$dynamic_linker" >&6; }
15872 test no = "$dynamic_linker" && can_build_shared=no
15874 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15875 if test yes = "$GCC"; then
15876 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15879 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15880 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15883 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15884 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15887 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15888 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15890 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15891 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15893 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15894 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15937 hardcode_action_CXX=
15938 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15939 test -n "$runpath_var_CXX" ||
15940 test yes = "$hardcode_automatic_CXX"; then
15942 # We can hardcode non-existent directories.
15943 if test no != "$hardcode_direct_CXX" &&
15944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15945 # have to relink, otherwise we might link with an installed library
15946 # when we should be linking with a yet-to-be-installed one
15947 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15948 test no != "$hardcode_minus_L_CXX"; then
15949 # Linking always hardcodes the temporary library directory.
15950 hardcode_action_CXX=relink
15952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15953 hardcode_action_CXX=immediate
15956 # We cannot hardcode anything, or else we can only hardcode existing
15958 hardcode_action_CXX=unsupported
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15961 $as_echo "$hardcode_action_CXX" >&6; }
15963 if test relink = "$hardcode_action_CXX" ||
15964 test yes = "$inherit_rpath_CXX"; then
15965 # Fast installation is not supported
15966 enable_fast_install=no
15967 elif test yes = "$shlibpath_overrides_runpath" ||
15968 test no = "$enable_shared"; then
15969 # Fast installation is not necessary
15970 enable_fast_install=needless
15979 fi # test -n "$compiler"
15982 CFLAGS=$lt_save_CFLAGS
15986 with_gnu_ld=$lt_save_with_gnu_ld
15987 lt_cv_path_LDCXX=$lt_cv_path_LD
15988 lt_cv_path_LD=$lt_save_path_LD
15989 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15990 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15991 fi # test yes != "$_lt_caught_CXX_error"
15994 ac_cpp='$CPP $CPPFLAGS'
15995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16013 ac_config_commands="$ac_config_commands libtool"
16018 # Only expand once:
16022 ac_config_headers="$ac_config_headers config.h src/include/fst/config.h"
16025 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"
16029 ac_cpp='$CXXCPP $CPPFLAGS'
16030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16035 # Check whether --enable-compact-fsts was given.
16036 if test "${enable_compact_fsts+set}" = set; then :
16037 enableval=$enable_compact_fsts;
16039 enable_compact_fsts=no
16042 if test "x$enable_compact_fsts" != xno; then
16044 HAVE_COMPACT_FALSE='#'
16046 HAVE_COMPACT_TRUE='#'
16047 HAVE_COMPACT_FALSE=
16051 # Check whether --enable-compress was given.
16052 if test "${enable_compress+set}" = set; then :
16053 enableval=$enable_compress;
16058 if test "x$enable_compress" != xno; then
16059 HAVE_COMPRESS_TRUE=
16060 HAVE_COMPRESS_FALSE='#'
16062 HAVE_COMPRESS_TRUE='#'
16063 HAVE_COMPRESS_FALSE=
16067 # Check whether --enable-const-fsts was given.
16068 if test "${enable_const_fsts+set}" = set; then :
16069 enableval=$enable_const_fsts;
16071 enable_const_fsts=no
16074 if test "x$enable_const_fsts" != xno; then
16076 HAVE_CONST_FALSE='#'
16078 HAVE_CONST_TRUE='#'
16083 # Check whether --enable-far was given.
16084 if test "${enable_far+set}" = set; then :
16085 enableval=$enable_far;
16090 if test "x$enable_far" != xno; then
16099 # Check whether --enable-linear-fsts was given.
16100 if test "${enable_linear_fsts+set}" = set; then :
16101 enableval=$enable_linear_fsts;
16103 enable_linear_fsts=no
16106 if test "x$enable_linear_fsts" != xno; then
16108 HAVE_LINEAR_FALSE='#'
16110 HAVE_LINEAR_TRUE='#'
16115 # Check whether --enable-lookahead-fsts was given.
16116 if test "${enable_lookahead_fsts+set}" = set; then :
16117 enableval=$enable_lookahead_fsts;
16119 enable_lookahead_fsts=no
16122 if test "x$enable_lookahead_fsts" != xno; then
16123 HAVE_LOOKAHEAD_TRUE=
16124 HAVE_LOOKAHEAD_FALSE='#'
16126 HAVE_LOOKAHEAD_TRUE='#'
16127 HAVE_LOOKAHEAD_FALSE=
16131 # Check whether --enable-mpdt was given.
16132 if test "${enable_mpdt+set}" = set; then :
16133 enableval=$enable_mpdt;
16138 if test "x$enable_mpdt" != xno; then
16140 HAVE_MPDT_FALSE='#'
16147 # Check whether --enable-ngram-fsts was given.
16148 if test "${enable_ngram_fsts+set}" = set; then :
16149 enableval=$enable_ngram_fsts;
16151 enable_ngram_fsts=no
16154 if test "x$enable_ngram_fsts" != xno; then
16156 HAVE_NGRAM_FALSE='#'
16158 HAVE_NGRAM_TRUE='#'
16163 # Check whether --enable-pdt was given.
16164 if test "${enable_pdt+set}" = set; then :
16165 enableval=$enable_pdt;
16170 if test "x$enable_pdt" != xno; then
16179 # Check whether --enable-python was given.
16180 if test "${enable_python+set}" = set; then :
16181 enableval=$enable_python;
16186 if test "x$enable_python" != xno; then
16188 HAVE_PYTHON_FALSE='#'
16190 HAVE_PYTHON_TRUE='#'
16194 if test "x$enable_python" != xno; then
16201 if test -n "$PYTHON"; then
16202 # If the user set $PYTHON, use it and don't search something else.
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
16204 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
16206 # split strings by '.' and convert to numeric. Append some zeros
16207 # because we need at least 4 digits for the hex conversion.
16208 # map returns an iterator in Python 3.0 and a list in 2.x
16209 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16211 # xrange is not present in Python 3.0 and range returns an iterator
16212 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16213 sys.exit(sys.hexversion < minverhex)"
16214 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
16215 ($PYTHON -c "$prog") >&5 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; then :
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16220 $as_echo "yes" >&6; }
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223 $as_echo "no" >&6; }
16224 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
16226 am_display_PYTHON=$PYTHON
16228 # Otherwise, try each interpreter until we find one that satisfies
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
16231 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
16232 if ${am_cv_pathless_PYTHON+:} false; then :
16233 $as_echo_n "(cached) " >&6
16236 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 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
16237 test "$am_cv_pathless_PYTHON" = none && break
16239 # split strings by '.' and convert to numeric. Append some zeros
16240 # because we need at least 4 digits for the hex conversion.
16241 # map returns an iterator in Python 3.0 and a list in 2.x
16242 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
16244 # xrange is not present in Python 3.0 and range returns an iterator
16245 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
16246 sys.exit(sys.hexversion < minverhex)"
16247 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
16248 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; then :
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
16257 $as_echo "$am_cv_pathless_PYTHON" >&6; }
16258 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
16259 if test "$am_cv_pathless_PYTHON" = none; then
16262 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
16263 set dummy $am_cv_pathless_PYTHON; ac_word=$2
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16265 $as_echo_n "checking for $ac_word... " >&6; }
16266 if ${ac_cv_path_PYTHON+:} false; then :
16267 $as_echo_n "(cached) " >&6
16271 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16278 test -z "$as_dir" && as_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16281 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16292 PYTHON=$ac_cv_path_PYTHON
16293 if test -n "$PYTHON"; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16295 $as_echo "$PYTHON" >&6; }
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16303 am_display_PYTHON=$am_cv_pathless_PYTHON
16307 if test "$PYTHON" = :; then
16308 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
16313 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
16314 if ${am_cv_python_version+:} false; then :
16315 $as_echo_n "(cached) " >&6
16317 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
16320 $as_echo "$am_cv_python_version" >&6; }
16321 PYTHON_VERSION=$am_cv_python_version
16325 PYTHON_PREFIX='${prefix}'
16327 PYTHON_EXEC_PREFIX='${exec_prefix}'
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
16332 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
16333 if ${am_cv_python_platform+:} false; then :
16334 $as_echo_n "(cached) " >&6
16336 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
16339 $as_echo "$am_cv_python_platform" >&6; }
16340 PYTHON_PLATFORM=$am_cv_python_platform
16343 # Just factor out some code duplication.
16344 am_python_setup_sysconfig="\
16346 # Prefer sysconfig over distutils.sysconfig, for better compatibility
16347 # with python 3.x. See automake bug#10227.
16350 except ImportError:
16351 can_use_sysconfig = 0
16353 can_use_sysconfig = 1
16354 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
16355 # <https://github.com/pypa/virtualenv/issues/118>
16357 from platform import python_implementation
16358 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
16359 can_use_sysconfig = 0
16360 except ImportError:
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
16365 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
16366 if ${am_cv_python_pythondir+:} false; then :
16367 $as_echo_n "(cached) " >&6
16369 if test "x$prefix" = xNONE
16371 am_py_prefix=$ac_default_prefix
16373 am_py_prefix=$prefix
16375 am_cv_python_pythondir=`$PYTHON -c "
16376 $am_python_setup_sysconfig
16377 if can_use_sysconfig:
16378 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
16380 from distutils import sysconfig
16381 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
16382 sys.stdout.write(sitedir)"`
16383 case $am_cv_python_pythondir in
16385 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
16386 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
16389 case $am_py_prefix in
16392 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
16400 $as_echo "$am_cv_python_pythondir" >&6; }
16401 pythondir=$am_cv_python_pythondir
16405 pkgpythondir=\${pythondir}/$PACKAGE
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
16409 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
16410 if ${am_cv_python_pyexecdir+:} false; then :
16411 $as_echo_n "(cached) " >&6
16413 if test "x$exec_prefix" = xNONE
16415 am_py_exec_prefix=$am_py_prefix
16417 am_py_exec_prefix=$exec_prefix
16419 am_cv_python_pyexecdir=`$PYTHON -c "
16420 $am_python_setup_sysconfig
16421 if can_use_sysconfig:
16422 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
16424 from distutils import sysconfig
16425 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
16426 sys.stdout.write(sitedir)"`
16427 case $am_cv_python_pyexecdir in
16428 $am_py_exec_prefix*)
16429 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
16430 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
16433 case $am_py_exec_prefix in
16436 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
16444 $as_echo "$am_cv_python_pyexecdir" >&6; }
16445 pyexecdir=$am_cv_python_pyexecdir
16449 pkgpyexecdir=\${pyexecdir}/$PACKAGE
16458 # Allow the use of a (user set) custom python version
16462 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16463 set dummy python$PYTHON_VERSION; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if ${ac_cv_path_PYTHON+:} false; then :
16467 $as_echo_n "(cached) " >&6
16471 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16475 for as_dir in $PATH
16478 test -z "$as_dir" && as_dir=.
16479 for ac_exec_ext in '' $ac_executable_extensions; do
16480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16481 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492 PYTHON=$ac_cv_path_PYTHON
16493 if test -n "$PYTHON"; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16495 $as_echo "$PYTHON" >&6; }
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16502 if test -z "$PYTHON"; then
16503 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16508 # Check for a version of Python >= 2.1.0
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
16511 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
16512 ac_supports_python_ver=`$PYTHON -c "import sys; \
16513 ver = sys.version.split ()[0]; \
16514 print (ver >= '2.1.0')"`
16515 if test "$ac_supports_python_ver" != "True"; then
16516 if test -z "$PYTHON_NOVERSIONCHECK"; then
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16518 $as_echo "no" >&6; }
16519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16522 This version of the AC_PYTHON_DEVEL macro
16523 doesn't work properly with versions of Python before
16524 2.1.0. You may need to re-run configure, setting the
16525 variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
16526 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
16527 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
16528 to something else than an empty string.
16530 See \`config.log' for more details" "$LINENO" 5; }
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
16533 $as_echo "skip at user request" >&6; }
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16541 # if the macro parameter ``version'' is set, honour it
16543 if test -n ">= '2.7'"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.7'" >&5
16545 $as_echo_n "checking for a version of Python >= '2.7'... " >&6; }
16546 ac_supports_python_ver=`$PYTHON -c "import sys; \
16547 ver = sys.version.split ()[0]; \
16548 print (ver >= '2.7')"`
16549 if test "$ac_supports_python_ver" = "True"; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16551 $as_echo "yes" >&6; }
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16555 as_fn_error $? "this package requires Python >= '2.7'.
16556 If you have it installed, but it isn't the default Python
16557 interpreter in your system path, please pass the PYTHON_VERSION
16558 variable to configure. See \`\`configure --help'' for reference.
16565 # Check if you have distutils, else fail
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16568 $as_echo_n "checking for the distutils Python package... " >&6; }
16569 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16570 if test $? -eq 0; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16572 $as_echo "yes" >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16576 as_fn_error $? "cannot import Python module \"distutils\".
16577 Please check your Python installation. The error was:
16578 $ac_distutils_result" "$LINENO" 5
16583 # Check for Python include path
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16586 $as_echo_n "checking for Python include path... " >&6; }
16587 if test -z "$PYTHON_CPPFLAGS"; then
16588 python_path=`$PYTHON -c "import distutils.sysconfig; \
16589 print (distutils.sysconfig.get_python_inc ());"`
16590 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
16591 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
16592 if test -n "${python_path}"; then
16593 if test "${plat_python_path}" != "${python_path}"; then
16594 python_path="-I$python_path -I$plat_python_path"
16596 python_path="-I$python_path"
16599 PYTHON_CPPFLAGS=$python_path
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16602 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16606 # Check for Python library path
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16609 $as_echo_n "checking for Python library path... " >&6; }
16610 if test -z "$PYTHON_LIBS"; then
16611 # (makes two attempts to ensure we've got a version number
16612 # from the interpreter)
16613 ac_python_version=`cat<<EOD | $PYTHON -
16615 # join all versioning strings, on some systems
16616 # major/minor numbers could be in different list elements
16617 from distutils.sysconfig import *
16618 e = get_config_var('VERSION')
16623 if test -z "$ac_python_version"; then
16624 if test -n "$PYTHON_VERSION"; then
16625 ac_python_version=$PYTHON_VERSION
16627 ac_python_version=`$PYTHON -c "import sys; \
16628 print (sys.version[:3])"`
16632 # Make the versioning information available to the compiler
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_PYTHON "$ac_python_version"
16639 # First, the library directory:
16640 ac_python_libdir=`cat<<EOD | $PYTHON -
16642 # There should be only one
16643 import distutils.sysconfig
16644 e = distutils.sysconfig.get_config_var('LIBDIR')
16649 # Now, for the library:
16650 ac_python_library=`cat<<EOD | $PYTHON -
16652 import distutils.sysconfig
16653 c = distutils.sysconfig.get_config_vars()
16654 if 'LDVERSION' in c:
16655 print ('python'+c['LDVERSION'])
16657 print ('python'+c['VERSION'])
16660 # This small piece shamelessly adapted from PostgreSQL python macro;
16661 # credits goes to momjian, I think. I'd like to put the right name
16662 # in the credits, if someone can point me in the right direction... ?
16664 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
16666 # use the official shared library
16667 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
16668 PYTHON_LIBS="-L$ac_python_libdir -l$ac_python_library"
16670 # old way: use libpython from python_configdir
16671 ac_python_libdir=`$PYTHON -c \
16672 "from distutils.sysconfig import get_python_lib as f; \
16674 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
16675 PYTHON_LIBS="-L$ac_python_libdir -lpython$ac_python_version"
16678 if test -z "PYTHON_LIBS"; then
16680 Cannot determine location of your Python DSO. Please check it was installed with
16681 dynamic libraries enabled, or try setting PYTHON_LIBS by hand.
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
16686 $as_echo "$PYTHON_LIBS" >&6; }
16690 # Check for site packages
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16693 $as_echo_n "checking for Python site-packages path... " >&6; }
16694 if test -z "$PYTHON_SITE_PKG"; then
16695 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16696 print (distutils.sysconfig.get_python_lib(0,0));"`
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16699 $as_echo "$PYTHON_SITE_PKG" >&6; }
16703 # libraries which must be linked in when embedding
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
16706 $as_echo_n "checking python extra libraries... " >&6; }
16707 if test -z "$PYTHON_EXTRA_LIBS"; then
16708 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
16709 conf = distutils.sysconfig.get_config_var; \
16710 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
16713 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
16717 # linking flags needed when embedding
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
16720 $as_echo_n "checking python extra linking flags... " >&6; }
16721 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
16722 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
16723 conf = distutils.sysconfig.get_config_var; \
16724 print (conf('LINKFORSHARED'))"`
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
16727 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
16731 # final check to see if everything compiles alright
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16734 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16735 # save current global flags
16736 ac_save_LIBS="$LIBS"
16737 ac_save_LDFLAGS="$LDFLAGS"
16738 ac_save_CPPFLAGS="$CPPFLAGS"
16739 LIBS="$ac_save_LIBS $PYTHON_LIBS $PYTHON_EXTRA_LIBS $PYTHON_EXTRA_LIBS"
16740 LDFLAGS="$ac_save_LDFLAGS $PYTHON_EXTRA_LDFLAGS"
16741 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
16743 ac_cpp='$CPP $CPPFLAGS'
16744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16751 #include <Python.h>
16761 if ac_fn_c_try_link "$LINENO"; then :
16766 rm -f core conftest.err conftest.$ac_objext \
16767 conftest$ac_exeext conftest.$ac_ext
16769 ac_cpp='$CXXCPP $CPPFLAGS'
16770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16774 # turn back to default flags
16775 CPPFLAGS="$ac_save_CPPFLAGS"
16776 LIBS="$ac_save_LIBS"
16777 LDFLAGS="$ac_save_LDFLAGS"
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16780 $as_echo "$pythonexists" >&6; }
16782 if test ! "x$pythonexists" = "xyes"; then
16783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16786 Could not link test program to Python. Maybe the main Python library has been
16787 installed in some non-standard library path. If so, pass it to configure,
16788 via the LIBS environment variable.
16789 Example: ./configure LIBS=\"-L/usr/non-standard-path/python/lib\"
16790 ============================================================================
16792 You probably have to install the development version of the Python package
16793 for your distribution. The exact name of this package varies among them.
16794 ============================================================================
16796 See \`config.log' for more details" "$LINENO" 5; }
16806 # Check whether --enable-special was given.
16807 if test "${enable_special+set}" = set; then :
16808 enableval=$enable_special;
16813 if test "x$enable_special" != xno; then
16815 HAVE_SPECIAL_FALSE='#'
16817 HAVE_SPECIAL_TRUE='#'
16818 HAVE_SPECIAL_FALSE=
16822 # --enable-bin enables script and bin "extensions".
16823 # Check whether --enable-bin was given.
16824 if test "${enable_bin+set}" = set; then :
16825 enableval=$enable_bin;
16830 if test "x$enable_bin" != xno; then
16838 if test "x$enable_bin" != xno; then
16840 HAVE_SCRIPT_FALSE='#'
16842 HAVE_SCRIPT_TRUE='#'
16847 # --enable-fsts is an alias to enable FST SO extensions: compact, const,
16848 # linear, lookahead, and ngram.
16849 # Check whether --enable-fsts was given.
16850 if test "${enable_fsts+set}" = set; then :
16851 enableval=$enable_fsts;
16856 if test "x$enable_fsts" != xno; then
16858 HAVE_FSTS_FALSE='#'
16865 # --enable-grm is an alias to enable all dependencies of OpenGrm: far, mpdt,
16867 # Check whether --enable-grm was given.
16868 if test "${enable_grm+set}" = set; then :
16869 enableval=$enable_grm;
16874 if test "x$enable_grm" != xno; then
16884 # Check whether --with-libfstdir was given.
16885 if test "${with_libfstdir+set}" = set; then :
16886 withval=$with_libfstdir;
16888 with_libfstdir=${libdir}/fst
16892 libfstdir=$with_libfstdir
16895 # Flags may be changed after configuring, so this is checked again by
16896 # weight_test.cc. The check here is to save time in the common case,
16897 # or when someone does not run `make check`.
16898 if test "$cross_compiling" = yes; then :
16899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16901 as_fn_error $? "cannot run test program while cross compiling
16902 See \`config.log' for more details" "$LINENO" 5; }
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16909 template <typename T>
16910 bool FloatEqIsReflexive(T m) {
16911 volatile T x = 1.111;
16924 volatile double test_value = 1.1;
16925 if (!FloatEqIsReflexive(static_cast<float>(test_value))) {
16926 printf("float FAIL\n");
16929 if (!FloatEqIsReflexive(test_value)) {
16930 printf("double FAIL\n");
16938 if ac_fn_cxx_try_run "$LINENO"; then :
16939 echo "Float equality is good"
16941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16943 as_fn_error $? "Test float equality failed! Compile with -msse -mfpmath=sse if using g++.
16944 See \`config.log' for more details" "$LINENO" 5; }
16946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16947 conftest.$ac_objext conftest.beam conftest.$ac_ext
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16953 if ${ac_cv_lib_dl_dlopen+:} false; then :
16954 $as_echo_n "(cached) " >&6
16956 ac_check_lib_save_LIBS=$LIBS
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16976 if ac_fn_cxx_try_link "$LINENO"; then :
16977 ac_cv_lib_dl_dlopen=yes
16979 ac_cv_lib_dl_dlopen=no
16981 rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16993 cat >confcache <<\_ACEOF
16994 # This file is a shell script that caches the results of configure
16995 # tests run on this system so they can be shared between configure
16996 # scripts and configure runs, see configure's option --config-cache.
16997 # It is not useful on other systems. If it contains results you don't
16998 # want to keep, you may remove or edit it.
17000 # config.status only pays attention to the cache file if you give it
17001 # the --recheck option to rerun configure.
17003 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17004 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17005 # following values.
17009 # The following way of writing the cache mishandles newlines in values,
17010 # but we know of no workaround that is simple, portable, and efficient.
17011 # So, we kill variables containing newlines.
17012 # Ultrix sh set writes to stderr and can't be redirected directly,
17013 # and sets the high bit in the cache file unless we assign to the vars.
17015 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17016 eval ac_val=\$$ac_var
17020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17021 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17024 _ | IFS | as_nl) ;; #(
17025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17026 *) { eval $ac_var=; unset $ac_var;} ;;
17032 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17033 *${as_nl}ac_space=\ *)
17034 # `set' does not quote correctly, so add quotes: double-quote
17035 # substitution turns \\\\ into \\, and sed turns \\ into \.
17038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17041 # `set' quotes correctly as required by POSIX, so do not add quotes.
17042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17053 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17056 if test -w "$cache_file"; then
17057 if test "x$cache_file" != "x/dev/null"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17059 $as_echo "$as_me: updating cache $cache_file" >&6;}
17060 if test ! -f "$cache_file" || test -h "$cache_file"; then
17061 cat confcache >"$cache_file"
17063 case $cache_file in #(
17065 mv -f confcache "$cache_file"$$ &&
17066 mv -f "$cache_file"$$ "$cache_file" ;; #(
17068 mv -f confcache "$cache_file" ;;
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17074 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17080 # Let make expand exec_prefix.
17081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17083 DEFS=-DHAVE_CONFIG_H
17088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17089 # 1. Remove the extension, and $U if already installed.
17090 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17091 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17092 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17093 # will be set to the directory where LIBOBJS objects are built.
17094 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17095 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17097 LIBOBJS=$ac_libobjs
17099 LTLIBOBJS=$ac_ltlibobjs
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17103 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17104 if test -n "$am_sleep_pid"; then
17105 # Hide warnings about reused PIDs.
17106 wait $am_sleep_pid 2>/dev/null
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17109 $as_echo "done" >&6; }
17110 if test -n "$EXEEXT"; then
17112 am__EXEEXT_FALSE='#'
17114 am__EXEEXT_TRUE='#'
17118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17119 as_fn_error $? "conditional \"AMDEP\" was never defined.
17120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17123 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17126 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17127 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17130 if test -z "${HAVE_COMPACT_TRUE}" && test -z "${HAVE_COMPACT_FALSE}"; then
17131 as_fn_error $? "conditional \"HAVE_COMPACT\" was never defined.
17132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17134 if test -z "${HAVE_COMPRESS_TRUE}" && test -z "${HAVE_COMPRESS_FALSE}"; then
17135 as_fn_error $? "conditional \"HAVE_COMPRESS\" was never defined.
17136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17138 if test -z "${HAVE_CONST_TRUE}" && test -z "${HAVE_CONST_FALSE}"; then
17139 as_fn_error $? "conditional \"HAVE_CONST\" was never defined.
17140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17142 if test -z "${HAVE_FAR_TRUE}" && test -z "${HAVE_FAR_FALSE}"; then
17143 as_fn_error $? "conditional \"HAVE_FAR\" was never defined.
17144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146 if test -z "${HAVE_LINEAR_TRUE}" && test -z "${HAVE_LINEAR_FALSE}"; then
17147 as_fn_error $? "conditional \"HAVE_LINEAR\" was never defined.
17148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17150 if test -z "${HAVE_LOOKAHEAD_TRUE}" && test -z "${HAVE_LOOKAHEAD_FALSE}"; then
17151 as_fn_error $? "conditional \"HAVE_LOOKAHEAD\" was never defined.
17152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17154 if test -z "${HAVE_MPDT_TRUE}" && test -z "${HAVE_MPDT_FALSE}"; then
17155 as_fn_error $? "conditional \"HAVE_MPDT\" was never defined.
17156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17158 if test -z "${HAVE_NGRAM_TRUE}" && test -z "${HAVE_NGRAM_FALSE}"; then
17159 as_fn_error $? "conditional \"HAVE_NGRAM\" was never defined.
17160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17162 if test -z "${HAVE_PDT_TRUE}" && test -z "${HAVE_PDT_FALSE}"; then
17163 as_fn_error $? "conditional \"HAVE_PDT\" was never defined.
17164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17166 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17167 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17170 if test -z "${HAVE_SPECIAL_TRUE}" && test -z "${HAVE_SPECIAL_FALSE}"; then
17171 as_fn_error $? "conditional \"HAVE_SPECIAL\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17174 if test -z "${HAVE_BIN_TRUE}" && test -z "${HAVE_BIN_FALSE}"; then
17175 as_fn_error $? "conditional \"HAVE_BIN\" was never defined.
17176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17178 if test -z "${HAVE_SCRIPT_TRUE}" && test -z "${HAVE_SCRIPT_FALSE}"; then
17179 as_fn_error $? "conditional \"HAVE_SCRIPT\" was never defined.
17180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17182 if test -z "${HAVE_FSTS_TRUE}" && test -z "${HAVE_FSTS_FALSE}"; then
17183 as_fn_error $? "conditional \"HAVE_FSTS\" was never defined.
17184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17186 if test -z "${HAVE_GRM_TRUE}" && test -z "${HAVE_GRM_FALSE}"; then
17187 as_fn_error $? "conditional \"HAVE_GRM\" was never defined.
17188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17191 : "${CONFIG_STATUS=./config.status}"
17193 ac_clean_files_save=$ac_clean_files
17194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17200 # Generated by $as_me.
17201 # Run this file to recreate the current configuration.
17202 # Compiler output produced by configure, useful for debugging
17203 # configure, is in config.log if it exists.
17206 ac_cs_recheck=false
17209 SHELL=\${CONFIG_SHELL-$SHELL}
17212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17213 ## -------------------- ##
17214 ## M4sh Initialization. ##
17215 ## -------------------- ##
17217 # Be more Bourne compatible
17218 DUALCASE=1; export DUALCASE # for MKS sh
17219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17223 # is contrary to our usage. Disable this feature.
17224 alias -g '${1+"$@"}'='"$@"'
17225 setopt NO_GLOB_SUBST
17227 case `(set -o) 2>/dev/null` in #(
17239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17243 # Prefer a ksh shell builtin over an external printf program on Solaris,
17244 # but without wasting forks for bash or zsh.
17245 if test -z "$BASH_VERSION$ZSH_VERSION" \
17246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17247 as_echo='print -r --'
17248 as_echo_n='print -rn --'
17249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17250 as_echo='printf %s\n'
17251 as_echo_n='printf %s'
17253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17255 as_echo_n='/usr/ucb/echo -n'
17257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17258 as_echo_n_body='eval
17262 expr "X$arg" : "X\\(.*\\)$as_nl";
17263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17267 export as_echo_n_body
17268 as_echo_n='sh -c $as_echo_n_body as_echo'
17270 export as_echo_body
17271 as_echo='sh -c $as_echo_body as_echo'
17274 # The user is always right.
17275 if test "${PATH_SEPARATOR+set}" != set; then
17277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17285 # We need space, tab and new line, in precisely that order. Quoting is
17286 # there to prevent editors from complaining about space-tab.
17287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17288 # splitting by setting IFS to empty value.)
17291 # Find who we are. Look in the path if we contain no directory separator.
17294 *[\\/]* ) as_myself=$0 ;;
17295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296 for as_dir in $PATH
17299 test -z "$as_dir" && as_dir=.
17300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17306 # We did not find ourselves, most probably we were run as `sh COMMAND'
17307 # in which case we are not to be found in the path.
17308 if test "x$as_myself" = x; then
17311 if test ! -f "$as_myself"; then
17312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17316 # Unset variables that we do not need and which cause bugs (e.g. in
17317 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17318 # suppresses any "Segmentation fault" message there. '((' could
17319 # trigger a bug in pdksh 5.2.14.
17320 for as_var in BASH_ENV ENV MAIL MAILPATH
17321 do eval test x\${$as_var+set} = xset \
17322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17339 # ----------------------------------------
17340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17342 # script with STATUS, using 1 if that was 0.
17345 as_status=$1; test $as_status -eq 0 && as_status=1
17347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17350 $as_echo "$as_me: error: $2" >&2
17351 as_fn_exit $as_status
17355 # as_fn_set_status STATUS
17356 # -----------------------
17357 # Set $? to STATUS, without forking.
17358 as_fn_set_status ()
17361 } # as_fn_set_status
17363 # as_fn_exit STATUS
17364 # -----------------
17365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17369 as_fn_set_status $1
17375 # Portably unset VAR.
17378 { eval $1=; unset $1;}
17380 as_unset=as_fn_unset
17381 # as_fn_append VAR VALUE
17382 # ----------------------
17383 # Append the text in VALUE to the end of the definition contained in VAR. Take
17384 # advantage of any shell optimizations that allow amortized linear growth over
17385 # repeated appends, instead of the typical quadratic growth present in naive
17387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17388 eval 'as_fn_append ()
17399 # as_fn_arith ARG...
17400 # ------------------
17401 # Perform arithmetic evaluation on the ARGs, and store the result in the
17402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17403 # must be portable across $(()) and expr.
17404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17405 eval 'as_fn_arith ()
17412 as_val=`expr "$@" || test $? -eq 1`
17417 if expr a : '\(a\)' >/dev/null 2>&1 &&
17418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17425 as_basename=basename
17430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17436 as_me=`$as_basename -- "$0" ||
17437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17438 X"$0" : 'X\(//\)$' \| \
17439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17441 sed '/^.*\/\([^/][^/]*\)\/*$/{
17455 # Avoid depending upon Character Ranges.
17456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17459 as_cr_digits='0123456789'
17460 as_cr_alnum=$as_cr_Letters$as_cr_digits
17462 ECHO_C= ECHO_N= ECHO_T=
17463 case `echo -n x` in #(((((
17465 case `echo 'xy\c'` in
17466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17475 rm -f conf$$ conf$$.exe conf$$.file
17476 if test -d conf$$.dir; then
17477 rm -f conf$$.dir/conf$$.file
17480 mkdir conf$$.dir 2>/dev/null
17482 if (echo >conf$$.file) 2>/dev/null; then
17483 if ln -s conf$$.file conf$$ 2>/dev/null; then
17485 # ... but there are two gotchas:
17486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17488 # In both cases, we have to default to `cp -pR'.
17489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17491 elif ln conf$$.file conf$$ 2>/dev/null; then
17499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17500 rmdir conf$$.dir 2>/dev/null
17505 # Create "$as_dir" as a directory, including parents if necessary.
17510 -*) as_dir=./$as_dir;;
17512 test -d "$as_dir" || eval $as_mkdir_p || {
17516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17517 *) as_qdir=$as_dir;;
17519 as_dirs="'$as_qdir' $as_dirs"
17520 as_dir=`$as_dirname -- "$as_dir" ||
17521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$as_dir" : 'X\(//\)[^/]' \| \
17523 X"$as_dir" : 'X\(//\)$' \| \
17524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17525 $as_echo X"$as_dir" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17530 /^X\(\/\/\)[^/].*/{
17543 test -d "$as_dir" && break
17545 test -z "$as_dirs" || eval "mkdir $as_dirs"
17546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17550 if mkdir -p . 2>/dev/null; then
17551 as_mkdir_p='mkdir -p "$as_dir"'
17553 test -d ./-p && rmdir ./-p
17558 # as_fn_executable_p FILE
17559 # -----------------------
17560 # Test if FILE is an executable regular file.
17561 as_fn_executable_p ()
17563 test -f "$1" && test -x "$1"
17564 } # as_fn_executable_p
17565 as_test_x='test -x'
17566 as_executable_p=as_fn_executable_p
17568 # Sed expression to map a string onto a valid CPP name.
17569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17571 # Sed expression to map a string onto a valid variable name.
17572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17576 ## ----------------------------------- ##
17577 ## Main body of $CONFIG_STATUS script. ##
17578 ## ----------------------------------- ##
17580 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17583 # Save the log message, to keep $0 and so on meaningful, and to
17584 # report actual input values of CONFIG_FILES etc. instead of their
17585 # values after options handling.
17587 This file was extended by OpenFst $as_me 1.7.8, which was
17588 generated by GNU Autoconf 2.69. Invocation command line was
17590 CONFIG_FILES = $CONFIG_FILES
17591 CONFIG_HEADERS = $CONFIG_HEADERS
17592 CONFIG_LINKS = $CONFIG_LINKS
17593 CONFIG_COMMANDS = $CONFIG_COMMANDS
17596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17601 case $ac_config_files in *"
17602 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17605 case $ac_config_headers in *"
17606 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17611 # Files that config.status was made for.
17612 config_files="$ac_config_files"
17613 config_headers="$ac_config_headers"
17614 config_commands="$ac_config_commands"
17618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17620 \`$as_me' instantiates files and other configuration actions
17621 from templates according to the current configuration. Unless the files
17622 and actions are specified as TAGs, all are instantiated by default.
17624 Usage: $0 [OPTION]... [TAG]...
17626 -h, --help print this help, then exit
17627 -V, --version print version number and configuration settings, then exit
17628 --config print configuration, then exit
17629 -q, --quiet, --silent
17630 do not print progress messages
17631 -d, --debug don't remove temporary files
17632 --recheck update $as_me by reconfiguring in the same conditions
17633 --file=FILE[:TEMPLATE]
17634 instantiate the configuration file FILE
17635 --header=FILE[:TEMPLATE]
17636 instantiate the configuration header FILE
17638 Configuration files:
17641 Configuration headers:
17644 Configuration commands:
17647 Report bugs to <help@www.openfst.org>."
17650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17651 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17653 OpenFst config.status 1.7.8
17654 configured by $0, generated by GNU Autoconf 2.69,
17655 with options \\"\$ac_cs_config\\"
17657 Copyright (C) 2012 Free Software Foundation, Inc.
17658 This config.status script is free software; the Free Software Foundation
17659 gives unlimited permission to copy, distribute and modify it."
17666 test -n "\$AWK" || AWK=awk
17669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17670 # The default lists apply if the user does not specify any file.
17676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17677 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17681 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17693 # Handling of the options.
17694 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17696 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17697 $as_echo "$ac_cs_version"; exit ;;
17698 --config | --confi | --conf | --con | --co | --c )
17699 $as_echo "$ac_cs_config"; exit ;;
17700 --debug | --debu | --deb | --de | --d | -d )
17702 --file | --fil | --fi | --f )
17705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17706 '') as_fn_error $? "missing file argument" ;;
17708 as_fn_append CONFIG_FILES " '$ac_optarg'"
17709 ac_need_defaults=false;;
17710 --header | --heade | --head | --hea )
17713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17715 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17716 ac_need_defaults=false;;
17718 # Conflict between --help and --header
17719 as_fn_error $? "ambiguous option: \`$1'
17720 Try \`$0 --help' for more information.";;
17721 --help | --hel | -h )
17722 $as_echo "$ac_cs_usage"; exit ;;
17723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17724 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17727 # This is an error.
17728 -*) as_fn_error $? "unrecognized option: \`$1'
17729 Try \`$0 --help' for more information." ;;
17731 *) as_fn_append ac_config_targets " $1"
17732 ac_need_defaults=false ;;
17738 ac_configure_extra_args=
17740 if $ac_cs_silent; then
17742 ac_configure_extra_args="$ac_configure_extra_args --silent"
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 if \$ac_cs_recheck; then
17748 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17750 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17751 CONFIG_SHELL='$SHELL'
17752 export CONFIG_SHELL
17757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17762 ## Running $as_me. ##
17768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17772 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17775 # The HP-UX ksh and POSIX shell print the target directory to stdout
17776 # if CDPATH is set.
17777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17779 sed_quote_subst='$sed_quote_subst'
17780 double_quote_subst='$double_quote_subst'
17781 delay_variable_subst='$delay_variable_subst'
17782 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17783 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17784 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17785 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17786 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17787 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17788 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17789 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17790 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17791 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17812 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17813 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17814 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17815 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17817 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17818 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17819 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17820 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17824 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17825 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17826 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17827 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17828 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17829 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17830 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17831 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17832 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17833 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17834 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17835 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17836 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17837 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17838 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17839 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17840 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"`'
17841 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17842 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17843 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17844 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17845 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17846 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17847 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17848 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17849 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17850 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17851 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17852 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17853 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17854 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17855 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17856 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17857 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17858 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17859 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17860 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17861 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17862 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17863 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17864 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17865 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17866 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17867 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17868 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17869 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17870 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17871 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17872 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17873 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17874 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17875 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17876 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17877 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17878 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17879 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17880 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17881 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17882 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17883 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17884 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17885 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17886 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17887 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17888 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17889 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17890 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17891 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17892 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17893 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17894 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17895 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17896 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17897 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17898 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17899 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17900 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17901 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17902 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17903 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17904 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17905 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17906 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17907 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17908 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17909 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17910 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17911 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17912 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17913 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17914 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17915 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17916 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17917 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17918 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17919 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17920 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17921 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17922 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17923 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17924 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17925 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17926 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17927 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17928 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17929 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17930 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17931 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17932 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17933 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17934 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17935 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17936 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17937 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17938 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17939 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17940 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17941 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17942 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17943 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17944 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17945 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17946 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17947 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17948 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17949 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17950 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17951 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17952 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17953 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17954 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17955 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17956 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17957 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17958 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17959 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17960 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17961 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17962 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17963 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17964 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17965 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17966 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17967 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17968 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17969 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17970 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17973 LTCFLAGS='$LTCFLAGS'
17974 compiler='$compiler_DEFAULT'
17976 # A function that is used when there is no print builtin or printf.
17977 func_fallback_echo ()
17979 eval 'cat <<_LTECHO_EOF
17984 # Quote evaled strings.
17999 deplibs_check_method \
18004 sharedlib_from_linklib_cmd \
18007 archiver_list_spec \
18013 lt_cv_sys_global_symbol_pipe \
18014 lt_cv_sys_global_symbol_to_cdecl \
18015 lt_cv_sys_global_symbol_to_import \
18016 lt_cv_sys_global_symbol_to_c_name_address \
18017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18018 lt_cv_nm_interface \
18019 nm_file_list_spec \
18020 lt_cv_truncate_bin \
18021 lt_prog_compiler_no_builtin_flag \
18022 lt_prog_compiler_pic \
18023 lt_prog_compiler_wl \
18024 lt_prog_compiler_static \
18025 lt_cv_prog_compiler_c_o \
18034 export_dynamic_flag_spec \
18035 whole_archive_flag_spec \
18036 compiler_needs_object \
18038 allow_undefined_flag \
18039 no_undefined_flag \
18040 hardcode_libdir_flag_spec \
18041 hardcode_libdir_separator \
18045 variables_saved_for_relink \
18047 library_names_spec \
18049 install_override_mode \
18053 compiler_lib_search_dirs \
18058 compiler_lib_search_path \
18062 lt_prog_compiler_no_builtin_flag_CXX \
18063 lt_prog_compiler_pic_CXX \
18064 lt_prog_compiler_wl_CXX \
18065 lt_prog_compiler_static_CXX \
18066 lt_cv_prog_compiler_c_o_CXX \
18067 export_dynamic_flag_spec_CXX \
18068 whole_archive_flag_spec_CXX \
18069 compiler_needs_object_CXX \
18071 allow_undefined_flag_CXX \
18072 no_undefined_flag_CXX \
18073 hardcode_libdir_flag_spec_CXX \
18074 hardcode_libdir_separator_CXX \
18075 exclude_expsyms_CXX \
18076 include_expsyms_CXX \
18077 file_list_spec_CXX \
18078 compiler_lib_search_dirs_CXX \
18079 predep_objects_CXX \
18080 postdep_objects_CXX \
18083 compiler_lib_search_path_CXX; do
18084 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18085 *[\\\\\\\`\\"\\\$]*)
18086 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18089 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18094 # Double-quote double-evaled strings.
18095 for var in reload_cmds \
18096 old_postinstall_cmds \
18097 old_postuninstall_cmds \
18099 extract_expsyms_cmds \
18100 old_archive_from_new_cmds \
18101 old_archive_from_expsyms_cmds \
18103 archive_expsym_cmds \
18105 module_expsym_cmds \
18106 export_symbols_cmds \
18110 postuninstall_cmds \
18112 sys_lib_search_path_spec \
18113 configure_time_dlsearch_path \
18114 configure_time_lt_sys_library_path \
18116 old_archive_cmds_CXX \
18117 old_archive_from_new_cmds_CXX \
18118 old_archive_from_expsyms_cmds_CXX \
18120 archive_expsym_cmds_CXX \
18122 module_expsym_cmds_CXX \
18123 export_symbols_cmds_CXX \
18125 postlink_cmds_CXX; do
18126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18127 *[\\\\\\\`\\"\\\$]*)
18128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18136 ac_aux_dir='$ac_aux_dir'
18138 # See if we are running on zsh, and set the options that allow our
18139 # commands through without removal of \ escapes INIT.
18140 if test -n "\${ZSH_VERSION+set}"; then
18141 setopt NO_GLOB_SUBST
18157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18159 # Handling of arguments.
18160 for ac_config_target in $ac_config_targets
18162 case $ac_config_target in
18163 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18164 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18165 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18166 "src/include/fst/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/fst/config.h" ;;
18167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18168 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18169 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18170 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18171 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
18172 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
18173 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
18174 "src/extensions/compact/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compact/Makefile" ;;
18175 "src/extensions/compress/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/compress/Makefile" ;;
18176 "src/extensions/const/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/const/Makefile" ;;
18177 "src/extensions/far/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/far/Makefile" ;;
18178 "src/extensions/linear/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/linear/Makefile" ;;
18179 "src/extensions/lookahead/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/lookahead/Makefile" ;;
18180 "src/extensions/mpdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/mpdt/Makefile" ;;
18181 "src/extensions/ngram/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/ngram/Makefile" ;;
18182 "src/extensions/pdt/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/pdt/Makefile" ;;
18183 "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
18184 "src/extensions/special/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/special/Makefile" ;;
18185 "src/script/Makefile") CONFIG_FILES="$CONFIG_FILES src/script/Makefile" ;;
18187 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18192 # If the user did not use the arguments to specify the items to instantiate,
18193 # then the envvar interface is used. Set only those that are not.
18194 # We use the long form for the default assignment because of an extremely
18195 # bizarre bug on SunOS 4.1.3.
18196 if $ac_need_defaults; then
18197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18202 # Have a temporary directory for convenience. Make it in the build tree
18203 # simply because there is no reason against having it here, and in addition,
18204 # creating and moving files from /tmp can sometimes cause problems.
18205 # Hook for its removal unless debugging.
18206 # Note that there is a small window in which the directory will not be cleaned:
18207 # after its creation but before its name has been assigned to `$tmp'.
18211 trap 'exit_status=$?
18212 : "${ac_tmp:=$tmp}"
18213 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18215 trap 'as_fn_exit 1' 1 2 13 15
18217 # Create a (secure) tmp directory for tmp files.
18220 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18224 tmp=./conf$$-$RANDOM
18225 (umask 077 && mkdir "$tmp")
18226 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18229 # Set up the scripts for CONFIG_FILES section.
18230 # No need to generate them if there are no CONFIG_FILES.
18231 # This happens for instance with `./config.status config.h'.
18232 if test -n "$CONFIG_FILES"; then
18235 ac_cr=`echo X | tr X '\015'`
18236 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18237 # But we know of no other shell where ac_cr would be empty at this
18238 # point, so we can use a bashism as a fallback.
18239 if test "x$ac_cr" = x; then
18240 eval ac_cr=\$\'\\r\'
18242 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18243 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18246 ac_cs_awk_cr=$ac_cr
18249 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18254 echo "cat >conf$$subs.awk <<_ACEOF" &&
18255 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18257 } >conf$$subs.sh ||
18258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18259 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18261 for ac_last_try in false false false false false :; do
18262 . ./conf$$subs.sh ||
18263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18265 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18266 if test $ac_delim_n = $ac_delim_num; then
18268 elif $ac_last_try; then
18269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18274 rm -f conf$$subs.sh
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18281 s/^/S["/; s/!.*/"]=/
18291 s/\(.\{148\}\)..*/\1/
18293 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18305 s/\(.\{148\}\)..*/\1/
18307 s/["\\]/\\&/g; s/^/"/; s/$/"/
18311 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18316 ' <conf$$subs.awk | sed '
18321 ' >>$CONFIG_STATUS || ac_write_fail=1
18322 rm -f conf$$subs.awk
18323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18325 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18326 for (key in S) S_is_set[key] = 1
18332 nfields = split(line, field, "@")
18334 len = length(field[1])
18335 for (i = 2; i < nfields; i++) {
18337 keylen = length(key)
18338 if (S_is_set[key]) {
18340 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18341 len += length(value) + length(field[++i])
18352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18353 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18354 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18357 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18358 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18361 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18362 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18363 # trailing colons and then remove the whole line if VPATH becomes empty
18364 # (actually we leave an empty line to preserve line numbers).
18365 if test "x$srcdir" = x.; then
18366 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18385 fi # test -n "$CONFIG_FILES"
18387 # Set up the scripts for CONFIG_HEADERS section.
18388 # No need to generate them if there are no CONFIG_HEADERS.
18389 # This happens for instance with `./config.status Makefile'.
18390 if test -n "$CONFIG_HEADERS"; then
18391 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18395 # Transform confdefs.h into an awk script `defines.awk', embedded as
18396 # here-document in config.status, that substitutes the proper values into
18397 # config.h.in to produce config.h.
18399 # Create a delimiter string that does not exist in confdefs.h, to ease
18400 # handling of long lines.
18402 for ac_last_try in false false :; do
18403 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18404 if test -z "$ac_tt"; then
18406 elif $ac_last_try; then
18407 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18413 # For the awk script, D is an array of macro values keyed by name,
18414 # likewise P contains macro parameters if any. Preserve backslash
18415 # newline sequences.
18417 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18419 s/.\{148\}/&'"$ac_delim"'/g
18422 s/^[ ]*#[ ]*define[ ][ ]*/ /
18429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18436 D["\1"]=" \3\\\\\\n"\\/p
18438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18443 s/.\{148\}/&'"$ac_delim"'/g
18448 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18451 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18453 ' <confdefs.h | sed '
18454 s/'"$ac_delim"'/"\\\
18455 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458 for (key in D) D_is_set[key] = 1
18461 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18463 split(line, arg, " ")
18464 if (arg[1] == "#") {
18468 defundef = substr(arg[1], 2)
18471 split(mac1, mac2, "(") #)
18473 prefix = substr(line, 1, index(line, defundef) - 1)
18474 if (D_is_set[macro]) {
18475 # Preserve the white space surrounding the "#".
18476 print prefix "define", macro P[macro] D[macro]
18479 # Replace #undef with comments. This is necessary, for example,
18480 # in the case of _POSIX_SOURCE, which is predefined and required
18481 # on some systems where configure will not decide to define it.
18482 if (defundef == "undef") {
18483 print "/*", prefix defundef, macro, "*/"
18491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18492 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18493 fi # test -n "$CONFIG_HEADERS"
18496 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18501 :[FHLC]) ac_mode=$ac_tag; continue;;
18503 case $ac_mode$ac_tag in
18505 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18506 :[FH]-) ac_tag=-:-;;
18507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18524 -) ac_f="$ac_tmp/stdin";;
18525 *) # Look for the file first in the build tree, then in the source tree
18526 # (if the path is not absolute). The absolute path cannot be DOS-style,
18527 # because $ac_f cannot contain `:'.
18531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18533 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18536 as_fn_append ac_file_inputs " '$ac_f'"
18539 # Let's still pretend it is `configure' which instantiates (i.e., don't
18540 # use $as_me), people would be surprised to read:
18541 # /* config.h. Generated by config.status. */
18542 configure_input='Generated from '`
18543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18545 if test x"$ac_file" != x-; then
18546 configure_input="$ac_file. $configure_input"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18548 $as_echo "$as_me: creating $ac_file" >&6;}
18550 # Neutralize special characters interpreted by sed in replacement strings.
18551 case $configure_input in #(
18552 *\&* | *\|* | *\\* )
18553 ac_sed_conf_input=`$as_echo "$configure_input" |
18554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18555 *) ac_sed_conf_input=$configure_input;;
18559 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18565 ac_dir=`$as_dirname -- "$ac_file" ||
18566 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567 X"$ac_file" : 'X\(//\)[^/]' \| \
18568 X"$ac_file" : 'X\(//\)$' \| \
18569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18570 $as_echo X"$ac_file" |
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18575 /^X\(\/\/\)[^/].*/{
18588 as_dir="$ac_dir"; as_fn_mkdir_p
18592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18595 # A ".." for each directory in $ac_dir_suffix.
18596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18597 case $ac_top_builddir_sub in
18598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18602 ac_abs_top_builddir=$ac_pwd
18603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18604 # for backward compatibility:
18605 ac_top_builddir=$ac_top_build_prefix
18608 .) # We are building in place.
18610 ac_top_srcdir=$ac_top_builddir_sub
18611 ac_abs_top_srcdir=$ac_pwd ;;
18612 [\\/]* | ?:[\\/]* ) # Absolute name.
18613 ac_srcdir=$srcdir$ac_dir_suffix;
18614 ac_top_srcdir=$srcdir
18615 ac_abs_top_srcdir=$srcdir ;;
18616 *) # Relative name.
18617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18618 ac_top_srcdir=$ac_top_build_prefix$srcdir
18619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18634 ac_MKDIR_P=$MKDIR_P
18636 [\\/$]* | ?:[\\/]* ) ;;
18637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 # If the template does not know about datarootdir, expand it.
18643 # FIXME: This hack should be removed a few years after 2.60.
18644 ac_datarootdir_hack=; ac_datarootdir_seen=
18655 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18656 *datarootdir*) ac_datarootdir_seen=yes;;
18657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18659 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 ac_datarootdir_hack='
18663 s&@datadir@&$datadir&g
18664 s&@docdir@&$docdir&g
18665 s&@infodir@&$infodir&g
18666 s&@localedir@&$localedir&g
18667 s&@mandir@&$mandir&g
18668 s&\\\${datarootdir}&$datarootdir&g' ;;
18672 # Neutralize VPATH when `$srcdir' = `.'.
18673 # Shell code in configure.ac might set extrasub.
18674 # FIXME: do we really want to maintain this feature?
18675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18676 ac_sed_extra="$ac_vpsub
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18682 s|@configure_input@|$ac_sed_conf_input|;t t
18683 s&@top_builddir@&$ac_top_builddir_sub&;t t
18684 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18685 s&@srcdir@&$ac_srcdir&;t t
18686 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18687 s&@top_srcdir@&$ac_top_srcdir&;t t
18688 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18689 s&@builddir@&$ac_builddir&;t t
18690 s&@abs_builddir@&$ac_abs_builddir&;t t
18691 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18692 s&@INSTALL@&$ac_INSTALL&;t t
18693 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18694 $ac_datarootdir_hack
18696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18697 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18702 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18704 which seems to be undefined. Please make sure it is defined" >&5
18705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18706 which seems to be undefined. Please make sure it is defined" >&2;}
18708 rm -f "$ac_tmp/stdin"
18710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18719 if test x"$ac_file" != x-; then
18721 $as_echo "/* $configure_input */" \
18722 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18723 } >"$ac_tmp/config.h" \
18724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18725 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18730 mv "$ac_tmp/config.h" "$ac_file" \
18731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18734 $as_echo "/* $configure_input */" \
18735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18736 || as_fn_error $? "could not create -" "$LINENO" 5
18738 # Compute "$ac_file"'s index in $config_headers.
18741 for _am_header in $config_headers :; do
18742 case $_am_header in
18743 $_am_arg | $_am_arg:* )
18746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18751 X"$_am_arg" : 'X\(//\)[^/]' \| \
18752 X"$_am_arg" : 'X\(//\)$' \| \
18753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18754 $as_echo X"$_am_arg" |
18755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18759 /^X\(\/\/\)[^/].*/{
18771 s/.*/./; q'`/stamp-h$_am_stamp_count
18774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18775 $as_echo "$as_me: executing $ac_file commands" >&6;}
18780 case $ac_file$ac_mode in
18781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18782 # Older Autoconf quotes --file arguments for eval, but not when files
18783 # are listed without --file. Let's play safe and only enable the eval
18784 # if we detect the quoting.
18785 # TODO: see whether this extra hack can be removed once we start
18786 # requiring Autoconf 2.70 or later.
18787 case $CONFIG_FILES in #(
18789 eval set x "$CONFIG_FILES" ;; #(
18791 set x $CONFIG_FILES ;; #(
18796 # Used to flag and report bootstrapping failures.
18800 # Strip MF so we end up with the name of the file.
18801 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18802 # Check whether this is an Automake generated Makefile which includes
18803 # dependency-tracking related rules and includes.
18804 # Grep'ing the whole file directly is not great: AIX grep has a line
18805 # limit of 2048, but all sed's we know have understand at least 4000.
18806 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18808 am_dirpart=`$as_dirname -- "$am_mf" ||
18809 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18810 X"$am_mf" : 'X\(//\)[^/]' \| \
18811 X"$am_mf" : 'X\(//\)$' \| \
18812 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18813 $as_echo X"$am_mf" |
18814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18818 /^X\(\/\/\)[^/].*/{
18831 am_filepart=`$as_basename -- "$am_mf" ||
18832 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18833 X"$am_mf" : 'X\(//\)$' \| \
18834 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18835 $as_echo X/"$am_mf" |
18836 sed '/^.*\/\([^/][^/]*\)\/*$/{
18849 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18850 && sed -e '/# am--include-marker/d' "$am_filepart" \
18851 | $MAKE -f - am--depfiles" >&5
18852 (cd "$am_dirpart" \
18853 && sed -e '/# am--include-marker/d' "$am_filepart" \
18854 | $MAKE -f - am--depfiles) >&5 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } || am_rc=$?
18859 if test $am_rc -ne 0; then
18860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18862 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18863 for automatic dependency tracking. Try re-running configure with the
18864 '--disable-dependency-tracking' option to at least be able to build
18865 the package (albeit without support for automatic dependency tracking).
18866 See \`config.log' for more details" "$LINENO" 5; }
18868 { am_dirpart=; unset am_dirpart;}
18869 { am_filepart=; unset am_filepart;}
18870 { am_mf=; unset am_mf;}
18871 { am_rc=; unset am_rc;}
18872 rm -f conftest-deps.mk
18877 # See if we are running on zsh, and set the options that allow our
18878 # commands through without removal of \ escapes.
18879 if test -n "${ZSH_VERSION+set}"; then
18880 setopt NO_GLOB_SUBST
18884 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18887 cat <<_LT_EOF >> "$cfgfile"
18889 # Generated automatically by $as_me ($PACKAGE) $VERSION
18890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18892 # Provide generalized library-building support services.
18893 # Written by Gordon Matzigkeit, 1996
18895 # Copyright (C) 2014 Free Software Foundation, Inc.
18896 # This is free software; see the source for copying conditions. There is NO
18897 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18899 # GNU Libtool is free software; you can redistribute it and/or modify
18900 # it under the terms of the GNU General Public License as published by
18901 # the Free Software Foundation; either version 2 of of the License, or
18902 # (at your option) any later version.
18904 # As a special exception to the GNU General Public License, if you
18905 # distribute this file as part of a program or library that is built
18906 # using GNU Libtool, you may include this file under the same
18907 # distribution terms that you use for the rest of that program.
18909 # GNU Libtool is distributed in the hope that it will be useful, but
18910 # WITHOUT ANY WARRANTY; without even the implied warranty of
18911 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18912 # GNU General Public License for more details.
18914 # You should have received a copy of the GNU General Public License
18915 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18918 # The names of the tagged configurations supported by this script.
18919 available_tags='CXX '
18921 # Configured defaults for sys_lib_dlsearch_path munging.
18922 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18924 # ### BEGIN LIBTOOL CONFIG
18926 # Whether or not to build static libraries.
18927 build_old_libs=$enable_static
18929 # Which release of libtool.m4 was used?
18930 macro_version=$macro_version
18931 macro_revision=$macro_revision
18933 # Whether or not to build shared libraries.
18934 build_libtool_libs=$enable_shared
18936 # What type of objects to build.
18939 # Whether or not to optimize for fast installation.
18940 fast_install=$enable_fast_install
18942 # Shared archive member basename,for filename based shared library versioning on AIX.
18943 shared_archive_member_spec=$shared_archive_member_spec
18945 # Shell to use when invoking shell scripts.
18948 # An echo program that protects backslashes.
18951 # The PATH separator for the build system.
18952 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18955 host_alias=$host_alias
18959 # The build system.
18960 build_alias=$build_alias
18964 # A sed program that does not truncate output.
18967 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18968 Xsed="\$SED -e 1s/^X//"
18970 # A grep program that handles long lines.
18976 # A literal string matcher.
18979 # A BSD- or MS-compatible name lister.
18982 # Whether we need soft or hard links.
18985 # What is the maximum length of a command?
18986 max_cmd_len=$max_cmd_len
18988 # Object file suffix (normally "o").
18991 # Executable file suffix (normally "").
18994 # whether the shell understands "unset".
18997 # turn spaces into newlines.
19000 # turn newlines into spaces.
19003 # convert \$build file names to \$host format.
19004 to_host_file_cmd=$lt_cv_to_host_file_cmd
19006 # convert \$build files to toolchain format.
19007 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19009 # An object symbol dumper.
19010 OBJDUMP=$lt_OBJDUMP
19012 # Method to check whether dependent libraries are shared objects.
19013 deplibs_check_method=$lt_deplibs_check_method
19015 # Command to use when deplibs_check_method = "file_magic".
19016 file_magic_cmd=$lt_file_magic_cmd
19018 # How to find potential files when deplibs_check_method = "file_magic".
19019 file_magic_glob=$lt_file_magic_glob
19021 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19022 want_nocaseglob=$lt_want_nocaseglob
19024 # DLL creation program.
19025 DLLTOOL=$lt_DLLTOOL
19027 # Command to associate shared and link libraries.
19028 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19033 # Flags to create an archive.
19034 AR_FLAGS=$lt_AR_FLAGS
19036 # How to feed a file listing to the archiver.
19037 archiver_list_spec=$lt_archiver_list_spec
19039 # A symbol stripping program.
19042 # Commands used to install an old-style archive.
19044 old_postinstall_cmds=$lt_old_postinstall_cmds
19045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19047 # Whether to use a lock for old archive extraction.
19048 lock_old_archive_extraction=$lock_old_archive_extraction
19053 # LTCC compiler flags.
19054 LTCFLAGS=$lt_CFLAGS
19056 # Take the output of nm and produce a listing of raw symbols and C names.
19057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19059 # Transform the output of nm in a proper C declaration.
19060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19062 # Transform the output of nm into a list of symbols to manually relocate.
19063 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19065 # Transform the output of nm in a C name address pair.
19066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068 # Transform the output of nm in a C name address pair when lib prefix is needed.
19069 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19071 # The name lister interface.
19072 nm_interface=$lt_lt_cv_nm_interface
19074 # Specify filename containing input files for \$NM.
19075 nm_file_list_spec=$lt_nm_file_list_spec
19077 # The root where to search for dependent libraries,and where our libraries should be installed.
19078 lt_sysroot=$lt_sysroot
19080 # Command to truncate a binary pipe.
19081 lt_truncate_bin=$lt_lt_cv_truncate_bin
19083 # The name of the directory that contains temporary libtool files.
19086 # Used to examine libraries when file_magic_cmd begins with "file".
19087 MAGIC_CMD=$MAGIC_CMD
19089 # Must we lock files when doing compilation?
19090 need_locks=$lt_need_locks
19093 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19095 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19096 DSYMUTIL=$lt_DSYMUTIL
19098 # Tool to change global to local symbols on Mac OS X.
19101 # Tool to manipulate fat objects and archives on Mac OS X.
19104 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19107 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19108 OTOOL64=$lt_OTOOL64
19110 # Old archive suffix (normally "a").
19113 # Shared library suffix (normally ".so").
19114 shrext_cmds=$lt_shrext_cmds
19116 # The commands to extract the exported symbol list from a shared archive.
19117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19119 # Variables whose values should be saved in libtool wrapper scripts and
19120 # restored at link time.
19121 variables_saved_for_relink=$lt_variables_saved_for_relink
19123 # Do we need the "lib" prefix for modules?
19124 need_lib_prefix=$need_lib_prefix
19126 # Do we need a version for libraries?
19127 need_version=$need_version
19129 # Library versioning type.
19130 version_type=$version_type
19132 # Shared library runtime path variable.
19133 runpath_var=$runpath_var
19135 # Shared library path variable.
19136 shlibpath_var=$shlibpath_var
19138 # Is shlibpath searched before the hard-coded library search path?
19139 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19141 # Format of library name prefix.
19142 libname_spec=$lt_libname_spec
19144 # List of archive names. First name is the real one, the rest are links.
19145 # The last name is the one that the linker finds with -lNAME
19146 library_names_spec=$lt_library_names_spec
19148 # The coded name of the library, if different from the real name.
19149 soname_spec=$lt_soname_spec
19151 # Permission mode override for installation of shared libraries.
19152 install_override_mode=$lt_install_override_mode
19154 # Command to use after installation of a shared archive.
19155 postinstall_cmds=$lt_postinstall_cmds
19157 # Command to use after uninstallation of a shared archive.
19158 postuninstall_cmds=$lt_postuninstall_cmds
19160 # Commands used to finish a libtool library installation in a directory.
19161 finish_cmds=$lt_finish_cmds
19163 # As "finish_cmds", except a single script fragment to be evaled but
19165 finish_eval=$lt_finish_eval
19167 # Whether we should hardcode library paths into libraries.
19168 hardcode_into_libs=$hardcode_into_libs
19170 # Compile-time system search path for libraries.
19171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19173 # Detected run-time system search path for libraries.
19174 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19176 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19177 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19179 # Whether dlopen is supported.
19180 dlopen_support=$enable_dlopen
19182 # Whether dlopen of programs is supported.
19183 dlopen_self=$enable_dlopen_self
19185 # Whether dlopen of statically linked programs is supported.
19186 dlopen_self_static=$enable_dlopen_self_static
19188 # Commands to strip libraries.
19189 old_striplib=$lt_old_striplib
19190 striplib=$lt_striplib
19193 # The linker used to build libraries.
19196 # How to create reloadable object files.
19197 reload_flag=$lt_reload_flag
19198 reload_cmds=$lt_reload_cmds
19200 # Commands used to build an old-style archive.
19201 old_archive_cmds=$lt_old_archive_cmds
19203 # A language specific compiler.
19206 # Is the compiler the GNU compiler?
19209 # Compiler flag to turn off builtin functions.
19210 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19212 # Additional compiler flags for building library objects.
19213 pic_flag=$lt_lt_prog_compiler_pic
19215 # How to pass a linker flag through the compiler.
19216 wl=$lt_lt_prog_compiler_wl
19218 # Compiler flag to prevent dynamic linking.
19219 link_static_flag=$lt_lt_prog_compiler_static
19221 # Does compiler simultaneously support -c and -o options?
19222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19224 # Whether or not to add -lc for building shared libraries.
19225 build_libtool_need_lc=$archive_cmds_need_lc
19227 # Whether or not to disallow shared libs when runtime libs are static.
19228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19230 # Compiler flag to allow reflexive dlopens.
19231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19233 # Compiler flag to generate shared objects directly from archives.
19234 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19236 # Whether the compiler copes with passing no objects directly.
19237 compiler_needs_object=$lt_compiler_needs_object
19239 # Create an old-style archive from a shared archive.
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19242 # Create a temporary old-style archive to link instead of a shared archive.
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19245 # Commands used to build a shared archive.
19246 archive_cmds=$lt_archive_cmds
19247 archive_expsym_cmds=$lt_archive_expsym_cmds
19249 # Commands used to build a loadable module if different from building
19250 # a shared archive.
19251 module_cmds=$lt_module_cmds
19252 module_expsym_cmds=$lt_module_expsym_cmds
19254 # Whether we are building with GNU ld or not.
19255 with_gnu_ld=$lt_with_gnu_ld
19257 # Flag that allows shared libraries with undefined symbols to be built.
19258 allow_undefined_flag=$lt_allow_undefined_flag
19260 # Flag that enforces no undefined symbols.
19261 no_undefined_flag=$lt_no_undefined_flag
19263 # Flag to hardcode \$libdir into a binary during linking.
19264 # This must work even if \$libdir does not exist
19265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19267 # Whether we need a single "-rpath" flag with a separated argument.
19268 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19270 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19271 # DIR into the resulting binary.
19272 hardcode_direct=$hardcode_direct
19274 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19275 # DIR into the resulting binary and the resulting library dependency is
19276 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19277 # library is relocated.
19278 hardcode_direct_absolute=$hardcode_direct_absolute
19280 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19281 # into the resulting binary.
19282 hardcode_minus_L=$hardcode_minus_L
19284 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19285 # into the resulting binary.
19286 hardcode_shlibpath_var=$hardcode_shlibpath_var
19288 # Set to "yes" if building a shared library automatically hardcodes DIR
19289 # into the library and all subsequent libraries and executables linked
19291 hardcode_automatic=$hardcode_automatic
19293 # Set to yes if linker adds runtime paths of dependent libraries
19294 # to runtime path list.
19295 inherit_rpath=$inherit_rpath
19297 # Whether libtool must link a program against all its dependency libraries.
19298 link_all_deplibs=$link_all_deplibs
19300 # Set to "yes" if exported symbols are required.
19301 always_export_symbols=$always_export_symbols
19303 # The commands to list exported symbols.
19304 export_symbols_cmds=$lt_export_symbols_cmds
19306 # Symbols that should not be listed in the preloaded symbols.
19307 exclude_expsyms=$lt_exclude_expsyms
19309 # Symbols that must always be exported.
19310 include_expsyms=$lt_include_expsyms
19312 # Commands necessary for linking programs (against libraries) with templates.
19313 prelink_cmds=$lt_prelink_cmds
19315 # Commands necessary for finishing linking programs.
19316 postlink_cmds=$lt_postlink_cmds
19318 # Specify filename containing input files.
19319 file_list_spec=$lt_file_list_spec
19321 # How to hardcode a shared library path into an executable.
19322 hardcode_action=$hardcode_action
19324 # The directories searched by this compiler when creating a shared library.
19325 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19327 # Dependencies to place before and after the objects being linked to
19328 # create a shared library.
19329 predep_objects=$lt_predep_objects
19330 postdep_objects=$lt_postdep_objects
19331 predeps=$lt_predeps
19332 postdeps=$lt_postdeps
19334 # The library search path used internally by the compiler when linking
19335 # a shared library.
19336 compiler_lib_search_path=$lt_compiler_lib_search_path
19338 # ### END LIBTOOL CONFIG
19342 cat <<'_LT_EOF' >> "$cfgfile"
19344 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19346 # func_munge_path_list VARIABLE PATH
19347 # -----------------------------------
19348 # VARIABLE is name of variable containing _space_ separated list of
19349 # directories to be munged by the contents of PATH, which is string
19352 # string "DIR[ DIR]" will be prepended to VARIABLE
19354 # string "DIR[ DIR]" will be appended to VARIABLE
19355 # "DIRP[:DIRP]::[DIRA:]DIRA"
19356 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19357 # "DIRA[ DIRA]" will be appended to VARIABLE
19359 # VARIABLE will be replaced by "DIR[ DIR]"
19360 func_munge_path_list ()
19366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19369 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19372 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19373 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19382 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19383 func_cc_basename ()
19385 for cc_temp in $*""; do
19387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19397 # ### END FUNCTIONS SHARED WITH CONFIGURE
19403 cat <<\_LT_EOF >> "$cfgfile"
19404 # AIX sometimes has problems with the GCC collect2 program. For some
19405 # reason, if we set the COLLECT_NAMES environment variable, the problems
19406 # vanish in a puff of smoke.
19407 if test set != "${COLLECT_NAMES+set}"; then
19409 export COLLECT_NAMES
19416 ltmain=$ac_aux_dir/ltmain.sh
19419 # We use sed instead of cat because bash on DJGPP gets confused if
19420 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19421 # text mode, it properly converts lines to CR/LF. This bash problem
19422 # is reportedly fixed, but why not run on old versions too?
19423 sed '$q' "$ltmain" >> "$cfgfile" \
19424 || (rm -f "$cfgfile"; exit 1)
19426 mv -f "$cfgfile" "$ofile" ||
19427 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19431 cat <<_LT_EOF >> "$ofile"
19433 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19435 # The linker used to build libraries.
19438 # How to create reloadable object files.
19439 reload_flag=$lt_reload_flag_CXX
19440 reload_cmds=$lt_reload_cmds_CXX
19442 # Commands used to build an old-style archive.
19443 old_archive_cmds=$lt_old_archive_cmds_CXX
19445 # A language specific compiler.
19446 CC=$lt_compiler_CXX
19448 # Is the compiler the GNU compiler?
19451 # Compiler flag to turn off builtin functions.
19452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19454 # Additional compiler flags for building library objects.
19455 pic_flag=$lt_lt_prog_compiler_pic_CXX
19457 # How to pass a linker flag through the compiler.
19458 wl=$lt_lt_prog_compiler_wl_CXX
19460 # Compiler flag to prevent dynamic linking.
19461 link_static_flag=$lt_lt_prog_compiler_static_CXX
19463 # Does compiler simultaneously support -c and -o options?
19464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19466 # Whether or not to add -lc for building shared libraries.
19467 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19469 # Whether or not to disallow shared libs when runtime libs are static.
19470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19472 # Compiler flag to allow reflexive dlopens.
19473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19475 # Compiler flag to generate shared objects directly from archives.
19476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19478 # Whether the compiler copes with passing no objects directly.
19479 compiler_needs_object=$lt_compiler_needs_object_CXX
19481 # Create an old-style archive from a shared archive.
19482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19484 # Create a temporary old-style archive to link instead of a shared archive.
19485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19487 # Commands used to build a shared archive.
19488 archive_cmds=$lt_archive_cmds_CXX
19489 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19491 # Commands used to build a loadable module if different from building
19492 # a shared archive.
19493 module_cmds=$lt_module_cmds_CXX
19494 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19496 # Whether we are building with GNU ld or not.
19497 with_gnu_ld=$lt_with_gnu_ld_CXX
19499 # Flag that allows shared libraries with undefined symbols to be built.
19500 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19502 # Flag that enforces no undefined symbols.
19503 no_undefined_flag=$lt_no_undefined_flag_CXX
19505 # Flag to hardcode \$libdir into a binary during linking.
19506 # This must work even if \$libdir does not exist
19507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19509 # Whether we need a single "-rpath" flag with a separated argument.
19510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19512 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19513 # DIR into the resulting binary.
19514 hardcode_direct=$hardcode_direct_CXX
19516 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19517 # DIR into the resulting binary and the resulting library dependency is
19518 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19519 # library is relocated.
19520 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19523 # into the resulting binary.
19524 hardcode_minus_L=$hardcode_minus_L_CXX
19526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19530 # Set to "yes" if building a shared library automatically hardcodes DIR
19531 # into the library and all subsequent libraries and executables linked
19533 hardcode_automatic=$hardcode_automatic_CXX
19535 # Set to yes if linker adds runtime paths of dependent libraries
19536 # to runtime path list.
19537 inherit_rpath=$inherit_rpath_CXX
19539 # Whether libtool must link a program against all its dependency libraries.
19540 link_all_deplibs=$link_all_deplibs_CXX
19542 # Set to "yes" if exported symbols are required.
19543 always_export_symbols=$always_export_symbols_CXX
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19548 # Symbols that should not be listed in the preloaded symbols.
19549 exclude_expsyms=$lt_exclude_expsyms_CXX
19551 # Symbols that must always be exported.
19552 include_expsyms=$lt_include_expsyms_CXX
19554 # Commands necessary for linking programs (against libraries) with templates.
19555 prelink_cmds=$lt_prelink_cmds_CXX
19557 # Commands necessary for finishing linking programs.
19558 postlink_cmds=$lt_postlink_cmds_CXX
19560 # Specify filename containing input files.
19561 file_list_spec=$lt_file_list_spec_CXX
19563 # How to hardcode a shared library path into an executable.
19564 hardcode_action=$hardcode_action_CXX
19566 # The directories searched by this compiler when creating a shared library.
19567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19569 # Dependencies to place before and after the objects being linked to
19570 # create a shared library.
19571 predep_objects=$lt_predep_objects_CXX
19572 postdep_objects=$lt_postdep_objects_CXX
19573 predeps=$lt_predeps_CXX
19574 postdeps=$lt_postdeps_CXX
19576 # The library search path used internally by the compiler when linking
19577 # a shared library.
19578 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19580 # ### END LIBTOOL TAG CONFIG: CXX
19591 ac_clean_files=$ac_clean_files_save
19593 test $ac_write_fail = 0 ||
19594 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19597 # configure is writing to config.log, and then calls config.status.
19598 # config.status does its own redirection, appending to config.log.
19599 # Unfortunately, on DOS this fails, as config.log is still kept open
19600 # by configure, so config.status won't be able to write to it; its
19601 # output is simply discarded. So we exec the FD to /dev/null,
19602 # effectively closing config.log, so it can be properly (re)opened and
19603 # appended to by config.status. When coming back to configure, we
19604 # need to make the FD available again.
19605 if test "$no_create" != yes; then
19607 ac_config_status_args=
19608 test "$silent" = yes &&
19609 ac_config_status_args="$ac_config_status_args --quiet"
19611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19614 # would make configure fail if this is the last instruction.
19615 $ac_cs_success || as_fn_exit 1
19617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}