2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for wimlib 0.7.0.
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.7.0'
594 PACKAGE_STRING='wimlib 0.7.0'
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
707 INSTALL_STRIP_PROGRAM
749 program_transform_name
762 enable_option_checking
763 enable_dependency_tracking
776 enable_error_messages
777 enable_custom_memory_allocator
779 enable_verify_compression
785 ac_precious_vars='build_alias
796 # Initialize some variables set by options.
798 ac_init_version=false
799 ac_unrecognized_opts=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
954 -help | --help | --hel | --he | -h)
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1230 # Be sure to have absolute directory names.
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures wimlib 0.7.0 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/wimlib]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of wimlib 0.7.0:";;
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --disable-rpath do not hardcode runtime library paths
1422 --enable-debug include lots of debugging messages
1423 --enable-more-debug include even more debugging messages
1424 --disable-error-messages
1425 do not compile in error messsages
1426 --disable-custom-memory-allocator
1427 do not support the use of custom memory allocation
1429 --disable-assertions do not include assertions
1430 --disable-verify-compression
1431 disable checking if blocks we compress can be
1432 correctly decompressed
1433 --disable-security-data disable the ability to retain the security data of
1435 --enable-ssse3-sha1 use assembly language implementation of SHA1 from
1436 Intel, accelerated with vector instructions
1437 (SSSE3-enabled CPU required)
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot=DIR Search for dependent libraries within DIR
1446 (or the compiler's sysroot if not specified).
1447 --with-gnu-ld assume the C compiler uses GNU ld default=no
1448 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1449 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1450 --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
1451 --without-fuse build without libfuse. This will disable the ability
1453 --without-libcrypto build in the SHA1 algorithm, rather than use
1454 external libcrypto from OpenSSL (default is
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <ebiggers3@gmail.com>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 wimlib configure 0.7.0
1534 generated by GNU Autoconf 2.69
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1543 ## ------------------------ ##
1544 ## Autoconf initialization. ##
1545 ## ------------------------ ##
1547 # ac_fn_c_try_compile LINENO
1548 # --------------------------
1549 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_compile ()
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1583 } # ac_fn_c_try_compile
1585 # ac_fn_c_try_run LINENO
1586 # ----------------------
1587 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1588 # that executables *can* be run.
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_link"
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_link") 2>&5
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1603 { { case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_try") 2>&5
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; }; }; then :
1615 $as_echo "$as_me: program exited with status $ac_status" >&5
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1619 ac_retval=$ac_status
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1681 if ac_fn_c_try_compile "$LINENO"; then :
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 } # ac_fn_c_check_header_compile
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 test -x conftest$ac_exeext
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1754 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756 #define $2 innocuous_$2
1758 /* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (); below.
1760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761 <limits.h> exists even on freestanding compilers. */
1764 # include <limits.h>
1766 # include <assert.h>
1771 /* Override any GCC internal prototype to avoid an error.
1772 Use char because int might match the return type of a GCC
1773 builtin and then its argument prototype would still apply. */
1778 /* The GNU C library defines this for functions which it implements
1779 to always fail with ENOSYS. Some functions are actually named
1780 something starting with __ and the normal name is an alias. */
1781 #if defined __stub_$2 || defined __stub___$2
1793 if ac_fn_c_try_link "$LINENO"; then :
1798 rm -f core conftest.err conftest.$ac_objext \
1799 conftest$ac_exeext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_func
1807 cat >config.log <<_ACEOF
1808 This file contains any messages produced by compilers while
1809 running configure, to aid debugging if configure makes a mistake.
1811 It was created by wimlib $as_me 0.7.0, which was
1812 generated by GNU Autoconf 2.69. Invocation command line was
1824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 $as_echo "PATH: $as_dir"
1864 # Keep a trace of the command line.
1865 # Strip out --no-create and --no-recursion so they do not pile up.
1866 # Strip out --silent because we don't want to record it for future runs.
1867 # Also quote any args containing shell meta-characters.
1868 # Make two passes to allow for proper duplicate-argument suppression.
1872 ac_must_keep_next=false
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888 as_fn_append ac_configure_args1 " '$ac_arg'"
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 -* ) ac_must_keep_next=true ;;
1904 as_fn_append ac_configure_args " '$ac_arg'"
1909 { ac_configure_args0=; unset ac_configure_args0;}
1910 { ac_configure_args1=; unset ac_configure_args1;}
1912 # When interrupted or exit'd, cleanup temporary files, and complete
1913 # config.log. We remove comments because anyway the quotes in there
1914 # would cause problems or look ugly.
1915 # WARNING: Use '\'' to represent an apostrophe within the trap.
1916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917 trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1922 $as_echo "## ---------------- ##
1923 ## Cache variables. ##
1924 ## ---------------- ##"
1926 # The following way of writing the cache mishandles newlines in values,
1928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1929 eval ac_val=\$$ac_var
1933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 _ | IFS | as_nl) ;; #(
1938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1939 *) { eval $ac_var=; unset $ac_var;} ;;
1944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1945 *${as_nl}ac_space=\ *)
1947 "s/'\''/'\''\\\\'\'''\''/g;
1948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1958 $as_echo "## ----------------- ##
1959 ## Output variables. ##
1960 ## ----------------- ##"
1962 for ac_var in $ac_subst_vars
1964 eval ac_val=\$$ac_var
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968 $as_echo "$ac_var='\''$ac_val'\''"
1972 if test -n "$ac_subst_files"; then
1973 $as_echo "## ------------------- ##
1974 ## File substitutions. ##
1975 ## ------------------- ##"
1977 for ac_var in $ac_subst_files
1979 eval ac_val=\$$ac_var
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 $as_echo "$ac_var='\''$ac_val'\''"
1988 if test -s confdefs.h; then
1989 $as_echo "## ----------- ##
1996 test "$ac_signal" != 0 &&
1997 $as_echo "$as_me: caught signal $ac_signal"
1998 $as_echo "$as_me: exit $exit_status"
2000 rm -f core *.core core.conftest.* &&
2001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004 for ac_signal in 1 2 13 15; do
2005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2010 rm -f -r conftest* confdefs.h
2012 $as_echo "/* confdefs.h */" > confdefs.h
2014 # Predefined preprocessor variables.
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_NAME "$PACKAGE_NAME"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_STRING "$PACKAGE_STRING"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_URL "$PACKAGE_URL"
2041 # Let the site file select an alternate cache file if it wants to.
2042 # Prefer an explicitly selected file to automatically selected ones.
2045 if test -n "$CONFIG_SITE"; then
2046 # We do not want a PATH search for config.site.
2047 case $CONFIG_SITE in #((
2048 -*) ac_site_file1=./$CONFIG_SITE;;
2049 */*) ac_site_file1=$CONFIG_SITE;;
2050 *) ac_site_file1=./$CONFIG_SITE;;
2052 elif test "x$prefix" != xNONE; then
2053 ac_site_file1=$prefix/share/config.site
2054 ac_site_file2=$prefix/etc/config.site
2056 ac_site_file1=$ac_default_prefix/share/config.site
2057 ac_site_file2=$ac_default_prefix/etc/config.site
2059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2061 test "x$ac_site_file" = xNONE && continue
2062 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2064 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2065 sed 's/^/| /' "$ac_site_file" >&5
2067 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069 as_fn_error $? "failed to load site script $ac_site_file
2070 See \`config.log' for more details" "$LINENO" 5; }
2074 if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special files
2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2091 # Check that the precious variables saved in the cache have kept the same
2093 ac_cache_corrupted=false
2094 for ac_var in $ac_precious_vars; do
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
2099 case $ac_old_set,$ac_new_set in
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2141 if $ac_cache_corrupted; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2148 ## -------------------- ##
2149 ## Main body of script. ##
2150 ## -------------------- ##
2153 ac_cpp='$CPP $CPPFLAGS'
2154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160 am__api_version='1.12'
2163 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2164 if test -f "$ac_dir/install-sh"; then
2166 ac_install_sh="$ac_aux_dir/install-sh -c"
2168 elif test -f "$ac_dir/install.sh"; then
2170 ac_install_sh="$ac_aux_dir/install.sh -c"
2172 elif test -f "$ac_dir/shtool"; then
2174 ac_install_sh="$ac_aux_dir/shtool install -c"
2178 if test -z "$ac_aux_dir"; then
2179 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2191 # Find a good install program. We prefer a C program (faster),
2192 # so one script is as good as another. But avoid the broken or
2193 # incompatible versions:
2194 # SysV /etc/install, /usr/sbin/install
2195 # SunOS /usr/etc/install
2196 # IRIX /sbin/install
2198 # AmigaOS /C/install, which installs bootblocks on floppy discs
2199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2202 # OS/2's system install, which has a completely different semantic
2203 # ./install, which can be erroneously created by make from ./install.sh.
2204 # Reject install programs that cannot install multiple files.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2207 if test -z "$INSTALL"; then
2208 if ${ac_cv_path_install+:} false; then :
2209 $as_echo_n "(cached) " >&6
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 test -z "$as_dir" && as_dir=.
2216 # Account for people who put trailing slashes in PATH elements.
2217 case $as_dir/ in #((
2218 ./ | .// | /[cC]/* | \
2219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2223 # OSF1 and SCO ODT 3.0 have their own names for install.
2224 # Don't use installbsd from OSF since it installs stuff as root
2226 for ac_prog in ginstall scoinst install; do
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2229 if test $ac_prog = install &&
2230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231 # AIX install. It has an incompatible calling convention.
2233 elif test $ac_prog = install &&
2234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235 # program-specific install script used by HP pwplus--don't use.
2238 rm -rf conftest.one conftest.two conftest.dir
2239 echo one > conftest.one
2240 echo two > conftest.two
2242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2243 test -s conftest.one && test -s conftest.two &&
2244 test -s conftest.dir/conftest.one &&
2245 test -s conftest.dir/conftest.two
2247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260 rm -rf conftest.one conftest.two conftest.dir
2263 if test "${ac_cv_path_install+set}" = set; then
2264 INSTALL=$ac_cv_path_install
2266 # As a last resort, use the slow shell script. Don't cache a
2267 # value for INSTALL within a source directory, because that will
2268 # break other packages using the cache if that directory is
2269 # removed, or if the value is a relative name.
2270 INSTALL=$ac_install_sh
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2274 $as_echo "$INSTALL" >&6; }
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2285 $as_echo_n "checking whether build environment is sane... " >&6; }
2286 # Reject unsafe characters in $srcdir or the absolute working directory
2287 # name. Accept space and tab only in the latter.
2291 *[\\\"\#\$\&\'\`$am_lf]*)
2292 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2296 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2299 # Do 'set' in a subshell so we don't clobber the current shell's
2300 # arguments. Must try -L first in case configure is actually a
2301 # symlink; some systems play weird games with the mod time of symlinks
2302 # (eg FreeBSD returns the mod time of the symlink's containing
2306 for am_try in 1 2; do
2307 echo "timestamp, slept: $am_has_slept" > conftest.file
2308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2309 if test "$*" = "X"; then
2311 set X `ls -t "$srcdir/configure" conftest.file`
2313 if test "$*" != "X $srcdir/configure conftest.file" \
2314 && test "$*" != "X conftest.file $srcdir/configure"; then
2316 # If neither matched, then we have a broken ls. This can happen
2317 # if, for instance, CONFIG_SHELL is bash and it inherits a
2318 # broken ls alias from the environment. This has actually
2319 # happened. Such a system could not be considered "sane".
2320 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2321 alias in your environment" "$LINENO" 5
2323 if test "$2" = conftest.file || test $am_try -eq 2; then
2330 test "$2" = conftest.file
2336 as_fn_error $? "newly created file is older than distributed files!
2337 Check your system clock" "$LINENO" 5
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2340 $as_echo "yes" >&6; }
2341 # If we didn't sleep, we still need to ensure time stamps of config.status and
2342 # generated files are strictly newer.
2344 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2351 test "$program_prefix" != NONE &&
2352 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2353 # Use a double $ so make ignores it.
2354 test "$program_suffix" != NONE &&
2355 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2356 # Double any \ or $.
2357 # By default was `s,x,x', remove it if useless.
2358 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2359 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2361 # expand $ac_aux_dir to an absolute path
2362 am_aux_dir=`cd $ac_aux_dir && pwd`
2364 if test x"${MISSING+set}" != xset; then
2367 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2369 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2372 # Use eval to expand $SHELL
2373 if eval "$MISSING --run true"; then
2374 am_missing_run="$MISSING --run "
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2378 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2381 if test x"${install_sh}" != xset; then
2384 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2386 install_sh="\${SHELL} $am_aux_dir/install-sh"
2390 # Installed binaries are usually stripped using 'strip' when the user
2391 # run "make install-strip". However 'strip' might not be the right
2392 # tool to use in cross-compilation environments, therefore Automake
2393 # will honor the 'STRIP' environment variable to overrule this program.
2394 if test "$cross_compiling" != no; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}strip; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_STRIP+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 if test -n "$STRIP"; then
2404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 STRIP=$ac_cv_prog_STRIP
2424 if test -n "$STRIP"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2426 $as_echo "$STRIP" >&6; }
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2434 if test -z "$ac_cv_prog_STRIP"; then
2436 # Extract the first word of "strip", so it can be a program name with args.
2437 set dummy strip; ac_word=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$ac_ct_STRIP"; then
2444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_ac_ct_STRIP="strip"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2464 if test -n "$ac_ct_STRIP"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2466 $as_echo "$ac_ct_STRIP" >&6; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2472 if test "x$ac_ct_STRIP" = x; then
2475 case $cross_compiling:$ac_tool_warned in
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2479 ac_tool_warned=yes ;;
2484 STRIP="$ac_cv_prog_STRIP"
2488 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2491 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2492 if test -z "$MKDIR_P"; then
2493 if ${ac_cv_path_mkdir+:} false; then :
2494 $as_echo_n "(cached) " >&6
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2500 test -z "$as_dir" && as_dir=.
2501 for ac_prog in mkdir gmkdir; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2504 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2505 'mkdir (GNU coreutils) '* | \
2506 'mkdir (coreutils) '* | \
2507 'mkdir (fileutils) '4.1*)
2508 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2518 test -d ./--version && rmdir ./--version
2519 if test "${ac_cv_path_mkdir+set}" = set; then
2520 MKDIR_P="$ac_cv_path_mkdir -p"
2522 # As a last resort, use the slow shell script. Don't cache a
2523 # value for MKDIR_P within a source directory, because that will
2524 # break other packages using the cache if that directory is
2525 # removed, or if the value is a relative name.
2526 MKDIR_P="$ac_install_sh -d"
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2530 $as_echo "$MKDIR_P" >&6; }
2534 [\\/$]* | ?:[\\/]*) ;;
2535 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2538 for ac_prog in gawk mawk nawk awk
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_AWK+:} false; then :
2545 $as_echo_n "(cached) " >&6
2547 if test -n "$AWK"; then
2548 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_AWK="$ac_prog"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 if test -n "$AWK"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2570 $as_echo "$AWK" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2577 test -n "$AWK" && break
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2581 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2585 $as_echo_n "(cached) " >&6
2587 cat >conftest.make <<\_ACEOF
2590 @echo '@@@%%%=$(MAKE)=@@@%%%'
2592 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2593 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595 eval ac_cv_prog_make_${ac_make}_set=yes;;
2597 eval ac_cv_prog_make_${ac_make}_set=no;;
2601 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 SET_MAKE="MAKE=${MAKE-make}"
2611 rm -rf .tst 2>/dev/null
2612 mkdir .tst 2>/dev/null
2613 if test -d .tst; then
2618 rmdir .tst 2>/dev/null
2620 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2621 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2622 # is not polluted with repeated "-I."
2623 am__isrc=' -I$(srcdir)'
2624 # test to see if srcdir already configured
2625 if test -f $srcdir/config.status; then
2626 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2630 # test whether we have cygpath
2631 if test -z "$CYGPATH_W"; then
2632 if (cygpath --version) >/dev/null 2>/dev/null; then
2633 CYGPATH_W='cygpath -w'
2640 # Define the identity of the package.
2645 cat >>confdefs.h <<_ACEOF
2646 #define PACKAGE "$PACKAGE"
2650 cat >>confdefs.h <<_ACEOF
2651 #define VERSION "$VERSION"
2654 # Some tools Automake needs.
2656 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2659 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2662 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2668 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2670 # We need awk for the "check" target. The system "awk" is bad on
2672 # Always define AMTAR for backward compatibility. Yes, it's still used
2673 # in the wild :-( We should find a proper way to deprecate it ...
2676 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2683 DEPDIR="${am__leading_dot}deps"
2685 ac_config_commands="$ac_config_commands depfiles"
2688 am_make=${MAKE-make}
2689 cat > confinc << 'END'
2691 @echo this is the am__doit target
2694 # If we don't find an include directive, just comment out the code.
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2696 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2700 # First try GNU make style include.
2701 echo "include confinc" > confmf
2702 # Ignore all kinds of additional output from 'make'.
2703 case `$am_make -s -f confmf 2> /dev/null` in #(
2704 *the\ am__doit\ target*)
2710 # Now try BSD make style include.
2711 if test "$am__include" = "#"; then
2712 echo '.include "confinc"' > confmf
2713 case `$am_make -s -f confmf 2> /dev/null` in #(
2714 *the\ am__doit\ target*)
2715 am__include=.include
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2724 $as_echo "$_am_result" >&6; }
2725 rm -f confinc confmf
2727 # Check whether --enable-dependency-tracking was given.
2728 if test "${enable_dependency_tracking+set}" = set; then :
2729 enableval=$enable_dependency_tracking;
2732 if test "x$enable_dependency_tracking" != xno; then
2733 am_depcomp="$ac_aux_dir/depcomp"
2737 if test "x$enable_dependency_tracking" != xno; then
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if ${ac_cv_prog_CC+:} false; then :
2757 $as_echo_n "(cached) " >&6
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$ac_cv_prog_CC"; then
2792 # Extract the first word of "gcc", so it can be a program name with args.
2793 set dummy gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2797 $as_echo_n "(cached) " >&6
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_ac_ct_CC="gcc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822 $as_echo "$ac_ct_CC" >&6; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2828 if test "x$ac_ct_CC" = x; then
2831 case $cross_compiling:$ac_tool_warned in
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2843 if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}cc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850 $as_echo_n "(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected=yes
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 if test $ac_prog_rejected = yes; then
2916 # We found a bogon in the path, so make sure we never use it.
2917 set dummy $ac_cv_prog_CC
2919 if test $# != 0; then
2920 # We chose a different compiler from the bogus one.
2921 # However, it has the same basename, so the bogon will be chosen
2922 # first if we set CC to just the basename; use the full file name.
2924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in cl.exe
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CC+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CC" && break
2984 if test -z "$CC"; then
2986 for ac_prog in cl.exe
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_ac_ct_CC="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016 if test -n "$ac_ct_CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018 $as_echo "$ac_ct_CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CC" && break
3028 if test "x$ac_ct_CC" = x; then
3031 case $cross_compiling:$ac_tool_warned in
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error $? "no acceptable C compiler found in \$PATH
3047 See \`config.log' for more details" "$LINENO" 5; }
3049 # Provide some information about the compiler.
3050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3053 for ac_option in --version -v -V -qversion; do
3054 { { ac_try="$ac_compiler $ac_option >&5"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3063 if test -s conftest.err; then
3065 ... rest of stderr output deleted ...
3066 10q' conftest.err >conftest.er1
3067 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3085 ac_clean_files_save=$ac_clean_files
3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3087 # Try to create an executable without -o first, disregard a.out.
3088 # It will help us diagnose broken compilers, and finding out an intuition
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3091 $as_echo_n "checking whether the C compiler works... " >&6; }
3092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094 # The possible output files:
3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3098 for ac_file in $ac_files
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3107 if { { ac_try="$ac_link_default"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link_default") 2>&5
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3121 # so that the user can short-circuit this test for compilers unknown to
3123 for ac_file in $ac_files ''
3125 test -f "$ac_file" || continue
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3130 # We found the default executable, but exeext='' is most
3134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 # We set ac_cv_exeext here because the later test for it is not
3139 # safe: cross compilers may not add the suffix if given an `-o'
3140 # argument, so we may need to know it at that point already.
3141 # Even if this section looks crufty: it has the advantage of
3148 test "$ac_cv_exeext" = no && ac_cv_exeext=
3153 if test -z "$ac_file"; then :
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error 77 "C compiler cannot create executables
3162 See \`config.log' for more details" "$LINENO" 5; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3168 $as_echo_n "checking for C compiler default output file name... " >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3170 $as_echo "$ac_file" >&6; }
3171 ac_exeext=$ac_cv_exeext
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3174 ac_clean_files=$ac_clean_files_save
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 $as_echo_n "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_link") 2>&5
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3192 for ac_file in conftest.exe conftest conftest.*; do
3193 test -f "$ac_file" || continue
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details" "$LINENO" 5; }
3207 rm -f conftest conftest$ac_cv_exeext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209 $as_echo "$ac_cv_exeext" >&6; }
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3220 FILE *f = fopen ("conftest.out", "w");
3221 return ferror (f) || fclose (f) != 0;
3227 ac_clean_files="$ac_clean_files conftest.out"
3228 # Check that the compiler produces executables we can run. If not, either
3229 # the compiler is broken, or we cross compile.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3231 $as_echo_n "checking whether we are cross compiling... " >&6; }
3232 if test "$cross_compiling" != yes; then
3233 { { ac_try="$ac_link"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }
3244 if { ac_try='./conftest$ac_cv_exeext'
3245 { { case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_try") 2>&5
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }; }; then
3257 if test "$cross_compiling" = maybe; then
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot run C compiled programs.
3263 If you meant to cross compile, use \`--host'.
3264 See \`config.log' for more details" "$LINENO" 5; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3269 $as_echo "$cross_compiling" >&6; }
3271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3274 $as_echo_n "checking for suffix of object files... " >&6; }
3275 if ${ac_cv_objext+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 rm -f conftest.o conftest.obj
3290 if { { ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compile") 2>&5
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 for ac_file in conftest.o conftest.obj conftest.*; do
3302 test -f "$ac_file" || continue;
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3321 $as_echo "$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3326 if ${ac_cv_c_compiler_gnu+:} false; then :
3327 $as_echo_n "(cached) " >&6
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3343 if ac_fn_c_try_compile "$LINENO"; then :
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3353 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3354 if test $ac_compiler_gnu = yes; then
3359 ac_test_CFLAGS=${CFLAGS+set}
3360 ac_save_CFLAGS=$CFLAGS
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3362 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3363 if ${ac_cv_prog_cc_g+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 ac_save_c_werror_flag=$ac_c_werror_flag
3367 ac_c_werror_flag=yes
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3396 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_c_werror_flag=$ac_save_c_werror_flag
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_c_werror_flag=$ac_save_c_werror_flag
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3423 $as_echo "$ac_cv_prog_cc_g" >&6; }
3424 if test "$ac_test_CFLAGS" = set; then
3425 CFLAGS=$ac_save_CFLAGS
3426 elif test $ac_cv_prog_cc_g = yes; then
3427 if test "$GCC" = yes; then
3433 if test "$GCC" = yes; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3441 if ${ac_cv_prog_cc_c89+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 ac_cv_prog_cc_c89=no
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3465 s = g (p, va_arg (v,int));
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3471 function prototypes and stuff, but not '\xHH' hex character constants.
3472 These don't provoke an error unfortunately, instead are silently treated
3473 as 'x'. The following induces an error, until -std is added to get
3474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3475 array size at least. It's necessary to write '\x00'==0 to get something
3476 that's true only with -std. */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480 inside strings and character constants. */
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503 ac_cv_prog_cc_c89=$ac_arg
3505 rm -f core conftest.err conftest.$ac_objext
3506 test "x$ac_cv_prog_cc_c89" != "xno" && break
3508 rm -f conftest.$ac_ext
3513 case "x$ac_cv_prog_cc_c89" in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3521 CC="$CC $ac_cv_prog_cc_c89"
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3525 if test "x$ac_cv_prog_cc_c89" != xno; then :
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 depcc="$CC" am_compiler_list=
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3538 $as_echo_n "checking dependency style of $depcc... " >&6; }
3539 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543 # We make a subdir and do the tests there. Otherwise we can end up
3544 # making bogus files that we don't know about and never remove. For
3545 # instance it was reported that on HP-UX the gcc test will end up
3546 # making a dummy file named 'D' -- because '-MD' means "put the output
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 case " $depcc " in #(
3568 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3571 for depmode in $am_compiler_list; do
3572 # Setup a source with many dependencies, because some compilers
3573 # like to wrap large dependency lists on column 80 (with \), and
3574 # we should not choose a depcomp mode which is confused by this.
3576 # We need to recreate these files for each test, as the compiler may
3577 # overwrite some of them when testing with obscure command lines.
3578 # This happens at least with the AIX C compiler.
3580 for i in 1 2 3 4 5 6; do
3581 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3582 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3583 # Solaris 10 /bin/sh.
3584 echo '/* dummy */' > sub/conftst$i.h
3586 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3588 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3589 # mode. It turns out that the SunPro C++ compiler does not properly
3590 # handle '-M -o', and we need to detect this. Also, some Intel
3591 # versions had trouble with output in subdirs.
3592 am__obj=sub/conftest.${OBJEXT-o}
3593 am__minus_obj="-o $am__obj"
3596 # This depmode causes a compiler race in universal mode.
3597 test "$am__universal" = false || continue
3600 # After this tag, mechanisms are not by side-effect, so they'll
3601 # only be used when explicitly requested.
3602 if test "x$enable_dependency_tracking" = xyes; then
3608 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3609 # This compiler won't grok '-c -o', but also, the minuso test has
3610 # not run yet. These depmodes are late enough in the game, and
3611 # so weak that their functioning should not be impacted.
3612 am__obj=conftest.${OBJEXT-o}
3617 if depmode=$depmode \
3618 source=sub/conftest.c object=$am__obj \
3619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3620 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3621 >/dev/null 2>conftest.err &&
3622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3624 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3626 # icc doesn't choke on unknown options, it will just issue warnings
3627 # or remarks (even with -Werror). So we grep stderr for any message
3628 # that says an option was ignored or not supported.
3629 # When given -MP, icc 7.0 and 7.1 complain thusly:
3630 # icc: Command line warning: ignoring option '-M'; no argument required
3631 # The diagnosis changed in icc 8.0:
3632 # icc: Command line remark: option '-MP' not supported
3633 if (grep 'ignoring option' conftest.err ||
3634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3635 am_cv_CC_dependencies_compiler_type=$depmode
3644 am_cv_CC_dependencies_compiler_type=none
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3649 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3650 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3656 am__fastdepCC_FALSE='#'
3658 am__fastdepCC_TRUE='#'
3659 am__fastdepCC_FALSE=
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3675 if test -z "$CPP"; then
3676 if ${ac_cv_prog_CPP+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 # Double quotes because CPP needs to be expanded
3680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3694 # include <limits.h>
3696 # include <assert.h>
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3703 # Broken: fails on valid input.
3706 rm -f conftest.err conftest.i conftest.$ac_ext
3708 # OK, works on sane cases. Now check whether nonexistent headers
3709 # can be detected and how.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <ac_nonexistent.h>
3714 if ac_fn_c_try_cpp "$LINENO"; then :
3715 # Broken: success on invalid input.
3718 # Passes both tests.
3722 rm -f conftest.err conftest.i conftest.$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.i conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3740 $as_echo "$CPP" >&6; }
3742 for ac_c_preproc_warn_flag in '' yes
3744 # Use a header file that comes with gcc, so configuring glibc
3745 # with a fresh cross-compiler works.
3746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3747 # <limits.h> exists even on freestanding compilers.
3748 # On the NeXT, cc -E runs the code through the compiler's parser,
3749 # not just through cpp. "Syntax error" is here to catch this case.
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3753 # include <limits.h>
3755 # include <assert.h>
3759 if ac_fn_c_try_cpp "$LINENO"; then :
3762 # Broken: fails on valid input.
3765 rm -f conftest.err conftest.i conftest.$ac_ext
3767 # OK, works on sane cases. Now check whether nonexistent headers
3768 # can be detected and how.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <ac_nonexistent.h>
3773 if ac_fn_c_try_cpp "$LINENO"; then :
3774 # Broken: success on invalid input.
3777 # Passes both tests.
3781 rm -f conftest.err conftest.i conftest.$ac_ext
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.i conftest.err conftest.$ac_ext
3786 if $ac_preproc_ok; then :
3789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details" "$LINENO" 5; }
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3803 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3804 if ${ac_cv_path_GREP+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -z "$GREP"; then
3808 ac_path_GREP_found=false
3809 # Loop through the user's path and test for each of PROGNAME-LIST
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3814 test -z "$as_dir" && as_dir=.
3815 for ac_prog in grep ggrep; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3818 as_fn_executable_p "$ac_path_GREP" || continue
3819 # Check for GNU ac_path_GREP and select it if it is found.
3820 # Check for GNU $ac_path_GREP
3821 case `"$ac_path_GREP" --version 2>&1` in
3823 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3826 $as_echo_n 0123456789 >"conftest.in"
3829 cat "conftest.in" "conftest.in" >"conftest.tmp"
3830 mv "conftest.tmp" "conftest.in"
3831 cp "conftest.in" "conftest.nl"
3832 $as_echo 'GREP' >> "conftest.nl"
3833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3835 as_fn_arith $ac_count + 1 && ac_count=$as_val
3836 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3837 # Best one so far, save it but keep looking for a better one
3838 ac_cv_path_GREP="$ac_path_GREP"
3839 ac_path_GREP_max=$ac_count
3841 # 10*(2^10) chars as input seems more than enough
3842 test $ac_count -gt 10 && break
3844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3847 $ac_path_GREP_found && break 3
3852 if test -z "$ac_cv_path_GREP"; then
3853 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3856 ac_cv_path_GREP=$GREP
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3861 $as_echo "$ac_cv_path_GREP" >&6; }
3862 GREP="$ac_cv_path_GREP"
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3866 $as_echo_n "checking for egrep... " >&6; }
3867 if ${ac_cv_path_EGREP+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3871 then ac_cv_path_EGREP="$GREP -E"
3873 if test -z "$EGREP"; then
3874 ac_path_EGREP_found=false
3875 # Loop through the user's path and test for each of PROGNAME-LIST
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in egrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3884 as_fn_executable_p "$ac_path_EGREP" || continue
3885 # Check for GNU ac_path_EGREP and select it if it is found.
3886 # Check for GNU $ac_path_EGREP
3887 case `"$ac_path_EGREP" --version 2>&1` in
3889 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3892 $as_echo_n 0123456789 >"conftest.in"
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 $as_echo 'EGREP' >> "conftest.nl"
3899 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 as_fn_arith $ac_count + 1 && ac_count=$as_val
3902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_EGREP="$ac_path_EGREP"
3905 ac_path_EGREP_max=$ac_count
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913 $ac_path_EGREP_found && break 3
3918 if test -z "$ac_cv_path_EGREP"; then
3919 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3922 ac_cv_path_EGREP=$EGREP
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3928 $as_echo "$ac_cv_path_EGREP" >&6; }
3929 EGREP="$ac_cv_path_EGREP"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3933 $as_echo_n "checking for ANSI C header files... " >&6; }
3934 if ${ac_cv_header_stdc+:} false; then :
3935 $as_echo_n "(cached) " >&6
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_header_stdc=yes
3955 ac_cv_header_stdc=no
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 if test $ac_cv_header_stdc = yes; then
3960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 $EGREP "memchr" >/dev/null 2>&1; then :
3970 ac_cv_header_stdc=no
3976 if test $ac_cv_header_stdc = yes; then
3977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 $EGREP "free" >/dev/null 2>&1; then :
3987 ac_cv_header_stdc=no
3993 if test $ac_cv_header_stdc = yes; then
3994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3995 if test "$cross_compiling" = yes; then :
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4002 #if ((' ' & 0x0FF) == 0x020)
4003 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4004 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4006 # define ISLOWER(c) \
4007 (('a' <= (c) && (c) <= 'i') \
4008 || ('j' <= (c) && (c) <= 'r') \
4009 || ('s' <= (c) && (c) <= 'z'))
4010 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4013 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4018 for (i = 0; i < 256; i++)
4019 if (XOR (islower (i), ISLOWER (i))
4020 || toupper (i) != TOUPPER (i))
4025 if ac_fn_c_try_run "$LINENO"; then :
4028 ac_cv_header_stdc=no
4030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4031 conftest.$ac_objext conftest.beam conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4037 $as_echo "$ac_cv_header_stdc" >&6; }
4038 if test $ac_cv_header_stdc = yes; then
4040 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4046 inttypes.h stdint.h unistd.h
4048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4052 cat >>confdefs.h <<_ACEOF
4053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4062 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4063 if ${ac_cv_c_bigendian+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 ac_cv_c_bigendian=unknown
4067 # See if we're dealing with a universal compiler.
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070 #ifndef __APPLE_CC__
4071 not a universal capable compiler
4076 if ac_fn_c_try_compile "$LINENO"; then :
4078 # Check for potential -arch flags. It is not universal unless
4079 # there are at least two -arch flags with different values.
4082 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4083 if test -n "$ac_prev"; then
4085 i?86 | x86_64 | ppc | ppc64)
4086 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4089 ac_cv_c_bigendian=universal
4095 elif test "x$ac_word" = "x-arch"; then
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test $ac_cv_c_bigendian = unknown; then
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <sys/types.h>
4106 #include <sys/param.h>
4111 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4112 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 # It does; now see whether it defined to BIG_ENDIAN or not.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/param.h>
4131 #if BYTE_ORDER != BIG_ENDIAN
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_c_bigendian=yes
4142 ac_cv_c_bigendian=no
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_c_bigendian = unknown; then
4149 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4157 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 # It does; now see whether it defined to _BIG_ENDIAN or not.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_c_bigendian=yes
4185 ac_cv_c_bigendian=no
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 if test $ac_cv_c_bigendian = unknown; then
4192 # Compile a test program.
4193 if test "$cross_compiling" = yes; then :
4194 # Try to guess by grepping values from an object file.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 short int ascii_mm[] =
4198 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4199 short int ascii_ii[] =
4200 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4201 int use_ascii (int i) {
4202 return ascii_mm[i] + ascii_ii[i];
4204 short int ebcdic_ii[] =
4205 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4206 short int ebcdic_mm[] =
4207 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4208 int use_ebcdic (int i) {
4209 return ebcdic_mm[i] + ebcdic_ii[i];
4216 return use_ascii (foo) == use_ebcdic (foo);
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4223 ac_cv_c_bigendian=yes
4225 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4226 if test "$ac_cv_c_bigendian" = unknown; then
4227 ac_cv_c_bigendian=no
4229 # finding both strings is unlikely to happen, but who knows?
4230 ac_cv_c_bigendian=unknown
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 $ac_includes_default
4243 /* Are we little or big endian? From Harbison&Steele. */
4247 char c[sizeof (long int)];
4250 return u.c[sizeof (long int) - 1] == 1;
4256 if ac_fn_c_try_run "$LINENO"; then :
4257 ac_cv_c_bigendian=no
4259 ac_cv_c_bigendian=yes
4261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4262 conftest.$ac_objext conftest.beam conftest.$ac_ext
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4268 $as_echo "$ac_cv_c_bigendian" >&6; }
4269 case $ac_cv_c_bigendian in #(
4271 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4277 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4281 as_fn_error $? "unknown endianness
4282 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog in ar lib "link -lib"
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_AR+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$AR"; then
4296 ac_cv_prog_AR="$AR" # Let the user override the test.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$AR"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318 $as_echo "$AR" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$AR" && break
4328 if test -z "$AR"; then
4330 for ac_prog in ar lib "link -lib"
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_AR="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$ac_ct_AR" && break
4372 if test "x$ac_ct_AR" = x; then
4375 case $cross_compiling:$ac_tool_warned in
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4388 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4389 if ${am_cv_ar_interface+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 am_cv_ar_interface=ar
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 int some_variable = 0;
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4400 (eval $am_ar_try) 2>&5
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 if test "$ac_status" -eq 0; then
4405 am_cv_ar_interface=ar
4407 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4409 (eval $am_ar_try) 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }
4413 if test "$ac_status" -eq 0; then
4414 am_cv_ar_interface=lib
4416 am_cv_ar_interface=unknown
4419 rm -f conftest.lib libconftest.a
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4426 $as_echo "$am_cv_ar_interface" >&6; }
4428 case $am_cv_ar_interface in
4432 # Microsoft lib, so override with the ar-lib wrapper script.
4433 # FIXME: It is wrong to rewrite AR.
4434 # But if we don't then we get into trouble of one sort or another.
4435 # A longer-term fix would be to have automake use am__AR in this case,
4436 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4438 AR="$am_aux_dir/ar-lib $AR"
4441 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4448 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4453 macro_version='2.4.2'
4454 macro_revision='1.3337'
4468 ltmain="$ac_aux_dir/ltmain.sh"
4470 # Make sure we can run config.sub.
4471 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475 $as_echo_n "checking build system type... " >&6; }
4476 if ${ac_cv_build+:} false; then :
4477 $as_echo_n "(cached) " >&6
4479 ac_build_alias=$build_alias
4480 test "x$ac_build_alias" = x &&
4481 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482 test "x$ac_build_alias" = x &&
4483 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4484 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489 $as_echo "$ac_cv_build" >&6; }
4490 case $ac_cv_build in
4492 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4495 ac_save_IFS=$IFS; IFS='-'
4501 # Remember, the first character of IFS is used to create $*,
4502 # except with old shells:
4505 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509 $as_echo_n "checking host system type... " >&6; }
4510 if ${ac_cv_host+:} false; then :
4511 $as_echo_n "(cached) " >&6
4513 if test "x$host_alias" = x; then
4514 ac_cv_host=$ac_cv_build
4516 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522 $as_echo "$ac_cv_host" >&6; }
4525 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4528 ac_save_IFS=$IFS; IFS='-'
4534 # Remember, the first character of IFS is used to create $*,
4535 # except with old shells:
4538 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4541 # Backslashify metacharacters that are still active within
4542 # double-quoted strings.
4543 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4545 # Same as above, but do not quote variable references.
4546 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4548 # Sed substitution to delay expansion of an escaped shell variable in a
4549 # double_quote_subst'ed string.
4550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4552 # Sed substitution to delay expansion of an escaped single quote.
4553 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4555 # Sed substitution to avoid accidental globbing in evaled expressions
4556 no_glob_subst='s/\*/\\\*/g'
4558 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4559 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4560 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4563 $as_echo_n "checking how to print strings... " >&6; }
4564 # Test print first, because it will be a builtin if present.
4565 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4566 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4568 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4571 # Use this function as a fallback that always works.
4572 func_fallback_echo ()
4574 eval 'cat <<_LTECHO_EOF
4578 ECHO='func_fallback_echo'
4581 # func_echo_all arg...
4582 # Invoke $ECHO with all args, space-separated.
4589 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4590 $as_echo "printf" >&6; } ;;
4591 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4592 $as_echo "print -r" >&6; } ;;
4593 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4594 $as_echo "cat" >&6; } ;;
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4611 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4612 if ${ac_cv_path_SED+:} false; then :
4613 $as_echo_n "(cached) " >&6
4615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4616 for ac_i in 1 2 3 4 5 6 7; do
4617 ac_script="$ac_script$as_nl$ac_script"
4619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4620 { ac_script=; unset ac_script;}
4621 if test -z "$SED"; then
4622 ac_path_SED_found=false
4623 # Loop through the user's path and test for each of PROGNAME-LIST
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_prog in sed gsed; do
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4632 as_fn_executable_p "$ac_path_SED" || continue
4633 # Check for GNU ac_path_SED and select it if it is found.
4634 # Check for GNU $ac_path_SED
4635 case `"$ac_path_SED" --version 2>&1` in
4637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4640 $as_echo_n 0123456789 >"conftest.in"
4643 cat "conftest.in" "conftest.in" >"conftest.tmp"
4644 mv "conftest.tmp" "conftest.in"
4645 cp "conftest.in" "conftest.nl"
4646 $as_echo '' >> "conftest.nl"
4647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4649 as_fn_arith $ac_count + 1 && ac_count=$as_val
4650 if test $ac_count -gt ${ac_path_SED_max-0}; then
4651 # Best one so far, save it but keep looking for a better one
4652 ac_cv_path_SED="$ac_path_SED"
4653 ac_path_SED_max=$ac_count
4655 # 10*(2^10) chars as input seems more than enough
4656 test $ac_count -gt 10 && break
4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 $ac_path_SED_found && break 3
4666 if test -z "$ac_cv_path_SED"; then
4667 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4675 $as_echo "$ac_cv_path_SED" >&6; }
4676 SED="$ac_cv_path_SED"
4679 test -z "$SED" && SED=sed
4680 Xsed="$SED -e 1s/^X//"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4693 $as_echo_n "checking for fgrep... " >&6; }
4694 if ${ac_cv_path_FGREP+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4698 then ac_cv_path_FGREP="$GREP -F"
4700 if test -z "$FGREP"; then
4701 ac_path_FGREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in fgrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_FGREP" || continue
4712 # Check for GNU ac_path_FGREP and select it if it is found.
4713 # Check for GNU $ac_path_FGREP
4714 case `"$ac_path_FGREP" --version 2>&1` in
4716 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4719 $as_echo_n 0123456789 >"conftest.in"
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'FGREP' >> "conftest.nl"
4726 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_FGREP="$ac_path_FGREP"
4732 ac_path_FGREP_max=$ac_count
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740 $ac_path_FGREP_found && break 3
4745 if test -z "$ac_cv_path_FGREP"; then
4746 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749 ac_cv_path_FGREP=$FGREP
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4755 $as_echo "$ac_cv_path_FGREP" >&6; }
4756 FGREP="$ac_cv_path_FGREP"
4759 test -z "$GREP" && GREP=grep
4779 # Check whether --with-gnu-ld was given.
4780 if test "${with_gnu_ld+set}" = set; then :
4781 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4787 if test "$GCC" = yes; then
4788 # Check if gcc -print-prog-name=ld gives a path.
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4790 $as_echo_n "checking for ld used by $CC... " >&6; }
4793 # gcc leaves a trailing carriage return which upsets mingw
4794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4799 # Accept absolute paths.
4801 re_direlt='/[^/][^/]*/\.\./'
4802 # Canonicalize the pathname of ld
4803 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4804 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4805 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4807 test -z "$LD" && LD="$ac_prog"
4810 # If it fails, then pretend we aren't using GCC.
4814 # If it is relative, then search for the first ld in PATH.
4818 elif test "$with_gnu_ld" = yes; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4820 $as_echo_n "checking for GNU ld... " >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4823 $as_echo_n "checking for non-GNU ld... " >&6; }
4825 if ${lt_cv_path_LD+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 if test -z "$LD"; then
4829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH; do
4832 test -z "$ac_dir" && ac_dir=.
4833 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4834 lt_cv_path_LD="$ac_dir/$ac_prog"
4835 # Check to see if the program is GNU ld. I'd rather use --version,
4836 # but apparently some variants of GNU ld only accept -v.
4837 # Break only if it was the GNU/non-GNU ld that we prefer.
4838 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4839 *GNU* | *'with BFD'*)
4840 test "$with_gnu_ld" != no && break
4843 test "$with_gnu_ld" != yes && break
4850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4855 if test -n "$LD"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4857 $as_echo "$LD" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4862 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4864 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4865 if ${lt_cv_prog_gnu_ld+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4869 case `$LD -v 2>&1 </dev/null` in
4870 *GNU* | *'with BFD'*)
4871 lt_cv_prog_gnu_ld=yes
4874 lt_cv_prog_gnu_ld=no
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4879 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4880 with_gnu_ld=$lt_cv_prog_gnu_ld
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4891 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4892 if ${lt_cv_path_NM+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$NM"; then
4896 # Let the user override the test.
4899 lt_nm_to_check="${ac_tool_prefix}nm"
4900 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4901 lt_nm_to_check="$lt_nm_to_check nm"
4903 for lt_tmp_nm in $lt_nm_to_check; do
4904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4905 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4907 test -z "$ac_dir" && ac_dir=.
4908 tmp_nm="$ac_dir/$lt_tmp_nm"
4909 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4910 # Check to see if the nm accepts a BSD-compat flag.
4911 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4912 # nm: unknown option "B" ignored
4913 # Tru64's nm complains that /dev/null is an invalid object file
4914 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4915 */dev/null* | *'Invalid file or object type'*)
4916 lt_cv_path_NM="$tmp_nm -B"
4920 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4922 lt_cv_path_NM="$tmp_nm -p"
4926 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4927 continue # so that we can try to find one that supports BSD flags
4936 : ${lt_cv_path_NM=no}
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4940 $as_echo "$lt_cv_path_NM" >&6; }
4941 if test "$lt_cv_path_NM" != "no"; then
4944 # Didn't find any BSD compatible name lister, look for dumpbin.
4945 if test -n "$DUMPBIN"; then :
4946 # Let the user override the test.
4948 if test -n "$ac_tool_prefix"; then
4949 for ac_prog in dumpbin "link -dump"
4951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_DUMPBIN+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$DUMPBIN"; then
4959 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 DUMPBIN=$ac_cv_prog_DUMPBIN
4979 if test -n "$DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4981 $as_echo "$DUMPBIN" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 test -n "$DUMPBIN" && break
4991 if test -z "$DUMPBIN"; then
4992 ac_ct_DUMPBIN=$DUMPBIN
4993 for ac_prog in dumpbin "link -dump"
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$ac_ct_DUMPBIN"; then
5003 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5023 if test -n "$ac_ct_DUMPBIN"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5025 $as_echo "$ac_ct_DUMPBIN" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 test -n "$ac_ct_DUMPBIN" && break
5035 if test "x$ac_ct_DUMPBIN" = x; then
5038 case $cross_compiling:$ac_tool_warned in
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5044 DUMPBIN=$ac_ct_DUMPBIN
5048 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5050 DUMPBIN="$DUMPBIN -symbols"
5058 if test "$DUMPBIN" != ":"; then
5062 test -z "$NM" && NM=nm
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5070 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5071 if ${lt_cv_nm_interface+:} false; then :
5072 $as_echo_n "(cached) " >&6
5074 lt_cv_nm_interface="BSD nm"
5075 echo "int some_variable = 0;" > conftest.$ac_ext
5076 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5077 (eval "$ac_compile" 2>conftest.err)
5078 cat conftest.err >&5
5079 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5080 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5081 cat conftest.err >&5
5082 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5083 cat conftest.out >&5
5084 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5085 lt_cv_nm_interface="MS dumpbin"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5090 $as_echo "$lt_cv_nm_interface" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5093 $as_echo_n "checking whether ln -s works... " >&6; }
5095 if test "$LN_S" = "ln -s"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5100 $as_echo "no, using $LN_S" >&6; }
5103 # find the maximum length of command line arguments
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5105 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5106 if ${lt_cv_sys_max_cmd_len+:} false; then :
5107 $as_echo_n "(cached) " >&6
5114 # On DJGPP, this test can blow up pretty badly due to problems in libc
5115 # (any single argument exceeding 2000 bytes causes a buffer overrun
5116 # during glob expansion). Even if it were fixed, the result of this
5117 # check would be larger than it should be.
5118 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5122 # Under GNU Hurd, this test is not required because there is
5123 # no limit to the length of command line arguments.
5124 # Libtool will interpret -1 as no limit whatsoever
5125 lt_cv_sys_max_cmd_len=-1;
5128 cygwin* | mingw* | cegcc*)
5129 # On Win9x/ME, this test blows up -- it succeeds, but takes
5130 # about 5 minutes as the teststring grows exponentially.
5131 # Worse, since 9x/ME are not pre-emptively multitasking,
5132 # you end up with a "frozen" computer, even though with patience
5133 # the test eventually succeeds (with a max line length of 256k).
5134 # Instead, let's just punt: use the minimum linelength reported by
5135 # all of the supported platforms: 8192 (on NT/2K/XP).
5136 lt_cv_sys_max_cmd_len=8192;
5140 # On MiNT this can take a long time and run out of memory.
5141 lt_cv_sys_max_cmd_len=8192;
5145 # On AmigaOS with pdksh, this test takes hours, literally.
5146 # So we just punt and use a minimum line length of 8192.
5147 lt_cv_sys_max_cmd_len=8192;
5150 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5151 # This has been around since 386BSD, at least. Likely further.
5152 if test -x /sbin/sysctl; then
5153 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5154 elif test -x /usr/sbin/sysctl; then
5155 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5157 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5159 # And add a safety zone
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5166 lt_cv_sys_max_cmd_len=196608
5170 # The test takes a long time on OS/2.
5171 lt_cv_sys_max_cmd_len=8192
5175 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5176 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5177 # nice to cause kernel panics so lets avoid the loop below.
5178 # First set a reasonable default.
5179 lt_cv_sys_max_cmd_len=16384
5181 if test -x /sbin/sysconfig; then
5182 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5183 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5188 lt_cv_sys_max_cmd_len=102400
5190 sysv5* | sco5v6* | sysv4.2uw2*)
5191 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5192 if test -n "$kargmax"; then
5193 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5195 lt_cv_sys_max_cmd_len=32768
5199 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5200 if test -n "$lt_cv_sys_max_cmd_len"; then
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5204 # Make teststring a little bigger before we do anything with it.
5205 # a 1K string should be a reasonable start.
5206 for i in 1 2 3 4 5 6 7 8 ; do
5207 teststring=$teststring$teststring
5209 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5210 # If test is not a shell built-in, we'll probably end up computing a
5211 # maximum length that is only half of the actual maximum length, but
5213 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5214 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5215 test $i != 17 # 1/2 MB should be enough
5218 teststring=$teststring$teststring
5220 # Only check the string length outside the loop.
5221 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5223 # Add a significant safety factor because C++ compilers can tack on
5224 # massive amounts of additional arguments before passing them to the
5225 # linker. It appears as though 1/2 is a usable value.
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5233 if test -n $lt_cv_sys_max_cmd_len ; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5235 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5238 $as_echo "none" >&6; }
5240 max_cmd_len=$lt_cv_sys_max_cmd_len
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5252 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5253 # Try some XSI features
5256 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5258 && eval 'test $(( 1 + 1 )) -eq 2 \
5259 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5262 $as_echo "$xsi_shell" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5266 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5268 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5270 && lt_shell_append=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5272 $as_echo "$lt_shell_append" >&6; }
5275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5285 # test EBCDIC or ASCII
5286 case `echo X|tr X '\101'` in
5287 A) # ASCII based system
5288 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5289 lt_SP2NL='tr \040 \012'
5290 lt_NL2SP='tr \015\012 \040\040'
5292 *) # EBCDIC based system
5293 lt_SP2NL='tr \100 \n'
5294 lt_NL2SP='tr \r\n \100\100'
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5308 if ${lt_cv_to_host_file_cmd+:} false; then :
5309 $as_echo_n "(cached) " >&6
5314 *-*-mingw* ) # actually msys
5315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5318 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5320 * ) # otherwise, assume *nix
5321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5327 *-*-mingw* ) # actually msys
5328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5331 lt_cv_to_host_file_cmd=func_convert_file_noop
5333 * ) # otherwise, assume *nix
5334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5338 * ) # unhandled hosts (and "normal" native builds)
5339 lt_cv_to_host_file_cmd=func_convert_file_noop
5345 to_host_file_cmd=$lt_cv_to_host_file_cmd
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5355 if ${lt_cv_to_tool_file_cmd+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 #assume ordinary cross tools, or native build.
5359 lt_cv_to_tool_file_cmd=func_convert_file_noop
5363 *-*-mingw* ) # actually msys
5364 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5382 if ${lt_cv_ld_reload_flag+:} false; then :
5383 $as_echo_n "(cached) " >&6
5385 lt_cv_ld_reload_flag='-r'
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5389 reload_flag=$lt_cv_ld_reload_flag
5390 case $reload_flag in
5392 *) reload_flag=" $reload_flag" ;;
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5396 cygwin* | mingw* | pw32* | cegcc*)
5397 if test "$GCC" != yes; then
5402 if test "$GCC" = yes; then
5403 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5418 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_OBJDUMP+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$OBJDUMP"; then
5427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458 ac_ct_OBJDUMP=$OBJDUMP
5459 # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$ac_ct_OBJDUMP"; then
5467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5495 if test "x$ac_ct_OBJDUMP" = x; then
5498 case $cross_compiling:$ac_tool_warned in
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5504 OBJDUMP=$ac_ct_OBJDUMP
5507 OBJDUMP="$ac_cv_prog_OBJDUMP"
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5541 lt_cv_deplibs_check_method=pass_all
5545 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550 lt_cv_file_magic_cmd='/usr/bin/file -L'
5551 lt_cv_file_magic_test_file=/shlib/libc.so
5555 # func_win32_libid is a shell function defined in ltmain.sh
5556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557 lt_cv_file_magic_cmd='func_win32_libid'
5561 # Base MSYS/MinGW do not provide the 'file' command needed by
5562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563 # unless we find 'file', for example because we are cross-compiling.
5564 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5565 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567 lt_cv_file_magic_cmd='func_win32_libid'
5569 # Keep this pattern in sync with the one in func_win32_libid.
5570 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5571 lt_cv_file_magic_cmd='$OBJDUMP -f'
5576 # use the weaker test based on 'objdump'. See mingw*.
5577 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578 lt_cv_file_magic_cmd='$OBJDUMP -f'
5581 darwin* | rhapsody*)
5582 lt_cv_deplibs_check_method=pass_all
5585 freebsd* | dragonfly*)
5586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5589 # Not sure whether the presence of OpenBSD here was a mistake.
5590 # Let's accept both of them until this is cleared up.
5591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592 lt_cv_file_magic_cmd=/usr/bin/file
5593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5597 lt_cv_deplibs_check_method=pass_all
5602 lt_cv_deplibs_check_method=pass_all
5606 lt_cv_deplibs_check_method=pass_all
5609 hpux10.20* | hpux11*)
5610 lt_cv_file_magic_cmd=/usr/bin/file
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5614 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5617 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]'
5618 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5621 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5622 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5628 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5632 irix5* | irix6* | nonstopux*)
5634 *-32|*"-32 ") libmagic=32-bit;;
5635 *-n32|*"-n32 ") libmagic=N32;;
5636 *-64|*"-64 ") libmagic=64-bit;;
5637 *) libmagic=never-match;;
5639 lt_cv_deplibs_check_method=pass_all
5642 # This must be glibc/ELF.
5643 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5644 lt_cv_deplibs_check_method=pass_all
5648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5657 lt_cv_file_magic_cmd=/usr/bin/file
5658 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5662 lt_cv_deplibs_check_method=pass_all
5666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5673 osf3* | osf4* | osf5*)
5674 lt_cv_deplibs_check_method=pass_all
5678 lt_cv_deplibs_check_method=pass_all
5682 lt_cv_deplibs_check_method=pass_all
5685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5686 lt_cv_deplibs_check_method=pass_all
5690 case $host_vendor in
5692 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]'
5693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5696 lt_cv_deplibs_check_method=pass_all
5699 lt_cv_file_magic_cmd='/bin/file'
5700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5703 lt_cv_file_magic_cmd='/bin/file'
5704 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5705 lt_cv_file_magic_test_file=/lib/libc.so
5708 lt_cv_deplibs_check_method=pass_all
5711 lt_cv_deplibs_check_method=pass_all
5717 lt_cv_deplibs_check_method=pass_all
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5723 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5727 if test "$build" = "$host"; then
5730 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5733 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5739 file_magic_cmd=$lt_cv_file_magic_cmd
5740 deplibs_check_method=$lt_cv_deplibs_check_method
5741 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_DLLTOOL+:} false; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$DLLTOOL"; then
5773 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 DLLTOOL=$ac_cv_prog_DLLTOOL
5793 if test -n "$DLLTOOL"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5795 $as_echo "$DLLTOOL" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5803 if test -z "$ac_cv_prog_DLLTOOL"; then
5804 ac_ct_DLLTOOL=$DLLTOOL
5805 # Extract the first word of "dlltool", so it can be a program name with args.
5806 set dummy dlltool; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5810 $as_echo_n "(cached) " >&6
5812 if test -n "$ac_ct_DLLTOOL"; then
5813 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5833 if test -n "$ac_ct_DLLTOOL"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5835 $as_echo "$ac_ct_DLLTOOL" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5841 if test "x$ac_ct_DLLTOOL" = x; then
5844 case $cross_compiling:$ac_tool_warned in
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5850 DLLTOOL=$ac_ct_DLLTOOL
5853 DLLTOOL="$ac_cv_prog_DLLTOOL"
5856 test -z "$DLLTOOL" && DLLTOOL=dlltool
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5868 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5869 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5870 $as_echo_n "(cached) " >&6
5872 lt_cv_sharedlib_from_linklib_cmd='unknown'
5875 cygwin* | mingw* | pw32* | cegcc*)
5876 # two different shell functions defined in ltmain.sh
5877 # decide which to use based on capabilities of $DLLTOOL
5878 case `$DLLTOOL --help 2>&1` in
5879 *--identify-strict*)
5880 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5888 # fallback: assume linklib IS sharedlib
5889 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5895 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5896 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5897 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5905 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_AR+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 if test -n "$AR"; then
5916 ac_cv_prog_AR="$AR" # Let the user override the test.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 if test -n "$AR"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5938 $as_echo "$AR" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5945 test -n "$AR" && break
5948 if test -z "$AR"; then
5952 # Extract the first word of "$ac_prog", so it can be a program name with args.
5953 set dummy $ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$ac_ct_AR"; then
5960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_AR="$ac_prog"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5980 if test -n "$ac_ct_AR"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5982 $as_echo "$ac_ct_AR" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5989 test -n "$ac_ct_AR" && break
5992 if test "x$ac_ct_AR" = x; then
5995 case $cross_compiling:$ac_tool_warned in
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6019 $as_echo_n "checking for archiver @FILE support... " >&6; }
6020 if ${lt_cv_ar_at_file+:} false; then :
6021 $as_echo_n "(cached) " >&6
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 echo conftest.$ac_objext > conftest.lst
6037 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6039 (eval $lt_ar_try) 2>&5
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; }
6043 if test "$ac_status" -eq 0; then
6044 # Ensure the archiver fails upon bogus file names.
6045 rm -f conftest.$ac_objext libconftest.a
6046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6047 (eval $lt_ar_try) 2>&5
6049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6050 test $ac_status = 0; }
6051 if test "$ac_status" -ne 0; then
6055 rm -f conftest.* libconftest.a
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6062 $as_echo "$lt_cv_ar_at_file" >&6; }
6064 if test "x$lt_cv_ar_at_file" = xno; then
6067 archiver_list_spec=$lt_cv_ar_at_file
6076 if test -n "$ac_tool_prefix"; then
6077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}strip; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_STRIP+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$STRIP"; then
6085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 STRIP=$ac_cv_prog_STRIP
6105 if test -n "$STRIP"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6107 $as_echo "$STRIP" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6115 if test -z "$ac_cv_prog_STRIP"; then
6117 # Extract the first word of "strip", so it can be a program name with args.
6118 set dummy strip; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$ac_ct_STRIP"; then
6125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_STRIP="strip"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6145 if test -n "$ac_ct_STRIP"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6147 $as_echo "$ac_ct_STRIP" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6153 if test "x$ac_ct_STRIP" = x; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6165 STRIP="$ac_cv_prog_STRIP"
6168 test -z "$STRIP" && STRIP=:
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_RANLIB+:} false; then :
6181 $as_echo_n "(cached) " >&6
6183 if test -n "$RANLIB"; then
6184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 RANLIB=$ac_cv_prog_RANLIB
6204 if test -n "$RANLIB"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6206 $as_echo "$RANLIB" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6214 if test -z "$ac_cv_prog_RANLIB"; then
6215 ac_ct_RANLIB=$RANLIB
6216 # Extract the first word of "ranlib", so it can be a program name with args.
6217 set dummy ranlib; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$ac_ct_RANLIB"; then
6224 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_ac_ct_RANLIB="ranlib"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6244 if test -n "$ac_ct_RANLIB"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6246 $as_echo "$ac_ct_RANLIB" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6252 if test "x$ac_ct_RANLIB" = x; then
6255 case $cross_compiling:$ac_tool_warned in
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6259 ac_tool_warned=yes ;;
6261 RANLIB=$ac_ct_RANLIB
6264 RANLIB="$ac_cv_prog_RANLIB"
6267 test -z "$RANLIB" && RANLIB=:
6274 # Determine commands to create old-style static archives.
6275 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6276 old_postinstall_cmds='chmod 644 $oldlib'
6277 old_postuninstall_cmds=
6279 if test -n "$RANLIB"; then
6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6288 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6293 lock_old_archive_extraction=yes ;;
6295 lock_old_archive_extraction=no ;;
6336 # If no C compiler was specified, use CC.
6339 # If no C compiler flags were specified, use CFLAGS.
6340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6342 # Allow CC to be a program name with arguments.
6346 # Check for command to grab the raw symbol name followed by C symbol from nm.
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6348 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6349 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6350 $as_echo_n "(cached) " >&6
6353 # These are sane defaults that work on at least a few old systems.
6354 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6356 # Character class describing NM global symbol codes.
6357 symcode='[BCDEGRST]'
6359 # Regexp to match symbols that can be accessed directly from C.
6360 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6362 # Define system-specific variables.
6367 cygwin* | mingw* | pw32* | cegcc*)
6368 symcode='[ABCDGISTW]'
6371 if test "$host_cpu" = ia64; then
6372 symcode='[ABCDEGRST]'
6376 symcode='[BCDEGRST]'
6379 symcode='[BCDEGQRST]'
6390 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6398 # If we're using GNU nm, then use its standard symbol codes.
6399 case `$NM -V 2>&1` in
6400 *GNU* | *'with BFD'*)
6401 symcode='[ABCDGIRSTW]' ;;
6404 # Transform an extracted symbol line into a proper C declaration.
6405 # Some systems (esp. on ia64) link data and code symbols differently,
6406 # so use this general approach.
6407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6409 # Transform an extracted symbol line into symbol name and symbol address
6410 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6411 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'"
6413 # Handle CRLF in mingw tool chain
6417 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6421 # Try without a prefix underscore, then with it.
6422 for ac_symprfx in "" "_"; do
6424 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6425 symxfrm="\\1 $ac_symprfx\\2 \\2"
6427 # Write the raw and C identifiers.
6428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6429 # Fake it for dumpbin and say T for any non-static function
6430 # and D for any global variable.
6431 # Also find C++ and __fastcall symbols from MSVC++,
6432 # which start with @ or ?.
6433 lt_cv_sys_global_symbol_pipe="$AWK '"\
6434 " {last_section=section; section=\$ 3};"\
6435 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6436 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6437 " \$ 0!~/External *\|/{next};"\
6438 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6439 " {if(hide[section]) next};"\
6440 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6441 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6442 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6443 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6444 " ' prfx=^$ac_symprfx"
6446 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6448 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6450 # Check to see that the pipe works correctly.
6454 cat > conftest.$ac_ext <<_LT_EOF
6459 void nm_test_func(void);
6460 void nm_test_func(void){}
6464 int main(){nm_test_var='a';nm_test_func();return(0);}
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 # Now try to grab the symbols.
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6475 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; } && test -s "$nlist"; then
6479 # Try sorting and uniquifying the output.
6480 if sort "$nlist" | uniq > "$nlist"T; then
6481 mv -f "$nlist"T "$nlist"
6486 # Make sure that we snagged all the symbols we need.
6487 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6488 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6489 cat <<_LT_EOF > conftest.$ac_ext
6490 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6491 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6492 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6493 relocations are performed -- see ld's documentation on pseudo-relocs. */
6494 # define LT_DLSYM_CONST
6495 #elif defined(__osf__)
6496 /* This system does not cope well with relocations in const data. */
6497 # define LT_DLSYM_CONST
6499 # define LT_DLSYM_CONST const
6507 # Now generate the symbol file.
6508 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6510 cat <<_LT_EOF >> conftest.$ac_ext
6512 /* The mapping between symbol names and symbols. */
6513 LT_DLSYM_CONST struct {
6517 lt__PROGRAM__LTX_preloaded_symbols[] =
6519 { "@PROGRAM@", (void *) 0 },
6521 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6522 cat <<\_LT_EOF >> conftest.$ac_ext
6526 /* This works around a problem in FreeBSD linker */
6527 #ifdef FREEBSD_WORKAROUND
6528 static const void *lt_preloaded_setup() {
6529 return lt__PROGRAM__LTX_preloaded_symbols;
6537 # Now try linking the two files.
6538 mv conftest.$ac_objext conftstm.$ac_objext
6539 lt_globsym_save_LIBS=$LIBS
6540 lt_globsym_save_CFLAGS=$CFLAGS
6541 LIBS="conftstm.$ac_objext"
6542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6544 (eval $ac_link) 2>&5
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6550 LIBS=$lt_globsym_save_LIBS
6551 CFLAGS=$lt_globsym_save_CFLAGS
6553 echo "cannot find nm_test_func in $nlist" >&5
6556 echo "cannot find nm_test_var in $nlist" >&5
6559 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6562 echo "$progname: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 rm -rf conftest* conftst*
6567 # Do not use the global_symbol_pipe unless it works.
6568 if test "$pipe_works" = yes; then
6571 lt_cv_sys_global_symbol_pipe=
6577 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6578 lt_cv_sys_global_symbol_to_cdecl=
6580 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6582 $as_echo "failed" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6585 $as_echo "ok" >&6; }
6588 # Response file support.
6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590 nm_file_list_spec='@'
6591 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6592 nm_file_list_spec='@'
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6622 $as_echo_n "checking for sysroot... " >&6; }
6624 # Check whether --with-sysroot was given.
6625 if test "${with_sysroot+set}" = set; then :
6626 withval=$with_sysroot;
6633 case ${with_sysroot} in #(
6635 if test "$GCC" = yes; then
6636 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6640 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6646 $as_echo "${with_sysroot}" >&6; }
6647 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6652 $as_echo "${lt_sysroot:-no}" >&6; }
6658 # Check whether --enable-libtool-lock was given.
6659 if test "${enable_libtool_lock+set}" = set; then :
6660 enableval=$enable_libtool_lock;
6663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6665 # Some flags need to be propagated to the compiler or linker for good
6669 # Find out which ABI we are using.
6670 echo 'int i;' > conftest.$ac_ext
6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6672 (eval $ac_compile) 2>&5
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; }; then
6676 case `/usr/bin/file conftest.$ac_objext` in
6688 # Find out which ABI we are using.
6689 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 if test "$lt_cv_prog_gnu_ld" = yes; then
6696 case `/usr/bin/file conftest.$ac_objext` in
6698 LD="${LD-ld} -melf32bsmip"
6701 LD="${LD-ld} -melf32bmipn32"
6704 LD="${LD-ld} -melf64bmip"
6708 case `/usr/bin/file conftest.$ac_objext` in
6724 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6725 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6726 # Find out which ABI we are using.
6727 echo 'int i;' > conftest.$ac_ext
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729 (eval $ac_compile) 2>&5
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }; then
6733 case `/usr/bin/file conftest.o` in
6736 x86_64-*kfreebsd*-gnu)
6737 LD="${LD-ld} -m elf_i386_fbsd"
6740 LD="${LD-ld} -m elf_i386"
6742 ppc64-*linux*|powerpc64-*linux*)
6743 LD="${LD-ld} -m elf32ppclinux"
6746 LD="${LD-ld} -m elf_s390"
6749 LD="${LD-ld} -m elf32_sparc"
6755 x86_64-*kfreebsd*-gnu)
6756 LD="${LD-ld} -m elf_x86_64_fbsd"
6759 LD="${LD-ld} -m elf_x86_64"
6761 ppc*-*linux*|powerpc*-*linux*)
6762 LD="${LD-ld} -m elf64ppc"
6764 s390*-*linux*|s390*-*tpf*)
6765 LD="${LD-ld} -m elf64_s390"
6768 LD="${LD-ld} -m elf64_sparc"
6778 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6779 SAVE_CFLAGS="$CFLAGS"
6780 CFLAGS="$CFLAGS -belf"
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6782 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6783 if ${lt_cv_cc_needs_belf+:} false; then :
6784 $as_echo_n "(cached) " >&6
6787 ac_cpp='$CPP $CPPFLAGS'
6788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6803 if ac_fn_c_try_link "$LINENO"; then :
6804 lt_cv_cc_needs_belf=yes
6806 lt_cv_cc_needs_belf=no
6808 rm -f core conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6818 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6819 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6820 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6821 CFLAGS="$SAVE_CFLAGS"
6825 # Find out which ABI we are using.
6826 echo 'int i;' > conftest.$ac_ext
6827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828 (eval $ac_compile) 2>&5
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }; then
6832 case `/usr/bin/file conftest.o` in
6834 case $lt_cv_prog_gnu_ld in
6838 LD="${LD-ld} -m elf_x86_64"
6841 LD="${LD-ld} -m elf64_sparc"
6844 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6845 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6850 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6862 need_locks="$enable_libtool_lock"
6864 if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}mt; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$MANIFEST_TOOL"; then
6873 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6893 if test -n "$MANIFEST_TOOL"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6895 $as_echo "$MANIFEST_TOOL" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6903 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6904 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6905 # Extract the first word of "mt", so it can be a program name with args.
6906 set dummy mt; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6910 $as_echo_n "(cached) " >&6
6912 if test -n "$ac_ct_MANIFEST_TOOL"; then
6913 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6933 if test -n "$ac_ct_MANIFEST_TOOL"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6935 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6941 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6950 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6953 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6956 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6958 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6959 if ${lt_cv_path_mainfest_tool+:} false; then :
6960 $as_echo_n "(cached) " >&6
6962 lt_cv_path_mainfest_tool=no
6963 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6964 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6965 cat conftest.err >&5
6966 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6967 lt_cv_path_mainfest_tool=yes
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6972 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6973 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6983 rhapsody* | darwin*)
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6990 $as_echo_n "(cached) " >&6
6992 if test -n "$DSYMUTIL"; then
6993 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7013 if test -n "$DSYMUTIL"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7015 $as_echo "$DSYMUTIL" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7023 if test -z "$ac_cv_prog_DSYMUTIL"; then
7024 ac_ct_DSYMUTIL=$DSYMUTIL
7025 # Extract the first word of "dsymutil", so it can be a program name with args.
7026 set dummy dsymutil; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7030 $as_echo_n "(cached) " >&6
7032 if test -n "$ac_ct_DSYMUTIL"; then
7033 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7053 if test -n "$ac_ct_DSYMUTIL"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7055 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7061 if test "x$ac_ct_DSYMUTIL" = x; then
7064 case $cross_compiling:$ac_tool_warned in
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7070 DSYMUTIL=$ac_ct_DSYMUTIL
7073 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_NMEDIT+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 if test -n "$NMEDIT"; then
7085 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 NMEDIT=$ac_cv_prog_NMEDIT
7105 if test -n "$NMEDIT"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7107 $as_echo "$NMEDIT" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7115 if test -z "$ac_cv_prog_NMEDIT"; then
7116 ac_ct_NMEDIT=$NMEDIT
7117 # Extract the first word of "nmedit", so it can be a program name with args.
7118 set dummy nmedit; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$ac_ct_NMEDIT"; then
7125 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7145 if test -n "$ac_ct_NMEDIT"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7147 $as_echo "$ac_ct_NMEDIT" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7153 if test "x$ac_ct_NMEDIT" = x; then
7156 case $cross_compiling:$ac_tool_warned in
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7162 NMEDIT=$ac_ct_NMEDIT
7165 NMEDIT="$ac_cv_prog_NMEDIT"
7168 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_LIPO+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$LIPO"; then
7177 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 LIPO=$ac_cv_prog_LIPO
7197 if test -n "$LIPO"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7199 $as_echo "$LIPO" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7207 if test -z "$ac_cv_prog_LIPO"; then
7209 # Extract the first word of "lipo", so it can be a program name with args.
7210 set dummy lipo; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7214 $as_echo_n "(cached) " >&6
7216 if test -n "$ac_ct_LIPO"; then
7217 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_LIPO="lipo"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7237 if test -n "$ac_ct_LIPO"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7239 $as_echo "$ac_ct_LIPO" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7245 if test "x$ac_ct_LIPO" = x; then
7248 case $cross_compiling:$ac_tool_warned in
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7257 LIPO="$ac_cv_prog_LIPO"
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}otool; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_OTOOL+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -n "$OTOOL"; then
7269 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 OTOOL=$ac_cv_prog_OTOOL
7289 if test -n "$OTOOL"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7291 $as_echo "$OTOOL" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7299 if test -z "$ac_cv_prog_OTOOL"; then
7301 # Extract the first word of "otool", so it can be a program name with args.
7302 set dummy otool; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$ac_ct_OTOOL"; then
7309 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_ac_ct_OTOOL="otool"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7329 if test -n "$ac_ct_OTOOL"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7331 $as_echo "$ac_ct_OTOOL" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$ac_ct_OTOOL" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7349 OTOOL="$ac_cv_prog_OTOOL"
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_OTOOL64+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$OTOOL64"; then
7361 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 OTOOL64=$ac_cv_prog_OTOOL64
7381 if test -n "$OTOOL64"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7383 $as_echo "$OTOOL64" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_OTOOL64"; then
7392 ac_ct_OTOOL64=$OTOOL64
7393 # Extract the first word of "otool64", so it can be a program name with args.
7394 set dummy otool64; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$ac_ct_OTOOL64"; then
7401 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_OTOOL64="otool64"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7421 if test -n "$ac_ct_OTOOL64"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7423 $as_echo "$ac_ct_OTOOL64" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_OTOOL64" = x; then
7432 case $cross_compiling:$ac_tool_warned in
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7438 OTOOL64=$ac_ct_OTOOL64
7441 OTOOL64="$ac_cv_prog_OTOOL64"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7471 $as_echo_n "checking for -single_module linker flag... " >&6; }
7472 if ${lt_cv_apple_cc_single_mod+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 lt_cv_apple_cc_single_mod=no
7476 if test -z "${LT_MULTI_MODULE}"; then
7477 # By default we will add the -single_module flag. You can override
7478 # by either setting the environment variable LT_MULTI_MODULE
7479 # non-empty at configure time, or by adding -multi_module to the
7481 rm -rf libconftest.dylib*
7482 echo "int foo(void){return 1;}" > conftest.c
7483 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7484 -dynamiclib -Wl,-single_module conftest.c" >&5
7485 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7486 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7488 # If there is a non-empty error log, and "single_module"
7489 # appears in it, assume the flag caused a linker warning
7490 if test -s conftest.err && $GREP single_module conftest.err; then
7491 cat conftest.err >&5
7492 # Otherwise, if the output was created with a 0 exit code from
7493 # the compiler, it worked.
7494 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7495 lt_cv_apple_cc_single_mod=yes
7497 cat conftest.err >&5
7499 rm -rf libconftest.dylib*
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7504 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7508 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 lt_cv_ld_exported_symbols_list=no
7512 save_LDFLAGS=$LDFLAGS
7513 echo "_main" > conftest.sym
7514 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7526 if ac_fn_c_try_link "$LINENO"; then :
7527 lt_cv_ld_exported_symbols_list=yes
7529 lt_cv_ld_exported_symbols_list=no
7531 rm -f core conftest.err conftest.$ac_objext \
7532 conftest$ac_exeext conftest.$ac_ext
7533 LDFLAGS="$save_LDFLAGS"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7540 $as_echo_n "checking for -force_load linker flag... " >&6; }
7541 if ${lt_cv_ld_force_load+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 lt_cv_ld_force_load=no
7545 cat > conftest.c << _LT_EOF
7546 int forced_loaded() { return 2;}
7548 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7549 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7550 echo "$AR cru libconftest.a conftest.o" >&5
7551 $AR cru libconftest.a conftest.o 2>&5
7552 echo "$RANLIB libconftest.a" >&5
7553 $RANLIB libconftest.a 2>&5
7554 cat > conftest.c << _LT_EOF
7555 int main() { return 0;}
7557 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7558 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7560 if test -s conftest.err && $GREP force_load conftest.err; then
7561 cat conftest.err >&5
7562 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7563 lt_cv_ld_force_load=yes
7565 cat conftest.err >&5
7567 rm -f conftest.err libconftest.a conftest conftest.c
7568 rm -rf conftest.dSYM
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7572 $as_echo "$lt_cv_ld_force_load" >&6; }
7574 rhapsody* | darwin1.[012])
7575 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578 darwin*) # darwin 5.x on
7579 # if running on 10.5 or later, the deployment target defaults
7580 # to the OS version, if on x86, and 10.4, the deployment
7581 # target defaults to 10.4. Don't you love it?
7582 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7583 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7584 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7592 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7593 _lt_dar_single_mod='$single_module'
7595 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7596 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7598 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7600 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7601 _lt_dsymutil='~$DSYMUTIL $lib || :'
7608 for ac_header in dlfcn.h
7610 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7612 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7613 cat >>confdefs.h <<_ACEOF
7614 #define HAVE_DLFCN_H 1
7635 # Check whether --enable-shared was given.
7636 if test "${enable_shared+set}" = set; then :
7637 enableval=$enable_shared; p=${PACKAGE-default}
7639 yes) enable_shared=yes ;;
7640 no) enable_shared=no ;;
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for pkg in $enableval; do
7647 if test "X$pkg" = "X$p"; then
7666 # Check whether --enable-static was given.
7667 if test "${enable_static+set}" = set; then :
7668 enableval=$enable_static; p=${PACKAGE-default}
7670 yes) enable_static=yes ;;
7671 no) enable_static=no ;;
7674 # Look at the argument we got. We use all the common list separators.
7675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7676 for pkg in $enableval; do
7678 if test "X$pkg" = "X$p"; then
7698 # Check whether --with-pic was given.
7699 if test "${with_pic+set}" = set; then :
7700 withval=$with_pic; lt_p=${PACKAGE-default}
7702 yes|no) pic_mode=$withval ;;
7705 # Look at the argument we got. We use all the common list separators.
7706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7707 for lt_pkg in $withval; do
7709 if test "X$lt_pkg" = "X$lt_p"; then
7721 test -z "$pic_mode" && pic_mode=default
7729 # Check whether --enable-fast-install was given.
7730 if test "${enable_fast_install+set}" = set; then :
7731 enableval=$enable_fast_install; p=${PACKAGE-default}
7733 yes) enable_fast_install=yes ;;
7734 no) enable_fast_install=no ;;
7736 enable_fast_install=no
7737 # Look at the argument we got. We use all the common list separators.
7738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739 for pkg in $enableval; do
7741 if test "X$pkg" = "X$p"; then
7742 enable_fast_install=yes
7749 enable_fast_install=yes
7762 # This can be used to rebuild libtool when needed
7763 LIBTOOL_DEPS="$ltmain"
7765 # Always use our own libtool.
7766 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7797 test -z "$LN_S" && LN_S="ln -s"
7812 if test -n "${ZSH_VERSION+set}" ; then
7813 setopt NO_GLOB_SUBST
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7817 $as_echo_n "checking for objdir... " >&6; }
7818 if ${lt_cv_objdir+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 rm -f .libs 2>/dev/null
7822 mkdir .libs 2>/dev/null
7823 if test -d .libs; then
7826 # MS-DOS does not allow filenames that begin with a dot.
7829 rmdir .libs 2>/dev/null
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7832 $as_echo "$lt_cv_objdir" >&6; }
7833 objdir=$lt_cv_objdir
7839 cat >>confdefs.h <<_ACEOF
7840 #define LT_OBJDIR "$lt_cv_objdir/"
7848 # AIX sometimes has problems with the GCC collect2 program. For some
7849 # reason, if we set the COLLECT_NAMES environment variable, the problems
7850 # vanish in a puff of smoke.
7851 if test "X${COLLECT_NAMES+set}" != Xset; then
7853 export COLLECT_NAMES
7860 can_build_shared=yes
7862 # All known linkers require a `.a' archive for static linking (except MSVC,
7863 # which needs '.lib').
7866 with_gnu_ld="$lt_cv_prog_gnu_ld"
7869 old_CFLAGS="$CFLAGS"
7871 # Set sane defaults for various variables
7872 test -z "$CC" && CC=cc
7873 test -z "$LTCC" && LTCC=$CC
7874 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7875 test -z "$LD" && LD=ld
7876 test -z "$ac_objext" && ac_objext=o
7878 for cc_temp in $compiler""; do
7880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7886 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7889 # Only perform the check for file, if the check method requires it
7890 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7891 case $deplibs_check_method in
7893 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7895 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7896 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7897 $as_echo_n "(cached) " >&6
7901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7904 lt_save_MAGIC_CMD="$MAGIC_CMD"
7905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7907 for ac_dir in $ac_dummy; do
7909 test -z "$ac_dir" && ac_dir=.
7910 if test -f $ac_dir/${ac_tool_prefix}file; then
7911 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7912 if test -n "$file_magic_test_file"; then
7913 case $deplibs_check_method in
7915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7918 $EGREP "$file_magic_regex" > /dev/null; then
7923 *** Warning: the command libtool uses to detect shared libraries,
7924 *** $file_magic_cmd, produces output that libtool cannot recognize.
7925 *** The result is that libtool may fail to recognize shared libraries
7926 *** as such. This will affect the creation of libtool libraries that
7927 *** depend on shared libraries, but programs linked with such libtool
7928 *** libraries will work regardless of this problem. Nevertheless, you
7929 *** may want to report the problem to your system manager and/or to
7930 *** bug-libtool@gnu.org
7940 MAGIC_CMD="$lt_save_MAGIC_CMD"
7945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946 if test -n "$MAGIC_CMD"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7948 $as_echo "$MAGIC_CMD" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7958 if test -z "$lt_cv_path_MAGIC_CMD"; then
7959 if test -n "$ac_tool_prefix"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7961 $as_echo_n "checking for file... " >&6; }
7962 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7963 $as_echo_n "(cached) " >&6
7967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7970 lt_save_MAGIC_CMD="$MAGIC_CMD"
7971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7973 for ac_dir in $ac_dummy; do
7975 test -z "$ac_dir" && ac_dir=.
7976 if test -f $ac_dir/file; then
7977 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7978 if test -n "$file_magic_test_file"; then
7979 case $deplibs_check_method in
7981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7984 $EGREP "$file_magic_regex" > /dev/null; then
7989 *** Warning: the command libtool uses to detect shared libraries,
7990 *** $file_magic_cmd, produces output that libtool cannot recognize.
7991 *** The result is that libtool may fail to recognize shared libraries
7992 *** as such. This will affect the creation of libtool libraries that
7993 *** depend on shared libraries, but programs linked with such libtool
7994 *** libraries will work regardless of this problem. Nevertheless, you
7995 *** may want to report the problem to your system manager and/or to
7996 *** bug-libtool@gnu.org
8006 MAGIC_CMD="$lt_save_MAGIC_CMD"
8011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012 if test -n "$MAGIC_CMD"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8014 $as_echo "$MAGIC_CMD" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8030 # Use C for the default configuration in the libtool script
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040 # Source file extension for C test sources.
8043 # Object file extension for compiled C test sources.
8047 # Code to be used in simple compile tests
8048 lt_simple_compile_test_code="int some_variable = 0;"
8050 # Code to be used in simple link tests
8051 lt_simple_link_test_code='int main(){return(0);}'
8059 # If no C compiler was specified, use CC.
8062 # If no C compiler flags were specified, use CFLAGS.
8063 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8065 # Allow CC to be a program name with arguments.
8068 # Save the default compiler, since it gets overwritten when the other
8069 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8070 compiler_DEFAULT=$CC
8072 # save warnings/boilerplate of simple test code
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076 _lt_compiler_boilerplate=`cat conftest.err`
8079 ac_outfile=conftest.$ac_objext
8080 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8082 _lt_linker_boilerplate=`cat conftest.err`
8087 ## There is no encapsulation within the following macros, do not change
8088 ## the running order or otherwise move them around unless you know exactly
8089 ## what you are doing...
8090 if test -n "$compiler"; then
8092 lt_prog_compiler_no_builtin_flag=
8094 if test "$GCC" = yes; then
8095 case $cc_basename in
8097 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8099 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8103 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8104 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8105 $as_echo_n "(cached) " >&6
8107 lt_cv_prog_compiler_rtti_exceptions=no
8108 ac_outfile=conftest.$ac_objext
8109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8110 lt_compiler_flag="-fno-rtti -fno-exceptions"
8111 # Insert the option either (1) after the last *FLAGS variable, or
8112 # (2) before a word containing "conftest.", or (3) at the end.
8113 # Note that $ac_compile itself does not contain backslashes and begins
8114 # with a dollar sign (not a hyphen), so the echo should work correctly.
8115 # The option is referenced via a variable to avoid confusing sed.
8116 lt_compile=`echo "$ac_compile" | $SED \
8117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8119 -e 's:$: $lt_compiler_flag:'`
8120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8121 (eval "$lt_compile" 2>conftest.err)
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 if (exit $ac_status) && test -s "$ac_outfile"; then
8126 # The compiler can only warn and ignore the option if not recognized
8127 # So say no if there are warnings other than the usual output.
8128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8131 lt_cv_prog_compiler_rtti_exceptions=yes
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8138 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8140 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8141 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8153 lt_prog_compiler_wl=
8154 lt_prog_compiler_pic=
8155 lt_prog_compiler_static=
8158 if test "$GCC" = yes; then
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_static='-static'
8164 # All AIX code is PIC.
8165 if test "$host_cpu" = ia64; then
8166 # AIX 5 now supports IA64 processor
8167 lt_prog_compiler_static='-Bstatic'
8174 # see comment about AmigaOS4 .so support
8175 lt_prog_compiler_pic='-fPIC'
8178 # FIXME: we need at least 68020 code to build shared libraries, but
8179 # adding the `-m68020' flag to GCC prevents building anything better,
8181 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8187 # PIC is the default for these OSes.
8190 mingw* | cygwin* | pw32* | os2* | cegcc*)
8191 # This hack is so that the source file can tell whether it is being
8192 # built for inclusion in a dll (and should export symbols for example).
8193 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8194 # (--disable-auto-import) libraries
8195 lt_prog_compiler_pic='-DDLL_EXPORT'
8198 darwin* | rhapsody*)
8199 # PIC is the default on this platform
8200 # Common symbols not allowed in MH_DYLIB files
8201 lt_prog_compiler_pic='-fno-common'
8205 # PIC is the default for Haiku.
8206 # The "-static" flag exists, but is broken.
8207 lt_prog_compiler_static=
8211 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8212 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8213 # sets the default TLS model and affects inlining.
8219 lt_prog_compiler_pic='-fPIC'
8225 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8226 # Instead, we relocate shared libraries at runtime.
8230 # Just because we use GCC doesn't mean we suddenly get shared libraries
8231 # on systems that don't support them.
8232 lt_prog_compiler_can_build_shared=no
8237 # QNX uses GNU C++, but need to define -shared option too, otherwise
8239 lt_prog_compiler_pic='-fPIC -shared'
8243 if test -d /usr/nec; then
8244 lt_prog_compiler_pic=-Kconform_pic
8249 lt_prog_compiler_pic='-fPIC'
8253 case $cc_basename in
8254 nvcc*) # Cuda Compiler Driver 2.2
8255 lt_prog_compiler_wl='-Xlinker '
8256 if test -n "$lt_prog_compiler_pic"; then
8257 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8262 # PORTME Check for flag to pass linker flags through the system compiler.
8265 lt_prog_compiler_wl='-Wl,'
8266 if test "$host_cpu" = ia64; then
8267 # AIX 5 now supports IA64 processor
8268 lt_prog_compiler_static='-Bstatic'
8270 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8274 mingw* | cygwin* | pw32* | os2* | cegcc*)
8275 # This hack is so that the source file can tell whether it is being
8276 # built for inclusion in a dll (and should export symbols for example).
8277 lt_prog_compiler_pic='-DDLL_EXPORT'
8280 hpux9* | hpux10* | hpux11*)
8281 lt_prog_compiler_wl='-Wl,'
8282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8289 lt_prog_compiler_pic='+Z'
8292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8293 lt_prog_compiler_static='${wl}-a ${wl}archive'
8296 irix5* | irix6* | nonstopux*)
8297 lt_prog_compiler_wl='-Wl,'
8298 # PIC (with -KPIC) is the default.
8299 lt_prog_compiler_static='-non_shared'
8302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8303 case $cc_basename in
8304 # old Intel for x86_64 which still supported -KPIC.
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-KPIC'
8308 lt_prog_compiler_static='-static'
8310 # icc used to be incompatible with GCC.
8311 # ICC 10 doesn't accept -KPIC any more.
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fPIC'
8315 lt_prog_compiler_static='-static'
8317 # Lahey Fortran 8.1.
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='--shared'
8321 lt_prog_compiler_static='--static'
8324 # NAG Fortran compiler
8325 lt_prog_compiler_wl='-Wl,-Wl,,'
8326 lt_prog_compiler_pic='-PIC'
8327 lt_prog_compiler_static='-Bstatic'
8329 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8330 # Portland Group compilers (*not* the Pentium gcc compiler,
8331 # which looks to be a dead project)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-fpic'
8334 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl='-Wl,'
8338 # All Alpha code is PIC.
8339 lt_prog_compiler_static='-non_shared'
8341 xl* | bgxl* | bgf* | mpixl*)
8342 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-qpic'
8345 lt_prog_compiler_static='-qstaticlink'
8348 case `$CC -V 2>&1 | sed 5q` in
8349 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8350 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 lt_prog_compiler_wl=''
8355 *Sun\ F* | *Sun*Fortran*)
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 lt_prog_compiler_wl='-Qoption ld '
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8364 lt_prog_compiler_wl='-Wl,'
8366 *Intel*\ [CF]*Compiler*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-fPIC'
8369 lt_prog_compiler_static='-static'
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-fpic'
8374 lt_prog_compiler_static='-Bstatic'
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8387 # QNX uses GNU C++, but need to define -shared option too, otherwise
8389 lt_prog_compiler_pic='-fPIC -shared'
8392 osf3* | osf4* | osf5*)
8393 lt_prog_compiler_wl='-Wl,'
8394 # All OSF/1 code is PIC.
8395 lt_prog_compiler_static='-non_shared'
8399 lt_prog_compiler_static='-non_shared'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 case $cc_basename in
8406 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8407 lt_prog_compiler_wl='-Qoption ld ';;
8409 lt_prog_compiler_wl='-Wl,';;
8414 lt_prog_compiler_wl='-Qoption ld '
8415 lt_prog_compiler_pic='-PIC'
8416 lt_prog_compiler_static='-Bstatic'
8419 sysv4 | sysv4.2uw2* | sysv4.3*)
8420 lt_prog_compiler_wl='-Wl,'
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8426 if test -d /usr/nec ;then
8427 lt_prog_compiler_pic='-Kconform_pic'
8428 lt_prog_compiler_static='-Bstatic'
8432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_can_build_shared=no
8444 lt_prog_compiler_pic='-pic'
8445 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_can_build_shared=no
8455 # For platforms which do not support PIC, -DPIC is meaningless:
8457 lt_prog_compiler_pic=
8460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8465 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8466 if ${lt_cv_prog_compiler_pic+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8472 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8473 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8476 # Check to make sure the PIC flag actually works.
8478 if test -n "$lt_prog_compiler_pic"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8480 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8481 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 lt_cv_prog_compiler_pic_works=no
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 # The option is referenced via a variable to avoid confusing sed.
8493 lt_compile=`echo "$ac_compile" | $SED \
8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496 -e 's:$: $lt_compiler_flag:'`
8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498 (eval "$lt_compile" 2>conftest.err)
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 if (exit $ac_status) && test -s "$ac_outfile"; then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings other than the usual output.
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_pic_works=yes
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8515 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8517 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8518 case $lt_prog_compiler_pic in
8520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8523 lt_prog_compiler_pic=
8524 lt_prog_compiler_can_build_shared=no
8540 # Check to make sure the static flag actually works.
8542 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545 if ${lt_cv_prog_compiler_static_works+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 lt_cv_prog_compiler_static_works=no
8549 save_LDFLAGS="$LDFLAGS"
8550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8553 # The linker can only warn and ignore the option if not recognized
8554 # So say no if there are warnings
8555 if test -s conftest.err; then
8556 # Append any errors to the config.log.
8557 cat conftest.err 1>&5
8558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_static_works=yes
8564 lt_cv_prog_compiler_static_works=yes
8568 LDFLAGS="$save_LDFLAGS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8577 lt_prog_compiler_static=
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if ${lt_cv_prog_compiler_c_o+:} false; then :
8589 $as_echo_n "(cached) " >&6
8591 lt_cv_prog_compiler_c_o=no
8592 $RM -r conftest 2>/dev/null
8596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598 lt_compiler_flag="-o out/conftest2.$ac_objext"
8599 # Insert the option either (1) after the last *FLAGS variable, or
8600 # (2) before a word containing "conftest.", or (3) at the end.
8601 # Note that $ac_compile itself does not contain backslashes and begins
8602 # with a dollar sign (not a hyphen), so the echo should work correctly.
8603 lt_compile=`echo "$ac_compile" | $SED \
8604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606 -e 's:$: $lt_compiler_flag:'`
8607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608 (eval "$lt_compile" 2>out/conftest.err)
8610 cat out/conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 # The compiler can only warn and ignore the option if not recognized
8615 # So say no if there are warnings
8616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619 lt_cv_prog_compiler_c_o=yes
8624 # SGI C++ compiler will create directory out/ii_files/ for
8625 # template instantiation
8626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627 $RM out/* && rmdir out
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643 if ${lt_cv_prog_compiler_c_o+:} false; then :
8644 $as_echo_n "(cached) " >&6
8646 lt_cv_prog_compiler_c_o=no
8647 $RM -r conftest 2>/dev/null
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653 lt_compiler_flag="-o out/conftest2.$ac_objext"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 lt_compile=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
8662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663 (eval "$lt_compile" 2>out/conftest.err)
8665 cat out/conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings
8671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8674 lt_cv_prog_compiler_c_o=yes
8679 # SGI C++ compiler will create directory out/ii_files/ for
8680 # template instantiation
8681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8682 $RM out/* && rmdir out
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694 hard_links="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696 # do not overwrite the value of need_locks provided by the user
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698 $as_echo_n "checking if we can lock with hard links... " >&6; }
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 ln conftest.a conftest.b 2>&5 || hard_links=no
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706 $as_echo "$hard_links" >&6; }
8707 if test "$hard_links" = no; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8725 allow_undefined_flag=
8726 always_export_symbols=no
8728 archive_expsym_cmds=
8729 compiler_needs_object=no
8730 enable_shared_with_static_runtimes=no
8731 export_dynamic_flag_spec=
8732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733 hardcode_automatic=no
8735 hardcode_direct_absolute=no
8736 hardcode_libdir_flag_spec=
8737 hardcode_libdir_separator=
8739 hardcode_shlibpath_var=unsupported
8741 link_all_deplibs=unknown
8744 old_archive_from_new_cmds=
8745 old_archive_from_expsyms_cmds=
8746 thread_safe_flag_spec=
8747 whole_archive_flag_spec=
8748 # include_expsyms should be a list of space-separated symbols to be *always*
8749 # included in the symbol list
8751 # exclude_expsyms can be an extended regexp of symbols to exclude
8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754 # as well as any symbol that contains `d'.
8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757 # platforms (ab)use it in PIC code, but their linkers get confused if
8758 # the symbol is explicitly referenced. Since portable code cannot
8759 # rely on this symbol name, it's probably fine to never include it in
8760 # preloaded symbol tables.
8761 # Exclude shared library initialization/finalization symbols.
8762 extract_expsyms_cmds=
8765 cygwin* | mingw* | pw32* | cegcc*)
8766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 if test "$GCC" != yes; then
8774 # we just hope/assume this is gcc and not c89 (= MSVC++)
8784 # On some targets, GNU ld is compatible enough with the native linker
8785 # that we're better off using the native interface for both.
8786 lt_use_gnu_ld_interface=no
8787 if test "$with_gnu_ld" = yes; then
8790 # The AIX port of GNU ld has always aspired to compatibility
8791 # with the native linker. However, as the warning in the GNU ld
8792 # block says, versions before 2.19.5* couldn't really create working
8793 # shared libraries, regardless of the interface used.
8794 case `$LD -v 2>&1` in
8795 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8796 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8797 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8799 lt_use_gnu_ld_interface=yes
8804 lt_use_gnu_ld_interface=yes
8809 if test "$lt_use_gnu_ld_interface" = yes; then
8810 # If archive_cmds runs LD, not CC, wlarc should be empty
8813 # Set some defaults for GNU ld with shared library support. These
8814 # are reset later if shared libraries are not supported. Putting them
8815 # here allows them to be overridden if necessary.
8816 runpath_var=LD_RUN_PATH
8817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818 export_dynamic_flag_spec='${wl}--export-dynamic'
8819 # ancient GNU ld didn't support --whole-archive et. al.
8820 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8823 whole_archive_flag_spec=
8825 supports_anon_versioning=no
8826 case `$LD -v 2>&1` in
8827 *GNU\ gold*) supports_anon_versioning=yes ;;
8828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8831 *\ 2.11.*) ;; # other 2.11 versions
8832 *) supports_anon_versioning=yes ;;
8835 # See if GNU ld supports shared libraries.
8838 # On AIX/PPC, the GNU linker is very broken
8839 if test "$host_cpu" != ia64; then
8843 *** Warning: the GNU linker, at least up to release 2.19, is reported
8844 *** to be unable to reliably create shared libraries on AIX.
8845 *** Therefore, libtool is disabling shared libraries support. If you
8846 *** really care for shared libraries, you may want to install binutils
8847 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8848 *** You will then need to restart the configuration process.
8857 # see comment about AmigaOS4 .so support
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859 archive_expsym_cmds=''
8862 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)'
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_minus_L=yes
8870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871 allow_undefined_flag=unsupported
8872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8873 # support --undefined. This deserves some investigation. FIXME
8874 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880 cygwin* | mingw* | pw32* | cegcc*)
8881 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8882 # as there is no search path for DLLs.
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 export_dynamic_flag_spec='${wl}--export-all-symbols'
8885 allow_undefined_flag=unsupported
8886 always_export_symbols=no
8887 enable_shared_with_static_runtimes=yes
8888 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'
8889 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893 # If the export-symbols file already is a .def file (1st line
8894 # is EXPORTS), use it as is; otherwise, prepend...
8895 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896 cp $export_symbols $output_objdir/$soname.def;
8898 echo EXPORTS > $output_objdir/$soname.def;
8899 cat $export_symbols >> $output_objdir/$soname.def;
8901 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 link_all_deplibs=yes
8914 hardcode_shlibpath_var=no
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec='${wl}-E'
8917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918 # Instead, shared libraries are loaded at an image base (0x10000000 by
8919 # default) and relocated if they conflict, which is a slow very memory
8920 # consuming and fragmenting process. To avoid this, we pick a random,
8921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924 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'
8927 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 if test "$host_os" = linux-dietlibc; then
8930 case $cc_basename in
8931 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8934 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935 && test "$tmp_diet" = no
8937 tmp_addflag=' $pic_flag'
8938 tmp_sharedflag='-shared'
8939 case $cc_basename,$host_cpu in
8940 pgcc*) # Portland Group C compiler
8941 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'
8942 tmp_addflag=' $pic_flag'
8944 pgf77* | pgf90* | pgf95* | pgfortran*)
8945 # Portland Group f77 and f90 compilers
8946 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'
8947 tmp_addflag=' $pic_flag -Mnomain' ;;
8948 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8949 tmp_addflag=' -i_dynamic' ;;
8950 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8951 tmp_addflag=' -i_dynamic -nofor_main' ;;
8952 ifc* | ifort*) # Intel Fortran compiler
8953 tmp_addflag=' -nofor_main' ;;
8954 lf95*) # Lahey Fortran 8.1
8955 whole_archive_flag_spec=
8956 tmp_sharedflag='--shared' ;;
8957 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8958 tmp_sharedflag='-qmkshrobj'
8960 nvcc*) # Cuda Compiler Driver 2.2
8961 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'
8962 compiler_needs_object=yes
8965 case `$CC -V 2>&1 | sed 5q` in
8966 *Sun\ C*) # Sun C 5.9
8967 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'
8968 compiler_needs_object=yes
8969 tmp_sharedflag='-G' ;;
8970 *Sun\ F*) # Sun Fortran 8.3
8971 tmp_sharedflag='-G' ;;
8973 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 if test "x$supports_anon_versioning" = xyes; then
8976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978 echo "local: *; };" >> $output_objdir/$libname.ver~
8979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8982 case $cc_basename in
8983 xlf* | bgf* | bgxlf* | mpixlf*)
8984 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8985 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8988 if test "x$supports_anon_versioning" = xyes; then
8989 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8991 echo "local: *; };" >> $output_objdir/$libname.ver~
8992 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9003 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9017 *** create shared libraries on Solaris systems. Therefore, libtool
9018 *** is disabling shared libraries support. We urge you to upgrade GNU
9019 *** binutils to release 2.9.1 or newer. Another option is to modify
9020 *** your PATH or compiler configuration so that the native linker is
9021 *** used, and then restart.
9024 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9033 case `$LD -v 2>&1` in
9034 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9039 *** reliably create shared libraries on SCO systems. Therefore, libtool
9040 *** is disabling shared libraries support. We urge you to upgrade GNU
9041 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9042 *** your PATH or compiler configuration so that the native linker is
9043 *** used, and then restart.
9048 # For security reasons, it is highly recommended that you always
9049 # use absolute paths for naming shared libraries, and exclude the
9050 # DT_RUNPATH tag from executables and libraries. But doing so
9051 # requires that you compile everything twice, which is a pain.
9052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 hardcode_shlibpath_var=no
9071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9080 if test "$ld_shlibs" = no; then
9082 hardcode_libdir_flag_spec=
9083 export_dynamic_flag_spec=
9084 whole_archive_flag_spec=
9087 # PORTME fill in a description of your system's linker (not GNU ld)
9090 allow_undefined_flag=unsupported
9091 always_export_symbols=yes
9092 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'
9093 # Note: this linker hardcodes the directories in LIBPATH if there
9094 # are no directories specified by -L.
9095 hardcode_minus_L=yes
9096 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9097 # Neither direct hardcoding nor static linking is supported with a
9099 hardcode_direct=unsupported
9104 if test "$host_cpu" = ia64; then
9105 # On IA64, the linker does run time linking by default, so we don't
9106 # have to do anything special.
9107 aix_use_runtimelinking=no
9108 exp_sym_flag='-Bexport'
9111 # If we're using GNU nm, then we don't want the "-C" option.
9112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9113 # Also, AIX nm treats weak defined symbols like other global
9114 # defined symbols, whereas GNU nm marks them as "W".
9115 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9116 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'
9118 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'
9120 aix_use_runtimelinking=no
9122 # Test if we are trying to use run time linking or normal
9123 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124 # need to do runtime linking.
9125 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9126 for ld_flag in $LDFLAGS; do
9127 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128 aix_use_runtimelinking=yes
9135 exp_sym_flag='-bexport'
9136 no_entry_flag='-bnoentry'
9139 # When large executables or shared objects are built, AIX ld can
9140 # have problems creating the table of contents. If linking a library
9141 # or program results in "error TOC overflow" add -mminimal-toc to
9142 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9143 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9147 hardcode_direct_absolute=yes
9148 hardcode_libdir_separator=':'
9149 link_all_deplibs=yes
9150 file_list_spec='${wl}-f,'
9152 if test "$GCC" = yes; then
9153 case $host_os in aix4.[012]|aix4.[012].*)
9154 # We only want to do this on AIX 4.2 and lower, the check
9155 # below for broken collect2 doesn't work under 4.3+
9156 collect2name=`${CC} -print-prog-name=collect2`
9157 if test -f "$collect2name" &&
9158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9160 # We have reworked collect2
9163 # We have old collect2
9164 hardcode_direct=unsupported
9165 # It fails to find uninstalled libraries when the uninstalled
9166 # path is not listed in the libpath. Setting hardcode_minus_L
9167 # to unsupported forces relinking
9168 hardcode_minus_L=yes
9169 hardcode_libdir_flag_spec='-L$libdir'
9170 hardcode_libdir_separator=
9174 shared_flag='-shared'
9175 if test "$aix_use_runtimelinking" = yes; then
9176 shared_flag="$shared_flag "'${wl}-G'
9180 if test "$host_cpu" = ia64; then
9181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9182 # chokes on -Wl,-G. The following line is correct:
9185 if test "$aix_use_runtimelinking" = yes; then
9186 shared_flag='${wl}-G'
9188 shared_flag='${wl}-bM:SRE'
9193 export_dynamic_flag_spec='${wl}-bexpall'
9194 # It seems that -bexpall does not export symbols beginning with
9195 # underscore (_), so it is better to generate a list of symbols to export.
9196 always_export_symbols=yes
9197 if test "$aix_use_runtimelinking" = yes; then
9198 # Warning - without using the other runtime loading flags (-brtl),
9199 # -berok will link without error, but may produce a broken library.
9200 allow_undefined_flag='-berok'
9201 # Determine the default libpath from the value encoded in an
9203 if test "${lt_cv_aix_libpath+set}" = set; then
9204 aix_libpath=$lt_cv_aix_libpath
9206 if ${lt_cv_aix_libpath_+:} false; then :
9207 $as_echo_n "(cached) " >&6
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9220 if ac_fn_c_try_link "$LINENO"; then :
9222 lt_aix_libpath_sed='
9223 /Import File Strings/,/^$/ {
9225 s/^0 *\([^ ]*\) *$/\1/
9229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 # Check for a 64-bit object if we didn't find anything.
9231 if test -z "$lt_cv_aix_libpath_"; then
9232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 if test -z "$lt_cv_aix_libpath_"; then
9238 lt_cv_aix_libpath_="/usr/lib:/lib"
9243 aix_libpath=$lt_cv_aix_libpath_
9246 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9247 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"
9249 if test "$host_cpu" = ia64; then
9250 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9251 allow_undefined_flag="-z nodefs"
9252 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"
9254 # Determine the default libpath from the value encoded in an
9256 if test "${lt_cv_aix_libpath+set}" = set; then
9257 aix_libpath=$lt_cv_aix_libpath
9259 if ${lt_cv_aix_libpath_+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9273 if ac_fn_c_try_link "$LINENO"; then :
9275 lt_aix_libpath_sed='
9276 /Import File Strings/,/^$/ {
9278 s/^0 *\([^ ]*\) *$/\1/
9282 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283 # Check for a 64-bit object if we didn't find anything.
9284 if test -z "$lt_cv_aix_libpath_"; then
9285 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 if test -z "$lt_cv_aix_libpath_"; then
9291 lt_cv_aix_libpath_="/usr/lib:/lib"
9296 aix_libpath=$lt_cv_aix_libpath_
9299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9300 # Warning - without using the other run time loading flags,
9301 # -berok will link without error, but may produce a broken library.
9302 no_undefined_flag=' ${wl}-bernotok'
9303 allow_undefined_flag=' ${wl}-berok'
9304 if test "$with_gnu_ld" = yes; then
9305 # We only use this code for GNU lds that support --whole-archive.
9306 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9308 # Exported symbols can be pulled into shared objects from archives
9309 whole_archive_flag_spec='$convenience'
9311 archive_cmds_need_lc=yes
9312 # This is similar to how AIX traditionally builds its shared libraries.
9313 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'
9321 # see comment about AmigaOS4 .so support
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds=''
9326 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)'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9334 export_dynamic_flag_spec=-rdynamic
9337 cygwin* | mingw* | pw32* | cegcc*)
9338 # When not using gcc, we currently assume that we are using
9339 # Microsoft Visual C++.
9340 # hardcode_libdir_flag_spec is actually meaningless, as there is
9341 # no search path for DLLs.
9342 case $cc_basename in
9345 hardcode_libdir_flag_spec=' '
9346 allow_undefined_flag=unsupported
9347 always_export_symbols=yes
9349 # Tell ltmain to make .lib files, not .a files.
9351 # Tell ltmain to make .dll files, not .so files.
9353 # FIXME: Setting linknames here is a bad hack.
9354 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9355 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9356 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9358 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9360 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9362 # The linker will not automatically build a static lib if we build a DLL.
9363 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9364 enable_shared_with_static_runtimes=yes
9365 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9368 old_postinstall_cmds='chmod 644 $oldlib'
9369 postlink_cmds='lt_outputfile="@OUTPUT@"~
9370 lt_tool_outputfile="@TOOL_OUTPUT@"~
9371 case $lt_outputfile in
9374 lt_outputfile="$lt_outputfile.exe"
9375 lt_tool_outputfile="$lt_tool_outputfile.exe"
9378 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9379 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9380 $RM "$lt_outputfile.manifest";
9384 # Assume MSVC wrapper
9385 hardcode_libdir_flag_spec=' '
9386 allow_undefined_flag=unsupported
9387 # Tell ltmain to make .lib files, not .a files.
9389 # Tell ltmain to make .dll files, not .so files.
9391 # FIXME: Setting linknames here is a bad hack.
9392 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9393 # The linker will automatically build a .lib file if we build a DLL.
9394 old_archive_from_new_cmds='true'
9395 # FIXME: Should let the user specify the lib program.
9396 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9397 enable_shared_with_static_runtimes=yes
9402 darwin* | rhapsody*)
9405 archive_cmds_need_lc=no
9407 hardcode_automatic=yes
9408 hardcode_shlibpath_var=unsupported
9409 if test "$lt_cv_ld_force_load" = "yes"; then
9410 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\"`'
9413 whole_archive_flag_spec=''
9415 link_all_deplibs=yes
9416 allow_undefined_flag="$_lt_dar_allow_undefined"
9417 case $cc_basename in
9418 ifort*) _lt_dar_can_shared=yes ;;
9419 *) _lt_dar_can_shared=$GCC ;;
9421 if test "$_lt_dar_can_shared" = "yes"; then
9422 output_verbose_link_cmd=func_echo_all
9423 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9424 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9425 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}"
9426 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}"
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_shlibpath_var=no
9440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9441 # support. Future versions do this automatically, but an explicit c++rt0.o
9442 # does not break anything, and helps significantly (at the cost of a little
9445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9446 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9451 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_minus_L=yes
9456 hardcode_shlibpath_var=no
9459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9460 freebsd* | dragonfly*)
9461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9462 hardcode_libdir_flag_spec='-R$libdir'
9464 hardcode_shlibpath_var=no
9468 if test "$GCC" = yes; then
9469 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'
9471 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'
9473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474 hardcode_libdir_separator=:
9477 # hardcode_minus_L: Not really in the search PATH,
9478 # but as the default location of the library.
9479 hardcode_minus_L=yes
9480 export_dynamic_flag_spec='${wl}-E'
9484 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9485 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9489 if test "$with_gnu_ld" = no; then
9490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491 hardcode_libdir_separator=:
9493 hardcode_direct_absolute=yes
9494 export_dynamic_flag_spec='${wl}-E'
9495 # hardcode_minus_L: Not really in the search PATH,
9496 # but as the default location of the library.
9497 hardcode_minus_L=yes
9502 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9524 # Older versions of the 11.00 compiler do not understand -b yet
9525 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9527 $as_echo_n "checking if $CC understands -b... " >&6; }
9528 if ${lt_cv_prog_compiler__b+:} false; then :
9529 $as_echo_n "(cached) " >&6
9531 lt_cv_prog_compiler__b=no
9532 save_LDFLAGS="$LDFLAGS"
9533 LDFLAGS="$LDFLAGS -b"
9534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9536 # The linker can only warn and ignore the option if not recognized
9537 # So say no if there are warnings
9538 if test -s conftest.err; then
9539 # Append any errors to the config.log.
9540 cat conftest.err 1>&5
9541 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543 if diff conftest.exp conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler__b=yes
9547 lt_cv_prog_compiler__b=yes
9551 LDFLAGS="$save_LDFLAGS"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9555 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9557 if test x"$lt_cv_prog_compiler__b" = xyes; then
9558 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9560 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9566 if test "$with_gnu_ld" = no; then
9567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9568 hardcode_libdir_separator=:
9573 hardcode_shlibpath_var=no
9577 hardcode_direct_absolute=yes
9578 export_dynamic_flag_spec='${wl}-E'
9580 # hardcode_minus_L: Not really in the search PATH,
9581 # but as the default location of the library.
9582 hardcode_minus_L=yes
9588 irix5* | irix6* | nonstopux*)
9589 if test "$GCC" = yes; then
9590 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'
9591 # Try to use the -exported_symbol ld option, if it does not
9592 # work, assume that -exports_file does not work either and
9593 # implicitly export all symbols.
9594 # This should be the same for all languages, so no per-tag cache variable.
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9596 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9597 if ${lt_cv_irix_exported_symbol+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 save_LDFLAGS="$LDFLAGS"
9601 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int foo (void) { return 0; }
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 lt_cv_irix_exported_symbol=yes
9609 lt_cv_irix_exported_symbol=no
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LDFLAGS="$save_LDFLAGS"
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9616 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9617 if test "$lt_cv_irix_exported_symbol" = yes; then
9618 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'
9621 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'
9622 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'
9624 archive_cmds_need_lc='no'
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 hardcode_libdir_separator=:
9628 link_all_deplibs=yes
9632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9635 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9637 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_shlibpath_var=no
9643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9646 hardcode_libdir_separator=:
9647 hardcode_shlibpath_var=no
9654 if test -f /usr/libexec/ld.so; then
9656 hardcode_shlibpath_var=no
9657 hardcode_direct_absolute=yes
9658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9660 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9662 export_dynamic_flag_spec='${wl}-E'
9665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_libdir_flag_spec='-R$libdir'
9670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9681 hardcode_libdir_flag_spec='-L$libdir'
9682 hardcode_minus_L=yes
9683 allow_undefined_flag=unsupported
9684 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'
9685 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9689 if test "$GCC" = yes; then
9690 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9691 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'
9693 allow_undefined_flag=' -expect_unresolved \*'
9694 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'
9696 archive_cmds_need_lc='no'
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698 hardcode_libdir_separator=:
9701 osf4* | osf5*) # as osf3* with the addition of -msym flag
9702 if test "$GCC" = yes; then
9703 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9704 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'
9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9707 allow_undefined_flag=' -expect_unresolved \*'
9708 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'
9709 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~
9710 $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'
9712 # Both c and cxx compiler support -rpath directly
9713 hardcode_libdir_flag_spec='-rpath $libdir'
9715 archive_cmds_need_lc='no'
9716 hardcode_libdir_separator=:
9720 no_undefined_flag=' -z defs'
9721 if test "$GCC" = yes; then
9723 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725 $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'
9727 case `$CC -V 2>&1` in
9730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9736 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9742 hardcode_libdir_flag_spec='-R$libdir'
9743 hardcode_shlibpath_var=no
9745 solaris2.[0-5] | solaris2.[0-5].*) ;;
9747 # The compiler driver will combine and reorder linker options,
9748 # but understands `-z linker_flag'. GCC discards it without `$wl',
9749 # but is careful enough not to reorder.
9750 # Supported since Solaris 2.6 (maybe 2.5.1?)
9751 if test "$GCC" = yes; then
9752 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9754 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9758 link_all_deplibs=yes
9762 if test "x$host_vendor" = xsequent; then
9763 # Use $CC to link under sequent, because it throws in some extra .o
9764 # files that make .init and .fini sections work.
9765 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_minus_L=yes
9772 hardcode_shlibpath_var=no
9776 case $host_vendor in
9778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_direct=yes # is this really true???
9782 ## LD is ld it makes a PLAMLIB
9783 ## CC just makes a GrossModule.
9784 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9785 reload_cmds='$CC -r -o $output$reload_objs'
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9793 runpath_var='LD_RUN_PATH'
9794 hardcode_shlibpath_var=no
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_shlibpath_var=no
9800 export_dynamic_flag_spec='-Bexport'
9804 if test -d /usr/nec; then
9805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9806 hardcode_shlibpath_var=no
9807 runpath_var=LD_RUN_PATH
9808 hardcode_runpath_var=yes
9813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9814 no_undefined_flag='${wl}-z,text'
9815 archive_cmds_need_lc=no
9816 hardcode_shlibpath_var=no
9817 runpath_var='LD_RUN_PATH'
9819 if test "$GCC" = yes; then
9820 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 sysv5* | sco3.2v5* | sco5v6*)
9829 # Note: We can NOT use -z defs as we might desire, because we do not
9830 # link with -lc, and that would cause any symbols used from libc to
9831 # always be unresolved, which means just about no library would
9832 # ever link correctly. If we're not using GNU ld we use -z text
9833 # though, which does catch some bad symbols but isn't as heavy-handed
9835 no_undefined_flag='${wl}-z,text'
9836 allow_undefined_flag='${wl}-z,nodefs'
9837 archive_cmds_need_lc=no
9838 hardcode_shlibpath_var=no
9839 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9840 hardcode_libdir_separator=':'
9841 link_all_deplibs=yes
9842 export_dynamic_flag_spec='${wl}-Bexport'
9843 runpath_var='LD_RUN_PATH'
9845 if test "$GCC" = yes; then
9846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_shlibpath_var=no
9865 if test x$host_vendor = xsni; then
9867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9868 export_dynamic_flag_spec='${wl}-Blargedynsym'
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9875 $as_echo "$ld_shlibs" >&6; }
9876 test "$ld_shlibs" = no && can_build_shared=no
9878 with_gnu_ld=$with_gnu_ld
9895 # Do we need to explicitly link libc?
9897 case "x$archive_cmds_need_lc" in
9899 # Assume -lc should be added
9900 archive_cmds_need_lc=yes
9902 if test "$enable_shared" = yes && test "$GCC" = yes; then
9903 case $archive_cmds in
9905 # FIXME: we may have to deal with multi-command sequences.
9908 # Test whether the compiler implicitly links with -lc since on some
9909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9910 # to ld, don't add -lc before -lgcc.
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9912 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9913 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9914 $as_echo_n "(cached) " >&6
9917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9920 (eval $ac_compile) 2>&5
9922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9923 test $ac_status = 0; } 2>conftest.err; then
9926 libobjs=conftest.$ac_objext
9928 wl=$lt_prog_compiler_wl
9929 pic_flag=$lt_prog_compiler_pic
9935 lt_save_allow_undefined_flag=$allow_undefined_flag
9936 allow_undefined_flag=
9937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9938 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9941 test $ac_status = 0; }
9943 lt_cv_archive_cmds_need_lc=no
9945 lt_cv_archive_cmds_need_lc=yes
9947 allow_undefined_flag=$lt_save_allow_undefined_flag
9949 cat conftest.err 1>&5
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9955 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9956 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10115 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10117 if test "$GCC" = yes; then
10119 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10120 *) lt_awk_arg="/^libraries:/" ;;
10123 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10124 *) lt_sed_strip_eq="s,=/,/,g" ;;
10126 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10127 case $lt_search_path_spec in
10129 # if the path contains ";" then we assume it to be the separator
10130 # otherwise default to the standard path separator (i.e. ":") - it is
10131 # assumed that no part of a normal pathname contains ";" but that should
10132 # okay in the real world where ";" in dirpaths is itself problematic.
10133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10139 # Ok, now we have the path, separated by spaces, we can step through it
10140 # and add multilib dir if necessary.
10141 lt_tmp_lt_search_path_spec=
10142 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10143 for lt_sys_path in $lt_search_path_spec; do
10144 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10145 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10147 test -d "$lt_sys_path" && \
10148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10151 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10152 BEGIN {RS=" "; FS="/|\n";} {
10155 for (lt_i = NF; lt_i > 0; lt_i--) {
10156 if ($lt_i != "" && $lt_i != ".") {
10157 if ($lt_i == "..") {
10160 if (lt_count == 0) {
10161 lt_foo="/" $lt_i lt_foo;
10168 if (lt_foo != "") { lt_freq[lt_foo]++; }
10169 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10171 # AWK program above erroneously prepends '/' to C:/dos/paths
10174 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10175 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10177 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10181 library_names_spec=
10182 libname_spec='lib$name'
10186 postuninstall_cmds=
10190 shlibpath_overrides_runpath=unknown
10192 dynamic_linker="$host_os ld.so"
10193 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10194 need_lib_prefix=unknown
10195 hardcode_into_libs=no
10197 # when you set need_version to no, make sure it does not cause -set_version
10198 # flags to be left without arguments
10199 need_version=unknown
10203 version_type=linux # correct to gnu/linux during the next big refactor
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10205 shlibpath_var=LIBPATH
10207 # AIX 3 has no versioning support, so we append a major version to the name.
10208 soname_spec='${libname}${release}${shared_ext}$major'
10212 version_type=linux # correct to gnu/linux during the next big refactor
10215 hardcode_into_libs=yes
10216 if test "$host_cpu" = ia64; then
10217 # AIX 5 supports IA64
10218 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10219 shlibpath_var=LD_LIBRARY_PATH
10221 # With GCC up to 2.95.x, collect2 would create an import file
10222 # for dependence libraries. The import file would start with
10223 # the line `#! .'. This would cause the generated library to
10224 # depend on `.', always an invalid library. This was fixed in
10225 # development snapshots of GCC prior to 3.0.
10227 aix4 | aix4.[01] | aix4.[01].*)
10228 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10230 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10233 can_build_shared=no
10237 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10238 # soname into executable. Probably we can add versioning support to
10239 # collect2, so additional links can be useful in future.
10240 if test "$aix_use_runtimelinking" = yes; then
10241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10242 # instead of lib<name>.a to let people know that these are not
10243 # typical AIX shared libraries.
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 # We preserve .a as extension for shared libraries through AIX4.2
10247 # and later when we are not doing run time linking.
10248 library_names_spec='${libname}${release}.a $libname.a'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LIBPATH
10258 # Since July 2007 AmigaOS4 officially supports .so libraries.
10259 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 library_names_spec='$libname.ixlibrary $libname.a'
10264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10265 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'
10271 library_names_spec='${libname}${shared_ext}'
10272 dynamic_linker="$host_os ld.so"
10273 shlibpath_var=LIBRARY_PATH
10277 version_type=linux # correct to gnu/linux during the next big refactor
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10285 # the default ld.so.conf also contains /usr/contrib/lib and
10286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10287 # libtool to hard-code these into programs
10290 cygwin* | mingw* | pw32* | cegcc*)
10291 version_type=windows
10296 case $GCC,$cc_basename in
10299 library_names_spec='$libname.dll.a'
10300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10301 postinstall_cmds='base_file=`basename \${file}`~
10302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10303 dldir=$destdir/`dirname \$dlpath`~
10304 test -d \$dldir || mkdir -p \$dldir~
10305 $install_prog $dir/$dlname \$dldir/$dlname~
10306 chmod a+x \$dldir/$dlname~
10307 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10308 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10311 dlpath=$dir/\$dldll~
10313 shlibpath_overrides_runpath=yes
10317 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10318 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10320 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10323 # MinGW DLLs use traditional 'lib' prefix
10324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10327 # pw32 DLLs use 'pw' prefix rather than 'lib'
10328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10331 dynamic_linker='Win32 ld.exe'
10336 libname_spec='$name'
10337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 library_names_spec='${libname}.dll.lib'
10342 sys_lib_search_path_spec=
10345 for lt_path in $LIB
10348 # Let DOS variable expansion print the short 8.3 style file name.
10349 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10350 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10353 # Convert to MSYS style.
10354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10357 # Convert to unix form, then to dos form, then back to unix form
10358 # but this time dos style (no spaces!) so that the unix form looks
10359 # like /cygdrive/c/PROGRA~1:/cygdr...
10360 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10361 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10362 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10365 sys_lib_search_path_spec="$LIB"
10366 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10367 # It is most probably a Windows format PATH.
10368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10372 # FIXME: find the short name or the path components, as spaces are
10373 # common. (e.g. "Program Files" -> "PROGRA~1")
10377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10378 postinstall_cmds='base_file=`basename \${file}`~
10379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10380 dldir=$destdir/`dirname \$dlpath`~
10381 test -d \$dldir || mkdir -p \$dldir~
10382 $install_prog $dir/$dlname \$dldir/$dlname'
10383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10384 dlpath=$dir/\$dldll~
10386 shlibpath_overrides_runpath=yes
10387 dynamic_linker='Win32 link.exe'
10391 # Assume MSVC wrapper
10392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10393 dynamic_linker='Win32 ld.exe'
10396 # FIXME: first we should search . and the directory the executable is in
10400 darwin* | rhapsody*)
10401 dynamic_linker="$host_os dyld"
10402 version_type=darwin
10405 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10406 soname_spec='${libname}${release}${major}$shared_ext'
10407 shlibpath_overrides_runpath=yes
10408 shlibpath_var=DYLD_LIBRARY_PATH
10409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10411 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10416 version_type=linux # correct to gnu/linux during the next big refactor
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LD_LIBRARY_PATH
10424 freebsd* | dragonfly*)
10425 # DragonFly does not have aout. When/if they implement a new
10426 # versioning mechanism, adjust this.
10427 if test -x /usr/bin/objformat; then
10428 objformat=`/usr/bin/objformat`
10431 freebsd[23].*) objformat=aout ;;
10432 *) objformat=elf ;;
10435 version_type=freebsd-$objformat
10436 case $version_type in
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10447 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10452 freebsd3.[01]* | freebsdelf3.[01]*)
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10456 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10457 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10461 *) # from 4.6 on, and DragonFly
10462 shlibpath_overrides_runpath=yes
10463 hardcode_into_libs=yes
10469 version_type=linux # correct to gnu/linux during the next big refactor
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10473 soname_spec='${libname}${release}${shared_ext}$major'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=no
10476 hardcode_into_libs=yes
10480 version_type=linux # correct to gnu/linux during the next big refactor
10483 dynamic_linker="$host_os runtime_loader"
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 shlibpath_var=LIBRARY_PATH
10487 shlibpath_overrides_runpath=yes
10488 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10489 hardcode_into_libs=yes
10492 hpux9* | hpux10* | hpux11*)
10493 # Give a soname corresponding to the major version so that dld.sl refuses to
10494 # link against other versions.
10501 hardcode_into_libs=yes
10502 dynamic_linker="$host_os dld.so"
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 if test "X$HPUX_IA64_MODE" = X32; then
10508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10516 hardcode_into_libs=yes
10517 dynamic_linker="$host_os dld.sl"
10518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10527 dynamic_linker="$host_os dld.sl"
10528 shlibpath_var=SHLIB_PATH
10529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10534 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10535 postinstall_cmds='chmod 555 $lib'
10536 # or fails outright, so override atomically:
10537 install_override_mode=555
10541 version_type=linux # correct to gnu/linux during the next big refactor
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 shlibpath_overrides_runpath=no
10549 hardcode_into_libs=yes
10552 irix5* | irix6* | nonstopux*)
10554 nonstopux*) version_type=nonstopux ;;
10556 if test "$lt_cv_prog_gnu_ld" = yes; then
10557 version_type=linux # correct to gnu/linux during the next big refactor
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10567 irix5* | nonstopux*)
10568 libsuff= shlibsuff=
10571 case $LD in # libtool.m4 will add one of these switches to LD
10572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10573 libsuff= shlibsuff= libmagic=32-bit;;
10574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10575 libsuff=32 shlibsuff=N32 libmagic=N32;;
10576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10578 *) libsuff= shlibsuff= libmagic=never-match;;
10582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10583 shlibpath_overrides_runpath=no
10584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10586 hardcode_into_libs=yes
10589 # No shared lib support for Linux oldld, aout, or coff.
10590 linux*oldld* | linux*aout* | linux*coff*)
10594 # This must be glibc/ELF.
10595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10596 version_type=linux # correct to gnu/linux during the next big refactor
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 shlibpath_overrides_runpath=no
10605 # Some binutils ld are patched to set DT_RUNPATH
10606 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10607 $as_echo_n "(cached) " >&6
10609 lt_cv_shlibpath_overrides_runpath=no
10610 save_LDFLAGS=$LDFLAGS
10611 save_libdir=$libdir
10612 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10613 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10627 lt_cv_shlibpath_overrides_runpath=yes
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LDFLAGS=$save_LDFLAGS
10633 libdir=$save_libdir
10637 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10639 # This implies no fast_install, which is unacceptable.
10640 # Some rework will be needed to allow for fast_install
10641 # before this can be enabled.
10642 hardcode_into_libs=yes
10644 # Append ld.so.conf contents to the search path
10645 if test -f /etc/ld.so.conf; then
10646 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' ' '`
10647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10650 # We used to test for /lib/ld.so.1 and disable shared libraries on
10651 # powerpc, because MkLinux only supported shared libraries with the
10652 # GNU dynamic linker. Since this was broken with cross compilers,
10653 # most powerpc-linux boxes support dynamic linking these days and
10654 # people can always --disable-shared, the test was removed, and we
10655 # assume the GNU/Linux dynamic linker is in use.
10656 dynamic_linker='GNU/Linux ld.so'
10663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10666 dynamic_linker='NetBSD (a.out) ld.so'
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 dynamic_linker='NetBSD ld.elf_so'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10678 version_type=linux # correct to gnu/linux during the next big refactor
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=no
10692 hardcode_into_libs=yes
10693 dynamic_linker='ldqnx.so'
10698 sys_lib_dlsearch_path_spec="/usr/lib"
10700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10703 *) need_version=no ;;
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10710 openbsd2.[89] | openbsd2.[89].*)
10711 shlibpath_overrides_runpath=no
10714 shlibpath_overrides_runpath=yes
10718 shlibpath_overrides_runpath=yes
10723 libname_spec='$name'
10726 library_names_spec='$libname${shared_ext} $libname.a'
10727 dynamic_linker='OS/2 ld.exe'
10728 shlibpath_var=LIBPATH
10731 osf3* | osf4* | osf5*)
10735 soname_spec='${libname}${release}${shared_ext}$major'
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10747 version_type=linux # correct to gnu/linux during the next big refactor
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=yes
10754 hardcode_into_libs=yes
10755 # ldd complains unless libraries are executable
10756 postinstall_cmds='chmod +x $lib'
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes
10765 if test "$with_gnu_ld" = yes; then
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 case $host_vendor in
10778 shlibpath_overrides_runpath=no
10780 runpath_var=LD_RUN_PATH
10788 shlibpath_overrides_runpath=no
10789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10795 if test -d /usr/nec ;then
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10798 soname_spec='$libname${shared_ext}.$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10804 version_type=freebsd-elf
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 shlibpath_var=LD_LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes
10811 hardcode_into_libs=yes
10812 if test "$with_gnu_ld" = yes; then
10813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10822 sys_lib_dlsearch_path_spec='/usr/lib'
10826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10827 version_type=linux # correct to gnu/linux during the next big refactor
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=no
10833 hardcode_into_libs=yes
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10848 $as_echo "$dynamic_linker" >&6; }
10849 test "$dynamic_linker" = no && can_build_shared=no
10851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10852 if test "$GCC" = yes; then
10853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10856 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10857 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10859 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10860 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10955 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10957 if test -n "$hardcode_libdir_flag_spec" ||
10958 test -n "$runpath_var" ||
10959 test "X$hardcode_automatic" = "Xyes" ; then
10961 # We can hardcode non-existent directories.
10962 if test "$hardcode_direct" != no &&
10963 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10964 # have to relink, otherwise we might link with an installed library
10965 # when we should be linking with a yet-to-be-installed one
10966 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10967 test "$hardcode_minus_L" != no; then
10968 # Linking always hardcodes the temporary library directory.
10969 hardcode_action=relink
10971 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10972 hardcode_action=immediate
10975 # We cannot hardcode anything, or else we can only hardcode existing
10977 hardcode_action=unsupported
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10980 $as_echo "$hardcode_action" >&6; }
10982 if test "$hardcode_action" = relink ||
10983 test "$inherit_rpath" = yes; then
10984 # Fast installation is not supported
10985 enable_fast_install=no
10986 elif test "$shlibpath_overrides_runpath" = yes ||
10987 test "$enable_shared" = no; then
10988 # Fast installation is not necessary
10989 enable_fast_install=needless
10997 if test "x$enable_dlopen" != xyes; then
10998 enable_dlopen=unknown
10999 enable_dlopen_self=unknown
11000 enable_dlopen_self_static=unknown
11007 lt_cv_dlopen="load_add_on"
11009 lt_cv_dlopen_self=yes
11012 mingw* | pw32* | cegcc*)
11013 lt_cv_dlopen="LoadLibrary"
11018 lt_cv_dlopen="dlopen"
11023 # if libdl is installed we need to link against it
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11025 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11026 if ${ac_cv_lib_dl_dlopen+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 ac_check_lib_save_LIBS=$LIBS
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_dl_dlopen=yes
11052 ac_cv_lib_dl_dlopen=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11059 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11060 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11064 lt_cv_dlopen="dyld"
11066 lt_cv_dlopen_self=yes
11073 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11074 if test "x$ac_cv_func_shl_load" = xyes; then :
11075 lt_cv_dlopen="shl_load"
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11078 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11079 if ${ac_cv_lib_dld_shl_load+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 ac_check_lib_save_LIBS=$LIBS
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11097 return shl_load ();
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_dld_shl_load=yes
11105 ac_cv_lib_dld_shl_load=no
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11112 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11113 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11114 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11116 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11117 if test "x$ac_cv_func_dlopen" = xyes; then :
11118 lt_cv_dlopen="dlopen"
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11122 if ${ac_cv_lib_dl_dlopen+:} false; then :
11123 $as_echo_n "(cached) " >&6
11125 ac_check_lib_save_LIBS=$LIBS
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11145 if ac_fn_c_try_link "$LINENO"; then :
11146 ac_cv_lib_dl_dlopen=yes
11148 ac_cv_lib_dl_dlopen=no
11150 rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11156 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11160 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11161 if ${ac_cv_lib_svld_dlopen+:} false; then :
11162 $as_echo_n "(cached) " >&6
11164 ac_check_lib_save_LIBS=$LIBS
11165 LIBS="-lsvld $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 ac_cv_lib_svld_dlopen=yes
11187 ac_cv_lib_svld_dlopen=no
11189 rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext conftest.$ac_ext
11191 LIBS=$ac_check_lib_save_LIBS
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11194 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11195 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11199 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11200 if ${ac_cv_lib_dld_dld_link+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_check_lib_save_LIBS=$LIBS
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11218 return dld_link ();
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_dld_dld_link=yes
11226 ac_cv_lib_dld_dld_link=no
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11233 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11234 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11235 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11256 if test "x$lt_cv_dlopen" != xno; then
11262 case $lt_cv_dlopen in
11264 save_CPPFLAGS="$CPPFLAGS"
11265 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11267 save_LDFLAGS="$LDFLAGS"
11268 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11271 LIBS="$lt_cv_dlopen_libs $LIBS"
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11274 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11275 if ${lt_cv_dlopen_self+:} false; then :
11276 $as_echo_n "(cached) " >&6
11278 if test "$cross_compiling" = yes; then :
11279 lt_cv_dlopen_self=cross
11281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11282 lt_status=$lt_dlunknown
11283 cat > conftest.$ac_ext <<_LT_EOF
11284 #line $LINENO "configure"
11285 #include "confdefs.h"
11294 # define LT_DLGLOBAL RTLD_GLOBAL
11297 # define LT_DLGLOBAL DL_GLOBAL
11299 # define LT_DLGLOBAL 0
11303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11304 find out it does not work in some platform. */
11305 #ifndef LT_DLLAZY_OR_NOW
11307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11310 # define LT_DLLAZY_OR_NOW DL_LAZY
11313 # define LT_DLLAZY_OR_NOW RTLD_NOW
11316 # define LT_DLLAZY_OR_NOW DL_NOW
11318 # define LT_DLLAZY_OR_NOW 0
11325 /* When -fvisbility=hidden is used, assume the code has been annotated
11326 correspondingly for the symbols needed. */
11327 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11328 int fnord () __attribute__((visibility("default")));
11331 int fnord () { return 42; }
11334 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11335 int status = $lt_dlunknown;
11339 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11342 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11343 else puts (dlerror ());
11345 /* dlclose (self); */
11353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11354 (eval $ac_link) 2>&5
11356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11358 (./conftest; exit; ) >&5 2>/dev/null
11360 case x$lt_status in
11361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11363 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11366 # compilation failed
11367 lt_cv_dlopen_self=no
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11375 $as_echo "$lt_cv_dlopen_self" >&6; }
11377 if test "x$lt_cv_dlopen_self" = xyes; then
11378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11380 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11381 if ${lt_cv_dlopen_self_static+:} false; then :
11382 $as_echo_n "(cached) " >&6
11384 if test "$cross_compiling" = yes; then :
11385 lt_cv_dlopen_self_static=cross
11387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11388 lt_status=$lt_dlunknown
11389 cat > conftest.$ac_ext <<_LT_EOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11400 # define LT_DLGLOBAL RTLD_GLOBAL
11403 # define LT_DLGLOBAL DL_GLOBAL
11405 # define LT_DLGLOBAL 0
11409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11410 find out it does not work in some platform. */
11411 #ifndef LT_DLLAZY_OR_NOW
11413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11416 # define LT_DLLAZY_OR_NOW DL_LAZY
11419 # define LT_DLLAZY_OR_NOW RTLD_NOW
11422 # define LT_DLLAZY_OR_NOW DL_NOW
11424 # define LT_DLLAZY_OR_NOW 0
11431 /* When -fvisbility=hidden is used, assume the code has been annotated
11432 correspondingly for the symbols needed. */
11433 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11434 int fnord () __attribute__((visibility("default")));
11437 int fnord () { return 42; }
11440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441 int status = $lt_dlunknown;
11445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11448 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11449 else puts (dlerror ());
11451 /* dlclose (self); */
11459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11460 (eval $ac_link) 2>&5
11462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11464 (./conftest; exit; ) >&5 2>/dev/null
11466 case x$lt_status in
11467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11469 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11472 # compilation failed
11473 lt_cv_dlopen_self_static=no
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11481 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11484 CPPFLAGS="$save_CPPFLAGS"
11485 LDFLAGS="$save_LDFLAGS"
11490 case $lt_cv_dlopen_self in
11491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11492 *) enable_dlopen_self=unknown ;;
11495 case $lt_cv_dlopen_self_static in
11496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11497 *) enable_dlopen_self_static=unknown ;;
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11520 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11521 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11522 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11523 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11527 # FIXME - insert some real tests, host_os isn't really good enough
11530 if test -n "$STRIP" ; then
11531 striplib="$STRIP -x"
11532 old_striplib="$STRIP -S"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11558 # Report which library types will actually be built
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11560 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11562 $as_echo "$can_build_shared" >&6; }
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11565 $as_echo_n "checking whether to build shared libraries... " >&6; }
11566 test "$can_build_shared" = "no" && enable_shared=no
11568 # On AIX, shared libraries and static libraries use the same namespace, and
11569 # are all built from PIC.
11572 test "$enable_shared" = yes && enable_static=no
11573 if test -n "$RANLIB"; then
11574 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11575 postinstall_cmds='$RANLIB $lib'
11580 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11581 test "$enable_shared" = yes && enable_static=no
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11586 $as_echo "$enable_shared" >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11589 $as_echo_n "checking whether to build static libraries... " >&6; }
11590 # Make sure either enable_shared or enable_static is yes.
11591 test "$enable_shared" = yes || enable_static=yes
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11593 $as_echo "$enable_static" >&6; }
11600 ac_cpp='$CPP $CPPFLAGS'
11601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 ac_config_commands="$ac_config_commands libtool"
11626 # Only expand once:
11629 ac_config_headers="$ac_config_headers config.h"
11631 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile wimlib.pc doc/imagex.1 doc/imagex-append.1 doc/imagex-apply.1 doc/imagex-capture.1 doc/imagex-delete.1 doc/imagex-dir.1 doc/imagex-export.1 doc/imagex-info.1 doc/imagex-join.1 doc/imagex-mount.1 doc/imagex-mountrw.1 doc/imagex-split.1 doc/imagex-unmount.1 doc/mkwinpeimg.1 rpm/wimlib.spec archlinux/PKGBUILD"
11634 ac_cpp='$CPP $CPPFLAGS'
11635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11638 if test -n "$ac_tool_prefix"; then
11639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_prog_CC+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 if test -n "$CC"; then
11647 ac_cv_prog_CC="$CC" # Let the user override the test.
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667 if test -n "$CC"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11669 $as_echo "$CC" >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11677 if test -z "$ac_cv_prog_CC"; then
11679 # Extract the first word of "gcc", so it can be a program name with args.
11680 set dummy gcc; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11684 $as_echo_n "(cached) " >&6
11686 if test -n "$ac_ct_CC"; then
11687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696 ac_cv_prog_ac_ct_CC="gcc"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11707 if test -n "$ac_ct_CC"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11709 $as_echo "$ac_ct_CC" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11715 if test "x$ac_ct_CC" = x; then
11718 case $cross_compiling:$ac_tool_warned in
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11727 CC="$ac_cv_prog_CC"
11730 if test -z "$CC"; then
11731 if test -n "$ac_tool_prefix"; then
11732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11733 set dummy ${ac_tool_prefix}cc; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_CC+:} false; then :
11737 $as_echo_n "(cached) " >&6
11739 if test -n "$CC"; then
11740 ac_cv_prog_CC="$CC" # Let the user override the test.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749 ac_cv_prog_CC="${ac_tool_prefix}cc"
11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 if test -n "$CC"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11762 $as_echo "$CC" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11771 if test -z "$CC"; then
11772 # Extract the first word of "cc", so it can be a program name with args.
11773 set dummy cc; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_prog_CC+:} false; then :
11777 $as_echo_n "(cached) " >&6
11779 if test -n "$CC"; then
11780 ac_cv_prog_CC="$CC" # Let the user override the test.
11782 ac_prog_rejected=no
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11791 ac_prog_rejected=yes
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 if test $ac_prog_rejected = yes; then
11803 # We found a bogon in the path, so make sure we never use it.
11804 set dummy $ac_cv_prog_CC
11806 if test $# != 0; then
11807 # We chose a different compiler from the bogus one.
11808 # However, it has the same basename, so the bogon will be chosen
11809 # first if we set CC to just the basename; use the full file name.
11811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11817 if test -n "$CC"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11819 $as_echo "$CC" >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11827 if test -z "$CC"; then
11828 if test -n "$ac_tool_prefix"; then
11829 for ac_prog in cl.exe
11831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if ${ac_cv_prog_CC+:} false; then :
11836 $as_echo_n "(cached) " >&6
11838 if test -n "$CC"; then
11839 ac_cv_prog_CC="$CC" # Let the user override the test.
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 if test -n "$CC"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11861 $as_echo "$CC" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11868 test -n "$CC" && break
11871 if test -z "$CC"; then
11873 for ac_prog in cl.exe
11875 # Extract the first word of "$ac_prog", so it can be a program name with args.
11876 set dummy $ac_prog; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11880 $as_echo_n "(cached) " >&6
11882 if test -n "$ac_ct_CC"; then
11883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_prog_ac_ct_CC="$ac_prog"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11903 if test -n "$ac_ct_CC"; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11905 $as_echo "$ac_ct_CC" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
11912 test -n "$ac_ct_CC" && break
11915 if test "x$ac_ct_CC" = x; then
11918 case $cross_compiling:$ac_tool_warned in
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11922 ac_tool_warned=yes ;;
11931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11933 as_fn_error $? "no acceptable C compiler found in \$PATH
11934 See \`config.log' for more details" "$LINENO" 5; }
11936 # Provide some information about the compiler.
11937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11940 for ac_option in --version -v -V -qversion; do
11941 { { ac_try="$ac_compiler $ac_option >&5"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11947 $as_echo "$ac_try_echo"; } >&5
11948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11950 if test -s conftest.err; then
11952 ... rest of stderr output deleted ...
11953 10q' conftest.err >conftest.er1
11954 cat conftest.er1 >&5
11956 rm -f conftest.er1 conftest.err
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11963 if ${ac_cv_c_compiler_gnu+:} false; then :
11964 $as_echo_n "(cached) " >&6
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981 ac_compiler_gnu=yes
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11991 if test $ac_compiler_gnu = yes; then
11996 ac_test_CFLAGS=${CFLAGS+set}
11997 ac_save_CFLAGS=$CFLAGS
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12000 if ${ac_cv_prog_cc_g+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 ac_save_c_werror_flag=$ac_c_werror_flag
12004 ac_c_werror_flag=yes
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12018 if ac_fn_c_try_compile "$LINENO"; then :
12019 ac_cv_prog_cc_g=yes
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12033 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_c_werror_flag=$ac_save_c_werror_flag
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050 ac_cv_prog_cc_g=yes
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 ac_c_werror_flag=$ac_save_c_werror_flag
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12060 $as_echo "$ac_cv_prog_cc_g" >&6; }
12061 if test "$ac_test_CFLAGS" = set; then
12062 CFLAGS=$ac_save_CFLAGS
12063 elif test $ac_cv_prog_cc_g = yes; then
12064 if test "$GCC" = yes; then
12070 if test "$GCC" = yes; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12078 if ${ac_cv_prog_cc_c89+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 ac_cv_prog_cc_c89=no
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <stdarg.h>
12088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12089 struct buf { int x; };
12090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12091 static char *e (p, i)
12097 static char *f (char * (*g) (char **, int), char **p, ...)
12102 s = g (p, va_arg (v,int));
12107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12108 function prototypes and stuff, but not '\xHH' hex character constants.
12109 These don't provoke an error unfortunately, instead are silently treated
12110 as 'x'. The following induces an error, until -std is added to get
12111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12112 array size at least. It's necessary to write '\x00'==0 to get something
12113 that's true only with -std. */
12114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12117 inside strings and character constants. */
12119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12121 int test (int i, double x);
12122 struct s1 {int (*f) (int a);};
12123 struct s2 {int (*f) (double a);};
12124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12138 CC="$ac_save_CC $ac_arg"
12139 if ac_fn_c_try_compile "$LINENO"; then :
12140 ac_cv_prog_cc_c89=$ac_arg
12142 rm -f core conftest.err conftest.$ac_objext
12143 test "x$ac_cv_prog_cc_c89" != "xno" && break
12145 rm -f conftest.$ac_ext
12150 case "x$ac_cv_prog_cc_c89" in
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12153 $as_echo "none needed" >&6; } ;;
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12156 $as_echo "unsupported" >&6; } ;;
12158 CC="$CC $ac_cv_prog_cc_c89"
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12162 if test "x$ac_cv_prog_cc_c89" != xno; then :
12167 ac_cpp='$CPP $CPPFLAGS'
12168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12172 depcc="$CC" am_compiler_list=
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12175 $as_echo_n "checking dependency style of $depcc... " >&6; }
12176 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12177 $as_echo_n "(cached) " >&6
12179 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12180 # We make a subdir and do the tests there. Otherwise we can end up
12181 # making bogus files that we don't know about and never remove. For
12182 # instance it was reported that on HP-UX the gcc test will end up
12183 # making a dummy file named 'D' -- because '-MD' means "put the output
12185 rm -rf conftest.dir
12187 # Copy depcomp to subdir because otherwise we won't find it if we're
12188 # using a relative directory.
12189 cp "$am_depcomp" conftest.dir
12191 # We will build objects and dependencies in a subdirectory because
12192 # it helps to detect inapplicable dependency modes. For instance
12193 # both Tru64's cc and ICC support -MD to output dependencies as a
12194 # side effect of compilation, but ICC will put the dependencies in
12195 # the current directory while Tru64 will put them in the object
12199 am_cv_CC_dependencies_compiler_type=none
12200 if test "$am_compiler_list" = ""; then
12201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12203 am__universal=false
12204 case " $depcc " in #(
12205 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12208 for depmode in $am_compiler_list; do
12209 # Setup a source with many dependencies, because some compilers
12210 # like to wrap large dependency lists on column 80 (with \), and
12211 # we should not choose a depcomp mode which is confused by this.
12213 # We need to recreate these files for each test, as the compiler may
12214 # overwrite some of them when testing with obscure command lines.
12215 # This happens at least with the AIX C compiler.
12217 for i in 1 2 3 4 5 6; do
12218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12219 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12220 # Solaris 10 /bin/sh.
12221 echo '/* dummy */' > sub/conftst$i.h
12223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12225 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12226 # mode. It turns out that the SunPro C++ compiler does not properly
12227 # handle '-M -o', and we need to detect this. Also, some Intel
12228 # versions had trouble with output in subdirs.
12229 am__obj=sub/conftest.${OBJEXT-o}
12230 am__minus_obj="-o $am__obj"
12233 # This depmode causes a compiler race in universal mode.
12234 test "$am__universal" = false || continue
12237 # After this tag, mechanisms are not by side-effect, so they'll
12238 # only be used when explicitly requested.
12239 if test "x$enable_dependency_tracking" = xyes; then
12245 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12246 # This compiler won't grok '-c -o', but also, the minuso test has
12247 # not run yet. These depmodes are late enough in the game, and
12248 # so weak that their functioning should not be impacted.
12249 am__obj=conftest.${OBJEXT-o}
12254 if depmode=$depmode \
12255 source=sub/conftest.c object=$am__obj \
12256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12257 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12258 >/dev/null 2>conftest.err &&
12259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12261 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12263 # icc doesn't choke on unknown options, it will just issue warnings
12264 # or remarks (even with -Werror). So we grep stderr for any message
12265 # that says an option was ignored or not supported.
12266 # When given -MP, icc 7.0 and 7.1 complain thusly:
12267 # icc: Command line warning: ignoring option '-M'; no argument required
12268 # The diagnosis changed in icc 8.0:
12269 # icc: Command line remark: option '-MP' not supported
12270 if (grep 'ignoring option' conftest.err ||
12271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12272 am_cv_CC_dependencies_compiler_type=$depmode
12279 rm -rf conftest.dir
12281 am_cv_CC_dependencies_compiler_type=none
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12286 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12287 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12290 test "x$enable_dependency_tracking" != xno \
12291 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12292 am__fastdepCC_TRUE=
12293 am__fastdepCC_FALSE='#'
12295 am__fastdepCC_TRUE='#'
12296 am__fastdepCC_FALSE=
12303 if test "X$prefix" = "XNONE"; then
12304 acl_final_prefix="$ac_default_prefix"
12306 acl_final_prefix="$prefix"
12308 if test "X$exec_prefix" = "XNONE"; then
12309 acl_final_exec_prefix='${prefix}'
12311 acl_final_exec_prefix="$exec_prefix"
12313 acl_save_prefix="$prefix"
12314 prefix="$acl_final_prefix"
12315 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12316 prefix="$acl_save_prefix"
12319 # Check whether --with-gnu-ld was given.
12320 if test "${with_gnu_ld+set}" = set; then :
12321 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12326 # Prepare PATH_SEPARATOR.
12327 # The user is always right.
12328 if test "${PATH_SEPARATOR+set}" != set; then
12329 echo "#! /bin/sh" >conf$$.sh
12330 echo "exit 0" >>conf$$.sh
12332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12340 if test "$GCC" = yes; then
12341 # Check if gcc -print-prog-name=ld gives a path.
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12343 $as_echo_n "checking for ld used by GCC... " >&6; }
12346 # gcc leaves a trailing carriage return which upsets mingw
12347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12349 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12352 # Accept absolute paths.
12353 [\\/]* | [A-Za-z]:[\\/]*)
12354 re_direlt='/[^/][^/]*/\.\./'
12355 # Canonicalize the path of ld
12356 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12357 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12358 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12360 test -z "$LD" && LD="$ac_prog"
12363 # If it fails, then pretend we aren't using GCC.
12367 # If it is relative, then search for the first ld in PATH.
12368 with_gnu_ld=unknown
12371 elif test "$with_gnu_ld" = yes; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12373 $as_echo_n "checking for GNU ld... " >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12376 $as_echo_n "checking for non-GNU ld... " >&6; }
12378 if ${acl_cv_path_LD+:} false; then :
12379 $as_echo_n "(cached) " >&6
12381 if test -z "$LD"; then
12382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12383 for ac_dir in $PATH; do
12384 test -z "$ac_dir" && ac_dir=.
12385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12386 acl_cv_path_LD="$ac_dir/$ac_prog"
12387 # Check to see if the program is GNU ld. I'd rather use --version,
12388 # but apparently some GNU ld's only accept -v.
12389 # Break only if it was the GNU/non-GNU ld that we prefer.
12390 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12391 *GNU* | *'with BFD'*)
12392 test "$with_gnu_ld" != no && break ;;
12394 test "$with_gnu_ld" != yes && break ;;
12400 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12404 LD="$acl_cv_path_LD"
12405 if test -n "$LD"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12407 $as_echo "$LD" >&6; }
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12412 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12414 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12415 if ${acl_cv_prog_gnu_ld+:} false; then :
12416 $as_echo_n "(cached) " >&6
12418 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12419 case `$LD -v 2>&1 </dev/null` in
12420 *GNU* | *'with BFD'*)
12421 acl_cv_prog_gnu_ld=yes ;;
12423 acl_cv_prog_gnu_ld=no ;;
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12427 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12428 with_gnu_ld=$acl_cv_prog_gnu_ld
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12434 $as_echo_n "checking for shared library run path origin... " >&6; }
12435 if ${acl_cv_rpath+:} false; then :
12436 $as_echo_n "(cached) " >&6
12439 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12440 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12442 rm -f ./conftest.sh
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12447 $as_echo "$acl_cv_rpath" >&6; }
12449 acl_libext="$acl_cv_libext"
12450 acl_shlibext="$acl_cv_shlibext"
12451 acl_libname_spec="$acl_cv_libname_spec"
12452 acl_library_names_spec="$acl_cv_library_names_spec"
12453 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12454 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12455 acl_hardcode_direct="$acl_cv_hardcode_direct"
12456 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12457 # Check whether --enable-rpath was given.
12458 if test "${enable_rpath+set}" = set; then :
12459 enableval=$enable_rpath; :
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12472 $as_echo_n "checking for 64-bit host... " >&6; }
12473 if ${gl_cv_solaris_64bit+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12485 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12486 gl_cv_solaris_64bit=yes
12488 gl_cv_solaris_64bit=no
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12495 $as_echo "$gl_cv_solaris_64bit" >&6; }
12496 if test $gl_cv_solaris_64bit = yes; then
12497 acl_libdirstem=lib/64
12498 case "$host_cpu" in
12499 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12500 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12505 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12506 if test -n "$searchpath"; then
12507 acl_save_IFS="${IFS= }"; IFS=":"
12508 for searchdir in $searchpath; do
12509 if test -d "$searchdir"; then
12510 case "$searchdir" in
12511 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12513 # Better ignore directories of this form. They are misleading.
12515 *) searchdir=`cd "$searchdir" && pwd`
12516 case "$searchdir" in
12517 */lib64 ) acl_libdirstem=lib64 ;;
12522 IFS="$acl_save_IFS"
12526 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12541 acl_save_prefix="$prefix"
12542 prefix="$acl_final_prefix"
12543 acl_save_exec_prefix="$exec_prefix"
12544 exec_prefix="$acl_final_exec_prefix"
12546 eval additional_includedir=\"$includedir\"
12547 eval additional_libdir=\"$libdir\"
12549 exec_prefix="$acl_save_exec_prefix"
12550 prefix="$acl_save_prefix"
12553 # Check whether --with-libiconv-prefix was given.
12554 if test "${with_libiconv_prefix+set}" = set; then :
12555 withval=$with_libiconv_prefix;
12556 if test "X$withval" = "Xno"; then
12559 if test "X$withval" = "X"; then
12561 acl_save_prefix="$prefix"
12562 prefix="$acl_final_prefix"
12563 acl_save_exec_prefix="$exec_prefix"
12564 exec_prefix="$acl_final_exec_prefix"
12566 eval additional_includedir=\"$includedir\"
12567 eval additional_libdir=\"$libdir\"
12569 exec_prefix="$acl_save_exec_prefix"
12570 prefix="$acl_save_prefix"
12573 additional_includedir="$withval/include"
12574 additional_libdir="$withval/$acl_libdirstem"
12575 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12576 && ! test -d "$withval/$acl_libdirstem"; then
12577 additional_libdir="$withval/$acl_libdirstem2"
12591 names_already_handled=
12592 names_next_round='iconv '
12593 while test -n "$names_next_round"; do
12594 names_this_round="$names_next_round"
12596 for name in $names_this_round; do
12598 for n in $names_already_handled; do
12599 if test "$n" = "$name"; then
12600 already_handled=yes
12604 if test -z "$already_handled"; then
12605 names_already_handled="$names_already_handled $name"
12606 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12607 eval value=\"\$HAVE_LIB$uppername\"
12608 if test -n "$value"; then
12609 if test "$value" = yes; then
12610 eval value=\"\$LIB$uppername\"
12611 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12612 eval value=\"\$LTLIB$uppername\"
12613 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12622 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12623 if test -n "$acl_shlibext"; then
12624 shrext=".$acl_shlibext" # typically: shrext=.so
12628 if test $use_additional = yes; then
12629 dir="$additional_libdir"
12630 if test -n "$acl_shlibext"; then
12631 if test -f "$dir/$libname$shrext"; then
12633 found_so="$dir/$libname$shrext"
12635 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12636 ver=`(cd "$dir" && \
12637 for f in "$libname$shrext".*; do echo "$f"; done \
12638 | sed -e "s,^$libname$shrext\\\\.,," \
12639 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12640 | sed 1q ) 2>/dev/null`
12641 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12643 found_so="$dir/$libname$shrext.$ver"
12646 eval library_names=\"$acl_library_names_spec\"
12647 for f in $library_names; do
12648 if test -f "$dir/$f"; then
12657 if test "X$found_dir" = "X"; then
12658 if test -f "$dir/$libname.$acl_libext"; then
12660 found_a="$dir/$libname.$acl_libext"
12663 if test "X$found_dir" != "X"; then
12664 if test -f "$dir/$libname.la"; then
12665 found_la="$dir/$libname.la"
12669 if test "X$found_dir" = "X"; then
12670 for x in $LDFLAGS $LTLIBICONV; do
12672 acl_save_prefix="$prefix"
12673 prefix="$acl_final_prefix"
12674 acl_save_exec_prefix="$exec_prefix"
12675 exec_prefix="$acl_final_exec_prefix"
12677 exec_prefix="$acl_save_exec_prefix"
12678 prefix="$acl_save_prefix"
12682 dir=`echo "X$x" | sed -e 's/^X-L//'`
12683 if test -n "$acl_shlibext"; then
12684 if test -f "$dir/$libname$shrext"; then
12686 found_so="$dir/$libname$shrext"
12688 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12689 ver=`(cd "$dir" && \
12690 for f in "$libname$shrext".*; do echo "$f"; done \
12691 | sed -e "s,^$libname$shrext\\\\.,," \
12692 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12693 | sed 1q ) 2>/dev/null`
12694 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12696 found_so="$dir/$libname$shrext.$ver"
12699 eval library_names=\"$acl_library_names_spec\"
12700 for f in $library_names; do
12701 if test -f "$dir/$f"; then
12710 if test "X$found_dir" = "X"; then
12711 if test -f "$dir/$libname.$acl_libext"; then
12713 found_a="$dir/$libname.$acl_libext"
12716 if test "X$found_dir" != "X"; then
12717 if test -f "$dir/$libname.la"; then
12718 found_la="$dir/$libname.la"
12723 if test "X$found_dir" != "X"; then
12728 if test "X$found_dir" != "X"; then
12729 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12730 if test "X$found_so" != "X"; then
12731 if test "$enable_rpath" = no \
12732 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12733 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12734 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12737 for x in $ltrpathdirs; do
12738 if test "X$x" = "X$found_dir"; then
12743 if test -z "$haveit"; then
12744 ltrpathdirs="$ltrpathdirs $found_dir"
12746 if test "$acl_hardcode_direct" = yes; then
12747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12749 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12750 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12752 for x in $rpathdirs; do
12753 if test "X$x" = "X$found_dir"; then
12758 if test -z "$haveit"; then
12759 rpathdirs="$rpathdirs $found_dir"
12763 for x in $LDFLAGS $LIBICONV; do
12765 acl_save_prefix="$prefix"
12766 prefix="$acl_final_prefix"
12767 acl_save_exec_prefix="$exec_prefix"
12768 exec_prefix="$acl_final_exec_prefix"
12770 exec_prefix="$acl_save_exec_prefix"
12771 prefix="$acl_save_prefix"
12773 if test "X$x" = "X-L$found_dir"; then
12778 if test -z "$haveit"; then
12779 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12781 if test "$acl_hardcode_minus_L" != no; then
12782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12784 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12790 if test "X$found_a" != "X"; then
12791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12793 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12796 additional_includedir=
12797 case "$found_dir" in
12798 */$acl_libdirstem | */$acl_libdirstem/)
12799 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12800 if test "$name" = 'iconv'; then
12801 LIBICONV_PREFIX="$basedir"
12803 additional_includedir="$basedir/include"
12805 */$acl_libdirstem2 | */$acl_libdirstem2/)
12806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12807 if test "$name" = 'iconv'; then
12808 LIBICONV_PREFIX="$basedir"
12810 additional_includedir="$basedir/include"
12813 if test "X$additional_includedir" != "X"; then
12814 if test "X$additional_includedir" != "X/usr/include"; then
12816 if test "X$additional_includedir" = "X/usr/local/include"; then
12817 if test -n "$GCC"; then
12819 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12823 if test -z "$haveit"; then
12824 for x in $CPPFLAGS $INCICONV; do
12826 acl_save_prefix="$prefix"
12827 prefix="$acl_final_prefix"
12828 acl_save_exec_prefix="$exec_prefix"
12829 exec_prefix="$acl_final_exec_prefix"
12831 exec_prefix="$acl_save_exec_prefix"
12832 prefix="$acl_save_prefix"
12834 if test "X$x" = "X-I$additional_includedir"; then
12839 if test -z "$haveit"; then
12840 if test -d "$additional_includedir"; then
12841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12847 if test -n "$found_la"; then
12848 save_libdir="$libdir"
12849 case "$found_la" in
12850 */* | *\\*) . "$found_la" ;;
12851 *) . "./$found_la" ;;
12853 libdir="$save_libdir"
12854 for dep in $dependency_libs; do
12857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12858 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12859 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12861 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12862 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12863 if test -n "$GCC"; then
12865 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12869 if test -z "$haveit"; then
12871 for x in $LDFLAGS $LIBICONV; do
12873 acl_save_prefix="$prefix"
12874 prefix="$acl_final_prefix"
12875 acl_save_exec_prefix="$exec_prefix"
12876 exec_prefix="$acl_final_exec_prefix"
12878 exec_prefix="$acl_save_exec_prefix"
12879 prefix="$acl_save_prefix"
12881 if test "X$x" = "X-L$additional_libdir"; then
12886 if test -z "$haveit"; then
12887 if test -d "$additional_libdir"; then
12888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12892 for x in $LDFLAGS $LTLIBICONV; do
12894 acl_save_prefix="$prefix"
12895 prefix="$acl_final_prefix"
12896 acl_save_exec_prefix="$exec_prefix"
12897 exec_prefix="$acl_final_exec_prefix"
12899 exec_prefix="$acl_save_exec_prefix"
12900 prefix="$acl_save_prefix"
12902 if test "X$x" = "X-L$additional_libdir"; then
12907 if test -z "$haveit"; then
12908 if test -d "$additional_libdir"; then
12909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12916 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12917 if test "$enable_rpath" != no; then
12919 for x in $rpathdirs; do
12920 if test "X$x" = "X$dir"; then
12925 if test -z "$haveit"; then
12926 rpathdirs="$rpathdirs $dir"
12929 for x in $ltrpathdirs; do
12930 if test "X$x" = "X$dir"; then
12935 if test -z "$haveit"; then
12936 ltrpathdirs="$ltrpathdirs $dir"
12941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12961 if test "X$rpathdirs" != "X"; then
12962 if test -n "$acl_hardcode_libdir_separator"; then
12964 for found_dir in $rpathdirs; do
12965 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12967 acl_save_libdir="$libdir"
12969 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12970 libdir="$acl_save_libdir"
12971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12973 for found_dir in $rpathdirs; do
12974 acl_save_libdir="$libdir"
12975 libdir="$found_dir"
12976 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12977 libdir="$acl_save_libdir"
12978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12982 if test "X$ltrpathdirs" != "X"; then
12983 for found_dir in $ltrpathdirs; do
12984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12999 am_save_CPPFLAGS="$CPPFLAGS"
13001 for element in $INCICONV; do
13003 for x in $CPPFLAGS; do
13005 acl_save_prefix="$prefix"
13006 prefix="$acl_final_prefix"
13007 acl_save_exec_prefix="$exec_prefix"
13008 exec_prefix="$acl_final_exec_prefix"
13010 exec_prefix="$acl_save_exec_prefix"
13011 prefix="$acl_save_prefix"
13013 if test "X$x" = "X$element"; then
13018 if test -z "$haveit"; then
13019 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13025 $as_echo_n "checking for iconv... " >&6; }
13026 if ${am_cv_func_iconv+:} false; then :
13027 $as_echo_n "(cached) " >&6
13030 am_cv_func_iconv="no, consider installing GNU libiconv"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #include <stdlib.h>
13039 iconv_t cd = iconv_open("","");
13040 iconv(cd,NULL,NULL,NULL,NULL);
13046 if ac_fn_c_try_link "$LINENO"; then :
13047 am_cv_func_iconv=yes
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 if test "$am_cv_func_iconv" != yes; then
13052 am_save_LIBS="$LIBS"
13053 LIBS="$LIBS $LIBICONV"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #include <stdlib.h>
13061 iconv_t cd = iconv_open("","");
13062 iconv(cd,NULL,NULL,NULL,NULL);
13068 if ac_fn_c_try_link "$LINENO"; then :
13069 am_cv_lib_iconv=yes
13070 am_cv_func_iconv=yes
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS="$am_save_LIBS"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13079 $as_echo "$am_cv_func_iconv" >&6; }
13080 if test "$am_cv_func_iconv" = yes; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13082 $as_echo_n "checking for working iconv... " >&6; }
13083 if ${am_cv_func_iconv_works+:} false; then :
13084 $as_echo_n "(cached) " >&6
13087 am_save_LIBS="$LIBS"
13088 if test $am_cv_lib_iconv = yes; then
13089 LIBS="$LIBS $LIBICONV"
13091 if test "$cross_compiling" = yes; then :
13093 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13094 *) am_cv_func_iconv_works="guessing yes" ;;
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13101 #include <string.h>
13104 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13107 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13108 if (cd_utf8_to_88591 != (iconv_t)(-1))
13110 static const char input[] = "\342\202\254"; /* EURO SIGN */
13112 const char *inptr = input;
13113 size_t inbytesleft = strlen (input);
13114 char *outptr = buf;
13115 size_t outbytesleft = sizeof (buf);
13116 size_t res = iconv (cd_utf8_to_88591,
13117 (char **) &inptr, &inbytesleft,
13118 &outptr, &outbytesleft);
13123 /* Test against Solaris 10 bug: Failures are not distinguishable from
13124 successful returns. */
13126 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13127 if (cd_ascii_to_88591 != (iconv_t)(-1))
13129 static const char input[] = "\263";
13131 const char *inptr = input;
13132 size_t inbytesleft = strlen (input);
13133 char *outptr = buf;
13134 size_t outbytesleft = sizeof (buf);
13135 size_t res = iconv (cd_ascii_to_88591,
13136 (char **) &inptr, &inbytesleft,
13137 &outptr, &outbytesleft);
13142 #if 0 /* This bug could be worked around by the caller. */
13143 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13145 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13146 if (cd_88591_to_utf8 != (iconv_t)(-1))
13148 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13150 const char *inptr = input;
13151 size_t inbytesleft = strlen (input);
13152 char *outptr = buf;
13153 size_t outbytesleft = sizeof (buf);
13154 size_t res = iconv (cd_88591_to_utf8,
13155 (char **) &inptr, &inbytesleft,
13156 &outptr, &outbytesleft);
13162 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13164 if (/* Try standardized names. */
13165 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13166 /* Try IRIX, OSF/1 names. */
13167 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13168 /* Try AIX names. */
13169 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13170 /* Try HP-UX names. */
13171 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13176 if ac_fn_c_try_run "$LINENO"; then :
13177 am_cv_func_iconv_works=yes
13179 am_cv_func_iconv_works=no
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13182 conftest.$ac_objext conftest.beam conftest.$ac_ext
13185 LIBS="$am_save_LIBS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13189 $as_echo "$am_cv_func_iconv_works" >&6; }
13190 case "$am_cv_func_iconv_works" in
13191 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13192 *) am_func_iconv=yes ;;
13195 am_func_iconv=no am_cv_lib_iconv=no
13197 if test "$am_func_iconv" = yes; then
13199 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13202 if test "$am_cv_lib_iconv" = yes; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13204 $as_echo_n "checking how to link with libiconv... " >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13206 $as_echo "$LIBICONV" >&6; }
13208 CPPFLAGS="$am_save_CPPFLAGS"
13215 if test "$am_cv_func_iconv" = yes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13217 $as_echo_n "checking for iconv declaration... " >&6; }
13218 if ${am_cv_proto_iconv+:} false; then :
13219 $as_echo_n "(cached) " >&6
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 #include <stdlib.h>
13231 #if defined(__STDC__) || defined(__cplusplus)
13232 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13245 if ac_fn_c_try_compile "$LINENO"; then :
13246 am_cv_proto_iconv_arg1=""
13248 am_cv_proto_iconv_arg1="const"
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 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);"
13254 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13256 $am_cv_proto_iconv" >&5
13258 $am_cv_proto_iconv" >&6; }
13260 cat >>confdefs.h <<_ACEOF
13261 #define ICONV_CONST $am_cv_proto_iconv_arg1
13266 if test "x$am_cv_func_iconv" != "xyes"; then
13267 as_fn_error $? "Cannot find the iconv() function.
13268 iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13269 filenames and XML data. Wimlib cannot be compiled without it. iconv()
13270 is available in the latest version of glibc and sometimes in other
13271 libraries." "$LINENO" 5
13275 # Check whether --with-pkgconfigdir was given.
13276 if test "${with_pkgconfigdir+set}" = set; then :
13277 withval=$with_pkgconfigdir; pkgconfigdir=$withval
13279 pkgconfigdir='${libdir}/pkgconfig'
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13285 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13286 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13287 $as_echo_n "(cached) " >&6
13289 ac_check_lib_save_LIBS=$LIBS
13290 LIBS="-lxml2 $LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13300 char xmlParseFile ();
13304 return xmlParseFile ();
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 ac_cv_lib_xml2_xmlParseFile=yes
13312 ac_cv_lib_xml2_xmlParseFile=no
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13319 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13320 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13323 as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13326 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13327 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13328 LIBXML2_LDADD=$LIBXML2_LDADD
13330 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13334 $as_echo_n "checking whether to include debugging messages... " >&6; }
13335 # Check whether --enable-debug was given.
13336 if test "${enable_debug+set}" = set; then :
13337 enableval=$enable_debug; ENABLE_DEBUG=$enableval
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13344 $as_echo "$ENABLE_DEBUG" >&6; }
13345 if test "x$ENABLE_DEBUG" = "xyes"; then
13347 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13352 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13353 # Check whether --enable-more_debug was given.
13354 if test "${enable_more_debug+set}" = set; then :
13355 enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13357 ENABLE_MORE_DEBUG=no
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13362 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13363 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13365 $as_echo "#define ENABLE_MORE_DEBUG 1" >>confdefs.h
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13370 $as_echo_n "checking whether to include error messages... " >&6; }
13371 # Check whether --enable-error_messages was given.
13372 if test "${enable_error_messages+set}" = set; then :
13373 enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13375 ENABLE_ERROR_MESSAGES=yes
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13380 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13381 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13383 $as_echo "#define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13388 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13389 # Check whether --enable-custom_memory_allocator was given.
13390 if test "${enable_custom_memory_allocator+set}" = set; then :
13391 enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13393 ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13398 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13399 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13401 $as_echo "#define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13406 $as_echo_n "checking whether to include assertions... " >&6; }
13407 # Check whether --enable-assertions was given.
13408 if test "${enable_assertions+set}" = set; then :
13409 enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13411 ENABLE_ASSERTIONS=yes
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13416 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13417 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13419 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13425 $as_echo_n "checking whether to include compression verification... " >&6; }
13426 # Check whether --enable-verify_compression was given.
13427 if test "${enable_verify_compression+set}" = set; then :
13428 enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13430 ENABLE_VERIFY_COMPRESSION=yes
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13435 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13436 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13438 $as_echo "#define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for copying security data" >&5
13443 $as_echo_n "checking whether to include support for copying security data... " >&6; }
13444 # Check whether --enable-security_data was given.
13445 if test "${enable_security_data+set}" = set; then :
13446 enableval=$enable_security_data; ENABLE_SECURITY_DATA=$enableval
13448 ENABLE_SECURITY_DATA=yes
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SECURITY_DATA" >&5
13453 $as_echo "$ENABLE_SECURITY_DATA" >&6; }
13454 if test "x$ENABLE_SECURITY_DATA" = "xyes"; then
13456 $as_echo "#define ENABLE_SECURITY_DATA 1" >>confdefs.h
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13461 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13463 # Check whether --with-fuse was given.
13464 if test "${with_fuse+set}" = set; then :
13465 withval=$with_fuse; WITH_FUSE=$withval
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13472 $as_echo "$WITH_FUSE" >&6; }
13473 if test "x$WITH_FUSE" = "xyes"; then
13475 $as_echo "#define WITH_FUSE 1" >>confdefs.h
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13480 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13481 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lfuse $LIBS"
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13489 /* Override any GCC internal prototype to avoid an error.
13490 Use char because int might match the return type of a GCC
13491 builtin and then its argument prototype would still apply. */
13495 char fuse_main_real ();
13499 return fuse_main_real ();
13504 if ac_fn_c_try_link "$LINENO"; then :
13505 ac_cv_lib_fuse_fuse_main_real=yes
13507 ac_cv_lib_fuse_fuse_main_real=no
13509 rm -f core conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 LIBS=$ac_check_lib_save_LIBS
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13514 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13515 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13518 as_fn_error $? "Cannot find libfuse.
13519 Without libfuse, WIMLIB cannot include support for mounting WIMs. You
13520 should either install libfuse, or configure with --without-fuse to
13521 disable support for mounting WIMs." "$LINENO" 5
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13526 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13527 if ${ac_cv_lib_rt_mq_open+:} false; then :
13528 $as_echo_n "(cached) " >&6
13530 ac_check_lib_save_LIBS=$LIBS
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ac_cv_lib_rt_mq_open=yes
13553 ac_cv_lib_rt_mq_open=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13560 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13561 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13564 as_fn_error $? "Cannot find librt for POSIX message queue
13565 functions. Without these functions, WIMLIB cannot include support for
13566 mounting WIMs. You should either update your C library to a recent
13567 version of glibc, or configure with --without-fuse to disable support
13568 for mounting WIMs." "$LINENO" 5
13572 LIBFUSE_LDADD="`pkg-config --libs fuse` -lrt"
13573 LIBFUSE_CFLAGS="`pkg-config --cflags fuse`"
13578 LIBFUSE_LDADD=$LIBFUSE_LDADD
13580 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13584 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13585 # Check whether --enable-ssse3-sha1 was given.
13586 if test "${enable_ssse3_sha1+set}" = set; then :
13587 enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13589 ENABLE_SSSE3_SHA1=no
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13595 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13596 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13598 $as_echo "#define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13600 SSSE3_SHA1_OBJ=sha1-ssse3.lo
13602 for ac_prog in nasm nasmw
13604 # Extract the first word of "$ac_prog", so it can be a program name with args.
13605 set dummy $ac_prog; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if ${ac_cv_prog_nasm+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 if test -n "$nasm"; then
13612 ac_cv_prog_nasm="$nasm" # Let the user override the test.
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13621 ac_cv_prog_nasm="$ac_prog"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13631 nasm=$ac_cv_prog_nasm
13632 if test -n "$nasm"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13634 $as_echo "$nasm" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13641 test -n "$nasm" && break
13643 test -n "$nasm" || nasm="no"
13645 if test "x$nasm" = "xno" ;
13647 as_fn_error $? "NASM assembler not found" "$LINENO" 5
13655 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13658 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13662 # Check whether --with-libcrypto was given.
13663 if test "${with_libcrypto+set}" = set; then :
13664 withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13667 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13668 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13669 $as_echo_n "(cached) " >&6
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lcrypto $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 ac_cv_lib_crypto_SHA1=yes
13694 ac_cv_lib_crypto_SHA1=no
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13701 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13702 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13706 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13715 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13717 $as_echo "$WITH_LIBCRYPTO" >&6; }
13719 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13721 $as_echo "#define WITH_LIBCRYPTO 1" >>confdefs.h
13723 LIBCRYPTO_LDADD=`pkg-config --libs libcrypto 2>/dev/null`
13724 if test $? -ne 0; then
13725 LIBCRYPTO_LDADD=-lcrypto;
13727 LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto 2>/dev/null`
13732 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13734 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13736 SHA1_SOURCES=$SHA1_SOURCES
13739 cat >confcache <<\_ACEOF
13740 # This file is a shell script that caches the results of configure
13741 # tests run on this system so they can be shared between configure
13742 # scripts and configure runs, see configure's option --config-cache.
13743 # It is not useful on other systems. If it contains results you don't
13744 # want to keep, you may remove or edit it.
13746 # config.status only pays attention to the cache file if you give it
13747 # the --recheck option to rerun configure.
13749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13751 # following values.
13755 # The following way of writing the cache mishandles newlines in values,
13756 # but we know of no workaround that is simple, portable, and efficient.
13757 # So, we kill variables containing newlines.
13758 # Ultrix sh set writes to stderr and can't be redirected directly,
13759 # and sets the high bit in the cache file unless we assign to the vars.
13761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13762 eval ac_val=\$$ac_var
13766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13770 _ | IFS | as_nl) ;; #(
13771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13772 *) { eval $ac_var=; unset $ac_var;} ;;
13778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13779 *${as_nl}ac_space=\ *)
13780 # `set' does not quote correctly, so add quotes: double-quote
13781 # substitution turns \\\\ into \\, and sed turns \\ into \.
13784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13787 # `set' quotes correctly as required by POSIX, so do not add quotes.
13788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13802 if test -w "$cache_file"; then
13803 if test "x$cache_file" != "x/dev/null"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13805 $as_echo "$as_me: updating cache $cache_file" >&6;}
13806 if test ! -f "$cache_file" || test -h "$cache_file"; then
13807 cat confcache >"$cache_file"
13809 case $cache_file in #(
13811 mv -f confcache "$cache_file"$$ &&
13812 mv -f "$cache_file"$$ "$cache_file" ;; #(
13814 mv -f confcache "$cache_file" ;;
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13826 # Let make expand exec_prefix.
13827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13829 DEFS=-DHAVE_CONFIG_H
13834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13835 # 1. Remove the extension, and $U if already installed.
13836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13839 # will be set to the directory where LIBOBJS objects are built.
13840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13843 LIBOBJS=$ac_libobjs
13845 LTLIBOBJS=$ac_ltlibobjs
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13849 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13850 if test -n "$am_sleep_pid"; then
13851 # Hide warnings about reused PIDs.
13852 wait $am_sleep_pid 2>/dev/null
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13855 $as_echo "done" >&6; }
13856 if test -n "$EXEEXT"; then
13858 am__EXEEXT_FALSE='#'
13860 am__EXEEXT_TRUE='#'
13864 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13865 as_fn_error $? "conditional \"AMDEP\" was never defined.
13866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13869 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13874 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13878 : "${CONFIG_STATUS=./config.status}"
13880 ac_clean_files_save=$ac_clean_files
13881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13887 # Generated by $as_me.
13888 # Run this file to recreate the current configuration.
13889 # Compiler output produced by configure, useful for debugging
13890 # configure, is in config.log if it exists.
13893 ac_cs_recheck=false
13896 SHELL=\${CONFIG_SHELL-$SHELL}
13899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13900 ## -------------------- ##
13901 ## M4sh Initialization. ##
13902 ## -------------------- ##
13904 # Be more Bourne compatible
13905 DUALCASE=1; export DUALCASE # for MKS sh
13906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13910 # is contrary to our usage. Disable this feature.
13911 alias -g '${1+"$@"}'='"$@"'
13912 setopt NO_GLOB_SUBST
13914 case `(set -o) 2>/dev/null` in #(
13926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13930 # Prefer a ksh shell builtin over an external printf program on Solaris,
13931 # but without wasting forks for bash or zsh.
13932 if test -z "$BASH_VERSION$ZSH_VERSION" \
13933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13934 as_echo='print -r --'
13935 as_echo_n='print -rn --'
13936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13937 as_echo='printf %s\n'
13938 as_echo_n='printf %s'
13940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13942 as_echo_n='/usr/ucb/echo -n'
13944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13945 as_echo_n_body='eval
13949 expr "X$arg" : "X\\(.*\\)$as_nl";
13950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13954 export as_echo_n_body
13955 as_echo_n='sh -c $as_echo_n_body as_echo'
13957 export as_echo_body
13958 as_echo='sh -c $as_echo_body as_echo'
13961 # The user is always right.
13962 if test "${PATH_SEPARATOR+set}" != set; then
13964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13972 # We need space, tab and new line, in precisely that order. Quoting is
13973 # there to prevent editors from complaining about space-tab.
13974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13975 # splitting by setting IFS to empty value.)
13978 # Find who we are. Look in the path if we contain no directory separator.
13981 *[\\/]* ) as_myself=$0 ;;
13982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13986 test -z "$as_dir" && as_dir=.
13987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13993 # We did not find ourselves, most probably we were run as `sh COMMAND'
13994 # in which case we are not to be found in the path.
13995 if test "x$as_myself" = x; then
13998 if test ! -f "$as_myself"; then
13999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14003 # Unset variables that we do not need and which cause bugs (e.g. in
14004 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14005 # suppresses any "Segmentation fault" message there. '((' could
14006 # trigger a bug in pdksh 5.2.14.
14007 for as_var in BASH_ENV ENV MAIL MAILPATH
14008 do eval test x\${$as_var+set} = xset \
14009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14026 # ----------------------------------------
14027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14029 # script with STATUS, using 1 if that was 0.
14032 as_status=$1; test $as_status -eq 0 && as_status=1
14034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14037 $as_echo "$as_me: error: $2" >&2
14038 as_fn_exit $as_status
14042 # as_fn_set_status STATUS
14043 # -----------------------
14044 # Set $? to STATUS, without forking.
14045 as_fn_set_status ()
14048 } # as_fn_set_status
14050 # as_fn_exit STATUS
14051 # -----------------
14052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14056 as_fn_set_status $1
14062 # Portably unset VAR.
14065 { eval $1=; unset $1;}
14067 as_unset=as_fn_unset
14068 # as_fn_append VAR VALUE
14069 # ----------------------
14070 # Append the text in VALUE to the end of the definition contained in VAR. Take
14071 # advantage of any shell optimizations that allow amortized linear growth over
14072 # repeated appends, instead of the typical quadratic growth present in naive
14074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14075 eval 'as_fn_append ()
14086 # as_fn_arith ARG...
14087 # ------------------
14088 # Perform arithmetic evaluation on the ARGs, and store the result in the
14089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14090 # must be portable across $(()) and expr.
14091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14092 eval 'as_fn_arith ()
14099 as_val=`expr "$@" || test $? -eq 1`
14104 if expr a : '\(a\)' >/dev/null 2>&1 &&
14105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14112 as_basename=basename
14117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14123 as_me=`$as_basename -- "$0" ||
14124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14125 X"$0" : 'X\(//\)$' \| \
14126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14128 sed '/^.*\/\([^/][^/]*\)\/*$/{
14142 # Avoid depending upon Character Ranges.
14143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14146 as_cr_digits='0123456789'
14147 as_cr_alnum=$as_cr_Letters$as_cr_digits
14149 ECHO_C= ECHO_N= ECHO_T=
14150 case `echo -n x` in #(((((
14152 case `echo 'xy\c'` in
14153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14162 rm -f conf$$ conf$$.exe conf$$.file
14163 if test -d conf$$.dir; then
14164 rm -f conf$$.dir/conf$$.file
14167 mkdir conf$$.dir 2>/dev/null
14169 if (echo >conf$$.file) 2>/dev/null; then
14170 if ln -s conf$$.file conf$$ 2>/dev/null; then
14172 # ... but there are two gotchas:
14173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14175 # In both cases, we have to default to `cp -pR'.
14176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14178 elif ln conf$$.file conf$$ 2>/dev/null; then
14186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14187 rmdir conf$$.dir 2>/dev/null
14192 # Create "$as_dir" as a directory, including parents if necessary.
14197 -*) as_dir=./$as_dir;;
14199 test -d "$as_dir" || eval $as_mkdir_p || {
14203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14204 *) as_qdir=$as_dir;;
14206 as_dirs="'$as_qdir' $as_dirs"
14207 as_dir=`$as_dirname -- "$as_dir" ||
14208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14209 X"$as_dir" : 'X\(//\)[^/]' \| \
14210 X"$as_dir" : 'X\(//\)$' \| \
14211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14212 $as_echo X"$as_dir" |
14213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14217 /^X\(\/\/\)[^/].*/{
14230 test -d "$as_dir" && break
14232 test -z "$as_dirs" || eval "mkdir $as_dirs"
14233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14237 if mkdir -p . 2>/dev/null; then
14238 as_mkdir_p='mkdir -p "$as_dir"'
14240 test -d ./-p && rmdir ./-p
14245 # as_fn_executable_p FILE
14246 # -----------------------
14247 # Test if FILE is an executable regular file.
14248 as_fn_executable_p ()
14250 test -f "$1" && test -x "$1"
14251 } # as_fn_executable_p
14252 as_test_x='test -x'
14253 as_executable_p=as_fn_executable_p
14255 # Sed expression to map a string onto a valid CPP name.
14256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14258 # Sed expression to map a string onto a valid variable name.
14259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14263 ## ----------------------------------- ##
14264 ## Main body of $CONFIG_STATUS script. ##
14265 ## ----------------------------------- ##
14267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270 # Save the log message, to keep $0 and so on meaningful, and to
14271 # report actual input values of CONFIG_FILES etc. instead of their
14272 # values after options handling.
14274 This file was extended by wimlib $as_me 0.7.0, which was
14275 generated by GNU Autoconf 2.69. Invocation command line was
14277 CONFIG_FILES = $CONFIG_FILES
14278 CONFIG_HEADERS = $CONFIG_HEADERS
14279 CONFIG_LINKS = $CONFIG_LINKS
14280 CONFIG_COMMANDS = $CONFIG_COMMANDS
14283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14288 case $ac_config_files in *"
14289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14292 case $ac_config_headers in *"
14293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 # Files that config.status was made for.
14299 config_files="$ac_config_files"
14300 config_headers="$ac_config_headers"
14301 config_commands="$ac_config_commands"
14305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 \`$as_me' instantiates files and other configuration actions
14308 from templates according to the current configuration. Unless the files
14309 and actions are specified as TAGs, all are instantiated by default.
14311 Usage: $0 [OPTION]... [TAG]...
14313 -h, --help print this help, then exit
14314 -V, --version print version number and configuration settings, then exit
14315 --config print configuration, then exit
14316 -q, --quiet, --silent
14317 do not print progress messages
14318 -d, --debug don't remove temporary files
14319 --recheck update $as_me by reconfiguring in the same conditions
14320 --file=FILE[:TEMPLATE]
14321 instantiate the configuration file FILE
14322 --header=FILE[:TEMPLATE]
14323 instantiate the configuration header FILE
14325 Configuration files:
14328 Configuration headers:
14331 Configuration commands:
14334 Report bugs to <ebiggers3@gmail.com>."
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14340 wimlib config.status 0.7.0
14341 configured by $0, generated by GNU Autoconf 2.69,
14342 with options \\"\$ac_cs_config\\"
14344 Copyright (C) 2012 Free Software Foundation, Inc.
14345 This config.status script is free software; the Free Software Foundation
14346 gives unlimited permission to copy, distribute and modify it."
14353 test -n "\$AWK" || AWK=awk
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14357 # The default lists apply if the user does not specify any file.
14363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14380 # Handling of the options.
14381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14384 $as_echo "$ac_cs_version"; exit ;;
14385 --config | --confi | --conf | --con | --co | --c )
14386 $as_echo "$ac_cs_config"; exit ;;
14387 --debug | --debu | --deb | --de | --d | -d )
14389 --file | --fil | --fi | --f )
14392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14393 '') as_fn_error $? "missing file argument" ;;
14395 as_fn_append CONFIG_FILES " '$ac_optarg'"
14396 ac_need_defaults=false;;
14397 --header | --heade | --head | --hea )
14400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14402 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14403 ac_need_defaults=false;;
14405 # Conflict between --help and --header
14406 as_fn_error $? "ambiguous option: \`$1'
14407 Try \`$0 --help' for more information.";;
14408 --help | --hel | -h )
14409 $as_echo "$ac_cs_usage"; exit ;;
14410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14411 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14414 # This is an error.
14415 -*) as_fn_error $? "unrecognized option: \`$1'
14416 Try \`$0 --help' for more information." ;;
14418 *) as_fn_append ac_config_targets " $1"
14419 ac_need_defaults=false ;;
14425 ac_configure_extra_args=
14427 if $ac_cs_silent; then
14429 ac_configure_extra_args="$ac_configure_extra_args --silent"
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 if \$ac_cs_recheck; then
14435 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14438 CONFIG_SHELL='$SHELL'
14439 export CONFIG_SHELL
14444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14449 ## Running $as_me. ##
14455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14462 # The HP-UX ksh and POSIX shell print the target directory to stdout
14463 # if CDPATH is set.
14464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14466 sed_quote_subst='$sed_quote_subst'
14467 double_quote_subst='$double_quote_subst'
14468 delay_variable_subst='$delay_variable_subst'
14469 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14470 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14471 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14472 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14473 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14474 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14475 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14476 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14477 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14478 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14479 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14480 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14481 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14482 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14483 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14484 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14485 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14486 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14487 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14488 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14489 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14490 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14491 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14492 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14493 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14494 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14495 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14496 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14497 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14498 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14499 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14500 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14501 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14502 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14503 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14504 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14505 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14506 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14507 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14508 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14509 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14510 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14511 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14512 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14513 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14514 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14515 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14516 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14517 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14518 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14519 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14520 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14521 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14522 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14523 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14524 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14525 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"`'
14526 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14527 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14528 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14529 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14530 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14531 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14532 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14533 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14534 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14535 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14536 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14537 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14538 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14539 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14540 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14541 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14542 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14543 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14544 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14545 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14546 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14547 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14548 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14549 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14550 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14551 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14552 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14553 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14554 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14555 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14556 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14557 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14558 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14559 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14560 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14561 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14562 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14563 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14564 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14565 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14566 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14567 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14568 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14569 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14570 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14571 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14572 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14573 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14574 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14575 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14576 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14577 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14578 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14579 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14580 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14581 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14582 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14583 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14584 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14585 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14586 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14587 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14588 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14589 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14590 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14591 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14592 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14593 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14594 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14595 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14596 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14597 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14598 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14601 LTCFLAGS='$LTCFLAGS'
14602 compiler='$compiler_DEFAULT'
14604 # A function that is used when there is no print builtin or printf.
14605 func_fallback_echo ()
14607 eval 'cat <<_LTECHO_EOF
14612 # Quote evaled strings.
14627 deplibs_check_method \
14632 sharedlib_from_linklib_cmd \
14635 archiver_list_spec \
14641 lt_cv_sys_global_symbol_pipe \
14642 lt_cv_sys_global_symbol_to_cdecl \
14643 lt_cv_sys_global_symbol_to_c_name_address \
14644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14645 nm_file_list_spec \
14646 lt_prog_compiler_no_builtin_flag \
14647 lt_prog_compiler_pic \
14648 lt_prog_compiler_wl \
14649 lt_prog_compiler_static \
14650 lt_cv_prog_compiler_c_o \
14659 export_dynamic_flag_spec \
14660 whole_archive_flag_spec \
14661 compiler_needs_object \
14663 allow_undefined_flag \
14664 no_undefined_flag \
14665 hardcode_libdir_flag_spec \
14666 hardcode_libdir_separator \
14670 variables_saved_for_relink \
14672 library_names_spec \
14674 install_override_mode \
14678 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14679 *[\\\\\\\`\\"\\\$]*)
14680 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14683 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14688 # Double-quote double-evaled strings.
14689 for var in reload_cmds \
14690 old_postinstall_cmds \
14691 old_postuninstall_cmds \
14693 extract_expsyms_cmds \
14694 old_archive_from_new_cmds \
14695 old_archive_from_expsyms_cmds \
14697 archive_expsym_cmds \
14699 module_expsym_cmds \
14700 export_symbols_cmds \
14704 postuninstall_cmds \
14706 sys_lib_search_path_spec \
14707 sys_lib_dlsearch_path_spec; do
14708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14709 *[\\\\\\\`\\"\\\$]*)
14710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14718 ac_aux_dir='$ac_aux_dir'
14719 xsi_shell='$xsi_shell'
14720 lt_shell_append='$lt_shell_append'
14722 # See if we are running on zsh, and set the options which allow our
14723 # commands through without removal of \ escapes INIT.
14724 if test -n "\${ZSH_VERSION+set}" ; then
14725 setopt NO_GLOB_SUBST
14731 TIMESTAMP='$TIMESTAMP'
14740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742 # Handling of arguments.
14743 for ac_config_target in $ac_config_targets
14745 case $ac_config_target in
14746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14747 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14748 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14749 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14750 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14751 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14752 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14753 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14754 "wimlib.pc") CONFIG_FILES="$CONFIG_FILES wimlib.pc" ;;
14755 "doc/imagex.1") CONFIG_FILES="$CONFIG_FILES doc/imagex.1" ;;
14756 "doc/imagex-append.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-append.1" ;;
14757 "doc/imagex-apply.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-apply.1" ;;
14758 "doc/imagex-capture.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-capture.1" ;;
14759 "doc/imagex-delete.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-delete.1" ;;
14760 "doc/imagex-dir.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-dir.1" ;;
14761 "doc/imagex-export.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-export.1" ;;
14762 "doc/imagex-info.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-info.1" ;;
14763 "doc/imagex-join.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-join.1" ;;
14764 "doc/imagex-mount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mount.1" ;;
14765 "doc/imagex-mountrw.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-mountrw.1" ;;
14766 "doc/imagex-split.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-split.1" ;;
14767 "doc/imagex-unmount.1") CONFIG_FILES="$CONFIG_FILES doc/imagex-unmount.1" ;;
14768 "doc/mkwinpeimg.1") CONFIG_FILES="$CONFIG_FILES doc/mkwinpeimg.1" ;;
14769 "rpm/wimlib.spec") CONFIG_FILES="$CONFIG_FILES rpm/wimlib.spec" ;;
14770 "archlinux/PKGBUILD") CONFIG_FILES="$CONFIG_FILES archlinux/PKGBUILD" ;;
14772 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14777 # If the user did not use the arguments to specify the items to instantiate,
14778 # then the envvar interface is used. Set only those that are not.
14779 # We use the long form for the default assignment because of an extremely
14780 # bizarre bug on SunOS 4.1.3.
14781 if $ac_need_defaults; then
14782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14784 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14787 # Have a temporary directory for convenience. Make it in the build tree
14788 # simply because there is no reason against having it here, and in addition,
14789 # creating and moving files from /tmp can sometimes cause problems.
14790 # Hook for its removal unless debugging.
14791 # Note that there is a small window in which the directory will not be cleaned:
14792 # after its creation but before its name has been assigned to `$tmp'.
14796 trap 'exit_status=$?
14797 : "${ac_tmp:=$tmp}"
14798 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14800 trap 'as_fn_exit 1' 1 2 13 15
14802 # Create a (secure) tmp directory for tmp files.
14805 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14809 tmp=./conf$$-$RANDOM
14810 (umask 077 && mkdir "$tmp")
14811 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14814 # Set up the scripts for CONFIG_FILES section.
14815 # No need to generate them if there are no CONFIG_FILES.
14816 # This happens for instance with `./config.status config.h'.
14817 if test -n "$CONFIG_FILES"; then
14820 ac_cr=`echo X | tr X '\015'`
14821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14822 # But we know of no other shell where ac_cr would be empty at this
14823 # point, so we can use a bashism as a fallback.
14824 if test "x$ac_cr" = x; then
14825 eval ac_cr=\$\'\\r\'
14827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14831 ac_cs_awk_cr=$ac_cr
14834 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14839 echo "cat >conf$$subs.awk <<_ACEOF" &&
14840 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14842 } >conf$$subs.sh ||
14843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14844 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14846 for ac_last_try in false false false false false :; do
14847 . ./conf$$subs.sh ||
14848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14851 if test $ac_delim_n = $ac_delim_num; then
14853 elif $ac_last_try; then
14854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14859 rm -f conf$$subs.sh
14861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14862 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14866 s/^/S["/; s/!.*/"]=/
14876 s/\(.\{148\}\)..*/\1/
14878 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14883 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14890 s/\(.\{148\}\)..*/\1/
14892 s/["\\]/\\&/g; s/^/"/; s/$/"/
14896 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14901 ' <conf$$subs.awk | sed '
14906 ' >>$CONFIG_STATUS || ac_write_fail=1
14907 rm -f conf$$subs.awk
14908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14910 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14911 for (key in S) S_is_set[key] = 1
14917 nfields = split(line, field, "@")
14919 len = length(field[1])
14920 for (i = 2; i < nfields; i++) {
14922 keylen = length(key)
14923 if (S_is_set[key]) {
14925 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14926 len += length(value) + length(field[++i])
14937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14942 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14943 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14946 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14947 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14948 # trailing colons and then remove the whole line if VPATH becomes empty
14949 # (actually we leave an empty line to preserve line numbers).
14950 if test "x$srcdir" = x.; then
14951 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14970 fi # test -n "$CONFIG_FILES"
14972 # Set up the scripts for CONFIG_HEADERS section.
14973 # No need to generate them if there are no CONFIG_HEADERS.
14974 # This happens for instance with `./config.status Makefile'.
14975 if test -n "$CONFIG_HEADERS"; then
14976 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14980 # Transform confdefs.h into an awk script `defines.awk', embedded as
14981 # here-document in config.status, that substitutes the proper values into
14982 # config.h.in to produce config.h.
14984 # Create a delimiter string that does not exist in confdefs.h, to ease
14985 # handling of long lines.
14987 for ac_last_try in false false :; do
14988 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14989 if test -z "$ac_tt"; then
14991 elif $ac_last_try; then
14992 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14994 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14998 # For the awk script, D is an array of macro values keyed by name,
14999 # likewise P contains macro parameters if any. Preserve backslash
15000 # newline sequences.
15002 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15004 s/.\{148\}/&'"$ac_delim"'/g
15007 s/^[ ]*#[ ]*define[ ][ ]*/ /
15014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15016 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15021 D["\1"]=" \3\\\\\\n"\\/p
15023 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15028 s/.\{148\}/&'"$ac_delim"'/g
15033 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15036 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15038 ' <confdefs.h | sed '
15039 s/'"$ac_delim"'/"\\\
15040 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15043 for (key in D) D_is_set[key] = 1
15046 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15048 split(line, arg, " ")
15049 if (arg[1] == "#") {
15053 defundef = substr(arg[1], 2)
15056 split(mac1, mac2, "(") #)
15058 prefix = substr(line, 1, index(line, defundef) - 1)
15059 if (D_is_set[macro]) {
15060 # Preserve the white space surrounding the "#".
15061 print prefix "define", macro P[macro] D[macro]
15064 # Replace #undef with comments. This is necessary, for example,
15065 # in the case of _POSIX_SOURCE, which is predefined and required
15066 # on some systems where configure will not decide to define it.
15067 if (defundef == "undef") {
15068 print "/*", prefix defundef, macro, "*/"
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15078 fi # test -n "$CONFIG_HEADERS"
15081 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15086 :[FHLC]) ac_mode=$ac_tag; continue;;
15088 case $ac_mode$ac_tag in
15090 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15091 :[FH]-) ac_tag=-:-;;
15092 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15109 -) ac_f="$ac_tmp/stdin";;
15110 *) # Look for the file first in the build tree, then in the source tree
15111 # (if the path is not absolute). The absolute path cannot be DOS-style,
15112 # because $ac_f cannot contain `:'.
15116 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15118 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15120 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15121 as_fn_append ac_file_inputs " '$ac_f'"
15124 # Let's still pretend it is `configure' which instantiates (i.e., don't
15125 # use $as_me), people would be surprised to read:
15126 # /* config.h. Generated by config.status. */
15127 configure_input='Generated from '`
15128 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15130 if test x"$ac_file" != x-; then
15131 configure_input="$ac_file. $configure_input"
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15133 $as_echo "$as_me: creating $ac_file" >&6;}
15135 # Neutralize special characters interpreted by sed in replacement strings.
15136 case $configure_input in #(
15137 *\&* | *\|* | *\\* )
15138 ac_sed_conf_input=`$as_echo "$configure_input" |
15139 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15140 *) ac_sed_conf_input=$configure_input;;
15144 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15150 ac_dir=`$as_dirname -- "$ac_file" ||
15151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15152 X"$ac_file" : 'X\(//\)[^/]' \| \
15153 X"$ac_file" : 'X\(//\)$' \| \
15154 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15155 $as_echo X"$ac_file" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15160 /^X\(\/\/\)[^/].*/{
15173 as_dir="$ac_dir"; as_fn_mkdir_p
15177 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15179 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15180 # A ".." for each directory in $ac_dir_suffix.
15181 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15182 case $ac_top_builddir_sub in
15183 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15184 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15187 ac_abs_top_builddir=$ac_pwd
15188 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15189 # for backward compatibility:
15190 ac_top_builddir=$ac_top_build_prefix
15193 .) # We are building in place.
15195 ac_top_srcdir=$ac_top_builddir_sub
15196 ac_abs_top_srcdir=$ac_pwd ;;
15197 [\\/]* | ?:[\\/]* ) # Absolute name.
15198 ac_srcdir=$srcdir$ac_dir_suffix;
15199 ac_top_srcdir=$srcdir
15200 ac_abs_top_srcdir=$srcdir ;;
15201 *) # Relative name.
15202 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15203 ac_top_srcdir=$ac_top_build_prefix$srcdir
15204 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15206 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15217 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15219 ac_MKDIR_P=$MKDIR_P
15221 [\\/$]* | ?:[\\/]* ) ;;
15222 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # If the template does not know about datarootdir, expand it.
15228 # FIXME: This hack should be removed a few years after 2.60.
15229 ac_datarootdir_hack=; ac_datarootdir_seen=
15240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15241 *datarootdir*) ac_datarootdir_seen=yes;;
15242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247 ac_datarootdir_hack='
15248 s&@datadir@&$datadir&g
15249 s&@docdir@&$docdir&g
15250 s&@infodir@&$infodir&g
15251 s&@localedir@&$localedir&g
15252 s&@mandir@&$mandir&g
15253 s&\\\${datarootdir}&$datarootdir&g' ;;
15257 # Neutralize VPATH when `$srcdir' = `.'.
15258 # Shell code in configure.ac might set extrasub.
15259 # FIXME: do we really want to maintain this feature?
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_sed_extra="$ac_vpsub
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15267 s|@configure_input@|$ac_sed_conf_input|;t t
15268 s&@top_builddir@&$ac_top_builddir_sub&;t t
15269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15270 s&@srcdir@&$ac_srcdir&;t t
15271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15272 s&@top_srcdir@&$ac_top_srcdir&;t t
15273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15274 s&@builddir@&$ac_builddir&;t t
15275 s&@abs_builddir@&$ac_abs_builddir&;t t
15276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15277 s&@INSTALL@&$ac_INSTALL&;t t
15278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15279 $ac_datarootdir_hack
15281 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15282 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15285 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15287 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15289 which seems to be undefined. Please make sure it is defined" >&5
15290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15291 which seems to be undefined. Please make sure it is defined" >&2;}
15293 rm -f "$ac_tmp/stdin"
15295 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15296 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15304 if test x"$ac_file" != x-; then
15306 $as_echo "/* $configure_input */" \
15307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15308 } >"$ac_tmp/config.h" \
15309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15310 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15315 mv "$ac_tmp/config.h" "$ac_file" \
15316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15319 $as_echo "/* $configure_input */" \
15320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15321 || as_fn_error $? "could not create -" "$LINENO" 5
15323 # Compute "$ac_file"'s index in $config_headers.
15326 for _am_header in $config_headers :; do
15327 case $_am_header in
15328 $_am_arg | $_am_arg:* )
15331 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15336 X"$_am_arg" : 'X\(//\)[^/]' \| \
15337 X"$_am_arg" : 'X\(//\)$' \| \
15338 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15339 $as_echo X"$_am_arg" |
15340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15344 /^X\(\/\/\)[^/].*/{
15356 s/.*/./; q'`/stamp-h$_am_stamp_count
15359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15360 $as_echo "$as_me: executing $ac_file commands" >&6;}
15365 case $ac_file$ac_mode in
15366 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15367 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15368 # are listed without --file. Let's play safe and only enable the eval
15369 # if we detect the quoting.
15370 case $CONFIG_FILES in
15371 *\'*) eval set x "$CONFIG_FILES" ;;
15372 *) set x $CONFIG_FILES ;;
15377 # Strip MF so we end up with the name of the file.
15378 mf=`echo "$mf" | sed -e 's/:.*$//'`
15379 # Check whether this is an Automake generated Makefile or not.
15380 # We used to match only the files named 'Makefile.in', but
15381 # some people rename them; so instead we look at the file content.
15382 # Grep'ing the first line is not enough: some people post-process
15383 # each Makefile.in and add a new line on top of each file to say so.
15384 # Grep'ing the whole file is not good either: AIX grep has a line
15385 # limit of 2048, but all sed's we know have understand at least 4000.
15386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15387 dirpart=`$as_dirname -- "$mf" ||
15388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15389 X"$mf" : 'X\(//\)[^/]' \| \
15390 X"$mf" : 'X\(//\)$' \| \
15391 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15397 /^X\(\/\/\)[^/].*/{
15413 # Extract the definition of DEPDIR, am__include, and am__quote
15414 # from the Makefile without running 'make'.
15415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15416 test -z "$DEPDIR" && continue
15417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15418 test -z "am__include" && continue
15419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15420 # Find all dependency output files, they are included files with
15421 # $(DEPDIR) in their names. We invoke sed twice because it is the
15422 # simplest approach to changing $(DEPDIR) to its actual value in the
15424 for file in `sed -n "
15425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15427 # Make sure the directory exists.
15428 test -f "$dirpart/$file" && continue
15429 fdir=`$as_dirname -- "$file" ||
15430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15431 X"$file" : 'X\(//\)[^/]' \| \
15432 X"$file" : 'X\(//\)$' \| \
15433 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15434 $as_echo X"$file" |
15435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15439 /^X\(\/\/\)[^/].*/{
15452 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15453 # echo "creating $dirpart/$file"
15454 echo '# dummy' > "$dirpart/$file"
15461 # See if we are running on zsh, and set the options which allow our
15462 # commands through without removal of \ escapes.
15463 if test -n "${ZSH_VERSION+set}" ; then
15464 setopt NO_GLOB_SUBST
15467 cfgfile="${ofile}T"
15468 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15471 cat <<_LT_EOF >> "$cfgfile"
15474 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15475 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15476 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15477 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15479 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15480 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15482 # Written by Gordon Matzigkeit, 1996
15484 # This file is part of GNU Libtool.
15486 # GNU Libtool is free software; you can redistribute it and/or
15487 # modify it under the terms of the GNU General Public License as
15488 # published by the Free Software Foundation; either version 2 of
15489 # the License, or (at your option) any later version.
15491 # As a special exception to the GNU General Public License,
15492 # if you distribute this file as part of a program or library that
15493 # is built using GNU Libtool, you may include this file under the
15494 # same distribution terms that you use for the rest of that program.
15496 # GNU Libtool is distributed in the hope that it will be useful,
15497 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15498 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15499 # GNU General Public License for more details.
15501 # You should have received a copy of the GNU General Public License
15502 # along with GNU Libtool; see the file COPYING. If not, a copy
15503 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15504 # obtained by writing to the Free Software Foundation, Inc.,
15505 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15508 # The names of the tagged configurations supported by this script.
15511 # ### BEGIN LIBTOOL CONFIG
15513 # Which release of libtool.m4 was used?
15514 macro_version=$macro_version
15515 macro_revision=$macro_revision
15517 # Whether or not to build shared libraries.
15518 build_libtool_libs=$enable_shared
15520 # Whether or not to build static libraries.
15521 build_old_libs=$enable_static
15523 # What type of objects to build.
15526 # Whether or not to optimize for fast installation.
15527 fast_install=$enable_fast_install
15529 # Shell to use when invoking shell scripts.
15532 # An echo program that protects backslashes.
15535 # The PATH separator for the build system.
15536 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15539 host_alias=$host_alias
15543 # The build system.
15544 build_alias=$build_alias
15548 # A sed program that does not truncate output.
15551 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15552 Xsed="\$SED -e 1s/^X//"
15554 # A grep program that handles long lines.
15560 # A literal string matcher.
15563 # A BSD- or MS-compatible name lister.
15566 # Whether we need soft or hard links.
15569 # What is the maximum length of a command?
15570 max_cmd_len=$max_cmd_len
15572 # Object file suffix (normally "o").
15575 # Executable file suffix (normally "").
15578 # whether the shell understands "unset".
15581 # turn spaces into newlines.
15584 # turn newlines into spaces.
15587 # convert \$build file names to \$host format.
15588 to_host_file_cmd=$lt_cv_to_host_file_cmd
15590 # convert \$build files to toolchain format.
15591 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15593 # An object symbol dumper.
15594 OBJDUMP=$lt_OBJDUMP
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15599 # Command to use when deplibs_check_method = "file_magic".
15600 file_magic_cmd=$lt_file_magic_cmd
15602 # How to find potential files when deplibs_check_method = "file_magic".
15603 file_magic_glob=$lt_file_magic_glob
15605 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15606 want_nocaseglob=$lt_want_nocaseglob
15608 # DLL creation program.
15609 DLLTOOL=$lt_DLLTOOL
15611 # Command to associate shared and link libraries.
15612 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15617 # Flags to create an archive.
15618 AR_FLAGS=$lt_AR_FLAGS
15620 # How to feed a file listing to the archiver.
15621 archiver_list_spec=$lt_archiver_list_spec
15623 # A symbol stripping program.
15626 # Commands used to install an old-style archive.
15628 old_postinstall_cmds=$lt_old_postinstall_cmds
15629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15631 # Whether to use a lock for old archive extraction.
15632 lock_old_archive_extraction=$lock_old_archive_extraction
15637 # LTCC compiler flags.
15638 LTCFLAGS=$lt_CFLAGS
15640 # Take the output of nm and produce a listing of raw symbols and C names.
15641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15643 # Transform the output of nm in a proper C declaration.
15644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15646 # Transform the output of nm in a C name address pair.
15647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15649 # Transform the output of nm in a C name address pair when lib prefix is needed.
15650 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15652 # Specify filename containing input files for \$NM.
15653 nm_file_list_spec=$lt_nm_file_list_spec
15655 # The root where to search for dependent libraries,and in which our libraries should be installed.
15656 lt_sysroot=$lt_sysroot
15658 # The name of the directory that contains temporary libtool files.
15661 # Used to examine libraries when file_magic_cmd begins with "file".
15662 MAGIC_CMD=$MAGIC_CMD
15664 # Must we lock files when doing compilation?
15665 need_locks=$lt_need_locks
15668 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15670 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15671 DSYMUTIL=$lt_DSYMUTIL
15673 # Tool to change global to local symbols on Mac OS X.
15676 # Tool to manipulate fat objects and archives on Mac OS X.
15679 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15682 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15683 OTOOL64=$lt_OTOOL64
15685 # Old archive suffix (normally "a").
15688 # Shared library suffix (normally ".so").
15689 shrext_cmds=$lt_shrext_cmds
15691 # The commands to extract the exported symbol list from a shared archive.
15692 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15694 # Variables whose values should be saved in libtool wrapper scripts and
15695 # restored at link time.
15696 variables_saved_for_relink=$lt_variables_saved_for_relink
15698 # Do we need the "lib" prefix for modules?
15699 need_lib_prefix=$need_lib_prefix
15701 # Do we need a version for libraries?
15702 need_version=$need_version
15704 # Library versioning type.
15705 version_type=$version_type
15707 # Shared library runtime path variable.
15708 runpath_var=$runpath_var
15710 # Shared library path variable.
15711 shlibpath_var=$shlibpath_var
15713 # Is shlibpath searched before the hard-coded library search path?
15714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15716 # Format of library name prefix.
15717 libname_spec=$lt_libname_spec
15719 # List of archive names. First name is the real one, the rest are links.
15720 # The last name is the one that the linker finds with -lNAME
15721 library_names_spec=$lt_library_names_spec
15723 # The coded name of the library, if different from the real name.
15724 soname_spec=$lt_soname_spec
15726 # Permission mode override for installation of shared libraries.
15727 install_override_mode=$lt_install_override_mode
15729 # Command to use after installation of a shared archive.
15730 postinstall_cmds=$lt_postinstall_cmds
15732 # Command to use after uninstallation of a shared archive.
15733 postuninstall_cmds=$lt_postuninstall_cmds
15735 # Commands used to finish a libtool library installation in a directory.
15736 finish_cmds=$lt_finish_cmds
15738 # As "finish_cmds", except a single script fragment to be evaled but
15740 finish_eval=$lt_finish_eval
15742 # Whether we should hardcode library paths into libraries.
15743 hardcode_into_libs=$hardcode_into_libs
15745 # Compile-time system search path for libraries.
15746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15748 # Run-time system search path for libraries.
15749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15751 # Whether dlopen is supported.
15752 dlopen_support=$enable_dlopen
15754 # Whether dlopen of programs is supported.
15755 dlopen_self=$enable_dlopen_self
15757 # Whether dlopen of statically linked programs is supported.
15758 dlopen_self_static=$enable_dlopen_self_static
15760 # Commands to strip libraries.
15761 old_striplib=$lt_old_striplib
15762 striplib=$lt_striplib
15765 # The linker used to build libraries.
15768 # How to create reloadable object files.
15769 reload_flag=$lt_reload_flag
15770 reload_cmds=$lt_reload_cmds
15772 # Commands used to build an old-style archive.
15773 old_archive_cmds=$lt_old_archive_cmds
15775 # A language specific compiler.
15778 # Is the compiler the GNU compiler?
15781 # Compiler flag to turn off builtin functions.
15782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15784 # Additional compiler flags for building library objects.
15785 pic_flag=$lt_lt_prog_compiler_pic
15787 # How to pass a linker flag through the compiler.
15788 wl=$lt_lt_prog_compiler_wl
15790 # Compiler flag to prevent dynamic linking.
15791 link_static_flag=$lt_lt_prog_compiler_static
15793 # Does compiler simultaneously support -c and -o options?
15794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15796 # Whether or not to add -lc for building shared libraries.
15797 build_libtool_need_lc=$archive_cmds_need_lc
15799 # Whether or not to disallow shared libs when runtime libs are static.
15800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15802 # Compiler flag to allow reflexive dlopens.
15803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15805 # Compiler flag to generate shared objects directly from archives.
15806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15808 # Whether the compiler copes with passing no objects directly.
15809 compiler_needs_object=$lt_compiler_needs_object
15811 # Create an old-style archive from a shared archive.
15812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15814 # Create a temporary old-style archive to link instead of a shared archive.
15815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15817 # Commands used to build a shared archive.
15818 archive_cmds=$lt_archive_cmds
15819 archive_expsym_cmds=$lt_archive_expsym_cmds
15821 # Commands used to build a loadable module if different from building
15822 # a shared archive.
15823 module_cmds=$lt_module_cmds
15824 module_expsym_cmds=$lt_module_expsym_cmds
15826 # Whether we are building with GNU ld or not.
15827 with_gnu_ld=$lt_with_gnu_ld
15829 # Flag that allows shared libraries with undefined symbols to be built.
15830 allow_undefined_flag=$lt_allow_undefined_flag
15832 # Flag that enforces no undefined symbols.
15833 no_undefined_flag=$lt_no_undefined_flag
15835 # Flag to hardcode \$libdir into a binary during linking.
15836 # This must work even if \$libdir does not exist
15837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15839 # Whether we need a single "-rpath" flag with a separated argument.
15840 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15842 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15843 # DIR into the resulting binary.
15844 hardcode_direct=$hardcode_direct
15846 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15847 # DIR into the resulting binary and the resulting library dependency is
15848 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15849 # library is relocated.
15850 hardcode_direct_absolute=$hardcode_direct_absolute
15852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15853 # into the resulting binary.
15854 hardcode_minus_L=$hardcode_minus_L
15856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15857 # into the resulting binary.
15858 hardcode_shlibpath_var=$hardcode_shlibpath_var
15860 # Set to "yes" if building a shared library automatically hardcodes DIR
15861 # into the library and all subsequent libraries and executables linked
15863 hardcode_automatic=$hardcode_automatic
15865 # Set to yes if linker adds runtime paths of dependent libraries
15866 # to runtime path list.
15867 inherit_rpath=$inherit_rpath
15869 # Whether libtool must link a program against all its dependency libraries.
15870 link_all_deplibs=$link_all_deplibs
15872 # Set to "yes" if exported symbols are required.
15873 always_export_symbols=$always_export_symbols
15875 # The commands to list exported symbols.
15876 export_symbols_cmds=$lt_export_symbols_cmds
15878 # Symbols that should not be listed in the preloaded symbols.
15879 exclude_expsyms=$lt_exclude_expsyms
15881 # Symbols that must always be exported.
15882 include_expsyms=$lt_include_expsyms
15884 # Commands necessary for linking programs (against libraries) with templates.
15885 prelink_cmds=$lt_prelink_cmds
15887 # Commands necessary for finishing linking programs.
15888 postlink_cmds=$lt_postlink_cmds
15890 # Specify filename containing input files.
15891 file_list_spec=$lt_file_list_spec
15893 # How to hardcode a shared library path into an executable.
15894 hardcode_action=$hardcode_action
15896 # ### END LIBTOOL CONFIG
15902 cat <<\_LT_EOF >> "$cfgfile"
15903 # AIX sometimes has problems with the GCC collect2 program. For some
15904 # reason, if we set the COLLECT_NAMES environment variable, the problems
15905 # vanish in a puff of smoke.
15906 if test "X${COLLECT_NAMES+set}" != Xset; then
15908 export COLLECT_NAMES
15915 ltmain="$ac_aux_dir/ltmain.sh"
15918 # We use sed instead of cat because bash on DJGPP gets confused if
15919 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15920 # text mode, it properly converts lines to CR/LF. This bash problem
15921 # is reportedly fixed, but why not run on old versions too?
15922 sed '$q' "$ltmain" >> "$cfgfile" \
15923 || (rm -f "$cfgfile"; exit 1)
15925 if test x"$xsi_shell" = xyes; then
15926 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15930 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15931 \ * ) func_dirname_result="${3}" ;;\
15933 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15934 && mv -f "$cfgfile.tmp" "$cfgfile" \
15935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15936 test 0 -eq $? || _lt_function_replace_fail=:
15939 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15942 \ func_basename_result="${1##*/}"\
15943 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15944 && mv -f "$cfgfile.tmp" "$cfgfile" \
15945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15946 test 0 -eq $? || _lt_function_replace_fail=:
15949 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15950 func_dirname_and_basename ()\
15953 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15954 \ * ) func_dirname_result="${3}" ;;\
15956 \ func_basename_result="${1##*/}"\
15957 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15958 && mv -f "$cfgfile.tmp" "$cfgfile" \
15959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15960 test 0 -eq $? || _lt_function_replace_fail=:
15963 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15966 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15967 \ # positional parameters, so assign one to ordinary parameter first.\
15968 \ func_stripname_result=${3}\
15969 \ func_stripname_result=${func_stripname_result#"${1}"}\
15970 \ func_stripname_result=${func_stripname_result%"${2}"}\
15971 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
15978 func_split_long_opt ()\
15980 \ func_split_long_opt_name=${1%%=*}\
15981 \ func_split_long_opt_arg=${1#*=}\
15982 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15983 && mv -f "$cfgfile.tmp" "$cfgfile" \
15984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15985 test 0 -eq $? || _lt_function_replace_fail=:
15988 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15989 func_split_short_opt ()\
15991 \ func_split_short_opt_arg=${1#??}\
15992 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15993 } # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\
16003 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16004 \ *) func_lo2o_result=${1} ;;\
16006 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16007 && mv -f "$cfgfile.tmp" "$cfgfile" \
16008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16009 test 0 -eq $? || _lt_function_replace_fail=:
16012 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16015 func_xform_result=${1%.*}.lo\
16016 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16017 && mv -f "$cfgfile.tmp" "$cfgfile" \
16018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16019 test 0 -eq $? || _lt_function_replace_fail=:
16022 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16025 func_arith_result=$(( $* ))\
16026 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16027 && mv -f "$cfgfile.tmp" "$cfgfile" \
16028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16029 test 0 -eq $? || _lt_function_replace_fail=:
16032 sed -e '/^func_len ()$/,/^} # func_len /c\
16035 func_len_result=${#1}\
16036 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16037 && mv -f "$cfgfile.tmp" "$cfgfile" \
16038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16039 test 0 -eq $? || _lt_function_replace_fail=:
16043 if test x"$lt_shell_append" = xyes; then
16044 sed -e '/^func_append ()$/,/^} # func_append /c\
16047 eval "${1}+=\\${2}"\
16048 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16049 && mv -f "$cfgfile.tmp" "$cfgfile" \
16050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16051 test 0 -eq $? || _lt_function_replace_fail=:
16054 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16055 func_append_quoted ()\
16057 \ func_quote_for_eval "${2}"\
16058 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16059 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16060 && mv -f "$cfgfile.tmp" "$cfgfile" \
16061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16062 test 0 -eq $? || _lt_function_replace_fail=:
16065 # Save a `func_append' function call where possible by direct use of '+='
16066 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16067 && mv -f "$cfgfile.tmp" "$cfgfile" \
16068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16069 test 0 -eq $? || _lt_function_replace_fail=:
16071 # Save a `func_append' function call even when '+=' is not available
16072 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16073 && mv -f "$cfgfile.tmp" "$cfgfile" \
16074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16075 test 0 -eq $? || _lt_function_replace_fail=:
16078 if test x"$_lt_function_replace_fail" = x":"; then
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16080 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16084 mv -f "$cfgfile" "$ofile" ||
16085 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16096 ac_clean_files=$ac_clean_files_save
16098 test $ac_write_fail = 0 ||
16099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16102 # configure is writing to config.log, and then calls config.status.
16103 # config.status does its own redirection, appending to config.log.
16104 # Unfortunately, on DOS this fails, as config.log is still kept open
16105 # by configure, so config.status won't be able to write to it; its
16106 # output is simply discarded. So we exec the FD to /dev/null,
16107 # effectively closing config.log, so it can be properly (re)opened and
16108 # appended to by config.status. When coming back to configure, we
16109 # need to make the FD available again.
16110 if test "$no_create" != yes; then
16112 ac_config_status_args=
16113 test "$silent" = yes &&
16114 ac_config_status_args="$ac_config_status_args --quiet"
16116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16119 # would make configure fail if this is the last instruction.
16120 $ac_cs_success || as_fn_exit 1
16122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}