2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wimlib 0.6.2.
5 # Report bugs to <ebiggers3@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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: ebiggers3@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='wimlib'
592 PACKAGE_TARNAME='wimlib'
593 PACKAGE_VERSION='0.6.2'
594 PACKAGE_STRING='wimlib 0.6.2'
595 PACKAGE_BUGREPORT='ebiggers3@gmail.com'
598 ac_unique_file="src/wim.c"
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
706 INSTALL_STRIP_PROGRAM
748 program_transform_name
761 enable_option_checking
762 enable_dependency_tracking
774 enable_error_messages
775 enable_custom_memory_allocator
777 enable_verify_compression
782 ac_precious_vars='build_alias
793 # Initialize some variables set by options.
795 ac_init_version=false
796 ac_unrecognized_opts=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
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 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 sbindir=$ac_optarg ;;
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 sharedstatedir=$ac_optarg ;;
1098 -site | --site | --sit)
1100 -site=* | --site=* | --sit=*)
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval with_$ac_useropt=no ;;
1159 # Obsolete; use --with-x.
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1227 # Be sure to have absolute directory names.
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures wimlib 0.6.2 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/wimlib]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of wimlib 0.6.2:";;
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --disable-rpath do not hardcode runtime library paths
1419 --enable-debug include lots of debugging messages
1420 --enable-more-debug include even more debugging messages
1421 --disable-error-messages
1422 do not compile in error messsages
1423 --disable-custom-memory-allocator
1424 do not support the use of custom memory allocation
1426 --disable-assertions do not include assertions
1427 --disable-verify-compression
1428 disable checking if blocks we compress can be
1429 correctly decompressed
1430 --enable-ssse3-sha1 use assembly language implementation of SHA1 from
1431 Intel, accelerated with vector instructions
1432 (SSSE3-enabled CPU required)
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442 --with-gnu-ld assume the C compiler uses GNU ld default=no
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1445 --without-fuse build without libfuse. This will disable the ability
1447 --without-libcrypto build in the SHA1 algorithm, rather than use
1448 external libcrypto from OpenSSL (default is
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <ebiggers3@gmail.com>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 wimlib configure 0.6.2
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_run LINENO
1580 # ----------------------
1581 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1582 # that executables *can* be run.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_link"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>&5
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1597 { { case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_try") 2>&5
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; }; }; then :
1609 $as_echo "$as_me: program exited with status $ac_status" >&5
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1613 ac_retval=$ac_status
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_link
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1758 # include <limits.h>
1760 # include <assert.h>
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_func
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1805 It was created by wimlib $as_me 0.6.2, which was
1806 generated by GNU Autoconf 2.69. Invocation command line was
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_must_keep_next=false
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895 -* ) ac_must_keep_next=true ;;
1898 as_fn_append ac_configure_args " '$ac_arg'"
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1916 $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1920 # The following way of writing the cache mishandles newlines in values,
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1956 for ac_var in $ac_subst_vars
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1966 if test -n "$ac_subst_files"; then
1967 $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1971 for ac_var in $ac_subst_files
1973 eval ac_val=\$$ac_var
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 $as_echo "$ac_var='\''$ac_val'\''"
1982 if test -s confdefs.h; then
1983 $as_echo "## ----------- ##
1990 test "$ac_signal" != 0 &&
1991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2006 $as_echo "/* confdefs.h */" > confdefs.h
2008 # Predefined preprocessor variables.
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_NAME "$PACKAGE_NAME"
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_STRING "$PACKAGE_STRING"
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_URL "$PACKAGE_URL"
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2039 if test -n "$CONFIG_SITE"; then
2040 # We do not want a PATH search for config.site.
2041 case $CONFIG_SITE in #((
2042 -*) ac_site_file1=./$CONFIG_SITE;;
2043 */*) ac_site_file1=$CONFIG_SITE;;
2044 *) ac_site_file1=./$CONFIG_SITE;;
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_file1=$prefix/share/config.site
2048 ac_site_file2=$prefix/etc/config.site
2050 ac_site_file1=$ac_default_prefix/share/config.site
2051 ac_site_file2=$ac_default_prefix/etc/config.site
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055 test "x$ac_site_file" = xNONE && continue
2056 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2061 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085 # Check that the precious variables saved in the cache have kept the same
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154 am__api_version='1.12'
2157 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158 if test -f "$ac_dir/install-sh"; then
2160 ac_install_sh="$ac_aux_dir/install-sh -c"
2162 elif test -f "$ac_dir/install.sh"; then
2164 ac_install_sh="$ac_aux_dir/install.sh -c"
2166 elif test -f "$ac_dir/shtool"; then
2168 ac_install_sh="$ac_aux_dir/shtool install -c"
2172 if test -z "$ac_aux_dir"; then
2173 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2185 # Find a good install program. We prefer a C program (faster),
2186 # so one script is as good as another. But avoid the broken or
2187 # incompatible versions:
2188 # SysV /etc/install, /usr/sbin/install
2189 # SunOS /usr/etc/install
2190 # IRIX /sbin/install
2192 # AmigaOS /C/install, which installs bootblocks on floppy discs
2193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2196 # OS/2's system install, which has a completely different semantic
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 # Reject install programs that cannot install multiple files.
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2201 if test -z "$INSTALL"; then
2202 if ${ac_cv_path_install+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 # Account for people who put trailing slashes in PATH elements.
2211 case $as_dir/ in #((
2212 ./ | .// | /[cC]/* | \
2213 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2214 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2217 # OSF1 and SCO ODT 3.0 have their own names for install.
2218 # Don't use installbsd from OSF since it installs stuff as root
2220 for ac_prog in ginstall scoinst install; do
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2223 if test $ac_prog = install &&
2224 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225 # AIX install. It has an incompatible calling convention.
2227 elif test $ac_prog = install &&
2228 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # program-specific install script used by HP pwplus--don't use.
2232 rm -rf conftest.one conftest.two conftest.dir
2233 echo one > conftest.one
2234 echo two > conftest.two
2236 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2237 test -s conftest.one && test -s conftest.two &&
2238 test -s conftest.dir/conftest.one &&
2239 test -s conftest.dir/conftest.two
2241 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2254 rm -rf conftest.one conftest.two conftest.dir
2257 if test "${ac_cv_path_install+set}" = set; then
2258 INSTALL=$ac_cv_path_install
2260 # As a last resort, use the slow shell script. Don't cache a
2261 # value for INSTALL within a source directory, because that will
2262 # break other packages using the cache if that directory is
2263 # removed, or if the value is a relative name.
2264 INSTALL=$ac_install_sh
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2268 $as_echo "$INSTALL" >&6; }
2270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2271 # It thinks the first close brace ends the variable substitution.
2272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2279 $as_echo_n "checking whether build environment is sane... " >&6; }
2280 # Reject unsafe characters in $srcdir or the absolute working directory
2281 # name. Accept space and tab only in the latter.
2285 *[\\\"\#\$\&\'\`$am_lf]*)
2286 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2289 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2290 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2293 # Do 'set' in a subshell so we don't clobber the current shell's
2294 # arguments. Must try -L first in case configure is actually a
2295 # symlink; some systems play weird games with the mod time of symlinks
2296 # (eg FreeBSD returns the mod time of the symlink's containing
2300 for am_try in 1 2; do
2301 echo "timestamp, slept: $am_has_slept" > conftest.file
2302 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2303 if test "$*" = "X"; then
2305 set X `ls -t "$srcdir/configure" conftest.file`
2307 if test "$*" != "X $srcdir/configure conftest.file" \
2308 && test "$*" != "X conftest.file $srcdir/configure"; then
2310 # If neither matched, then we have a broken ls. This can happen
2311 # if, for instance, CONFIG_SHELL is bash and it inherits a
2312 # broken ls alias from the environment. This has actually
2313 # happened. Such a system could not be considered "sane".
2314 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2315 alias in your environment" "$LINENO" 5
2317 if test "$2" = conftest.file || test $am_try -eq 2; then
2324 test "$2" = conftest.file
2330 as_fn_error $? "newly created file is older than distributed files!
2331 Check your system clock" "$LINENO" 5
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2334 $as_echo "yes" >&6; }
2335 # If we didn't sleep, we still need to ensure time stamps of config.status and
2336 # generated files are strictly newer.
2338 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2345 test "$program_prefix" != NONE &&
2346 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2347 # Use a double $ so make ignores it.
2348 test "$program_suffix" != NONE &&
2349 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2350 # Double any \ or $.
2351 # By default was `s,x,x', remove it if useless.
2352 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2353 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2355 # expand $ac_aux_dir to an absolute path
2356 am_aux_dir=`cd $ac_aux_dir && pwd`
2358 if test x"${MISSING+set}" != xset; then
2361 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2363 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2366 # Use eval to expand $SHELL
2367 if eval "$MISSING --run true"; then
2368 am_missing_run="$MISSING --run "
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2372 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2375 if test x"${install_sh}" != xset; then
2378 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2380 install_sh="\${SHELL} $am_aux_dir/install-sh"
2384 # Installed binaries are usually stripped using 'strip' when the user
2385 # run "make install-strip". However 'strip' might not be the right
2386 # tool to use in cross-compilation environments, therefore Automake
2387 # will honor the 'STRIP' environment variable to overrule this program.
2388 if test "$cross_compiling" != no; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}strip; ac_word=$2
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393 $as_echo_n "checking for $ac_word... " >&6; }
2394 if ${ac_cv_prog_STRIP+:} false; then :
2395 $as_echo_n "(cached) " >&6
2397 if test -n "$STRIP"; then
2398 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 STRIP=$ac_cv_prog_STRIP
2418 if test -n "$STRIP"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2420 $as_echo "$STRIP" >&6; }
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423 $as_echo "no" >&6; }
2428 if test -z "$ac_cv_prog_STRIP"; then
2430 # Extract the first word of "strip", so it can be a program name with args.
2431 set dummy strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 if test -n "$ac_ct_STRIP"; then
2438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_STRIP="strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2458 if test -n "$ac_ct_STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2460 $as_echo "$ac_ct_STRIP" >&6; }
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2466 if test "x$ac_ct_STRIP" = x; then
2469 case $cross_compiling:$ac_tool_warned in
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2478 STRIP="$ac_cv_prog_STRIP"
2482 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2485 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2486 if test -z "$MKDIR_P"; then
2487 if ${ac_cv_path_mkdir+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494 test -z "$as_dir" && as_dir=.
2495 for ac_prog in mkdir gmkdir; do
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2498 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2499 'mkdir (GNU coreutils) '* | \
2500 'mkdir (coreutils) '* | \
2501 'mkdir (fileutils) '4.1*)
2502 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2512 test -d ./--version && rmdir ./--version
2513 if test "${ac_cv_path_mkdir+set}" = set; then
2514 MKDIR_P="$ac_cv_path_mkdir -p"
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for MKDIR_P within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 MKDIR_P="$ac_install_sh -d"
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2524 $as_echo "$MKDIR_P" >&6; }
2528 [\\/$]* | ?:[\\/]*) ;;
2529 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532 for ac_prog in gawk mawk nawk awk
2534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_AWK+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 if test -n "$AWK"; then
2542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_AWK="$ac_prog"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$AWK"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2564 $as_echo "$AWK" >&6; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2571 test -n "$AWK" && break
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2575 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2577 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2578 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 cat >conftest.make <<\_ACEOF
2584 @echo '@@@%%%=$(MAKE)=@@@%%%'
2586 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2587 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2589 eval ac_cv_prog_make_${ac_make}_set=yes;;
2591 eval ac_cv_prog_make_${ac_make}_set=no;;
2595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 SET_MAKE="MAKE=${MAKE-make}"
2605 rm -rf .tst 2>/dev/null
2606 mkdir .tst 2>/dev/null
2607 if test -d .tst; then
2612 rmdir .tst 2>/dev/null
2614 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2615 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2616 # is not polluted with repeated "-I."
2617 am__isrc=' -I$(srcdir)'
2618 # test to see if srcdir already configured
2619 if test -f $srcdir/config.status; then
2620 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624 # test whether we have cygpath
2625 if test -z "$CYGPATH_W"; then
2626 if (cygpath --version) >/dev/null 2>/dev/null; then
2627 CYGPATH_W='cygpath -w'
2634 # Define the identity of the package.
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE "$PACKAGE"
2644 cat >>confdefs.h <<_ACEOF
2645 #define VERSION "$VERSION"
2648 # Some tools Automake needs.
2650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2664 # We need awk for the "check" target. The system "awk" is bad on
2666 # Always define AMTAR for backward compatibility. Yes, it's still used
2667 # in the wild :-( We should find a proper way to deprecate it ...
2670 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2677 DEPDIR="${am__leading_dot}deps"
2679 ac_config_commands="$ac_config_commands depfiles"
2682 am_make=${MAKE-make}
2683 cat > confinc << 'END'
2685 @echo this is the am__doit target
2688 # If we don't find an include directive, just comment out the code.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2690 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2694 # First try GNU make style include.
2695 echo "include confinc" > confmf
2696 # Ignore all kinds of additional output from 'make'.
2697 case `$am_make -s -f confmf 2> /dev/null` in #(
2698 *the\ am__doit\ target*)
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706 echo '.include "confinc"' > confmf
2707 case `$am_make -s -f confmf 2> /dev/null` in #(
2708 *the\ am__doit\ target*)
2709 am__include=.include
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2718 $as_echo "$_am_result" >&6; }
2719 rm -f confinc confmf
2721 # Check whether --enable-dependency-tracking was given.
2722 if test "${enable_dependency_tracking+set}" = set; then :
2723 enableval=$enable_dependency_tracking;
2726 if test "x$enable_dependency_tracking" != xno; then
2727 am_depcomp="$ac_aux_dir/depcomp"
2731 if test "x$enable_dependency_tracking" != xno; then
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_CC+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2784 if test -z "$ac_cv_prog_CC"; then
2786 # Extract the first word of "gcc", so it can be a program name with args.
2787 set dummy gcc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC="gcc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814 if test -n "$ac_ct_CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816 $as_echo "$ac_ct_CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829 ac_tool_warned=yes ;;
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}cc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC="${ac_tool_prefix}cc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2934 if test -z "$CC"; then
2935 if test -n "$ac_tool_prefix"; then
2936 for ac_prog in cl.exe
2938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$CC" && break
2978 if test -z "$CC"; then
2980 for ac_prog in cl.exe
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC="$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$ac_ct_CC" && break
3022 if test "x$ac_ct_CC" = x; then
3025 case $cross_compiling:$ac_tool_warned in
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3038 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details" "$LINENO" 5; }
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047 for ac_option in --version -v -V -qversion; do
3048 { { ac_try="$ac_compiler $ac_option >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3057 if test -s conftest.err; then
3059 ... rest of stderr output deleted ...
3060 10q' conftest.err >conftest.er1
3061 cat conftest.er1 >&5
3063 rm -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085 $as_echo_n "checking whether the C compiler works... " >&6; }
3086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # The possible output files:
3089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092 for ac_file in $ac_files
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 if { { ac_try="$ac_link_default"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link_default") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124 # We found the default executable, but exeext='' is most
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147 if test -z "$ac_file"; then :
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C compiler cannot create executables
3156 See \`config.log' for more details" "$LINENO" 5; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3162 $as_echo_n "checking for C compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; then :
3182 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe'), while it won't with
3186 for ac_file in conftest.exe conftest conftest.*; do
3187 test -f "$ac_file" || continue
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest conftest$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3214 FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3221 ac_clean_files="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227 { { ac_try="$ac_link"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 if { ac_try='./conftest$ac_cv_exeext'
3239 { { case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_try") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; }; then
3251 if test "$cross_compiling" = maybe; then
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot run C compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3265 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
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_compile") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320 if ${ac_cv_c_compiler_gnu+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3357 if ${ac_cv_prog_cc_g+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_c_werror_flag=$ac_save_c_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417 $as_echo "$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419 CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421 if test "$GCC" = yes; then
3427 if test "$GCC" = yes; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435 if ${ac_cv_prog_cc_c89+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 ac_cv_prog_cc_c89=no
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3459 s = g (p, va_arg (v,int));
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465 function prototypes and stuff, but not '\xHH' hex character constants.
3466 These don't provoke an error unfortunately, instead are silently treated
3467 as 'x'. The following induces an error, until -std is added to get
3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469 array size at least. It's necessary to write '\x00'==0 to get something
3470 that's true only with -std. */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474 inside strings and character constants. */
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 CC="$ac_save_CC $ac_arg"
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_c89=$ac_arg
3499 rm -f core conftest.err conftest.$ac_objext
3500 test "x$ac_cv_prog_cc_c89" != "xno" && break
3502 rm -f conftest.$ac_ext
3507 case "x$ac_cv_prog_cc_c89" in
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510 $as_echo "none needed" >&6; } ;;
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513 $as_echo "unsupported" >&6; } ;;
3515 CC="$CC $ac_cv_prog_cc_c89"
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3519 if test "x$ac_cv_prog_cc_c89" != xno; then :
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 depcc="$CC" am_compiler_list=
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3532 $as_echo_n "checking dependency style of $depcc... " >&6; }
3533 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3537 # We make a subdir and do the tests there. Otherwise we can end up
3538 # making bogus files that we don't know about and never remove. For
3539 # instance it was reported that on HP-UX the gcc test will end up
3540 # making a dummy file named 'D' -- because '-MD' means "put the output
3544 # Copy depcomp to subdir because otherwise we won't find it if we're
3545 # using a relative directory.
3546 cp "$am_depcomp" conftest.dir
3548 # We will build objects and dependencies in a subdirectory because
3549 # it helps to detect inapplicable dependency modes. For instance
3550 # both Tru64's cc and ICC support -MD to output dependencies as a
3551 # side effect of compilation, but ICC will put the dependencies in
3552 # the current directory while Tru64 will put them in the object
3556 am_cv_CC_dependencies_compiler_type=none
3557 if test "$am_compiler_list" = ""; then
3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 case " $depcc " in #(
3562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3565 for depmode in $am_compiler_list; do
3566 # Setup a source with many dependencies, because some compilers
3567 # like to wrap large dependency lists on column 80 (with \), and
3568 # we should not choose a depcomp mode which is confused by this.
3570 # We need to recreate these files for each test, as the compiler may
3571 # overwrite some of them when testing with obscure command lines.
3572 # This happens at least with the AIX C compiler.
3574 for i in 1 2 3 4 5 6; do
3575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3577 # Solaris 10 /bin/sh.
3578 echo '/* dummy */' > sub/conftst$i.h
3580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3583 # mode. It turns out that the SunPro C++ compiler does not properly
3584 # handle '-M -o', and we need to detect this. Also, some Intel
3585 # versions had trouble with output in subdirs.
3586 am__obj=sub/conftest.${OBJEXT-o}
3587 am__minus_obj="-o $am__obj"
3590 # This depmode causes a compiler race in universal mode.
3591 test "$am__universal" = false || continue
3594 # After this tag, mechanisms are not by side-effect, so they'll
3595 # only be used when explicitly requested.
3596 if test "x$enable_dependency_tracking" = xyes; then
3602 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3603 # This compiler won't grok '-c -o', but also, the minuso test has
3604 # not run yet. These depmodes are late enough in the game, and
3605 # so weak that their functioning should not be impacted.
3606 am__obj=conftest.${OBJEXT-o}
3611 if depmode=$depmode \
3612 source=sub/conftest.c object=$am__obj \
3613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3615 >/dev/null 2>conftest.err &&
3616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620 # icc doesn't choke on unknown options, it will just issue warnings
3621 # or remarks (even with -Werror). So we grep stderr for any message
3622 # that says an option was ignored or not supported.
3623 # When given -MP, icc 7.0 and 7.1 complain thusly:
3624 # icc: Command line warning: ignoring option '-M'; no argument required
3625 # The diagnosis changed in icc 8.0:
3626 # icc: Command line remark: option '-MP' not supported
3627 if (grep 'ignoring option' conftest.err ||
3628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3629 am_cv_CC_dependencies_compiler_type=$depmode
3638 am_cv_CC_dependencies_compiler_type=none
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3643 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647 test "x$enable_dependency_tracking" != xno \
3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3650 am__fastdepCC_FALSE='#'
3652 am__fastdepCC_TRUE='#'
3653 am__fastdepCC_FALSE=
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3669 if test -z "$CPP"; then
3670 if ${ac_cv_prog_CPP+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3688 # include <limits.h>
3690 # include <assert.h>
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3697 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.i conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether nonexistent headers
3703 # can be detected and how.
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <ac_nonexistent.h>
3708 if ac_fn_c_try_cpp "$LINENO"; then :
3709 # Broken: success on invalid input.
3712 # Passes both tests.
3716 rm -f conftest.err conftest.i conftest.$ac_ext
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.i conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3734 $as_echo "$CPP" >&6; }
3736 for ac_c_preproc_warn_flag in '' yes
3738 # Use a header file that comes with gcc, so configuring glibc
3739 # with a fresh cross-compiler works.
3740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741 # <limits.h> exists even on freestanding compilers.
3742 # On the NeXT, cc -E runs the code through the compiler's parser,
3743 # not just through cpp. "Syntax error" is here to catch this case.
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3747 # include <limits.h>
3749 # include <assert.h>
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3756 # Broken: fails on valid input.
3759 rm -f conftest.err conftest.i conftest.$ac_ext
3761 # OK, works on sane cases. Now check whether nonexistent headers
3762 # can be detected and how.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <ac_nonexistent.h>
3767 if ac_fn_c_try_cpp "$LINENO"; then :
3768 # Broken: success on invalid input.
3771 # Passes both tests.
3775 rm -f conftest.err conftest.i conftest.$ac_ext
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.i conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then :
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3786 See \`config.log' for more details" "$LINENO" 5; }
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3798 if ${ac_cv_path_GREP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -z "$GREP"; then
3802 ac_path_GREP_found=false
3803 # Loop through the user's path and test for each of PROGNAME-LIST
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 test -z "$as_dir" && as_dir=.
3809 for ac_prog in grep ggrep; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3812 as_fn_executable_p "$ac_path_GREP" || continue
3813 # Check for GNU ac_path_GREP and select it if it is found.
3814 # Check for GNU $ac_path_GREP
3815 case `"$ac_path_GREP" --version 2>&1` in
3817 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3820 $as_echo_n 0123456789 >"conftest.in"
3823 cat "conftest.in" "conftest.in" >"conftest.tmp"
3824 mv "conftest.tmp" "conftest.in"
3825 cp "conftest.in" "conftest.nl"
3826 $as_echo 'GREP' >> "conftest.nl"
3827 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829 as_fn_arith $ac_count + 1 && ac_count=$as_val
3830 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3831 # Best one so far, save it but keep looking for a better one
3832 ac_cv_path_GREP="$ac_path_GREP"
3833 ac_path_GREP_max=$ac_count
3835 # 10*(2^10) chars as input seems more than enough
3836 test $ac_count -gt 10 && break
3838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 $ac_path_GREP_found && break 3
3846 if test -z "$ac_cv_path_GREP"; then
3847 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3850 ac_cv_path_GREP=$GREP
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3855 $as_echo "$ac_cv_path_GREP" >&6; }
3856 GREP="$ac_cv_path_GREP"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3860 $as_echo_n "checking for egrep... " >&6; }
3861 if ${ac_cv_path_EGREP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3865 then ac_cv_path_EGREP="$GREP -E"
3867 if test -z "$EGREP"; then
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 as_fn_executable_p "$ac_path_EGREP" || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886 $as_echo_n 0123456789 >"conftest.in"
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 $as_echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 as_fn_arith $ac_count + 1 && ac_count=$as_val
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 $ac_path_EGREP_found && break 3
3912 if test -z "$ac_cv_path_EGREP"; then
3913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3916 ac_cv_path_EGREP=$EGREP
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3922 $as_echo "$ac_cv_path_EGREP" >&6; }
3923 EGREP="$ac_cv_path_EGREP"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3927 $as_echo_n "checking for ANSI C header files... " >&6; }
3928 if ${ac_cv_header_stdc+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_header_stdc=yes
3949 ac_cv_header_stdc=no
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 if test $ac_cv_header_stdc = yes; then
3954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "memchr" >/dev/null 2>&1; then :
3964 ac_cv_header_stdc=no
3970 if test $ac_cv_header_stdc = yes; then
3971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev/null 2>&1; then :
3981 ac_cv_header_stdc=no
3987 if test $ac_cv_header_stdc = yes; then
3988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989 if test "$cross_compiling" = yes; then :
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 #if ((' ' & 0x0FF) == 0x020)
3997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4000 # define ISLOWER(c) \
4001 (('a' <= (c) && (c) <= 'i') \
4002 || ('j' <= (c) && (c) <= 'r') \
4003 || ('s' <= (c) && (c) <= 'z'))
4004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4012 for (i = 0; i < 256; i++)
4013 if (XOR (islower (i), ISLOWER (i))
4014 || toupper (i) != TOUPPER (i))
4019 if ac_fn_c_try_run "$LINENO"; then :
4022 ac_cv_header_stdc=no
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025 conftest.$ac_objext conftest.beam conftest.$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4031 $as_echo "$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4034 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4046 cat >>confdefs.h <<_ACEOF
4047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4057 if ${ac_cv_c_bigendian+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_c_bigendian=unknown
4061 # See if we're dealing with a universal compiler.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #ifndef __APPLE_CC__
4065 not a universal capable compiler
4070 if ac_fn_c_try_compile "$LINENO"; then :
4072 # Check for potential -arch flags. It is not universal unless
4073 # there are at least two -arch flags with different values.
4076 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4077 if test -n "$ac_prev"; then
4079 i?86 | x86_64 | ppc | ppc64)
4080 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4083 ac_cv_c_bigendian=universal
4089 elif test "x$ac_word" = "x-arch"; then
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 if test $ac_cv_c_bigendian = unknown; then
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <sys/types.h>
4100 #include <sys/param.h>
4105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 # It does; now see whether it defined to BIG_ENDIAN or not.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <sys/types.h>
4120 #include <sys/param.h>
4125 #if BYTE_ORDER != BIG_ENDIAN
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_c_bigendian=yes
4136 ac_cv_c_bigendian=no
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 if test $ac_cv_c_bigendian = unknown; then
4143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 # It does; now see whether it defined to _BIG_ENDIAN or not.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_c_bigendian=yes
4179 ac_cv_c_bigendian=no
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 if test $ac_cv_c_bigendian = unknown; then
4186 # Compile a test program.
4187 if test "$cross_compiling" = yes; then :
4188 # Try to guess by grepping values from an object file.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 short int ascii_mm[] =
4192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193 short int ascii_ii[] =
4194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 int use_ascii (int i) {
4196 return ascii_mm[i] + ascii_ii[i];
4198 short int ebcdic_ii[] =
4199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200 short int ebcdic_mm[] =
4201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202 int use_ebcdic (int i) {
4203 return ebcdic_mm[i] + ebcdic_ii[i];
4210 return use_ascii (foo) == use_ebcdic (foo);
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4217 ac_cv_c_bigendian=yes
4219 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4220 if test "$ac_cv_c_bigendian" = unknown; then
4221 ac_cv_c_bigendian=no
4223 # finding both strings is unlikely to happen, but who knows?
4224 ac_cv_c_bigendian=unknown
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 $ac_includes_default
4237 /* Are we little or big endian? From Harbison&Steele. */
4241 char c[sizeof (long int)];
4244 return u.c[sizeof (long int) - 1] == 1;
4250 if ac_fn_c_try_run "$LINENO"; then :
4251 ac_cv_c_bigendian=no
4253 ac_cv_c_bigendian=yes
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4262 $as_echo "$ac_cv_c_bigendian" >&6; }
4263 case $ac_cv_c_bigendian in #(
4265 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4271 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4275 as_fn_error $? "unknown endianness
4276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4279 if test -n "$ac_tool_prefix"; then
4280 for ac_prog in ar lib "link -lib"
4282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_AR+:} false; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$AR"; then
4290 ac_cv_prog_AR="$AR" # Let the user override the test.
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 if test -n "$AR"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4312 $as_echo "$AR" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$AR" && break
4322 if test -z "$AR"; then
4324 for ac_prog in ar lib "link -lib"
4326 # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -n "$ac_ct_AR"; then
4334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_ac_ct_AR="$ac_prog"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4354 if test -n "$ac_ct_AR"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4356 $as_echo "$ac_ct_AR" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4363 test -n "$ac_ct_AR" && break
4366 if test "x$ac_ct_AR" = x; then
4369 case $cross_compiling:$ac_tool_warned in
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4373 ac_tool_warned=yes ;;
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4382 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4383 if ${am_cv_ar_interface+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 am_cv_ar_interface=ar
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 int some_variable = 0;
4391 if ac_fn_c_try_compile "$LINENO"; then :
4392 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4394 (eval $am_ar_try) 2>&5
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 if test "$ac_status" -eq 0; then
4399 am_cv_ar_interface=ar
4401 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4403 (eval $am_ar_try) 2>&5
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }
4407 if test "$ac_status" -eq 0; then
4408 am_cv_ar_interface=lib
4410 am_cv_ar_interface=unknown
4413 rm -f conftest.lib libconftest.a
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4420 $as_echo "$am_cv_ar_interface" >&6; }
4422 case $am_cv_ar_interface in
4426 # Microsoft lib, so override with the ar-lib wrapper script.
4427 # FIXME: It is wrong to rewrite AR.
4428 # But if we don't then we get into trouble of one sort or another.
4429 # A longer-term fix would be to have automake use am__AR in this case,
4430 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4432 AR="$am_aux_dir/ar-lib $AR"
4435 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4442 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4447 macro_version='2.4.2'
4448 macro_revision='1.3337'
4462 ltmain="$ac_aux_dir/ltmain.sh"
4464 # Make sure we can run config.sub.
4465 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4466 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4469 $as_echo_n "checking build system type... " >&6; }
4470 if ${ac_cv_build+:} false; then :
4471 $as_echo_n "(cached) " >&6
4473 ac_build_alias=$build_alias
4474 test "x$ac_build_alias" = x &&
4475 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4476 test "x$ac_build_alias" = x &&
4477 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4478 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4483 $as_echo "$ac_cv_build" >&6; }
4484 case $ac_cv_build in
4486 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4489 ac_save_IFS=$IFS; IFS='-'
4495 # Remember, the first character of IFS is used to create $*,
4496 # except with old shells:
4499 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4503 $as_echo_n "checking host system type... " >&6; }
4504 if ${ac_cv_host+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test "x$host_alias" = x; then
4508 ac_cv_host=$ac_cv_build
4510 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4516 $as_echo "$ac_cv_host" >&6; }
4519 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4522 ac_save_IFS=$IFS; IFS='-'
4528 # Remember, the first character of IFS is used to create $*,
4529 # except with old shells:
4532 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4535 # Backslashify metacharacters that are still active within
4536 # double-quoted strings.
4537 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4539 # Same as above, but do not quote variable references.
4540 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4542 # Sed substitution to delay expansion of an escaped shell variable in a
4543 # double_quote_subst'ed string.
4544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4546 # Sed substitution to delay expansion of an escaped single quote.
4547 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4549 # Sed substitution to avoid accidental globbing in evaled expressions
4550 no_glob_subst='s/\*/\\\*/g'
4552 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4553 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4554 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4557 $as_echo_n "checking how to print strings... " >&6; }
4558 # Test print first, because it will be a builtin if present.
4559 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4560 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4562 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4565 # Use this function as a fallback that always works.
4566 func_fallback_echo ()
4568 eval 'cat <<_LTECHO_EOF
4572 ECHO='func_fallback_echo'
4575 # func_echo_all arg...
4576 # Invoke $ECHO with all args, space-separated.
4583 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4584 $as_echo "printf" >&6; } ;;
4585 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4586 $as_echo "print -r" >&6; } ;;
4587 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4588 $as_echo "cat" >&6; } ;;
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4605 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4606 if ${ac_cv_path_SED+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4610 for ac_i in 1 2 3 4 5 6 7; do
4611 ac_script="$ac_script$as_nl$ac_script"
4613 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4614 { ac_script=; unset ac_script;}
4615 if test -z "$SED"; then
4616 ac_path_SED_found=false
4617 # Loop through the user's path and test for each of PROGNAME-LIST
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_prog in sed gsed; do
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4626 as_fn_executable_p "$ac_path_SED" || continue
4627 # Check for GNU ac_path_SED and select it if it is found.
4628 # Check for GNU $ac_path_SED
4629 case `"$ac_path_SED" --version 2>&1` in
4631 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4634 $as_echo_n 0123456789 >"conftest.in"
4637 cat "conftest.in" "conftest.in" >"conftest.tmp"
4638 mv "conftest.tmp" "conftest.in"
4639 cp "conftest.in" "conftest.nl"
4640 $as_echo '' >> "conftest.nl"
4641 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4643 as_fn_arith $ac_count + 1 && ac_count=$as_val
4644 if test $ac_count -gt ${ac_path_SED_max-0}; then
4645 # Best one so far, save it but keep looking for a better one
4646 ac_cv_path_SED="$ac_path_SED"
4647 ac_path_SED_max=$ac_count
4649 # 10*(2^10) chars as input seems more than enough
4650 test $ac_count -gt 10 && break
4652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655 $ac_path_SED_found && break 3
4660 if test -z "$ac_cv_path_SED"; then
4661 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4669 $as_echo "$ac_cv_path_SED" >&6; }
4670 SED="$ac_cv_path_SED"
4673 test -z "$SED" && SED=sed
4674 Xsed="$SED -e 1s/^X//"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4687 $as_echo_n "checking for fgrep... " >&6; }
4688 if ${ac_cv_path_FGREP+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4692 then ac_cv_path_FGREP="$GREP -F"
4694 if test -z "$FGREP"; then
4695 ac_path_FGREP_found=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701 test -z "$as_dir" && as_dir=.
4702 for ac_prog in fgrep; do
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4705 as_fn_executable_p "$ac_path_FGREP" || continue
4706 # Check for GNU ac_path_FGREP and select it if it is found.
4707 # Check for GNU $ac_path_FGREP
4708 case `"$ac_path_FGREP" --version 2>&1` in
4710 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4713 $as_echo_n 0123456789 >"conftest.in"
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'FGREP' >> "conftest.nl"
4720 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_FGREP="$ac_path_FGREP"
4726 ac_path_FGREP_max=$ac_count
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734 $ac_path_FGREP_found && break 3
4739 if test -z "$ac_cv_path_FGREP"; then
4740 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 ac_cv_path_FGREP=$FGREP
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4749 $as_echo "$ac_cv_path_FGREP" >&6; }
4750 FGREP="$ac_cv_path_FGREP"
4753 test -z "$GREP" && GREP=grep
4773 # Check whether --with-gnu-ld was given.
4774 if test "${with_gnu_ld+set}" = set; then :
4775 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4781 if test "$GCC" = yes; then
4782 # Check if gcc -print-prog-name=ld gives a path.
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4784 $as_echo_n "checking for ld used by $CC... " >&6; }
4787 # gcc leaves a trailing carriage return which upsets mingw
4788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4793 # Accept absolute paths.
4795 re_direlt='/[^/][^/]*/\.\./'
4796 # Canonicalize the pathname of ld
4797 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4798 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4799 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4801 test -z "$LD" && LD="$ac_prog"
4804 # If it fails, then pretend we aren't using GCC.
4808 # If it is relative, then search for the first ld in PATH.
4812 elif test "$with_gnu_ld" = yes; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4814 $as_echo_n "checking for GNU ld... " >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4817 $as_echo_n "checking for non-GNU ld... " >&6; }
4819 if ${lt_cv_path_LD+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -z "$LD"; then
4823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4824 for ac_dir in $PATH; do
4826 test -z "$ac_dir" && ac_dir=.
4827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4828 lt_cv_path_LD="$ac_dir/$ac_prog"
4829 # Check to see if the program is GNU ld. I'd rather use --version,
4830 # but apparently some variants of GNU ld only accept -v.
4831 # Break only if it was the GNU/non-GNU ld that we prefer.
4832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4833 *GNU* | *'with BFD'*)
4834 test "$with_gnu_ld" != no && break
4837 test "$with_gnu_ld" != yes && break
4844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4849 if test -n "$LD"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4851 $as_echo "$LD" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4856 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4858 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4859 if ${lt_cv_prog_gnu_ld+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4863 case `$LD -v 2>&1 </dev/null` in
4864 *GNU* | *'with BFD'*)
4865 lt_cv_prog_gnu_ld=yes
4868 lt_cv_prog_gnu_ld=no
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4873 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4874 with_gnu_ld=$lt_cv_prog_gnu_ld
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4885 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4886 if ${lt_cv_path_NM+:} false; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$NM"; then
4890 # Let the user override the test.
4893 lt_nm_to_check="${ac_tool_prefix}nm"
4894 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4895 lt_nm_to_check="$lt_nm_to_check nm"
4897 for lt_tmp_nm in $lt_nm_to_check; do
4898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4899 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4901 test -z "$ac_dir" && ac_dir=.
4902 tmp_nm="$ac_dir/$lt_tmp_nm"
4903 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4904 # Check to see if the nm accepts a BSD-compat flag.
4905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4906 # nm: unknown option "B" ignored
4907 # Tru64's nm complains that /dev/null is an invalid object file
4908 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4909 */dev/null* | *'Invalid file or object type'*)
4910 lt_cv_path_NM="$tmp_nm -B"
4914 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4916 lt_cv_path_NM="$tmp_nm -p"
4920 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4921 continue # so that we can try to find one that supports BSD flags
4930 : ${lt_cv_path_NM=no}
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4934 $as_echo "$lt_cv_path_NM" >&6; }
4935 if test "$lt_cv_path_NM" != "no"; then
4938 # Didn't find any BSD compatible name lister, look for dumpbin.
4939 if test -n "$DUMPBIN"; then :
4940 # Let the user override the test.
4942 if test -n "$ac_tool_prefix"; then
4943 for ac_prog in dumpbin "link -dump"
4945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_DUMPBIN+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$DUMPBIN"; then
4953 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 DUMPBIN=$ac_cv_prog_DUMPBIN
4973 if test -n "$DUMPBIN"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4975 $as_echo "$DUMPBIN" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$DUMPBIN" && break
4985 if test -z "$DUMPBIN"; then
4986 ac_ct_DUMPBIN=$DUMPBIN
4987 for ac_prog in dumpbin "link -dump"
4989 # Extract the first word of "$ac_prog", so it can be a program name with args.
4990 set dummy $ac_prog; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4994 $as_echo_n "(cached) " >&6
4996 if test -n "$ac_ct_DUMPBIN"; then
4997 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5017 if test -n "$ac_ct_DUMPBIN"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5019 $as_echo "$ac_ct_DUMPBIN" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 test -n "$ac_ct_DUMPBIN" && break
5029 if test "x$ac_ct_DUMPBIN" = x; then
5032 case $cross_compiling:$ac_tool_warned in
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5036 ac_tool_warned=yes ;;
5038 DUMPBIN=$ac_ct_DUMPBIN
5042 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5044 DUMPBIN="$DUMPBIN -symbols"
5052 if test "$DUMPBIN" != ":"; then
5056 test -z "$NM" && NM=nm
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5064 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5065 if ${lt_cv_nm_interface+:} false; then :
5066 $as_echo_n "(cached) " >&6
5068 lt_cv_nm_interface="BSD nm"
5069 echo "int some_variable = 0;" > conftest.$ac_ext
5070 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5071 (eval "$ac_compile" 2>conftest.err)
5072 cat conftest.err >&5
5073 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5074 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5075 cat conftest.err >&5
5076 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5077 cat conftest.out >&5
5078 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5079 lt_cv_nm_interface="MS dumpbin"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5084 $as_echo "$lt_cv_nm_interface" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5087 $as_echo_n "checking whether ln -s works... " >&6; }
5089 if test "$LN_S" = "ln -s"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5094 $as_echo "no, using $LN_S" >&6; }
5097 # find the maximum length of command line arguments
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5099 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5100 if ${lt_cv_sys_max_cmd_len+:} false; then :
5101 $as_echo_n "(cached) " >&6
5108 # On DJGPP, this test can blow up pretty badly due to problems in libc
5109 # (any single argument exceeding 2000 bytes causes a buffer overrun
5110 # during glob expansion). Even if it were fixed, the result of this
5111 # check would be larger than it should be.
5112 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5116 # Under GNU Hurd, this test is not required because there is
5117 # no limit to the length of command line arguments.
5118 # Libtool will interpret -1 as no limit whatsoever
5119 lt_cv_sys_max_cmd_len=-1;
5122 cygwin* | mingw* | cegcc*)
5123 # On Win9x/ME, this test blows up -- it succeeds, but takes
5124 # about 5 minutes as the teststring grows exponentially.
5125 # Worse, since 9x/ME are not pre-emptively multitasking,
5126 # you end up with a "frozen" computer, even though with patience
5127 # the test eventually succeeds (with a max line length of 256k).
5128 # Instead, let's just punt: use the minimum linelength reported by
5129 # all of the supported platforms: 8192 (on NT/2K/XP).
5130 lt_cv_sys_max_cmd_len=8192;
5134 # On MiNT this can take a long time and run out of memory.
5135 lt_cv_sys_max_cmd_len=8192;
5139 # On AmigaOS with pdksh, this test takes hours, literally.
5140 # So we just punt and use a minimum line length of 8192.
5141 lt_cv_sys_max_cmd_len=8192;
5144 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5145 # This has been around since 386BSD, at least. Likely further.
5146 if test -x /sbin/sysctl; then
5147 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5148 elif test -x /usr/sbin/sysctl; then
5149 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5151 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5153 # And add a safety zone
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5159 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5160 lt_cv_sys_max_cmd_len=196608
5164 # The test takes a long time on OS/2.
5165 lt_cv_sys_max_cmd_len=8192
5169 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5170 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5171 # nice to cause kernel panics so lets avoid the loop below.
5172 # First set a reasonable default.
5173 lt_cv_sys_max_cmd_len=16384
5175 if test -x /sbin/sysconfig; then
5176 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5177 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5182 lt_cv_sys_max_cmd_len=102400
5184 sysv5* | sco5v6* | sysv4.2uw2*)
5185 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5186 if test -n "$kargmax"; then
5187 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5189 lt_cv_sys_max_cmd_len=32768
5193 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5194 if test -n "$lt_cv_sys_max_cmd_len"; then
5195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5198 # Make teststring a little bigger before we do anything with it.
5199 # a 1K string should be a reasonable start.
5200 for i in 1 2 3 4 5 6 7 8 ; do
5201 teststring=$teststring$teststring
5203 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5204 # If test is not a shell built-in, we'll probably end up computing a
5205 # maximum length that is only half of the actual maximum length, but
5207 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5208 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5209 test $i != 17 # 1/2 MB should be enough
5212 teststring=$teststring$teststring
5214 # Only check the string length outside the loop.
5215 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5217 # Add a significant safety factor because C++ compilers can tack on
5218 # massive amounts of additional arguments before passing them to the
5219 # linker. It appears as though 1/2 is a usable value.
5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5227 if test -n $lt_cv_sys_max_cmd_len ; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5229 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5232 $as_echo "none" >&6; }
5234 max_cmd_len=$lt_cv_sys_max_cmd_len
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5246 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5247 # Try some XSI features
5250 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5252 && eval 'test $(( 1 + 1 )) -eq 2 \
5253 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5256 $as_echo "$xsi_shell" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5260 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5264 && lt_shell_append=yes
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5266 $as_echo "$lt_shell_append" >&6; }
5269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5279 # test EBCDIC or ASCII
5280 case `echo X|tr X '\101'` in
5281 A) # ASCII based system
5282 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5283 lt_SP2NL='tr \040 \012'
5284 lt_NL2SP='tr \015\012 \040\040'
5286 *) # EBCDIC based system
5287 lt_SP2NL='tr \100 \n'
5288 lt_NL2SP='tr \r\n \100\100'
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5301 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5302 if ${lt_cv_to_host_file_cmd+:} false; then :
5303 $as_echo_n "(cached) " >&6
5308 *-*-mingw* ) # actually msys
5309 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5312 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5314 * ) # otherwise, assume *nix
5315 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5321 *-*-mingw* ) # actually msys
5322 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5325 lt_cv_to_host_file_cmd=func_convert_file_noop
5327 * ) # otherwise, assume *nix
5328 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5332 * ) # unhandled hosts (and "normal" native builds)
5333 lt_cv_to_host_file_cmd=func_convert_file_noop
5339 to_host_file_cmd=$lt_cv_to_host_file_cmd
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5341 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5348 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5349 if ${lt_cv_to_tool_file_cmd+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 #assume ordinary cross tools, or native build.
5353 lt_cv_to_tool_file_cmd=func_convert_file_noop
5357 *-*-mingw* ) # actually msys
5358 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5368 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5375 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5376 if ${lt_cv_ld_reload_flag+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 lt_cv_ld_reload_flag='-r'
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5382 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5383 reload_flag=$lt_cv_ld_reload_flag
5384 case $reload_flag in
5386 *) reload_flag=" $reload_flag" ;;
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5390 cygwin* | mingw* | pw32* | cegcc*)
5391 if test "$GCC" != yes; then
5396 if test "$GCC" = yes; then
5397 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_OBJDUMP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 if test -n "$OBJDUMP"; then
5421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 OBJDUMP=$ac_cv_prog_OBJDUMP
5441 if test -n "$OBJDUMP"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5443 $as_echo "$OBJDUMP" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5451 if test -z "$ac_cv_prog_OBJDUMP"; then
5452 ac_ct_OBJDUMP=$OBJDUMP
5453 # Extract the first word of "objdump", so it can be a program name with args.
5454 set dummy objdump; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$ac_ct_OBJDUMP"; then
5461 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5481 if test -n "$ac_ct_OBJDUMP"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5483 $as_echo "$ac_ct_OBJDUMP" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5489 if test "x$ac_ct_OBJDUMP" = x; then
5492 case $cross_compiling:$ac_tool_warned in
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5498 OBJDUMP=$ac_ct_OBJDUMP
5501 OBJDUMP="$ac_cv_prog_OBJDUMP"
5504 test -z "$OBJDUMP" && OBJDUMP=objdump
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5516 if ${lt_cv_deplibs_check_method+:} false; then :
5517 $as_echo_n "(cached) " >&6
5519 lt_cv_file_magic_cmd='$MAGIC_CMD'
5520 lt_cv_file_magic_test_file=
5521 lt_cv_deplibs_check_method='unknown'
5522 # Need to set the preceding variable on all platforms that support
5523 # interlibrary dependencies.
5524 # 'none' -- dependencies not supported.
5525 # `unknown' -- same as none, but documents that we really don't know.
5526 # 'pass_all' -- all dependencies passed with no checks.
5527 # 'test_compile' -- check by making test program.
5528 # 'file_magic [[regex]]' -- check by looking for files in library path
5529 # which responds to the $file_magic_cmd with a given extended regex.
5530 # If you have `file' or equivalent on your system and you're not sure
5531 # whether `pass_all' will *always* work, you probably want this one.
5535 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544 lt_cv_file_magic_cmd='/usr/bin/file -L'
5545 lt_cv_file_magic_test_file=/shlib/libc.so
5549 # func_win32_libid is a shell function defined in ltmain.sh
5550 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551 lt_cv_file_magic_cmd='func_win32_libid'
5555 # Base MSYS/MinGW do not provide the 'file' command needed by
5556 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5557 # unless we find 'file', for example because we are cross-compiling.
5558 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5559 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561 lt_cv_file_magic_cmd='func_win32_libid'
5563 # Keep this pattern in sync with the one in func_win32_libid.
5564 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5565 lt_cv_file_magic_cmd='$OBJDUMP -f'
5570 # use the weaker test based on 'objdump'. See mingw*.
5571 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5572 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575 darwin* | rhapsody*)
5576 lt_cv_deplibs_check_method=pass_all
5579 freebsd* | dragonfly*)
5580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5583 # Not sure whether the presence of OpenBSD here was a mistake.
5584 # Let's accept both of them until this is cleared up.
5585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5586 lt_cv_file_magic_cmd=/usr/bin/file
5587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5591 lt_cv_deplibs_check_method=pass_all
5596 lt_cv_deplibs_check_method=pass_all
5600 lt_cv_deplibs_check_method=pass_all
5603 hpux10.20* | hpux11*)
5604 lt_cv_file_magic_cmd=/usr/bin/file
5607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5611 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]'
5612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5616 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5626 irix5* | irix6* | nonstopux*)
5628 *-32|*"-32 ") libmagic=32-bit;;
5629 *-n32|*"-n32 ") libmagic=N32;;
5630 *-64|*"-64 ") libmagic=64-bit;;
5631 *) libmagic=never-match;;
5633 lt_cv_deplibs_check_method=pass_all
5636 # This must be glibc/ELF.
5637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5638 lt_cv_deplibs_check_method=pass_all
5642 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5651 lt_cv_file_magic_cmd=/usr/bin/file
5652 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5656 lt_cv_deplibs_check_method=pass_all
5660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5667 osf3* | osf4* | osf5*)
5668 lt_cv_deplibs_check_method=pass_all
5672 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_deplibs_check_method=pass_all
5679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5680 lt_cv_deplibs_check_method=pass_all
5684 case $host_vendor in
5686 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]'
5687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5690 lt_cv_deplibs_check_method=pass_all
5693 lt_cv_file_magic_cmd='/bin/file'
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5697 lt_cv_file_magic_cmd='/bin/file'
5698 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5699 lt_cv_file_magic_test_file=/lib/libc.so
5702 lt_cv_deplibs_check_method=pass_all
5705 lt_cv_deplibs_check_method=pass_all
5711 lt_cv_deplibs_check_method=pass_all
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5721 if test "$build" = "$host"; then
5724 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5727 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5733 file_magic_cmd=$lt_cv_file_magic_cmd
5734 deplibs_check_method=$lt_cv_deplibs_check_method
5735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_DLLTOOL+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 if test -n "$DLLTOOL"; then
5767 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 DLLTOOL=$ac_cv_prog_DLLTOOL
5787 if test -n "$DLLTOOL"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5789 $as_echo "$DLLTOOL" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test -z "$ac_cv_prog_DLLTOOL"; then
5798 ac_ct_DLLTOOL=$DLLTOOL
5799 # Extract the first word of "dlltool", so it can be a program name with args.
5800 set dummy dlltool; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$ac_ct_DLLTOOL"; then
5807 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5827 if test -n "$ac_ct_DLLTOOL"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5829 $as_echo "$ac_ct_DLLTOOL" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5835 if test "x$ac_ct_DLLTOOL" = x; then
5838 case $cross_compiling:$ac_tool_warned in
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5844 DLLTOOL=$ac_ct_DLLTOOL
5847 DLLTOOL="$ac_cv_prog_DLLTOOL"
5850 test -z "$DLLTOOL" && DLLTOOL=dlltool
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5862 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5863 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5864 $as_echo_n "(cached) " >&6
5866 lt_cv_sharedlib_from_linklib_cmd='unknown'
5869 cygwin* | mingw* | pw32* | cegcc*)
5870 # two different shell functions defined in ltmain.sh
5871 # decide which to use based on capabilities of $DLLTOOL
5872 case `$DLLTOOL --help 2>&1` in
5873 *--identify-strict*)
5874 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5877 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5882 # fallback: assume linklib IS sharedlib
5883 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5889 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5890 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5891 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5899 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_AR+:} false; then :
5907 $as_echo_n "(cached) " >&6
5909 if test -n "$AR"; then
5910 ac_cv_prog_AR="$AR" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 if test -n "$AR"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5932 $as_echo "$AR" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5939 test -n "$AR" && break
5942 if test -z "$AR"; then
5946 # Extract the first word of "$ac_prog", so it can be a program name with args.
5947 set dummy $ac_prog; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 if test -n "$ac_ct_AR"; then
5954 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_ac_ct_AR="$ac_prog"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5974 if test -n "$ac_ct_AR"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5976 $as_echo "$ac_ct_AR" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5983 test -n "$ac_ct_AR" && break
5986 if test "x$ac_ct_AR" = x; then
5989 case $cross_compiling:$ac_tool_warned in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6013 $as_echo_n "checking for archiver @FILE support... " >&6; }
6014 if ${lt_cv_ar_at_file+:} false; then :
6015 $as_echo_n "(cached) " >&6
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6029 if ac_fn_c_try_compile "$LINENO"; then :
6030 echo conftest.$ac_objext > conftest.lst
6031 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6033 (eval $lt_ar_try) 2>&5
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }
6037 if test "$ac_status" -eq 0; then
6038 # Ensure the archiver fails upon bogus file names.
6039 rm -f conftest.$ac_objext libconftest.a
6040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6041 (eval $lt_ar_try) 2>&5
6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044 test $ac_status = 0; }
6045 if test "$ac_status" -ne 0; then
6049 rm -f conftest.* libconftest.a
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6056 $as_echo "$lt_cv_ar_at_file" >&6; }
6058 if test "x$lt_cv_ar_at_file" = xno; then
6061 archiver_list_spec=$lt_cv_ar_at_file
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}strip; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_STRIP+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$STRIP"; then
6079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 STRIP=$ac_cv_prog_STRIP
6099 if test -n "$STRIP"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6101 $as_echo "$STRIP" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6109 if test -z "$ac_cv_prog_STRIP"; then
6111 # Extract the first word of "strip", so it can be a program name with args.
6112 set dummy strip; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 if test -n "$ac_ct_STRIP"; then
6119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_ac_ct_STRIP="strip"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6139 if test -n "$ac_ct_STRIP"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6141 $as_echo "$ac_ct_STRIP" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6147 if test "x$ac_ct_STRIP" = x; then
6150 case $cross_compiling:$ac_tool_warned in
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6154 ac_tool_warned=yes ;;
6159 STRIP="$ac_cv_prog_STRIP"
6162 test -z "$STRIP" && STRIP=:
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_RANLIB+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$RANLIB"; then
6178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 RANLIB=$ac_cv_prog_RANLIB
6198 if test -n "$RANLIB"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6200 $as_echo "$RANLIB" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6208 if test -z "$ac_cv_prog_RANLIB"; then
6209 ac_ct_RANLIB=$RANLIB
6210 # Extract the first word of "ranlib", so it can be a program name with args.
6211 set dummy ranlib; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$ac_ct_RANLIB"; then
6218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_ac_ct_RANLIB="ranlib"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6238 if test -n "$ac_ct_RANLIB"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6240 $as_echo "$ac_ct_RANLIB" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6246 if test "x$ac_ct_RANLIB" = x; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned=yes ;;
6255 RANLIB=$ac_ct_RANLIB
6258 RANLIB="$ac_cv_prog_RANLIB"
6261 test -z "$RANLIB" && RANLIB=:
6268 # Determine commands to create old-style static archives.
6269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6270 old_postinstall_cmds='chmod 644 $oldlib'
6271 old_postuninstall_cmds=
6273 if test -n "$RANLIB"; then
6276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6282 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6287 lock_old_archive_extraction=yes ;;
6289 lock_old_archive_extraction=no ;;
6330 # If no C compiler was specified, use CC.
6333 # If no C compiler flags were specified, use CFLAGS.
6334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6336 # Allow CC to be a program name with arguments.
6340 # Check for command to grab the raw symbol name followed by C symbol from nm.
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6342 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6343 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6344 $as_echo_n "(cached) " >&6
6347 # These are sane defaults that work on at least a few old systems.
6348 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6350 # Character class describing NM global symbol codes.
6351 symcode='[BCDEGRST]'
6353 # Regexp to match symbols that can be accessed directly from C.
6354 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6356 # Define system-specific variables.
6361 cygwin* | mingw* | pw32* | cegcc*)
6362 symcode='[ABCDGISTW]'
6365 if test "$host_cpu" = ia64; then
6366 symcode='[ABCDEGRST]'
6370 symcode='[BCDEGRST]'
6373 symcode='[BCDEGQRST]'
6384 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6392 # If we're using GNU nm, then use its standard symbol codes.
6393 case `$NM -V 2>&1` in
6394 *GNU* | *'with BFD'*)
6395 symcode='[ABCDGIRSTW]' ;;
6398 # Transform an extracted symbol line into a proper C declaration.
6399 # Some systems (esp. on ia64) link data and code symbols differently,
6400 # so use this general approach.
6401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6403 # Transform an extracted symbol line into symbol name and symbol address
6404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6407 # Handle CRLF in mingw tool chain
6411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6415 # Try without a prefix underscore, then with it.
6416 for ac_symprfx in "" "_"; do
6418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6419 symxfrm="\\1 $ac_symprfx\\2 \\2"
6421 # Write the raw and C identifiers.
6422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423 # Fake it for dumpbin and say T for any non-static function
6424 # and D for any global variable.
6425 # Also find C++ and __fastcall symbols from MSVC++,
6426 # which start with @ or ?.
6427 lt_cv_sys_global_symbol_pipe="$AWK '"\
6428 " {last_section=section; section=\$ 3};"\
6429 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6430 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6431 " \$ 0!~/External *\|/{next};"\
6432 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6433 " {if(hide[section]) next};"\
6434 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6435 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6436 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6437 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6438 " ' prfx=^$ac_symprfx"
6440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6444 # Check to see that the pipe works correctly.
6448 cat > conftest.$ac_ext <<_LT_EOF
6453 void nm_test_func(void);
6454 void nm_test_func(void){}
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 # Now try to grab the symbols.
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6469 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; } && test -s "$nlist"; then
6473 # Try sorting and uniquifying the output.
6474 if sort "$nlist" | uniq > "$nlist"T; then
6475 mv -f "$nlist"T "$nlist"
6480 # Make sure that we snagged all the symbols we need.
6481 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6482 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6483 cat <<_LT_EOF > conftest.$ac_ext
6484 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6485 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6486 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6487 relocations are performed -- see ld's documentation on pseudo-relocs. */
6488 # define LT_DLSYM_CONST
6489 #elif defined(__osf__)
6490 /* This system does not cope well with relocations in const data. */
6491 # define LT_DLSYM_CONST
6493 # define LT_DLSYM_CONST const
6501 # Now generate the symbol file.
6502 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6504 cat <<_LT_EOF >> conftest.$ac_ext
6506 /* The mapping between symbol names and symbols. */
6507 LT_DLSYM_CONST struct {
6511 lt__PROGRAM__LTX_preloaded_symbols[] =
6513 { "@PROGRAM@", (void *) 0 },
6515 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6516 cat <<\_LT_EOF >> conftest.$ac_ext
6520 /* This works around a problem in FreeBSD linker */
6521 #ifdef FREEBSD_WORKAROUND
6522 static const void *lt_preloaded_setup() {
6523 return lt__PROGRAM__LTX_preloaded_symbols;
6531 # Now try linking the two files.
6532 mv conftest.$ac_objext conftstm.$ac_objext
6533 lt_globsym_save_LIBS=$LIBS
6534 lt_globsym_save_CFLAGS=$CFLAGS
6535 LIBS="conftstm.$ac_objext"
6536 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6538 (eval $ac_link) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6544 LIBS=$lt_globsym_save_LIBS
6545 CFLAGS=$lt_globsym_save_CFLAGS
6547 echo "cannot find nm_test_func in $nlist" >&5
6550 echo "cannot find nm_test_var in $nlist" >&5
6553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6556 echo "$progname: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6559 rm -rf conftest* conftst*
6561 # Do not use the global_symbol_pipe unless it works.
6562 if test "$pipe_works" = yes; then
6565 lt_cv_sys_global_symbol_pipe=
6571 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6572 lt_cv_sys_global_symbol_to_cdecl=
6574 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6576 $as_echo "failed" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6579 $as_echo "ok" >&6; }
6582 # Response file support.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584 nm_file_list_spec='@'
6585 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6586 nm_file_list_spec='@'
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6616 $as_echo_n "checking for sysroot... " >&6; }
6618 # Check whether --with-sysroot was given.
6619 if test "${with_sysroot+set}" = set; then :
6620 withval=$with_sysroot;
6627 case ${with_sysroot} in #(
6629 if test "$GCC" = yes; then
6630 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6634 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6640 $as_echo "${with_sysroot}" >&6; }
6641 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6646 $as_echo "${lt_sysroot:-no}" >&6; }
6652 # Check whether --enable-libtool-lock was given.
6653 if test "${enable_libtool_lock+set}" = set; then :
6654 enableval=$enable_libtool_lock;
6657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6659 # Some flags need to be propagated to the compiler or linker for good
6663 # Find out which ABI we are using.
6664 echo 'int i;' > conftest.$ac_ext
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666 (eval $ac_compile) 2>&5
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }; then
6670 case `/usr/bin/file conftest.$ac_objext` in
6682 # Find out which ABI we are using.
6683 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6685 (eval $ac_compile) 2>&5
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; }; then
6689 if test "$lt_cv_prog_gnu_ld" = yes; then
6690 case `/usr/bin/file conftest.$ac_objext` in
6692 LD="${LD-ld} -melf32bsmip"
6695 LD="${LD-ld} -melf32bmipn32"
6698 LD="${LD-ld} -melf64bmip"
6702 case `/usr/bin/file conftest.$ac_objext` in
6718 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6719 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6720 # Find out which ABI we are using.
6721 echo 'int i;' > conftest.$ac_ext
6722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723 (eval $ac_compile) 2>&5
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 test $ac_status = 0; }; then
6727 case `/usr/bin/file conftest.o` in
6730 x86_64-*kfreebsd*-gnu)
6731 LD="${LD-ld} -m elf_i386_fbsd"
6734 LD="${LD-ld} -m elf_i386"
6736 ppc64-*linux*|powerpc64-*linux*)
6737 LD="${LD-ld} -m elf32ppclinux"
6740 LD="${LD-ld} -m elf_s390"
6743 LD="${LD-ld} -m elf32_sparc"
6749 x86_64-*kfreebsd*-gnu)
6750 LD="${LD-ld} -m elf_x86_64_fbsd"
6753 LD="${LD-ld} -m elf_x86_64"
6755 ppc*-*linux*|powerpc*-*linux*)
6756 LD="${LD-ld} -m elf64ppc"
6758 s390*-*linux*|s390*-*tpf*)
6759 LD="${LD-ld} -m elf64_s390"
6762 LD="${LD-ld} -m elf64_sparc"
6772 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6773 SAVE_CFLAGS="$CFLAGS"
6774 CFLAGS="$CFLAGS -belf"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6776 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6777 if ${lt_cv_cc_needs_belf+:} false; then :
6778 $as_echo_n "(cached) " >&6
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 lt_cv_cc_needs_belf=yes
6800 lt_cv_cc_needs_belf=no
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6805 ac_cpp='$CPP $CPPFLAGS'
6806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6812 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6813 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6814 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6815 CFLAGS="$SAVE_CFLAGS"
6819 # Find out which ABI we are using.
6820 echo 'int i;' > conftest.$ac_ext
6821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822 (eval $ac_compile) 2>&5
6824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; then
6826 case `/usr/bin/file conftest.o` in
6828 case $lt_cv_prog_gnu_ld in
6832 LD="${LD-ld} -m elf_x86_64"
6835 LD="${LD-ld} -m elf64_sparc"
6838 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6839 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6844 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6856 need_locks="$enable_libtool_lock"
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}mt; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$MANIFEST_TOOL"; then
6867 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6887 if test -n "$MANIFEST_TOOL"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6889 $as_echo "$MANIFEST_TOOL" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6897 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6898 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6899 # Extract the first word of "mt", so it can be a program name with args.
6900 set dummy mt; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -n "$ac_ct_MANIFEST_TOOL"; then
6907 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6927 if test -n "$ac_ct_MANIFEST_TOOL"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6929 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6935 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6938 case $cross_compiling:$ac_tool_warned in
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6944 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6947 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6950 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6952 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6953 if ${lt_cv_path_mainfest_tool+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 lt_cv_path_mainfest_tool=no
6957 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6958 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6959 cat conftest.err >&5
6960 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6961 lt_cv_path_mainfest_tool=yes
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6966 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6967 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6977 rhapsody* | darwin*)
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6984 $as_echo_n "(cached) " >&6
6986 if test -n "$DSYMUTIL"; then
6987 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7007 if test -n "$DSYMUTIL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7009 $as_echo "$DSYMUTIL" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7017 if test -z "$ac_cv_prog_DSYMUTIL"; then
7018 ac_ct_DSYMUTIL=$DSYMUTIL
7019 # Extract the first word of "dsymutil", so it can be a program name with args.
7020 set dummy dsymutil; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 if test -n "$ac_ct_DSYMUTIL"; then
7027 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7047 if test -n "$ac_ct_DSYMUTIL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7049 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7055 if test "x$ac_ct_DSYMUTIL" = x; then
7058 case $cross_compiling:$ac_tool_warned in
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7062 ac_tool_warned=yes ;;
7064 DSYMUTIL=$ac_ct_DSYMUTIL
7067 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_NMEDIT+:} false; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$NMEDIT"; then
7079 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 NMEDIT=$ac_cv_prog_NMEDIT
7099 if test -n "$NMEDIT"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7101 $as_echo "$NMEDIT" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7109 if test -z "$ac_cv_prog_NMEDIT"; then
7110 ac_ct_NMEDIT=$NMEDIT
7111 # Extract the first word of "nmedit", so it can be a program name with args.
7112 set dummy nmedit; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$ac_ct_NMEDIT"; then
7119 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7139 if test -n "$ac_ct_NMEDIT"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7141 $as_echo "$ac_ct_NMEDIT" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7147 if test "x$ac_ct_NMEDIT" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7156 NMEDIT=$ac_ct_NMEDIT
7159 NMEDIT="$ac_cv_prog_NMEDIT"
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_LIPO+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$LIPO"; then
7171 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 LIPO=$ac_cv_prog_LIPO
7191 if test -n "$LIPO"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7193 $as_echo "$LIPO" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7201 if test -z "$ac_cv_prog_LIPO"; then
7203 # Extract the first word of "lipo", so it can be a program name with args.
7204 set dummy lipo; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$ac_ct_LIPO"; then
7211 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_LIPO="lipo"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7231 if test -n "$ac_ct_LIPO"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7233 $as_echo "$ac_ct_LIPO" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7239 if test "x$ac_ct_LIPO" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7251 LIPO="$ac_cv_prog_LIPO"
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}otool; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_OTOOL+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$OTOOL"; then
7263 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 OTOOL=$ac_cv_prog_OTOOL
7283 if test -n "$OTOOL"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7285 $as_echo "$OTOOL" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7293 if test -z "$ac_cv_prog_OTOOL"; then
7295 # Extract the first word of "otool", so it can be a program name with args.
7296 set dummy otool; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 if test -n "$ac_ct_OTOOL"; then
7303 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_OTOOL="otool"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7323 if test -n "$ac_ct_OTOOL"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7325 $as_echo "$ac_ct_OTOOL" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7331 if test "x$ac_ct_OTOOL" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7343 OTOOL="$ac_cv_prog_OTOOL"
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_OTOOL64+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$OTOOL64"; then
7355 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 OTOOL64=$ac_cv_prog_OTOOL64
7375 if test -n "$OTOOL64"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7377 $as_echo "$OTOOL64" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_OTOOL64"; then
7386 ac_ct_OTOOL64=$OTOOL64
7387 # Extract the first word of "otool64", so it can be a program name with args.
7388 set dummy otool64; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_OTOOL64"; then
7395 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_OTOOL64="otool64"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7415 if test -n "$ac_ct_OTOOL64"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7417 $as_echo "$ac_ct_OTOOL64" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_OTOOL64" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7432 OTOOL64=$ac_ct_OTOOL64
7435 OTOOL64="$ac_cv_prog_OTOOL64"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7465 $as_echo_n "checking for -single_module linker flag... " >&6; }
7466 if ${lt_cv_apple_cc_single_mod+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 lt_cv_apple_cc_single_mod=no
7470 if test -z "${LT_MULTI_MODULE}"; then
7471 # By default we will add the -single_module flag. You can override
7472 # by either setting the environment variable LT_MULTI_MODULE
7473 # non-empty at configure time, or by adding -multi_module to the
7475 rm -rf libconftest.dylib*
7476 echo "int foo(void){return 1;}" > conftest.c
7477 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7478 -dynamiclib -Wl,-single_module conftest.c" >&5
7479 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7480 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7482 # If there is a non-empty error log, and "single_module"
7483 # appears in it, assume the flag caused a linker warning
7484 if test -s conftest.err && $GREP single_module conftest.err; then
7485 cat conftest.err >&5
7486 # Otherwise, if the output was created with a 0 exit code from
7487 # the compiler, it worked.
7488 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7489 lt_cv_apple_cc_single_mod=yes
7491 cat conftest.err >&5
7493 rm -rf libconftest.dylib*
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7498 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7501 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7502 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 lt_cv_ld_exported_symbols_list=no
7506 save_LDFLAGS=$LDFLAGS
7507 echo "_main" > conftest.sym
7508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7520 if ac_fn_c_try_link "$LINENO"; then :
7521 lt_cv_ld_exported_symbols_list=yes
7523 lt_cv_ld_exported_symbols_list=no
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7527 LDFLAGS="$save_LDFLAGS"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7531 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7534 $as_echo_n "checking for -force_load linker flag... " >&6; }
7535 if ${lt_cv_ld_force_load+:} false; then :
7536 $as_echo_n "(cached) " >&6
7538 lt_cv_ld_force_load=no
7539 cat > conftest.c << _LT_EOF
7540 int forced_loaded() { return 2;}
7542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7544 echo "$AR cru libconftest.a conftest.o" >&5
7545 $AR cru libconftest.a conftest.o 2>&5
7546 echo "$RANLIB libconftest.a" >&5
7547 $RANLIB libconftest.a 2>&5
7548 cat > conftest.c << _LT_EOF
7549 int main() { return 0;}
7551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7554 if test -s conftest.err && $GREP force_load conftest.err; then
7555 cat conftest.err >&5
7556 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7557 lt_cv_ld_force_load=yes
7559 cat conftest.err >&5
7561 rm -f conftest.err libconftest.a conftest conftest.c
7562 rm -rf conftest.dSYM
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7566 $as_echo "$lt_cv_ld_force_load" >&6; }
7568 rhapsody* | darwin1.[012])
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572 darwin*) # darwin 5.x on
7573 # if running on 10.5 or later, the deployment target defaults
7574 # to the OS version, if on x86, and 10.4, the deployment
7575 # target defaults to 10.4. Don't you love it?
7576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7587 _lt_dar_single_mod='$single_module'
7589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7594 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7595 _lt_dsymutil='~$DSYMUTIL $lib || :'
7602 for ac_header in dlfcn.h
7604 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7606 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7607 cat >>confdefs.h <<_ACEOF
7608 #define HAVE_DLFCN_H 1
7629 # Check whether --enable-shared was given.
7630 if test "${enable_shared+set}" = set; then :
7631 enableval=$enable_shared; p=${PACKAGE-default}
7633 yes) enable_shared=yes ;;
7634 no) enable_shared=no ;;
7637 # Look at the argument we got. We use all the common list separators.
7638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7639 for pkg in $enableval; do
7641 if test "X$pkg" = "X$p"; then
7660 # Check whether --enable-static was given.
7661 if test "${enable_static+set}" = set; then :
7662 enableval=$enable_static; p=${PACKAGE-default}
7664 yes) enable_static=yes ;;
7665 no) enable_static=no ;;
7668 # Look at the argument we got. We use all the common list separators.
7669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7670 for pkg in $enableval; do
7672 if test "X$pkg" = "X$p"; then
7692 # Check whether --with-pic was given.
7693 if test "${with_pic+set}" = set; then :
7694 withval=$with_pic; lt_p=${PACKAGE-default}
7696 yes|no) pic_mode=$withval ;;
7699 # Look at the argument we got. We use all the common list separators.
7700 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7701 for lt_pkg in $withval; do
7703 if test "X$lt_pkg" = "X$lt_p"; then
7715 test -z "$pic_mode" && pic_mode=default
7723 # Check whether --enable-fast-install was given.
7724 if test "${enable_fast_install+set}" = set; then :
7725 enableval=$enable_fast_install; p=${PACKAGE-default}
7727 yes) enable_fast_install=yes ;;
7728 no) enable_fast_install=no ;;
7730 enable_fast_install=no
7731 # Look at the argument we got. We use all the common list separators.
7732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7733 for pkg in $enableval; do
7735 if test "X$pkg" = "X$p"; then
7736 enable_fast_install=yes
7743 enable_fast_install=yes
7756 # This can be used to rebuild libtool when needed
7757 LIBTOOL_DEPS="$ltmain"
7759 # Always use our own libtool.
7760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7791 test -z "$LN_S" && LN_S="ln -s"
7806 if test -n "${ZSH_VERSION+set}" ; then
7807 setopt NO_GLOB_SUBST
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7811 $as_echo_n "checking for objdir... " >&6; }
7812 if ${lt_cv_objdir+:} false; then :
7813 $as_echo_n "(cached) " >&6
7815 rm -f .libs 2>/dev/null
7816 mkdir .libs 2>/dev/null
7817 if test -d .libs; then
7820 # MS-DOS does not allow filenames that begin with a dot.
7823 rmdir .libs 2>/dev/null
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7826 $as_echo "$lt_cv_objdir" >&6; }
7827 objdir=$lt_cv_objdir
7833 cat >>confdefs.h <<_ACEOF
7834 #define LT_OBJDIR "$lt_cv_objdir/"
7842 # AIX sometimes has problems with the GCC collect2 program. For some
7843 # reason, if we set the COLLECT_NAMES environment variable, the problems
7844 # vanish in a puff of smoke.
7845 if test "X${COLLECT_NAMES+set}" != Xset; then
7847 export COLLECT_NAMES
7854 can_build_shared=yes
7856 # All known linkers require a `.a' archive for static linking (except MSVC,
7857 # which needs '.lib').
7860 with_gnu_ld="$lt_cv_prog_gnu_ld"
7863 old_CFLAGS="$CFLAGS"
7865 # Set sane defaults for various variables
7866 test -z "$CC" && CC=cc
7867 test -z "$LTCC" && LTCC=$CC
7868 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7869 test -z "$LD" && LD=ld
7870 test -z "$ac_objext" && ac_objext=o
7872 for cc_temp in $compiler""; do
7874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7880 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7883 # Only perform the check for file, if the check method requires it
7884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7885 case $deplibs_check_method in
7887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7889 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7890 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7891 $as_echo_n "(cached) " >&6
7895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7898 lt_save_MAGIC_CMD="$MAGIC_CMD"
7899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7901 for ac_dir in $ac_dummy; do
7903 test -z "$ac_dir" && ac_dir=.
7904 if test -f $ac_dir/${ac_tool_prefix}file; then
7905 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7906 if test -n "$file_magic_test_file"; then
7907 case $deplibs_check_method in
7909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7912 $EGREP "$file_magic_regex" > /dev/null; then
7917 *** Warning: the command libtool uses to detect shared libraries,
7918 *** $file_magic_cmd, produces output that libtool cannot recognize.
7919 *** The result is that libtool may fail to recognize shared libraries
7920 *** as such. This will affect the creation of libtool libraries that
7921 *** depend on shared libraries, but programs linked with such libtool
7922 *** libraries will work regardless of this problem. Nevertheless, you
7923 *** may want to report the problem to your system manager and/or to
7924 *** bug-libtool@gnu.org
7934 MAGIC_CMD="$lt_save_MAGIC_CMD"
7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940 if test -n "$MAGIC_CMD"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7942 $as_echo "$MAGIC_CMD" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7952 if test -z "$lt_cv_path_MAGIC_CMD"; then
7953 if test -n "$ac_tool_prefix"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7955 $as_echo_n "checking for file... " >&6; }
7956 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7957 $as_echo_n "(cached) " >&6
7961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7964 lt_save_MAGIC_CMD="$MAGIC_CMD"
7965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967 for ac_dir in $ac_dummy; do
7969 test -z "$ac_dir" && ac_dir=.
7970 if test -f $ac_dir/file; then
7971 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7972 if test -n "$file_magic_test_file"; then
7973 case $deplibs_check_method in
7975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978 $EGREP "$file_magic_regex" > /dev/null; then
7983 *** Warning: the command libtool uses to detect shared libraries,
7984 *** $file_magic_cmd, produces output that libtool cannot recognize.
7985 *** The result is that libtool may fail to recognize shared libraries
7986 *** as such. This will affect the creation of libtool libraries that
7987 *** depend on shared libraries, but programs linked with such libtool
7988 *** libraries will work regardless of this problem. Nevertheless, you
7989 *** may want to report the problem to your system manager and/or to
7990 *** bug-libtool@gnu.org
8000 MAGIC_CMD="$lt_save_MAGIC_CMD"
8005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006 if test -n "$MAGIC_CMD"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008 $as_echo "$MAGIC_CMD" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8024 # Use C for the default configuration in the libtool script
8028 ac_cpp='$CPP $CPPFLAGS'
8029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034 # Source file extension for C test sources.
8037 # Object file extension for compiled C test sources.
8041 # Code to be used in simple compile tests
8042 lt_simple_compile_test_code="int some_variable = 0;"
8044 # Code to be used in simple link tests
8045 lt_simple_link_test_code='int main(){return(0);}'
8053 # If no C compiler was specified, use CC.
8056 # If no C compiler flags were specified, use CFLAGS.
8057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8059 # Allow CC to be a program name with arguments.
8062 # Save the default compiler, since it gets overwritten when the other
8063 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8064 compiler_DEFAULT=$CC
8066 # save warnings/boilerplate of simple test code
8067 ac_outfile=conftest.$ac_objext
8068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070 _lt_compiler_boilerplate=`cat conftest.err`
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076 _lt_linker_boilerplate=`cat conftest.err`
8081 ## There is no encapsulation within the following macros, do not change
8082 ## the running order or otherwise move them around unless you know exactly
8083 ## what you are doing...
8084 if test -n "$compiler"; then
8086 lt_prog_compiler_no_builtin_flag=
8088 if test "$GCC" = yes; then
8089 case $cc_basename in
8091 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8093 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8099 $as_echo_n "(cached) " >&6
8101 lt_cv_prog_compiler_rtti_exceptions=no
8102 ac_outfile=conftest.$ac_objext
8103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8104 lt_compiler_flag="-fno-rtti -fno-exceptions"
8105 # Insert the option either (1) after the last *FLAGS variable, or
8106 # (2) before a word containing "conftest.", or (3) at the end.
8107 # Note that $ac_compile itself does not contain backslashes and begins
8108 # with a dollar sign (not a hyphen), so the echo should work correctly.
8109 # The option is referenced via a variable to avoid confusing sed.
8110 lt_compile=`echo "$ac_compile" | $SED \
8111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8113 -e 's:$: $lt_compiler_flag:'`
8114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8115 (eval "$lt_compile" 2>conftest.err)
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 if (exit $ac_status) && test -s "$ac_outfile"; then
8120 # The compiler can only warn and ignore the option if not recognized
8121 # So say no if there are warnings other than the usual output.
8122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8125 lt_cv_prog_compiler_rtti_exceptions=yes
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8135 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8147 lt_prog_compiler_wl=
8148 lt_prog_compiler_pic=
8149 lt_prog_compiler_static=
8152 if test "$GCC" = yes; then
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_static='-static'
8158 # All AIX code is PIC.
8159 if test "$host_cpu" = ia64; then
8160 # AIX 5 now supports IA64 processor
8161 lt_prog_compiler_static='-Bstatic'
8168 # see comment about AmigaOS4 .so support
8169 lt_prog_compiler_pic='-fPIC'
8172 # FIXME: we need at least 68020 code to build shared libraries, but
8173 # adding the `-m68020' flag to GCC prevents building anything better,
8175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8181 # PIC is the default for these OSes.
8184 mingw* | cygwin* | pw32* | os2* | cegcc*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188 # (--disable-auto-import) libraries
8189 lt_prog_compiler_pic='-DDLL_EXPORT'
8192 darwin* | rhapsody*)
8193 # PIC is the default on this platform
8194 # Common symbols not allowed in MH_DYLIB files
8195 lt_prog_compiler_pic='-fno-common'
8199 # PIC is the default for Haiku.
8200 # The "-static" flag exists, but is broken.
8201 lt_prog_compiler_static=
8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8207 # sets the default TLS model and affects inlining.
8213 lt_prog_compiler_pic='-fPIC'
8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220 # Instead, we relocate shared libraries at runtime.
8224 # Just because we use GCC doesn't mean we suddenly get shared libraries
8225 # on systems that don't support them.
8226 lt_prog_compiler_can_build_shared=no
8231 # QNX uses GNU C++, but need to define -shared option too, otherwise
8233 lt_prog_compiler_pic='-fPIC -shared'
8237 if test -d /usr/nec; then
8238 lt_prog_compiler_pic=-Kconform_pic
8243 lt_prog_compiler_pic='-fPIC'
8247 case $cc_basename in
8248 nvcc*) # Cuda Compiler Driver 2.2
8249 lt_prog_compiler_wl='-Xlinker '
8250 if test -n "$lt_prog_compiler_pic"; then
8251 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8256 # PORTME Check for flag to pass linker flags through the system compiler.
8259 lt_prog_compiler_wl='-Wl,'
8260 if test "$host_cpu" = ia64; then
8261 # AIX 5 now supports IA64 processor
8262 lt_prog_compiler_static='-Bstatic'
8264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268 mingw* | cygwin* | pw32* | os2* | cegcc*)
8269 # This hack is so that the source file can tell whether it is being
8270 # built for inclusion in a dll (and should export symbols for example).
8271 lt_prog_compiler_pic='-DDLL_EXPORT'
8274 hpux9* | hpux10* | hpux11*)
8275 lt_prog_compiler_wl='-Wl,'
8276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8283 lt_prog_compiler_pic='+Z'
8286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8287 lt_prog_compiler_static='${wl}-a ${wl}archive'
8290 irix5* | irix6* | nonstopux*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # PIC (with -KPIC) is the default.
8293 lt_prog_compiler_static='-non_shared'
8296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8297 case $cc_basename in
8298 # old Intel for x86_64 which still supported -KPIC.
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-static'
8304 # icc used to be incompatible with GCC.
8305 # ICC 10 doesn't accept -KPIC any more.
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fPIC'
8309 lt_prog_compiler_static='-static'
8311 # Lahey Fortran 8.1.
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='--shared'
8315 lt_prog_compiler_static='--static'
8318 # NAG Fortran compiler
8319 lt_prog_compiler_wl='-Wl,-Wl,,'
8320 lt_prog_compiler_pic='-PIC'
8321 lt_prog_compiler_static='-Bstatic'
8323 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8324 # Portland Group compilers (*not* the Pentium gcc compiler,
8325 # which looks to be a dead project)
8326 lt_prog_compiler_wl='-Wl,'
8327 lt_prog_compiler_pic='-fpic'
8328 lt_prog_compiler_static='-Bstatic'
8331 lt_prog_compiler_wl='-Wl,'
8332 # All Alpha code is PIC.
8333 lt_prog_compiler_static='-non_shared'
8335 xl* | bgxl* | bgf* | mpixl*)
8336 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-qpic'
8339 lt_prog_compiler_static='-qstaticlink'
8342 case `$CC -V 2>&1 | sed 5q` in
8343 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8344 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_wl=''
8349 *Sun\ F* | *Sun*Fortran*)
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-Bstatic'
8352 lt_prog_compiler_wl='-Qoption ld '
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 lt_prog_compiler_wl='-Wl,'
8360 *Intel*\ [CF]*Compiler*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_pic='-fPIC'
8363 lt_prog_compiler_static='-static'
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-fpic'
8368 lt_prog_compiler_static='-Bstatic'
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8381 # QNX uses GNU C++, but need to define -shared option too, otherwise
8383 lt_prog_compiler_pic='-fPIC -shared'
8386 osf3* | osf4* | osf5*)
8387 lt_prog_compiler_wl='-Wl,'
8388 # All OSF/1 code is PIC.
8389 lt_prog_compiler_static='-non_shared'
8393 lt_prog_compiler_static='-non_shared'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 case $cc_basename in
8400 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8401 lt_prog_compiler_wl='-Qoption ld ';;
8403 lt_prog_compiler_wl='-Wl,';;
8408 lt_prog_compiler_wl='-Qoption ld '
8409 lt_prog_compiler_pic='-PIC'
8410 lt_prog_compiler_static='-Bstatic'
8413 sysv4 | sysv4.2uw2* | sysv4.3*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8420 if test -d /usr/nec ;then
8421 lt_prog_compiler_pic='-Kconform_pic'
8422 lt_prog_compiler_static='-Bstatic'
8426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_can_build_shared=no
8438 lt_prog_compiler_pic='-pic'
8439 lt_prog_compiler_static='-Bstatic'
8443 lt_prog_compiler_can_build_shared=no
8449 # For platforms which do not support PIC, -DPIC is meaningless:
8451 lt_prog_compiler_pic=
8454 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8459 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8460 if ${lt_cv_prog_compiler_pic+:} false; then :
8461 $as_echo_n "(cached) " >&6
8463 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8466 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8467 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8470 # Check to make sure the PIC flag actually works.
8472 if test -n "$lt_prog_compiler_pic"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8474 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8475 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 lt_cv_prog_compiler_pic_works=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_pic_works=yes
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8509 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8511 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8512 case $lt_prog_compiler_pic in
8514 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8517 lt_prog_compiler_pic=
8518 lt_prog_compiler_can_build_shared=no
8534 # Check to make sure the static flag actually works.
8536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8539 if ${lt_cv_prog_compiler_static_works+:} false; then :
8540 $as_echo_n "(cached) " >&6
8542 lt_cv_prog_compiler_static_works=no
8543 save_LDFLAGS="$LDFLAGS"
8544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8547 # The linker can only warn and ignore the option if not recognized
8548 # So say no if there are warnings
8549 if test -s conftest.err; then
8550 # Append any errors to the config.log.
8551 cat conftest.err 1>&5
8552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554 if diff conftest.exp conftest.er2 >/dev/null; then
8555 lt_cv_prog_compiler_static_works=yes
8558 lt_cv_prog_compiler_static_works=yes
8562 LDFLAGS="$save_LDFLAGS"
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8571 lt_prog_compiler_static=
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8582 if ${lt_cv_prog_compiler_c_o+:} false; then :
8583 $as_echo_n "(cached) " >&6
8585 lt_cv_prog_compiler_c_o=no
8586 $RM -r conftest 2>/dev/null
8590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592 lt_compiler_flag="-o out/conftest2.$ac_objext"
8593 # Insert the option either (1) after the last *FLAGS variable, or
8594 # (2) before a word containing "conftest.", or (3) at the end.
8595 # Note that $ac_compile itself does not contain backslashes and begins
8596 # with a dollar sign (not a hyphen), so the echo should work correctly.
8597 lt_compile=`echo "$ac_compile" | $SED \
8598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8600 -e 's:$: $lt_compiler_flag:'`
8601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8602 (eval "$lt_compile" 2>out/conftest.err)
8604 cat out/conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8608 # The compiler can only warn and ignore the option if not recognized
8609 # So say no if there are warnings
8610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8613 lt_cv_prog_compiler_c_o=yes
8618 # SGI C++ compiler will create directory out/ii_files/ for
8619 # template instantiation
8620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8621 $RM out/* && rmdir out
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8637 if ${lt_cv_prog_compiler_c_o+:} false; then :
8638 $as_echo_n "(cached) " >&6
8640 lt_cv_prog_compiler_c_o=no
8641 $RM -r conftest 2>/dev/null
8645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647 lt_compiler_flag="-o out/conftest2.$ac_objext"
8648 # Insert the option either (1) after the last *FLAGS variable, or
8649 # (2) before a word containing "conftest.", or (3) at the end.
8650 # Note that $ac_compile itself does not contain backslashes and begins
8651 # with a dollar sign (not a hyphen), so the echo should work correctly.
8652 lt_compile=`echo "$ac_compile" | $SED \
8653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8655 -e 's:$: $lt_compiler_flag:'`
8656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8657 (eval "$lt_compile" 2>out/conftest.err)
8659 cat out/conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8663 # The compiler can only warn and ignore the option if not recognized
8664 # So say no if there are warnings
8665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8668 lt_cv_prog_compiler_c_o=yes
8673 # SGI C++ compiler will create directory out/ii_files/ for
8674 # template instantiation
8675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8676 $RM out/* && rmdir out
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8688 hard_links="nottested"
8689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8690 # do not overwrite the value of need_locks provided by the user
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8692 $as_echo_n "checking if we can lock with hard links... " >&6; }
8695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 ln conftest.a conftest.b 2>&5 || hard_links=no
8698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8700 $as_echo "$hard_links" >&6; }
8701 if test "$hard_links" = no; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8719 allow_undefined_flag=
8720 always_export_symbols=no
8722 archive_expsym_cmds=
8723 compiler_needs_object=no
8724 enable_shared_with_static_runtimes=no
8725 export_dynamic_flag_spec=
8726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8727 hardcode_automatic=no
8729 hardcode_direct_absolute=no
8730 hardcode_libdir_flag_spec=
8731 hardcode_libdir_separator=
8733 hardcode_shlibpath_var=unsupported
8735 link_all_deplibs=unknown
8738 old_archive_from_new_cmds=
8739 old_archive_from_expsyms_cmds=
8740 thread_safe_flag_spec=
8741 whole_archive_flag_spec=
8742 # include_expsyms should be a list of space-separated symbols to be *always*
8743 # included in the symbol list
8745 # exclude_expsyms can be an extended regexp of symbols to exclude
8746 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8747 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8748 # as well as any symbol that contains `d'.
8749 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8750 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8751 # platforms (ab)use it in PIC code, but their linkers get confused if
8752 # the symbol is explicitly referenced. Since portable code cannot
8753 # rely on this symbol name, it's probably fine to never include it in
8754 # preloaded symbol tables.
8755 # Exclude shared library initialization/finalization symbols.
8756 extract_expsyms_cmds=
8759 cygwin* | mingw* | pw32* | cegcc*)
8760 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8761 # When not using gcc, we currently assume that we are using
8762 # Microsoft Visual C++.
8763 if test "$GCC" != yes; then
8768 # we just hope/assume this is gcc and not c89 (= MSVC++)
8778 # On some targets, GNU ld is compatible enough with the native linker
8779 # that we're better off using the native interface for both.
8780 lt_use_gnu_ld_interface=no
8781 if test "$with_gnu_ld" = yes; then
8784 # The AIX port of GNU ld has always aspired to compatibility
8785 # with the native linker. However, as the warning in the GNU ld
8786 # block says, versions before 2.19.5* couldn't really create working
8787 # shared libraries, regardless of the interface used.
8788 case `$LD -v 2>&1` in
8789 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8790 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8791 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8793 lt_use_gnu_ld_interface=yes
8798 lt_use_gnu_ld_interface=yes
8803 if test "$lt_use_gnu_ld_interface" = yes; then
8804 # If archive_cmds runs LD, not CC, wlarc should be empty
8807 # Set some defaults for GNU ld with shared library support. These
8808 # are reset later if shared libraries are not supported. Putting them
8809 # here allows them to be overridden if necessary.
8810 runpath_var=LD_RUN_PATH
8811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812 export_dynamic_flag_spec='${wl}--export-dynamic'
8813 # ancient GNU ld didn't support --whole-archive et. al.
8814 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8815 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8817 whole_archive_flag_spec=
8819 supports_anon_versioning=no
8820 case `$LD -v 2>&1` in
8821 *GNU\ gold*) supports_anon_versioning=yes ;;
8822 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8823 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8824 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8825 *\ 2.11.*) ;; # other 2.11 versions
8826 *) supports_anon_versioning=yes ;;
8829 # See if GNU ld supports shared libraries.
8832 # On AIX/PPC, the GNU linker is very broken
8833 if test "$host_cpu" != ia64; then
8837 *** Warning: the GNU linker, at least up to release 2.19, is reported
8838 *** to be unable to reliably create shared libraries on AIX.
8839 *** Therefore, libtool is disabling shared libraries support. If you
8840 *** really care for shared libraries, you may want to install binutils
8841 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8842 *** You will then need to restart the configuration process.
8851 # see comment about AmigaOS4 .so support
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853 archive_expsym_cmds=''
8856 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)'
8857 hardcode_libdir_flag_spec='-L$libdir'
8858 hardcode_minus_L=yes
8864 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8865 allow_undefined_flag=unsupported
8866 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8867 # support --undefined. This deserves some investigation. FIXME
8868 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 cygwin* | mingw* | pw32* | cegcc*)
8875 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8876 # as there is no search path for DLLs.
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 export_dynamic_flag_spec='${wl}--export-all-symbols'
8879 allow_undefined_flag=unsupported
8880 always_export_symbols=no
8881 enable_shared_with_static_runtimes=yes
8882 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'
8883 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8887 # If the export-symbols file already is a .def file (1st line
8888 # is EXPORTS), use it as is; otherwise, prepend...
8889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8890 cp $export_symbols $output_objdir/$soname.def;
8892 echo EXPORTS > $output_objdir/$soname.def;
8893 cat $export_symbols >> $output_objdir/$soname.def;
8895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8903 link_all_deplibs=yes
8908 hardcode_shlibpath_var=no
8909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8910 export_dynamic_flag_spec='${wl}-E'
8911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8912 # Instead, shared libraries are loaded at an image base (0x10000000 by
8913 # default) and relocated if they conflict, which is a slow very memory
8914 # consuming and fragmenting process. To avoid this, we pick a random,
8915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8918 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'
8921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8923 if test "$host_os" = linux-dietlibc; then
8924 case $cc_basename in
8925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8929 && test "$tmp_diet" = no
8931 tmp_addflag=' $pic_flag'
8932 tmp_sharedflag='-shared'
8933 case $cc_basename,$host_cpu in
8934 pgcc*) # Portland Group C compiler
8935 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'
8936 tmp_addflag=' $pic_flag'
8938 pgf77* | pgf90* | pgf95* | pgfortran*)
8939 # Portland Group f77 and f90 compilers
8940 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'
8941 tmp_addflag=' $pic_flag -Mnomain' ;;
8942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8943 tmp_addflag=' -i_dynamic' ;;
8944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8945 tmp_addflag=' -i_dynamic -nofor_main' ;;
8946 ifc* | ifort*) # Intel Fortran compiler
8947 tmp_addflag=' -nofor_main' ;;
8948 lf95*) # Lahey Fortran 8.1
8949 whole_archive_flag_spec=
8950 tmp_sharedflag='--shared' ;;
8951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8952 tmp_sharedflag='-qmkshrobj'
8954 nvcc*) # Cuda Compiler Driver 2.2
8955 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'
8956 compiler_needs_object=yes
8959 case `$CC -V 2>&1 | sed 5q` in
8960 *Sun\ C*) # Sun C 5.9
8961 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'
8962 compiler_needs_object=yes
8963 tmp_sharedflag='-G' ;;
8964 *Sun\ F*) # Sun Fortran 8.3
8965 tmp_sharedflag='-G' ;;
8967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 if test "x$supports_anon_versioning" = xyes; then
8970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8972 echo "local: *; };" >> $output_objdir/$libname.ver~
8973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8976 case $cc_basename in
8977 xlf* | bgf* | bgxlf* | mpixlf*)
8978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8979 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8982 if test "x$supports_anon_versioning" = xyes; then
8983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985 echo "local: *; };" >> $output_objdir/$libname.ver~
8986 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8997 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9006 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9011 *** create shared libraries on Solaris systems. Therefore, libtool
9012 *** is disabling shared libraries support. We urge you to upgrade GNU
9013 *** binutils to release 2.9.1 or newer. Another option is to modify
9014 *** your PATH or compiler configuration so that the native linker is
9015 *** used, and then restart.
9018 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9027 case `$LD -v 2>&1` in
9028 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9033 *** reliably create shared libraries on SCO systems. Therefore, libtool
9034 *** is disabling shared libraries support. We urge you to upgrade GNU
9035 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9036 *** your PATH or compiler configuration so that the native linker is
9037 *** used, and then restart.
9042 # For security reasons, it is highly recommended that you always
9043 # use absolute paths for naming shared libraries, and exclude the
9044 # DT_RUNPATH tag from executables and libraries. But doing so
9045 # requires that you compile everything twice, which is a pain.
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_shlibpath_var=no
9065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074 if test "$ld_shlibs" = no; then
9076 hardcode_libdir_flag_spec=
9077 export_dynamic_flag_spec=
9078 whole_archive_flag_spec=
9081 # PORTME fill in a description of your system's linker (not GNU ld)
9084 allow_undefined_flag=unsupported
9085 always_export_symbols=yes
9086 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'
9087 # Note: this linker hardcodes the directories in LIBPATH if there
9088 # are no directories specified by -L.
9089 hardcode_minus_L=yes
9090 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9091 # Neither direct hardcoding nor static linking is supported with a
9093 hardcode_direct=unsupported
9098 if test "$host_cpu" = ia64; then
9099 # On IA64, the linker does run time linking by default, so we don't
9100 # have to do anything special.
9101 aix_use_runtimelinking=no
9102 exp_sym_flag='-Bexport'
9105 # If we're using GNU nm, then we don't want the "-C" option.
9106 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9107 # Also, AIX nm treats weak defined symbols like other global
9108 # defined symbols, whereas GNU nm marks them as "W".
9109 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9110 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9112 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9114 aix_use_runtimelinking=no
9116 # Test if we are trying to use run time linking or normal
9117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9118 # need to do runtime linking.
9119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9120 for ld_flag in $LDFLAGS; do
9121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9122 aix_use_runtimelinking=yes
9129 exp_sym_flag='-bexport'
9130 no_entry_flag='-bnoentry'
9133 # When large executables or shared objects are built, AIX ld can
9134 # have problems creating the table of contents. If linking a library
9135 # or program results in "error TOC overflow" add -mminimal-toc to
9136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9141 hardcode_direct_absolute=yes
9142 hardcode_libdir_separator=':'
9143 link_all_deplibs=yes
9144 file_list_spec='${wl}-f,'
9146 if test "$GCC" = yes; then
9147 case $host_os in aix4.[012]|aix4.[012].*)
9148 # We only want to do this on AIX 4.2 and lower, the check
9149 # below for broken collect2 doesn't work under 4.3+
9150 collect2name=`${CC} -print-prog-name=collect2`
9151 if test -f "$collect2name" &&
9152 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9154 # We have reworked collect2
9157 # We have old collect2
9158 hardcode_direct=unsupported
9159 # It fails to find uninstalled libraries when the uninstalled
9160 # path is not listed in the libpath. Setting hardcode_minus_L
9161 # to unsupported forces relinking
9162 hardcode_minus_L=yes
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_libdir_separator=
9168 shared_flag='-shared'
9169 if test "$aix_use_runtimelinking" = yes; then
9170 shared_flag="$shared_flag "'${wl}-G'
9174 if test "$host_cpu" = ia64; then
9175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9176 # chokes on -Wl,-G. The following line is correct:
9179 if test "$aix_use_runtimelinking" = yes; then
9180 shared_flag='${wl}-G'
9182 shared_flag='${wl}-bM:SRE'
9187 export_dynamic_flag_spec='${wl}-bexpall'
9188 # It seems that -bexpall does not export symbols beginning with
9189 # underscore (_), so it is better to generate a list of symbols to export.
9190 always_export_symbols=yes
9191 if test "$aix_use_runtimelinking" = yes; then
9192 # Warning - without using the other runtime loading flags (-brtl),
9193 # -berok will link without error, but may produce a broken library.
9194 allow_undefined_flag='-berok'
9195 # Determine the default libpath from the value encoded in an
9197 if test "${lt_cv_aix_libpath+set}" = set; then
9198 aix_libpath=$lt_cv_aix_libpath
9200 if ${lt_cv_aix_libpath_+:} false; then :
9201 $as_echo_n "(cached) " >&6
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9214 if ac_fn_c_try_link "$LINENO"; then :
9216 lt_aix_libpath_sed='
9217 /Import File Strings/,/^$/ {
9219 s/^0 *\([^ ]*\) *$/\1/
9223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 # Check for a 64-bit object if we didn't find anything.
9225 if test -z "$lt_cv_aix_libpath_"; then
9226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 if test -z "$lt_cv_aix_libpath_"; then
9232 lt_cv_aix_libpath_="/usr/lib:/lib"
9237 aix_libpath=$lt_cv_aix_libpath_
9240 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9241 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9243 if test "$host_cpu" = ia64; then
9244 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9245 allow_undefined_flag="-z nodefs"
9246 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"
9248 # Determine the default libpath from the value encoded in an
9250 if test "${lt_cv_aix_libpath+set}" = set; then
9251 aix_libpath=$lt_cv_aix_libpath
9253 if ${lt_cv_aix_libpath_+:} false; then :
9254 $as_echo_n "(cached) " >&6
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9267 if ac_fn_c_try_link "$LINENO"; then :
9269 lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9272 s/^0 *\([^ ]*\) *$/\1/
9276 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 # Check for a 64-bit object if we didn't find anything.
9278 if test -z "$lt_cv_aix_libpath_"; then
9279 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 if test -z "$lt_cv_aix_libpath_"; then
9285 lt_cv_aix_libpath_="/usr/lib:/lib"
9290 aix_libpath=$lt_cv_aix_libpath_
9293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9294 # Warning - without using the other run time loading flags,
9295 # -berok will link without error, but may produce a broken library.
9296 no_undefined_flag=' ${wl}-bernotok'
9297 allow_undefined_flag=' ${wl}-berok'
9298 if test "$with_gnu_ld" = yes; then
9299 # We only use this code for GNU lds that support --whole-archive.
9300 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9302 # Exported symbols can be pulled into shared objects from archives
9303 whole_archive_flag_spec='$convenience'
9305 archive_cmds_need_lc=yes
9306 # This is similar to how AIX traditionally builds its shared libraries.
9307 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9315 # see comment about AmigaOS4 .so support
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 archive_expsym_cmds=''
9320 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)'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_minus_L=yes
9328 export_dynamic_flag_spec=-rdynamic
9331 cygwin* | mingw* | pw32* | cegcc*)
9332 # When not using gcc, we currently assume that we are using
9333 # Microsoft Visual C++.
9334 # hardcode_libdir_flag_spec is actually meaningless, as there is
9335 # no search path for DLLs.
9336 case $cc_basename in
9339 hardcode_libdir_flag_spec=' '
9340 allow_undefined_flag=unsupported
9341 always_export_symbols=yes
9343 # Tell ltmain to make .lib files, not .a files.
9345 # Tell ltmain to make .dll files, not .so files.
9347 # FIXME: Setting linknames here is a bad hack.
9348 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9349 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9350 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9352 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9354 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9356 # The linker will not automatically build a static lib if we build a DLL.
9357 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9358 enable_shared_with_static_runtimes=yes
9359 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9362 old_postinstall_cmds='chmod 644 $oldlib'
9363 postlink_cmds='lt_outputfile="@OUTPUT@"~
9364 lt_tool_outputfile="@TOOL_OUTPUT@"~
9365 case $lt_outputfile in
9368 lt_outputfile="$lt_outputfile.exe"
9369 lt_tool_outputfile="$lt_tool_outputfile.exe"
9372 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9373 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9374 $RM "$lt_outputfile.manifest";
9378 # Assume MSVC wrapper
9379 hardcode_libdir_flag_spec=' '
9380 allow_undefined_flag=unsupported
9381 # Tell ltmain to make .lib files, not .a files.
9383 # Tell ltmain to make .dll files, not .so files.
9385 # FIXME: Setting linknames here is a bad hack.
9386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9387 # The linker will automatically build a .lib file if we build a DLL.
9388 old_archive_from_new_cmds='true'
9389 # FIXME: Should let the user specify the lib program.
9390 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9391 enable_shared_with_static_runtimes=yes
9396 darwin* | rhapsody*)
9399 archive_cmds_need_lc=no
9401 hardcode_automatic=yes
9402 hardcode_shlibpath_var=unsupported
9403 if test "$lt_cv_ld_force_load" = "yes"; then
9404 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\"`'
9407 whole_archive_flag_spec=''
9409 link_all_deplibs=yes
9410 allow_undefined_flag="$_lt_dar_allow_undefined"
9411 case $cc_basename in
9412 ifort*) _lt_dar_can_shared=yes ;;
9413 *) _lt_dar_can_shared=$GCC ;;
9415 if test "$_lt_dar_can_shared" = "yes"; then
9416 output_verbose_link_cmd=func_echo_all
9417 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9418 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9419 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}"
9420 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}"
9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_shlibpath_var=no
9434 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9435 # support. Future versions do this automatically, but an explicit c++rt0.o
9436 # does not break anything, and helps significantly (at the cost of a little
9439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9440 hardcode_libdir_flag_spec='-R$libdir'
9442 hardcode_shlibpath_var=no
9445 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_minus_L=yes
9450 hardcode_shlibpath_var=no
9453 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9454 freebsd* | dragonfly*)
9455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9456 hardcode_libdir_flag_spec='-R$libdir'
9458 hardcode_shlibpath_var=no
9462 if test "$GCC" = yes; then
9463 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9465 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468 hardcode_libdir_separator=:
9471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9474 export_dynamic_flag_spec='${wl}-E'
9478 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9479 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9483 if test "$with_gnu_ld" = no; then
9484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485 hardcode_libdir_separator=:
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489 # hardcode_minus_L: Not really in the search PATH,
9490 # but as the default location of the library.
9491 hardcode_minus_L=yes
9496 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9499 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9518 # Older versions of the 11.00 compiler do not understand -b yet
9519 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9521 $as_echo_n "checking if $CC understands -b... " >&6; }
9522 if ${lt_cv_prog_compiler__b+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 lt_cv_prog_compiler__b=no
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -b"
9528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9530 # The linker can only warn and ignore the option if not recognized
9531 # So say no if there are warnings
9532 if test -s conftest.err; then
9533 # Append any errors to the config.log.
9534 cat conftest.err 1>&5
9535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9537 if diff conftest.exp conftest.er2 >/dev/null; then
9538 lt_cv_prog_compiler__b=yes
9541 lt_cv_prog_compiler__b=yes
9545 LDFLAGS="$save_LDFLAGS"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9549 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9551 if test x"$lt_cv_prog_compiler__b" = xyes; then
9552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9560 if test "$with_gnu_ld" = no; then
9561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9562 hardcode_libdir_separator=:
9567 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 export_dynamic_flag_spec='${wl}-E'
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9582 irix5* | irix6* | nonstopux*)
9583 if test "$GCC" = yes; then
9584 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'
9585 # Try to use the -exported_symbol ld option, if it does not
9586 # work, assume that -exports_file does not work either and
9587 # implicitly export all symbols.
9588 # This should be the same for all languages, so no per-tag cache variable.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9590 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9591 if ${lt_cv_irix_exported_symbol+:} false; then :
9592 $as_echo_n "(cached) " >&6
9594 save_LDFLAGS="$LDFLAGS"
9595 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 int foo (void) { return 0; }
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 lt_cv_irix_exported_symbol=yes
9603 lt_cv_irix_exported_symbol=no
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LDFLAGS="$save_LDFLAGS"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9610 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9611 if test "$lt_cv_irix_exported_symbol" = yes; then
9612 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'
9615 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'
9616 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'
9618 archive_cmds_need_lc='no'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator=:
9622 link_all_deplibs=yes
9626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9629 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9631 hardcode_libdir_flag_spec='-R$libdir'
9633 hardcode_shlibpath_var=no
9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9640 hardcode_libdir_separator=:
9641 hardcode_shlibpath_var=no
9648 if test -f /usr/libexec/ld.so; then
9650 hardcode_shlibpath_var=no
9651 hardcode_direct_absolute=yes
9652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9654 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9655 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9656 export_dynamic_flag_spec='${wl}-E'
9659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_libdir_flag_spec='-R$libdir'
9664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_minus_L=yes
9677 allow_undefined_flag=unsupported
9678 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9679 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9683 if test "$GCC" = yes; then
9684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9685 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'
9687 allow_undefined_flag=' -expect_unresolved \*'
9688 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'
9690 archive_cmds_need_lc='no'
9691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9692 hardcode_libdir_separator=:
9695 osf4* | osf5*) # as osf3* with the addition of -msym flag
9696 if test "$GCC" = yes; then
9697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9698 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'
9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 allow_undefined_flag=' -expect_unresolved \*'
9702 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'
9703 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~
9704 $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'
9706 # Both c and cxx compiler support -rpath directly
9707 hardcode_libdir_flag_spec='-rpath $libdir'
9709 archive_cmds_need_lc='no'
9710 hardcode_libdir_separator=:
9714 no_undefined_flag=' -z defs'
9715 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9719 $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'
9721 case `$CC -V 2>&1` in
9724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9730 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9732 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9736 hardcode_libdir_flag_spec='-R$libdir'
9737 hardcode_shlibpath_var=no
9739 solaris2.[0-5] | solaris2.[0-5].*) ;;
9741 # The compiler driver will combine and reorder linker options,
9742 # but understands `-z linker_flag'. GCC discards it without `$wl',
9743 # but is careful enough not to reorder.
9744 # Supported since Solaris 2.6 (maybe 2.5.1?)
9745 if test "$GCC" = yes; then
9746 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9748 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9752 link_all_deplibs=yes
9756 if test "x$host_vendor" = xsequent; then
9757 # Use $CC to link under sequent, because it throws in some extra .o
9758 # files that make .init and .fini sections work.
9759 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_libdir_flag_spec='-L$libdir'
9765 hardcode_minus_L=yes
9766 hardcode_shlibpath_var=no
9770 case $host_vendor in
9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773 hardcode_direct=yes # is this really true???
9776 ## LD is ld it makes a PLAMLIB
9777 ## CC just makes a GrossModule.
9778 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9779 reload_cmds='$CC -r -o $output$reload_objs'
9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9787 runpath_var='LD_RUN_PATH'
9788 hardcode_shlibpath_var=no
9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_shlibpath_var=no
9794 export_dynamic_flag_spec='-Bexport'
9798 if test -d /usr/nec; then
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_shlibpath_var=no
9801 runpath_var=LD_RUN_PATH
9802 hardcode_runpath_var=yes
9807 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9808 no_undefined_flag='${wl}-z,text'
9809 archive_cmds_need_lc=no
9810 hardcode_shlibpath_var=no
9811 runpath_var='LD_RUN_PATH'
9813 if test "$GCC" = yes; then
9814 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 sysv5* | sco3.2v5* | sco5v6*)
9823 # Note: We can NOT use -z defs as we might desire, because we do not
9824 # link with -lc, and that would cause any symbols used from libc to
9825 # always be unresolved, which means just about no library would
9826 # ever link correctly. If we're not using GNU ld we use -z text
9827 # though, which does catch some bad symbols but isn't as heavy-handed
9829 no_undefined_flag='${wl}-z,text'
9830 allow_undefined_flag='${wl}-z,nodefs'
9831 archive_cmds_need_lc=no
9832 hardcode_shlibpath_var=no
9833 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9834 hardcode_libdir_separator=':'
9835 link_all_deplibs=yes
9836 export_dynamic_flag_spec='${wl}-Bexport'
9837 runpath_var='LD_RUN_PATH'
9839 if test "$GCC" = yes; then
9840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_shlibpath_var=no
9859 if test x$host_vendor = xsni; then
9861 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9862 export_dynamic_flag_spec='${wl}-Blargedynsym'
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9869 $as_echo "$ld_shlibs" >&6; }
9870 test "$ld_shlibs" = no && can_build_shared=no
9872 with_gnu_ld=$with_gnu_ld
9889 # Do we need to explicitly link libc?
9891 case "x$archive_cmds_need_lc" in
9893 # Assume -lc should be added
9894 archive_cmds_need_lc=yes
9896 if test "$enable_shared" = yes && test "$GCC" = yes; then
9897 case $archive_cmds in
9899 # FIXME: we may have to deal with multi-command sequences.
9902 # Test whether the compiler implicitly links with -lc since on some
9903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9904 # to ld, don't add -lc before -lgcc.
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9906 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9907 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9908 $as_echo_n "(cached) " >&6
9911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9914 (eval $ac_compile) 2>&5
9916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917 test $ac_status = 0; } 2>conftest.err; then
9920 libobjs=conftest.$ac_objext
9922 wl=$lt_prog_compiler_wl
9923 pic_flag=$lt_prog_compiler_pic
9929 lt_save_allow_undefined_flag=$allow_undefined_flag
9930 allow_undefined_flag=
9931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9932 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9935 test $ac_status = 0; }
9937 lt_cv_archive_cmds_need_lc=no
9939 lt_cv_archive_cmds_need_lc=yes
9941 allow_undefined_flag=$lt_save_allow_undefined_flag
9943 cat conftest.err 1>&5
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9949 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9950 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10109 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10111 if test "$GCC" = yes; then
10113 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10114 *) lt_awk_arg="/^libraries:/" ;;
10117 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10118 *) lt_sed_strip_eq="s,=/,/,g" ;;
10120 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10121 case $lt_search_path_spec in
10123 # if the path contains ";" then we assume it to be the separator
10124 # otherwise default to the standard path separator (i.e. ":") - it is
10125 # assumed that no part of a normal pathname contains ";" but that should
10126 # okay in the real world where ";" in dirpaths is itself problematic.
10127 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10133 # Ok, now we have the path, separated by spaces, we can step through it
10134 # and add multilib dir if necessary.
10135 lt_tmp_lt_search_path_spec=
10136 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10137 for lt_sys_path in $lt_search_path_spec; do
10138 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10141 test -d "$lt_sys_path" && \
10142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10145 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10146 BEGIN {RS=" "; FS="/|\n";} {
10149 for (lt_i = NF; lt_i > 0; lt_i--) {
10150 if ($lt_i != "" && $lt_i != ".") {
10151 if ($lt_i == "..") {
10154 if (lt_count == 0) {
10155 lt_foo="/" $lt_i lt_foo;
10162 if (lt_foo != "") { lt_freq[lt_foo]++; }
10163 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10165 # AWK program above erroneously prepends '/' to C:/dos/paths
10168 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10169 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10171 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10175 library_names_spec=
10176 libname_spec='lib$name'
10180 postuninstall_cmds=
10184 shlibpath_overrides_runpath=unknown
10186 dynamic_linker="$host_os ld.so"
10187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10188 need_lib_prefix=unknown
10189 hardcode_into_libs=no
10191 # when you set need_version to no, make sure it does not cause -set_version
10192 # flags to be left without arguments
10193 need_version=unknown
10197 version_type=linux # correct to gnu/linux during the next big refactor
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10199 shlibpath_var=LIBPATH
10201 # AIX 3 has no versioning support, so we append a major version to the name.
10202 soname_spec='${libname}${release}${shared_ext}$major'
10206 version_type=linux # correct to gnu/linux during the next big refactor
10209 hardcode_into_libs=yes
10210 if test "$host_cpu" = ia64; then
10211 # AIX 5 supports IA64
10212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10213 shlibpath_var=LD_LIBRARY_PATH
10215 # With GCC up to 2.95.x, collect2 would create an import file
10216 # for dependence libraries. The import file would start with
10217 # the line `#! .'. This would cause the generated library to
10218 # depend on `.', always an invalid library. This was fixed in
10219 # development snapshots of GCC prior to 3.0.
10221 aix4 | aix4.[01] | aix4.[01].*)
10222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10224 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10227 can_build_shared=no
10231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10232 # soname into executable. Probably we can add versioning support to
10233 # collect2, so additional links can be useful in future.
10234 if test "$aix_use_runtimelinking" = yes; then
10235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10236 # instead of lib<name>.a to let people know that these are not
10237 # typical AIX shared libraries.
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 # We preserve .a as extension for shared libraries through AIX4.2
10241 # and later when we are not doing run time linking.
10242 library_names_spec='${libname}${release}.a $libname.a'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LIBPATH
10252 # Since July 2007 AmigaOS4 officially supports .so libraries.
10253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 library_names_spec='$libname.ixlibrary $libname.a'
10258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10259 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10265 library_names_spec='${libname}${shared_ext}'
10266 dynamic_linker="$host_os ld.so"
10267 shlibpath_var=LIBRARY_PATH
10271 version_type=linux # correct to gnu/linux during the next big refactor
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279 # the default ld.so.conf also contains /usr/contrib/lib and
10280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281 # libtool to hard-code these into programs
10284 cygwin* | mingw* | pw32* | cegcc*)
10285 version_type=windows
10290 case $GCC,$cc_basename in
10293 library_names_spec='$libname.dll.a'
10294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10295 postinstall_cmds='base_file=`basename \${file}`~
10296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10297 dldir=$destdir/`dirname \$dlpath`~
10298 test -d \$dldir || mkdir -p \$dldir~
10299 $install_prog $dir/$dlname \$dldir/$dlname~
10300 chmod a+x \$dldir/$dlname~
10301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10305 dlpath=$dir/\$dldll~
10307 shlibpath_overrides_runpath=yes
10311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10317 # MinGW DLLs use traditional 'lib' prefix
10318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10321 # pw32 DLLs use 'pw' prefix rather than 'lib'
10322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10325 dynamic_linker='Win32 ld.exe'
10330 libname_spec='$name'
10331 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332 library_names_spec='${libname}.dll.lib'
10336 sys_lib_search_path_spec=
10339 for lt_path in $LIB
10342 # Let DOS variable expansion print the short 8.3 style file name.
10343 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10347 # Convert to MSYS style.
10348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10351 # Convert to unix form, then to dos form, then back to unix form
10352 # but this time dos style (no spaces!) so that the unix form looks
10353 # like /cygdrive/c/PROGRA~1:/cygdr...
10354 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10355 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10356 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10359 sys_lib_search_path_spec="$LIB"
10360 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10361 # It is most probably a Windows format PATH.
10362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10366 # FIXME: find the short name or the path components, as spaces are
10367 # common. (e.g. "Program Files" -> "PROGRA~1")
10371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10372 postinstall_cmds='base_file=`basename \${file}`~
10373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10374 dldir=$destdir/`dirname \$dlpath`~
10375 test -d \$dldir || mkdir -p \$dldir~
10376 $install_prog $dir/$dlname \$dldir/$dlname'
10377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10378 dlpath=$dir/\$dldll~
10380 shlibpath_overrides_runpath=yes
10381 dynamic_linker='Win32 link.exe'
10385 # Assume MSVC wrapper
10386 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10387 dynamic_linker='Win32 ld.exe'
10390 # FIXME: first we should search . and the directory the executable is in
10394 darwin* | rhapsody*)
10395 dynamic_linker="$host_os dyld"
10396 version_type=darwin
10399 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10400 soname_spec='${libname}${release}${major}$shared_ext'
10401 shlibpath_overrides_runpath=yes
10402 shlibpath_var=DYLD_LIBRARY_PATH
10403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10405 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10410 version_type=linux # correct to gnu/linux during the next big refactor
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 shlibpath_var=LD_LIBRARY_PATH
10418 freebsd* | dragonfly*)
10419 # DragonFly does not have aout. When/if they implement a new
10420 # versioning mechanism, adjust this.
10421 if test -x /usr/bin/objformat; then
10422 objformat=`/usr/bin/objformat`
10425 freebsd[23].*) objformat=aout ;;
10426 *) objformat=elf ;;
10429 version_type=freebsd-$objformat
10430 case $version_type in
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10441 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=yes
10446 freebsd3.[01]* | freebsdelf3.[01]*)
10447 shlibpath_overrides_runpath=yes
10448 hardcode_into_libs=yes
10450 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10451 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10452 shlibpath_overrides_runpath=no
10453 hardcode_into_libs=yes
10455 *) # from 4.6 on, and DragonFly
10456 shlibpath_overrides_runpath=yes
10457 hardcode_into_libs=yes
10463 version_type=linux # correct to gnu/linux during the next big refactor
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=no
10470 hardcode_into_libs=yes
10474 version_type=linux # correct to gnu/linux during the next big refactor
10477 dynamic_linker="$host_os runtime_loader"
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 shlibpath_var=LIBRARY_PATH
10481 shlibpath_overrides_runpath=yes
10482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10483 hardcode_into_libs=yes
10486 hpux9* | hpux10* | hpux11*)
10487 # Give a soname corresponding to the major version so that dld.sl refuses to
10488 # link against other versions.
10495 hardcode_into_libs=yes
10496 dynamic_linker="$host_os dld.so"
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 if test "X$HPUX_IA64_MODE" = X32; then
10502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10510 hardcode_into_libs=yes
10511 dynamic_linker="$host_os dld.sl"
10512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521 dynamic_linker="$host_os dld.sl"
10522 shlibpath_var=SHLIB_PATH
10523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10529 postinstall_cmds='chmod 555 $lib'
10530 # or fails outright, so override atomically:
10531 install_override_mode=555
10535 version_type=linux # correct to gnu/linux during the next big refactor
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=no
10543 hardcode_into_libs=yes
10546 irix5* | irix6* | nonstopux*)
10548 nonstopux*) version_type=nonstopux ;;
10550 if test "$lt_cv_prog_gnu_ld" = yes; then
10551 version_type=linux # correct to gnu/linux during the next big refactor
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10561 irix5* | nonstopux*)
10562 libsuff= shlibsuff=
10565 case $LD in # libtool.m4 will add one of these switches to LD
10566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10567 libsuff= shlibsuff= libmagic=32-bit;;
10568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10569 libsuff=32 shlibsuff=N32 libmagic=N32;;
10570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10572 *) libsuff= shlibsuff= libmagic=never-match;;
10576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10577 shlibpath_overrides_runpath=no
10578 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10579 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10580 hardcode_into_libs=yes
10583 # No shared lib support for Linux oldld, aout, or coff.
10584 linux*oldld* | linux*aout* | linux*coff*)
10588 # This must be glibc/ELF.
10589 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10590 version_type=linux # correct to gnu/linux during the next big refactor
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=no
10599 # Some binutils ld are patched to set DT_RUNPATH
10600 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10601 $as_echo_n "(cached) " >&6
10603 lt_cv_shlibpath_overrides_runpath=no
10604 save_LDFLAGS=$LDFLAGS
10605 save_libdir=$libdir
10606 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10607 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10621 lt_cv_shlibpath_overrides_runpath=yes
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LDFLAGS=$save_LDFLAGS
10627 libdir=$save_libdir
10631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10633 # This implies no fast_install, which is unacceptable.
10634 # Some rework will be needed to allow for fast_install
10635 # before this can be enabled.
10636 hardcode_into_libs=yes
10638 # Append ld.so.conf contents to the search path
10639 if test -f /etc/ld.so.conf; then
10640 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' ' '`
10641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10644 # We used to test for /lib/ld.so.1 and disable shared libraries on
10645 # powerpc, because MkLinux only supported shared libraries with the
10646 # GNU dynamic linker. Since this was broken with cross compilers,
10647 # most powerpc-linux boxes support dynamic linking these days and
10648 # people can always --disable-shared, the test was removed, and we
10649 # assume the GNU/Linux dynamic linker is in use.
10650 dynamic_linker='GNU/Linux ld.so'
10657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10660 dynamic_linker='NetBSD (a.out) ld.so'
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 dynamic_linker='NetBSD ld.elf_so'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath=yes
10668 hardcode_into_libs=yes
10672 version_type=linux # correct to gnu/linux during the next big refactor
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 shlibpath_var=LD_LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=no
10686 hardcode_into_libs=yes
10687 dynamic_linker='ldqnx.so'
10692 sys_lib_dlsearch_path_spec="/usr/lib"
10694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10697 *) need_version=no ;;
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10704 openbsd2.[89] | openbsd2.[89].*)
10705 shlibpath_overrides_runpath=no
10708 shlibpath_overrides_runpath=yes
10712 shlibpath_overrides_runpath=yes
10717 libname_spec='$name'
10720 library_names_spec='$libname${shared_ext} $libname.a'
10721 dynamic_linker='OS/2 ld.exe'
10722 shlibpath_var=LIBPATH
10725 osf3* | osf4* | osf5*)
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 shlibpath_var=LD_LIBRARY_PATH
10732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10741 version_type=linux # correct to gnu/linux during the next big refactor
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes
10748 hardcode_into_libs=yes
10749 # ldd complains unless libraries are executable
10750 postinstall_cmds='chmod +x $lib'
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes
10759 if test "$with_gnu_ld" = yes; then
10766 version_type=linux # correct to gnu/linux during the next big refactor
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 case $host_vendor in
10772 shlibpath_overrides_runpath=no
10774 runpath_var=LD_RUN_PATH
10782 shlibpath_overrides_runpath=no
10783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10789 if test -d /usr/nec ;then
10790 version_type=linux # correct to gnu/linux during the next big refactor
10791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10792 soname_spec='$libname${shared_ext}.$major'
10793 shlibpath_var=LD_LIBRARY_PATH
10797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10798 version_type=freebsd-elf
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=yes
10805 hardcode_into_libs=yes
10806 if test "$with_gnu_ld" = yes; then
10807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10816 sys_lib_dlsearch_path_spec='/usr/lib'
10820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10821 version_type=linux # correct to gnu/linux during the next big refactor
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10831 version_type=linux # correct to gnu/linux during the next big refactor
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10842 $as_echo "$dynamic_linker" >&6; }
10843 test "$dynamic_linker" = no && can_build_shared=no
10845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10846 if test "$GCC" = yes; then
10847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10949 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10951 if test -n "$hardcode_libdir_flag_spec" ||
10952 test -n "$runpath_var" ||
10953 test "X$hardcode_automatic" = "Xyes" ; then
10955 # We can hardcode non-existent directories.
10956 if test "$hardcode_direct" != no &&
10957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10958 # have to relink, otherwise we might link with an installed library
10959 # when we should be linking with a yet-to-be-installed one
10960 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10961 test "$hardcode_minus_L" != no; then
10962 # Linking always hardcodes the temporary library directory.
10963 hardcode_action=relink
10965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10966 hardcode_action=immediate
10969 # We cannot hardcode anything, or else we can only hardcode existing
10971 hardcode_action=unsupported
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10974 $as_echo "$hardcode_action" >&6; }
10976 if test "$hardcode_action" = relink ||
10977 test "$inherit_rpath" = yes; then
10978 # Fast installation is not supported
10979 enable_fast_install=no
10980 elif test "$shlibpath_overrides_runpath" = yes ||
10981 test "$enable_shared" = no; then
10982 # Fast installation is not necessary
10983 enable_fast_install=needless
10991 if test "x$enable_dlopen" != xyes; then
10992 enable_dlopen=unknown
10993 enable_dlopen_self=unknown
10994 enable_dlopen_self_static=unknown
11001 lt_cv_dlopen="load_add_on"
11003 lt_cv_dlopen_self=yes
11006 mingw* | pw32* | cegcc*)
11007 lt_cv_dlopen="LoadLibrary"
11012 lt_cv_dlopen="dlopen"
11017 # if libdl is installed we need to link against it
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11019 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11020 if ${ac_cv_lib_dl_dlopen+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 ac_check_lib_save_LIBS=$LIBS
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dl_dlopen=yes
11046 ac_cv_lib_dl_dlopen=no
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11053 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11054 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11058 lt_cv_dlopen="dyld"
11060 lt_cv_dlopen_self=yes
11067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11068 if test "x$ac_cv_func_shl_load" = xyes; then :
11069 lt_cv_dlopen="shl_load"
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11072 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11073 if ${ac_cv_lib_dld_shl_load+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 ac_check_lib_save_LIBS=$LIBS
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 /* Override any GCC internal prototype to avoid an error.
11082 Use char because int might match the return type of a GCC
11083 builtin and then its argument prototype would still apply. */
11091 return shl_load ();
11096 if ac_fn_c_try_link "$LINENO"; then :
11097 ac_cv_lib_dld_shl_load=yes
11099 ac_cv_lib_dld_shl_load=no
11101 rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11106 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11107 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11108 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11110 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11111 if test "x$ac_cv_func_dlopen" = xyes; then :
11112 lt_cv_dlopen="dlopen"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11115 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11116 if ${ac_cv_lib_dl_dlopen+:} false; then :
11117 $as_echo_n "(cached) " >&6
11119 ac_check_lib_save_LIBS=$LIBS
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_dl_dlopen=yes
11142 ac_cv_lib_dl_dlopen=no
11144 rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11149 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11150 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11154 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11155 if ${ac_cv_lib_svld_dlopen+:} false; then :
11156 $as_echo_n "(cached) " >&6
11158 ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-lsvld $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11178 if ac_fn_c_try_link "$LINENO"; then :
11179 ac_cv_lib_svld_dlopen=yes
11181 ac_cv_lib_svld_dlopen=no
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11188 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11189 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11193 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11194 if ${ac_cv_lib_dld_dld_link+:} false; then :
11195 $as_echo_n "(cached) " >&6
11197 ac_check_lib_save_LIBS=$LIBS
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11212 return dld_link ();
11217 if ac_fn_c_try_link "$LINENO"; then :
11218 ac_cv_lib_dld_dld_link=yes
11220 ac_cv_lib_dld_dld_link=no
11222 rm -f core conftest.err conftest.$ac_objext \
11223 conftest$ac_exeext conftest.$ac_ext
11224 LIBS=$ac_check_lib_save_LIBS
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11227 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11228 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11229 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11250 if test "x$lt_cv_dlopen" != xno; then
11256 case $lt_cv_dlopen in
11258 save_CPPFLAGS="$CPPFLAGS"
11259 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11261 save_LDFLAGS="$LDFLAGS"
11262 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11265 LIBS="$lt_cv_dlopen_libs $LIBS"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11268 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11269 if ${lt_cv_dlopen_self+:} false; then :
11270 $as_echo_n "(cached) " >&6
11272 if test "$cross_compiling" = yes; then :
11273 lt_cv_dlopen_self=cross
11275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11276 lt_status=$lt_dlunknown
11277 cat > conftest.$ac_ext <<_LT_EOF
11278 #line $LINENO "configure"
11279 #include "confdefs.h"
11288 # define LT_DLGLOBAL RTLD_GLOBAL
11291 # define LT_DLGLOBAL DL_GLOBAL
11293 # define LT_DLGLOBAL 0
11297 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11298 find out it does not work in some platform. */
11299 #ifndef LT_DLLAZY_OR_NOW
11301 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11304 # define LT_DLLAZY_OR_NOW DL_LAZY
11307 # define LT_DLLAZY_OR_NOW RTLD_NOW
11310 # define LT_DLLAZY_OR_NOW DL_NOW
11312 # define LT_DLLAZY_OR_NOW 0
11319 /* When -fvisbility=hidden is used, assume the code has been annotated
11320 correspondingly for the symbols needed. */
11321 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11322 int fnord () __attribute__((visibility("default")));
11325 int fnord () { return 42; }
11328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11329 int status = $lt_dlunknown;
11333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11336 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337 else puts (dlerror ());
11339 /* dlclose (self); */
11347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11348 (eval $ac_link) 2>&5
11350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11352 (./conftest; exit; ) >&5 2>/dev/null
11354 case x$lt_status in
11355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11357 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11360 # compilation failed
11361 lt_cv_dlopen_self=no
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11369 $as_echo "$lt_cv_dlopen_self" >&6; }
11371 if test "x$lt_cv_dlopen_self" = xyes; then
11372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11374 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11375 if ${lt_cv_dlopen_self_static+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 if test "$cross_compiling" = yes; then :
11379 lt_cv_dlopen_self_static=cross
11381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382 lt_status=$lt_dlunknown
11383 cat > conftest.$ac_ext <<_LT_EOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11394 # define LT_DLGLOBAL RTLD_GLOBAL
11397 # define LT_DLGLOBAL DL_GLOBAL
11399 # define LT_DLGLOBAL 0
11403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404 find out it does not work in some platform. */
11405 #ifndef LT_DLLAZY_OR_NOW
11407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11410 # define LT_DLLAZY_OR_NOW DL_LAZY
11413 # define LT_DLLAZY_OR_NOW RTLD_NOW
11416 # define LT_DLLAZY_OR_NOW DL_NOW
11418 # define LT_DLLAZY_OR_NOW 0
11425 /* When -fvisbility=hidden is used, assume the code has been annotated
11426 correspondingly for the symbols needed. */
11427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428 int fnord () __attribute__((visibility("default")));
11431 int fnord () { return 42; }
11434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435 int status = $lt_dlunknown;
11439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11443 else puts (dlerror ());
11445 /* dlclose (self); */
11453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11454 (eval $ac_link) 2>&5
11456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11458 (./conftest; exit; ) >&5 2>/dev/null
11460 case x$lt_status in
11461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11463 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11466 # compilation failed
11467 lt_cv_dlopen_self_static=no
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11475 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11478 CPPFLAGS="$save_CPPFLAGS"
11479 LDFLAGS="$save_LDFLAGS"
11484 case $lt_cv_dlopen_self in
11485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11486 *) enable_dlopen_self=unknown ;;
11489 case $lt_cv_dlopen_self_static in
11490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11491 *) enable_dlopen_self_static=unknown ;;
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11514 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11515 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 $as_echo "yes" >&6; }
11521 # FIXME - insert some real tests, host_os isn't really good enough
11524 if test -n "$STRIP" ; then
11525 striplib="$STRIP -x"
11526 old_striplib="$STRIP -S"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11552 # Report which library types will actually be built
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11554 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11556 $as_echo "$can_build_shared" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11559 $as_echo_n "checking whether to build shared libraries... " >&6; }
11560 test "$can_build_shared" = "no" && enable_shared=no
11562 # On AIX, shared libraries and static libraries use the same namespace, and
11563 # are all built from PIC.
11566 test "$enable_shared" = yes && enable_static=no
11567 if test -n "$RANLIB"; then
11568 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11569 postinstall_cmds='$RANLIB $lib'
11574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11575 test "$enable_shared" = yes && enable_static=no
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11580 $as_echo "$enable_shared" >&6; }
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11583 $as_echo_n "checking whether to build static libraries... " >&6; }
11584 # Make sure either enable_shared or enable_static is yes.
11585 test "$enable_shared" = yes || enable_static=yes
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11587 $as_echo "$enable_static" >&6; }
11594 ac_cpp='$CPP $CPPFLAGS'
11595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615 ac_config_commands="$ac_config_commands libtool"
11620 # Only expand once:
11623 ac_config_headers="$ac_config_headers config.h"
11625 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile"
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 if test -n "$ac_tool_prefix"; then
11633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11636 $as_echo_n "checking for $ac_word... " >&6; }
11637 if ${ac_cv_prog_CC+:} false; then :
11638 $as_echo_n "(cached) " >&6
11640 if test -n "$CC"; then
11641 ac_cv_prog_CC="$CC" # Let the user override the test.
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 if test -n "$CC"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11663 $as_echo "$CC" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11671 if test -z "$ac_cv_prog_CC"; then
11673 # Extract the first word of "gcc", so it can be a program name with args.
11674 set dummy gcc; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11678 $as_echo_n "(cached) " >&6
11680 if test -n "$ac_ct_CC"; then
11681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 ac_cv_prog_ac_ct_CC="gcc"
11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11701 if test -n "$ac_ct_CC"; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11703 $as_echo "$ac_ct_CC" >&6; }
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11709 if test "x$ac_ct_CC" = x; then
11712 case $cross_compiling:$ac_tool_warned in
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11716 ac_tool_warned=yes ;;
11721 CC="$ac_cv_prog_CC"
11724 if test -z "$CC"; then
11725 if test -n "$ac_tool_prefix"; then
11726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11727 set dummy ${ac_tool_prefix}cc; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_prog_CC+:} false; then :
11731 $as_echo_n "(cached) " >&6
11733 if test -n "$CC"; then
11734 ac_cv_prog_CC="$CC" # Let the user override the test.
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11743 ac_cv_prog_CC="${ac_tool_prefix}cc"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754 if test -n "$CC"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11756 $as_echo "$CC" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11765 if test -z "$CC"; then
11766 # Extract the first word of "cc", so it can be a program name with args.
11767 set dummy cc; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_prog_CC+:} false; then :
11771 $as_echo_n "(cached) " >&6
11773 if test -n "$CC"; then
11774 ac_cv_prog_CC="$CC" # Let the user override the test.
11776 ac_prog_rejected=no
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11785 ac_prog_rejected=yes
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 if test $ac_prog_rejected = yes; then
11797 # We found a bogon in the path, so make sure we never use it.
11798 set dummy $ac_cv_prog_CC
11800 if test $# != 0; then
11801 # We chose a different compiler from the bogus one.
11802 # However, it has the same basename, so the bogon will be chosen
11803 # first if we set CC to just the basename; use the full file name.
11805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11811 if test -n "$CC"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11813 $as_echo "$CC" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11821 if test -z "$CC"; then
11822 if test -n "$ac_tool_prefix"; then
11823 for ac_prog in cl.exe
11825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_prog_CC+:} false; then :
11830 $as_echo_n "(cached) " >&6
11832 if test -n "$CC"; then
11833 ac_cv_prog_CC="$CC" # Let the user override the test.
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 if test -n "$CC"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11855 $as_echo "$CC" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11862 test -n "$CC" && break
11865 if test -z "$CC"; then
11867 for ac_prog in cl.exe
11869 # Extract the first word of "$ac_prog", so it can be a program name with args.
11870 set dummy $ac_prog; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11874 $as_echo_n "(cached) " >&6
11876 if test -n "$ac_ct_CC"; then
11877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_ac_ct_CC="$ac_prog"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11897 if test -n "$ac_ct_CC"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11899 $as_echo "$ac_ct_CC" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11906 test -n "$ac_ct_CC" && break
11909 if test "x$ac_ct_CC" = x; then
11912 case $cross_compiling:$ac_tool_warned in
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11916 ac_tool_warned=yes ;;
11925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11927 as_fn_error $? "no acceptable C compiler found in \$PATH
11928 See \`config.log' for more details" "$LINENO" 5; }
11930 # Provide some information about the compiler.
11931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11934 for ac_option in --version -v -V -qversion; do
11935 { { ac_try="$ac_compiler $ac_option >&5"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11941 $as_echo "$ac_try_echo"; } >&5
11942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11944 if test -s conftest.err; then
11946 ... rest of stderr output deleted ...
11947 10q' conftest.err >conftest.er1
11948 cat conftest.er1 >&5
11950 rm -f conftest.er1 conftest.err
11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11952 test $ac_status = 0; }
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11956 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11957 if ${ac_cv_c_compiler_gnu+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11974 if ac_fn_c_try_compile "$LINENO"; then :
11975 ac_compiler_gnu=yes
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11984 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11985 if test $ac_compiler_gnu = yes; then
11990 ac_test_CFLAGS=${CFLAGS+set}
11991 ac_save_CFLAGS=$CFLAGS
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11993 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11994 if ${ac_cv_prog_cc_g+:} false; then :
11995 $as_echo_n "(cached) " >&6
11997 ac_save_c_werror_flag=$ac_c_werror_flag
11998 ac_c_werror_flag=yes
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 ac_cv_prog_cc_g=yes
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12027 if ac_fn_c_try_compile "$LINENO"; then :
12030 ac_c_werror_flag=$ac_save_c_werror_flag
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12043 if ac_fn_c_try_compile "$LINENO"; then :
12044 ac_cv_prog_cc_g=yes
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 ac_c_werror_flag=$ac_save_c_werror_flag
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12054 $as_echo "$ac_cv_prog_cc_g" >&6; }
12055 if test "$ac_test_CFLAGS" = set; then
12056 CFLAGS=$ac_save_CFLAGS
12057 elif test $ac_cv_prog_cc_g = yes; then
12058 if test "$GCC" = yes; then
12064 if test "$GCC" = yes; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12071 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12072 if ${ac_cv_prog_cc_c89+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 ac_cv_prog_cc_c89=no
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #include <stdarg.h>
12082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12083 struct buf { int x; };
12084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12085 static char *e (p, i)
12091 static char *f (char * (*g) (char **, int), char **p, ...)
12096 s = g (p, va_arg (v,int));
12101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12102 function prototypes and stuff, but not '\xHH' hex character constants.
12103 These don't provoke an error unfortunately, instead are silently treated
12104 as 'x'. The following induces an error, until -std is added to get
12105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12106 array size at least. It's necessary to write '\x00'==0 to get something
12107 that's true only with -std. */
12108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12111 inside strings and character constants. */
12113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12115 int test (int i, double x);
12116 struct s1 {int (*f) (int a);};
12117 struct s2 {int (*f) (double a);};
12118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12132 CC="$ac_save_CC $ac_arg"
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134 ac_cv_prog_cc_c89=$ac_arg
12136 rm -f core conftest.err conftest.$ac_objext
12137 test "x$ac_cv_prog_cc_c89" != "xno" && break
12139 rm -f conftest.$ac_ext
12144 case "x$ac_cv_prog_cc_c89" in
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12147 $as_echo "none needed" >&6; } ;;
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12150 $as_echo "unsupported" >&6; } ;;
12152 CC="$CC $ac_cv_prog_cc_c89"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12156 if test "x$ac_cv_prog_cc_c89" != xno; then :
12161 ac_cpp='$CPP $CPPFLAGS'
12162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166 depcc="$CC" am_compiler_list=
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12169 $as_echo_n "checking dependency style of $depcc... " >&6; }
12170 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12171 $as_echo_n "(cached) " >&6
12173 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12174 # We make a subdir and do the tests there. Otherwise we can end up
12175 # making bogus files that we don't know about and never remove. For
12176 # instance it was reported that on HP-UX the gcc test will end up
12177 # making a dummy file named 'D' -- because '-MD' means "put the output
12179 rm -rf conftest.dir
12181 # Copy depcomp to subdir because otherwise we won't find it if we're
12182 # using a relative directory.
12183 cp "$am_depcomp" conftest.dir
12185 # We will build objects and dependencies in a subdirectory because
12186 # it helps to detect inapplicable dependency modes. For instance
12187 # both Tru64's cc and ICC support -MD to output dependencies as a
12188 # side effect of compilation, but ICC will put the dependencies in
12189 # the current directory while Tru64 will put them in the object
12193 am_cv_CC_dependencies_compiler_type=none
12194 if test "$am_compiler_list" = ""; then
12195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12197 am__universal=false
12198 case " $depcc " in #(
12199 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12202 for depmode in $am_compiler_list; do
12203 # Setup a source with many dependencies, because some compilers
12204 # like to wrap large dependency lists on column 80 (with \), and
12205 # we should not choose a depcomp mode which is confused by this.
12207 # We need to recreate these files for each test, as the compiler may
12208 # overwrite some of them when testing with obscure command lines.
12209 # This happens at least with the AIX C compiler.
12211 for i in 1 2 3 4 5 6; do
12212 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12213 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12214 # Solaris 10 /bin/sh.
12215 echo '/* dummy */' > sub/conftst$i.h
12217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12219 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12220 # mode. It turns out that the SunPro C++ compiler does not properly
12221 # handle '-M -o', and we need to detect this. Also, some Intel
12222 # versions had trouble with output in subdirs.
12223 am__obj=sub/conftest.${OBJEXT-o}
12224 am__minus_obj="-o $am__obj"
12227 # This depmode causes a compiler race in universal mode.
12228 test "$am__universal" = false || continue
12231 # After this tag, mechanisms are not by side-effect, so they'll
12232 # only be used when explicitly requested.
12233 if test "x$enable_dependency_tracking" = xyes; then
12239 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12240 # This compiler won't grok '-c -o', but also, the minuso test has
12241 # not run yet. These depmodes are late enough in the game, and
12242 # so weak that their functioning should not be impacted.
12243 am__obj=conftest.${OBJEXT-o}
12248 if depmode=$depmode \
12249 source=sub/conftest.c object=$am__obj \
12250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12252 >/dev/null 2>conftest.err &&
12253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12257 # icc doesn't choke on unknown options, it will just issue warnings
12258 # or remarks (even with -Werror). So we grep stderr for any message
12259 # that says an option was ignored or not supported.
12260 # When given -MP, icc 7.0 and 7.1 complain thusly:
12261 # icc: Command line warning: ignoring option '-M'; no argument required
12262 # The diagnosis changed in icc 8.0:
12263 # icc: Command line remark: option '-MP' not supported
12264 if (grep 'ignoring option' conftest.err ||
12265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12266 am_cv_CC_dependencies_compiler_type=$depmode
12273 rm -rf conftest.dir
12275 am_cv_CC_dependencies_compiler_type=none
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12280 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12281 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12284 test "x$enable_dependency_tracking" != xno \
12285 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12286 am__fastdepCC_TRUE=
12287 am__fastdepCC_FALSE='#'
12289 am__fastdepCC_TRUE='#'
12290 am__fastdepCC_FALSE=
12296 if test "X$prefix" = "XNONE"; then
12297 acl_final_prefix="$ac_default_prefix"
12299 acl_final_prefix="$prefix"
12301 if test "X$exec_prefix" = "XNONE"; then
12302 acl_final_exec_prefix='${prefix}'
12304 acl_final_exec_prefix="$exec_prefix"
12306 acl_save_prefix="$prefix"
12307 prefix="$acl_final_prefix"
12308 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12309 prefix="$acl_save_prefix"
12312 # Check whether --with-gnu-ld was given.
12313 if test "${with_gnu_ld+set}" = set; then :
12314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12319 # Prepare PATH_SEPARATOR.
12320 # The user is always right.
12321 if test "${PATH_SEPARATOR+set}" != set; then
12322 echo "#! /bin/sh" >conf$$.sh
12323 echo "exit 0" >>conf$$.sh
12325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12333 if test "$GCC" = yes; then
12334 # Check if gcc -print-prog-name=ld gives a path.
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12336 $as_echo_n "checking for ld used by GCC... " >&6; }
12339 # gcc leaves a trailing carriage return which upsets mingw
12340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12345 # Accept absolute paths.
12346 [\\/]* | [A-Za-z]:[\\/]*)
12347 re_direlt='/[^/][^/]*/\.\./'
12348 # Canonicalize the path of ld
12349 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12351 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12353 test -z "$LD" && LD="$ac_prog"
12356 # If it fails, then pretend we aren't using GCC.
12360 # If it is relative, then search for the first ld in PATH.
12361 with_gnu_ld=unknown
12364 elif test "$with_gnu_ld" = yes; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12366 $as_echo_n "checking for GNU ld... " >&6; }
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12369 $as_echo_n "checking for non-GNU ld... " >&6; }
12371 if ${acl_cv_path_LD+:} false; then :
12372 $as_echo_n "(cached) " >&6
12374 if test -z "$LD"; then
12375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12376 for ac_dir in $PATH; do
12377 test -z "$ac_dir" && ac_dir=.
12378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12379 acl_cv_path_LD="$ac_dir/$ac_prog"
12380 # Check to see if the program is GNU ld. I'd rather use --version,
12381 # but apparently some GNU ld's only accept -v.
12382 # Break only if it was the GNU/non-GNU ld that we prefer.
12383 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12384 *GNU* | *'with BFD'*)
12385 test "$with_gnu_ld" != no && break ;;
12387 test "$with_gnu_ld" != yes && break ;;
12393 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12397 LD="$acl_cv_path_LD"
12398 if test -n "$LD"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12400 $as_echo "$LD" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12405 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12408 if ${acl_cv_prog_gnu_ld+:} false; then :
12409 $as_echo_n "(cached) " >&6
12411 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12412 case `$LD -v 2>&1 </dev/null` in
12413 *GNU* | *'with BFD'*)
12414 acl_cv_prog_gnu_ld=yes ;;
12416 acl_cv_prog_gnu_ld=no ;;
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12421 with_gnu_ld=$acl_cv_prog_gnu_ld
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12427 $as_echo_n "checking for shared library run path origin... " >&6; }
12428 if ${acl_cv_rpath+:} false; then :
12429 $as_echo_n "(cached) " >&6
12432 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12433 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12435 rm -f ./conftest.sh
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12440 $as_echo "$acl_cv_rpath" >&6; }
12442 acl_libext="$acl_cv_libext"
12443 acl_shlibext="$acl_cv_shlibext"
12444 acl_libname_spec="$acl_cv_libname_spec"
12445 acl_library_names_spec="$acl_cv_library_names_spec"
12446 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12447 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12448 acl_hardcode_direct="$acl_cv_hardcode_direct"
12449 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12450 # Check whether --enable-rpath was given.
12451 if test "${enable_rpath+set}" = set; then :
12452 enableval=$enable_rpath; :
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12465 $as_echo_n "checking for 64-bit host... " >&6; }
12466 if ${gl_cv_solaris_64bit+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12478 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12479 gl_cv_solaris_64bit=yes
12481 gl_cv_solaris_64bit=no
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12488 $as_echo "$gl_cv_solaris_64bit" >&6; }
12489 if test $gl_cv_solaris_64bit = yes; then
12490 acl_libdirstem=lib/64
12491 case "$host_cpu" in
12492 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12493 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12498 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12499 if test -n "$searchpath"; then
12500 acl_save_IFS="${IFS= }"; IFS=":"
12501 for searchdir in $searchpath; do
12502 if test -d "$searchdir"; then
12503 case "$searchdir" in
12504 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12506 # Better ignore directories of this form. They are misleading.
12508 *) searchdir=`cd "$searchdir" && pwd`
12509 case "$searchdir" in
12510 */lib64 ) acl_libdirstem=lib64 ;;
12515 IFS="$acl_save_IFS"
12519 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12534 acl_save_prefix="$prefix"
12535 prefix="$acl_final_prefix"
12536 acl_save_exec_prefix="$exec_prefix"
12537 exec_prefix="$acl_final_exec_prefix"
12539 eval additional_includedir=\"$includedir\"
12540 eval additional_libdir=\"$libdir\"
12542 exec_prefix="$acl_save_exec_prefix"
12543 prefix="$acl_save_prefix"
12546 # Check whether --with-libiconv-prefix was given.
12547 if test "${with_libiconv_prefix+set}" = set; then :
12548 withval=$with_libiconv_prefix;
12549 if test "X$withval" = "Xno"; then
12552 if test "X$withval" = "X"; then
12554 acl_save_prefix="$prefix"
12555 prefix="$acl_final_prefix"
12556 acl_save_exec_prefix="$exec_prefix"
12557 exec_prefix="$acl_final_exec_prefix"
12559 eval additional_includedir=\"$includedir\"
12560 eval additional_libdir=\"$libdir\"
12562 exec_prefix="$acl_save_exec_prefix"
12563 prefix="$acl_save_prefix"
12566 additional_includedir="$withval/include"
12567 additional_libdir="$withval/$acl_libdirstem"
12568 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12569 && ! test -d "$withval/$acl_libdirstem"; then
12570 additional_libdir="$withval/$acl_libdirstem2"
12584 names_already_handled=
12585 names_next_round='iconv '
12586 while test -n "$names_next_round"; do
12587 names_this_round="$names_next_round"
12589 for name in $names_this_round; do
12591 for n in $names_already_handled; do
12592 if test "$n" = "$name"; then
12593 already_handled=yes
12597 if test -z "$already_handled"; then
12598 names_already_handled="$names_already_handled $name"
12599 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12600 eval value=\"\$HAVE_LIB$uppername\"
12601 if test -n "$value"; then
12602 if test "$value" = yes; then
12603 eval value=\"\$LIB$uppername\"
12604 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12605 eval value=\"\$LTLIB$uppername\"
12606 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12615 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12616 if test -n "$acl_shlibext"; then
12617 shrext=".$acl_shlibext" # typically: shrext=.so
12621 if test $use_additional = yes; then
12622 dir="$additional_libdir"
12623 if test -n "$acl_shlibext"; then
12624 if test -f "$dir/$libname$shrext"; then
12626 found_so="$dir/$libname$shrext"
12628 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12629 ver=`(cd "$dir" && \
12630 for f in "$libname$shrext".*; do echo "$f"; done \
12631 | sed -e "s,^$libname$shrext\\\\.,," \
12632 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12633 | sed 1q ) 2>/dev/null`
12634 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12636 found_so="$dir/$libname$shrext.$ver"
12639 eval library_names=\"$acl_library_names_spec\"
12640 for f in $library_names; do
12641 if test -f "$dir/$f"; then
12650 if test "X$found_dir" = "X"; then
12651 if test -f "$dir/$libname.$acl_libext"; then
12653 found_a="$dir/$libname.$acl_libext"
12656 if test "X$found_dir" != "X"; then
12657 if test -f "$dir/$libname.la"; then
12658 found_la="$dir/$libname.la"
12662 if test "X$found_dir" = "X"; then
12663 for x in $LDFLAGS $LTLIBICONV; do
12665 acl_save_prefix="$prefix"
12666 prefix="$acl_final_prefix"
12667 acl_save_exec_prefix="$exec_prefix"
12668 exec_prefix="$acl_final_exec_prefix"
12670 exec_prefix="$acl_save_exec_prefix"
12671 prefix="$acl_save_prefix"
12675 dir=`echo "X$x" | sed -e 's/^X-L//'`
12676 if test -n "$acl_shlibext"; then
12677 if test -f "$dir/$libname$shrext"; then
12679 found_so="$dir/$libname$shrext"
12681 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12682 ver=`(cd "$dir" && \
12683 for f in "$libname$shrext".*; do echo "$f"; done \
12684 | sed -e "s,^$libname$shrext\\\\.,," \
12685 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12686 | sed 1q ) 2>/dev/null`
12687 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12689 found_so="$dir/$libname$shrext.$ver"
12692 eval library_names=\"$acl_library_names_spec\"
12693 for f in $library_names; do
12694 if test -f "$dir/$f"; then
12703 if test "X$found_dir" = "X"; then
12704 if test -f "$dir/$libname.$acl_libext"; then
12706 found_a="$dir/$libname.$acl_libext"
12709 if test "X$found_dir" != "X"; then
12710 if test -f "$dir/$libname.la"; then
12711 found_la="$dir/$libname.la"
12716 if test "X$found_dir" != "X"; then
12721 if test "X$found_dir" != "X"; then
12722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12723 if test "X$found_so" != "X"; then
12724 if test "$enable_rpath" = no \
12725 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12726 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12727 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12730 for x in $ltrpathdirs; do
12731 if test "X$x" = "X$found_dir"; then
12736 if test -z "$haveit"; then
12737 ltrpathdirs="$ltrpathdirs $found_dir"
12739 if test "$acl_hardcode_direct" = yes; then
12740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12742 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12743 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12745 for x in $rpathdirs; do
12746 if test "X$x" = "X$found_dir"; then
12751 if test -z "$haveit"; then
12752 rpathdirs="$rpathdirs $found_dir"
12756 for x in $LDFLAGS $LIBICONV; do
12758 acl_save_prefix="$prefix"
12759 prefix="$acl_final_prefix"
12760 acl_save_exec_prefix="$exec_prefix"
12761 exec_prefix="$acl_final_exec_prefix"
12763 exec_prefix="$acl_save_exec_prefix"
12764 prefix="$acl_save_prefix"
12766 if test "X$x" = "X-L$found_dir"; then
12771 if test -z "$haveit"; then
12772 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12774 if test "$acl_hardcode_minus_L" != no; then
12775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12777 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12783 if test "X$found_a" != "X"; then
12784 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12786 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12789 additional_includedir=
12790 case "$found_dir" in
12791 */$acl_libdirstem | */$acl_libdirstem/)
12792 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12793 if test "$name" = 'iconv'; then
12794 LIBICONV_PREFIX="$basedir"
12796 additional_includedir="$basedir/include"
12798 */$acl_libdirstem2 | */$acl_libdirstem2/)
12799 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12800 if test "$name" = 'iconv'; then
12801 LIBICONV_PREFIX="$basedir"
12803 additional_includedir="$basedir/include"
12806 if test "X$additional_includedir" != "X"; then
12807 if test "X$additional_includedir" != "X/usr/include"; then
12809 if test "X$additional_includedir" = "X/usr/local/include"; then
12810 if test -n "$GCC"; then
12812 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12816 if test -z "$haveit"; then
12817 for x in $CPPFLAGS $INCICONV; do
12819 acl_save_prefix="$prefix"
12820 prefix="$acl_final_prefix"
12821 acl_save_exec_prefix="$exec_prefix"
12822 exec_prefix="$acl_final_exec_prefix"
12824 exec_prefix="$acl_save_exec_prefix"
12825 prefix="$acl_save_prefix"
12827 if test "X$x" = "X-I$additional_includedir"; then
12832 if test -z "$haveit"; then
12833 if test -d "$additional_includedir"; then
12834 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12840 if test -n "$found_la"; then
12841 save_libdir="$libdir"
12842 case "$found_la" in
12843 */* | *\\*) . "$found_la" ;;
12844 *) . "./$found_la" ;;
12846 libdir="$save_libdir"
12847 for dep in $dependency_libs; do
12850 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12851 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12852 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12854 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12855 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12856 if test -n "$GCC"; then
12858 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12862 if test -z "$haveit"; then
12864 for x in $LDFLAGS $LIBICONV; do
12866 acl_save_prefix="$prefix"
12867 prefix="$acl_final_prefix"
12868 acl_save_exec_prefix="$exec_prefix"
12869 exec_prefix="$acl_final_exec_prefix"
12871 exec_prefix="$acl_save_exec_prefix"
12872 prefix="$acl_save_prefix"
12874 if test "X$x" = "X-L$additional_libdir"; then
12879 if test -z "$haveit"; then
12880 if test -d "$additional_libdir"; then
12881 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12885 for x in $LDFLAGS $LTLIBICONV; do
12887 acl_save_prefix="$prefix"
12888 prefix="$acl_final_prefix"
12889 acl_save_exec_prefix="$exec_prefix"
12890 exec_prefix="$acl_final_exec_prefix"
12892 exec_prefix="$acl_save_exec_prefix"
12893 prefix="$acl_save_prefix"
12895 if test "X$x" = "X-L$additional_libdir"; then
12900 if test -z "$haveit"; then
12901 if test -d "$additional_libdir"; then
12902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12909 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12910 if test "$enable_rpath" != no; then
12912 for x in $rpathdirs; do
12913 if test "X$x" = "X$dir"; then
12918 if test -z "$haveit"; then
12919 rpathdirs="$rpathdirs $dir"
12922 for x in $ltrpathdirs; do
12923 if test "X$x" = "X$dir"; then
12928 if test -z "$haveit"; then
12929 ltrpathdirs="$ltrpathdirs $dir"
12934 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12937 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12940 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12947 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12954 if test "X$rpathdirs" != "X"; then
12955 if test -n "$acl_hardcode_libdir_separator"; then
12957 for found_dir in $rpathdirs; do
12958 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12960 acl_save_libdir="$libdir"
12962 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12963 libdir="$acl_save_libdir"
12964 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12966 for found_dir in $rpathdirs; do
12967 acl_save_libdir="$libdir"
12968 libdir="$found_dir"
12969 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12970 libdir="$acl_save_libdir"
12971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12975 if test "X$ltrpathdirs" != "X"; then
12976 for found_dir in $ltrpathdirs; do
12977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12992 am_save_CPPFLAGS="$CPPFLAGS"
12994 for element in $INCICONV; do
12996 for x in $CPPFLAGS; do
12998 acl_save_prefix="$prefix"
12999 prefix="$acl_final_prefix"
13000 acl_save_exec_prefix="$exec_prefix"
13001 exec_prefix="$acl_final_exec_prefix"
13003 exec_prefix="$acl_save_exec_prefix"
13004 prefix="$acl_save_prefix"
13006 if test "X$x" = "X$element"; then
13011 if test -z "$haveit"; then
13012 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13018 $as_echo_n "checking for iconv... " >&6; }
13019 if ${am_cv_func_iconv+:} false; then :
13020 $as_echo_n "(cached) " >&6
13023 am_cv_func_iconv="no, consider installing GNU libiconv"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027 #include <stdlib.h>
13032 iconv_t cd = iconv_open("","");
13033 iconv(cd,NULL,NULL,NULL,NULL);
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 am_cv_func_iconv=yes
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 if test "$am_cv_func_iconv" != yes; then
13045 am_save_LIBS="$LIBS"
13046 LIBS="$LIBS $LIBICONV"
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 #include <stdlib.h>
13054 iconv_t cd = iconv_open("","");
13055 iconv(cd,NULL,NULL,NULL,NULL);
13061 if ac_fn_c_try_link "$LINENO"; then :
13062 am_cv_lib_iconv=yes
13063 am_cv_func_iconv=yes
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS="$am_save_LIBS"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13072 $as_echo "$am_cv_func_iconv" >&6; }
13073 if test "$am_cv_func_iconv" = yes; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13075 $as_echo_n "checking for working iconv... " >&6; }
13076 if ${am_cv_func_iconv_works+:} false; then :
13077 $as_echo_n "(cached) " >&6
13080 am_save_LIBS="$LIBS"
13081 if test $am_cv_lib_iconv = yes; then
13082 LIBS="$LIBS $LIBICONV"
13084 if test "$cross_compiling" = yes; then :
13086 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13087 *) am_cv_func_iconv_works="guessing yes" ;;
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13094 #include <string.h>
13097 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13100 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13101 if (cd_utf8_to_88591 != (iconv_t)(-1))
13103 static const char input[] = "\342\202\254"; /* EURO SIGN */
13105 const char *inptr = input;
13106 size_t inbytesleft = strlen (input);
13107 char *outptr = buf;
13108 size_t outbytesleft = sizeof (buf);
13109 size_t res = iconv (cd_utf8_to_88591,
13110 (char **) &inptr, &inbytesleft,
13111 &outptr, &outbytesleft);
13116 /* Test against Solaris 10 bug: Failures are not distinguishable from
13117 successful returns. */
13119 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13120 if (cd_ascii_to_88591 != (iconv_t)(-1))
13122 static const char input[] = "\263";
13124 const char *inptr = input;
13125 size_t inbytesleft = strlen (input);
13126 char *outptr = buf;
13127 size_t outbytesleft = sizeof (buf);
13128 size_t res = iconv (cd_ascii_to_88591,
13129 (char **) &inptr, &inbytesleft,
13130 &outptr, &outbytesleft);
13135 #if 0 /* This bug could be worked around by the caller. */
13136 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13138 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13139 if (cd_88591_to_utf8 != (iconv_t)(-1))
13141 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13143 const char *inptr = input;
13144 size_t inbytesleft = strlen (input);
13145 char *outptr = buf;
13146 size_t outbytesleft = sizeof (buf);
13147 size_t res = iconv (cd_88591_to_utf8,
13148 (char **) &inptr, &inbytesleft,
13149 &outptr, &outbytesleft);
13155 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13157 if (/* Try standardized names. */
13158 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13159 /* Try IRIX, OSF/1 names. */
13160 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13161 /* Try AIX names. */
13162 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13163 /* Try HP-UX names. */
13164 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13169 if ac_fn_c_try_run "$LINENO"; then :
13170 am_cv_func_iconv_works=yes
13172 am_cv_func_iconv_works=no
13174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13175 conftest.$ac_objext conftest.beam conftest.$ac_ext
13178 LIBS="$am_save_LIBS"
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13182 $as_echo "$am_cv_func_iconv_works" >&6; }
13183 case "$am_cv_func_iconv_works" in
13184 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13185 *) am_func_iconv=yes ;;
13188 am_func_iconv=no am_cv_lib_iconv=no
13190 if test "$am_func_iconv" = yes; then
13192 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13195 if test "$am_cv_lib_iconv" = yes; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13197 $as_echo_n "checking how to link with libiconv... " >&6; }
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13199 $as_echo "$LIBICONV" >&6; }
13201 CPPFLAGS="$am_save_CPPFLAGS"
13208 if test "$am_cv_func_iconv" = yes; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13210 $as_echo_n "checking for iconv declaration... " >&6; }
13211 if ${am_cv_proto_iconv+:} false; then :
13212 $as_echo_n "(cached) " >&6
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13218 #include <stdlib.h>
13224 #if defined(__STDC__) || defined(__cplusplus)
13225 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13238 if ac_fn_c_try_compile "$LINENO"; then :
13239 am_cv_proto_iconv_arg1=""
13241 am_cv_proto_iconv_arg1="const"
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13247 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13249 $am_cv_proto_iconv" >&5
13251 $am_cv_proto_iconv" >&6; }
13253 cat >>confdefs.h <<_ACEOF
13254 #define ICONV_CONST $am_cv_proto_iconv_arg1
13259 if test "x$am_cv_func_iconv" != "xyes"; then
13260 as_fn_error $? "Cannot find the iconv() function.
13261 iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13262 filenames and XML data. Wimlib cannot be compiled without it. iconv()
13263 is available in the latest version of glibc and sometimes in other
13264 libraries." "$LINENO" 5
13267 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13268 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13270 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13271 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lxml2 $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char xmlParseFile ();
13289 return xmlParseFile ();
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 ac_cv_lib_xml2_xmlParseFile=yes
13297 ac_cv_lib_xml2_xmlParseFile=no
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13304 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13305 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13308 as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13311 LIBXML2_LDADD=$LIBXML2_LDADD
13313 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13317 $as_echo_n "checking whether to include debugging messages... " >&6; }
13318 # Check whether --enable-debug was given.
13319 if test "${enable_debug+set}" = set; then :
13320 enableval=$enable_debug; ENABLE_DEBUG=$enableval
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13327 $as_echo "$ENABLE_DEBUG" >&6; }
13328 if test "x$ENABLE_DEBUG" = "xyes"; then
13330 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13335 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13336 # Check whether --enable-more_debug was given.
13337 if test "${enable_more_debug+set}" = set; then :
13338 enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13340 ENABLE_MORE_DEBUG=no
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13345 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13346 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13348 $as_echo "#define ENABLE_MORE_DEBUG 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13353 $as_echo_n "checking whether to include error messages... " >&6; }
13354 # Check whether --enable-error_messages was given.
13355 if test "${enable_error_messages+set}" = set; then :
13356 enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13358 ENABLE_ERROR_MESSAGES=yes
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13363 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13364 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13366 $as_echo "#define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13371 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13372 # Check whether --enable-custom_memory_allocator was given.
13373 if test "${enable_custom_memory_allocator+set}" = set; then :
13374 enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13376 ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13381 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13382 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13384 $as_echo "#define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13389 $as_echo_n "checking whether to include assertions... " >&6; }
13390 # Check whether --enable-assertions was given.
13391 if test "${enable_assertions+set}" = set; then :
13392 enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13394 ENABLE_ASSERTIONS=yes
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13399 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13400 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13402 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13408 $as_echo_n "checking whether to include compression verification... " >&6; }
13409 # Check whether --enable-verify_compression was given.
13410 if test "${enable_verify_compression+set}" = set; then :
13411 enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13413 ENABLE_VERIFY_COMPRESSION=yes
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13418 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13419 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13421 $as_echo "#define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13426 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13428 # Check whether --with-fuse was given.
13429 if test "${with_fuse+set}" = set; then :
13430 withval=$with_fuse; WITH_FUSE=$withval
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13437 $as_echo "$WITH_FUSE" >&6; }
13438 if test "x$WITH_FUSE" = "xyes"; then
13440 $as_echo "#define WITH_FUSE 1" >>confdefs.h
13443 LIBFUSE_LDADD=`pkg-config --libs fuse`
13444 LIBFUSE_CFLAGS=`pkg-config --cflags fuse`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13447 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13448 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13449 $as_echo_n "(cached) " >&6
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-lfuse $LIBS"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13462 char fuse_main_real ();
13466 return fuse_main_real ();
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 ac_cv_lib_fuse_fuse_main_real=yes
13474 ac_cv_lib_fuse_fuse_main_real=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13481 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13482 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13485 as_fn_error $? "Cannot find libfuse.
13486 Without libfuse, WIMLIB cannot include support for mounting WIMs. You
13487 should either install libfuse, or configure with --without-fuse to
13488 disable support for mounting WIMs." "$LINENO" 5
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13493 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13494 if ${ac_cv_lib_rt_mq_open+:} false; then :
13495 $as_echo_n "(cached) " >&6
13497 ac_check_lib_save_LIBS=$LIBS
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13502 /* Override any GCC internal prototype to avoid an error.
13503 Use char because int might match the return type of a GCC
13504 builtin and then its argument prototype would still apply. */
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 ac_cv_lib_rt_mq_open=yes
13520 ac_cv_lib_rt_mq_open=no
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 LIBS=$ac_check_lib_save_LIBS
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13527 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13528 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13531 as_fn_error $? "Cannot find librt for POSIX message queue
13532 functions. Without these functions, WIMLIB cannot include support for
13533 mounting WIMs. You should either update your C library to a recent
13534 version of glibc, or configure with --without-fuse to disable support
13535 for mounting WIMs." "$LINENO" 5
13543 LIBFUSE_LDADD=$LIBFUSE_LDADD
13545 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13549 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13550 # Check whether --enable-ssse3-sha1 was given.
13551 if test "${enable_ssse3_sha1+set}" = set; then :
13552 enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13554 ENABLE_SSSE3_SHA1=no
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13560 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13561 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13563 $as_echo "#define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13565 SSSE3_SHA1_OBJ=sha1-ssse3.lo
13567 for ac_prog in nasm nasmw
13569 # Extract the first word of "$ac_prog", so it can be a program name with args.
13570 set dummy $ac_prog; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_prog_nasm+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 if test -n "$nasm"; then
13577 ac_cv_prog_nasm="$nasm" # Let the user override the test.
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586 ac_cv_prog_nasm="$ac_prog"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 nasm=$ac_cv_prog_nasm
13597 if test -n "$nasm"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13599 $as_echo "$nasm" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13606 test -n "$nasm" && break
13608 test -n "$nasm" || nasm="no"
13610 if test "x$nasm" = "xno" ;
13612 as_fn_error $? "NASM assembler not found" "$LINENO" 5
13620 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13623 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13627 # Check whether --with-libcrypto was given.
13628 if test "${with_libcrypto+set}" = set; then :
13629 withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13632 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13633 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13634 $as_echo_n "(cached) " >&6
13636 ac_check_lib_save_LIBS=$LIBS
13637 LIBS="-lcrypto $LIBS"
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13641 /* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13656 if ac_fn_c_try_link "$LINENO"; then :
13657 ac_cv_lib_crypto_SHA1=yes
13659 ac_cv_lib_crypto_SHA1=no
13661 rm -f core conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663 LIBS=$ac_check_lib_save_LIBS
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13666 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13667 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13671 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13680 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13682 $as_echo "$WITH_LIBCRYPTO" >&6; }
13684 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13686 $as_echo "#define WITH_LIBCRYPTO 1" >>confdefs.h
13688 LIBCRYPTO_LDADD=`pkg-config --libs libcrypto`
13689 LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto`
13694 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13696 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13698 SHA1_SOURCES=$SHA1_SOURCES
13701 cat >confcache <<\_ACEOF
13702 # This file is a shell script that caches the results of configure
13703 # tests run on this system so they can be shared between configure
13704 # scripts and configure runs, see configure's option --config-cache.
13705 # It is not useful on other systems. If it contains results you don't
13706 # want to keep, you may remove or edit it.
13708 # config.status only pays attention to the cache file if you give it
13709 # the --recheck option to rerun configure.
13711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13713 # following values.
13717 # The following way of writing the cache mishandles newlines in values,
13718 # but we know of no workaround that is simple, portable, and efficient.
13719 # So, we kill variables containing newlines.
13720 # Ultrix sh set writes to stderr and can't be redirected directly,
13721 # and sets the high bit in the cache file unless we assign to the vars.
13723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13724 eval ac_val=\$$ac_var
13728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13732 _ | IFS | as_nl) ;; #(
13733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13734 *) { eval $ac_var=; unset $ac_var;} ;;
13740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13741 *${as_nl}ac_space=\ *)
13742 # `set' does not quote correctly, so add quotes: double-quote
13743 # substitution turns \\\\ into \\, and sed turns \\ into \.
13746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13749 # `set' quotes correctly as required by POSIX, so do not add quotes.
13750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13764 if test -w "$cache_file"; then
13765 if test "x$cache_file" != "x/dev/null"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13767 $as_echo "$as_me: updating cache $cache_file" >&6;}
13768 if test ! -f "$cache_file" || test -h "$cache_file"; then
13769 cat confcache >"$cache_file"
13771 case $cache_file in #(
13773 mv -f confcache "$cache_file"$$ &&
13774 mv -f "$cache_file"$$ "$cache_file" ;; #(
13776 mv -f confcache "$cache_file" ;;
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13788 # Let make expand exec_prefix.
13789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13791 DEFS=-DHAVE_CONFIG_H
13796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13797 # 1. Remove the extension, and $U if already installed.
13798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13801 # will be set to the directory where LIBOBJS objects are built.
13802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13805 LIBOBJS=$ac_libobjs
13807 LTLIBOBJS=$ac_ltlibobjs
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13811 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13812 if test -n "$am_sleep_pid"; then
13813 # Hide warnings about reused PIDs.
13814 wait $am_sleep_pid 2>/dev/null
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13817 $as_echo "done" >&6; }
13818 if test -n "$EXEEXT"; then
13820 am__EXEEXT_FALSE='#'
13822 am__EXEEXT_TRUE='#'
13826 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13827 as_fn_error $? "conditional \"AMDEP\" was never defined.
13828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13835 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13836 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13840 : "${CONFIG_STATUS=./config.status}"
13842 ac_clean_files_save=$ac_clean_files
13843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13845 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13847 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13849 # Generated by $as_me.
13850 # Run this file to recreate the current configuration.
13851 # Compiler output produced by configure, useful for debugging
13852 # configure, is in config.log if it exists.
13855 ac_cs_recheck=false
13858 SHELL=\${CONFIG_SHELL-$SHELL}
13861 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13862 ## -------------------- ##
13863 ## M4sh Initialization. ##
13864 ## -------------------- ##
13866 # Be more Bourne compatible
13867 DUALCASE=1; export DUALCASE # for MKS sh
13868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13871 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13872 # is contrary to our usage. Disable this feature.
13873 alias -g '${1+"$@"}'='"$@"'
13874 setopt NO_GLOB_SUBST
13876 case `(set -o) 2>/dev/null` in #(
13888 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13889 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13892 # Prefer a ksh shell builtin over an external printf program on Solaris,
13893 # but without wasting forks for bash or zsh.
13894 if test -z "$BASH_VERSION$ZSH_VERSION" \
13895 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13896 as_echo='print -r --'
13897 as_echo_n='print -rn --'
13898 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13899 as_echo='printf %s\n'
13900 as_echo_n='printf %s'
13902 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13903 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13904 as_echo_n='/usr/ucb/echo -n'
13906 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13907 as_echo_n_body='eval
13911 expr "X$arg" : "X\\(.*\\)$as_nl";
13912 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13914 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13916 export as_echo_n_body
13917 as_echo_n='sh -c $as_echo_n_body as_echo'
13919 export as_echo_body
13920 as_echo='sh -c $as_echo_body as_echo'
13923 # The user is always right.
13924 if test "${PATH_SEPARATOR+set}" != set; then
13926 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13927 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13934 # We need space, tab and new line, in precisely that order. Quoting is
13935 # there to prevent editors from complaining about space-tab.
13936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13937 # splitting by setting IFS to empty value.)
13940 # Find who we are. Look in the path if we contain no directory separator.
13943 *[\\/]* ) as_myself=$0 ;;
13944 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13948 test -z "$as_dir" && as_dir=.
13949 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13955 # We did not find ourselves, most probably we were run as `sh COMMAND'
13956 # in which case we are not to be found in the path.
13957 if test "x$as_myself" = x; then
13960 if test ! -f "$as_myself"; then
13961 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13965 # Unset variables that we do not need and which cause bugs (e.g. in
13966 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13967 # suppresses any "Segmentation fault" message there. '((' could
13968 # trigger a bug in pdksh 5.2.14.
13969 for as_var in BASH_ENV ENV MAIL MAILPATH
13970 do eval test x\${$as_var+set} = xset \
13971 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13987 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13988 # ----------------------------------------
13989 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13990 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13991 # script with STATUS, using 1 if that was 0.
13994 as_status=$1; test $as_status -eq 0 && as_status=1
13996 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13997 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13999 $as_echo "$as_me: error: $2" >&2
14000 as_fn_exit $as_status
14004 # as_fn_set_status STATUS
14005 # -----------------------
14006 # Set $? to STATUS, without forking.
14007 as_fn_set_status ()
14010 } # as_fn_set_status
14012 # as_fn_exit STATUS
14013 # -----------------
14014 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14018 as_fn_set_status $1
14024 # Portably unset VAR.
14027 { eval $1=; unset $1;}
14029 as_unset=as_fn_unset
14030 # as_fn_append VAR VALUE
14031 # ----------------------
14032 # Append the text in VALUE to the end of the definition contained in VAR. Take
14033 # advantage of any shell optimizations that allow amortized linear growth over
14034 # repeated appends, instead of the typical quadratic growth present in naive
14036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14037 eval 'as_fn_append ()
14048 # as_fn_arith ARG...
14049 # ------------------
14050 # Perform arithmetic evaluation on the ARGs, and store the result in the
14051 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14052 # must be portable across $(()) and expr.
14053 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14054 eval 'as_fn_arith ()
14061 as_val=`expr "$@" || test $? -eq 1`
14066 if expr a : '\(a\)' >/dev/null 2>&1 &&
14067 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14073 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14074 as_basename=basename
14079 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14085 as_me=`$as_basename -- "$0" ||
14086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14087 X"$0" : 'X\(//\)$' \| \
14088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14090 sed '/^.*\/\([^/][^/]*\)\/*$/{
14104 # Avoid depending upon Character Ranges.
14105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14108 as_cr_digits='0123456789'
14109 as_cr_alnum=$as_cr_Letters$as_cr_digits
14111 ECHO_C= ECHO_N= ECHO_T=
14112 case `echo -n x` in #(((((
14114 case `echo 'xy\c'` in
14115 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14117 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14124 rm -f conf$$ conf$$.exe conf$$.file
14125 if test -d conf$$.dir; then
14126 rm -f conf$$.dir/conf$$.file
14129 mkdir conf$$.dir 2>/dev/null
14131 if (echo >conf$$.file) 2>/dev/null; then
14132 if ln -s conf$$.file conf$$ 2>/dev/null; then
14134 # ... but there are two gotchas:
14135 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14136 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14137 # In both cases, we have to default to `cp -pR'.
14138 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14140 elif ln conf$$.file conf$$ 2>/dev/null; then
14148 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14149 rmdir conf$$.dir 2>/dev/null
14154 # Create "$as_dir" as a directory, including parents if necessary.
14159 -*) as_dir=./$as_dir;;
14161 test -d "$as_dir" || eval $as_mkdir_p || {
14165 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14166 *) as_qdir=$as_dir;;
14168 as_dirs="'$as_qdir' $as_dirs"
14169 as_dir=`$as_dirname -- "$as_dir" ||
14170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14171 X"$as_dir" : 'X\(//\)[^/]' \| \
14172 X"$as_dir" : 'X\(//\)$' \| \
14173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14174 $as_echo X"$as_dir" |
14175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14179 /^X\(\/\/\)[^/].*/{
14192 test -d "$as_dir" && break
14194 test -z "$as_dirs" || eval "mkdir $as_dirs"
14195 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14199 if mkdir -p . 2>/dev/null; then
14200 as_mkdir_p='mkdir -p "$as_dir"'
14202 test -d ./-p && rmdir ./-p
14207 # as_fn_executable_p FILE
14208 # -----------------------
14209 # Test if FILE is an executable regular file.
14210 as_fn_executable_p ()
14212 test -f "$1" && test -x "$1"
14213 } # as_fn_executable_p
14214 as_test_x='test -x'
14215 as_executable_p=as_fn_executable_p
14217 # Sed expression to map a string onto a valid CPP name.
14218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14220 # Sed expression to map a string onto a valid variable name.
14221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14225 ## ----------------------------------- ##
14226 ## Main body of $CONFIG_STATUS script. ##
14227 ## ----------------------------------- ##
14229 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14232 # Save the log message, to keep $0 and so on meaningful, and to
14233 # report actual input values of CONFIG_FILES etc. instead of their
14234 # values after options handling.
14236 This file was extended by wimlib $as_me 0.6.2, which was
14237 generated by GNU Autoconf 2.69. Invocation command line was
14239 CONFIG_FILES = $CONFIG_FILES
14240 CONFIG_HEADERS = $CONFIG_HEADERS
14241 CONFIG_LINKS = $CONFIG_LINKS
14242 CONFIG_COMMANDS = $CONFIG_COMMANDS
14245 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14250 case $ac_config_files in *"
14251 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14254 case $ac_config_headers in *"
14255 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14260 # Files that config.status was made for.
14261 config_files="$ac_config_files"
14262 config_headers="$ac_config_headers"
14263 config_commands="$ac_config_commands"
14267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269 \`$as_me' instantiates files and other configuration actions
14270 from templates according to the current configuration. Unless the files
14271 and actions are specified as TAGs, all are instantiated by default.
14273 Usage: $0 [OPTION]... [TAG]...
14275 -h, --help print this help, then exit
14276 -V, --version print version number and configuration settings, then exit
14277 --config print configuration, then exit
14278 -q, --quiet, --silent
14279 do not print progress messages
14280 -d, --debug don't remove temporary files
14281 --recheck update $as_me by reconfiguring in the same conditions
14282 --file=FILE[:TEMPLATE]
14283 instantiate the configuration file FILE
14284 --header=FILE[:TEMPLATE]
14285 instantiate the configuration header FILE
14287 Configuration files:
14290 Configuration headers:
14293 Configuration commands:
14296 Report bugs to <ebiggers3@gmail.com>."
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14302 wimlib config.status 0.6.2
14303 configured by $0, generated by GNU Autoconf 2.69,
14304 with options \\"\$ac_cs_config\\"
14306 Copyright (C) 2012 Free Software Foundation, Inc.
14307 This config.status script is free software; the Free Software Foundation
14308 gives unlimited permission to copy, distribute and modify it."
14315 test -n "\$AWK" || AWK=awk
14318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14319 # The default lists apply if the user does not specify any file.
14325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14330 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14342 # Handling of the options.
14343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14345 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14346 $as_echo "$ac_cs_version"; exit ;;
14347 --config | --confi | --conf | --con | --co | --c )
14348 $as_echo "$ac_cs_config"; exit ;;
14349 --debug | --debu | --deb | --de | --d | -d )
14351 --file | --fil | --fi | --f )
14354 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14355 '') as_fn_error $? "missing file argument" ;;
14357 as_fn_append CONFIG_FILES " '$ac_optarg'"
14358 ac_need_defaults=false;;
14359 --header | --heade | --head | --hea )
14362 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14364 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14365 ac_need_defaults=false;;
14367 # Conflict between --help and --header
14368 as_fn_error $? "ambiguous option: \`$1'
14369 Try \`$0 --help' for more information.";;
14370 --help | --hel | -h )
14371 $as_echo "$ac_cs_usage"; exit ;;
14372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14373 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14376 # This is an error.
14377 -*) as_fn_error $? "unrecognized option: \`$1'
14378 Try \`$0 --help' for more information." ;;
14380 *) as_fn_append ac_config_targets " $1"
14381 ac_need_defaults=false ;;
14387 ac_configure_extra_args=
14389 if $ac_cs_silent; then
14391 ac_configure_extra_args="$ac_configure_extra_args --silent"
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 if \$ac_cs_recheck; then
14397 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14399 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14400 CONFIG_SHELL='$SHELL'
14401 export CONFIG_SHELL
14406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14411 ## Running $as_me. ##
14417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14424 # The HP-UX ksh and POSIX shell print the target directory to stdout
14425 # if CDPATH is set.
14426 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14428 sed_quote_subst='$sed_quote_subst'
14429 double_quote_subst='$double_quote_subst'
14430 delay_variable_subst='$delay_variable_subst'
14431 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14432 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14433 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14434 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14435 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14436 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14437 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14438 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14439 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14440 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14441 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14442 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14443 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14444 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14445 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14446 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14447 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14448 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14449 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14450 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14451 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14452 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14453 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14454 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14455 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14456 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14457 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14458 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14459 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14460 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14461 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14462 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14463 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14464 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14467 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14468 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14469 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14470 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14471 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14472 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14473 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14474 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14475 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14476 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14477 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14478 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14479 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14480 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14481 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14482 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14483 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14484 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14485 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14486 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14487 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"`'
14488 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14489 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14490 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14491 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14492 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14493 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14494 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14495 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14496 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14497 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14498 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14499 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14500 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14501 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14502 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14503 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14504 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14505 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14506 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14507 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14508 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14509 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14510 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14511 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14512 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14513 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14514 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14515 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14516 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14517 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14518 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14519 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14520 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14521 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14535 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14554 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14563 LTCFLAGS='$LTCFLAGS'
14564 compiler='$compiler_DEFAULT'
14566 # A function that is used when there is no print builtin or printf.
14567 func_fallback_echo ()
14569 eval 'cat <<_LTECHO_EOF
14574 # Quote evaled strings.
14589 deplibs_check_method \
14594 sharedlib_from_linklib_cmd \
14597 archiver_list_spec \
14603 lt_cv_sys_global_symbol_pipe \
14604 lt_cv_sys_global_symbol_to_cdecl \
14605 lt_cv_sys_global_symbol_to_c_name_address \
14606 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14607 nm_file_list_spec \
14608 lt_prog_compiler_no_builtin_flag \
14609 lt_prog_compiler_pic \
14610 lt_prog_compiler_wl \
14611 lt_prog_compiler_static \
14612 lt_cv_prog_compiler_c_o \
14621 export_dynamic_flag_spec \
14622 whole_archive_flag_spec \
14623 compiler_needs_object \
14625 allow_undefined_flag \
14626 no_undefined_flag \
14627 hardcode_libdir_flag_spec \
14628 hardcode_libdir_separator \
14632 variables_saved_for_relink \
14634 library_names_spec \
14636 install_override_mode \
14640 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14641 *[\\\\\\\`\\"\\\$]*)
14642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14650 # Double-quote double-evaled strings.
14651 for var in reload_cmds \
14652 old_postinstall_cmds \
14653 old_postuninstall_cmds \
14655 extract_expsyms_cmds \
14656 old_archive_from_new_cmds \
14657 old_archive_from_expsyms_cmds \
14659 archive_expsym_cmds \
14661 module_expsym_cmds \
14662 export_symbols_cmds \
14666 postuninstall_cmds \
14668 sys_lib_search_path_spec \
14669 sys_lib_dlsearch_path_spec; do
14670 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14671 *[\\\\\\\`\\"\\\$]*)
14672 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14675 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14680 ac_aux_dir='$ac_aux_dir'
14681 xsi_shell='$xsi_shell'
14682 lt_shell_append='$lt_shell_append'
14684 # See if we are running on zsh, and set the options which allow our
14685 # commands through without removal of \ escapes INIT.
14686 if test -n "\${ZSH_VERSION+set}" ; then
14687 setopt NO_GLOB_SUBST
14693 TIMESTAMP='$TIMESTAMP'
14702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14704 # Handling of arguments.
14705 for ac_config_target in $ac_config_targets
14707 case $ac_config_target in
14708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14710 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14712 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14713 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14714 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14715 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14717 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14722 # If the user did not use the arguments to specify the items to instantiate,
14723 # then the envvar interface is used. Set only those that are not.
14724 # We use the long form for the default assignment because of an extremely
14725 # bizarre bug on SunOS 4.1.3.
14726 if $ac_need_defaults; then
14727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14732 # Have a temporary directory for convenience. Make it in the build tree
14733 # simply because there is no reason against having it here, and in addition,
14734 # creating and moving files from /tmp can sometimes cause problems.
14735 # Hook for its removal unless debugging.
14736 # Note that there is a small window in which the directory will not be cleaned:
14737 # after its creation but before its name has been assigned to `$tmp'.
14741 trap 'exit_status=$?
14742 : "${ac_tmp:=$tmp}"
14743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14745 trap 'as_fn_exit 1' 1 2 13 15
14747 # Create a (secure) tmp directory for tmp files.
14750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14754 tmp=./conf$$-$RANDOM
14755 (umask 077 && mkdir "$tmp")
14756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14759 # Set up the scripts for CONFIG_FILES section.
14760 # No need to generate them if there are no CONFIG_FILES.
14761 # This happens for instance with `./config.status config.h'.
14762 if test -n "$CONFIG_FILES"; then
14765 ac_cr=`echo X | tr X '\015'`
14766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14767 # But we know of no other shell where ac_cr would be empty at this
14768 # point, so we can use a bashism as a fallback.
14769 if test "x$ac_cr" = x; then
14770 eval ac_cr=\$\'\\r\'
14772 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14776 ac_cs_awk_cr=$ac_cr
14779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14784 echo "cat >conf$$subs.awk <<_ACEOF" &&
14785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14787 } >conf$$subs.sh ||
14788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14791 for ac_last_try in false false false false false :; do
14792 . ./conf$$subs.sh ||
14793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14796 if test $ac_delim_n = $ac_delim_num; then
14798 elif $ac_last_try; then
14799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14804 rm -f conf$$subs.sh
14806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14811 s/^/S["/; s/!.*/"]=/
14821 s/\(.\{148\}\)..*/\1/
14823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14835 s/\(.\{148\}\)..*/\1/
14837 s/["\\]/\\&/g; s/^/"/; s/$/"/
14841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14846 ' <conf$$subs.awk | sed '
14851 ' >>$CONFIG_STATUS || ac_write_fail=1
14852 rm -f conf$$subs.awk
14853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14856 for (key in S) S_is_set[key] = 1
14862 nfields = split(line, field, "@")
14864 len = length(field[1])
14865 for (i = 2; i < nfields; i++) {
14867 keylen = length(key)
14868 if (S_is_set[key]) {
14870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14871 len += length(value) + length(field[++i])
14882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14883 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14888 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14893 # trailing colons and then remove the whole line if VPATH becomes empty
14894 # (actually we leave an empty line to preserve line numbers).
14895 if test "x$srcdir" = x.; then
14896 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14915 fi # test -n "$CONFIG_FILES"
14917 # Set up the scripts for CONFIG_HEADERS section.
14918 # No need to generate them if there are no CONFIG_HEADERS.
14919 # This happens for instance with `./config.status Makefile'.
14920 if test -n "$CONFIG_HEADERS"; then
14921 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14925 # Transform confdefs.h into an awk script `defines.awk', embedded as
14926 # here-document in config.status, that substitutes the proper values into
14927 # config.h.in to produce config.h.
14929 # Create a delimiter string that does not exist in confdefs.h, to ease
14930 # handling of long lines.
14932 for ac_last_try in false false :; do
14933 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14934 if test -z "$ac_tt"; then
14936 elif $ac_last_try; then
14937 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14943 # For the awk script, D is an array of macro values keyed by name,
14944 # likewise P contains macro parameters if any. Preserve backslash
14945 # newline sequences.
14947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14949 s/.\{148\}/&'"$ac_delim"'/g
14952 s/^[ ]*#[ ]*define[ ][ ]*/ /
14959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14966 D["\1"]=" \3\\\\\\n"\\/p
14968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14973 s/.\{148\}/&'"$ac_delim"'/g
14978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14983 ' <confdefs.h | sed '
14984 s/'"$ac_delim"'/"\\\
14985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14988 for (key in D) D_is_set[key] = 1
14991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14993 split(line, arg, " ")
14994 if (arg[1] == "#") {
14998 defundef = substr(arg[1], 2)
15001 split(mac1, mac2, "(") #)
15003 prefix = substr(line, 1, index(line, defundef) - 1)
15004 if (D_is_set[macro]) {
15005 # Preserve the white space surrounding the "#".
15006 print prefix "define", macro P[macro] D[macro]
15009 # Replace #undef with comments. This is necessary, for example,
15010 # in the case of _POSIX_SOURCE, which is predefined and required
15011 # on some systems where configure will not decide to define it.
15012 if (defundef == "undef") {
15013 print "/*", prefix defundef, macro, "*/"
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15023 fi # test -n "$CONFIG_HEADERS"
15026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15031 :[FHLC]) ac_mode=$ac_tag; continue;;
15033 case $ac_mode$ac_tag in
15035 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15036 :[FH]-) ac_tag=-:-;;
15037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15054 -) ac_f="$ac_tmp/stdin";;
15055 *) # Look for the file first in the build tree, then in the source tree
15056 # (if the path is not absolute). The absolute path cannot be DOS-style,
15057 # because $ac_f cannot contain `:'.
15061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15066 as_fn_append ac_file_inputs " '$ac_f'"
15069 # Let's still pretend it is `configure' which instantiates (i.e., don't
15070 # use $as_me), people would be surprised to read:
15071 # /* config.h. Generated by config.status. */
15072 configure_input='Generated from '`
15073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15075 if test x"$ac_file" != x-; then
15076 configure_input="$ac_file. $configure_input"
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15078 $as_echo "$as_me: creating $ac_file" >&6;}
15080 # Neutralize special characters interpreted by sed in replacement strings.
15081 case $configure_input in #(
15082 *\&* | *\|* | *\\* )
15083 ac_sed_conf_input=`$as_echo "$configure_input" |
15084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15085 *) ac_sed_conf_input=$configure_input;;
15089 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15095 ac_dir=`$as_dirname -- "$ac_file" ||
15096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097 X"$ac_file" : 'X\(//\)[^/]' \| \
15098 X"$ac_file" : 'X\(//\)$' \| \
15099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15100 $as_echo X"$ac_file" |
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 /^X\(\/\/\)[^/].*/{
15118 as_dir="$ac_dir"; as_fn_mkdir_p
15122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15125 # A ".." for each directory in $ac_dir_suffix.
15126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15127 case $ac_top_builddir_sub in
15128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15132 ac_abs_top_builddir=$ac_pwd
15133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15134 # for backward compatibility:
15135 ac_top_builddir=$ac_top_build_prefix
15138 .) # We are building in place.
15140 ac_top_srcdir=$ac_top_builddir_sub
15141 ac_abs_top_srcdir=$ac_pwd ;;
15142 [\\/]* | ?:[\\/]* ) # Absolute name.
15143 ac_srcdir=$srcdir$ac_dir_suffix;
15144 ac_top_srcdir=$srcdir
15145 ac_abs_top_srcdir=$srcdir ;;
15146 *) # Relative name.
15147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15148 ac_top_srcdir=$ac_top_build_prefix$srcdir
15149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15164 ac_MKDIR_P=$MKDIR_P
15166 [\\/$]* | ?:[\\/]* ) ;;
15167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15172 # If the template does not know about datarootdir, expand it.
15173 # FIXME: This hack should be removed a few years after 2.60.
15174 ac_datarootdir_hack=; ac_datarootdir_seen=
15185 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15186 *datarootdir*) ac_datarootdir_seen=yes;;
15187 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15189 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192 ac_datarootdir_hack='
15193 s&@datadir@&$datadir&g
15194 s&@docdir@&$docdir&g
15195 s&@infodir@&$infodir&g
15196 s&@localedir@&$localedir&g
15197 s&@mandir@&$mandir&g
15198 s&\\\${datarootdir}&$datarootdir&g' ;;
15202 # Neutralize VPATH when `$srcdir' = `.'.
15203 # Shell code in configure.ac might set extrasub.
15204 # FIXME: do we really want to maintain this feature?
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 ac_sed_extra="$ac_vpsub
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15212 s|@configure_input@|$ac_sed_conf_input|;t t
15213 s&@top_builddir@&$ac_top_builddir_sub&;t t
15214 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15215 s&@srcdir@&$ac_srcdir&;t t
15216 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15217 s&@top_srcdir@&$ac_top_srcdir&;t t
15218 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15219 s&@builddir@&$ac_builddir&;t t
15220 s&@abs_builddir@&$ac_abs_builddir&;t t
15221 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15222 s&@INSTALL@&$ac_INSTALL&;t t
15223 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15224 $ac_datarootdir_hack
15226 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15229 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15232 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15234 which seems to be undefined. Please make sure it is defined" >&5
15235 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15236 which seems to be undefined. Please make sure it is defined" >&2;}
15238 rm -f "$ac_tmp/stdin"
15240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15249 if test x"$ac_file" != x-; then
15251 $as_echo "/* $configure_input */" \
15252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15253 } >"$ac_tmp/config.h" \
15254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15257 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15260 mv "$ac_tmp/config.h" "$ac_file" \
15261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15264 $as_echo "/* $configure_input */" \
15265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15266 || as_fn_error $? "could not create -" "$LINENO" 5
15268 # Compute "$ac_file"'s index in $config_headers.
15271 for _am_header in $config_headers :; do
15272 case $_am_header in
15273 $_am_arg | $_am_arg:* )
15276 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15279 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15280 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15281 X"$_am_arg" : 'X\(//\)[^/]' \| \
15282 X"$_am_arg" : 'X\(//\)$' \| \
15283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15284 $as_echo X"$_am_arg" |
15285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15289 /^X\(\/\/\)[^/].*/{
15301 s/.*/./; q'`/stamp-h$_am_stamp_count
15304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15305 $as_echo "$as_me: executing $ac_file commands" >&6;}
15310 case $ac_file$ac_mode in
15311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15312 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15313 # are listed without --file. Let's play safe and only enable the eval
15314 # if we detect the quoting.
15315 case $CONFIG_FILES in
15316 *\'*) eval set x "$CONFIG_FILES" ;;
15317 *) set x $CONFIG_FILES ;;
15322 # Strip MF so we end up with the name of the file.
15323 mf=`echo "$mf" | sed -e 's/:.*$//'`
15324 # Check whether this is an Automake generated Makefile or not.
15325 # We used to match only the files named 'Makefile.in', but
15326 # some people rename them; so instead we look at the file content.
15327 # Grep'ing the first line is not enough: some people post-process
15328 # each Makefile.in and add a new line on top of each file to say so.
15329 # Grep'ing the whole file is not good either: AIX grep has a line
15330 # limit of 2048, but all sed's we know have understand at least 4000.
15331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15332 dirpart=`$as_dirname -- "$mf" ||
15333 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15334 X"$mf" : 'X\(//\)[^/]' \| \
15335 X"$mf" : 'X\(//\)$' \| \
15336 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15342 /^X\(\/\/\)[^/].*/{
15358 # Extract the definition of DEPDIR, am__include, and am__quote
15359 # from the Makefile without running 'make'.
15360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15361 test -z "$DEPDIR" && continue
15362 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15363 test -z "am__include" && continue
15364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15365 # Find all dependency output files, they are included files with
15366 # $(DEPDIR) in their names. We invoke sed twice because it is the
15367 # simplest approach to changing $(DEPDIR) to its actual value in the
15369 for file in `sed -n "
15370 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15371 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15372 # Make sure the directory exists.
15373 test -f "$dirpart/$file" && continue
15374 fdir=`$as_dirname -- "$file" ||
15375 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376 X"$file" : 'X\(//\)[^/]' \| \
15377 X"$file" : 'X\(//\)$' \| \
15378 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$file" |
15380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15384 /^X\(\/\/\)[^/].*/{
15397 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15398 # echo "creating $dirpart/$file"
15399 echo '# dummy' > "$dirpart/$file"
15406 # See if we are running on zsh, and set the options which allow our
15407 # commands through without removal of \ escapes.
15408 if test -n "${ZSH_VERSION+set}" ; then
15409 setopt NO_GLOB_SUBST
15412 cfgfile="${ofile}T"
15413 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15416 cat <<_LT_EOF >> "$cfgfile"
15419 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15420 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15422 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15424 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15425 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15427 # Written by Gordon Matzigkeit, 1996
15429 # This file is part of GNU Libtool.
15431 # GNU Libtool is free software; you can redistribute it and/or
15432 # modify it under the terms of the GNU General Public License as
15433 # published by the Free Software Foundation; either version 2 of
15434 # the License, or (at your option) any later version.
15436 # As a special exception to the GNU General Public License,
15437 # if you distribute this file as part of a program or library that
15438 # is built using GNU Libtool, you may include this file under the
15439 # same distribution terms that you use for the rest of that program.
15441 # GNU Libtool is distributed in the hope that it will be useful,
15442 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15443 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15444 # GNU General Public License for more details.
15446 # You should have received a copy of the GNU General Public License
15447 # along with GNU Libtool; see the file COPYING. If not, a copy
15448 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15449 # obtained by writing to the Free Software Foundation, Inc.,
15450 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15453 # The names of the tagged configurations supported by this script.
15456 # ### BEGIN LIBTOOL CONFIG
15458 # Which release of libtool.m4 was used?
15459 macro_version=$macro_version
15460 macro_revision=$macro_revision
15462 # Whether or not to build shared libraries.
15463 build_libtool_libs=$enable_shared
15465 # Whether or not to build static libraries.
15466 build_old_libs=$enable_static
15468 # What type of objects to build.
15471 # Whether or not to optimize for fast installation.
15472 fast_install=$enable_fast_install
15474 # Shell to use when invoking shell scripts.
15477 # An echo program that protects backslashes.
15480 # The PATH separator for the build system.
15481 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15484 host_alias=$host_alias
15488 # The build system.
15489 build_alias=$build_alias
15493 # A sed program that does not truncate output.
15496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15497 Xsed="\$SED -e 1s/^X//"
15499 # A grep program that handles long lines.
15505 # A literal string matcher.
15508 # A BSD- or MS-compatible name lister.
15511 # Whether we need soft or hard links.
15514 # What is the maximum length of a command?
15515 max_cmd_len=$max_cmd_len
15517 # Object file suffix (normally "o").
15520 # Executable file suffix (normally "").
15523 # whether the shell understands "unset".
15526 # turn spaces into newlines.
15529 # turn newlines into spaces.
15532 # convert \$build file names to \$host format.
15533 to_host_file_cmd=$lt_cv_to_host_file_cmd
15535 # convert \$build files to toolchain format.
15536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15538 # An object symbol dumper.
15539 OBJDUMP=$lt_OBJDUMP
15541 # Method to check whether dependent libraries are shared objects.
15542 deplibs_check_method=$lt_deplibs_check_method
15544 # Command to use when deplibs_check_method = "file_magic".
15545 file_magic_cmd=$lt_file_magic_cmd
15547 # How to find potential files when deplibs_check_method = "file_magic".
15548 file_magic_glob=$lt_file_magic_glob
15550 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15551 want_nocaseglob=$lt_want_nocaseglob
15553 # DLL creation program.
15554 DLLTOOL=$lt_DLLTOOL
15556 # Command to associate shared and link libraries.
15557 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15562 # Flags to create an archive.
15563 AR_FLAGS=$lt_AR_FLAGS
15565 # How to feed a file listing to the archiver.
15566 archiver_list_spec=$lt_archiver_list_spec
15568 # A symbol stripping program.
15571 # Commands used to install an old-style archive.
15573 old_postinstall_cmds=$lt_old_postinstall_cmds
15574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15576 # Whether to use a lock for old archive extraction.
15577 lock_old_archive_extraction=$lock_old_archive_extraction
15582 # LTCC compiler flags.
15583 LTCFLAGS=$lt_CFLAGS
15585 # Take the output of nm and produce a listing of raw symbols and C names.
15586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15588 # Transform the output of nm in a proper C declaration.
15589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15591 # Transform the output of nm in a C name address pair.
15592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15594 # Transform the output of nm in a C name address pair when lib prefix is needed.
15595 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15597 # Specify filename containing input files for \$NM.
15598 nm_file_list_spec=$lt_nm_file_list_spec
15600 # The root where to search for dependent libraries,and in which our libraries should be installed.
15601 lt_sysroot=$lt_sysroot
15603 # The name of the directory that contains temporary libtool files.
15606 # Used to examine libraries when file_magic_cmd begins with "file".
15607 MAGIC_CMD=$MAGIC_CMD
15609 # Must we lock files when doing compilation?
15610 need_locks=$lt_need_locks
15613 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15615 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15616 DSYMUTIL=$lt_DSYMUTIL
15618 # Tool to change global to local symbols on Mac OS X.
15621 # Tool to manipulate fat objects and archives on Mac OS X.
15624 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15627 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15628 OTOOL64=$lt_OTOOL64
15630 # Old archive suffix (normally "a").
15633 # Shared library suffix (normally ".so").
15634 shrext_cmds=$lt_shrext_cmds
15636 # The commands to extract the exported symbol list from a shared archive.
15637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15639 # Variables whose values should be saved in libtool wrapper scripts and
15640 # restored at link time.
15641 variables_saved_for_relink=$lt_variables_saved_for_relink
15643 # Do we need the "lib" prefix for modules?
15644 need_lib_prefix=$need_lib_prefix
15646 # Do we need a version for libraries?
15647 need_version=$need_version
15649 # Library versioning type.
15650 version_type=$version_type
15652 # Shared library runtime path variable.
15653 runpath_var=$runpath_var
15655 # Shared library path variable.
15656 shlibpath_var=$shlibpath_var
15658 # Is shlibpath searched before the hard-coded library search path?
15659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15661 # Format of library name prefix.
15662 libname_spec=$lt_libname_spec
15664 # List of archive names. First name is the real one, the rest are links.
15665 # The last name is the one that the linker finds with -lNAME
15666 library_names_spec=$lt_library_names_spec
15668 # The coded name of the library, if different from the real name.
15669 soname_spec=$lt_soname_spec
15671 # Permission mode override for installation of shared libraries.
15672 install_override_mode=$lt_install_override_mode
15674 # Command to use after installation of a shared archive.
15675 postinstall_cmds=$lt_postinstall_cmds
15677 # Command to use after uninstallation of a shared archive.
15678 postuninstall_cmds=$lt_postuninstall_cmds
15680 # Commands used to finish a libtool library installation in a directory.
15681 finish_cmds=$lt_finish_cmds
15683 # As "finish_cmds", except a single script fragment to be evaled but
15685 finish_eval=$lt_finish_eval
15687 # Whether we should hardcode library paths into libraries.
15688 hardcode_into_libs=$hardcode_into_libs
15690 # Compile-time system search path for libraries.
15691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15693 # Run-time system search path for libraries.
15694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15696 # Whether dlopen is supported.
15697 dlopen_support=$enable_dlopen
15699 # Whether dlopen of programs is supported.
15700 dlopen_self=$enable_dlopen_self
15702 # Whether dlopen of statically linked programs is supported.
15703 dlopen_self_static=$enable_dlopen_self_static
15705 # Commands to strip libraries.
15706 old_striplib=$lt_old_striplib
15707 striplib=$lt_striplib
15710 # The linker used to build libraries.
15713 # How to create reloadable object files.
15714 reload_flag=$lt_reload_flag
15715 reload_cmds=$lt_reload_cmds
15717 # Commands used to build an old-style archive.
15718 old_archive_cmds=$lt_old_archive_cmds
15720 # A language specific compiler.
15723 # Is the compiler the GNU compiler?
15726 # Compiler flag to turn off builtin functions.
15727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15729 # Additional compiler flags for building library objects.
15730 pic_flag=$lt_lt_prog_compiler_pic
15732 # How to pass a linker flag through the compiler.
15733 wl=$lt_lt_prog_compiler_wl
15735 # Compiler flag to prevent dynamic linking.
15736 link_static_flag=$lt_lt_prog_compiler_static
15738 # Does compiler simultaneously support -c and -o options?
15739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15741 # Whether or not to add -lc for building shared libraries.
15742 build_libtool_need_lc=$archive_cmds_need_lc
15744 # Whether or not to disallow shared libs when runtime libs are static.
15745 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15747 # Compiler flag to allow reflexive dlopens.
15748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15750 # Compiler flag to generate shared objects directly from archives.
15751 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15753 # Whether the compiler copes with passing no objects directly.
15754 compiler_needs_object=$lt_compiler_needs_object
15756 # Create an old-style archive from a shared archive.
15757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15759 # Create a temporary old-style archive to link instead of a shared archive.
15760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15762 # Commands used to build a shared archive.
15763 archive_cmds=$lt_archive_cmds
15764 archive_expsym_cmds=$lt_archive_expsym_cmds
15766 # Commands used to build a loadable module if different from building
15767 # a shared archive.
15768 module_cmds=$lt_module_cmds
15769 module_expsym_cmds=$lt_module_expsym_cmds
15771 # Whether we are building with GNU ld or not.
15772 with_gnu_ld=$lt_with_gnu_ld
15774 # Flag that allows shared libraries with undefined symbols to be built.
15775 allow_undefined_flag=$lt_allow_undefined_flag
15777 # Flag that enforces no undefined symbols.
15778 no_undefined_flag=$lt_no_undefined_flag
15780 # Flag to hardcode \$libdir into a binary during linking.
15781 # This must work even if \$libdir does not exist
15782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15784 # Whether we need a single "-rpath" flag with a separated argument.
15785 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15787 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15788 # DIR into the resulting binary.
15789 hardcode_direct=$hardcode_direct
15791 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15792 # DIR into the resulting binary and the resulting library dependency is
15793 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15794 # library is relocated.
15795 hardcode_direct_absolute=$hardcode_direct_absolute
15797 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15798 # into the resulting binary.
15799 hardcode_minus_L=$hardcode_minus_L
15801 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15802 # into the resulting binary.
15803 hardcode_shlibpath_var=$hardcode_shlibpath_var
15805 # Set to "yes" if building a shared library automatically hardcodes DIR
15806 # into the library and all subsequent libraries and executables linked
15808 hardcode_automatic=$hardcode_automatic
15810 # Set to yes if linker adds runtime paths of dependent libraries
15811 # to runtime path list.
15812 inherit_rpath=$inherit_rpath
15814 # Whether libtool must link a program against all its dependency libraries.
15815 link_all_deplibs=$link_all_deplibs
15817 # Set to "yes" if exported symbols are required.
15818 always_export_symbols=$always_export_symbols
15820 # The commands to list exported symbols.
15821 export_symbols_cmds=$lt_export_symbols_cmds
15823 # Symbols that should not be listed in the preloaded symbols.
15824 exclude_expsyms=$lt_exclude_expsyms
15826 # Symbols that must always be exported.
15827 include_expsyms=$lt_include_expsyms
15829 # Commands necessary for linking programs (against libraries) with templates.
15830 prelink_cmds=$lt_prelink_cmds
15832 # Commands necessary for finishing linking programs.
15833 postlink_cmds=$lt_postlink_cmds
15835 # Specify filename containing input files.
15836 file_list_spec=$lt_file_list_spec
15838 # How to hardcode a shared library path into an executable.
15839 hardcode_action=$hardcode_action
15841 # ### END LIBTOOL CONFIG
15847 cat <<\_LT_EOF >> "$cfgfile"
15848 # AIX sometimes has problems with the GCC collect2 program. For some
15849 # reason, if we set the COLLECT_NAMES environment variable, the problems
15850 # vanish in a puff of smoke.
15851 if test "X${COLLECT_NAMES+set}" != Xset; then
15853 export COLLECT_NAMES
15860 ltmain="$ac_aux_dir/ltmain.sh"
15863 # We use sed instead of cat because bash on DJGPP gets confused if
15864 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15865 # text mode, it properly converts lines to CR/LF. This bash problem
15866 # is reportedly fixed, but why not run on old versions too?
15867 sed '$q' "$ltmain" >> "$cfgfile" \
15868 || (rm -f "$cfgfile"; exit 1)
15870 if test x"$xsi_shell" = xyes; then
15871 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15875 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15876 \ * ) func_dirname_result="${3}" ;;\
15878 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15879 && mv -f "$cfgfile.tmp" "$cfgfile" \
15880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15881 test 0 -eq $? || _lt_function_replace_fail=:
15884 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15887 \ func_basename_result="${1##*/}"\
15888 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15889 && mv -f "$cfgfile.tmp" "$cfgfile" \
15890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15891 test 0 -eq $? || _lt_function_replace_fail=:
15894 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15895 func_dirname_and_basename ()\
15898 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15899 \ * ) func_dirname_result="${3}" ;;\
15901 \ func_basename_result="${1##*/}"\
15902 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15903 && mv -f "$cfgfile.tmp" "$cfgfile" \
15904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15905 test 0 -eq $? || _lt_function_replace_fail=:
15908 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15911 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15912 \ # positional parameters, so assign one to ordinary parameter first.\
15913 \ func_stripname_result=${3}\
15914 \ func_stripname_result=${func_stripname_result#"${1}"}\
15915 \ func_stripname_result=${func_stripname_result%"${2}"}\
15916 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15917 && mv -f "$cfgfile.tmp" "$cfgfile" \
15918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15919 test 0 -eq $? || _lt_function_replace_fail=:
15922 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15923 func_split_long_opt ()\
15925 \ func_split_long_opt_name=${1%%=*}\
15926 \ func_split_long_opt_arg=${1#*=}\
15927 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15928 && mv -f "$cfgfile.tmp" "$cfgfile" \
15929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15930 test 0 -eq $? || _lt_function_replace_fail=:
15933 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15934 func_split_short_opt ()\
15936 \ func_split_short_opt_arg=${1#??}\
15937 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15938 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15939 && mv -f "$cfgfile.tmp" "$cfgfile" \
15940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15941 test 0 -eq $? || _lt_function_replace_fail=:
15944 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15948 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15949 \ *) func_lo2o_result=${1} ;;\
15951 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15952 && mv -f "$cfgfile.tmp" "$cfgfile" \
15953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15954 test 0 -eq $? || _lt_function_replace_fail=:
15957 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15960 func_xform_result=${1%.*}.lo\
15961 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15962 && mv -f "$cfgfile.tmp" "$cfgfile" \
15963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15964 test 0 -eq $? || _lt_function_replace_fail=:
15967 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15970 func_arith_result=$(( $* ))\
15971 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15972 && mv -f "$cfgfile.tmp" "$cfgfile" \
15973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15974 test 0 -eq $? || _lt_function_replace_fail=:
15977 sed -e '/^func_len ()$/,/^} # func_len /c\
15980 func_len_result=${#1}\
15981 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15982 && mv -f "$cfgfile.tmp" "$cfgfile" \
15983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15984 test 0 -eq $? || _lt_function_replace_fail=:
15988 if test x"$lt_shell_append" = xyes; then
15989 sed -e '/^func_append ()$/,/^} # func_append /c\
15992 eval "${1}+=\\${2}"\
15993 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15994 && mv -f "$cfgfile.tmp" "$cfgfile" \
15995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15996 test 0 -eq $? || _lt_function_replace_fail=:
15999 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16000 func_append_quoted ()\
16002 \ func_quote_for_eval "${2}"\
16003 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16004 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16005 && mv -f "$cfgfile.tmp" "$cfgfile" \
16006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16007 test 0 -eq $? || _lt_function_replace_fail=:
16010 # Save a `func_append' function call where possible by direct use of '+='
16011 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16012 && mv -f "$cfgfile.tmp" "$cfgfile" \
16013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16014 test 0 -eq $? || _lt_function_replace_fail=:
16016 # Save a `func_append' function call even when '+=' is not available
16017 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16018 && mv -f "$cfgfile.tmp" "$cfgfile" \
16019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16020 test 0 -eq $? || _lt_function_replace_fail=:
16023 if test x"$_lt_function_replace_fail" = x":"; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16025 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16029 mv -f "$cfgfile" "$ofile" ||
16030 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16041 ac_clean_files=$ac_clean_files_save
16043 test $ac_write_fail = 0 ||
16044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16047 # configure is writing to config.log, and then calls config.status.
16048 # config.status does its own redirection, appending to config.log.
16049 # Unfortunately, on DOS this fails, as config.log is still kept open
16050 # by configure, so config.status won't be able to write to it; its
16051 # output is simply discarded. So we exec the FD to /dev/null,
16052 # effectively closing config.log, so it can be properly (re)opened and
16053 # appended to by config.status. When coming back to configure, we
16054 # need to make the FD available again.
16055 if test "$no_create" != yes; then
16057 ac_config_status_args=
16058 test "$silent" = yes &&
16059 ac_config_status_args="$ac_config_status_args --quiet"
16061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16064 # would make configure fail if this is the last instruction.
16065 $ac_cs_success || as_fn_exit 1
16067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}