2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdatrie 0.2.12.
5 # Report bugs to <theppitak@gmail.com>.
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: theppitak@gmail.com 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='libdatrie'
592 PACKAGE_TARNAME='libdatrie'
593 PACKAGE_VERSION='0.2.12'
594 PACKAGE_STRING='libdatrie 0.2.12'
595 PACKAGE_BUGREPORT='theppitak@gmail.com'
598 ac_unique_file="datrie/trie.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
639 ENABLE_DOXYGEN_DOC_FALSE
640 ENABLE_DOXYGEN_DOC_TRUE
644 LD_HAS_VERSION_SCRIPT_FALSE
645 LD_HAS_VERSION_SCRIPT_TRUE
710 INSTALL_STRIP_PROGRAM
753 program_transform_name
766 enable_option_checking
768 enable_dependency_tracking
780 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 ac_unrecognized_opts=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
910 eval enable_$ac_useropt=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=\$ac_optarg ;;
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
951 -help | --help | --hel | --he | -h)
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 htmldir=$ac_optarg ;;
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
981 -libdir | --libdir | --libdi | --libd)
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
993 -localedir | --localedir | --localedi | --localed | --locale)
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1072 -psdir | --psdir | --psdi | --psd | --ps)
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval with_$ac_useropt=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval with_$ac_useropt=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1236 # Be sure to have absolute directory names.
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1249 target=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1340 \`configure' configures libdatrie 0.2.12 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libdatrie]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of libdatrie 0.2.12:";;
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --enable-shared[=PKGS] build shared libraries [default=yes]
1426 --enable-static[=PKGS] build static libraries [default=yes]
1427 --enable-fast-install[=PKGS]
1428 optimize for fast installation [default=yes]
1429 --disable-libtool-lock avoid locking (might break parallel builds)
1430 --disable-doxygen-doc disable document generation with doxygen
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1437 --with-aix-soname=aix|svr4|both
1438 shared library versioning (aka "SONAME") variant to
1439 provide on AIX, [default=aix].
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1442 compiler's sysroot if not specified).
1443 --with-html-docdir=DIR where to install the doxyten-generated HTML doc
1444 [PREFIX/share/doc/datrie/html]
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1455 User-defined run-time library search path.
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to <theppitak@gmail.com>.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 ac_abs_top_builddir=$ac_pwd
1486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487 # for backward compatibility:
1488 ac_top_builddir=$ac_top_build_prefix
1491 .) # We are building in place.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1524 libdatrie configure 0.2.12
1525 generated by GNU Autoconf 2.69
1527 Copyright (C) 2012 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_compile
1576 # ac_fn_c_try_link LINENO
1577 # -----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext conftest$ac_exeext
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>conftest.err
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest$ac_exeext && {
1602 test "$cross_compiling" = yes ||
1603 test -x conftest$ac_exeext
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614 # interfere with the next link command; also delete a directory that is
1615 # left behind by Apple's compiler. We do this before executing the actions.
1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_link
1622 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623 # -------------------------------------------------------
1624 # Tests whether HEADER exists and can be compiled using the include files in
1625 # INCLUDES, setting the cache variable VAR accordingly.
1626 ac_fn_c_check_header_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1639 if ac_fn_c_try_compile "$LINENO"; then :
1644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 } # ac_fn_c_check_header_compile
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1732 # ac_fn_c_check_func LINENO FUNC VAR
1733 # ----------------------------------
1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1735 ac_fn_c_check_func ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747 #define $2 innocuous_$2
1749 /* System header to define __stub macros and hopefully few prototypes,
1750 which can conflict with char $2 (); below.
1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752 <limits.h> exists even on freestanding compilers. */
1755 # include <limits.h>
1757 # include <assert.h>
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1784 if ac_fn_c_try_link "$LINENO"; then :
1789 rm -f core conftest.err conftest.$ac_objext \
1790 conftest$ac_exeext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_func
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1804 ac_fn_c_check_header_mongrel ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1828 ac_header_compiler=no
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1844 ac_header_preproc=no
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ( $as_echo "## ---------------------------------- ##
1870 ## Report this to theppitak@gmail.com ##
1871 ## ---------------------------------- ##"
1872 ) | sed "s/^/$as_me: WARNING: /" >&2
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 eval "$3=\$ac_header_compiler"
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_header_mongrel
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1928 if ac_fn_c_try_compile "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_type
1943 cat >config.log <<_ACEOF
1944 This file contains any messages produced by compilers while
1945 running configure, to aid debugging if configure makes a mistake.
1947 It was created by libdatrie $as_me 0.2.12, which was
1948 generated by GNU Autoconf 2.69. Invocation command line was
1960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1972 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 $as_echo "PATH: $as_dir"
2000 # Keep a trace of the command line.
2001 # Strip out --no-create and --no-recursion so they do not pile up.
2002 # Strip out --silent because we don't want to record it for future runs.
2003 # Also quote any args containing shell meta-characters.
2004 # Make two passes to allow for proper duplicate-argument suppression.
2008 ac_must_keep_next=false
2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2016 | -silent | --silent | --silen | --sile | --sil)
2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024 as_fn_append ac_configure_args1 " '$ac_arg'"
2025 if test $ac_must_keep_next = true; then
2026 ac_must_keep_next=false # Got value, back to normal.
2029 *=* | --config-cache | -C | -disable-* | --disable-* \
2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2032 | -with-* | --with-* | -without-* | --without-* | --x)
2033 case "$ac_configure_args0 " in
2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037 -* ) ac_must_keep_next=true ;;
2040 as_fn_append ac_configure_args " '$ac_arg'"
2045 { ac_configure_args0=; unset ac_configure_args0;}
2046 { ac_configure_args1=; unset ac_configure_args1;}
2048 # When interrupted or exit'd, cleanup temporary files, and complete
2049 # config.log. We remove comments because anyway the quotes in there
2050 # would cause problems or look ugly.
2051 # WARNING: Use '\'' to represent an apostrophe within the trap.
2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2053 trap 'exit_status=$?
2054 # Save into config.log some information that might help in debugging.
2058 $as_echo "## ---------------- ##
2059 ## Cache variables. ##
2060 ## ---------------- ##"
2062 # The following way of writing the cache mishandles newlines in values,
2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2065 eval ac_val=\$$ac_var
2069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073 _ | IFS | as_nl) ;; #(
2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2075 *) { eval $ac_var=; unset $ac_var;} ;;
2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2081 *${as_nl}ac_space=\ *)
2083 "s/'\''/'\''\\\\'\'''\''/g;
2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 $as_echo "## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##"
2098 for ac_var in $ac_subst_vars
2100 eval ac_val=\$$ac_var
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 $as_echo "$ac_var='\''$ac_val'\''"
2108 if test -n "$ac_subst_files"; then
2109 $as_echo "## ------------------- ##
2110 ## File substitutions. ##
2111 ## ------------------- ##"
2113 for ac_var in $ac_subst_files
2115 eval ac_val=\$$ac_var
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 $as_echo "$ac_var='\''$ac_val'\''"
2124 if test -s confdefs.h; then
2125 $as_echo "## ----------- ##
2132 test "$ac_signal" != 0 &&
2133 $as_echo "$as_me: caught signal $ac_signal"
2134 $as_echo "$as_me: exit $exit_status"
2136 rm -f core *.core core.conftest.* &&
2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140 for ac_signal in 1 2 13 15; do
2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2146 rm -f -r conftest* confdefs.h
2148 $as_echo "/* confdefs.h */" > confdefs.h
2150 # Predefined preprocessor variables.
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_NAME "$PACKAGE_NAME"
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_STRING "$PACKAGE_STRING"
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_URL "$PACKAGE_URL"
2177 # Let the site file select an alternate cache file if it wants to.
2178 # Prefer an explicitly selected file to automatically selected ones.
2181 if test -n "$CONFIG_SITE"; then
2182 # We do not want a PATH search for config.site.
2183 case $CONFIG_SITE in #((
2184 -*) ac_site_file1=./$CONFIG_SITE;;
2185 */*) ac_site_file1=$CONFIG_SITE;;
2186 *) ac_site_file1=./$CONFIG_SITE;;
2188 elif test "x$prefix" != xNONE; then
2189 ac_site_file1=$prefix/share/config.site
2190 ac_site_file2=$prefix/etc/config.site
2192 ac_site_file1=$ac_default_prefix/share/config.site
2193 ac_site_file2=$ac_default_prefix/etc/config.site
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 test "x$ac_site_file" = xNONE && continue
2198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 as_fn_error $? "failed to load site script $ac_site_file
2206 See \`config.log' for more details" "$LINENO" 5; }
2210 if test -r "$cache_file"; then
2211 # Some versions of bash will fail to source /dev/null (special files
2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2215 $as_echo "$as_me: loading cache $cache_file" >&6;}
2217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2218 *) . "./$cache_file";;
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2223 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227 # Check that the precious variables saved in the cache have kept the same
2229 ac_cache_corrupted=false
2230 for ac_var in $ac_precious_vars; do
2231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2232 eval ac_new_set=\$ac_env_${ac_var}_set
2233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2234 eval ac_new_val=\$ac_env_${ac_var}_value
2235 case $ac_old_set,$ac_new_set in
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2243 ac_cache_corrupted=: ;;
2246 if test "x$ac_old_val" != "x$ac_new_val"; then
2247 # differences in whitespace do not lead to failure.
2248 ac_old_val_w=`echo x $ac_old_val`
2249 ac_new_val_w=`echo x $ac_new_val`
2250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2253 ac_cache_corrupted=:
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2257 eval $ac_var=\$ac_old_val
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2265 # Pass precious variables to config.status.
2266 if test "$ac_new_set" = set; then
2268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 *) ac_arg=$ac_var=$ac_new_val ;;
2271 case " $ac_configure_args " in
2272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 if $ac_cache_corrupted; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284 ## -------------------- ##
2285 ## Main body of script. ##
2286 ## -------------------- ##
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296 ac_config_headers="$ac_config_headers config.h"
2299 for ac_dir in build-aux "$srcdir"/build-aux; do
2300 if test -f "$ac_dir/install-sh"; then
2302 ac_install_sh="$ac_aux_dir/install-sh -c"
2304 elif test -f "$ac_dir/install.sh"; then
2306 ac_install_sh="$ac_aux_dir/install.sh -c"
2308 elif test -f "$ac_dir/shtool"; then
2310 ac_install_sh="$ac_aux_dir/shtool install -c"
2314 if test -z "$ac_aux_dir"; then
2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2318 # These three variables are undocumented and unsupported,
2319 # and are intended to be withdrawn in a future Autoconf release.
2320 # They can cause serious problems if a builder's source tree is in a directory
2321 # whose full name contains unusual characters.
2322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2329 am__api_version='1.15'
2331 # Find a good install program. We prefer a C program (faster),
2332 # so one script is as good as another. But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # OS/2's system install, which has a completely different semantic
2343 # ./install, which can be erroneously created by make from ./install.sh.
2344 # Reject install programs that cannot install multiple files.
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2346 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2347 if test -z "$INSTALL"; then
2348 if ${ac_cv_path_install+:} false; then :
2349 $as_echo_n "(cached) " >&6
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 # Account for people who put trailing slashes in PATH elements.
2357 case $as_dir/ in #((
2358 ./ | .// | /[cC]/* | \
2359 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2360 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2363 # OSF1 and SCO ODT 3.0 have their own names for install.
2364 # Don't use installbsd from OSF since it installs stuff as root
2366 for ac_prog in ginstall scoinst install; do
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2369 if test $ac_prog = install &&
2370 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371 # AIX install. It has an incompatible calling convention.
2373 elif test $ac_prog = install &&
2374 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375 # program-specific install script used by HP pwplus--don't use.
2378 rm -rf conftest.one conftest.two conftest.dir
2379 echo one > conftest.one
2380 echo two > conftest.two
2382 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2383 test -s conftest.one && test -s conftest.two &&
2384 test -s conftest.dir/conftest.one &&
2385 test -s conftest.dir/conftest.two
2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2400 rm -rf conftest.one conftest.two conftest.dir
2403 if test "${ac_cv_path_install+set}" = set; then
2404 INSTALL=$ac_cv_path_install
2406 # As a last resort, use the slow shell script. Don't cache a
2407 # value for INSTALL within a source directory, because that will
2408 # break other packages using the cache if that directory is
2409 # removed, or if the value is a relative name.
2410 INSTALL=$ac_install_sh
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2414 $as_echo "$INSTALL" >&6; }
2416 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2417 # It thinks the first close brace ends the variable substitution.
2418 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2420 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2422 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2425 $as_echo_n "checking whether build environment is sane... " >&6; }
2426 # Reject unsafe characters in $srcdir or the absolute working directory
2427 # name. Accept space and tab only in the latter.
2431 *[\\\"\#\$\&\'\`$am_lf]*)
2432 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2436 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2439 # Do 'set' in a subshell so we don't clobber the current shell's
2440 # arguments. Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2446 for am_try in 1 2; do
2447 echo "timestamp, slept: $am_has_slept" > conftest.file
2448 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2449 if test "$*" = "X"; then
2451 set X `ls -t "$srcdir/configure" conftest.file`
2453 if test "$*" != "X $srcdir/configure conftest.file" \
2454 && test "$*" != "X conftest.file $srcdir/configure"; then
2456 # If neither matched, then we have a broken ls. This can happen
2457 # if, for instance, CONFIG_SHELL is bash and it inherits a
2458 # broken ls alias from the environment. This has actually
2459 # happened. Such a system could not be considered "sane".
2460 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2461 alias in your environment" "$LINENO" 5
2463 if test "$2" = conftest.file || test $am_try -eq 2; then
2470 test "$2" = conftest.file
2476 as_fn_error $? "newly created file is older than distributed files!
2477 Check your system clock" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2481 # If we didn't sleep, we still need to ensure time stamps of config.status and
2482 # generated files are strictly newer.
2484 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2491 test "$program_prefix" != NONE &&
2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501 # Expand $ac_aux_dir to an absolute path.
2502 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2504 if test x"${MISSING+set}" != xset; then
2507 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2509 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2512 # Use eval to expand $SHELL
2513 if eval "$MISSING --is-lightweight"; then
2514 am_missing_run="$MISSING "
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2518 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2521 if test x"${install_sh+set}" != xset; then
2524 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526 install_sh="\${SHELL} $am_aux_dir/install-sh"
2530 # Installed binaries are usually stripped using 'strip' when the user
2531 # run "make install-strip". However 'strip' might not be the right
2532 # tool to use in cross-compilation environments, therefore Automake
2533 # will honor the 'STRIP' environment variable to overrule this program.
2534 if test "$cross_compiling" != no; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$STRIP"; then
2544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 STRIP=$ac_cv_prog_STRIP
2564 if test -n "$STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2566 $as_echo "$STRIP" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2574 if test -z "$ac_cv_prog_STRIP"; then
2576 # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$ac_ct_STRIP"; then
2584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_ac_ct_STRIP="strip"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2604 if test -n "$ac_ct_STRIP"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2606 $as_echo "$ac_ct_STRIP" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2612 if test "x$ac_ct_STRIP" = x; then
2615 case $cross_compiling:$ac_tool_warned in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2624 STRIP="$ac_cv_prog_STRIP"
2628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2632 if test -z "$MKDIR_P"; then
2633 if ${ac_cv_path_mkdir+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2640 test -z "$as_dir" && as_dir=.
2641 for ac_prog in mkdir gmkdir; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2645 'mkdir (GNU coreutils) '* | \
2646 'mkdir (coreutils) '* | \
2647 'mkdir (fileutils) '4.1*)
2648 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2658 test -d ./--version && rmdir ./--version
2659 if test "${ac_cv_path_mkdir+set}" = set; then
2660 MKDIR_P="$ac_cv_path_mkdir -p"
2662 # As a last resort, use the slow shell script. Don't cache a
2663 # value for MKDIR_P within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the value is a relative name.
2666 MKDIR_P="$ac_install_sh -d"
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2670 $as_echo "$MKDIR_P" >&6; }
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_AWK+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$AWK" && break
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2717 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2718 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 cat >conftest.make <<\_ACEOF
2724 @echo '@@@%%%=$(MAKE)=@@@%%%'
2726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2729 eval ac_cv_prog_make_${ac_make}_set=yes;;
2731 eval ac_cv_prog_make_${ac_make}_set=no;;
2735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2742 SET_MAKE="MAKE=${MAKE-make}"
2745 rm -rf .tst 2>/dev/null
2746 mkdir .tst 2>/dev/null
2747 if test -d .tst; then
2752 rmdir .tst 2>/dev/null
2754 # Check whether --enable-silent-rules was given.
2755 if test "${enable_silent_rules+set}" = set; then :
2756 enableval=$enable_silent_rules;
2759 case $enable_silent_rules in # (((
2760 yes) AM_DEFAULT_VERBOSITY=0;;
2761 no) AM_DEFAULT_VERBOSITY=1;;
2762 *) AM_DEFAULT_VERBOSITY=1;;
2764 am_make=${MAKE-make}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2766 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2767 if ${am_cv_make_support_nested_variables+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 if $as_echo 'TRUE=$(BAR$(V))
2776 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2777 am_cv_make_support_nested_variables=yes
2779 am_cv_make_support_nested_variables=no
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2783 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2784 if test $am_cv_make_support_nested_variables = yes; then
2786 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2788 AM_V=$AM_DEFAULT_VERBOSITY
2789 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795 # is not polluted with repeated "-I."
2796 am__isrc=' -I$(srcdir)'
2797 # test to see if srcdir already configured
2798 if test -f $srcdir/config.status; then
2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805 if (cygpath --version) >/dev/null 2>/dev/null; then
2806 CYGPATH_W='cygpath -w'
2813 # Define the identity of the package.
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2827 # Some tools Automake needs.
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2843 # For better backward compatibility. To be removed once Automake 1.9.x
2844 # dies out for good. For more background, see:
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2847 mkdir_p='$(MKDIR_P)'
2849 # We need awk for the "check" target (and possibly the TAP driver). The
2850 # system "awk" is bad on some platforms.
2851 # Always define AMTAR for backward compatibility. Yes, it's still used
2852 # in the wild :-( We should find a proper way to deprecate it ...
2856 # We'll loop over all known methods to create a tar archive until one works.
2857 _am_tools='gnutar pax cpio none'
2859 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes. So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present. This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message. This
2885 can help us improve future automake versions.
2888 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889 echo 'Configuration will proceed anyway, since you have set the' >&2
2890 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2894 Aborting the configuration process, to ensure you take notice of the issue.
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2904 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2909 # Library versioning
2910 # Library code modified: REVISION++
2911 # Interfaces added: CURRENT++ REVISION=0 AGE++
2912 # Interfaces changed/removed: CURRENT++ REVISION=0 AGE=0
2920 DOXYGEN_REQ_VER=1.8.8
2922 # Checks for programs.
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$ac_cv_prog_CC"; then
2969 # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_ac_ct_CC="gcc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999 $as_echo "$ac_ct_CC" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3020 if test -z "$CC"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}cc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3061 if test -z "$CC"; then
3062 # Extract the first word of "cc", so it can be a program name with args.
3063 set dummy cc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081 ac_prog_rejected=yes
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 if test $ac_prog_rejected = yes; then
3093 # We found a bogon in the path, so make sure we never use it.
3094 set dummy $ac_cv_prog_CC
3096 if test $# != 0; then
3097 # We chose a different compiler from the bogus one.
3098 # However, it has the same basename, so the bogon will be chosen
3099 # first if we set CC to just the basename; use the full file name.
3101 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 for ac_prog in cl.exe
3121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3158 test -n "$CC" && break
3161 if test -z "$CC"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$ac_ct_CC"; then
3173 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_CC="$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193 if test -n "$ac_ct_CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195 $as_echo "$ac_ct_CC" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$ac_ct_CC" && break
3205 if test "x$ac_ct_CC" = x; then
3208 case $cross_compiling:$ac_tool_warned in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212 ac_tool_warned=yes ;;
3221 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 as_fn_error $? "no acceptable C compiler found in \$PATH
3224 See \`config.log' for more details" "$LINENO" 5; }
3226 # Provide some information about the compiler.
3227 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 for ac_option in --version -v -V -qversion; do
3231 { { ac_try="$ac_compiler $ac_option >&5"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3240 if test -s conftest.err; then
3242 ... rest of stderr output deleted ...
3243 10q' conftest.err >conftest.er1
3244 cat conftest.er1 >&5
3246 rm -f conftest.er1 conftest.err
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 ac_clean_files_save=$ac_clean_files
3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264 # Try to create an executable without -o first, disregard a.out.
3265 # It will help us diagnose broken compilers, and finding out an intuition
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3271 # The possible output files:
3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275 for ac_file in $ac_files
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284 if { { ac_try="$ac_link_default"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_link_default") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3298 # so that the user can short-circuit this test for compilers unknown to
3300 for ac_file in $ac_files ''
3302 test -f "$ac_file" || continue
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307 # We found the default executable, but exeext='' is most
3311 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3313 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 # We set ac_cv_exeext here because the later test for it is not
3316 # safe: cross compilers may not add the suffix if given an `-o'
3317 # argument, so we may need to know it at that point already.
3318 # Even if this section looks crufty: it has the advantage of
3325 test "$ac_cv_exeext" = no && ac_cv_exeext=
3330 if test -z "$ac_file"; then :
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error 77 "C compiler cannot create executables
3339 See \`config.log' for more details" "$LINENO" 5; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345 $as_echo_n "checking for C compiler default output file name... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347 $as_echo "$ac_file" >&6; }
3348 ac_exeext=$ac_cv_exeext
3350 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353 $as_echo_n "checking for suffix of executables... " >&6; }
3354 if { { ac_try="$ac_link"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_link") 2>&5
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }; then :
3365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe'), while it won't with
3369 for ac_file in conftest.exe conftest conftest.*; do
3370 test -f "$ac_file" || continue
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 rm -f conftest conftest$ac_cv_exeext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386 $as_echo "$ac_cv_exeext" >&6; }
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3397 FILE *f = fopen ("conftest.out", "w");
3398 return ferror (f) || fclose (f) != 0;
3404 ac_clean_files="$ac_clean_files conftest.out"
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408 $as_echo_n "checking whether we are cross compiling... " >&6; }
3409 if test "$cross_compiling" != yes; then
3410 { { ac_try="$ac_link"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link") 2>&5
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }
3421 if { ac_try='./conftest$ac_cv_exeext'
3422 { { case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_try") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; }; then
3434 if test "$cross_compiling" = maybe; then
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error $? "cannot run C compiled programs.
3440 If you meant to cross compile, use \`--host'.
3441 See \`config.log' for more details" "$LINENO" 5; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3446 $as_echo "$cross_compiling" >&6; }
3448 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3449 ac_clean_files=$ac_clean_files_save
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3451 $as_echo_n "checking for suffix of object files... " >&6; }
3452 if ${ac_cv_objext+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 rm -f conftest.o conftest.obj
3467 if { { ac_try="$ac_compile"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_compile") 2>&5
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }; then :
3478 for ac_file in conftest.o conftest.obj conftest.*; do
3479 test -f "$ac_file" || continue;
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3487 $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error $? "cannot compute suffix of object files: cannot compile
3493 See \`config.log' for more details" "$LINENO" 5; }
3495 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498 $as_echo "$ac_cv_objext" >&6; }
3499 OBJEXT=$ac_cv_objext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503 if ${ac_cv_c_compiler_gnu+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3520 if ac_fn_c_try_compile "$LINENO"; then :
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531 if test $ac_compiler_gnu = yes; then
3536 ac_test_CFLAGS=${CFLAGS+set}
3537 ac_save_CFLAGS=$CFLAGS
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3540 if ${ac_cv_prog_cc_g+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 ac_save_c_werror_flag=$ac_c_werror_flag
3544 ac_c_werror_flag=yes
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 if ac_fn_c_try_compile "$LINENO"; then :
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3589 if ac_fn_c_try_compile "$LINENO"; then :
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600 $as_echo "$ac_cv_prog_cc_g" >&6; }
3601 if test "$ac_test_CFLAGS" = set; then
3602 CFLAGS=$ac_save_CFLAGS
3603 elif test $ac_cv_prog_cc_g = yes; then
3604 if test "$GCC" = yes; then
3610 if test "$GCC" = yes; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618 if ${ac_cv_prog_cc_c89+:} false; then :
3619 $as_echo_n "(cached) " >&6
3621 ac_cv_prog_cc_c89=no
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3628 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3629 struct buf { int x; };
3630 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3631 static char *e (p, i)
3637 static char *f (char * (*g) (char **, int), char **p, ...)
3642 s = g (p, va_arg (v,int));
3647 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3648 function prototypes and stuff, but not '\xHH' hex character constants.
3649 These don't provoke an error unfortunately, instead are silently treated
3650 as 'x'. The following induces an error, until -std is added to get
3651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3652 array size at least. It's necessary to write '\x00'==0 to get something
3653 that's true only with -std. */
3654 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3657 inside strings and character constants. */
3659 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661 int test (int i, double x);
3662 struct s1 {int (*f) (int a);};
3663 struct s2 {int (*f) (double a);};
3664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3675 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678 CC="$ac_save_CC $ac_arg"
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_c89=$ac_arg
3682 rm -f core conftest.err conftest.$ac_objext
3683 test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 rm -f conftest.$ac_ext
3690 case "x$ac_cv_prog_cc_c89" in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3693 $as_echo "none needed" >&6; } ;;
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3696 $as_echo "unsupported" >&6; } ;;
3698 CC="$CC $ac_cv_prog_cc_c89"
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3700 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3718 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3719 if ${am_cv_prog_cc_c_o+:} false; then :
3720 $as_echo_n "(cached) " >&6
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 # Make sure it works both with $CC and with simple cc.
3734 # Following AC_PROG_CC_C_O, we do the test twice because some
3735 # compilers refuse to overwrite an existing .o file with -o,
3736 # though they will create one.
3737 am_cv_prog_cc_c_o=yes
3739 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3740 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } \
3744 && test -f conftest2.$ac_objext; then
3747 am_cv_prog_cc_c_o=no
3751 rm -f core conftest*
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3755 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3756 if test "$am_cv_prog_cc_c_o" != yes; then
3757 # Losing compiler, so override with the script.
3758 # FIXME: It is wrong to rewrite CC.
3759 # But if we don't then we get into trouble of one sort or another.
3760 # A longer-term fix would be to have automake use am__CC in this case,
3761 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3762 CC="$am_aux_dir/compile $CC"
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 DEPDIR="${am__leading_dot}deps"
3772 ac_config_commands="$ac_config_commands depfiles"
3775 am_make=${MAKE-make}
3776 cat > confinc << 'END'
3778 @echo this is the am__doit target
3781 # If we don't find an include directive, just comment out the code.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3783 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3787 # First try GNU make style include.
3788 echo "include confinc" > confmf
3789 # Ignore all kinds of additional output from 'make'.
3790 case `$am_make -s -f confmf 2> /dev/null` in #(
3791 *the\ am__doit\ target*)
3797 # Now try BSD make style include.
3798 if test "$am__include" = "#"; then
3799 echo '.include "confinc"' > confmf
3800 case `$am_make -s -f confmf 2> /dev/null` in #(
3801 *the\ am__doit\ target*)
3802 am__include=.include
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3811 $as_echo "$_am_result" >&6; }
3812 rm -f confinc confmf
3814 # Check whether --enable-dependency-tracking was given.
3815 if test "${enable_dependency_tracking+set}" = set; then :
3816 enableval=$enable_dependency_tracking;
3819 if test "x$enable_dependency_tracking" != xno; then
3820 am_depcomp="$ac_aux_dir/depcomp"
3824 if test "x$enable_dependency_tracking" != xno; then
3834 depcc="$CC" am_compiler_list=
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3837 $as_echo_n "checking dependency style of $depcc... " >&6; }
3838 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842 # We make a subdir and do the tests there. Otherwise we can end up
3843 # making bogus files that we don't know about and never remove. For
3844 # instance it was reported that on HP-UX the gcc test will end up
3845 # making a dummy file named 'D' -- because '-MD' means "put the output
3849 # Copy depcomp to subdir because otherwise we won't find it if we're
3850 # using a relative directory.
3851 cp "$am_depcomp" conftest.dir
3853 # We will build objects and dependencies in a subdirectory because
3854 # it helps to detect inapplicable dependency modes. For instance
3855 # both Tru64's cc and ICC support -MD to output dependencies as a
3856 # side effect of compilation, but ICC will put the dependencies in
3857 # the current directory while Tru64 will put them in the object
3861 am_cv_CC_dependencies_compiler_type=none
3862 if test "$am_compiler_list" = ""; then
3863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3866 case " $depcc " in #(
3867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3870 for depmode in $am_compiler_list; do
3871 # Setup a source with many dependencies, because some compilers
3872 # like to wrap large dependency lists on column 80 (with \), and
3873 # we should not choose a depcomp mode which is confused by this.
3875 # We need to recreate these files for each test, as the compiler may
3876 # overwrite some of them when testing with obscure command lines.
3877 # This happens at least with the AIX C compiler.
3879 for i in 1 2 3 4 5 6; do
3880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3881 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3882 # Solaris 10 /bin/sh.
3883 echo '/* dummy */' > sub/conftst$i.h
3885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3887 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3888 # mode. It turns out that the SunPro C++ compiler does not properly
3889 # handle '-M -o', and we need to detect this. Also, some Intel
3890 # versions had trouble with output in subdirs.
3891 am__obj=sub/conftest.${OBJEXT-o}
3892 am__minus_obj="-o $am__obj"
3895 # This depmode causes a compiler race in universal mode.
3896 test "$am__universal" = false || continue
3899 # After this tag, mechanisms are not by side-effect, so they'll
3900 # only be used when explicitly requested.
3901 if test "x$enable_dependency_tracking" = xyes; then
3907 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3908 # This compiler won't grok '-c -o', but also, the minuso test has
3909 # not run yet. These depmodes are late enough in the game, and
3910 # so weak that their functioning should not be impacted.
3911 am__obj=conftest.${OBJEXT-o}
3916 if depmode=$depmode \
3917 source=sub/conftest.c object=$am__obj \
3918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3920 >/dev/null 2>conftest.err &&
3921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3925 # icc doesn't choke on unknown options, it will just issue warnings
3926 # or remarks (even with -Werror). So we grep stderr for any message
3927 # that says an option was ignored or not supported.
3928 # When given -MP, icc 7.0 and 7.1 complain thusly:
3929 # icc: Command line warning: ignoring option '-M'; no argument required
3930 # The diagnosis changed in icc 8.0:
3931 # icc: Command line remark: option '-MP' not supported
3932 if (grep 'ignoring option' conftest.err ||
3933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3934 am_cv_CC_dependencies_compiler_type=$depmode
3943 am_cv_CC_dependencies_compiler_type=none
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3948 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3952 test "x$enable_dependency_tracking" != xno \
3953 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3955 am__fastdepCC_FALSE='#'
3957 am__fastdepCC_TRUE='#'
3958 am__fastdepCC_FALSE=
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3964 $as_echo_n "checking whether ln -s works... " >&6; }
3966 if test "$LN_S" = "ln -s"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3971 $as_echo "no, using $LN_S" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3978 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3979 $as_echo_n "(cached) " >&6
3981 cat >conftest.make <<\_ACEOF
3984 @echo '@@@%%%=$(MAKE)=@@@%%%'
3986 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3989 eval ac_cv_prog_make_${ac_make}_set=yes;;
3991 eval ac_cv_prog_make_${ac_make}_set=no;;
3995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997 $as_echo "yes" >&6; }
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 SET_MAKE="MAKE=${MAKE-make}"
4005 # Make sure we can run config.sub.
4006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4007 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4010 $as_echo_n "checking build system type... " >&6; }
4011 if ${ac_cv_build+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 ac_build_alias=$build_alias
4015 test "x$ac_build_alias" = x &&
4016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4017 test "x$ac_build_alias" = x &&
4018 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4019 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4020 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4024 $as_echo "$ac_cv_build" >&6; }
4025 case $ac_cv_build in
4027 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4030 ac_save_IFS=$IFS; IFS='-'
4036 # Remember, the first character of IFS is used to create $*,
4037 # except with old shells:
4040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4044 $as_echo_n "checking host system type... " >&6; }
4045 if ${ac_cv_host+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 if test "x$host_alias" = x; then
4049 ac_cv_host=$ac_cv_build
4051 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4052 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4057 $as_echo "$ac_cv_host" >&6; }
4060 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4063 ac_save_IFS=$IFS; IFS='-'
4069 # Remember, the first character of IFS is used to create $*,
4070 # except with old shells:
4073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4076 enable_win32_dll=yes
4079 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}as; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if ${ac_cv_prog_AS+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$AS"; then
4089 ac_cv_prog_AS="$AS" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_AS="${ac_tool_prefix}as"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$AS"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4111 $as_echo "$AS" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4119 if test -z "$ac_cv_prog_AS"; then
4121 # Extract the first word of "as", so it can be a program name with args.
4122 set dummy as; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$ac_ct_AS"; then
4129 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_AS="as"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4149 if test -n "$ac_ct_AS"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4151 $as_echo "$ac_ct_AS" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4157 if test "x$ac_ct_AS" = x; then
4160 case $cross_compiling:$ac_tool_warned in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_DLLTOOL+:} false; then :
4178 $as_echo_n "(cached) " >&6
4180 if test -n "$DLLTOOL"; then
4181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 DLLTOOL=$ac_cv_prog_DLLTOOL
4201 if test -n "$DLLTOOL"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4203 $as_echo "$DLLTOOL" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4211 if test -z "$ac_cv_prog_DLLTOOL"; then
4212 ac_ct_DLLTOOL=$DLLTOOL
4213 # Extract the first word of "dlltool", so it can be a program name with args.
4214 set dummy dlltool; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -n "$ac_ct_DLLTOOL"; then
4221 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4241 if test -n "$ac_ct_DLLTOOL"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4243 $as_echo "$ac_ct_DLLTOOL" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4249 if test "x$ac_ct_DLLTOOL" = x; then
4252 case $cross_compiling:$ac_tool_warned in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4256 ac_tool_warned=yes ;;
4258 DLLTOOL=$ac_ct_DLLTOOL
4261 DLLTOOL="$ac_cv_prog_DLLTOOL"
4264 if test -n "$ac_tool_prefix"; then
4265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_OBJDUMP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$OBJDUMP"; then
4273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 OBJDUMP=$ac_cv_prog_OBJDUMP
4293 if test -n "$OBJDUMP"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4295 $as_echo "$OBJDUMP" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4303 if test -z "$ac_cv_prog_OBJDUMP"; then
4304 ac_ct_OBJDUMP=$OBJDUMP
4305 # Extract the first word of "objdump", so it can be a program name with args.
4306 set dummy objdump; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$ac_ct_OBJDUMP"; then
4313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4333 if test -n "$ac_ct_OBJDUMP"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4335 $as_echo "$ac_ct_OBJDUMP" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4341 if test "x$ac_ct_OBJDUMP" = x; then
4344 case $cross_compiling:$ac_tool_warned in
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4350 OBJDUMP=$ac_ct_OBJDUMP
4353 OBJDUMP="$ac_cv_prog_OBJDUMP"
4359 test -z "$AS" && AS=as
4365 test -z "$DLLTOOL" && DLLTOOL=dlltool
4371 test -z "$OBJDUMP" && OBJDUMP=objdump
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4382 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4387 macro_version='2.4.6'
4388 macro_revision='2.4.6'
4402 ltmain=$ac_aux_dir/ltmain.sh
4404 # Backslashify metacharacters that are still active within
4405 # double-quoted strings.
4406 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4408 # Same as above, but do not quote variable references.
4409 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4411 # Sed substitution to delay expansion of an escaped shell variable in a
4412 # double_quote_subst'ed string.
4413 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4415 # Sed substitution to delay expansion of an escaped single quote.
4416 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4418 # Sed substitution to avoid accidental globbing in evaled expressions
4419 no_glob_subst='s/\*/\\\*/g'
4421 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4422 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4426 $as_echo_n "checking how to print strings... " >&6; }
4427 # Test print first, because it will be a builtin if present.
4428 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4429 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4431 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4434 # Use this function as a fallback that always works.
4435 func_fallback_echo ()
4437 eval 'cat <<_LTECHO_EOF
4441 ECHO='func_fallback_echo'
4444 # func_echo_all arg...
4445 # Invoke $ECHO with all args, space-separated.
4452 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4453 $as_echo "printf" >&6; } ;;
4454 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4455 $as_echo "print -r" >&6; } ;;
4456 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4457 $as_echo "cat" >&6; } ;;
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4474 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4475 if ${ac_cv_path_SED+:} false; then :
4476 $as_echo_n "(cached) " >&6
4478 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4479 for ac_i in 1 2 3 4 5 6 7; do
4480 ac_script="$ac_script$as_nl$ac_script"
4482 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4483 { ac_script=; unset ac_script;}
4484 if test -z "$SED"; then
4485 ac_path_SED_found=false
4486 # Loop through the user's path and test for each of PROGNAME-LIST
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 test -z "$as_dir" && as_dir=.
4492 for ac_prog in sed gsed; do
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4495 as_fn_executable_p "$ac_path_SED" || continue
4496 # Check for GNU ac_path_SED and select it if it is found.
4497 # Check for GNU $ac_path_SED
4498 case `"$ac_path_SED" --version 2>&1` in
4500 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4503 $as_echo_n 0123456789 >"conftest.in"
4506 cat "conftest.in" "conftest.in" >"conftest.tmp"
4507 mv "conftest.tmp" "conftest.in"
4508 cp "conftest.in" "conftest.nl"
4509 $as_echo '' >> "conftest.nl"
4510 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4512 as_fn_arith $ac_count + 1 && ac_count=$as_val
4513 if test $ac_count -gt ${ac_path_SED_max-0}; then
4514 # Best one so far, save it but keep looking for a better one
4515 ac_cv_path_SED="$ac_path_SED"
4516 ac_path_SED_max=$ac_count
4518 # 10*(2^10) chars as input seems more than enough
4519 test $ac_count -gt 10 && break
4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4524 $ac_path_SED_found && break 3
4529 if test -z "$ac_cv_path_SED"; then
4530 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4538 $as_echo "$ac_cv_path_SED" >&6; }
4539 SED="$ac_cv_path_SED"
4542 test -z "$SED" && SED=sed
4543 Xsed="$SED -e 1s/^X//"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if ${ac_cv_path_GREP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 if test -z "$GREP"; then
4561 ac_path_GREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in grep ggrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571 as_fn_executable_p "$ac_path_GREP" || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573 # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4579 $as_echo_n 0123456789 >"conftest.in"
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'GREP' >> "conftest.nl"
4586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_GREP="$ac_path_GREP"
4592 ac_path_GREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 $ac_path_GREP_found && break 3
4605 if test -z "$ac_cv_path_GREP"; then
4606 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 ac_cv_path_GREP=$GREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615 GREP="$ac_cv_path_GREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if ${ac_cv_path_EGREP+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624 then ac_cv_path_EGREP="$GREP -E"
4626 if test -z "$EGREP"; then
4627 ac_path_EGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in egrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 as_fn_executable_p "$ac_path_EGREP" || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639 # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4645 $as_echo_n 0123456789 >"conftest.in"
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'EGREP' >> "conftest.nl"
4652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_EGREP="$ac_path_EGREP"
4658 ac_path_EGREP_max=$ac_count
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 $ac_path_EGREP_found && break 3
4671 if test -z "$ac_cv_path_EGREP"; then
4672 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 ac_cv_path_EGREP=$EGREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682 EGREP="$ac_cv_path_EGREP"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4686 $as_echo_n "checking for fgrep... " >&6; }
4687 if ${ac_cv_path_FGREP+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4691 then ac_cv_path_FGREP="$GREP -F"
4693 if test -z "$FGREP"; then
4694 ac_path_FGREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in fgrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4704 as_fn_executable_p "$ac_path_FGREP" || continue
4705 # Check for GNU ac_path_FGREP and select it if it is found.
4706 # Check for GNU $ac_path_FGREP
4707 case `"$ac_path_FGREP" --version 2>&1` in
4709 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4712 $as_echo_n 0123456789 >"conftest.in"
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'FGREP' >> "conftest.nl"
4719 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_FGREP="$ac_path_FGREP"
4725 ac_path_FGREP_max=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 $ac_path_FGREP_found && break 3
4738 if test -z "$ac_cv_path_FGREP"; then
4739 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 ac_cv_path_FGREP=$FGREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4748 $as_echo "$ac_cv_path_FGREP" >&6; }
4749 FGREP="$ac_cv_path_FGREP"
4752 test -z "$GREP" && GREP=grep
4772 # Check whether --with-gnu-ld was given.
4773 if test "${with_gnu_ld+set}" = set; then :
4774 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4780 if test yes = "$GCC"; then
4781 # Check if gcc -print-prog-name=ld gives a path.
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4783 $as_echo_n "checking for ld used by $CC... " >&6; }
4786 # gcc leaves a trailing carriage return, which upsets mingw
4787 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4789 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4792 # Accept absolute paths.
4794 re_direlt='/[^/][^/]*/\.\./'
4795 # Canonicalize the pathname of ld
4796 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4797 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4798 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4800 test -z "$LD" && LD=$ac_prog
4803 # If it fails, then pretend we aren't using GCC.
4807 # If it is relative, then search for the first ld in PATH.
4811 elif test yes = "$with_gnu_ld"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4813 $as_echo_n "checking for GNU ld... " >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4816 $as_echo_n "checking for non-GNU ld... " >&6; }
4818 if ${lt_cv_path_LD+:} false; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -z "$LD"; then
4822 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4823 for ac_dir in $PATH; do
4825 test -z "$ac_dir" && ac_dir=.
4826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4827 lt_cv_path_LD=$ac_dir/$ac_prog
4828 # Check to see if the program is GNU ld. I'd rather use --version,
4829 # but apparently some variants of GNU ld only accept -v.
4830 # Break only if it was the GNU/non-GNU ld that we prefer.
4831 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4832 *GNU* | *'with BFD'*)
4833 test no != "$with_gnu_ld" && break
4836 test yes != "$with_gnu_ld" && break
4843 lt_cv_path_LD=$LD # Let the user override the test with a path.
4848 if test -n "$LD"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4850 $as_echo "$LD" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4858 if ${lt_cv_prog_gnu_ld+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4862 case `$LD -v 2>&1 </dev/null` in
4863 *GNU* | *'with BFD'*)
4864 lt_cv_prog_gnu_ld=yes
4867 lt_cv_prog_gnu_ld=no
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4872 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4873 with_gnu_ld=$lt_cv_prog_gnu_ld
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4884 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4885 if ${lt_cv_path_NM+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$NM"; then
4889 # Let the user override the test.
4892 lt_nm_to_check=${ac_tool_prefix}nm
4893 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4894 lt_nm_to_check="$lt_nm_to_check nm"
4896 for lt_tmp_nm in $lt_nm_to_check; do
4897 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4898 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4900 test -z "$ac_dir" && ac_dir=.
4901 tmp_nm=$ac_dir/$lt_tmp_nm
4902 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4903 # Check to see if the nm accepts a BSD-compat flag.
4904 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4905 # nm: unknown option "B" ignored
4906 # Tru64's nm complains that /dev/null is an invalid object file
4907 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4909 mingw*) lt_bad_file=conftest.nm/nofile ;;
4910 *) lt_bad_file=/dev/null ;;
4912 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4913 *$lt_bad_file* | *'Invalid file or object type'*)
4914 lt_cv_path_NM="$tmp_nm -B"
4918 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4920 lt_cv_path_NM="$tmp_nm -p"
4924 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925 continue # so that we can try to find one that supports BSD flags
4934 : ${lt_cv_path_NM=no}
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4938 $as_echo "$lt_cv_path_NM" >&6; }
4939 if test no != "$lt_cv_path_NM"; then
4942 # Didn't find any BSD compatible name lister, look for dumpbin.
4943 if test -n "$DUMPBIN"; then :
4944 # Let the user override the test.
4946 if test -n "$ac_tool_prefix"; then
4947 for ac_prog in dumpbin "link -dump"
4949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_DUMPBIN+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 if test -n "$DUMPBIN"; then
4957 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 DUMPBIN=$ac_cv_prog_DUMPBIN
4977 if test -n "$DUMPBIN"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4979 $as_echo "$DUMPBIN" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 test -n "$DUMPBIN" && break
4989 if test -z "$DUMPBIN"; then
4990 ac_ct_DUMPBIN=$DUMPBIN
4991 for ac_prog in dumpbin "link -dump"
4993 # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy $ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 if test -n "$ac_ct_DUMPBIN"; then
5001 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5021 if test -n "$ac_ct_DUMPBIN"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5023 $as_echo "$ac_ct_DUMPBIN" >&6; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 test -n "$ac_ct_DUMPBIN" && break
5033 if test "x$ac_ct_DUMPBIN" = x; then
5036 case $cross_compiling:$ac_tool_warned in
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned=yes ;;
5042 DUMPBIN=$ac_ct_DUMPBIN
5046 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5048 DUMPBIN="$DUMPBIN -symbols -headers"
5056 if test : != "$DUMPBIN"; then
5060 test -z "$NM" && NM=nm
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5068 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5069 if ${lt_cv_nm_interface+:} false; then :
5070 $as_echo_n "(cached) " >&6
5072 lt_cv_nm_interface="BSD nm"
5073 echo "int some_variable = 0;" > conftest.$ac_ext
5074 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5075 (eval "$ac_compile" 2>conftest.err)
5076 cat conftest.err >&5
5077 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5078 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5079 cat conftest.err >&5
5080 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5081 cat conftest.out >&5
5082 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5083 lt_cv_nm_interface="MS dumpbin"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5088 $as_echo "$lt_cv_nm_interface" >&6; }
5090 # find the maximum length of command line arguments
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5092 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5093 if ${lt_cv_sys_max_cmd_len+:} false; then :
5094 $as_echo_n "(cached) " >&6
5101 # On DJGPP, this test can blow up pretty badly due to problems in libc
5102 # (any single argument exceeding 2000 bytes causes a buffer overrun
5103 # during glob expansion). Even if it were fixed, the result of this
5104 # check would be larger than it should be.
5105 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5109 # Under GNU Hurd, this test is not required because there is
5110 # no limit to the length of command line arguments.
5111 # Libtool will interpret -1 as no limit whatsoever
5112 lt_cv_sys_max_cmd_len=-1;
5115 cygwin* | mingw* | cegcc*)
5116 # On Win9x/ME, this test blows up -- it succeeds, but takes
5117 # about 5 minutes as the teststring grows exponentially.
5118 # Worse, since 9x/ME are not pre-emptively multitasking,
5119 # you end up with a "frozen" computer, even though with patience
5120 # the test eventually succeeds (with a max line length of 256k).
5121 # Instead, let's just punt: use the minimum linelength reported by
5122 # all of the supported platforms: 8192 (on NT/2K/XP).
5123 lt_cv_sys_max_cmd_len=8192;
5127 # On MiNT this can take a long time and run out of memory.
5128 lt_cv_sys_max_cmd_len=8192;
5132 # On AmigaOS with pdksh, this test takes hours, literally.
5133 # So we just punt and use a minimum line length of 8192.
5134 lt_cv_sys_max_cmd_len=8192;
5137 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5138 # This has been around since 386BSD, at least. Likely further.
5139 if test -x /sbin/sysctl; then
5140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5141 elif test -x /usr/sbin/sysctl; then
5142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5146 # And add a safety zone
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5152 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5153 lt_cv_sys_max_cmd_len=196608
5157 # The test takes a long time on OS/2.
5158 lt_cv_sys_max_cmd_len=8192
5162 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5163 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5164 # nice to cause kernel panics so lets avoid the loop below.
5165 # First set a reasonable default.
5166 lt_cv_sys_max_cmd_len=16384
5168 if test -x /sbin/sysconfig; then
5169 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5170 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5175 lt_cv_sys_max_cmd_len=102400
5177 sysv5* | sco5v6* | sysv4.2uw2*)
5178 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5179 if test -n "$kargmax"; then
5180 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5182 lt_cv_sys_max_cmd_len=32768
5186 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5187 if test -n "$lt_cv_sys_max_cmd_len" && \
5188 test undefined != "$lt_cv_sys_max_cmd_len"; then
5189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5192 # Make teststring a little bigger before we do anything with it.
5193 # a 1K string should be a reasonable start.
5194 for i in 1 2 3 4 5 6 7 8; do
5195 teststring=$teststring$teststring
5197 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5198 # If test is not a shell built-in, we'll probably end up computing a
5199 # maximum length that is only half of the actual maximum length, but
5201 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5202 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5203 test 17 != "$i" # 1/2 MB should be enough
5206 teststring=$teststring$teststring
5208 # Only check the string length outside the loop.
5209 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5211 # Add a significant safety factor because C++ compilers can tack on
5212 # massive amounts of additional arguments before passing them to the
5213 # linker. It appears as though 1/2 is a usable value.
5214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5221 if test -n "$lt_cv_sys_max_cmd_len"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5223 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5226 $as_echo "none" >&6; }
5228 max_cmd_len=$lt_cv_sys_max_cmd_len
5239 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5249 # test EBCDIC or ASCII
5250 case `echo X|tr X '\101'` in
5251 A) # ASCII based system
5252 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5253 lt_SP2NL='tr \040 \012'
5254 lt_NL2SP='tr \015\012 \040\040'
5256 *) # EBCDIC based system
5257 lt_SP2NL='tr \100 \n'
5258 lt_NL2SP='tr \r\n \100\100'
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5271 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5272 if ${lt_cv_to_host_file_cmd+:} false; then :
5273 $as_echo_n "(cached) " >&6
5278 *-*-mingw* ) # actually msys
5279 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5282 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5284 * ) # otherwise, assume *nix
5285 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5291 *-*-mingw* ) # actually msys
5292 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5295 lt_cv_to_host_file_cmd=func_convert_file_noop
5297 * ) # otherwise, assume *nix
5298 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5302 * ) # unhandled hosts (and "normal" native builds)
5303 lt_cv_to_host_file_cmd=func_convert_file_noop
5309 to_host_file_cmd=$lt_cv_to_host_file_cmd
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5311 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5318 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5319 if ${lt_cv_to_tool_file_cmd+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 #assume ordinary cross tools, or native build.
5323 lt_cv_to_tool_file_cmd=func_convert_file_noop
5327 *-*-mingw* ) # actually msys
5328 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5336 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5338 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5346 if ${lt_cv_ld_reload_flag+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 lt_cv_ld_reload_flag='-r'
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5353 reload_flag=$lt_cv_ld_reload_flag
5354 case $reload_flag in
5356 *) reload_flag=" $reload_flag" ;;
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5360 cygwin* | mingw* | pw32* | cegcc*)
5361 if test yes != "$GCC"; then
5366 if test yes = "$GCC"; then
5367 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 if test -n "$ac_tool_prefix"; then
5383 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_OBJDUMP+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$OBJDUMP"; then
5391 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 OBJDUMP=$ac_cv_prog_OBJDUMP
5411 if test -n "$OBJDUMP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5413 $as_echo "$OBJDUMP" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5421 if test -z "$ac_cv_prog_OBJDUMP"; then
5422 ac_ct_OBJDUMP=$OBJDUMP
5423 # Extract the first word of "objdump", so it can be a program name with args.
5424 set dummy objdump; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ac_ct_OBJDUMP"; then
5431 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5451 if test -n "$ac_ct_OBJDUMP"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5453 $as_echo "$ac_ct_OBJDUMP" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5459 if test "x$ac_ct_OBJDUMP" = x; then
5462 case $cross_compiling:$ac_tool_warned in
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5468 OBJDUMP=$ac_ct_OBJDUMP
5471 OBJDUMP="$ac_cv_prog_OBJDUMP"
5474 test -z "$OBJDUMP" && OBJDUMP=objdump
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5482 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5483 if ${lt_cv_deplibs_check_method+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 lt_cv_file_magic_cmd='$MAGIC_CMD'
5487 lt_cv_file_magic_test_file=
5488 lt_cv_deplibs_check_method='unknown'
5489 # Need to set the preceding variable on all platforms that support
5490 # interlibrary dependencies.
5491 # 'none' -- dependencies not supported.
5492 # 'unknown' -- same as none, but documents that we really don't know.
5493 # 'pass_all' -- all dependencies passed with no checks.
5494 # 'test_compile' -- check by making test program.
5495 # 'file_magic [[regex]]' -- check by looking for files in library path
5496 # that responds to the $file_magic_cmd with a given extended regex.
5497 # If you have 'file' or equivalent on your system and you're not sure
5498 # whether 'pass_all' will *always* work, you probably want this one.
5502 lt_cv_deplibs_check_method=pass_all
5506 lt_cv_deplibs_check_method=pass_all
5510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5511 lt_cv_file_magic_cmd='/usr/bin/file -L'
5512 lt_cv_file_magic_test_file=/shlib/libc.so
5516 # func_win32_libid is a shell function defined in ltmain.sh
5517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518 lt_cv_file_magic_cmd='func_win32_libid'
5522 # Base MSYS/MinGW do not provide the 'file' command needed by
5523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5524 # unless we find 'file', for example because we are cross-compiling.
5525 if ( file / ) >/dev/null 2>&1; then
5526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527 lt_cv_file_magic_cmd='func_win32_libid'
5529 # Keep this pattern in sync with the one in func_win32_libid.
5530 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5531 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 # use the weaker test based on 'objdump'. See mingw*.
5537 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5538 lt_cv_file_magic_cmd='$OBJDUMP -f'
5541 darwin* | rhapsody*)
5542 lt_cv_deplibs_check_method=pass_all
5545 freebsd* | dragonfly*)
5546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549 # Not sure whether the presence of OpenBSD here was a mistake.
5550 # Let's accept both of them until this is cleared up.
5551 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5552 lt_cv_file_magic_cmd=/usr/bin/file
5553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5557 lt_cv_deplibs_check_method=pass_all
5562 lt_cv_deplibs_check_method=pass_all
5565 hpux10.20* | hpux11*)
5566 lt_cv_file_magic_cmd=/usr/bin/file
5569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5573 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]'
5574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5588 irix5* | irix6* | nonstopux*)
5590 *-32|*"-32 ") libmagic=32-bit;;
5591 *-n32|*"-n32 ") libmagic=N32;;
5592 *-64|*"-64 ") libmagic=64-bit;;
5593 *) libmagic=never-match;;
5595 lt_cv_deplibs_check_method=pass_all
5598 # This must be glibc/ELF.
5599 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5600 lt_cv_deplibs_check_method=pass_all
5603 netbsd* | netbsdelf*-gnu)
5604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5613 lt_cv_file_magic_cmd=/usr/bin/file
5614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5618 lt_cv_deplibs_check_method=pass_all
5622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5629 osf3* | osf4* | osf5*)
5630 lt_cv_deplibs_check_method=pass_all
5634 lt_cv_deplibs_check_method=pass_all
5638 lt_cv_deplibs_check_method=pass_all
5641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5642 lt_cv_deplibs_check_method=pass_all
5646 case $host_vendor in
5648 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]'
5649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5652 lt_cv_deplibs_check_method=pass_all
5655 lt_cv_file_magic_cmd='/bin/file'
5656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5659 lt_cv_file_magic_cmd='/bin/file'
5660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5661 lt_cv_file_magic_test_file=/lib/libc.so
5664 lt_cv_deplibs_check_method=pass_all
5667 lt_cv_deplibs_check_method=pass_all
5673 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_deplibs_check_method=pass_all
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5686 if test "$build" = "$host"; then
5689 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5692 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_DLLTOOL+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 if test -n "$DLLTOOL"; then
5732 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 DLLTOOL=$ac_cv_prog_DLLTOOL
5752 if test -n "$DLLTOOL"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5754 $as_echo "$DLLTOOL" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5762 if test -z "$ac_cv_prog_DLLTOOL"; then
5763 ac_ct_DLLTOOL=$DLLTOOL
5764 # Extract the first word of "dlltool", so it can be a program name with args.
5765 set dummy dlltool; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5769 $as_echo_n "(cached) " >&6
5771 if test -n "$ac_ct_DLLTOOL"; then
5772 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5792 if test -n "$ac_ct_DLLTOOL"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5794 $as_echo "$ac_ct_DLLTOOL" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5800 if test "x$ac_ct_DLLTOOL" = x; then
5803 case $cross_compiling:$ac_tool_warned in
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5809 DLLTOOL=$ac_ct_DLLTOOL
5812 DLLTOOL="$ac_cv_prog_DLLTOOL"
5815 test -z "$DLLTOOL" && DLLTOOL=dlltool
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5824 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5825 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5826 $as_echo_n "(cached) " >&6
5828 lt_cv_sharedlib_from_linklib_cmd='unknown'
5831 cygwin* | mingw* | pw32* | cegcc*)
5832 # two different shell functions defined in ltmain.sh;
5833 # decide which one to use based on capabilities of $DLLTOOL
5834 case `$DLLTOOL --help 2>&1` in
5835 *--identify-strict*)
5836 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5839 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5844 # fallback: assume linklib IS sharedlib
5845 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5851 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5852 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5853 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5862 if test -n "$ac_tool_prefix"; then
5865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_AR+:} false; then :
5870 $as_echo_n "(cached) " >&6
5872 if test -n "$AR"; then
5873 ac_cv_prog_AR="$AR" # Let the user override the test.
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 if test -n "$AR"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5895 $as_echo "$AR" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5902 test -n "$AR" && break
5905 if test -z "$AR"; then
5909 # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5914 $as_echo_n "(cached) " >&6
5916 if test -n "$ac_ct_AR"; then
5917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_ac_ct_AR="$ac_prog"
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5937 if test -n "$ac_ct_AR"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5939 $as_echo "$ac_ct_AR" >&6; }
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5946 test -n "$ac_ct_AR" && break
5949 if test "x$ac_ct_AR" = x; then
5952 case $cross_compiling:$ac_tool_warned in
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5976 $as_echo_n "checking for archiver @FILE support... " >&6; }
5977 if ${lt_cv_ar_at_file+:} false; then :
5978 $as_echo_n "(cached) " >&6
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 echo conftest.$ac_objext > conftest.lst
5994 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5996 (eval $lt_ar_try) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }
6000 if test 0 -eq "$ac_status"; then
6001 # Ensure the archiver fails upon bogus file names.
6002 rm -f conftest.$ac_objext libconftest.a
6003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6004 (eval $lt_ar_try) 2>&5
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }
6008 if test 0 -ne "$ac_status"; then
6012 rm -f conftest.* libconftest.a
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6019 $as_echo "$lt_cv_ar_at_file" >&6; }
6021 if test no = "$lt_cv_ar_at_file"; then
6024 archiver_list_spec=$lt_cv_ar_at_file
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}strip; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_STRIP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$STRIP"; then
6042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 STRIP=$ac_cv_prog_STRIP
6062 if test -n "$STRIP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6064 $as_echo "$STRIP" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6072 if test -z "$ac_cv_prog_STRIP"; then
6074 # Extract the first word of "strip", so it can be a program name with args.
6075 set dummy strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$ac_ct_STRIP"; then
6082 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_ac_ct_STRIP="strip"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6102 if test -n "$ac_ct_STRIP"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6104 $as_echo "$ac_ct_STRIP" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6110 if test "x$ac_ct_STRIP" = x; then
6113 case $cross_compiling:$ac_tool_warned in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6122 STRIP="$ac_cv_prog_STRIP"
6125 test -z "$STRIP" && STRIP=:
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_RANLIB+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$RANLIB"; then
6141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 RANLIB=$ac_cv_prog_RANLIB
6161 if test -n "$RANLIB"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6163 $as_echo "$RANLIB" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6171 if test -z "$ac_cv_prog_RANLIB"; then
6172 ac_ct_RANLIB=$RANLIB
6173 # Extract the first word of "ranlib", so it can be a program name with args.
6174 set dummy ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$ac_ct_RANLIB"; then
6181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_RANLIB="ranlib"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6201 if test -n "$ac_ct_RANLIB"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6203 $as_echo "$ac_ct_RANLIB" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6209 if test "x$ac_ct_RANLIB" = x; then
6212 case $cross_compiling:$ac_tool_warned in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6218 RANLIB=$ac_ct_RANLIB
6221 RANLIB="$ac_cv_prog_RANLIB"
6224 test -z "$RANLIB" && RANLIB=:
6231 # Determine commands to create old-style static archives.
6232 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6233 old_postinstall_cmds='chmod 644 $oldlib'
6234 old_postuninstall_cmds=
6236 if test -n "$RANLIB"; then
6239 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6245 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6250 lock_old_archive_extraction=yes ;;
6252 lock_old_archive_extraction=no ;;
6293 # If no C compiler was specified, use CC.
6296 # If no C compiler flags were specified, use CFLAGS.
6297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6299 # Allow CC to be a program name with arguments.
6303 # Check for command to grab the raw symbol name followed by C symbol from nm.
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6305 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6306 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6307 $as_echo_n "(cached) " >&6
6310 # These are sane defaults that work on at least a few old systems.
6311 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6313 # Character class describing NM global symbol codes.
6314 symcode='[BCDEGRST]'
6316 # Regexp to match symbols that can be accessed directly from C.
6317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6319 # Define system-specific variables.
6324 cygwin* | mingw* | pw32* | cegcc*)
6325 symcode='[ABCDGISTW]'
6328 if test ia64 = "$host_cpu"; then
6329 symcode='[ABCDEGRST]'
6333 symcode='[BCDEGRST]'
6336 symcode='[BCDEGQRST]'
6347 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6355 # If we're using GNU nm, then use its standard symbol codes.
6356 case `$NM -V 2>&1` in
6357 *GNU* | *'with BFD'*)
6358 symcode='[ABCDGIRSTW]' ;;
6361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6362 # Gets list of data symbols to import.
6363 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6364 # Adjust the below global symbol transforms to fixup imported variables.
6365 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6366 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6367 lt_c_name_lib_hook="\
6368 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6369 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6371 # Disable hooks by default.
6372 lt_cv_sys_global_symbol_to_import=
6378 # Transform an extracted symbol line into a proper C declaration.
6379 # Some systems (esp. on ia64) link data and code symbols differently,
6380 # so use this general approach.
6381 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6383 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6384 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6386 # Transform an extracted symbol line into symbol name and symbol address
6387 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6389 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6390 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6392 # Transform an extracted symbol line into symbol name with lib prefix and
6394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6395 $lt_c_name_lib_hook\
6396 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6397 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6398 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6400 # Handle CRLF in mingw tool chain
6404 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6408 # Try without a prefix underscore, then with it.
6409 for ac_symprfx in "" "_"; do
6411 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6412 symxfrm="\\1 $ac_symprfx\\2 \\2"
6414 # Write the raw and C identifiers.
6415 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6416 # Fake it for dumpbin and say T for any non-static function,
6417 # D for any global variable and I for any imported variable.
6418 # Also find C++ and __fastcall symbols from MSVC++,
6419 # which start with @ or ?.
6420 lt_cv_sys_global_symbol_pipe="$AWK '"\
6421 " {last_section=section; section=\$ 3};"\
6422 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6423 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6424 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6425 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6426 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6427 " \$ 0!~/External *\|/{next};"\
6428 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6429 " {if(hide[section]) next};"\
6430 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6431 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6432 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6433 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6434 " ' prfx=^$ac_symprfx"
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6438 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6440 # Check to see that the pipe works correctly.
6444 cat > conftest.$ac_ext <<_LT_EOF
6449 void nm_test_func(void);
6450 void nm_test_func(void){}
6454 int main(){nm_test_var='a';nm_test_func();return(0);}
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458 (eval $ac_compile) 2>&5
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; }; then
6462 # Now try to grab the symbols.
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6465 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; } && test -s "$nlist"; then
6469 # Try sorting and uniquifying the output.
6470 if sort "$nlist" | uniq > "$nlist"T; then
6471 mv -f "$nlist"T "$nlist"
6476 # Make sure that we snagged all the symbols we need.
6477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6479 cat <<_LT_EOF > conftest.$ac_ext
6480 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6481 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6482 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6483 relocations are performed -- see ld's documentation on pseudo-relocs. */
6484 # define LT_DLSYM_CONST
6485 #elif defined __osf__
6486 /* This system does not cope well with relocations in const data. */
6487 # define LT_DLSYM_CONST
6489 # define LT_DLSYM_CONST const
6497 # Now generate the symbol file.
6498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6500 cat <<_LT_EOF >> conftest.$ac_ext
6502 /* The mapping between symbol names and symbols. */
6503 LT_DLSYM_CONST struct {
6507 lt__PROGRAM__LTX_preloaded_symbols[] =
6509 { "@PROGRAM@", (void *) 0 },
6511 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6512 cat <<\_LT_EOF >> conftest.$ac_ext
6516 /* This works around a problem in FreeBSD linker */
6517 #ifdef FREEBSD_WORKAROUND
6518 static const void *lt_preloaded_setup() {
6519 return lt__PROGRAM__LTX_preloaded_symbols;
6527 # Now try linking the two files.
6528 mv conftest.$ac_objext conftstm.$ac_objext
6529 lt_globsym_save_LIBS=$LIBS
6530 lt_globsym_save_CFLAGS=$CFLAGS
6531 LIBS=conftstm.$ac_objext
6532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6534 (eval $ac_link) 2>&5
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6540 LIBS=$lt_globsym_save_LIBS
6541 CFLAGS=$lt_globsym_save_CFLAGS
6543 echo "cannot find nm_test_func in $nlist" >&5
6546 echo "cannot find nm_test_var in $nlist" >&5
6549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552 echo "$progname: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 rm -rf conftest* conftst*
6557 # Do not use the global_symbol_pipe unless it works.
6558 if test yes = "$pipe_works"; then
6561 lt_cv_sys_global_symbol_pipe=
6567 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6568 lt_cv_sys_global_symbol_to_cdecl=
6570 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6572 $as_echo "failed" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6575 $as_echo "ok" >&6; }
6578 # Response file support.
6579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580 nm_file_list_spec='@'
6581 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6582 nm_file_list_spec='@'
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6622 $as_echo_n "checking for sysroot... " >&6; }
6624 # Check whether --with-sysroot was given.
6625 if test "${with_sysroot+set}" = set; then :
6626 withval=$with_sysroot;
6633 case $with_sysroot in #(
6635 if test yes = "$GCC"; then
6636 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6640 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6646 $as_echo "$with_sysroot" >&6; }
6647 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6652 $as_echo "${lt_sysroot:-no}" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6659 $as_echo_n "checking for a working dd... " >&6; }
6660 if ${ac_cv_path_lt_DD+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 printf 0123456789abcdef0123456789abcdef >conftest.i
6664 cat conftest.i conftest.i >conftest2.i
6666 if test -z "$lt_DD"; then
6667 ac_path_lt_DD_found=false
6668 # Loop through the user's path and test for each of PROGNAME-LIST
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 test -z "$as_dir" && as_dir=.
6674 for ac_prog in dd; do
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6677 as_fn_executable_p "$ac_path_lt_DD" || continue
6678 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6679 cmp -s conftest.i conftest.out \
6680 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6682 $ac_path_lt_DD_found && break 3
6687 if test -z "$ac_cv_path_lt_DD"; then
6691 ac_cv_path_lt_DD=$lt_DD
6694 rm -f conftest.i conftest2.i conftest.out
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6697 $as_echo "$ac_cv_path_lt_DD" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6701 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6702 if ${lt_cv_truncate_bin+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 printf 0123456789abcdef0123456789abcdef >conftest.i
6706 cat conftest.i conftest.i >conftest2.i
6708 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6709 cmp -s conftest.i conftest.out \
6710 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6712 rm -f conftest.i conftest2.i conftest.out
6713 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6716 $as_echo "$lt_cv_truncate_bin" >&6; }
6724 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6727 for cc_temp in $*""; do
6729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6735 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6738 # Check whether --enable-libtool-lock was given.
6739 if test "${enable_libtool_lock+set}" = set; then :
6740 enableval=$enable_libtool_lock;
6743 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6745 # Some flags need to be propagated to the compiler or linker for good
6749 # Find out what ABI is being produced by ac_compile, and set mode
6750 # options accordingly.
6751 echo 'int i;' > conftest.$ac_ext
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 case `/usr/bin/file conftest.$ac_objext` in
6769 # Find out what ABI is being produced by ac_compile, and set linker
6770 # options accordingly.
6771 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 if test yes = "$lt_cv_prog_gnu_ld"; then
6778 case `/usr/bin/file conftest.$ac_objext` in
6780 LD="${LD-ld} -melf32bsmip"
6783 LD="${LD-ld} -melf32bmipn32"
6786 LD="${LD-ld} -melf64bmip"
6790 case `/usr/bin/file conftest.$ac_objext` in
6807 # Find out what ABI is being produced by ac_compile, and set linker
6808 # options accordingly.
6809 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811 (eval $ac_compile) 2>&5
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; }; then
6816 case `/usr/bin/file conftest.$ac_objext` in
6824 case `/usr/bin/file conftest.$ac_objext` in
6826 emul="${emul}btsmip"
6829 emul="${emul}ltsmip"
6832 case `/usr/bin/file conftest.$ac_objext` in
6837 LD="${LD-ld} -m $emul"
6842 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6843 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6844 # Find out what ABI is being produced by ac_compile, and set linker
6845 # options accordingly. Note that the listed cases only cover the
6846 # situations where additional linker options are needed (such as when
6847 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6848 # vice versa); the common cases where no linker options are needed do
6849 # not appear in the list.
6850 echo 'int i;' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 case `/usr/bin/file conftest.o` in
6859 x86_64-*kfreebsd*-gnu)
6860 LD="${LD-ld} -m elf_i386_fbsd"
6863 case `/usr/bin/file conftest.o` in
6865 LD="${LD-ld} -m elf32_x86_64"
6868 LD="${LD-ld} -m elf_i386"
6872 powerpc64le-*linux*)
6873 LD="${LD-ld} -m elf32lppclinux"
6876 LD="${LD-ld} -m elf32ppclinux"
6879 LD="${LD-ld} -m elf_s390"
6882 LD="${LD-ld} -m elf32_sparc"
6888 x86_64-*kfreebsd*-gnu)
6889 LD="${LD-ld} -m elf_x86_64_fbsd"
6892 LD="${LD-ld} -m elf_x86_64"
6895 LD="${LD-ld} -m elf64lppc"
6898 LD="${LD-ld} -m elf64ppc"
6900 s390*-*linux*|s390*-*tpf*)
6901 LD="${LD-ld} -m elf64_s390"
6904 LD="${LD-ld} -m elf64_sparc"
6914 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6916 CFLAGS="$CFLAGS -belf"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6918 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6919 if ${lt_cv_cc_needs_belf+:} false; then :
6920 $as_echo_n "(cached) " >&6
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 lt_cv_cc_needs_belf=yes
6942 lt_cv_cc_needs_belf=no
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6954 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6955 if test yes != "$lt_cv_cc_needs_belf"; then
6956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6961 # Find out what ABI is being produced by ac_compile, and set linker
6962 # options accordingly.
6963 echo 'int i;' > conftest.$ac_ext
6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965 (eval $ac_compile) 2>&5
6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968 test $ac_status = 0; }; then
6969 case `/usr/bin/file conftest.o` in
6971 case $lt_cv_prog_gnu_ld in
6974 i?86-*-solaris*|x86_64-*-solaris*)
6975 LD="${LD-ld} -m elf_x86_64"
6978 LD="${LD-ld} -m elf64_sparc"
6981 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6982 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6999 need_locks=$enable_libtool_lock
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}mt; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7007 $as_echo_n "(cached) " >&6
7009 if test -n "$MANIFEST_TOOL"; then
7010 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7030 if test -n "$MANIFEST_TOOL"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7032 $as_echo "$MANIFEST_TOOL" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7040 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7041 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7042 # Extract the first word of "mt", so it can be a program name with args.
7043 set dummy mt; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 if test -n "$ac_ct_MANIFEST_TOOL"; then
7050 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7070 if test -n "$ac_ct_MANIFEST_TOOL"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7072 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7078 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7081 case $cross_compiling:$ac_tool_warned in
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7087 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7090 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7093 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7095 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7096 if ${lt_cv_path_mainfest_tool+:} false; then :
7097 $as_echo_n "(cached) " >&6
7099 lt_cv_path_mainfest_tool=no
7100 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7101 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7102 cat conftest.err >&5
7103 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7104 lt_cv_path_mainfest_tool=yes
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7109 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7110 if test yes != "$lt_cv_path_mainfest_tool"; then
7120 rhapsody* | darwin*)
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$DSYMUTIL"; then
7130 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7150 if test -n "$DSYMUTIL"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7152 $as_echo "$DSYMUTIL" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_prog_DSYMUTIL"; then
7161 ac_ct_DSYMUTIL=$DSYMUTIL
7162 # Extract the first word of "dsymutil", so it can be a program name with args.
7163 set dummy dsymutil; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$ac_ct_DSYMUTIL"; then
7170 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7190 if test -n "$ac_ct_DSYMUTIL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7192 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 if test "x$ac_ct_DSYMUTIL" = x; then
7201 case $cross_compiling:$ac_tool_warned in
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7207 DSYMUTIL=$ac_ct_DSYMUTIL
7210 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_NMEDIT+:} false; then :
7219 $as_echo_n "(cached) " >&6
7221 if test -n "$NMEDIT"; then
7222 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 NMEDIT=$ac_cv_prog_NMEDIT
7242 if test -n "$NMEDIT"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7244 $as_echo "$NMEDIT" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7252 if test -z "$ac_cv_prog_NMEDIT"; then
7253 ac_ct_NMEDIT=$NMEDIT
7254 # Extract the first word of "nmedit", so it can be a program name with args.
7255 set dummy nmedit; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7259 $as_echo_n "(cached) " >&6
7261 if test -n "$ac_ct_NMEDIT"; then
7262 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7282 if test -n "$ac_ct_NMEDIT"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7284 $as_echo "$ac_ct_NMEDIT" >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7290 if test "x$ac_ct_NMEDIT" = x; then
7293 case $cross_compiling:$ac_tool_warned in
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7297 ac_tool_warned=yes ;;
7299 NMEDIT=$ac_ct_NMEDIT
7302 NMEDIT="$ac_cv_prog_NMEDIT"
7305 if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7307 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_LIPO+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$LIPO"; then
7314 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 LIPO=$ac_cv_prog_LIPO
7334 if test -n "$LIPO"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7336 $as_echo "$LIPO" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7344 if test -z "$ac_cv_prog_LIPO"; then
7346 # Extract the first word of "lipo", so it can be a program name with args.
7347 set dummy lipo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$ac_ct_LIPO"; then
7354 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_ac_ct_LIPO="lipo"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7374 if test -n "$ac_ct_LIPO"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7376 $as_echo "$ac_ct_LIPO" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 if test "x$ac_ct_LIPO" = x; then
7385 case $cross_compiling:$ac_tool_warned in
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389 ac_tool_warned=yes ;;
7394 LIPO="$ac_cv_prog_LIPO"
7397 if test -n "$ac_tool_prefix"; then
7398 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7399 set dummy ${ac_tool_prefix}otool; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_OTOOL+:} false; then :
7403 $as_echo_n "(cached) " >&6
7405 if test -n "$OTOOL"; then
7406 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 OTOOL=$ac_cv_prog_OTOOL
7426 if test -n "$OTOOL"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7428 $as_echo "$OTOOL" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7436 if test -z "$ac_cv_prog_OTOOL"; then
7438 # Extract the first word of "otool", so it can be a program name with args.
7439 set dummy otool; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 if test -n "$ac_ct_OTOOL"; then
7446 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OTOOL="otool"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7466 if test -n "$ac_ct_OTOOL"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7468 $as_echo "$ac_ct_OTOOL" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7474 if test "x$ac_ct_OTOOL" = x; then
7477 case $cross_compiling:$ac_tool_warned in
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7486 OTOOL="$ac_cv_prog_OTOOL"
7489 if test -n "$ac_tool_prefix"; then
7490 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_OTOOL64+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$OTOOL64"; then
7498 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 OTOOL64=$ac_cv_prog_OTOOL64
7518 if test -n "$OTOOL64"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7520 $as_echo "$OTOOL64" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7528 if test -z "$ac_cv_prog_OTOOL64"; then
7529 ac_ct_OTOOL64=$OTOOL64
7530 # Extract the first word of "otool64", so it can be a program name with args.
7531 set dummy otool64; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7535 $as_echo_n "(cached) " >&6
7537 if test -n "$ac_ct_OTOOL64"; then
7538 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_ac_ct_OTOOL64="otool64"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7558 if test -n "$ac_ct_OTOOL64"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7560 $as_echo "$ac_ct_OTOOL64" >&6; }
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7566 if test "x$ac_ct_OTOOL64" = x; then
7569 case $cross_compiling:$ac_tool_warned in
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573 ac_tool_warned=yes ;;
7575 OTOOL64=$ac_ct_OTOOL64
7578 OTOOL64="$ac_cv_prog_OTOOL64"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7608 $as_echo_n "checking for -single_module linker flag... " >&6; }
7609 if ${lt_cv_apple_cc_single_mod+:} false; then :
7610 $as_echo_n "(cached) " >&6
7612 lt_cv_apple_cc_single_mod=no
7613 if test -z "$LT_MULTI_MODULE"; then
7614 # By default we will add the -single_module flag. You can override
7615 # by either setting the environment variable LT_MULTI_MODULE
7616 # non-empty at configure time, or by adding -multi_module to the
7618 rm -rf libconftest.dylib*
7619 echo "int foo(void){return 1;}" > conftest.c
7620 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7621 -dynamiclib -Wl,-single_module conftest.c" >&5
7622 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7623 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7625 # If there is a non-empty error log, and "single_module"
7626 # appears in it, assume the flag caused a linker warning
7627 if test -s conftest.err && $GREP single_module conftest.err; then
7628 cat conftest.err >&5
7629 # Otherwise, if the output was created with a 0 exit code from
7630 # the compiler, it worked.
7631 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7632 lt_cv_apple_cc_single_mod=yes
7634 cat conftest.err >&5
7636 rm -rf libconftest.dylib*
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7641 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7644 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7645 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 lt_cv_ld_exported_symbols_list=no
7649 save_LDFLAGS=$LDFLAGS
7650 echo "_main" > conftest.sym
7651 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7663 if ac_fn_c_try_link "$LINENO"; then :
7664 lt_cv_ld_exported_symbols_list=yes
7666 lt_cv_ld_exported_symbols_list=no
7668 rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7670 LDFLAGS=$save_LDFLAGS
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7674 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7677 $as_echo_n "checking for -force_load linker flag... " >&6; }
7678 if ${lt_cv_ld_force_load+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 lt_cv_ld_force_load=no
7682 cat > conftest.c << _LT_EOF
7683 int forced_loaded() { return 2;}
7685 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7686 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7687 echo "$AR cru libconftest.a conftest.o" >&5
7688 $AR cru libconftest.a conftest.o 2>&5
7689 echo "$RANLIB libconftest.a" >&5
7690 $RANLIB libconftest.a 2>&5
7691 cat > conftest.c << _LT_EOF
7692 int main() { return 0;}
7694 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7695 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7697 if test -s conftest.err && $GREP force_load conftest.err; then
7698 cat conftest.err >&5
7699 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7700 lt_cv_ld_force_load=yes
7702 cat conftest.err >&5
7704 rm -f conftest.err libconftest.a conftest conftest.c
7705 rm -rf conftest.dSYM
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7709 $as_echo "$lt_cv_ld_force_load" >&6; }
7711 rhapsody* | darwin1.[012])
7712 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7714 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7715 darwin*) # darwin 5.x on
7716 # if running on 10.5 or later, the deployment target defaults
7717 # to the OS version, if on x86, and 10.4, the deployment
7718 # target defaults to 10.4. Don't you love it?
7719 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7720 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7721 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7723 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7725 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7729 if test yes = "$lt_cv_apple_cc_single_mod"; then
7730 _lt_dar_single_mod='$single_module'
7732 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7733 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7735 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7737 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7738 _lt_dsymutil='~$DSYMUTIL $lib || :'
7745 # func_munge_path_list VARIABLE PATH
7746 # -----------------------------------
7747 # VARIABLE is name of variable containing _space_ separated list of
7748 # directories to be munged by the contents of PATH, which is string
7751 # string "DIR[ DIR]" will be prepended to VARIABLE
7753 # string "DIR[ DIR]" will be appended to VARIABLE
7754 # "DIRP[:DIRP]::[DIRA:]DIRA"
7755 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7756 # "DIRA[ DIRA]" will be appended to VARIABLE
7758 # VARIABLE will be replaced by "DIR[ DIR]"
7759 func_munge_path_list ()
7765 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7768 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7771 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7772 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7775 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7787 # On Suns, sometimes $CPP names a directory.
7788 if test -n "$CPP" && test -d "$CPP"; then
7791 if test -z "$CPP"; then
7792 if ${ac_cv_prog_CPP+:} false; then :
7793 $as_echo_n "(cached) " >&6
7795 # Double quotes because CPP needs to be expanded
7796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7799 for ac_c_preproc_warn_flag in '' yes
7801 # Use a header file that comes with gcc, so configuring glibc
7802 # with a fresh cross-compiler works.
7803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7804 # <limits.h> exists even on freestanding compilers.
7805 # On the NeXT, cc -E runs the code through the compiler's parser,
7806 # not just through cpp. "Syntax error" is here to catch this case.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7810 # include <limits.h>
7812 # include <assert.h>
7816 if ac_fn_c_try_cpp "$LINENO"; then :
7819 # Broken: fails on valid input.
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7824 # OK, works on sane cases. Now check whether nonexistent headers
7825 # can be detected and how.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #include <ac_nonexistent.h>
7830 if ac_fn_c_try_cpp "$LINENO"; then :
7831 # Broken: success on invalid input.
7834 # Passes both tests.
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7842 rm -f conftest.i conftest.err conftest.$ac_ext
7843 if $ac_preproc_ok; then :
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7856 $as_echo "$CPP" >&6; }
7858 for ac_c_preproc_warn_flag in '' yes
7860 # Use a header file that comes with gcc, so configuring glibc
7861 # with a fresh cross-compiler works.
7862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7863 # <limits.h> exists even on freestanding compilers.
7864 # On the NeXT, cc -E runs the code through the compiler's parser,
7865 # not just through cpp. "Syntax error" is here to catch this case.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 # include <limits.h>
7871 # include <assert.h>
7875 if ac_fn_c_try_cpp "$LINENO"; then :
7878 # Broken: fails on valid input.
7881 rm -f conftest.err conftest.i conftest.$ac_ext
7883 # OK, works on sane cases. Now check whether nonexistent headers
7884 # can be detected and how.
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <ac_nonexistent.h>
7889 if ac_fn_c_try_cpp "$LINENO"; then :
7890 # Broken: success on invalid input.
7893 # Passes both tests.
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7901 rm -f conftest.i conftest.err conftest.$ac_ext
7902 if $ac_preproc_ok; then :
7905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7907 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7908 See \`config.log' for more details" "$LINENO" 5; }
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7919 $as_echo_n "checking for ANSI C header files... " >&6; }
7920 if ${ac_cv_header_stdc+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_cv_header_stdc=yes
7941 ac_cv_header_stdc=no
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 if test $ac_cv_header_stdc = yes; then
7946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953 $EGREP "memchr" >/dev/null 2>&1; then :
7956 ac_cv_header_stdc=no
7962 if test $ac_cv_header_stdc = yes; then
7963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970 $EGREP "free" >/dev/null 2>&1; then :
7973 ac_cv_header_stdc=no
7979 if test $ac_cv_header_stdc = yes; then
7980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7981 if test "$cross_compiling" = yes; then :
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7988 #if ((' ' & 0x0FF) == 0x020)
7989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7992 # define ISLOWER(c) \
7993 (('a' <= (c) && (c) <= 'i') \
7994 || ('j' <= (c) && (c) <= 'r') \
7995 || ('s' <= (c) && (c) <= 'z'))
7996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8004 for (i = 0; i < 256; i++)
8005 if (XOR (islower (i), ISLOWER (i))
8006 || toupper (i) != TOUPPER (i))
8011 if ac_fn_c_try_run "$LINENO"; then :
8014 ac_cv_header_stdc=no
8016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8017 conftest.$ac_objext conftest.beam conftest.$ac_ext
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8023 $as_echo "$ac_cv_header_stdc" >&6; }
8024 if test $ac_cv_header_stdc = yes; then
8026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8032 inttypes.h stdint.h unistd.h
8034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8038 cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047 for ac_header in dlfcn.h
8049 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8072 # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074 enableval=$enable_shared; p=${PACKAGE-default}
8076 yes) enable_shared=yes ;;
8077 no) enable_shared=no ;;
8080 # Look at the argument we got. We use all the common list separators.
8081 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8082 for pkg in $enableval; do
8084 if test "X$pkg" = "X$p"; then
8103 # Check whether --enable-static was given.
8104 if test "${enable_static+set}" = set; then :
8105 enableval=$enable_static; p=${PACKAGE-default}
8107 yes) enable_static=yes ;;
8108 no) enable_static=no ;;
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8113 for pkg in $enableval; do
8115 if test "X$pkg" = "X$p"; then
8135 # Check whether --with-pic was given.
8136 if test "${with_pic+set}" = set; then :
8137 withval=$with_pic; lt_p=${PACKAGE-default}
8139 yes|no) pic_mode=$withval ;;
8142 # Look at the argument we got. We use all the common list separators.
8143 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8144 for lt_pkg in $withval; do
8146 if test "X$lt_pkg" = "X$lt_p"; then
8164 # Check whether --enable-fast-install was given.
8165 if test "${enable_fast_install+set}" = set; then :
8166 enableval=$enable_fast_install; p=${PACKAGE-default}
8168 yes) enable_fast_install=yes ;;
8169 no) enable_fast_install=no ;;
8171 enable_fast_install=no
8172 # Look at the argument we got. We use all the common list separators.
8173 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8174 for pkg in $enableval; do
8176 if test "X$pkg" = "X$p"; then
8177 enable_fast_install=yes
8184 enable_fast_install=yes
8194 shared_archive_member_spec=
8195 case $host,$enable_shared in
8196 power*-*-aix[5-9]*,yes)
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8198 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8200 # Check whether --with-aix-soname was given.
8201 if test "${with_aix_soname+set}" = set; then :
8202 withval=$with_aix_soname; case $withval in
8206 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8209 lt_cv_with_aix_soname=$with_aix_soname
8211 if ${lt_cv_with_aix_soname+:} false; then :
8212 $as_echo_n "(cached) " >&6
8214 lt_cv_with_aix_soname=aix
8217 with_aix_soname=$lt_cv_with_aix_soname
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8221 $as_echo "$with_aix_soname" >&6; }
8222 if test aix != "$with_aix_soname"; then
8223 # For the AIX way of multilib, we name the shared archive member
8224 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8225 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8226 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8227 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8228 if test 64 = "${OBJECT_MODE-32}"; then
8229 shared_archive_member_spec=shr_64
8231 shared_archive_member_spec=shr
8249 # This can be used to rebuild libtool when needed
8250 LIBTOOL_DEPS=$ltmain
8252 # Always use our own libtool.
8253 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8284 test -z "$LN_S" && LN_S="ln -s"
8299 if test -n "${ZSH_VERSION+set}"; then
8300 setopt NO_GLOB_SUBST
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8304 $as_echo_n "checking for objdir... " >&6; }
8305 if ${lt_cv_objdir+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 rm -f .libs 2>/dev/null
8309 mkdir .libs 2>/dev/null
8310 if test -d .libs; then
8313 # MS-DOS does not allow filenames that begin with a dot.
8316 rmdir .libs 2>/dev/null
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8319 $as_echo "$lt_cv_objdir" >&6; }
8320 objdir=$lt_cv_objdir
8326 cat >>confdefs.h <<_ACEOF
8327 #define LT_OBJDIR "$lt_cv_objdir/"
8335 # AIX sometimes has problems with the GCC collect2 program. For some
8336 # reason, if we set the COLLECT_NAMES environment variable, the problems
8337 # vanish in a puff of smoke.
8338 if test set != "${COLLECT_NAMES+set}"; then
8340 export COLLECT_NAMES
8347 can_build_shared=yes
8349 # All known linkers require a '.a' archive for static linking (except MSVC,
8350 # which needs '.lib').
8353 with_gnu_ld=$lt_cv_prog_gnu_ld
8358 # Set sane defaults for various variables
8359 test -z "$CC" && CC=cc
8360 test -z "$LTCC" && LTCC=$CC
8361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362 test -z "$LD" && LD=ld
8363 test -z "$ac_objext" && ac_objext=o
8365 func_cc_basename $compiler
8366 cc_basename=$func_cc_basename_result
8369 # Only perform the check for file, if the check method requires it
8370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8371 case $deplibs_check_method in
8373 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8375 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8376 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8377 $as_echo_n "(cached) " >&6
8381 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8384 lt_save_MAGIC_CMD=$MAGIC_CMD
8385 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8387 for ac_dir in $ac_dummy; do
8389 test -z "$ac_dir" && ac_dir=.
8390 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8391 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8392 if test -n "$file_magic_test_file"; then
8393 case $deplibs_check_method in
8395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8398 $EGREP "$file_magic_regex" > /dev/null; then
8403 *** Warning: the command libtool uses to detect shared libraries,
8404 *** $file_magic_cmd, produces output that libtool cannot recognize.
8405 *** The result is that libtool may fail to recognize shared libraries
8406 *** as such. This will affect the creation of libtool libraries that
8407 *** depend on shared libraries, but programs linked with such libtool
8408 *** libraries will work regardless of this problem. Nevertheless, you
8409 *** may want to report the problem to your system manager and/or to
8410 *** bug-libtool@gnu.org
8420 MAGIC_CMD=$lt_save_MAGIC_CMD
8425 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8426 if test -n "$MAGIC_CMD"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8428 $as_echo "$MAGIC_CMD" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8438 if test -z "$lt_cv_path_MAGIC_CMD"; then
8439 if test -n "$ac_tool_prefix"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8441 $as_echo_n "checking for file... " >&6; }
8442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8443 $as_echo_n "(cached) " >&6
8447 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8450 lt_save_MAGIC_CMD=$MAGIC_CMD
8451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8453 for ac_dir in $ac_dummy; do
8455 test -z "$ac_dir" && ac_dir=.
8456 if test -f "$ac_dir/file"; then
8457 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8458 if test -n "$file_magic_test_file"; then
8459 case $deplibs_check_method in
8461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8462 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8464 $EGREP "$file_magic_regex" > /dev/null; then
8469 *** Warning: the command libtool uses to detect shared libraries,
8470 *** $file_magic_cmd, produces output that libtool cannot recognize.
8471 *** The result is that libtool may fail to recognize shared libraries
8472 *** as such. This will affect the creation of libtool libraries that
8473 *** depend on shared libraries, but programs linked with such libtool
8474 *** libraries will work regardless of this problem. Nevertheless, you
8475 *** may want to report the problem to your system manager and/or to
8476 *** bug-libtool@gnu.org
8486 MAGIC_CMD=$lt_save_MAGIC_CMD
8491 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8492 if test -n "$MAGIC_CMD"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8494 $as_echo "$MAGIC_CMD" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8510 # Use C for the default configuration in the libtool script
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8520 # Source file extension for C test sources.
8523 # Object file extension for compiled C test sources.
8527 # Code to be used in simple compile tests
8528 lt_simple_compile_test_code="int some_variable = 0;"
8530 # Code to be used in simple link tests
8531 lt_simple_link_test_code='int main(){return(0);}'
8539 # If no C compiler was specified, use CC.
8542 # If no C compiler flags were specified, use CFLAGS.
8543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8545 # Allow CC to be a program name with arguments.
8548 # Save the default compiler, since it gets overwritten when the other
8549 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8550 compiler_DEFAULT=$CC
8552 # save warnings/boilerplate of simple test code
8553 ac_outfile=conftest.$ac_objext
8554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8556 _lt_compiler_boilerplate=`cat conftest.err`
8559 ac_outfile=conftest.$ac_objext
8560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8562 _lt_linker_boilerplate=`cat conftest.err`
8567 ## There is no encapsulation within the following macros, do not change
8568 ## the running order or otherwise move them around unless you know exactly
8569 ## what you are doing...
8570 if test -n "$compiler"; then
8572 lt_prog_compiler_no_builtin_flag=
8574 if test yes = "$GCC"; then
8575 case $cc_basename in
8577 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8579 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8583 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8584 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8585 $as_echo_n "(cached) " >&6
8587 lt_cv_prog_compiler_rtti_exceptions=no
8588 ac_outfile=conftest.$ac_objext
8589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 # The option is referenced via a variable to avoid confusing sed.
8596 lt_compile=`echo "$ac_compile" | $SED \
8597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8599 -e 's:$: $lt_compiler_flag:'`
8600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8601 (eval "$lt_compile" 2>conftest.err)
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 if (exit $ac_status) && test -s "$ac_outfile"; then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings other than the usual output.
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_rtti_exceptions=yes
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8618 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8620 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8621 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8633 lt_prog_compiler_wl=
8634 lt_prog_compiler_pic=
8635 lt_prog_compiler_static=
8638 if test yes = "$GCC"; then
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_static='-static'
8644 # All AIX code is PIC.
8645 if test ia64 = "$host_cpu"; then
8646 # AIX 5 now supports IA64 processor
8647 lt_prog_compiler_static='-Bstatic'
8649 lt_prog_compiler_pic='-fPIC'
8655 # see comment about AmigaOS4 .so support
8656 lt_prog_compiler_pic='-fPIC'
8659 # FIXME: we need at least 68020 code to build shared libraries, but
8660 # adding the '-m68020' flag to GCC prevents building anything better,
8662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8668 # PIC is the default for these OSes.
8671 mingw* | cygwin* | pw32* | os2* | cegcc*)
8672 # This hack is so that the source file can tell whether it is being
8673 # built for inclusion in a dll (and should export symbols for example).
8674 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8675 # (--disable-auto-import) libraries
8676 lt_prog_compiler_pic='-DDLL_EXPORT'
8679 lt_prog_compiler_static='$wl-static'
8684 darwin* | rhapsody*)
8685 # PIC is the default on this platform
8686 # Common symbols not allowed in MH_DYLIB files
8687 lt_prog_compiler_pic='-fno-common'
8691 # PIC is the default for Haiku.
8692 # The "-static" flag exists, but is broken.
8693 lt_prog_compiler_static=
8697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8699 # sets the default TLS model and affects inlining.
8705 lt_prog_compiler_pic='-fPIC'
8711 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8712 # Instead, we relocate shared libraries at runtime.
8716 # Just because we use GCC doesn't mean we suddenly get shared libraries
8717 # on systems that don't support them.
8718 lt_prog_compiler_can_build_shared=no
8723 # QNX uses GNU C++, but need to define -shared option too, otherwise
8725 lt_prog_compiler_pic='-fPIC -shared'
8729 if test -d /usr/nec; then
8730 lt_prog_compiler_pic=-Kconform_pic
8735 lt_prog_compiler_pic='-fPIC'
8739 case $cc_basename in
8740 nvcc*) # Cuda Compiler Driver 2.2
8741 lt_prog_compiler_wl='-Xlinker '
8742 if test -n "$lt_prog_compiler_pic"; then
8743 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8748 # PORTME Check for flag to pass linker flags through the system compiler.
8751 lt_prog_compiler_wl='-Wl,'
8752 if test ia64 = "$host_cpu"; then
8753 # AIX 5 now supports IA64 processor
8754 lt_prog_compiler_static='-Bstatic'
8756 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8760 darwin* | rhapsody*)
8761 # PIC is the default on this platform
8762 # Common symbols not allowed in MH_DYLIB files
8763 lt_prog_compiler_pic='-fno-common'
8764 case $cc_basename in
8766 # NAG Fortran compiler
8767 lt_prog_compiler_wl='-Wl,-Wl,,'
8768 lt_prog_compiler_pic='-PIC'
8769 lt_prog_compiler_static='-Bstatic'
8774 mingw* | cygwin* | pw32* | os2* | cegcc*)
8775 # This hack is so that the source file can tell whether it is being
8776 # built for inclusion in a dll (and should export symbols for example).
8777 lt_prog_compiler_pic='-DDLL_EXPORT'
8780 lt_prog_compiler_static='$wl-static'
8785 hpux9* | hpux10* | hpux11*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8794 lt_prog_compiler_pic='+Z'
8797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798 lt_prog_compiler_static='$wl-a ${wl}archive'
8801 irix5* | irix6* | nonstopux*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC (with -KPIC) is the default.
8804 lt_prog_compiler_static='-non_shared'
8807 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8808 case $cc_basename in
8809 # old Intel for x86_64, which still supported -KPIC.
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-static'
8815 # icc used to be incompatible with GCC.
8816 # ICC 10 doesn't accept -KPIC any more.
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8822 # Lahey Fortran 8.1.
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='--shared'
8826 lt_prog_compiler_static='--static'
8829 # NAG Fortran compiler
8830 lt_prog_compiler_wl='-Wl,-Wl,,'
8831 lt_prog_compiler_pic='-PIC'
8832 lt_prog_compiler_static='-Bstatic'
8835 # Fabrice Bellard et al's Tiny C Compiler
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-fPIC'
8838 lt_prog_compiler_static='-static'
8840 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8841 # Portland Group compilers (*not* the Pentium gcc compiler,
8842 # which looks to be a dead project)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-fpic'
8845 lt_prog_compiler_static='-Bstatic'
8848 lt_prog_compiler_wl='-Wl,'
8849 # All Alpha code is PIC.
8850 lt_prog_compiler_static='-non_shared'
8852 xl* | bgxl* | bgf* | mpixl*)
8853 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-qpic'
8856 lt_prog_compiler_static='-qstaticlink'
8859 case `$CC -V 2>&1 | sed 5q` in
8860 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8861 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-Bstatic'
8864 lt_prog_compiler_wl=''
8866 *Sun\ F* | *Sun*Fortran*)
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 lt_prog_compiler_wl='-Qoption ld '
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 lt_prog_compiler_wl='-Wl,'
8877 *Intel*\ [CF]*Compiler*)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-fPIC'
8880 lt_prog_compiler_static='-static'
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_pic='-fpic'
8885 lt_prog_compiler_static='-Bstatic'
8893 lt_prog_compiler_pic='-KPIC'
8894 lt_prog_compiler_static='-Bstatic'
8898 # QNX uses GNU C++, but need to define -shared option too, otherwise
8900 lt_prog_compiler_pic='-fPIC -shared'
8903 osf3* | osf4* | osf5*)
8904 lt_prog_compiler_wl='-Wl,'
8905 # All OSF/1 code is PIC.
8906 lt_prog_compiler_static='-non_shared'
8910 lt_prog_compiler_static='-non_shared'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 case $cc_basename in
8917 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8918 lt_prog_compiler_wl='-Qoption ld ';;
8920 lt_prog_compiler_wl='-Wl,';;
8925 lt_prog_compiler_wl='-Qoption ld '
8926 lt_prog_compiler_pic='-PIC'
8927 lt_prog_compiler_static='-Bstatic'
8930 sysv4 | sysv4.2uw2* | sysv4.3*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8937 if test -d /usr/nec; then
8938 lt_prog_compiler_pic='-Kconform_pic'
8939 lt_prog_compiler_static='-Bstatic'
8943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='-KPIC'
8946 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_can_build_shared=no
8955 lt_prog_compiler_pic='-pic'
8956 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_can_build_shared=no
8966 # For platforms that do not support PIC, -DPIC is meaningless:
8968 lt_prog_compiler_pic=
8971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8976 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8977 if ${lt_cv_prog_compiler_pic+:} false; then :
8978 $as_echo_n "(cached) " >&6
8980 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8983 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8984 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8987 # Check to make sure the PIC flag actually works.
8989 if test -n "$lt_prog_compiler_pic"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8991 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8992 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 lt_cv_prog_compiler_pic_works=no
8996 ac_outfile=conftest.$ac_objext
8997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8999 # Insert the option either (1) after the last *FLAGS variable, or
9000 # (2) before a word containing "conftest.", or (3) at the end.
9001 # Note that $ac_compile itself does not contain backslashes and begins
9002 # with a dollar sign (not a hyphen), so the echo should work correctly.
9003 # The option is referenced via a variable to avoid confusing sed.
9004 lt_compile=`echo "$ac_compile" | $SED \
9005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9007 -e 's:$: $lt_compiler_flag:'`
9008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9009 (eval "$lt_compile" 2>conftest.err)
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 if (exit $ac_status) && test -s "$ac_outfile"; then
9014 # The compiler can only warn and ignore the option if not recognized
9015 # So say no if there are warnings other than the usual output.
9016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9019 lt_cv_prog_compiler_pic_works=yes
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9026 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9028 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9029 case $lt_prog_compiler_pic in
9031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9034 lt_prog_compiler_pic=
9035 lt_prog_compiler_can_build_shared=no
9051 # Check to make sure the static flag actually works.
9053 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9055 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9056 if ${lt_cv_prog_compiler_static_works+:} false; then :
9057 $as_echo_n "(cached) " >&6
9059 lt_cv_prog_compiler_static_works=no
9060 save_LDFLAGS=$LDFLAGS
9061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9064 # The linker can only warn and ignore the option if not recognized
9065 # So say no if there are warnings
9066 if test -s conftest.err; then
9067 # Append any errors to the config.log.
9068 cat conftest.err 1>&5
9069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9071 if diff conftest.exp conftest.er2 >/dev/null; then
9072 lt_cv_prog_compiler_static_works=yes
9075 lt_cv_prog_compiler_static_works=yes
9079 LDFLAGS=$save_LDFLAGS
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9085 if test yes = "$lt_cv_prog_compiler_static_works"; then
9088 lt_prog_compiler_static=
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9099 if ${lt_cv_prog_compiler_c_o+:} false; then :
9100 $as_echo_n "(cached) " >&6
9102 lt_cv_prog_compiler_c_o=no
9103 $RM -r conftest 2>/dev/null
9107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9109 lt_compiler_flag="-o out/conftest2.$ac_objext"
9110 # Insert the option either (1) after the last *FLAGS variable, or
9111 # (2) before a word containing "conftest.", or (3) at the end.
9112 # Note that $ac_compile itself does not contain backslashes and begins
9113 # with a dollar sign (not a hyphen), so the echo should work correctly.
9114 lt_compile=`echo "$ac_compile" | $SED \
9115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9117 -e 's:$: $lt_compiler_flag:'`
9118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9119 (eval "$lt_compile" 2>out/conftest.err)
9121 cat out/conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9125 # The compiler can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9130 lt_cv_prog_compiler_c_o=yes
9135 # SGI C++ compiler will create directory out/ii_files/ for
9136 # template instantiation
9137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9138 $RM out/* && rmdir out
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9145 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9154 if ${lt_cv_prog_compiler_c_o+:} false; then :
9155 $as_echo_n "(cached) " >&6
9157 lt_cv_prog_compiler_c_o=no
9158 $RM -r conftest 2>/dev/null
9162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164 lt_compiler_flag="-o out/conftest2.$ac_objext"
9165 # Insert the option either (1) after the last *FLAGS variable, or
9166 # (2) before a word containing "conftest.", or (3) at the end.
9167 # Note that $ac_compile itself does not contain backslashes and begins
9168 # with a dollar sign (not a hyphen), so the echo should work correctly.
9169 lt_compile=`echo "$ac_compile" | $SED \
9170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9172 -e 's:$: $lt_compiler_flag:'`
9173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9174 (eval "$lt_compile" 2>out/conftest.err)
9176 cat out/conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180 # The compiler can only warn and ignore the option if not recognized
9181 # So say no if there are warnings
9182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9185 lt_cv_prog_compiler_c_o=yes
9190 # SGI C++ compiler will create directory out/ii_files/ for
9191 # template instantiation
9192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9193 $RM out/* && rmdir out
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9205 hard_links=nottested
9206 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9207 # do not overwrite the value of need_locks provided by the user
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9209 $as_echo_n "checking if we can lock with hard links... " >&6; }
9212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9214 ln conftest.a conftest.b 2>&5 || hard_links=no
9215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9217 $as_echo "$hard_links" >&6; }
9218 if test no = "$hard_links"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9220 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9233 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9236 allow_undefined_flag=
9237 always_export_symbols=no
9239 archive_expsym_cmds=
9240 compiler_needs_object=no
9241 enable_shared_with_static_runtimes=no
9242 export_dynamic_flag_spec=
9243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9244 hardcode_automatic=no
9246 hardcode_direct_absolute=no
9247 hardcode_libdir_flag_spec=
9248 hardcode_libdir_separator=
9250 hardcode_shlibpath_var=unsupported
9252 link_all_deplibs=unknown
9255 old_archive_from_new_cmds=
9256 old_archive_from_expsyms_cmds=
9257 thread_safe_flag_spec=
9258 whole_archive_flag_spec=
9259 # include_expsyms should be a list of space-separated symbols to be *always*
9260 # included in the symbol list
9262 # exclude_expsyms can be an extended regexp of symbols to exclude
9263 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9264 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9265 # as well as any symbol that contains 'd'.
9266 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9267 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9268 # platforms (ab)use it in PIC code, but their linkers get confused if
9269 # the symbol is explicitly referenced. Since portable code cannot
9270 # rely on this symbol name, it's probably fine to never include it in
9271 # preloaded symbol tables.
9272 # Exclude shared library initialization/finalization symbols.
9273 extract_expsyms_cmds=
9276 cygwin* | mingw* | pw32* | cegcc*)
9277 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9278 # When not using gcc, we currently assume that we are using
9279 # Microsoft Visual C++.
9280 if test yes != "$GCC"; then
9285 # we just hope/assume this is gcc and not c89 (= MSVC++)
9291 linux* | k*bsd*-gnu | gnu*)
9298 # On some targets, GNU ld is compatible enough with the native linker
9299 # that we're better off using the native interface for both.
9300 lt_use_gnu_ld_interface=no
9301 if test yes = "$with_gnu_ld"; then
9304 # The AIX port of GNU ld has always aspired to compatibility
9305 # with the native linker. However, as the warning in the GNU ld
9306 # block says, versions before 2.19.5* couldn't really create working
9307 # shared libraries, regardless of the interface used.
9308 case `$LD -v 2>&1` in
9309 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9310 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9311 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9313 lt_use_gnu_ld_interface=yes
9318 lt_use_gnu_ld_interface=yes
9323 if test yes = "$lt_use_gnu_ld_interface"; then
9324 # If archive_cmds runs LD, not CC, wlarc should be empty
9327 # Set some defaults for GNU ld with shared library support. These
9328 # are reset later if shared libraries are not supported. Putting them
9329 # here allows them to be overridden if necessary.
9330 runpath_var=LD_RUN_PATH
9331 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9332 export_dynamic_flag_spec='$wl--export-dynamic'
9333 # ancient GNU ld didn't support --whole-archive et. al.
9334 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9335 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9337 whole_archive_flag_spec=
9339 supports_anon_versioning=no
9340 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9341 *GNU\ gold*) supports_anon_versioning=yes ;;
9342 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9345 *\ 2.11.*) ;; # other 2.11 versions
9346 *) supports_anon_versioning=yes ;;
9349 # See if GNU ld supports shared libraries.
9352 # On AIX/PPC, the GNU linker is very broken
9353 if test ia64 != "$host_cpu"; then
9357 *** Warning: the GNU linker, at least up to release 2.19, is reported
9358 *** to be unable to reliably create shared libraries on AIX.
9359 *** Therefore, libtool is disabling shared libraries support. If you
9360 *** really care for shared libraries, you may want to install binutils
9361 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9362 *** You will then need to restart the configuration process.
9371 # see comment about AmigaOS4 .so support
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 archive_expsym_cmds=''
9376 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)'
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_minus_L=yes
9384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385 allow_undefined_flag=unsupported
9386 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9387 # support --undefined. This deserves some investigation. FIXME
9388 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9394 cygwin* | mingw* | pw32* | cegcc*)
9395 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9396 # as there is no search path for DLLs.
9397 hardcode_libdir_flag_spec='-L$libdir'
9398 export_dynamic_flag_spec='$wl--export-all-symbols'
9399 allow_undefined_flag=unsupported
9400 always_export_symbols=no
9401 enable_shared_with_static_runtimes=yes
9402 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'
9403 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9405 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9407 # If the export-symbols file already is a .def file, use it as
9408 # is; otherwise, prepend EXPORTS...
9409 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9410 cp $export_symbols $output_objdir/$soname.def;
9412 echo EXPORTS > $output_objdir/$soname.def;
9413 cat $export_symbols >> $output_objdir/$soname.def;
9415 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9423 link_all_deplibs=yes
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_minus_L=yes
9429 allow_undefined_flag=unsupported
9431 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9432 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9433 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9434 $ECHO EXPORTS >> $output_objdir/$libname.def~
9435 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9436 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9437 emximp -o $lib $output_objdir/$libname.def'
9438 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9439 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9440 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9441 $ECHO EXPORTS >> $output_objdir/$libname.def~
9443 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9444 prefix_cmds="$prefix_cmds -e 1d";
9446 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9447 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9448 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9449 emximp -o $lib $output_objdir/$libname.def'
9450 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9451 enable_shared_with_static_runtimes=yes
9456 hardcode_shlibpath_var=no
9457 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9458 export_dynamic_flag_spec='$wl-E'
9459 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9460 # Instead, shared libraries are loaded at an image base (0x10000000 by
9461 # default) and relocated if they conflict, which is a slow very memory
9462 # consuming and fragmenting process. To avoid this, we pick a random,
9463 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9464 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9466 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'
9469 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9471 if test linux-dietlibc = "$host_os"; then
9472 case $cc_basename in
9473 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9476 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9477 && test no = "$tmp_diet"
9479 tmp_addflag=' $pic_flag'
9480 tmp_sharedflag='-shared'
9481 case $cc_basename,$host_cpu in
9482 pgcc*) # Portland Group C compiler
9483 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'
9484 tmp_addflag=' $pic_flag'
9486 pgf77* | pgf90* | pgf95* | pgfortran*)
9487 # Portland Group f77 and f90 compilers
9488 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'
9489 tmp_addflag=' $pic_flag -Mnomain' ;;
9490 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9491 tmp_addflag=' -i_dynamic' ;;
9492 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9493 tmp_addflag=' -i_dynamic -nofor_main' ;;
9494 ifc* | ifort*) # Intel Fortran compiler
9495 tmp_addflag=' -nofor_main' ;;
9496 lf95*) # Lahey Fortran 8.1
9497 whole_archive_flag_spec=
9498 tmp_sharedflag='--shared' ;;
9499 nagfor*) # NAGFOR 5.3
9500 tmp_sharedflag='-Wl,-shared' ;;
9501 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9502 tmp_sharedflag='-qmkshrobj'
9504 nvcc*) # Cuda Compiler Driver 2.2
9505 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'
9506 compiler_needs_object=yes
9509 case `$CC -V 2>&1 | sed 5q` in
9510 *Sun\ C*) # Sun C 5.9
9511 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'
9512 compiler_needs_object=yes
9513 tmp_sharedflag='-G' ;;
9514 *Sun\ F*) # Sun Fortran 8.3
9515 tmp_sharedflag='-G' ;;
9517 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9519 if test yes = "$supports_anon_versioning"; then
9520 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9521 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9522 echo "local: *; };" >> $output_objdir/$libname.ver~
9523 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9526 case $cc_basename in
9528 export_dynamic_flag_spec='-rdynamic'
9530 xlf* | bgf* | bgxlf* | mpixlf*)
9531 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9532 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9534 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9535 if test yes = "$supports_anon_versioning"; then
9536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9538 echo "local: *; };" >> $output_objdir/$libname.ver~
9539 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9548 netbsd* | netbsdelf*-gnu)
9549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9550 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9559 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9564 *** create shared libraries on Solaris systems. Therefore, libtool
9565 *** is disabling shared libraries support. We urge you to upgrade GNU
9566 *** binutils to release 2.9.1 or newer. Another option is to modify
9567 *** your PATH or compiler configuration so that the native linker is
9568 *** used, and then restart.
9571 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9573 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9580 case `$LD -v 2>&1` in
9581 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9586 *** reliably create shared libraries on SCO systems. Therefore, libtool
9587 *** is disabling shared libraries support. We urge you to upgrade GNU
9588 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9595 # For security reasons, it is highly recommended that you always
9596 # use absolute paths for naming shared libraries, and exclude the
9597 # DT_RUNPATH tag from executables and libraries. But doing so
9598 # requires that you compile everything twice, which is a pain.
9599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9611 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_shlibpath_var=no
9618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9627 if test no = "$ld_shlibs"; then
9629 hardcode_libdir_flag_spec=
9630 export_dynamic_flag_spec=
9631 whole_archive_flag_spec=
9634 # PORTME fill in a description of your system's linker (not GNU ld)
9637 allow_undefined_flag=unsupported
9638 always_export_symbols=yes
9639 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'
9640 # Note: this linker hardcodes the directories in LIBPATH if there
9641 # are no directories specified by -L.
9642 hardcode_minus_L=yes
9643 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9644 # Neither direct hardcoding nor static linking is supported with a
9646 hardcode_direct=unsupported
9651 if test ia64 = "$host_cpu"; then
9652 # On IA64, the linker does run time linking by default, so we don't
9653 # have to do anything special.
9654 aix_use_runtimelinking=no
9655 exp_sym_flag='-Bexport'
9658 # If we're using GNU nm, then we don't want the "-C" option.
9659 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9660 # Without the "-l" option, or with the "-B" option, AIX nm treats
9661 # weak defined symbols like other global defined symbols, whereas
9662 # GNU nm marks them as "W".
9663 # While the 'weak' keyword is ignored in the Export File, we need
9664 # it in the Import File for the 'aix-soname' feature, so we have
9665 # to replace the "-B" option with "-P" for AIX nm.
9666 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9667 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'
9669 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'
9671 aix_use_runtimelinking=no
9673 # Test if we are trying to use run time linking or normal
9674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9675 # have runtime linking enabled, and use it for executables.
9676 # For shared libraries, we enable/disable runtime linking
9677 # depending on the kind of the shared library created -
9678 # when "with_aix_soname,aix_use_runtimelinking" is:
9679 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9680 # "aix,yes" lib.so shared, rtl:yes, for executables
9681 # lib.a static archive
9682 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9683 # lib.a(lib.so.V) shared, rtl:no, for executables
9684 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9685 # lib.a(lib.so.V) shared, rtl:no
9686 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9687 # lib.a static archive
9688 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9689 for ld_flag in $LDFLAGS; do
9690 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9691 aix_use_runtimelinking=yes
9695 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9696 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9697 # so we don't have lib.a shared libs to link our executables.
9698 # We have to force runtime linking in this case.
9699 aix_use_runtimelinking=yes
9700 LDFLAGS="$LDFLAGS -Wl,-brtl"
9705 exp_sym_flag='-bexport'
9706 no_entry_flag='-bnoentry'
9709 # When large executables or shared objects are built, AIX ld can
9710 # have problems creating the table of contents. If linking a library
9711 # or program results in "error TOC overflow" add -mminimal-toc to
9712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717 hardcode_direct_absolute=yes
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 file_list_spec='$wl-f,'
9721 case $with_aix_soname,$aix_use_runtimelinking in
9722 aix,*) ;; # traditional, no import file
9723 svr4,* | *,yes) # use import file
9724 # The Import File defines what to hardcode.
9726 hardcode_direct_absolute=no
9730 if test yes = "$GCC"; then
9731 case $host_os in aix4.[012]|aix4.[012].*)
9732 # We only want to do this on AIX 4.2 and lower, the check
9733 # below for broken collect2 doesn't work under 4.3+
9734 collect2name=`$CC -print-prog-name=collect2`
9735 if test -f "$collect2name" &&
9736 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9738 # We have reworked collect2
9741 # We have old collect2
9742 hardcode_direct=unsupported
9743 # It fails to find uninstalled libraries when the uninstalled
9744 # path is not listed in the libpath. Setting hardcode_minus_L
9745 # to unsupported forces relinking
9746 hardcode_minus_L=yes
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_libdir_separator=
9752 shared_flag='-shared'
9753 if test yes = "$aix_use_runtimelinking"; then
9754 shared_flag="$shared_flag "'$wl-G'
9756 # Need to ensure runtime linking is disabled for the traditional
9757 # shared library, or the linker may eventually find shared libraries
9758 # /with/ Import File - we do not want to mix them.
9759 shared_flag_aix='-shared'
9760 shared_flag_svr4='-shared $wl-G'
9763 if test ia64 = "$host_cpu"; then
9764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9765 # chokes on -Wl,-G. The following line is correct:
9768 if test yes = "$aix_use_runtimelinking"; then
9771 shared_flag='$wl-bM:SRE'
9773 shared_flag_aix='$wl-bM:SRE'
9774 shared_flag_svr4='$wl-G'
9778 export_dynamic_flag_spec='$wl-bexpall'
9779 # It seems that -bexpall does not export symbols beginning with
9780 # underscore (_), so it is better to generate a list of symbols to export.
9781 always_export_symbols=yes
9782 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9783 # Warning - without using the other runtime loading flags (-brtl),
9784 # -berok will link without error, but may produce a broken library.
9785 allow_undefined_flag='-berok'
9786 # Determine the default libpath from the value encoded in an
9788 if test set = "${lt_cv_aix_libpath+set}"; then
9789 aix_libpath=$lt_cv_aix_libpath
9791 if ${lt_cv_aix_libpath_+:} false; then :
9792 $as_echo_n "(cached) " >&6
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9805 if ac_fn_c_try_link "$LINENO"; then :
9807 lt_aix_libpath_sed='
9808 /Import File Strings/,/^$/ {
9810 s/^0 *\([^ ]*\) *$/\1/
9814 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9815 # Check for a 64-bit object if we didn't find anything.
9816 if test -z "$lt_cv_aix_libpath_"; then
9817 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 if test -z "$lt_cv_aix_libpath_"; then
9823 lt_cv_aix_libpath_=/usr/lib:/lib
9828 aix_libpath=$lt_cv_aix_libpath_
9831 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9832 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
9834 if test ia64 = "$host_cpu"; then
9835 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9836 allow_undefined_flag="-z nodefs"
9837 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"
9839 # Determine the default libpath from the value encoded in an
9841 if test set = "${lt_cv_aix_libpath+set}"; then
9842 aix_libpath=$lt_cv_aix_libpath
9844 if ${lt_cv_aix_libpath_+:} false; then :
9845 $as_echo_n "(cached) " >&6
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9858 if ac_fn_c_try_link "$LINENO"; then :
9860 lt_aix_libpath_sed='
9861 /Import File Strings/,/^$/ {
9863 s/^0 *\([^ ]*\) *$/\1/
9867 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9868 # Check for a 64-bit object if we didn't find anything.
9869 if test -z "$lt_cv_aix_libpath_"; then
9870 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 if test -z "$lt_cv_aix_libpath_"; then
9876 lt_cv_aix_libpath_=/usr/lib:/lib
9881 aix_libpath=$lt_cv_aix_libpath_
9884 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9885 # Warning - without using the other run time loading flags,
9886 # -berok will link without error, but may produce a broken library.
9887 no_undefined_flag=' $wl-bernotok'
9888 allow_undefined_flag=' $wl-berok'
9889 if test yes = "$with_gnu_ld"; then
9890 # We only use this code for GNU lds that support --whole-archive.
9891 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9893 # Exported symbols can be pulled into shared objects from archives
9894 whole_archive_flag_spec='$convenience'
9896 archive_cmds_need_lc=yes
9897 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9898 # -brtl affects multiple linker settings, -berok does not and is overridden later
9899 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9900 if test svr4 != "$with_aix_soname"; then
9901 # This is similar to how AIX traditionally builds its shared libraries.
9902 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'
9904 if test aix != "$with_aix_soname"; then
9905 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'
9907 # used by -dlpreopen to get the symbols
9908 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9910 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 archive_expsym_cmds=''
9923 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)'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9931 export_dynamic_flag_spec=-rdynamic
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
9938 # no search path for DLLs.
9939 case $cc_basename in
9942 hardcode_libdir_flag_spec=' '
9943 allow_undefined_flag=unsupported
9944 always_export_symbols=yes
9946 # Tell ltmain to make .lib files, not .a files.
9948 # Tell ltmain to make .dll files, not .so files.
9950 # FIXME: Setting linknames here is a bad hack.
9951 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9952 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9953 cp "$export_symbols" "$output_objdir/$soname.def";
9954 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9956 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9958 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9960 # The linker will not automatically build a static lib if we build a DLL.
9961 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9962 enable_shared_with_static_runtimes=yes
9963 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9966 old_postinstall_cmds='chmod 644 $oldlib'
9967 postlink_cmds='lt_outputfile="@OUTPUT@"~
9968 lt_tool_outputfile="@TOOL_OUTPUT@"~
9969 case $lt_outputfile in
9972 lt_outputfile=$lt_outputfile.exe
9973 lt_tool_outputfile=$lt_tool_outputfile.exe
9976 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9977 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9978 $RM "$lt_outputfile.manifest";
9982 # Assume MSVC wrapper
9983 hardcode_libdir_flag_spec=' '
9984 allow_undefined_flag=unsupported
9985 # Tell ltmain to make .lib files, not .a files.
9987 # Tell ltmain to make .dll files, not .so files.
9989 # FIXME: Setting linknames here is a bad hack.
9990 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9991 # The linker will automatically build a .lib file if we build a DLL.
9992 old_archive_from_new_cmds='true'
9993 # FIXME: Should let the user specify the lib program.
9994 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9995 enable_shared_with_static_runtimes=yes
10000 darwin* | rhapsody*)
10003 archive_cmds_need_lc=no
10005 hardcode_automatic=yes
10006 hardcode_shlibpath_var=unsupported
10007 if test yes = "$lt_cv_ld_force_load"; then
10008 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\"`'
10011 whole_archive_flag_spec=''
10013 link_all_deplibs=yes
10014 allow_undefined_flag=$_lt_dar_allow_undefined
10015 case $cc_basename in
10016 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10017 *) _lt_dar_can_shared=$GCC ;;
10019 if test yes = "$_lt_dar_can_shared"; then
10020 output_verbose_link_cmd=func_echo_all
10021 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10022 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10023 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"
10024 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"
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_shlibpath_var=no
10038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10039 # support. Future versions do this automatically, but an explicit c++rt0.o
10040 # does not break anything, and helps significantly (at the cost of a little
10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10044 hardcode_libdir_flag_spec='-R$libdir'
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10052 hardcode_direct=yes
10053 hardcode_minus_L=yes
10054 hardcode_shlibpath_var=no
10057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10058 freebsd* | dragonfly*)
10059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10060 hardcode_libdir_flag_spec='-R$libdir'
10061 hardcode_direct=yes
10062 hardcode_shlibpath_var=no
10066 if test yes = "$GCC"; then
10067 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'
10069 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'
10071 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10072 hardcode_libdir_separator=:
10073 hardcode_direct=yes
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10078 export_dynamic_flag_spec='$wl-E'
10082 if test yes,no = "$GCC,$with_gnu_ld"; then
10083 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10087 if test no = "$with_gnu_ld"; then
10088 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10089 hardcode_libdir_separator=:
10090 hardcode_direct=yes
10091 hardcode_direct_absolute=yes
10092 export_dynamic_flag_spec='$wl-E'
10093 # hardcode_minus_L: Not really in the search PATH,
10094 # but as the default location of the library.
10095 hardcode_minus_L=yes
10100 if test yes,no = "$GCC,$with_gnu_ld"; then
10103 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10122 # Older versions of the 11.00 compiler do not understand -b yet
10123 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10125 $as_echo_n "checking if $CC understands -b... " >&6; }
10126 if ${lt_cv_prog_compiler__b+:} false; then :
10127 $as_echo_n "(cached) " >&6
10129 lt_cv_prog_compiler__b=no
10130 save_LDFLAGS=$LDFLAGS
10131 LDFLAGS="$LDFLAGS -b"
10132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10134 # The linker can only warn and ignore the option if not recognized
10135 # So say no if there are warnings
10136 if test -s conftest.err; then
10137 # Append any errors to the config.log.
10138 cat conftest.err 1>&5
10139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10141 if diff conftest.exp conftest.er2 >/dev/null; then
10142 lt_cv_prog_compiler__b=yes
10145 lt_cv_prog_compiler__b=yes
10149 LDFLAGS=$save_LDFLAGS
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10155 if test yes = "$lt_cv_prog_compiler__b"; then
10156 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10164 if test no = "$with_gnu_ld"; then
10165 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10166 hardcode_libdir_separator=:
10171 hardcode_shlibpath_var=no
10174 hardcode_direct=yes
10175 hardcode_direct_absolute=yes
10176 export_dynamic_flag_spec='$wl-E'
10178 # hardcode_minus_L: Not really in the search PATH,
10179 # but as the default location of the library.
10180 hardcode_minus_L=yes
10186 irix5* | irix6* | nonstopux*)
10187 if test yes = "$GCC"; then
10188 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'
10189 # Try to use the -exported_symbol ld option, if it does not
10190 # work, assume that -exports_file does not work either and
10191 # implicitly export all symbols.
10192 # This should be the same for all languages, so no per-tag cache variable.
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10194 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10195 if ${lt_cv_irix_exported_symbol+:} false; then :
10196 $as_echo_n "(cached) " >&6
10198 save_LDFLAGS=$LDFLAGS
10199 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202 int foo (void) { return 0; }
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 lt_cv_irix_exported_symbol=yes
10207 lt_cv_irix_exported_symbol=no
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LDFLAGS=$save_LDFLAGS
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10214 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10215 if test yes = "$lt_cv_irix_exported_symbol"; then
10216 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'
10218 link_all_deplibs=no
10220 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'
10221 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'
10223 archive_cmds_need_lc='no'
10224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10225 hardcode_libdir_separator=:
10227 link_all_deplibs=yes
10231 case $cc_basename in
10233 # Fabrice Bellard et al's Tiny C Compiler
10235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240 netbsd* | netbsdelf*-gnu)
10241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10246 hardcode_libdir_flag_spec='-R$libdir'
10247 hardcode_direct=yes
10248 hardcode_shlibpath_var=no
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_direct=yes
10254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10255 hardcode_libdir_separator=:
10256 hardcode_shlibpath_var=no
10262 openbsd* | bitrig*)
10263 if test -f /usr/libexec/ld.so; then
10264 hardcode_direct=yes
10265 hardcode_shlibpath_var=no
10266 hardcode_direct_absolute=yes
10267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10270 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10271 export_dynamic_flag_spec='$wl-E'
10273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10274 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10282 hardcode_libdir_flag_spec='-L$libdir'
10283 hardcode_minus_L=yes
10284 allow_undefined_flag=unsupported
10286 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10287 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10288 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10289 $ECHO EXPORTS >> $output_objdir/$libname.def~
10290 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10291 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10292 emximp -o $lib $output_objdir/$libname.def'
10293 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10294 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10295 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10296 $ECHO EXPORTS >> $output_objdir/$libname.def~
10297 prefix_cmds="$SED"~
10298 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10299 prefix_cmds="$prefix_cmds -e 1d";
10301 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10302 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10304 emximp -o $lib $output_objdir/$libname.def'
10305 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10306 enable_shared_with_static_runtimes=yes
10310 if test yes = "$GCC"; then
10311 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10312 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'
10314 allow_undefined_flag=' -expect_unresolved \*'
10315 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'
10317 archive_cmds_need_lc='no'
10318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10319 hardcode_libdir_separator=:
10322 osf4* | osf5*) # as osf3* with the addition of -msym flag
10323 if test yes = "$GCC"; then
10324 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10325 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'
10326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10328 allow_undefined_flag=' -expect_unresolved \*'
10329 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'
10330 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~
10331 $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'
10333 # Both c and cxx compiler support -rpath directly
10334 hardcode_libdir_flag_spec='-rpath $libdir'
10336 archive_cmds_need_lc='no'
10337 hardcode_libdir_separator=:
10341 no_undefined_flag=' -z defs'
10342 if test yes = "$GCC"; then
10344 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346 $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'
10348 case `$CC -V 2>&1` in
10351 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10353 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10357 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10358 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10359 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_shlibpath_var=no
10366 solaris2.[0-5] | solaris2.[0-5].*) ;;
10368 # The compiler driver will combine and reorder linker options,
10369 # but understands '-z linker_flag'. GCC discards it without '$wl',
10370 # but is careful enough not to reorder.
10371 # Supported since Solaris 2.6 (maybe 2.5.1?)
10372 if test yes = "$GCC"; then
10373 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10375 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10379 link_all_deplibs=yes
10383 if test sequent = "$host_vendor"; then
10384 # Use $CC to link under sequent, because it throws in some extra .o
10385 # files that make .init and .fini sections work.
10386 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_libdir_flag_spec='-L$libdir'
10391 hardcode_direct=yes
10392 hardcode_minus_L=yes
10393 hardcode_shlibpath_var=no
10397 case $host_vendor in
10399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400 hardcode_direct=yes # is this really true???
10403 ## LD is ld it makes a PLAMLIB
10404 ## CC just makes a GrossModule.
10405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10406 reload_cmds='$CC -r -o $output$reload_objs'
10410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10414 runpath_var='LD_RUN_PATH'
10415 hardcode_shlibpath_var=no
10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420 hardcode_shlibpath_var=no
10421 export_dynamic_flag_spec='-Bexport'
10425 if test -d /usr/nec; then
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_shlibpath_var=no
10428 runpath_var=LD_RUN_PATH
10429 hardcode_runpath_var=yes
10434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10435 no_undefined_flag='$wl-z,text'
10436 archive_cmds_need_lc=no
10437 hardcode_shlibpath_var=no
10438 runpath_var='LD_RUN_PATH'
10440 if test yes = "$GCC"; then
10441 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 sysv5* | sco3.2v5* | sco5v6*)
10450 # Note: We CANNOT use -z defs as we might desire, because we do not
10451 # link with -lc, and that would cause any symbols used from libc to
10452 # always be unresolved, which means just about no library would
10453 # ever link correctly. If we're not using GNU ld we use -z text
10454 # though, which does catch some bad symbols but isn't as heavy-handed
10456 no_undefined_flag='$wl-z,text'
10457 allow_undefined_flag='$wl-z,nodefs'
10458 archive_cmds_need_lc=no
10459 hardcode_shlibpath_var=no
10460 hardcode_libdir_flag_spec='$wl-R,$libdir'
10461 hardcode_libdir_separator=':'
10462 link_all_deplibs=yes
10463 export_dynamic_flag_spec='$wl-Bexport'
10464 runpath_var='LD_RUN_PATH'
10466 if test yes = "$GCC"; then
10467 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10468 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 hardcode_shlibpath_var=no
10486 if test sni = "$host_vendor"; then
10488 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10489 export_dynamic_flag_spec='$wl-Blargedynsym'
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10496 $as_echo "$ld_shlibs" >&6; }
10497 test no = "$ld_shlibs" && can_build_shared=no
10499 with_gnu_ld=$with_gnu_ld
10516 # Do we need to explicitly link libc?
10518 case "x$archive_cmds_need_lc" in
10520 # Assume -lc should be added
10521 archive_cmds_need_lc=yes
10523 if test yes,yes = "$GCC,$enable_shared"; then
10524 case $archive_cmds in
10526 # FIXME: we may have to deal with multi-command sequences.
10529 # Test whether the compiler implicitly links with -lc since on some
10530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10531 # to ld, don't add -lc before -lgcc.
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10533 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10534 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10535 $as_echo_n "(cached) " >&6
10538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10541 (eval $ac_compile) 2>&5
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; } 2>conftest.err; then
10547 libobjs=conftest.$ac_objext
10549 wl=$lt_prog_compiler_wl
10550 pic_flag=$lt_prog_compiler_pic
10556 lt_save_allow_undefined_flag=$allow_undefined_flag
10557 allow_undefined_flag=
10558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10559 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562 test $ac_status = 0; }
10564 lt_cv_archive_cmds_need_lc=no
10566 lt_cv_archive_cmds_need_lc=yes
10568 allow_undefined_flag=$lt_save_allow_undefined_flag
10570 cat conftest.err 1>&5
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10576 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10577 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10736 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10738 if test yes = "$GCC"; then
10740 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10741 *) lt_awk_arg='/^libraries:/' ;;
10744 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10745 *) lt_sed_strip_eq='s|=/|/|g' ;;
10747 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10748 case $lt_search_path_spec in
10750 # if the path contains ";" then we assume it to be the separator
10751 # otherwise default to the standard path separator (i.e. ":") - it is
10752 # assumed that no part of a normal pathname contains ";" but that should
10753 # okay in the real world where ";" in dirpaths is itself problematic.
10754 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10757 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10760 # Ok, now we have the path, separated by spaces, we can step through it
10761 # and add multilib dir if necessary...
10762 lt_tmp_lt_search_path_spec=
10763 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10764 # ...but if some path component already ends with the multilib dir we assume
10765 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10766 case "$lt_multi_os_dir; $lt_search_path_spec " in
10767 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10771 for lt_sys_path in $lt_search_path_spec; do
10772 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10773 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10774 elif test -n "$lt_multi_os_dir"; then
10775 test -d "$lt_sys_path" && \
10776 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10779 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10780 BEGIN {RS = " "; FS = "/|\n";} {
10783 for (lt_i = NF; lt_i > 0; lt_i--) {
10784 if ($lt_i != "" && $lt_i != ".") {
10785 if ($lt_i == "..") {
10788 if (lt_count == 0) {
10789 lt_foo = "/" $lt_i lt_foo;
10796 if (lt_foo != "") { lt_freq[lt_foo]++; }
10797 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10799 # AWK program above erroneously prepends '/' to C:/dos/paths
10802 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10803 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10805 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10809 library_names_spec=
10810 libname_spec='lib$name'
10814 postuninstall_cmds=
10818 shlibpath_overrides_runpath=unknown
10820 dynamic_linker="$host_os ld.so"
10821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10822 need_lib_prefix=unknown
10823 hardcode_into_libs=no
10825 # when you set need_version to no, make sure it does not cause -set_version
10826 # flags to be left without arguments
10827 need_version=unknown
10833 version_type=linux # correct to gnu/linux during the next big refactor
10834 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10835 shlibpath_var=LIBPATH
10837 # AIX 3 has no versioning support, so we append a major version to the name.
10838 soname_spec='$libname$release$shared_ext$major'
10842 version_type=linux # correct to gnu/linux during the next big refactor
10845 hardcode_into_libs=yes
10846 if test ia64 = "$host_cpu"; then
10847 # AIX 5 supports IA64
10848 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10849 shlibpath_var=LD_LIBRARY_PATH
10851 # With GCC up to 2.95.x, collect2 would create an import file
10852 # for dependence libraries. The import file would start with
10853 # the line '#! .'. This would cause the generated library to
10854 # depend on '.', always an invalid library. This was fixed in
10855 # development snapshots of GCC prior to 3.0.
10857 aix4 | aix4.[01] | aix4.[01].*)
10858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10860 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10863 can_build_shared=no
10867 # Using Import Files as archive members, it is possible to support
10868 # filename-based versioning of shared library archives on AIX. While
10869 # this would work for both with and without runtime linking, it will
10870 # prevent static linking of such archives. So we do filename-based
10871 # shared library versioning with .so extension only, which is used
10872 # when both runtime linking and shared linking is enabled.
10873 # Unfortunately, runtime linking may impact performance, so we do
10874 # not want this to be the default eventually. Also, we use the
10875 # versioned .so libs for executables only if there is the -brtl
10876 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10877 # To allow for filename-based versioning support, we need to create
10878 # libNAME.so.V as an archive file, containing:
10879 # *) an Import File, referring to the versioned filename of the
10880 # archive as well as the shared archive member, telling the
10881 # bitwidth (32 or 64) of that shared object, and providing the
10882 # list of exported symbols of that shared object, eventually
10883 # decorated with the 'weak' keyword
10884 # *) the shared object with the F_LOADONLY flag set, to really avoid
10885 # it being seen by the linker.
10886 # At run time we better use the real file rather than another symlink,
10887 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10889 case $with_aix_soname,$aix_use_runtimelinking in
10890 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10891 # soname into executable. Probably we can add versioning support to
10892 # collect2, so additional links can be useful in future.
10893 aix,yes) # traditional libtool
10894 dynamic_linker='AIX unversionable lib.so'
10895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10896 # instead of lib<name>.a to let people know that these are not
10897 # typical AIX shared libraries.
10898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900 aix,no) # traditional AIX only
10901 dynamic_linker='AIX lib.a(lib.so.V)'
10902 # We preserve .a as extension for shared libraries through AIX4.2
10903 # and later when we are not doing run time linking.
10904 library_names_spec='$libname$release.a $libname.a'
10905 soname_spec='$libname$release$shared_ext$major'
10907 svr4,*) # full svr4 only
10908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10910 # We do not specify a path in Import Files, so LIBPATH fires.
10911 shlibpath_overrides_runpath=yes
10913 *,yes) # both, prefer svr4
10914 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10915 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10916 # unpreferred sharedlib libNAME.a needs extra handling
10917 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"'
10918 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"'
10919 # We do not specify a path in Import Files, so LIBPATH fires.
10920 shlibpath_overrides_runpath=yes
10922 *,no) # both, prefer aix
10923 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10924 library_names_spec='$libname$release.a $libname.a'
10925 soname_spec='$libname$release$shared_ext$major'
10926 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10927 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)'
10928 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"'
10931 shlibpath_var=LIBPATH
10938 # Since July 2007 AmigaOS4 officially supports .so libraries.
10939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10943 library_names_spec='$libname.ixlibrary $libname.a'
10944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10945 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'
10951 library_names_spec='$libname$shared_ext'
10952 dynamic_linker="$host_os ld.so"
10953 shlibpath_var=LIBRARY_PATH
10957 version_type=linux # correct to gnu/linux during the next big refactor
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960 soname_spec='$libname$release$shared_ext$major'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10965 # the default ld.so.conf also contains /usr/contrib/lib and
10966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10967 # libtool to hard-code these into programs
10970 cygwin* | mingw* | pw32* | cegcc*)
10971 version_type=windows
10976 case $GCC,$cc_basename in
10979 library_names_spec='$libname.dll.a'
10980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10981 postinstall_cmds='base_file=`basename \$file`~
10982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10983 dldir=$destdir/`dirname \$dlpath`~
10984 test -d \$dldir || mkdir -p \$dldir~
10985 $install_prog $dir/$dlname \$dldir/$dlname~
10986 chmod a+x \$dldir/$dlname~
10987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10991 dlpath=$dir/\$dldll~
10993 shlibpath_overrides_runpath=yes
10997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10998 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11003 # MinGW DLLs use traditional 'lib' prefix
11004 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11007 # pw32 DLLs use 'pw' prefix rather than 'lib'
11008 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11011 dynamic_linker='Win32 ld.exe'
11016 libname_spec='$name'
11017 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11018 library_names_spec='$libname.dll.lib'
11022 sys_lib_search_path_spec=
11025 for lt_path in $LIB
11028 # Let DOS variable expansion print the short 8.3 style file name.
11029 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11030 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11033 # Convert to MSYS style.
11034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11037 # Convert to unix form, then to dos form, then back to unix form
11038 # but this time dos style (no spaces!) so that the unix form looks
11039 # like /cygdrive/c/PROGRA~1:/cygdr...
11040 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11041 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11042 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11045 sys_lib_search_path_spec=$LIB
11046 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11047 # It is most probably a Windows format PATH.
11048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11052 # FIXME: find the short name or the path components, as spaces are
11053 # common. (e.g. "Program Files" -> "PROGRA~1")
11057 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11058 postinstall_cmds='base_file=`basename \$file`~
11059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11060 dldir=$destdir/`dirname \$dlpath`~
11061 test -d \$dldir || mkdir -p \$dldir~
11062 $install_prog $dir/$dlname \$dldir/$dlname'
11063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11064 dlpath=$dir/\$dldll~
11066 shlibpath_overrides_runpath=yes
11067 dynamic_linker='Win32 link.exe'
11071 # Assume MSVC wrapper
11072 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11073 dynamic_linker='Win32 ld.exe'
11076 # FIXME: first we should search . and the directory the executable is in
11080 darwin* | rhapsody*)
11081 dynamic_linker="$host_os dyld"
11082 version_type=darwin
11085 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11086 soname_spec='$libname$release$major$shared_ext'
11087 shlibpath_overrides_runpath=yes
11088 shlibpath_var=DYLD_LIBRARY_PATH
11089 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11091 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11092 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11096 version_type=linux # correct to gnu/linux during the next big refactor
11099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100 soname_spec='$libname$release$shared_ext$major'
11101 shlibpath_var=LD_LIBRARY_PATH
11104 freebsd* | dragonfly*)
11105 # DragonFly does not have aout. When/if they implement a new
11106 # versioning mechanism, adjust this.
11107 if test -x /usr/bin/objformat; then
11108 objformat=`/usr/bin/objformat`
11111 freebsd[23].*) objformat=aout ;;
11112 *) objformat=elf ;;
11115 version_type=freebsd-$objformat
11116 case $version_type in
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119 soname_spec='$libname$release$shared_ext$major'
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11128 shlibpath_var=LD_LIBRARY_PATH
11131 shlibpath_overrides_runpath=yes
11133 freebsd3.[01]* | freebsdelf3.[01]*)
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11139 shlibpath_overrides_runpath=no
11140 hardcode_into_libs=yes
11142 *) # from 4.6 on, and DragonFly
11143 shlibpath_overrides_runpath=yes
11144 hardcode_into_libs=yes
11150 version_type=linux # correct to gnu/linux during the next big refactor
11153 dynamic_linker="$host_os runtime_loader"
11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
11156 shlibpath_var=LIBRARY_PATH
11157 shlibpath_overrides_runpath=no
11158 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11159 hardcode_into_libs=yes
11162 hpux9* | hpux10* | hpux11*)
11163 # Give a soname corresponding to the major version so that dld.sl refuses to
11164 # link against other versions.
11171 hardcode_into_libs=yes
11172 dynamic_linker="$host_os dld.so"
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11176 soname_spec='$libname$release$shared_ext$major'
11177 if test 32 = "$HPUX_IA64_MODE"; then
11178 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11179 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11182 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11187 hardcode_into_libs=yes
11188 dynamic_linker="$host_os dld.sl"
11189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192 soname_spec='$libname$release$shared_ext$major'
11193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11198 dynamic_linker="$host_os dld.sl"
11199 shlibpath_var=SHLIB_PATH
11200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11205 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11206 postinstall_cmds='chmod 555 $lib'
11207 # or fails outright, so override atomically:
11208 install_override_mode=555
11212 version_type=linux # correct to gnu/linux during the next big refactor
11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11216 soname_spec='$libname$release$shared_ext$major'
11217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11223 irix5* | irix6* | nonstopux*)
11225 nonstopux*) version_type=nonstopux ;;
11227 if test yes = "$lt_cv_prog_gnu_ld"; then
11228 version_type=linux # correct to gnu/linux during the next big refactor
11235 soname_spec='$libname$release$shared_ext$major'
11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11238 irix5* | nonstopux*)
11239 libsuff= shlibsuff=
11242 case $LD in # libtool.m4 will add one of these switches to LD
11243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11244 libsuff= shlibsuff= libmagic=32-bit;;
11245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11246 libsuff=32 shlibsuff=N32 libmagic=N32;;
11247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11249 *) libsuff= shlibsuff= libmagic=never-match;;
11253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11254 shlibpath_overrides_runpath=no
11255 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11256 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11257 hardcode_into_libs=yes
11260 # No shared lib support for Linux oldld, aout, or coff.
11261 linux*oldld* | linux*aout* | linux*coff*)
11266 version_type=none # Android doesn't support versioned libraries.
11269 library_names_spec='$libname$release$shared_ext'
11270 soname_spec='$libname$release$shared_ext'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11275 # This implies no fast_install, which is unacceptable.
11276 # Some rework will be needed to allow for fast_install
11277 # before this can be enabled.
11278 hardcode_into_libs=yes
11280 dynamic_linker='Android linker'
11281 # Don't embed -rpath directories since the linker doesn't support them.
11282 hardcode_libdir_flag_spec='-L$libdir'
11285 # This must be glibc/ELF.
11286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11287 version_type=linux # correct to gnu/linux during the next big refactor
11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291 soname_spec='$libname$release$shared_ext$major'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11296 # Some binutils ld are patched to set DT_RUNPATH
11297 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 lt_cv_shlibpath_overrides_runpath=no
11301 save_LDFLAGS=$LDFLAGS
11302 save_libdir=$libdir
11303 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11304 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11318 lt_cv_shlibpath_overrides_runpath=yes
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LDFLAGS=$save_LDFLAGS
11324 libdir=$save_libdir
11328 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11330 # This implies no fast_install, which is unacceptable.
11331 # Some rework will be needed to allow for fast_install
11332 # before this can be enabled.
11333 hardcode_into_libs=yes
11335 # Ideally, we could use ldconfig to report *all* directores which are
11336 # searched for libraries, however this is still not possible. Aside from not
11337 # being certain /sbin/ldconfig is available, command
11338 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11339 # even though it is searched at run-time. Try to do the best guess by
11340 # appending ld.so.conf contents (and includes) to the search path.
11341 if test -f /etc/ld.so.conf; then
11342 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' ' '`
11343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11346 # We used to test for /lib/ld.so.1 and disable shared libraries on
11347 # powerpc, because MkLinux only supported shared libraries with the
11348 # GNU dynamic linker. Since this was broken with cross compilers,
11349 # most powerpc-linux boxes support dynamic linking these days and
11350 # people can always --disable-shared, the test was removed, and we
11351 # assume the GNU/Linux dynamic linker is in use.
11352 dynamic_linker='GNU/Linux ld.so'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=no
11363 hardcode_into_libs=yes
11364 dynamic_linker='NetBSD ld.elf_so'
11371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11374 dynamic_linker='NetBSD (a.out) ld.so'
11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11377 soname_spec='$libname$release$shared_ext$major'
11378 dynamic_linker='NetBSD ld.elf_so'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 hardcode_into_libs=yes
11386 version_type=linux # correct to gnu/linux during the next big refactor
11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 shlibpath_overrides_runpath=yes
11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397 soname_spec='$libname$release$shared_ext$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11400 hardcode_into_libs=yes
11401 dynamic_linker='ldqnx.so'
11404 openbsd* | bitrig*)
11406 sys_lib_dlsearch_path_spec=/usr/lib
11408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=yes
11420 libname_spec='$name'
11421 version_type=windows
11425 # OS/2 can only load a DLL with a base name of 8 characters or less.
11426 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11427 v=$($ECHO $release$versuffix | tr -d .-);
11428 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11429 $ECHO $n$v`$shared_ext'
11430 library_names_spec='${libname}_dll.$libext'
11431 dynamic_linker='OS/2 ld.exe'
11432 shlibpath_var=BEGINLIBPATH
11433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11435 postinstall_cmds='base_file=`basename \$file`~
11436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11437 dldir=$destdir/`dirname \$dlpath`~
11438 test -d \$dldir || mkdir -p \$dldir~
11439 $install_prog $dir/$dlname \$dldir/$dlname~
11440 chmod a+x \$dldir/$dlname~
11441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11445 dlpath=$dir/\$dldll~
11449 osf3* | osf4* | osf5*)
11453 soname_spec='$libname$release$shared_ext$major'
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11465 version_type=linux # correct to gnu/linux during the next big refactor
11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469 soname_spec='$libname$release$shared_ext$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=yes
11472 hardcode_into_libs=yes
11473 # ldd complains unless libraries are executable
11474 postinstall_cmds='chmod +x $lib'
11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11480 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=yes
11483 if test yes = "$with_gnu_ld"; then
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11492 soname_spec='$libname$release$shared_ext$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 case $host_vendor in
11496 shlibpath_overrides_runpath=no
11498 runpath_var=LD_RUN_PATH
11506 shlibpath_overrides_runpath=no
11507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11513 if test -d /usr/nec; then
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11516 soname_spec='$libname$shared_ext.$major'
11517 shlibpath_var=LD_LIBRARY_PATH
11521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 if test yes = "$with_gnu_ld"; then
11531 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11533 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11536 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11540 sys_lib_dlsearch_path_spec='/usr/lib'
11544 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11545 version_type=linux # correct to gnu/linux during the next big refactor
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=no
11551 hardcode_into_libs=yes
11555 version_type=linux # correct to gnu/linux during the next big refactor
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11566 $as_echo "$dynamic_linker" >&6; }
11567 test no = "$dynamic_linker" && can_build_shared=no
11569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11570 if test yes = "$GCC"; then
11571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11574 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11575 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11578 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11579 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11582 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11583 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11585 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11586 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11588 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11589 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11690 if test -n "$hardcode_libdir_flag_spec" ||
11691 test -n "$runpath_var" ||
11692 test yes = "$hardcode_automatic"; then
11694 # We can hardcode non-existent directories.
11695 if test no != "$hardcode_direct" &&
11696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11697 # have to relink, otherwise we might link with an installed library
11698 # when we should be linking with a yet-to-be-installed one
11699 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11700 test no != "$hardcode_minus_L"; then
11701 # Linking always hardcodes the temporary library directory.
11702 hardcode_action=relink
11704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11705 hardcode_action=immediate
11708 # We cannot hardcode anything, or else we can only hardcode existing
11710 hardcode_action=unsupported
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11713 $as_echo "$hardcode_action" >&6; }
11715 if test relink = "$hardcode_action" ||
11716 test yes = "$inherit_rpath"; then
11717 # Fast installation is not supported
11718 enable_fast_install=no
11719 elif test yes = "$shlibpath_overrides_runpath" ||
11720 test no = "$enable_shared"; then
11721 # Fast installation is not necessary
11722 enable_fast_install=needless
11730 if test yes != "$enable_dlopen"; then
11731 enable_dlopen=unknown
11732 enable_dlopen_self=unknown
11733 enable_dlopen_self_static=unknown
11740 lt_cv_dlopen=load_add_on
11742 lt_cv_dlopen_self=yes
11745 mingw* | pw32* | cegcc*)
11746 lt_cv_dlopen=LoadLibrary
11751 lt_cv_dlopen=dlopen
11756 # if libdl is installed we need to link against it
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11758 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11759 if ${ac_cv_lib_dl_dlopen+:} false; then :
11760 $as_echo_n "(cached) " >&6
11762 ac_check_lib_save_LIBS=$LIBS
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_dl_dlopen=yes
11785 ac_cv_lib_dl_dlopen=no
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11792 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11793 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11794 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11799 lt_cv_dlopen_self=yes
11806 # Don't try to run any link tests for TPF. We know it's impossible
11807 # because TPF is a cross-compiler, and we know how we open DSOs.
11808 lt_cv_dlopen=dlopen
11810 lt_cv_dlopen_self=no
11814 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11815 if test "x$ac_cv_func_shl_load" = xyes; then :
11816 lt_cv_dlopen=shl_load
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11819 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11820 if ${ac_cv_lib_dld_shl_load+:} false; then :
11821 $as_echo_n "(cached) " >&6
11823 ac_check_lib_save_LIBS=$LIBS
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11838 return shl_load ();
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 ac_cv_lib_dld_shl_load=yes
11846 ac_cv_lib_dld_shl_load=no
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11853 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11854 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11855 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11857 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11858 if test "x$ac_cv_func_dlopen" = xyes; then :
11859 lt_cv_dlopen=dlopen
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11863 if ${ac_cv_lib_dl_dlopen+:} false; then :
11864 $as_echo_n "(cached) " >&6
11866 ac_check_lib_save_LIBS=$LIBS
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11871 /* Override any GCC internal prototype to avoid an error.
11872 Use char because int might match the return type of a GCC
11873 builtin and then its argument prototype would still apply. */
11886 if ac_fn_c_try_link "$LINENO"; then :
11887 ac_cv_lib_dl_dlopen=yes
11889 ac_cv_lib_dl_dlopen=no
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11897 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11898 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11901 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11902 if ${ac_cv_lib_svld_dlopen+:} false; then :
11903 $as_echo_n "(cached) " >&6
11905 ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lsvld $LIBS"
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11910 /* Override any GCC internal prototype to avoid an error.
11911 Use char because int might match the return type of a GCC
11912 builtin and then its argument prototype would still apply. */
11925 if ac_fn_c_try_link "$LINENO"; then :
11926 ac_cv_lib_svld_dlopen=yes
11928 ac_cv_lib_svld_dlopen=no
11930 rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11936 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11937 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11941 if ${ac_cv_lib_dld_dld_link+:} false; then :
11942 $as_echo_n "(cached) " >&6
11944 ac_check_lib_save_LIBS=$LIBS
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11959 return dld_link ();
11964 if ac_fn_c_try_link "$LINENO"; then :
11965 ac_cv_lib_dld_dld_link=yes
11967 ac_cv_lib_dld_dld_link=no
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11974 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11975 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11976 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11997 if test no = "$lt_cv_dlopen"; then
12003 case $lt_cv_dlopen in
12005 save_CPPFLAGS=$CPPFLAGS
12006 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12008 save_LDFLAGS=$LDFLAGS
12009 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12012 LIBS="$lt_cv_dlopen_libs $LIBS"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12015 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12016 if ${lt_cv_dlopen_self+:} false; then :
12017 $as_echo_n "(cached) " >&6
12019 if test yes = "$cross_compiling"; then :
12020 lt_cv_dlopen_self=cross
12022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12023 lt_status=$lt_dlunknown
12024 cat > conftest.$ac_ext <<_LT_EOF
12025 #line $LINENO "configure"
12026 #include "confdefs.h"
12035 # define LT_DLGLOBAL RTLD_GLOBAL
12038 # define LT_DLGLOBAL DL_GLOBAL
12040 # define LT_DLGLOBAL 0
12044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12045 find out it does not work in some platform. */
12046 #ifndef LT_DLLAZY_OR_NOW
12048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12051 # define LT_DLLAZY_OR_NOW DL_LAZY
12054 # define LT_DLLAZY_OR_NOW RTLD_NOW
12057 # define LT_DLLAZY_OR_NOW DL_NOW
12059 # define LT_DLLAZY_OR_NOW 0
12066 /* When -fvisibility=hidden is used, assume the code has been annotated
12067 correspondingly for the symbols needed. */
12068 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12069 int fnord () __attribute__((visibility("default")));
12072 int fnord () { return 42; }
12075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12076 int status = $lt_dlunknown;
12080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12084 else puts (dlerror ());
12086 /* dlclose (self); */
12094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12095 (eval $ac_link) 2>&5
12097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12099 (./conftest; exit; ) >&5 2>/dev/null
12101 case x$lt_status in
12102 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12103 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12104 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12107 # compilation failed
12108 lt_cv_dlopen_self=no
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12116 $as_echo "$lt_cv_dlopen_self" >&6; }
12118 if test yes = "$lt_cv_dlopen_self"; then
12119 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12122 if ${lt_cv_dlopen_self_static+:} false; then :
12123 $as_echo_n "(cached) " >&6
12125 if test yes = "$cross_compiling"; then :
12126 lt_cv_dlopen_self_static=cross
12128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129 lt_status=$lt_dlunknown
12130 cat > conftest.$ac_ext <<_LT_EOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12141 # define LT_DLGLOBAL RTLD_GLOBAL
12144 # define LT_DLGLOBAL DL_GLOBAL
12146 # define LT_DLGLOBAL 0
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151 find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW DL_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW DL_NOW
12165 # define LT_DLLAZY_OR_NOW 0
12172 /* When -fvisibility=hidden is used, assume the code has been annotated
12173 correspondingly for the symbols needed. */
12174 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12175 int fnord () __attribute__((visibility("default")));
12178 int fnord () { return 42; }
12181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12182 int status = $lt_dlunknown;
12186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12189 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12190 else puts (dlerror ());
12192 /* dlclose (self); */
12200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12201 (eval $ac_link) 2>&5
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12205 (./conftest; exit; ) >&5 2>/dev/null
12207 case x$lt_status in
12208 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12209 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12210 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12213 # compilation failed
12214 lt_cv_dlopen_self_static=no
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12222 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12225 CPPFLAGS=$save_CPPFLAGS
12226 LDFLAGS=$save_LDFLAGS
12231 case $lt_cv_dlopen_self in
12232 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12233 *) enable_dlopen_self=unknown ;;
12236 case $lt_cv_dlopen_self_static in
12237 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12238 *) enable_dlopen_self_static=unknown ;;
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12262 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12263 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12264 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12268 # FIXME - insert some real tests, host_os isn't really good enough
12271 if test -n "$STRIP"; then
12272 striplib="$STRIP -x"
12273 old_striplib="$STRIP -S"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12299 # Report what library types will actually be built
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12301 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12303 $as_echo "$can_build_shared" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12306 $as_echo_n "checking whether to build shared libraries... " >&6; }
12307 test no = "$can_build_shared" && enable_shared=no
12309 # On AIX, shared libraries and static libraries use the same namespace, and
12310 # are all built from PIC.
12313 test yes = "$enable_shared" && enable_static=no
12314 if test -n "$RANLIB"; then
12315 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12316 postinstall_cmds='$RANLIB $lib'
12321 if test ia64 != "$host_cpu"; then
12322 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12323 yes,aix,yes) ;; # shared object as lib.so file only
12324 yes,svr4,*) ;; # shared object as lib.so archive member only
12325 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12331 $as_echo "$enable_shared" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12334 $as_echo_n "checking whether to build static libraries... " >&6; }
12335 # Make sure either enable_shared or enable_static is yes.
12336 test yes = "$enable_shared" || enable_static=yes
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12338 $as_echo "$enable_static" >&6; }
12345 ac_cpp='$CPP $CPPFLAGS'
12346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12366 ac_config_commands="$ac_config_commands libtool"
12371 # Only expand once:
12375 # Whether linker support --version-script option
12376 echo '{global:hello; local:*;};' > conftest.ver
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports -version-script" >&5
12378 $as_echo_n "checking whether linker supports -version-script... " >&6; }
12379 if ${datrie_cv_have_version_script+:} false; then :
12380 $as_echo_n "(cached) " >&6
12382 datrie_cv_have_version_script=no
12383 save_LDFLAGS=$LDFLAGS
12384 LDFLAGS="$LDFLAGS -Wl,-version-script -Wl,conftest.ver"
12385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12387 # The linker can only warn and ignore the option if not recognized
12388 # So say no if there are warnings
12389 if test -s conftest.err; then
12390 # Append any errors to the config.log.
12391 cat conftest.err 1>&5
12392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12394 if diff conftest.exp conftest.er2 >/dev/null; then
12395 datrie_cv_have_version_script=yes
12398 datrie_cv_have_version_script=yes
12402 LDFLAGS=$save_LDFLAGS
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_have_version_script" >&5
12406 $as_echo "$datrie_cv_have_version_script" >&6; }
12408 if test yes = "$datrie_cv_have_version_script"; then
12415 if test "$datrie_cv_have_version_script" = "yes"; then
12416 LD_HAS_VERSION_SCRIPT_TRUE=
12417 LD_HAS_VERSION_SCRIPT_FALSE='#'
12419 LD_HAS_VERSION_SCRIPT_TRUE='#'
12420 LD_HAS_VERSION_SCRIPT_FALSE=
12424 # Checks for libraries.
12430 # Check in the C library first
12431 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
12432 if test "x$ac_cv_func_iconv_open" = xyes; then :
12433 with_libiconv=no; found_iconv=yes
12436 # Check if we have GNU libiconv
12437 if test $found_iconv = "no"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
12439 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
12440 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
12441 $as_echo_n "(cached) " >&6
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-liconv $LIBS"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12454 char libiconv_open ();
12458 return libiconv_open ();
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_iconv_libiconv_open=yes
12466 ac_cv_lib_iconv_libiconv_open=no
12468 rm -f core conftest.err conftest.$ac_objext \
12469 conftest$ac_exeext conftest.$ac_ext
12470 LIBS=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
12473 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
12474 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
12475 with_libiconv=gnu; found_iconv=yes
12479 # Check if we have a iconv in -liconv, possibly from vendor
12480 if test $found_iconv = "no"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
12482 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
12483 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
12484 $as_echo_n "(cached) " >&6
12486 ac_check_lib_save_LIBS=$LIBS
12487 LIBS="-liconv $LIBS"
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12497 char iconv_open ();
12501 return iconv_open ();
12506 if ac_fn_c_try_link "$LINENO"; then :
12507 ac_cv_lib_iconv_iconv_open=yes
12509 ac_cv_lib_iconv_iconv_open=no
12511 rm -f core conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
12516 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
12517 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
12518 with_libiconv=native; found_iconv=yes
12522 if test $found_iconv = "no"; then
12523 as_fn_error $? "*** No usable iconv() implementation found" "$LINENO" 5
12526 case $with_libiconv in
12528 ICONV_LIBS="-liconv"
12534 # Checks for locale_charset() and nl_langinfo(CODESET)
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
12537 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
12538 if ${ac_cv_lib_iconv_locale_charset+:} false; then :
12539 $as_echo_n "(cached) " >&6
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-liconv $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12552 char locale_charset ();
12556 return locale_charset ();
12561 if ac_fn_c_try_link "$LINENO"; then :
12562 ac_cv_lib_iconv_locale_charset=yes
12564 ac_cv_lib_iconv_locale_charset=no
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
12571 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
12572 if test "x$ac_cv_lib_iconv_locale_charset" = xyes; then :
12573 have_locale_charset=yes
12575 have_locale_charset=no
12578 if test x$have_locale_charset = xyes; then
12580 $as_echo "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
12584 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
12585 if ${datrie_cv_langinfo_codeset+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12590 #include <langinfo.h>
12594 char *codeset = nl_langinfo (CODESET);
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 datrie_cv_langinfo_codeset=yes
12602 datrie_cv_langinfo_codeset=no
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_langinfo_codeset" >&5
12608 $as_echo "$datrie_cv_langinfo_codeset" >&6; }
12609 if test x$datrie_cv_langinfo_codeset = xyes; then
12611 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12614 if test x$have_locale_charset = xno && test x$datrie_cv_langinfo_codeset = xno
12616 as_fn_error $? "*** No locale_charset() nor nl_langinfo(CODESET) found.
12617 Please consider installing GNU libiconv." "$LINENO" 5
12621 # Checks for header files.
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12623 $as_echo_n "checking for ANSI C header files... " >&6; }
12624 if ${ac_cv_header_stdc+:} false; then :
12625 $as_echo_n "(cached) " >&6
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629 #include <stdlib.h>
12630 #include <stdarg.h>
12631 #include <string.h>
12642 if ac_fn_c_try_compile "$LINENO"; then :
12643 ac_cv_header_stdc=yes
12645 ac_cv_header_stdc=no
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 if test $ac_cv_header_stdc = yes; then
12650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <string.h>
12656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12657 $EGREP "memchr" >/dev/null 2>&1; then :
12660 ac_cv_header_stdc=no
12666 if test $ac_cv_header_stdc = yes; then
12667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 #include <stdlib.h>
12673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12674 $EGREP "free" >/dev/null 2>&1; then :
12677 ac_cv_header_stdc=no
12683 if test $ac_cv_header_stdc = yes; then
12684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12685 if test "$cross_compiling" = yes; then :
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 #include <stdlib.h>
12692 #if ((' ' & 0x0FF) == 0x020)
12693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12696 # define ISLOWER(c) \
12697 (('a' <= (c) && (c) <= 'i') \
12698 || ('j' <= (c) && (c) <= 'r') \
12699 || ('s' <= (c) && (c) <= 'z'))
12700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12708 for (i = 0; i < 256; i++)
12709 if (XOR (islower (i), ISLOWER (i))
12710 || toupper (i) != TOUPPER (i))
12715 if ac_fn_c_try_run "$LINENO"; then :
12718 ac_cv_header_stdc=no
12720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12721 conftest.$ac_objext conftest.beam conftest.$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12727 $as_echo "$ac_cv_header_stdc" >&6; }
12728 if test $ac_cv_header_stdc = yes; then
12730 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12734 for ac_header in limits.h stdlib.h stdio.h string.h
12736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12739 cat >>confdefs.h <<_ACEOF
12740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12748 # Checks for typedefs, structures, and compiler characteristics.
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12751 if ${ac_cv_c_const+:} false; then :
12752 $as_echo_n "(cached) " >&6
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12761 #ifndef __cplusplus
12762 /* Ultrix mips cc rejects this sort of thing. */
12763 typedef int charset[2];
12764 const charset cs = { 0, 0 };
12765 /* SunOS 4.1.1 cc rejects this. */
12766 char const *const *pcpcc;
12768 /* NEC SVR4.0.2 mips cc rejects this. */
12769 struct point {int x, y;};
12770 static struct point const zero = {0,0};
12771 /* AIX XL C 1.02.0.0 rejects this.
12772 It does not let you subtract one const X* pointer from another in
12773 an arm of an if-expression whose if-part is not a constant
12775 const char *g = "string";
12776 pcpcc = &g + (g ? g-g : 0);
12777 /* HPUX 7.0 cc rejects these. */
12779 ppc = (char**) pcpcc;
12780 pcpcc = (char const *const *) ppc;
12781 { /* SCO 3.2v4 cc rejects this sort of thing. */
12784 char const *s = 0 ? (char *) 0 : (char const *) 0;
12789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12790 int x[] = {25, 17};
12791 const int *foo = &x[0];
12794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12795 typedef const int *iptr;
12799 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12801 struct s { int j; const int *ap[3]; } bx;
12802 struct s *b = &bx; b->j = 5;
12804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12805 const int foo = 10;
12806 if (!foo) return 0;
12808 return !cs[0] && !zero.x;
12815 if ac_fn_c_try_compile "$LINENO"; then :
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12823 $as_echo "$ac_cv_c_const" >&6; }
12824 if test $ac_cv_c_const = no; then
12826 $as_echo "#define const /**/" >>confdefs.h
12830 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12831 if test "x$ac_cv_type_size_t" = xyes; then :
12835 cat >>confdefs.h <<_ACEOF
12836 #define size_t unsigned int
12842 # Check whether --enable-doxygen-doc was given.
12843 if test "${enable_doxygen_doc+set}" = set; then :
12844 enableval=$enable_doxygen_doc;
12846 enable_doxygen_doc="yes"
12850 if test "x$enable_doxygen_doc" = "xyes"; then
12851 # Extract the first word of "doxygen", so it can be a program name with args.
12852 set dummy doxygen; ac_word=$2
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12854 $as_echo_n "checking for $ac_word... " >&6; }
12855 if ${ac_cv_prog_DOXYGEN+:} false; then :
12856 $as_echo_n "(cached) " >&6
12858 if test -n "$DOXYGEN"; then
12859 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12862 for as_dir in $PATH
12865 test -z "$as_dir" && as_dir=.
12866 for ac_exec_ext in '' $ac_executable_extensions; do
12867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12868 ac_cv_prog_DOXYGEN="doxygen"
12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
12879 DOXYGEN=$ac_cv_prog_DOXYGEN
12880 if test -n "$DOXYGEN"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12882 $as_echo "$DOXYGEN" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12889 if test "x$DOXYGEN" = "xno"; then
12890 enable_doxygen_doc="no"
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking doxygen >= $DOXYGEN_REQ_VER" >&5
12893 $as_echo_n "checking doxygen >= $DOXYGEN_REQ_VER... " >&6; }
12894 DOXYGEN_VER=$($DOXYGEN --version)
12898 # Used to indicate true or false condition
12899 ax_compare_version=false
12901 # Convert the two version strings to be compared into a format that
12902 # allows a simple string comparison. The end result is that a version
12903 # string of the form 1.12.5-r617 will be converted to the form
12904 # 0001001200050617. In other words, each number is zero padded to four
12905 # digits, and non digits are removed.
12907 ax_compare_version_A=`echo "$DOXYGEN_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12908 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12909 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12910 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12914 ax_compare_version_B=`echo "DOXYGEN_REQ_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12915 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12916 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12917 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12921 ax_compare_version=`echo "x$ax_compare_version_A
12922 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12926 if test "$ax_compare_version" = "true" ; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, yes" >&5
12928 $as_echo "$DOXYGEN_VER, yes" >&6; }
12929 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, no, documentation disabled" >&5
12930 $as_echo "$DOXYGEN_VER, no, documentation disabled" >&6; }; enable_doxygen_doc="no"
12937 # Check whether --with-html-docdir was given.
12938 if test "${with_html_docdir+set}" = set; then :
12939 withval=$with_html_docdir; htmldocdir="$withval"
12941 htmldocdir=\$\{prefix\}/share/doc/datrie/html
12946 if test "x$enable_doxygen_doc" = "xyes"; then
12947 ENABLE_DOXYGEN_DOC_TRUE=
12948 ENABLE_DOXYGEN_DOC_FALSE='#'
12950 ENABLE_DOXYGEN_DOC_TRUE='#'
12951 ENABLE_DOXYGEN_DOC_FALSE=
12955 # Checks for library functions.
12956 for ac_header in stdlib.h
12958 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12959 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_STDLIB_H 1
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12969 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12970 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12971 $as_echo_n "(cached) " >&6
12973 if test "$cross_compiling" = yes; then :
12974 ac_cv_func_malloc_0_nonnull=no
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12979 # include <stdlib.h>
12987 return ! malloc (0);
12992 if ac_fn_c_try_run "$LINENO"; then :
12993 ac_cv_func_malloc_0_nonnull=yes
12995 ac_cv_func_malloc_0_nonnull=no
12997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12998 conftest.$ac_objext conftest.beam conftest.$ac_ext
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13003 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13004 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13006 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13009 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13011 case " $LIBOBJS " in
13012 *" malloc.$ac_objext "* ) ;;
13013 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13018 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13024 ac_config_files="$ac_config_files Makefile datrie-0.2.pc datrie/Makefile tools/Makefile man/Makefile doc/Makefile doc/Doxyfile tests/Makefile"
13026 cat >confcache <<\_ACEOF
13027 # This file is a shell script that caches the results of configure
13028 # tests run on this system so they can be shared between configure
13029 # scripts and configure runs, see configure's option --config-cache.
13030 # It is not useful on other systems. If it contains results you don't
13031 # want to keep, you may remove or edit it.
13033 # config.status only pays attention to the cache file if you give it
13034 # the --recheck option to rerun configure.
13036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13038 # following values.
13042 # The following way of writing the cache mishandles newlines in values,
13043 # but we know of no workaround that is simple, portable, and efficient.
13044 # So, we kill variables containing newlines.
13045 # Ultrix sh set writes to stderr and can't be redirected directly,
13046 # and sets the high bit in the cache file unless we assign to the vars.
13048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13049 eval ac_val=\$$ac_var
13053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13057 _ | IFS | as_nl) ;; #(
13058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13059 *) { eval $ac_var=; unset $ac_var;} ;;
13065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13066 *${as_nl}ac_space=\ *)
13067 # `set' does not quote correctly, so add quotes: double-quote
13068 # substitution turns \\\\ into \\, and sed turns \\ into \.
13071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13074 # `set' quotes correctly as required by POSIX, so do not add quotes.
13075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13089 if test -w "$cache_file"; then
13090 if test "x$cache_file" != "x/dev/null"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13092 $as_echo "$as_me: updating cache $cache_file" >&6;}
13093 if test ! -f "$cache_file" || test -h "$cache_file"; then
13094 cat confcache >"$cache_file"
13096 case $cache_file in #(
13098 mv -f confcache "$cache_file"$$ &&
13099 mv -f "$cache_file"$$ "$cache_file" ;; #(
13101 mv -f confcache "$cache_file" ;;
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13113 # Let make expand exec_prefix.
13114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13116 DEFS=-DHAVE_CONFIG_H
13121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13122 # 1. Remove the extension, and $U if already installed.
13123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13126 # will be set to the directory where LIBOBJS objects are built.
13127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13130 LIBOBJS=$ac_libobjs
13132 LTLIBOBJS=$ac_ltlibobjs
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13136 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13137 if test -n "$am_sleep_pid"; then
13138 # Hide warnings about reused PIDs.
13139 wait $am_sleep_pid 2>/dev/null
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13142 $as_echo "done" >&6; }
13143 if test -n "$EXEEXT"; then
13145 am__EXEEXT_FALSE='#'
13147 am__EXEEXT_TRUE='#'
13151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13152 as_fn_error $? "conditional \"AMDEP\" was never defined.
13153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13156 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13159 if test -z "${LD_HAS_VERSION_SCRIPT_TRUE}" && test -z "${LD_HAS_VERSION_SCRIPT_FALSE}"; then
13160 as_fn_error $? "conditional \"LD_HAS_VERSION_SCRIPT\" was never defined.
13161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13163 if test -z "${ENABLE_DOXYGEN_DOC_TRUE}" && test -z "${ENABLE_DOXYGEN_DOC_FALSE}"; then
13164 as_fn_error $? "conditional \"ENABLE_DOXYGEN_DOC\" was never defined.
13165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13168 : "${CONFIG_STATUS=./config.status}"
13170 ac_clean_files_save=$ac_clean_files
13171 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13173 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13175 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13177 # Generated by $as_me.
13178 # Run this file to recreate the current configuration.
13179 # Compiler output produced by configure, useful for debugging
13180 # configure, is in config.log if it exists.
13183 ac_cs_recheck=false
13186 SHELL=\${CONFIG_SHELL-$SHELL}
13189 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13190 ## -------------------- ##
13191 ## M4sh Initialization. ##
13192 ## -------------------- ##
13194 # Be more Bourne compatible
13195 DUALCASE=1; export DUALCASE # for MKS sh
13196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13200 # is contrary to our usage. Disable this feature.
13201 alias -g '${1+"$@"}'='"$@"'
13202 setopt NO_GLOB_SUBST
13204 case `(set -o) 2>/dev/null` in #(
13216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13220 # Prefer a ksh shell builtin over an external printf program on Solaris,
13221 # but without wasting forks for bash or zsh.
13222 if test -z "$BASH_VERSION$ZSH_VERSION" \
13223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13224 as_echo='print -r --'
13225 as_echo_n='print -rn --'
13226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13227 as_echo='printf %s\n'
13228 as_echo_n='printf %s'
13230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13232 as_echo_n='/usr/ucb/echo -n'
13234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13235 as_echo_n_body='eval
13239 expr "X$arg" : "X\\(.*\\)$as_nl";
13240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13244 export as_echo_n_body
13245 as_echo_n='sh -c $as_echo_n_body as_echo'
13247 export as_echo_body
13248 as_echo='sh -c $as_echo_body as_echo'
13251 # The user is always right.
13252 if test "${PATH_SEPARATOR+set}" != set; then
13254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13262 # We need space, tab and new line, in precisely that order. Quoting is
13263 # there to prevent editors from complaining about space-tab.
13264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13265 # splitting by setting IFS to empty value.)
13268 # Find who we are. Look in the path if we contain no directory separator.
13271 *[\\/]* ) as_myself=$0 ;;
13272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13276 test -z "$as_dir" && as_dir=.
13277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13283 # We did not find ourselves, most probably we were run as `sh COMMAND'
13284 # in which case we are not to be found in the path.
13285 if test "x$as_myself" = x; then
13288 if test ! -f "$as_myself"; then
13289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13293 # Unset variables that we do not need and which cause bugs (e.g. in
13294 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13295 # suppresses any "Segmentation fault" message there. '((' could
13296 # trigger a bug in pdksh 5.2.14.
13297 for as_var in BASH_ENV ENV MAIL MAILPATH
13298 do eval test x\${$as_var+set} = xset \
13299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13316 # ----------------------------------------
13317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13319 # script with STATUS, using 1 if that was 0.
13322 as_status=$1; test $as_status -eq 0 && as_status=1
13324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13327 $as_echo "$as_me: error: $2" >&2
13328 as_fn_exit $as_status
13332 # as_fn_set_status STATUS
13333 # -----------------------
13334 # Set $? to STATUS, without forking.
13335 as_fn_set_status ()
13338 } # as_fn_set_status
13340 # as_fn_exit STATUS
13341 # -----------------
13342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13346 as_fn_set_status $1
13352 # Portably unset VAR.
13355 { eval $1=; unset $1;}
13357 as_unset=as_fn_unset
13358 # as_fn_append VAR VALUE
13359 # ----------------------
13360 # Append the text in VALUE to the end of the definition contained in VAR. Take
13361 # advantage of any shell optimizations that allow amortized linear growth over
13362 # repeated appends, instead of the typical quadratic growth present in naive
13364 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13365 eval 'as_fn_append ()
13376 # as_fn_arith ARG...
13377 # ------------------
13378 # Perform arithmetic evaluation on the ARGs, and store the result in the
13379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13380 # must be portable across $(()) and expr.
13381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13382 eval 'as_fn_arith ()
13389 as_val=`expr "$@" || test $? -eq 1`
13394 if expr a : '\(a\)' >/dev/null 2>&1 &&
13395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13402 as_basename=basename
13407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13413 as_me=`$as_basename -- "$0" ||
13414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13415 X"$0" : 'X\(//\)$' \| \
13416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13418 sed '/^.*\/\([^/][^/]*\)\/*$/{
13432 # Avoid depending upon Character Ranges.
13433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13436 as_cr_digits='0123456789'
13437 as_cr_alnum=$as_cr_Letters$as_cr_digits
13439 ECHO_C= ECHO_N= ECHO_T=
13440 case `echo -n x` in #(((((
13442 case `echo 'xy\c'` in
13443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13452 rm -f conf$$ conf$$.exe conf$$.file
13453 if test -d conf$$.dir; then
13454 rm -f conf$$.dir/conf$$.file
13457 mkdir conf$$.dir 2>/dev/null
13459 if (echo >conf$$.file) 2>/dev/null; then
13460 if ln -s conf$$.file conf$$ 2>/dev/null; then
13462 # ... but there are two gotchas:
13463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13465 # In both cases, we have to default to `cp -pR'.
13466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13468 elif ln conf$$.file conf$$ 2>/dev/null; then
13476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13477 rmdir conf$$.dir 2>/dev/null
13482 # Create "$as_dir" as a directory, including parents if necessary.
13487 -*) as_dir=./$as_dir;;
13489 test -d "$as_dir" || eval $as_mkdir_p || {
13493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13494 *) as_qdir=$as_dir;;
13496 as_dirs="'$as_qdir' $as_dirs"
13497 as_dir=`$as_dirname -- "$as_dir" ||
13498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13499 X"$as_dir" : 'X\(//\)[^/]' \| \
13500 X"$as_dir" : 'X\(//\)$' \| \
13501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13502 $as_echo X"$as_dir" |
13503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13507 /^X\(\/\/\)[^/].*/{
13520 test -d "$as_dir" && break
13522 test -z "$as_dirs" || eval "mkdir $as_dirs"
13523 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13527 if mkdir -p . 2>/dev/null; then
13528 as_mkdir_p='mkdir -p "$as_dir"'
13530 test -d ./-p && rmdir ./-p
13535 # as_fn_executable_p FILE
13536 # -----------------------
13537 # Test if FILE is an executable regular file.
13538 as_fn_executable_p ()
13540 test -f "$1" && test -x "$1"
13541 } # as_fn_executable_p
13542 as_test_x='test -x'
13543 as_executable_p=as_fn_executable_p
13545 # Sed expression to map a string onto a valid CPP name.
13546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13548 # Sed expression to map a string onto a valid variable name.
13549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13553 ## ----------------------------------- ##
13554 ## Main body of $CONFIG_STATUS script. ##
13555 ## ----------------------------------- ##
13557 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13560 # Save the log message, to keep $0 and so on meaningful, and to
13561 # report actual input values of CONFIG_FILES etc. instead of their
13562 # values after options handling.
13564 This file was extended by libdatrie $as_me 0.2.12, which was
13565 generated by GNU Autoconf 2.69. Invocation command line was
13567 CONFIG_FILES = $CONFIG_FILES
13568 CONFIG_HEADERS = $CONFIG_HEADERS
13569 CONFIG_LINKS = $CONFIG_LINKS
13570 CONFIG_COMMANDS = $CONFIG_COMMANDS
13573 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13578 case $ac_config_files in *"
13579 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13582 case $ac_config_headers in *"
13583 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13588 # Files that config.status was made for.
13589 config_files="$ac_config_files"
13590 config_headers="$ac_config_headers"
13591 config_commands="$ac_config_commands"
13595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597 \`$as_me' instantiates files and other configuration actions
13598 from templates according to the current configuration. Unless the files
13599 and actions are specified as TAGs, all are instantiated by default.
13601 Usage: $0 [OPTION]... [TAG]...
13603 -h, --help print this help, then exit
13604 -V, --version print version number and configuration settings, then exit
13605 --config print configuration, then exit
13606 -q, --quiet, --silent
13607 do not print progress messages
13608 -d, --debug don't remove temporary files
13609 --recheck update $as_me by reconfiguring in the same conditions
13610 --file=FILE[:TEMPLATE]
13611 instantiate the configuration file FILE
13612 --header=FILE[:TEMPLATE]
13613 instantiate the configuration header FILE
13615 Configuration files:
13618 Configuration headers:
13621 Configuration commands:
13624 Report bugs to <theppitak@gmail.com>."
13627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13628 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13630 libdatrie config.status 0.2.12
13631 configured by $0, generated by GNU Autoconf 2.69,
13632 with options \\"\$ac_cs_config\\"
13634 Copyright (C) 2012 Free Software Foundation, Inc.
13635 This config.status script is free software; the Free Software Foundation
13636 gives unlimited permission to copy, distribute and modify it."
13643 test -n "\$AWK" || AWK=awk
13646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13647 # The default lists apply if the user does not specify any file.
13653 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13654 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13658 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13670 # Handling of the options.
13671 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13673 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13674 $as_echo "$ac_cs_version"; exit ;;
13675 --config | --confi | --conf | --con | --co | --c )
13676 $as_echo "$ac_cs_config"; exit ;;
13677 --debug | --debu | --deb | --de | --d | -d )
13679 --file | --fil | --fi | --f )
13682 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13683 '') as_fn_error $? "missing file argument" ;;
13685 as_fn_append CONFIG_FILES " '$ac_optarg'"
13686 ac_need_defaults=false;;
13687 --header | --heade | --head | --hea )
13690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13692 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13693 ac_need_defaults=false;;
13695 # Conflict between --help and --header
13696 as_fn_error $? "ambiguous option: \`$1'
13697 Try \`$0 --help' for more information.";;
13698 --help | --hel | -h )
13699 $as_echo "$ac_cs_usage"; exit ;;
13700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13704 # This is an error.
13705 -*) as_fn_error $? "unrecognized option: \`$1'
13706 Try \`$0 --help' for more information." ;;
13708 *) as_fn_append ac_config_targets " $1"
13709 ac_need_defaults=false ;;
13715 ac_configure_extra_args=
13717 if $ac_cs_silent; then
13719 ac_configure_extra_args="$ac_configure_extra_args --silent"
13723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13724 if \$ac_cs_recheck; then
13725 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13728 CONFIG_SHELL='$SHELL'
13729 export CONFIG_SHELL
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13739 ## Running $as_me. ##
13745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13749 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13752 # The HP-UX ksh and POSIX shell print the target directory to stdout
13753 # if CDPATH is set.
13754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13756 sed_quote_subst='$sed_quote_subst'
13757 double_quote_subst='$double_quote_subst'
13758 delay_variable_subst='$delay_variable_subst'
13759 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13760 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13762 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13763 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13764 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13766 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13767 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13768 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13796 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13797 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13798 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13799 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13800 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13801 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13802 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13803 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13804 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13805 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13806 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13807 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13808 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13809 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13810 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13811 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13812 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13813 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13814 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13815 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13816 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13817 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13818 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"`'
13819 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13820 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13821 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13822 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13823 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13824 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13825 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13826 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13827 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13828 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13829 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13830 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13831 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13832 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13833 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13834 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13835 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13836 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13837 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13838 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13839 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13840 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13841 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13842 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13843 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13844 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13845 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13846 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13847 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13848 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13849 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13850 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13851 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13852 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13853 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13854 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13855 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13856 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13857 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13858 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13859 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13860 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13861 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13862 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13863 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13864 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13865 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13866 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13867 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13868 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13869 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13870 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13871 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13872 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13873 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13874 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13875 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13876 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13877 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13878 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13879 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13880 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13881 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13882 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13883 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13884 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13885 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13886 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13887 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13888 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13889 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13890 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13891 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13892 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13893 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13894 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13897 LTCFLAGS='$LTCFLAGS'
13898 compiler='$compiler_DEFAULT'
13900 # A function that is used when there is no print builtin or printf.
13901 func_fallback_echo ()
13903 eval 'cat <<_LTECHO_EOF
13908 # Quote evaled strings.
13925 deplibs_check_method \
13929 sharedlib_from_linklib_cmd \
13932 archiver_list_spec \
13938 lt_cv_sys_global_symbol_pipe \
13939 lt_cv_sys_global_symbol_to_cdecl \
13940 lt_cv_sys_global_symbol_to_import \
13941 lt_cv_sys_global_symbol_to_c_name_address \
13942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13943 lt_cv_nm_interface \
13944 nm_file_list_spec \
13945 lt_cv_truncate_bin \
13946 lt_prog_compiler_no_builtin_flag \
13947 lt_prog_compiler_pic \
13948 lt_prog_compiler_wl \
13949 lt_prog_compiler_static \
13950 lt_cv_prog_compiler_c_o \
13959 export_dynamic_flag_spec \
13960 whole_archive_flag_spec \
13961 compiler_needs_object \
13963 allow_undefined_flag \
13964 no_undefined_flag \
13965 hardcode_libdir_flag_spec \
13966 hardcode_libdir_separator \
13970 variables_saved_for_relink \
13972 library_names_spec \
13974 install_override_mode \
13978 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13979 *[\\\\\\\`\\"\\\$]*)
13980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13988 # Double-quote double-evaled strings.
13989 for var in reload_cmds \
13990 old_postinstall_cmds \
13991 old_postuninstall_cmds \
13993 extract_expsyms_cmds \
13994 old_archive_from_new_cmds \
13995 old_archive_from_expsyms_cmds \
13997 archive_expsym_cmds \
13999 module_expsym_cmds \
14000 export_symbols_cmds \
14004 postuninstall_cmds \
14006 sys_lib_search_path_spec \
14007 configure_time_dlsearch_path \
14008 configure_time_lt_sys_library_path; do
14009 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14010 *[\\\\\\\`\\"\\\$]*)
14011 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14014 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14019 ac_aux_dir='$ac_aux_dir'
14021 # See if we are running on zsh, and set the options that allow our
14022 # commands through without removal of \ escapes INIT.
14023 if test -n "\${ZSH_VERSION+set}"; then
14024 setopt NO_GLOB_SUBST
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14040 # Handling of arguments.
14041 for ac_config_target in $ac_config_targets
14043 case $ac_config_target in
14044 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14046 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14047 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14048 "datrie-0.2.pc") CONFIG_FILES="$CONFIG_FILES datrie-0.2.pc" ;;
14049 "datrie/Makefile") CONFIG_FILES="$CONFIG_FILES datrie/Makefile" ;;
14050 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14051 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14052 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14053 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14054 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14056 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14061 # If the user did not use the arguments to specify the items to instantiate,
14062 # then the envvar interface is used. Set only those that are not.
14063 # We use the long form for the default assignment because of an extremely
14064 # bizarre bug on SunOS 4.1.3.
14065 if $ac_need_defaults; then
14066 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14067 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14068 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14071 # Have a temporary directory for convenience. Make it in the build tree
14072 # simply because there is no reason against having it here, and in addition,
14073 # creating and moving files from /tmp can sometimes cause problems.
14074 # Hook for its removal unless debugging.
14075 # Note that there is a small window in which the directory will not be cleaned:
14076 # after its creation but before its name has been assigned to `$tmp'.
14080 trap 'exit_status=$?
14081 : "${ac_tmp:=$tmp}"
14082 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14084 trap 'as_fn_exit 1' 1 2 13 15
14086 # Create a (secure) tmp directory for tmp files.
14089 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14093 tmp=./conf$$-$RANDOM
14094 (umask 077 && mkdir "$tmp")
14095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14098 # Set up the scripts for CONFIG_FILES section.
14099 # No need to generate them if there are no CONFIG_FILES.
14100 # This happens for instance with `./config.status config.h'.
14101 if test -n "$CONFIG_FILES"; then
14104 ac_cr=`echo X | tr X '\015'`
14105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14106 # But we know of no other shell where ac_cr would be empty at this
14107 # point, so we can use a bashism as a fallback.
14108 if test "x$ac_cr" = x; then
14109 eval ac_cr=\$\'\\r\'
14111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14115 ac_cs_awk_cr=$ac_cr
14118 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14123 echo "cat >conf$$subs.awk <<_ACEOF" &&
14124 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14126 } >conf$$subs.sh ||
14127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14128 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14130 for ac_last_try in false false false false false :; do
14131 . ./conf$$subs.sh ||
14132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14134 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14135 if test $ac_delim_n = $ac_delim_num; then
14137 elif $ac_last_try; then
14138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14143 rm -f conf$$subs.sh
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14150 s/^/S["/; s/!.*/"]=/
14160 s/\(.\{148\}\)..*/\1/
14162 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14174 s/\(.\{148\}\)..*/\1/
14176 s/["\\]/\\&/g; s/^/"/; s/$/"/
14180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14185 ' <conf$$subs.awk | sed '
14190 ' >>$CONFIG_STATUS || ac_write_fail=1
14191 rm -f conf$$subs.awk
14192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14194 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14195 for (key in S) S_is_set[key] = 1
14201 nfields = split(line, field, "@")
14203 len = length(field[1])
14204 for (i = 2; i < nfields; i++) {
14206 keylen = length(key)
14207 if (S_is_set[key]) {
14209 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14210 len += length(value) + length(field[++i])
14221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14222 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14223 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14226 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14227 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14230 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14231 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14232 # trailing colons and then remove the whole line if VPATH becomes empty
14233 # (actually we leave an empty line to preserve line numbers).
14234 if test "x$srcdir" = x.; then
14235 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254 fi # test -n "$CONFIG_FILES"
14256 # Set up the scripts for CONFIG_HEADERS section.
14257 # No need to generate them if there are no CONFIG_HEADERS.
14258 # This happens for instance with `./config.status Makefile'.
14259 if test -n "$CONFIG_HEADERS"; then
14260 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14264 # Transform confdefs.h into an awk script `defines.awk', embedded as
14265 # here-document in config.status, that substitutes the proper values into
14266 # config.h.in to produce config.h.
14268 # Create a delimiter string that does not exist in confdefs.h, to ease
14269 # handling of long lines.
14271 for ac_last_try in false false :; do
14272 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14273 if test -z "$ac_tt"; then
14275 elif $ac_last_try; then
14276 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14282 # For the awk script, D is an array of macro values keyed by name,
14283 # likewise P contains macro parameters if any. Preserve backslash
14284 # newline sequences.
14286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14288 s/.\{148\}/&'"$ac_delim"'/g
14291 s/^[ ]*#[ ]*define[ ][ ]*/ /
14298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14304 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14305 D["\1"]=" \3\\\\\\n"\\/p
14307 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14312 s/.\{148\}/&'"$ac_delim"'/g
14317 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14320 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14322 ' <confdefs.h | sed '
14323 s/'"$ac_delim"'/"\\\
14324 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14327 for (key in D) D_is_set[key] = 1
14330 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14332 split(line, arg, " ")
14333 if (arg[1] == "#") {
14337 defundef = substr(arg[1], 2)
14340 split(mac1, mac2, "(") #)
14342 prefix = substr(line, 1, index(line, defundef) - 1)
14343 if (D_is_set[macro]) {
14344 # Preserve the white space surrounding the "#".
14345 print prefix "define", macro P[macro] D[macro]
14348 # Replace #undef with comments. This is necessary, for example,
14349 # in the case of _POSIX_SOURCE, which is predefined and required
14350 # on some systems where configure will not decide to define it.
14351 if (defundef == "undef") {
14352 print "/*", prefix defundef, macro, "*/"
14360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14361 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14362 fi # test -n "$CONFIG_HEADERS"
14365 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14370 :[FHLC]) ac_mode=$ac_tag; continue;;
14372 case $ac_mode$ac_tag in
14374 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14375 :[FH]-) ac_tag=-:-;;
14376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14393 -) ac_f="$ac_tmp/stdin";;
14394 *) # Look for the file first in the build tree, then in the source tree
14395 # (if the path is not absolute). The absolute path cannot be DOS-style,
14396 # because $ac_f cannot contain `:'.
14400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14402 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14404 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14405 as_fn_append ac_file_inputs " '$ac_f'"
14408 # Let's still pretend it is `configure' which instantiates (i.e., don't
14409 # use $as_me), people would be surprised to read:
14410 # /* config.h. Generated by config.status. */
14411 configure_input='Generated from '`
14412 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14414 if test x"$ac_file" != x-; then
14415 configure_input="$ac_file. $configure_input"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14417 $as_echo "$as_me: creating $ac_file" >&6;}
14419 # Neutralize special characters interpreted by sed in replacement strings.
14420 case $configure_input in #(
14421 *\&* | *\|* | *\\* )
14422 ac_sed_conf_input=`$as_echo "$configure_input" |
14423 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14424 *) ac_sed_conf_input=$configure_input;;
14428 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14434 ac_dir=`$as_dirname -- "$ac_file" ||
14435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436 X"$ac_file" : 'X\(//\)[^/]' \| \
14437 X"$ac_file" : 'X\(//\)$' \| \
14438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14439 $as_echo X"$ac_file" |
14440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14444 /^X\(\/\/\)[^/].*/{
14457 as_dir="$ac_dir"; as_fn_mkdir_p
14461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14464 # A ".." for each directory in $ac_dir_suffix.
14465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14466 case $ac_top_builddir_sub in
14467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14471 ac_abs_top_builddir=$ac_pwd
14472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14473 # for backward compatibility:
14474 ac_top_builddir=$ac_top_build_prefix
14477 .) # We are building in place.
14479 ac_top_srcdir=$ac_top_builddir_sub
14480 ac_abs_top_srcdir=$ac_pwd ;;
14481 [\\/]* | ?:[\\/]* ) # Absolute name.
14482 ac_srcdir=$srcdir$ac_dir_suffix;
14483 ac_top_srcdir=$srcdir
14484 ac_abs_top_srcdir=$srcdir ;;
14485 *) # Relative name.
14486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14487 ac_top_srcdir=$ac_top_build_prefix$srcdir
14488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14500 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14501 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14503 ac_MKDIR_P=$MKDIR_P
14505 [\\/$]* | ?:[\\/]* ) ;;
14506 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14511 # If the template does not know about datarootdir, expand it.
14512 # FIXME: This hack should be removed a few years after 2.60.
14513 ac_datarootdir_hack=; ac_datarootdir_seen=
14524 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14525 *datarootdir*) ac_datarootdir_seen=yes;;
14526 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14528 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531 ac_datarootdir_hack='
14532 s&@datadir@&$datadir&g
14533 s&@docdir@&$docdir&g
14534 s&@infodir@&$infodir&g
14535 s&@localedir@&$localedir&g
14536 s&@mandir@&$mandir&g
14537 s&\\\${datarootdir}&$datarootdir&g' ;;
14541 # Neutralize VPATH when `$srcdir' = `.'.
14542 # Shell code in configure.ac might set extrasub.
14543 # FIXME: do we really want to maintain this feature?
14544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14545 ac_sed_extra="$ac_vpsub
14548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14551 s|@configure_input@|$ac_sed_conf_input|;t t
14552 s&@top_builddir@&$ac_top_builddir_sub&;t t
14553 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14554 s&@srcdir@&$ac_srcdir&;t t
14555 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14556 s&@top_srcdir@&$ac_top_srcdir&;t t
14557 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14558 s&@builddir@&$ac_builddir&;t t
14559 s&@abs_builddir@&$ac_abs_builddir&;t t
14560 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14561 s&@INSTALL@&$ac_INSTALL&;t t
14562 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14563 $ac_datarootdir_hack
14565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14566 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14568 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14569 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14571 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14573 which seems to be undefined. Please make sure it is defined" >&5
14574 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14575 which seems to be undefined. Please make sure it is defined" >&2;}
14577 rm -f "$ac_tmp/stdin"
14579 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14580 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14588 if test x"$ac_file" != x-; then
14590 $as_echo "/* $configure_input */" \
14591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14592 } >"$ac_tmp/config.h" \
14593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14594 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14596 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14599 mv "$ac_tmp/config.h" "$ac_file" \
14600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14603 $as_echo "/* $configure_input */" \
14604 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14605 || as_fn_error $? "could not create -" "$LINENO" 5
14607 # Compute "$ac_file"'s index in $config_headers.
14610 for _am_header in $config_headers :; do
14611 case $_am_header in
14612 $_am_arg | $_am_arg:* )
14615 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14618 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14619 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14620 X"$_am_arg" : 'X\(//\)[^/]' \| \
14621 X"$_am_arg" : 'X\(//\)$' \| \
14622 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14623 $as_echo X"$_am_arg" |
14624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14628 /^X\(\/\/\)[^/].*/{
14640 s/.*/./; q'`/stamp-h$_am_stamp_count
14643 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14644 $as_echo "$as_me: executing $ac_file commands" >&6;}
14649 case $ac_file$ac_mode in
14650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14651 # Older Autoconf quotes --file arguments for eval, but not when files
14652 # are listed without --file. Let's play safe and only enable the eval
14653 # if we detect the quoting.
14654 case $CONFIG_FILES in
14655 *\'*) eval set x "$CONFIG_FILES" ;;
14656 *) set x $CONFIG_FILES ;;
14661 # Strip MF so we end up with the name of the file.
14662 mf=`echo "$mf" | sed -e 's/:.*$//'`
14663 # Check whether this is an Automake generated Makefile or not.
14664 # We used to match only the files named 'Makefile.in', but
14665 # some people rename them; so instead we look at the file content.
14666 # Grep'ing the first line is not enough: some people post-process
14667 # each Makefile.in and add a new line on top of each file to say so.
14668 # Grep'ing the whole file is not good either: AIX grep has a line
14669 # limit of 2048, but all sed's we know have understand at least 4000.
14670 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14671 dirpart=`$as_dirname -- "$mf" ||
14672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$mf" : 'X\(//\)[^/]' \| \
14674 X"$mf" : 'X\(//\)$' \| \
14675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14681 /^X\(\/\/\)[^/].*/{
14697 # Extract the definition of DEPDIR, am__include, and am__quote
14698 # from the Makefile without running 'make'.
14699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14700 test -z "$DEPDIR" && continue
14701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14702 test -z "$am__include" && continue
14703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14704 # Find all dependency output files, they are included files with
14705 # $(DEPDIR) in their names. We invoke sed twice because it is the
14706 # simplest approach to changing $(DEPDIR) to its actual value in the
14708 for file in `sed -n "
14709 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14710 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14711 # Make sure the directory exists.
14712 test -f "$dirpart/$file" && continue
14713 fdir=`$as_dirname -- "$file" ||
14714 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715 X"$file" : 'X\(//\)[^/]' \| \
14716 X"$file" : 'X\(//\)$' \| \
14717 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X"$file" |
14719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14723 /^X\(\/\/\)[^/].*/{
14736 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14737 # echo "creating $dirpart/$file"
14738 echo '# dummy' > "$dirpart/$file"
14745 # See if we are running on zsh, and set the options that allow our
14746 # commands through without removal of \ escapes.
14747 if test -n "${ZSH_VERSION+set}"; then
14748 setopt NO_GLOB_SUBST
14752 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14755 cat <<_LT_EOF >> "$cfgfile"
14757 # Generated automatically by $as_me ($PACKAGE) $VERSION
14758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14760 # Provide generalized library-building support services.
14761 # Written by Gordon Matzigkeit, 1996
14763 # Copyright (C) 2014 Free Software Foundation, Inc.
14764 # This is free software; see the source for copying conditions. There is NO
14765 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14767 # GNU Libtool is free software; you can redistribute it and/or modify
14768 # it under the terms of the GNU General Public License as published by
14769 # the Free Software Foundation; either version 2 of of the License, or
14770 # (at your option) any later version.
14772 # As a special exception to the GNU General Public License, if you
14773 # distribute this file as part of a program or library that is built
14774 # using GNU Libtool, you may include this file under the same
14775 # distribution terms that you use for the rest of that program.
14777 # GNU Libtool is distributed in the hope that it will be useful, but
14778 # WITHOUT ANY WARRANTY; without even the implied warranty of
14779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14780 # GNU General Public License for more details.
14782 # You should have received a copy of the GNU General Public License
14783 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14786 # The names of the tagged configurations supported by this script.
14789 # Configured defaults for sys_lib_dlsearch_path munging.
14790 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14792 # ### BEGIN LIBTOOL CONFIG
14794 # Assembler program.
14797 # DLL creation program.
14798 DLLTOOL=$lt_DLLTOOL
14800 # Object dumper program.
14801 OBJDUMP=$lt_OBJDUMP
14803 # Which release of libtool.m4 was used?
14804 macro_version=$macro_version
14805 macro_revision=$macro_revision
14807 # Whether or not to build shared libraries.
14808 build_libtool_libs=$enable_shared
14810 # Whether or not to build static libraries.
14811 build_old_libs=$enable_static
14813 # What type of objects to build.
14816 # Whether or not to optimize for fast installation.
14817 fast_install=$enable_fast_install
14819 # Shared archive member basename,for filename based shared library versioning on AIX.
14820 shared_archive_member_spec=$shared_archive_member_spec
14822 # Shell to use when invoking shell scripts.
14825 # An echo program that protects backslashes.
14828 # The PATH separator for the build system.
14829 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14832 host_alias=$host_alias
14836 # The build system.
14837 build_alias=$build_alias
14841 # A sed program that does not truncate output.
14844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14845 Xsed="\$SED -e 1s/^X//"
14847 # A grep program that handles long lines.
14853 # A literal string matcher.
14856 # A BSD- or MS-compatible name lister.
14859 # Whether we need soft or hard links.
14862 # What is the maximum length of a command?
14863 max_cmd_len=$max_cmd_len
14865 # Object file suffix (normally "o").
14868 # Executable file suffix (normally "").
14871 # whether the shell understands "unset".
14874 # turn spaces into newlines.
14877 # turn newlines into spaces.
14880 # convert \$build file names to \$host format.
14881 to_host_file_cmd=$lt_cv_to_host_file_cmd
14883 # convert \$build files to toolchain format.
14884 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14886 # Method to check whether dependent libraries are shared objects.
14887 deplibs_check_method=$lt_deplibs_check_method
14889 # Command to use when deplibs_check_method = "file_magic".
14890 file_magic_cmd=$lt_file_magic_cmd
14892 # How to find potential files when deplibs_check_method = "file_magic".
14893 file_magic_glob=$lt_file_magic_glob
14895 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14896 want_nocaseglob=$lt_want_nocaseglob
14898 # Command to associate shared and link libraries.
14899 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14904 # Flags to create an archive.
14905 AR_FLAGS=$lt_AR_FLAGS
14907 # How to feed a file listing to the archiver.
14908 archiver_list_spec=$lt_archiver_list_spec
14910 # A symbol stripping program.
14913 # Commands used to install an old-style archive.
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918 # Whether to use a lock for old archive extraction.
14919 lock_old_archive_extraction=$lock_old_archive_extraction
14924 # LTCC compiler flags.
14925 LTCFLAGS=$lt_CFLAGS
14927 # Take the output of nm and produce a listing of raw symbols and C names.
14928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14930 # Transform the output of nm in a proper C declaration.
14931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14933 # Transform the output of nm into a list of symbols to manually relocate.
14934 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14936 # Transform the output of nm in a C name address pair.
14937 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14939 # Transform the output of nm in a C name address pair when lib prefix is needed.
14940 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14942 # The name lister interface.
14943 nm_interface=$lt_lt_cv_nm_interface
14945 # Specify filename containing input files for \$NM.
14946 nm_file_list_spec=$lt_nm_file_list_spec
14948 # The root where to search for dependent libraries,and where our libraries should be installed.
14949 lt_sysroot=$lt_sysroot
14951 # Command to truncate a binary pipe.
14952 lt_truncate_bin=$lt_lt_cv_truncate_bin
14954 # The name of the directory that contains temporary libtool files.
14957 # Used to examine libraries when file_magic_cmd begins with "file".
14958 MAGIC_CMD=$MAGIC_CMD
14960 # Must we lock files when doing compilation?
14961 need_locks=$lt_need_locks
14964 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14966 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14967 DSYMUTIL=$lt_DSYMUTIL
14969 # Tool to change global to local symbols on Mac OS X.
14972 # Tool to manipulate fat objects and archives on Mac OS X.
14975 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14978 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14979 OTOOL64=$lt_OTOOL64
14981 # Old archive suffix (normally "a").
14984 # Shared library suffix (normally ".so").
14985 shrext_cmds=$lt_shrext_cmds
14987 # The commands to extract the exported symbol list from a shared archive.
14988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14990 # Variables whose values should be saved in libtool wrapper scripts and
14991 # restored at link time.
14992 variables_saved_for_relink=$lt_variables_saved_for_relink
14994 # Do we need the "lib" prefix for modules?
14995 need_lib_prefix=$need_lib_prefix
14997 # Do we need a version for libraries?
14998 need_version=$need_version
15000 # Library versioning type.
15001 version_type=$version_type
15003 # Shared library runtime path variable.
15004 runpath_var=$runpath_var
15006 # Shared library path variable.
15007 shlibpath_var=$shlibpath_var
15009 # Is shlibpath searched before the hard-coded library search path?
15010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15012 # Format of library name prefix.
15013 libname_spec=$lt_libname_spec
15015 # List of archive names. First name is the real one, the rest are links.
15016 # The last name is the one that the linker finds with -lNAME
15017 library_names_spec=$lt_library_names_spec
15019 # The coded name of the library, if different from the real name.
15020 soname_spec=$lt_soname_spec
15022 # Permission mode override for installation of shared libraries.
15023 install_override_mode=$lt_install_override_mode
15025 # Command to use after installation of a shared archive.
15026 postinstall_cmds=$lt_postinstall_cmds
15028 # Command to use after uninstallation of a shared archive.
15029 postuninstall_cmds=$lt_postuninstall_cmds
15031 # Commands used to finish a libtool library installation in a directory.
15032 finish_cmds=$lt_finish_cmds
15034 # As "finish_cmds", except a single script fragment to be evaled but
15036 finish_eval=$lt_finish_eval
15038 # Whether we should hardcode library paths into libraries.
15039 hardcode_into_libs=$hardcode_into_libs
15041 # Compile-time system search path for libraries.
15042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15044 # Detected run-time system search path for libraries.
15045 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15047 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15048 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15050 # Whether dlopen is supported.
15051 dlopen_support=$enable_dlopen
15053 # Whether dlopen of programs is supported.
15054 dlopen_self=$enable_dlopen_self
15056 # Whether dlopen of statically linked programs is supported.
15057 dlopen_self_static=$enable_dlopen_self_static
15059 # Commands to strip libraries.
15060 old_striplib=$lt_old_striplib
15061 striplib=$lt_striplib
15064 # The linker used to build libraries.
15067 # How to create reloadable object files.
15068 reload_flag=$lt_reload_flag
15069 reload_cmds=$lt_reload_cmds
15071 # Commands used to build an old-style archive.
15072 old_archive_cmds=$lt_old_archive_cmds
15074 # A language specific compiler.
15077 # Is the compiler the GNU compiler?
15080 # Compiler flag to turn off builtin functions.
15081 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15083 # Additional compiler flags for building library objects.
15084 pic_flag=$lt_lt_prog_compiler_pic
15086 # How to pass a linker flag through the compiler.
15087 wl=$lt_lt_prog_compiler_wl
15089 # Compiler flag to prevent dynamic linking.
15090 link_static_flag=$lt_lt_prog_compiler_static
15092 # Does compiler simultaneously support -c and -o options?
15093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15095 # Whether or not to add -lc for building shared libraries.
15096 build_libtool_need_lc=$archive_cmds_need_lc
15098 # Whether or not to disallow shared libs when runtime libs are static.
15099 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15101 # Compiler flag to allow reflexive dlopens.
15102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15104 # Compiler flag to generate shared objects directly from archives.
15105 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15107 # Whether the compiler copes with passing no objects directly.
15108 compiler_needs_object=$lt_compiler_needs_object
15110 # Create an old-style archive from a shared archive.
15111 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15113 # Create a temporary old-style archive to link instead of a shared archive.
15114 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15116 # Commands used to build a shared archive.
15117 archive_cmds=$lt_archive_cmds
15118 archive_expsym_cmds=$lt_archive_expsym_cmds
15120 # Commands used to build a loadable module if different from building
15121 # a shared archive.
15122 module_cmds=$lt_module_cmds
15123 module_expsym_cmds=$lt_module_expsym_cmds
15125 # Whether we are building with GNU ld or not.
15126 with_gnu_ld=$lt_with_gnu_ld
15128 # Flag that allows shared libraries with undefined symbols to be built.
15129 allow_undefined_flag=$lt_allow_undefined_flag
15131 # Flag that enforces no undefined symbols.
15132 no_undefined_flag=$lt_no_undefined_flag
15134 # Flag to hardcode \$libdir into a binary during linking.
15135 # This must work even if \$libdir does not exist
15136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15138 # Whether we need a single "-rpath" flag with a separated argument.
15139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15141 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15142 # DIR into the resulting binary.
15143 hardcode_direct=$hardcode_direct
15145 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15146 # DIR into the resulting binary and the resulting library dependency is
15147 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15148 # library is relocated.
15149 hardcode_direct_absolute=$hardcode_direct_absolute
15151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15152 # into the resulting binary.
15153 hardcode_minus_L=$hardcode_minus_L
15155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15156 # into the resulting binary.
15157 hardcode_shlibpath_var=$hardcode_shlibpath_var
15159 # Set to "yes" if building a shared library automatically hardcodes DIR
15160 # into the library and all subsequent libraries and executables linked
15162 hardcode_automatic=$hardcode_automatic
15164 # Set to yes if linker adds runtime paths of dependent libraries
15165 # to runtime path list.
15166 inherit_rpath=$inherit_rpath
15168 # Whether libtool must link a program against all its dependency libraries.
15169 link_all_deplibs=$link_all_deplibs
15171 # Set to "yes" if exported symbols are required.
15172 always_export_symbols=$always_export_symbols
15174 # The commands to list exported symbols.
15175 export_symbols_cmds=$lt_export_symbols_cmds
15177 # Symbols that should not be listed in the preloaded symbols.
15178 exclude_expsyms=$lt_exclude_expsyms
15180 # Symbols that must always be exported.
15181 include_expsyms=$lt_include_expsyms
15183 # Commands necessary for linking programs (against libraries) with templates.
15184 prelink_cmds=$lt_prelink_cmds
15186 # Commands necessary for finishing linking programs.
15187 postlink_cmds=$lt_postlink_cmds
15189 # Specify filename containing input files.
15190 file_list_spec=$lt_file_list_spec
15192 # How to hardcode a shared library path into an executable.
15193 hardcode_action=$hardcode_action
15195 # ### END LIBTOOL CONFIG
15199 cat <<'_LT_EOF' >> "$cfgfile"
15201 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15203 # func_munge_path_list VARIABLE PATH
15204 # -----------------------------------
15205 # VARIABLE is name of variable containing _space_ separated list of
15206 # directories to be munged by the contents of PATH, which is string
15209 # string "DIR[ DIR]" will be prepended to VARIABLE
15211 # string "DIR[ DIR]" will be appended to VARIABLE
15212 # "DIRP[:DIRP]::[DIRA:]DIRA"
15213 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15214 # "DIRA[ DIRA]" will be appended to VARIABLE
15216 # VARIABLE will be replaced by "DIR[ DIR]"
15217 func_munge_path_list ()
15223 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15226 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15229 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15230 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15233 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15239 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15240 func_cc_basename ()
15242 for cc_temp in $*""; do
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15250 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15254 # ### END FUNCTIONS SHARED WITH CONFIGURE
15260 cat <<\_LT_EOF >> "$cfgfile"
15261 # AIX sometimes has problems with the GCC collect2 program. For some
15262 # reason, if we set the COLLECT_NAMES environment variable, the problems
15263 # vanish in a puff of smoke.
15264 if test set != "${COLLECT_NAMES+set}"; then
15266 export COLLECT_NAMES
15273 ltmain=$ac_aux_dir/ltmain.sh
15276 # We use sed instead of cat because bash on DJGPP gets confused if
15277 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15278 # text mode, it properly converts lines to CR/LF. This bash problem
15279 # is reportedly fixed, but why not run on old versions too?
15280 sed '$q' "$ltmain" >> "$cfgfile" \
15281 || (rm -f "$cfgfile"; exit 1)
15283 mv -f "$cfgfile" "$ofile" ||
15284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15295 ac_clean_files=$ac_clean_files_save
15297 test $ac_write_fail = 0 ||
15298 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15301 # configure is writing to config.log, and then calls config.status.
15302 # config.status does its own redirection, appending to config.log.
15303 # Unfortunately, on DOS this fails, as config.log is still kept open
15304 # by configure, so config.status won't be able to write to it; its
15305 # output is simply discarded. So we exec the FD to /dev/null,
15306 # effectively closing config.log, so it can be properly (re)opened and
15307 # appended to by config.status. When coming back to configure, we
15308 # need to make the FD available again.
15309 if test "$no_create" != yes; then
15311 ac_config_status_args=
15312 test "$silent" = yes &&
15313 ac_config_status_args="$ac_config_status_args --quiet"
15315 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15317 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15318 # would make configure fail if this is the last instruction.
15319 $ac_cs_success || as_fn_exit 1
15321 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15323 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}