2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.39.
5 # Report bugs to <christos@astron.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: christos@astron.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.
592 PACKAGE_TARNAME='file'
593 PACKAGE_VERSION='5.39'
594 PACKAGE_STRING='file 5.39'
595 PACKAGE_BUGREPORT='christos@astron.com'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
638 IS_CROSS_COMPILE_FALSE
639 IS_CROSS_COMPILE_TRUE
710 INSTALL_STRIP_PROGRAM
752 program_transform_name
766 enable_option_checking
775 enable_dependency_tracking
787 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures file 5.39 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of file 5.39:";;
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --disable-elf disable builtin ELF support
1418 --disable-elf-core disable ELF core file support
1419 --disable-zlib disable zlib compression support [default=auto]
1420 --disable-bzlib disable bz2lib compression support [default=auto]
1421 --disable-xzlib disable liblzma/xz compression support
1423 --disable-libseccomp disable libseccomp sandboxing [default=auto]
1424 --enable-fsect-man5 enable file formats in man section 5
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --enable-static[=PKGS] build static libraries [default=no]
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434 --disable-largefile omit support for large files
1435 --disable-warnings disable compiler warnings
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 --with-aix-soname=aix|svr4|both
1443 shared library versioning (aka "SONAME") variant to
1444 provide on AIX, [default=aix].
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1446 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1447 compiler's sysroot if not specified).
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1459 User-defined run-time library search path.
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <christos@astron.com>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1621 ac_fn_c_check_header_mongrel ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval \${$3+:} false; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1645 ac_header_compiler=no
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1661 ac_header_preproc=no
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ---------------------------------- ##
1687 ## Report this to christos@astron.com ##
1688 ## ---------------------------------- ##"
1689 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval "$3=\$ac_header_compiler"
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1894 # -------------------------------------------
1895 # Tests whether TYPE exists after having included INCLUDES, setting cache
1896 # variable VAR accordingly.
1897 ac_fn_c_check_type ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_type
1947 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1948 # ----------------------------------------------------
1949 # Tries to find if the field MEMBER exists in type AGGR, after including
1950 # INCLUDES, setting cache variable VAR accordingly.
1951 ac_fn_c_check_member ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1955 $as_echo_n "checking for $2.$3... " >&6; }
1956 if eval \${$4+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1972 if ac_fn_c_try_compile "$LINENO"; then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1982 if (sizeof ac_aggr.$3)
1988 if ac_fn_c_try_compile "$LINENO"; then :
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_member
2004 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2005 # ---------------------------------------------
2006 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2008 ac_fn_c_check_decl ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 as_decl_name=`echo $2|sed 's/ *(.*//'`
2012 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2014 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 #ifndef $as_decl_name
2026 (void) $as_decl_use;
2028 (void) $as_decl_name;
2036 if ac_fn_c_try_compile "$LINENO"; then :
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_decl
2050 # ac_fn_c_find_uintX_t LINENO BITS VAR
2051 # ------------------------------------
2052 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2054 ac_fn_c_find_uintX_t ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2058 $as_echo_n "checking for uint$2_t... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2063 # Order is important - never check a type that is potentially smaller
2064 # than half of the expected target width.
2065 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2066 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $ac_includes_default
2073 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2075 return test_array [0];
2081 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$3=\$ac_type" ;;
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 if eval test \"x\$"$3"\" = x"no"; then :
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_find_uintX_t
2104 # ac_fn_c_find_intX_t LINENO BITS VAR
2105 # -----------------------------------
2106 # Finds a signed integer type with width BITS, setting cache variable VAR
2108 ac_fn_c_find_intX_t ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2112 $as_echo_n "checking for int$2_t... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2117 # Order is important - never check a type that is potentially smaller
2118 # than half of the expected target width.
2119 for ac_type in int$2_t 'int' 'long int' \
2120 'long long int' 'short int' 'signed char'; do
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $ac_includes_default
2124 enum { N = $2 / 2 - 1 };
2128 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2130 return test_array [0];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $ac_includes_default
2140 enum { N = $2 / 2 - 1 };
2144 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2145 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2147 return test_array [0];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2160 eval "$3=\$ac_type" ;;
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 if eval test \"x\$"$3"\" = x"no"; then :
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_find_intX_t
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2183 It was created by file $as_me 5.39, which was
2184 generated by GNU Autoconf 2.69. Invocation command line was
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_must_keep_next=false
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2273 -* ) ac_must_keep_next=true ;;
2276 as_fn_append ac_configure_args " '$ac_arg'"
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2298 # The following way of writing the cache mishandles newlines in values,
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2334 for ac_var in $ac_subst_vars
2336 eval ac_val=\$$ac_var
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 $as_echo "$ac_var='\''$ac_val'\''"
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2349 for ac_var in $ac_subst_files
2351 eval ac_val=\$$ac_var
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 $as_echo "$ac_var='\''$ac_val'\''"
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2384 $as_echo "/* confdefs.h */" > confdefs.h
2386 # Predefined preprocessor variables.
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 as_fn_append ac_header_list " stdlib.h"
2464 as_fn_append ac_header_list " unistd.h"
2465 as_fn_append ac_header_list " sys/param.h"
2466 # Check that the precious variables saved in the cache have kept the same
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2516 if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 am__api_version='1.16'
2537 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2538 if test -f "$ac_dir/install-sh"; then
2540 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 elif test -f "$ac_dir/install.sh"; then
2544 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 elif test -f "$ac_dir/shtool"; then
2548 ac_install_sh="$ac_aux_dir/shtool install -c"
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if ${ac_cv_path_install+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2680 for am_try in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.file
2682 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2685 set X `ls -t "$srcdir/configure" conftest.file`
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2697 if test "$2" = conftest.file || test $am_try -eq 2; then
2704 test "$2" = conftest.file
2710 as_fn_error $? "newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2718 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2725 test "$program_prefix" != NONE &&
2726 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE &&
2729 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738 if test x"${MISSING+set}" != xset; then
2741 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748 am_missing_run="$MISSING "
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2755 if test x"${install_sh+set}" != xset; then
2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip". However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}strip; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_STRIP+:} false; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$STRIP"; then
2778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 STRIP=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 $as_echo "$STRIP" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2808 if test -z "$ac_cv_prog_STRIP"; then
2810 # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$ac_ct_STRIP"; then
2818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_STRIP="strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2838 if test -n "$ac_ct_STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840 $as_echo "$ac_ct_STRIP" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2846 if test "x$ac_ct_STRIP" = x; then
2849 case $cross_compiling:$ac_tool_warned in
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2858 STRIP="$ac_cv_prog_STRIP"
2862 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866 if test -z "$MKDIR_P"; then
2867 if ${ac_cv_path_mkdir+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2874 test -z "$as_dir" && as_dir=.
2875 for ac_prog in mkdir gmkdir; do
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879 'mkdir (GNU coreutils) '* | \
2880 'mkdir (coreutils) '* | \
2881 'mkdir (fileutils) '4.1*)
2882 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2892 test -d ./--version && rmdir ./--version
2893 if test "${ac_cv_path_mkdir+set}" = set; then
2894 MKDIR_P="$ac_cv_path_mkdir -p"
2896 # As a last resort, use the slow shell script. Don't cache a
2897 # value for MKDIR_P within a source directory, because that will
2898 # break other packages using the cache if that directory is
2899 # removed, or if the value is a relative name.
2900 MKDIR_P="$ac_install_sh -d"
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904 $as_echo "$MKDIR_P" >&6; }
2906 for ac_prog in gawk mawk nawk awk
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_AWK+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_AWK="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$AWK" && break
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 cat >conftest.make <<\_ACEOF
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2979 rm -rf .tst 2>/dev/null
2980 mkdir .tst 2>/dev/null
2981 if test -d .tst; then
2986 rmdir .tst 2>/dev/null
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990 enableval=$enable_silent_rules;
2993 case $enable_silent_rules in # (((
2994 yes) AM_DEFAULT_VERBOSITY=0;;
2995 no) AM_DEFAULT_VERBOSITY=1;;
2996 *) AM_DEFAULT_VERBOSITY=1;;
2998 am_make=${MAKE-make}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001 if ${am_cv_make_support_nested_variables+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 if $as_echo 'TRUE=$(BAR$(V))
3010 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3011 am_cv_make_support_nested_variables=yes
3013 am_cv_make_support_nested_variables=no
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3020 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022 AM_V=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3047 # Define the identity of the package.
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE "$PACKAGE"
3057 cat >>confdefs.h <<_ACEOF
3058 #define VERSION "$VERSION"
3061 # Some tools Automake needs.
3063 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3066 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3069 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3072 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3075 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077 # For better backward compatibility. To be removed once Automake 1.9.x
3078 # dies out for good. For more background, see:
3079 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3080 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3081 mkdir_p='$(MKDIR_P)'
3083 # We need awk for the "check" target (and possibly the TAP driver). The
3084 # system "awk" is bad on some platforms.
3085 # Always define AMTAR for backward compatibility. Yes, it's still used
3086 # in the wild :-( We should find a proper way to deprecate it ...
3090 # We'll loop over all known methods to create a tar archive until one works.
3091 _am_tools='gnutar pax cpio none'
3093 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3100 # POSIX will say in a future version that running "rm -f" with no argument
3101 # is OK; and we want to be able to make that assumption in our Makefile
3102 # recipes. So use an aggressive probe to check that the usage we want is
3103 # actually supported "in the wild" to an acceptable degree.
3104 # See automake bug#10828.
3105 # To make any issue more visible, cause the running configure to be aborted
3106 # by default if the 'rm' program in use doesn't match our expectations; the
3107 # user can still override this though.
3108 if rm -f && rm -fr && rm -rf; then : OK; else
3112 Your 'rm' program seems unable to run without file operands specified
3113 on the command line, even when the '-f' option is present. This is contrary
3114 to the behaviour of most rm programs out there, and not conforming with
3115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117 Please tell bug-automake@gnu.org about your system, including the value
3118 of your $PATH and any error possibly output before this message. This
3119 can help us improve future automake versions.
3122 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3123 echo 'Configuration will proceed anyway, since you have set the' >&2
3124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3128 Aborting the configuration process, to ensure you take notice of the issue.
3130 You can download and install GNU coreutils to get an 'rm' implementation
3131 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3133 If you want to complete the configuration process using your problematic
3134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135 to "yes", and re-run configure.
3138 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3142 # Check whether --enable-silent-rules was given.
3143 if test "${enable_silent_rules+set}" = set; then :
3144 enableval=$enable_silent_rules;
3147 case $enable_silent_rules in # (((
3148 yes) AM_DEFAULT_VERBOSITY=0;;
3149 no) AM_DEFAULT_VERBOSITY=1;;
3150 *) AM_DEFAULT_VERBOSITY=0;;
3152 am_make=${MAKE-make}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3154 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3155 if ${am_cv_make_support_nested_variables+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 if $as_echo 'TRUE=$(BAR$(V))
3164 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3165 am_cv_make_support_nested_variables=yes
3167 am_cv_make_support_nested_variables=no
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3171 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3172 if test $am_cv_make_support_nested_variables = yes; then
3174 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3176 AM_V=$AM_DEFAULT_VERBOSITY
3177 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3182 ac_config_headers="$ac_config_headers config.h"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3187 $as_echo_n "checking for builtin ELF support... " >&6; }
3188 # Check whether --enable-elf was given.
3189 if test "${enable_elf+set}" = set; then :
3190 enableval=$enable_elf; if test "${enableval}" = yes; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3194 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3206 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3213 $as_echo_n "checking for ELF core file support... " >&6; }
3214 # Check whether --enable-elf-core was given.
3215 if test "${enable_elf_core+set}" = set; then :
3216 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 $as_echo "yes" >&6; }
3220 $as_echo "#define ELFCORE 1" >>confdefs.h
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 $as_echo "yes" >&6; }
3232 $as_echo "#define ELFCORE 1" >>confdefs.h
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3239 $as_echo_n "checking for zlib support... " >&6; }
3240 # Check whether --enable-zlib was given.
3241 if test "${enable_zlib+set}" = set; then :
3242 enableval=$enable_zlib;
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3246 $as_echo "$enable_zlib" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3249 $as_echo_n "checking for bzlib support... " >&6; }
3250 # Check whether --enable-bzlib was given.
3251 if test "${enable_bzlib+set}" = set; then :
3252 enableval=$enable_bzlib;
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3256 $as_echo "$enable_bzlib" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3259 $as_echo_n "checking for xzlib support... " >&6; }
3260 # Check whether --enable-xzlib was given.
3261 if test "${enable_xzlib+set}" = set; then :
3262 enableval=$enable_xzlib;
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3266 $as_echo "$enable_xzlib" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3269 $as_echo_n "checking for libseccomp support... " >&6; }
3270 # Check whether --enable-libseccomp was given.
3271 if test "${enable_libseccomp+set}" = set; then :
3272 enableval=$enable_libseccomp;
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3276 $as_echo "$enable_libseccomp" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3279 $as_echo_n "checking for file formats in man section 5... " >&6; }
3280 # Check whether --enable-fsect-man5 was given.
3281 if test "${enable_fsect_man5+set}" = set; then :
3282 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3293 # disable by default
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3301 # Make sure we can run config.sub.
3302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3303 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 $as_echo_n "checking build system type... " >&6; }
3307 if ${ac_cv_build+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 ac_build_alias=$build_alias
3311 test "x$ac_build_alias" = x &&
3312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313 test "x$ac_build_alias" = x &&
3314 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320 $as_echo "$ac_cv_build" >&6; }
3321 case $ac_cv_build in
3323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3326 ac_save_IFS=$IFS; IFS='-'
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340 $as_echo_n "checking host system type... " >&6; }
3341 if ${ac_cv_host+:} false; then :
3342 $as_echo_n "(cached) " >&6
3344 if test "x$host_alias" = x; then
3345 ac_cv_host=$ac_cv_build
3347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 $as_echo "$ac_cv_host" >&6; }
3356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3359 ac_save_IFS=$IFS; IFS='-'
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3381 if test "$MINGW" = 1; then
3390 pkgdatadir='$(datadir)/misc'
3393 if test x$fsect = x5; then
3404 DEPDIR="${am__leading_dot}deps"
3406 ac_config_commands="$ac_config_commands depfiles"
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3409 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3410 cat > confinc.mk << 'END'
3412 @echo this is the am__doit target >confinc.out
3417 # BSD make does it like this.
3418 echo '.include "confinc.mk" # ignored' > confmf.BSD
3419 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3420 echo 'include confinc.mk # ignored' > confmf.GNU
3422 for s in GNU BSD; do
3423 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3424 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }
3428 case $?:`cat confinc.out 2>/dev/null` in #(
3429 '0:this is the am__doit target') :
3432 am__include='.include' am__quote='"' ;; #(
3434 am__include='include' am__quote='' ;;
3439 if test "$am__include" != "#"; then
3440 _am_result="yes ($s style)"
3444 rm -f confinc.* confmf.*
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3446 $as_echo "${_am_result}" >&6; }
3448 # Check whether --enable-dependency-tracking was given.
3449 if test "${enable_dependency_tracking+set}" = set; then :
3450 enableval=$enable_dependency_tracking;
3453 if test "x$enable_dependency_tracking" != xno; then
3454 am_depcomp="$ac_aux_dir/depcomp"
3458 if test "x$enable_dependency_tracking" != xno; then
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3511 if test -z "$ac_cv_prog_CC"; then
3513 # Extract the first word of "gcc", so it can be a program name with args.
3514 set dummy gcc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC="gcc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 $as_echo "$ac_ct_CC" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3549 if test "x$ac_ct_CC" = x; then
3552 case $cross_compiling:$ac_tool_warned in
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}cc; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if ${ac_cv_prog_CC+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_CC="${ac_tool_prefix}cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3605 if test -z "$CC"; then
3606 # Extract the first word of "cc", so it can be a program name with args.
3607 set dummy cc; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3613 if test -n "$CC"; then
3614 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3625 ac_prog_rejected=yes
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test $ac_prog_rejected = yes; then
3637 # We found a bogon in the path, so make sure we never use it.
3638 set dummy $ac_cv_prog_CC
3640 if test $# != 0; then
3641 # We chose a different compiler from the bogus one.
3642 # However, it has the same basename, so the bogon will be chosen
3643 # first if we set CC to just the basename; use the full file name.
3645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3661 if test -z "$CC"; then
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in cl.exe
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if ${ac_cv_prog_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3702 test -n "$CC" && break
3705 if test -z "$CC"; then
3707 for ac_prog in cl.exe
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 if test -n "$ac_ct_CC"; then
3717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_ac_ct_CC="$ac_prog"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3737 if test -n "$ac_ct_CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3739 $as_echo "$ac_ct_CC" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3746 test -n "$ac_ct_CC" && break
3749 if test "x$ac_ct_CC" = x; then
3752 case $cross_compiling:$ac_tool_warned in
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "no acceptable C compiler found in \$PATH
3768 See \`config.log' for more details" "$LINENO" 5; }
3770 # Provide some information about the compiler.
3771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3774 for ac_option in --version -v -V -qversion; do
3775 { { ac_try="$ac_compiler $ac_option >&5"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3784 if test -s conftest.err; then
3786 ... rest of stderr output deleted ...
3787 10q' conftest.err >conftest.er1
3788 cat conftest.er1 >&5
3790 rm -f conftest.er1 conftest.err
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 ac_clean_files_save=$ac_clean_files
3807 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3808 # Try to create an executable without -o first, disregard a.out.
3809 # It will help us diagnose broken compilers, and finding out an intuition
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3812 $as_echo_n "checking whether the C compiler works... " >&6; }
3813 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3815 # The possible output files:
3816 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3819 for ac_file in $ac_files
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3823 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3828 if { { ac_try="$ac_link_default"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_link_default") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3842 # so that the user can short-circuit this test for compilers unknown to
3844 for ac_file in $ac_files ''
3846 test -f "$ac_file" || continue
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3851 # We found the default executable, but exeext='' is most
3855 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 # We set ac_cv_exeext here because the later test for it is not
3860 # safe: cross compilers may not add the suffix if given an `-o'
3861 # argument, so we may need to know it at that point already.
3862 # Even if this section looks crufty: it has the advantage of
3869 test "$ac_cv_exeext" = no && ac_cv_exeext=
3874 if test -z "$ac_file"; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error 77 "C compiler cannot create executables
3883 See \`config.log' for more details" "$LINENO" 5; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3889 $as_echo_n "checking for C compiler default output file name... " >&6; }
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 ac_exeext=$ac_cv_exeext
3894 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3897 $as_echo_n "checking for suffix of executables... " >&6; }
3898 if { { ac_try="$ac_link"
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3911 # work properly (i.e., refer to `conftest.exe'), while it won't with
3913 for ac_file in conftest.exe conftest conftest.*; do
3914 test -f "$ac_file" || continue
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3917 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3926 See \`config.log' for more details" "$LINENO" 5; }
3928 rm -f conftest conftest$ac_cv_exeext
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3930 $as_echo "$ac_cv_exeext" >&6; }
3932 rm -f conftest.$ac_ext
3933 EXEEXT=$ac_cv_exeext
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3941 FILE *f = fopen ("conftest.out", "w");
3942 return ferror (f) || fclose (f) != 0;
3948 ac_clean_files="$ac_clean_files conftest.out"
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 if test "$cross_compiling" != yes; then
3954 { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if { ac_try='./conftest$ac_cv_exeext'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3978 if test "$cross_compiling" = maybe; then
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details" "$LINENO" 5; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if ${ac_cv_objext+:} false; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details" "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if ${ac_cv_c_compiler_gnu+:} false; then :
4048 $as_echo_n "(cached) " >&6
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if ${ac_cv_prog_cc_g+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4133 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4154 if test "$GCC" = yes; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if ${ac_cv_prog_cc_c89+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_cv_prog_cc_c89=no
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4173 struct buf { int x; };
4174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4175 static char *e (p, i)
4181 static char *f (char * (*g) (char **, int), char **p, ...)
4186 s = g (p, va_arg (v,int));
4191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4192 function prototypes and stuff, but not '\xHH' hex character constants.
4193 These don't provoke an error unfortunately, instead are silently treated
4194 as 'x'. The following induces an error, until -std is added to get
4195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4196 array size at least. It's necessary to write '\x00'==0 to get something
4197 that's true only with -std. */
4198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4201 inside strings and character constants. */
4203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4205 int test (int i, double x);
4206 struct s1 {int (*f) (int a);};
4207 struct s2 {int (*f) (double a);};
4208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_c89=$ac_arg
4226 rm -f core conftest.err conftest.$ac_objext
4227 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 rm -f conftest.$ac_ext
4234 case "x$ac_cv_prog_cc_c89" in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4237 $as_echo "none needed" >&6; } ;;
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4240 $as_echo "unsupported" >&6; } ;;
4242 CC="$CC $ac_cv_prog_cc_c89"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4244 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_cpp='$CPP $CPPFLAGS'
4252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4262 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4263 if ${am_cv_prog_cc_c_o+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # Following AC_PROG_CC_C_O, we do the test twice because some
4279 # compilers refuse to overwrite an existing .o file with -o,
4280 # though they will create one.
4281 am_cv_prog_cc_c_o=yes
4283 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } \
4288 && test -f conftest2.$ac_objext; then
4291 am_cv_prog_cc_c_o=no
4295 rm -f core conftest*
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4299 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4300 if test "$am_cv_prog_cc_c_o" != yes; then
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 depcc="$CC" am_compiler_list=
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4318 $as_echo_n "checking dependency style of $depcc... " >&6; }
4319 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4323 # We make a subdir and do the tests there. Otherwise we can end up
4324 # making bogus files that we don't know about and never remove. For
4325 # instance it was reported that on HP-UX the gcc test will end up
4326 # making a dummy file named 'D' -- because '-MD' means "put the output
4330 # Copy depcomp to subdir because otherwise we won't find it if we're
4331 # using a relative directory.
4332 cp "$am_depcomp" conftest.dir
4334 # We will build objects and dependencies in a subdirectory because
4335 # it helps to detect inapplicable dependency modes. For instance
4336 # both Tru64's cc and ICC support -MD to output dependencies as a
4337 # side effect of compilation, but ICC will put the dependencies in
4338 # the current directory while Tru64 will put them in the object
4342 am_cv_CC_dependencies_compiler_type=none
4343 if test "$am_compiler_list" = ""; then
4344 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 case " $depcc " in #(
4348 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4351 for depmode in $am_compiler_list; do
4352 # Setup a source with many dependencies, because some compilers
4353 # like to wrap large dependency lists on column 80 (with \), and
4354 # we should not choose a depcomp mode which is confused by this.
4356 # We need to recreate these files for each test, as the compiler may
4357 # overwrite some of them when testing with obscure command lines.
4358 # This happens at least with the AIX C compiler.
4360 for i in 1 2 3 4 5 6; do
4361 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4363 # Solaris 10 /bin/sh.
4364 echo '/* dummy */' > sub/conftst$i.h
4366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4368 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4369 # mode. It turns out that the SunPro C++ compiler does not properly
4370 # handle '-M -o', and we need to detect this. Also, some Intel
4371 # versions had trouble with output in subdirs.
4372 am__obj=sub/conftest.${OBJEXT-o}
4373 am__minus_obj="-o $am__obj"
4376 # This depmode causes a compiler race in universal mode.
4377 test "$am__universal" = false || continue
4380 # After this tag, mechanisms are not by side-effect, so they'll
4381 # only be used when explicitly requested.
4382 if test "x$enable_dependency_tracking" = xyes; then
4388 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4389 # This compiler won't grok '-c -o', but also, the minuso test has
4390 # not run yet. These depmodes are late enough in the game, and
4391 # so weak that their functioning should not be impacted.
4392 am__obj=conftest.${OBJEXT-o}
4397 if depmode=$depmode \
4398 source=sub/conftest.c object=$am__obj \
4399 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4400 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4401 >/dev/null 2>conftest.err &&
4402 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4403 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4404 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4405 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4406 # icc doesn't choke on unknown options, it will just issue warnings
4407 # or remarks (even with -Werror). So we grep stderr for any message
4408 # that says an option was ignored or not supported.
4409 # When given -MP, icc 7.0 and 7.1 complain thusly:
4410 # icc: Command line warning: ignoring option '-M'; no argument required
4411 # The diagnosis changed in icc 8.0:
4412 # icc: Command line remark: option '-MP' not supported
4413 if (grep 'ignoring option' conftest.err ||
4414 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4415 am_cv_CC_dependencies_compiler_type=$depmode
4424 am_cv_CC_dependencies_compiler_type=none
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4430 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4433 test "x$enable_dependency_tracking" != xno \
4434 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4436 am__fastdepCC_FALSE='#'
4438 am__fastdepCC_TRUE='#'
4439 am__fastdepCC_FALSE=
4443 case $ac_cv_prog_cc_stdc in #(
4445 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4448 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4449 if ${ac_cv_prog_cc_c99+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 ac_cv_prog_cc_c99=no
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4457 #include <stdbool.h>
4462 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4463 #define debug(...) fprintf (stderr, __VA_ARGS__)
4464 #define showlist(...) puts (#__VA_ARGS__)
4465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4467 test_varargs_macros (void)
4472 debug ("X = %d\n", x);
4473 showlist (The first, second, and third items.);
4474 report (x>y, "x is %d but y is %d", x, y);
4477 // Check long long types.
4478 #define BIG64 18446744073709551615ull
4479 #define BIG32 4294967295ul
4480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4482 your preprocessor is broken;
4486 your preprocessor is broken;
4488 static long long int bignum = -9223372036854775807LL;
4489 static unsigned long long int ubignum = BIG64;
4491 struct incomplete_array
4499 const wchar_t *name;
4503 typedef const char *ccp;
4506 test_restrict (ccp restrict text)
4508 // See if C++-style comments work.
4509 // Iterate through items via the restricted pointer.
4510 // Also check for declarations in for loops.
4511 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4516 // Check varargs and va_copy.
4518 test_varargs (const char *format, ...)
4521 va_start (args, format);
4523 va_copy (args_copy, args);
4534 str = va_arg (args_copy, const char *);
4537 number = va_arg (args_copy, int);
4540 fnumber = va_arg (args_copy, double);
4555 _Bool success = false;
4558 if (test_restrict ("String literal") == 0)
4560 char *restrict newvar = "Another string";
4563 test_varargs ("s, d' f .", "string", 65, 34.234);
4564 test_varargs_macros ();
4566 // Check flexible array members.
4567 struct incomplete_array *ia =
4568 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4570 for (int i = 0; i < ia->datasize; ++i)
4571 ia->data[i] = i * 1.234;
4573 // Check named initializers.
4574 struct named_init ni = {
4576 .name = L"Test wide string",
4577 .average = 543.34343,
4582 int dynamic_array[ni.number];
4583 dynamic_array[ni.number - 1] = 543;
4585 // work around unused variable warnings
4586 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4587 || dynamic_array[ni.number - 1] != 543);
4593 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4595 CC="$ac_save_CC $ac_arg"
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_prog_cc_c99=$ac_arg
4599 rm -f core conftest.err conftest.$ac_objext
4600 test "x$ac_cv_prog_cc_c99" != "xno" && break
4602 rm -f conftest.$ac_ext
4607 case "x$ac_cv_prog_cc_c99" in
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4610 $as_echo "none needed" >&6; } ;;
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4613 $as_echo "unsupported" >&6; } ;;
4615 CC="$CC $ac_cv_prog_cc_c99"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4617 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4619 if test "x$ac_cv_prog_cc_c99" != xno; then :
4620 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4623 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4624 if ${ac_cv_prog_cc_c89+:} false; then :
4625 $as_echo_n "(cached) " >&6
4627 ac_cv_prog_cc_c89=no
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4635 struct buf { int x; };
4636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4637 static char *e (p, i)
4643 static char *f (char * (*g) (char **, int), char **p, ...)
4648 s = g (p, va_arg (v,int));
4653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4654 function prototypes and stuff, but not '\xHH' hex character constants.
4655 These don't provoke an error unfortunately, instead are silently treated
4656 as 'x'. The following induces an error, until -std is added to get
4657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4658 array size at least. It's necessary to write '\x00'==0 to get something
4659 that's true only with -std. */
4660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4663 inside strings and character constants. */
4665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4667 int test (int i, double x);
4668 struct s1 {int (*f) (int a);};
4669 struct s2 {int (*f) (double a);};
4670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4684 CC="$ac_save_CC $ac_arg"
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_cv_prog_cc_c89=$ac_arg
4688 rm -f core conftest.err conftest.$ac_objext
4689 test "x$ac_cv_prog_cc_c89" != "xno" && break
4691 rm -f conftest.$ac_ext
4696 case "x$ac_cv_prog_cc_c89" in
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699 $as_echo "none needed" >&6; } ;;
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4702 $as_echo "unsupported" >&6; } ;;
4704 CC="$CC $ac_cv_prog_cc_c89"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4706 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4708 if test "x$ac_cv_prog_cc_c89" != xno; then :
4709 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4711 ac_cv_prog_cc_stdc=no
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4718 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4719 if ${ac_cv_prog_cc_stdc+:} false; then :
4720 $as_echo_n "(cached) " >&6
4723 case $ac_cv_prog_cc_stdc in #(
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4726 $as_echo "unsupported" >&6; } ;; #(
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4729 $as_echo "none needed" >&6; } ;; #(
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4732 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4742 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4743 # On Suns, sometimes $CPP names a directory.
4744 if test -n "$CPP" && test -d "$CPP"; then
4747 if test -z "$CPP"; then
4748 if ${ac_cv_prog_CPP+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 # Double quotes because CPP needs to be expanded
4752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4755 for ac_c_preproc_warn_flag in '' yes
4757 # Use a header file that comes with gcc, so configuring glibc
4758 # with a fresh cross-compiler works.
4759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760 # <limits.h> exists even on freestanding compilers.
4761 # On the NeXT, cc -E runs the code through the compiler's parser,
4762 # not just through cpp. "Syntax error" is here to catch this case.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4766 # include <limits.h>
4768 # include <assert.h>
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4775 # Broken: fails on valid input.
4778 rm -f conftest.err conftest.i conftest.$ac_ext
4780 # OK, works on sane cases. Now check whether nonexistent headers
4781 # can be detected and how.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <ac_nonexistent.h>
4786 if ac_fn_c_try_cpp "$LINENO"; then :
4787 # Broken: success on invalid input.
4790 # Passes both tests.
4794 rm -f conftest.err conftest.i conftest.$ac_ext
4797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798 rm -f conftest.i conftest.err conftest.$ac_ext
4799 if $ac_preproc_ok; then :
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4812 $as_echo "$CPP" >&6; }
4814 for ac_c_preproc_warn_flag in '' yes
4816 # Use a header file that comes with gcc, so configuring glibc
4817 # with a fresh cross-compiler works.
4818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819 # <limits.h> exists even on freestanding compilers.
4820 # On the NeXT, cc -E runs the code through the compiler's parser,
4821 # not just through cpp. "Syntax error" is here to catch this case.
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if ac_fn_c_try_cpp "$LINENO"; then :
4834 # Broken: fails on valid input.
4837 rm -f conftest.err conftest.i conftest.$ac_ext
4839 # OK, works on sane cases. Now check whether nonexistent headers
4840 # can be detected and how.
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <ac_nonexistent.h>
4845 if ac_fn_c_try_cpp "$LINENO"; then :
4846 # Broken: success on invalid input.
4849 # Passes both tests.
4853 rm -f conftest.err conftest.i conftest.$ac_ext
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.i conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then :
4861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4863 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details" "$LINENO" 5; }
4868 ac_cpp='$CPP $CPPFLAGS'
4869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4875 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4876 if ${ac_cv_path_GREP+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 if test -z "$GREP"; then
4880 ac_path_GREP_found=false
4881 # Loop through the user's path and test for each of PROGNAME-LIST
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886 test -z "$as_dir" && as_dir=.
4887 for ac_prog in grep ggrep; do
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4890 as_fn_executable_p "$ac_path_GREP" || continue
4891 # Check for GNU ac_path_GREP and select it if it is found.
4892 # Check for GNU $ac_path_GREP
4893 case `"$ac_path_GREP" --version 2>&1` in
4895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4898 $as_echo_n 0123456789 >"conftest.in"
4901 cat "conftest.in" "conftest.in" >"conftest.tmp"
4902 mv "conftest.tmp" "conftest.in"
4903 cp "conftest.in" "conftest.nl"
4904 $as_echo 'GREP' >> "conftest.nl"
4905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4907 as_fn_arith $ac_count + 1 && ac_count=$as_val
4908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4909 # Best one so far, save it but keep looking for a better one
4910 ac_cv_path_GREP="$ac_path_GREP"
4911 ac_path_GREP_max=$ac_count
4913 # 10*(2^10) chars as input seems more than enough
4914 test $ac_count -gt 10 && break
4916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919 $ac_path_GREP_found && break 3
4924 if test -z "$ac_cv_path_GREP"; then
4925 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928 ac_cv_path_GREP=$GREP
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4933 $as_echo "$ac_cv_path_GREP" >&6; }
4934 GREP="$ac_cv_path_GREP"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4938 $as_echo_n "checking for egrep... " >&6; }
4939 if ${ac_cv_path_EGREP+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4943 then ac_cv_path_EGREP="$GREP -E"
4945 if test -z "$EGREP"; then
4946 ac_path_EGREP_found=false
4947 # Loop through the user's path and test for each of PROGNAME-LIST
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4952 test -z "$as_dir" && as_dir=.
4953 for ac_prog in egrep; do
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4956 as_fn_executable_p "$ac_path_EGREP" || continue
4957 # Check for GNU ac_path_EGREP and select it if it is found.
4958 # Check for GNU $ac_path_EGREP
4959 case `"$ac_path_EGREP" --version 2>&1` in
4961 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4964 $as_echo_n 0123456789 >"conftest.in"
4967 cat "conftest.in" "conftest.in" >"conftest.tmp"
4968 mv "conftest.tmp" "conftest.in"
4969 cp "conftest.in" "conftest.nl"
4970 $as_echo 'EGREP' >> "conftest.nl"
4971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973 as_fn_arith $ac_count + 1 && ac_count=$as_val
4974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4975 # Best one so far, save it but keep looking for a better one
4976 ac_cv_path_EGREP="$ac_path_EGREP"
4977 ac_path_EGREP_max=$ac_count
4979 # 10*(2^10) chars as input seems more than enough
4980 test $ac_count -gt 10 && break
4982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4985 $ac_path_EGREP_found && break 3
4990 if test -z "$ac_cv_path_EGREP"; then
4991 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4994 ac_cv_path_EGREP=$EGREP
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5000 $as_echo "$ac_cv_path_EGREP" >&6; }
5001 EGREP="$ac_cv_path_EGREP"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5005 $as_echo_n "checking for ANSI C header files... " >&6; }
5006 if ${ac_cv_header_stdc+:} false; then :
5007 $as_echo_n "(cached) " >&6
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_cv_header_stdc=yes
5027 ac_cv_header_stdc=no
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 if test $ac_cv_header_stdc = yes; then
5032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039 $EGREP "memchr" >/dev/null 2>&1; then :
5042 ac_cv_header_stdc=no
5048 if test $ac_cv_header_stdc = yes; then
5049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056 $EGREP "free" >/dev/null 2>&1; then :
5059 ac_cv_header_stdc=no
5065 if test $ac_cv_header_stdc = yes; then
5066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067 if test "$cross_compiling" = yes; then :
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5074 #if ((' ' & 0x0FF) == 0x020)
5075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5078 # define ISLOWER(c) \
5079 (('a' <= (c) && (c) <= 'i') \
5080 || ('j' <= (c) && (c) <= 'r') \
5081 || ('s' <= (c) && (c) <= 'z'))
5082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5090 for (i = 0; i < 256; i++)
5091 if (XOR (islower (i), ISLOWER (i))
5092 || toupper (i) != TOUPPER (i))
5097 if ac_fn_c_try_run "$LINENO"; then :
5100 ac_cv_header_stdc=no
5102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5103 conftest.$ac_objext conftest.beam conftest.$ac_ext
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5109 $as_echo "$ac_cv_header_stdc" >&6; }
5110 if test $ac_cv_header_stdc = yes; then
5112 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5116 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5117 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5118 inttypes.h stdint.h unistd.h
5120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5121 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5123 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5124 cat >>confdefs.h <<_ACEOF
5125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5134 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5135 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5142 if test "$MINIX" = yes; then
5144 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5147 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5150 $as_echo "#define _MINIX 1" >>confdefs.h
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5156 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5157 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5163 # define __EXTENSIONS__ 1
5164 $ac_includes_default
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_safe_to_define___extensions__=yes
5176 ac_cv_safe_to_define___extensions__=no
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5181 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5182 test $ac_cv_safe_to_define___extensions__ = yes &&
5183 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5185 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5187 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5189 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5191 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5196 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5197 if ${ac_cv_c_bigendian+:} false; then :
5198 $as_echo_n "(cached) " >&6
5200 ac_cv_c_bigendian=unknown
5201 # See if we're dealing with a universal compiler.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #ifndef __APPLE_CC__
5205 not a universal capable compiler
5210 if ac_fn_c_try_compile "$LINENO"; then :
5212 # Check for potential -arch flags. It is not universal unless
5213 # there are at least two -arch flags with different values.
5216 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5217 if test -n "$ac_prev"; then
5219 i?86 | x86_64 | ppc | ppc64)
5220 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5223 ac_cv_c_bigendian=universal
5229 elif test "x$ac_word" = "x-arch"; then
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 if test $ac_cv_c_bigendian = unknown; then
5236 # See if sys/param.h defines the BYTE_ORDER macro.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <sys/types.h>
5240 #include <sys/param.h>
5245 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5246 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5255 if ac_fn_c_try_compile "$LINENO"; then :
5256 # It does; now see whether it defined to BIG_ENDIAN or not.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <sys/types.h>
5260 #include <sys/param.h>
5265 #if BYTE_ORDER != BIG_ENDIAN
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_c_bigendian=yes
5276 ac_cv_c_bigendian=no
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 if test $ac_cv_c_bigendian = unknown; then
5283 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5291 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 # It does; now see whether it defined to _BIG_ENDIAN or not.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 ac_cv_c_bigendian=yes
5319 ac_cv_c_bigendian=no
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 if test $ac_cv_c_bigendian = unknown; then
5326 # Compile a test program.
5327 if test "$cross_compiling" = yes; then :
5328 # Try to guess by grepping values from an object file.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 short int ascii_mm[] =
5332 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5333 short int ascii_ii[] =
5334 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5335 int use_ascii (int i) {
5336 return ascii_mm[i] + ascii_ii[i];
5338 short int ebcdic_ii[] =
5339 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5340 short int ebcdic_mm[] =
5341 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5342 int use_ebcdic (int i) {
5343 return ebcdic_mm[i] + ebcdic_ii[i];
5350 return use_ascii (foo) == use_ebcdic (foo);
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5357 ac_cv_c_bigendian=yes
5359 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5360 if test "$ac_cv_c_bigendian" = unknown; then
5361 ac_cv_c_bigendian=no
5363 # finding both strings is unlikely to happen, but who knows?
5364 ac_cv_c_bigendian=unknown
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 $ac_includes_default
5377 /* Are we little or big endian? From Harbison&Steele. */
5381 char c[sizeof (long int)];
5384 return u.c[sizeof (long int) - 1] == 1;
5390 if ac_fn_c_try_run "$LINENO"; then :
5391 ac_cv_c_bigendian=no
5393 ac_cv_c_bigendian=yes
5395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5396 conftest.$ac_objext conftest.beam conftest.$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5402 $as_echo "$ac_cv_c_bigendian" >&6; }
5403 case $ac_cv_c_bigendian in #(
5405 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5411 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5415 as_fn_error $? "unknown endianness
5416 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5421 $as_echo_n "checking whether ln -s works... " >&6; }
5423 if test "$LN_S" = "ln -s"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425 $as_echo "yes" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5428 $as_echo "no, using $LN_S" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5434 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5439 macro_version='2.4.6'
5440 macro_revision='2.4.6'
5454 ltmain=$ac_aux_dir/ltmain.sh
5456 # Backslashify metacharacters that are still active within
5457 # double-quoted strings.
5458 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5460 # Same as above, but do not quote variable references.
5461 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5463 # Sed substitution to delay expansion of an escaped shell variable in a
5464 # double_quote_subst'ed string.
5465 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5467 # Sed substitution to delay expansion of an escaped single quote.
5468 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5470 # Sed substitution to avoid accidental globbing in evaled expressions
5471 no_glob_subst='s/\*/\\\*/g'
5473 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5474 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5475 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5478 $as_echo_n "checking how to print strings... " >&6; }
5479 # Test print first, because it will be a builtin if present.
5480 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5481 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5483 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5486 # Use this function as a fallback that always works.
5487 func_fallback_echo ()
5489 eval 'cat <<_LTECHO_EOF
5493 ECHO='func_fallback_echo'
5496 # func_echo_all arg...
5497 # Invoke $ECHO with all args, space-separated.
5504 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5505 $as_echo "printf" >&6; } ;;
5506 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5507 $as_echo "print -r" >&6; } ;;
5508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5509 $as_echo "cat" >&6; } ;;
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5526 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5527 if ${ac_cv_path_SED+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5531 for ac_i in 1 2 3 4 5 6 7; do
5532 ac_script="$ac_script$as_nl$ac_script"
5534 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5535 { ac_script=; unset ac_script;}
5536 if test -z "$SED"; then
5537 ac_path_SED_found=false
5538 # Loop through the user's path and test for each of PROGNAME-LIST
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 test -z "$as_dir" && as_dir=.
5544 for ac_prog in sed gsed; do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5547 as_fn_executable_p "$ac_path_SED" || continue
5548 # Check for GNU ac_path_SED and select it if it is found.
5549 # Check for GNU $ac_path_SED
5550 case `"$ac_path_SED" --version 2>&1` in
5552 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5555 $as_echo_n 0123456789 >"conftest.in"
5558 cat "conftest.in" "conftest.in" >"conftest.tmp"
5559 mv "conftest.tmp" "conftest.in"
5560 cp "conftest.in" "conftest.nl"
5561 $as_echo '' >> "conftest.nl"
5562 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5564 as_fn_arith $ac_count + 1 && ac_count=$as_val
5565 if test $ac_count -gt ${ac_path_SED_max-0}; then
5566 # Best one so far, save it but keep looking for a better one
5567 ac_cv_path_SED="$ac_path_SED"
5568 ac_path_SED_max=$ac_count
5570 # 10*(2^10) chars as input seems more than enough
5571 test $ac_count -gt 10 && break
5573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576 $ac_path_SED_found && break 3
5581 if test -z "$ac_cv_path_SED"; then
5582 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5590 $as_echo "$ac_cv_path_SED" >&6; }
5591 SED="$ac_cv_path_SED"
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5608 $as_echo_n "checking for fgrep... " >&6; }
5609 if ${ac_cv_path_FGREP+:} false; then :
5610 $as_echo_n "(cached) " >&6
5612 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5613 then ac_cv_path_FGREP="$GREP -F"
5615 if test -z "$FGREP"; then
5616 ac_path_FGREP_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 test -z "$as_dir" && as_dir=.
5623 for ac_prog in fgrep; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5626 as_fn_executable_p "$ac_path_FGREP" || continue
5627 # Check for GNU ac_path_FGREP and select it if it is found.
5628 # Check for GNU $ac_path_FGREP
5629 case `"$ac_path_FGREP" --version 2>&1` in
5631 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5634 $as_echo_n 0123456789 >"conftest.in"
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 $as_echo 'FGREP' >> "conftest.nl"
5641 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 as_fn_arith $ac_count + 1 && ac_count=$as_val
5644 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_FGREP="$ac_path_FGREP"
5647 ac_path_FGREP_max=$ac_count
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 $ac_path_FGREP_found && break 3
5660 if test -z "$ac_cv_path_FGREP"; then
5661 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664 ac_cv_path_FGREP=$FGREP
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5670 $as_echo "$ac_cv_path_FGREP" >&6; }
5671 FGREP="$ac_cv_path_FGREP"
5674 test -z "$GREP" && GREP=grep
5694 # Check whether --with-gnu-ld was given.
5695 if test "${with_gnu_ld+set}" = set; then :
5696 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5702 if test yes = "$GCC"; then
5703 # Check if gcc -print-prog-name=ld gives a path.
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5705 $as_echo_n "checking for ld used by $CC... " >&6; }
5708 # gcc leaves a trailing carriage return, which upsets mingw
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5714 # Accept absolute paths.
5716 re_direlt='/[^/][^/]*/\.\./'
5717 # Canonicalize the pathname of ld
5718 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5719 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5720 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5722 test -z "$LD" && LD=$ac_prog
5725 # If it fails, then pretend we aren't using GCC.
5729 # If it is relative, then search for the first ld in PATH.
5733 elif test yes = "$with_gnu_ld"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5735 $as_echo_n "checking for GNU ld... " >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5738 $as_echo_n "checking for non-GNU ld... " >&6; }
5740 if ${lt_cv_path_LD+:} false; then :
5741 $as_echo_n "(cached) " >&6
5743 if test -z "$LD"; then
5744 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5745 for ac_dir in $PATH; do
5747 test -z "$ac_dir" && ac_dir=.
5748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5749 lt_cv_path_LD=$ac_dir/$ac_prog
5750 # Check to see if the program is GNU ld. I'd rather use --version,
5751 # but apparently some variants of GNU ld only accept -v.
5752 # Break only if it was the GNU/non-GNU ld that we prefer.
5753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5754 *GNU* | *'with BFD'*)
5755 test no != "$with_gnu_ld" && break
5758 test yes != "$with_gnu_ld" && break
5765 lt_cv_path_LD=$LD # Let the user override the test with a path.
5770 if test -n "$LD"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5772 $as_echo "$LD" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5777 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5779 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5780 if ${lt_cv_prog_gnu_ld+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5784 case `$LD -v 2>&1 </dev/null` in
5785 *GNU* | *'with BFD'*)
5786 lt_cv_prog_gnu_ld=yes
5789 lt_cv_prog_gnu_ld=no
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5794 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5795 with_gnu_ld=$lt_cv_prog_gnu_ld
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5806 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5807 if ${lt_cv_path_NM+:} false; then :
5808 $as_echo_n "(cached) " >&6
5810 if test -n "$NM"; then
5811 # Let the user override the test.
5814 lt_nm_to_check=${ac_tool_prefix}nm
5815 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5816 lt_nm_to_check="$lt_nm_to_check nm"
5818 for lt_tmp_nm in $lt_nm_to_check; do
5819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5820 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5822 test -z "$ac_dir" && ac_dir=.
5823 tmp_nm=$ac_dir/$lt_tmp_nm
5824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5825 # Check to see if the nm accepts a BSD-compat flag.
5826 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5827 # nm: unknown option "B" ignored
5828 # Tru64's nm complains that /dev/null is an invalid object file
5829 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5831 mingw*) lt_bad_file=conftest.nm/nofile ;;
5832 *) lt_bad_file=/dev/null ;;
5834 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5835 *$lt_bad_file* | *'Invalid file or object type'*)
5836 lt_cv_path_NM="$tmp_nm -B"
5840 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5842 lt_cv_path_NM="$tmp_nm -p"
5846 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5847 continue # so that we can try to find one that supports BSD flags
5856 : ${lt_cv_path_NM=no}
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5860 $as_echo "$lt_cv_path_NM" >&6; }
5861 if test no != "$lt_cv_path_NM"; then
5864 # Didn't find any BSD compatible name lister, look for dumpbin.
5865 if test -n "$DUMPBIN"; then :
5866 # Let the user override the test.
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog in dumpbin "link -dump"
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_DUMPBIN+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$DUMPBIN"; then
5879 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 DUMPBIN=$ac_cv_prog_DUMPBIN
5899 if test -n "$DUMPBIN"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5901 $as_echo "$DUMPBIN" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5908 test -n "$DUMPBIN" && break
5911 if test -z "$DUMPBIN"; then
5912 ac_ct_DUMPBIN=$DUMPBIN
5913 for ac_prog in dumpbin "link -dump"
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$ac_ct_DUMPBIN"; then
5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5943 if test -n "$ac_ct_DUMPBIN"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$ac_ct_DUMPBIN" && break
5955 if test "x$ac_ct_DUMPBIN" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5964 DUMPBIN=$ac_ct_DUMPBIN
5968 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5970 DUMPBIN="$DUMPBIN -symbols -headers"
5978 if test : != "$DUMPBIN"; then
5982 test -z "$NM" && NM=nm
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5990 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5991 if ${lt_cv_nm_interface+:} false; then :
5992 $as_echo_n "(cached) " >&6
5994 lt_cv_nm_interface="BSD nm"
5995 echo "int some_variable = 0;" > conftest.$ac_ext
5996 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5997 (eval "$ac_compile" 2>conftest.err)
5998 cat conftest.err >&5
5999 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6000 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6001 cat conftest.err >&5
6002 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6003 cat conftest.out >&5
6004 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6005 lt_cv_nm_interface="MS dumpbin"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6010 $as_echo "$lt_cv_nm_interface" >&6; }
6012 # find the maximum length of command line arguments
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6015 if ${lt_cv_sys_max_cmd_len+:} false; then :
6016 $as_echo_n "(cached) " >&6
6023 # On DJGPP, this test can blow up pretty badly due to problems in libc
6024 # (any single argument exceeding 2000 bytes causes a buffer overrun
6025 # during glob expansion). Even if it were fixed, the result of this
6026 # check would be larger than it should be.
6027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6031 # Under GNU Hurd, this test is not required because there is
6032 # no limit to the length of command line arguments.
6033 # Libtool will interpret -1 as no limit whatsoever
6034 lt_cv_sys_max_cmd_len=-1;
6037 cygwin* | mingw* | cegcc*)
6038 # On Win9x/ME, this test blows up -- it succeeds, but takes
6039 # about 5 minutes as the teststring grows exponentially.
6040 # Worse, since 9x/ME are not pre-emptively multitasking,
6041 # you end up with a "frozen" computer, even though with patience
6042 # the test eventually succeeds (with a max line length of 256k).
6043 # Instead, let's just punt: use the minimum linelength reported by
6044 # all of the supported platforms: 8192 (on NT/2K/XP).
6045 lt_cv_sys_max_cmd_len=8192;
6049 # On MiNT this can take a long time and run out of memory.
6050 lt_cv_sys_max_cmd_len=8192;
6054 # On AmigaOS with pdksh, this test takes hours, literally.
6055 # So we just punt and use a minimum line length of 8192.
6056 lt_cv_sys_max_cmd_len=8192;
6059 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6060 # This has been around since 386BSD, at least. Likely further.
6061 if test -x /sbin/sysctl; then
6062 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063 elif test -x /usr/sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6068 # And add a safety zone
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6074 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075 lt_cv_sys_max_cmd_len=196608
6079 # The test takes a long time on OS/2.
6080 lt_cv_sys_max_cmd_len=8192
6084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086 # nice to cause kernel panics so lets avoid the loop below.
6087 # First set a reasonable default.
6088 lt_cv_sys_max_cmd_len=16384
6090 if test -x /sbin/sysconfig; then
6091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097 lt_cv_sys_max_cmd_len=102400
6099 sysv5* | sco5v6* | sysv4.2uw2*)
6100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101 if test -n "$kargmax"; then
6102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6104 lt_cv_sys_max_cmd_len=32768
6108 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6109 if test -n "$lt_cv_sys_max_cmd_len" && \
6110 test undefined != "$lt_cv_sys_max_cmd_len"; then
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6114 # Make teststring a little bigger before we do anything with it.
6115 # a 1K string should be a reasonable start.
6116 for i in 1 2 3 4 5 6 7 8; do
6117 teststring=$teststring$teststring
6119 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6120 # If test is not a shell built-in, we'll probably end up computing a
6121 # maximum length that is only half of the actual maximum length, but
6123 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6124 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6125 test 17 != "$i" # 1/2 MB should be enough
6128 teststring=$teststring$teststring
6130 # Only check the string length outside the loop.
6131 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6133 # Add a significant safety factor because C++ compilers can tack on
6134 # massive amounts of additional arguments before passing them to the
6135 # linker. It appears as though 1/2 is a usable value.
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6143 if test -n "$lt_cv_sys_max_cmd_len"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6145 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6148 $as_echo "none" >&6; }
6150 max_cmd_len=$lt_cv_sys_max_cmd_len
6161 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6171 # test EBCDIC or ASCII
6172 case `echo X|tr X '\101'` in
6173 A) # ASCII based system
6174 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6175 lt_SP2NL='tr \040 \012'
6176 lt_NL2SP='tr \015\012 \040\040'
6178 *) # EBCDIC based system
6179 lt_SP2NL='tr \100 \n'
6180 lt_NL2SP='tr \r\n \100\100'
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6193 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6194 if ${lt_cv_to_host_file_cmd+:} false; then :
6195 $as_echo_n "(cached) " >&6
6200 *-*-mingw* ) # actually msys
6201 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6204 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6206 * ) # otherwise, assume *nix
6207 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6213 *-*-mingw* ) # actually msys
6214 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6217 lt_cv_to_host_file_cmd=func_convert_file_noop
6219 * ) # otherwise, assume *nix
6220 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6224 * ) # unhandled hosts (and "normal" native builds)
6225 lt_cv_to_host_file_cmd=func_convert_file_noop
6231 to_host_file_cmd=$lt_cv_to_host_file_cmd
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6233 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6240 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6241 if ${lt_cv_to_tool_file_cmd+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 #assume ordinary cross tools, or native build.
6245 lt_cv_to_tool_file_cmd=func_convert_file_noop
6249 *-*-mingw* ) # actually msys
6250 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6258 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6260 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6268 if ${lt_cv_ld_reload_flag+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 lt_cv_ld_reload_flag='-r'
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6278 *) reload_flag=" $reload_flag" ;;
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6282 cygwin* | mingw* | pw32* | cegcc*)
6283 if test yes != "$GCC"; then
6288 if test yes = "$GCC"; then
6289 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_OBJDUMP+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$OBJDUMP"; then
6313 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 OBJDUMP=$ac_cv_prog_OBJDUMP
6333 if test -n "$OBJDUMP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6335 $as_echo "$OBJDUMP" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_OBJDUMP"; then
6344 ac_ct_OBJDUMP=$OBJDUMP
6345 # Extract the first word of "objdump", so it can be a program name with args.
6346 set dummy objdump; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_OBJDUMP"; then
6353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6373 if test -n "$ac_ct_OBJDUMP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6375 $as_echo "$ac_ct_OBJDUMP" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_OBJDUMP" = x; then
6384 case $cross_compiling:$ac_tool_warned in
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6390 OBJDUMP=$ac_ct_OBJDUMP
6393 OBJDUMP="$ac_cv_prog_OBJDUMP"
6396 test -z "$OBJDUMP" && OBJDUMP=objdump
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6407 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6408 if ${lt_cv_deplibs_check_method+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 lt_cv_file_magic_cmd='$MAGIC_CMD'
6412 lt_cv_file_magic_test_file=
6413 lt_cv_deplibs_check_method='unknown'
6414 # Need to set the preceding variable on all platforms that support
6415 # interlibrary dependencies.
6416 # 'none' -- dependencies not supported.
6417 # 'unknown' -- same as none, but documents that we really don't know.
6418 # 'pass_all' -- all dependencies passed with no checks.
6419 # 'test_compile' -- check by making test program.
6420 # 'file_magic [[regex]]' -- check by looking for files in library path
6421 # that responds to the $file_magic_cmd with a given extended regex.
6422 # If you have 'file' or equivalent on your system and you're not sure
6423 # whether 'pass_all' will *always* work, you probably want this one.
6427 lt_cv_deplibs_check_method=pass_all
6431 lt_cv_deplibs_check_method=pass_all
6435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6436 lt_cv_file_magic_cmd='/usr/bin/file -L'
6437 lt_cv_file_magic_test_file=/shlib/libc.so
6441 # func_win32_libid is a shell function defined in ltmain.sh
6442 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6443 lt_cv_file_magic_cmd='func_win32_libid'
6447 # Base MSYS/MinGW do not provide the 'file' command needed by
6448 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6449 # unless we find 'file', for example because we are cross-compiling.
6450 if ( file / ) >/dev/null 2>&1; then
6451 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6452 lt_cv_file_magic_cmd='func_win32_libid'
6454 # Keep this pattern in sync with the one in func_win32_libid.
6455 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6456 lt_cv_file_magic_cmd='$OBJDUMP -f'
6461 # use the weaker test based on 'objdump'. See mingw*.
6462 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6463 lt_cv_file_magic_cmd='$OBJDUMP -f'
6466 darwin* | rhapsody*)
6467 lt_cv_deplibs_check_method=pass_all
6470 freebsd* | dragonfly*)
6471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474 # Not sure whether the presence of OpenBSD here was a mistake.
6475 # Let's accept both of them until this is cleared up.
6476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6477 lt_cv_file_magic_cmd=/usr/bin/file
6478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6482 lt_cv_deplibs_check_method=pass_all
6487 lt_cv_deplibs_check_method=pass_all
6490 hpux10.20* | hpux11*)
6491 lt_cv_file_magic_cmd=/usr/bin/file
6494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6495 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6498 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]'
6499 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6509 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6513 irix5* | irix6* | nonstopux*)
6515 *-32|*"-32 ") libmagic=32-bit;;
6516 *-n32|*"-n32 ") libmagic=N32;;
6517 *-64|*"-64 ") libmagic=64-bit;;
6518 *) libmagic=never-match;;
6520 lt_cv_deplibs_check_method=pass_all
6523 # This must be glibc/ELF.
6524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6525 lt_cv_deplibs_check_method=pass_all
6529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6538 lt_cv_file_magic_cmd=/usr/bin/file
6539 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6543 lt_cv_deplibs_check_method=pass_all
6547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6554 osf3* | osf4* | osf5*)
6555 lt_cv_deplibs_check_method=pass_all
6559 lt_cv_deplibs_check_method=pass_all
6563 lt_cv_deplibs_check_method=pass_all
6566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6567 lt_cv_deplibs_check_method=pass_all
6571 case $host_vendor in
6573 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]'
6574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6577 lt_cv_deplibs_check_method=pass_all
6580 lt_cv_file_magic_cmd='/bin/file'
6581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6584 lt_cv_file_magic_cmd='/bin/file'
6585 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6586 lt_cv_file_magic_test_file=/lib/libc.so
6589 lt_cv_deplibs_check_method=pass_all
6592 lt_cv_deplibs_check_method=pass_all
6598 lt_cv_deplibs_check_method=pass_all
6601 lt_cv_deplibs_check_method=pass_all
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6607 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6611 if test "$build" = "$host"; then
6614 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6617 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6623 file_magic_cmd=$lt_cv_file_magic_cmd
6624 deplibs_check_method=$lt_cv_deplibs_check_method
6625 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_DLLTOOL+:} false; then :
6654 $as_echo_n "(cached) " >&6
6656 if test -n "$DLLTOOL"; then
6657 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 DLLTOOL=$ac_cv_prog_DLLTOOL
6677 if test -n "$DLLTOOL"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6679 $as_echo "$DLLTOOL" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6687 if test -z "$ac_cv_prog_DLLTOOL"; then
6688 ac_ct_DLLTOOL=$DLLTOOL
6689 # Extract the first word of "dlltool", so it can be a program name with args.
6690 set dummy dlltool; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$ac_ct_DLLTOOL"; then
6697 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6717 if test -n "$ac_ct_DLLTOOL"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6719 $as_echo "$ac_ct_DLLTOOL" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6725 if test "x$ac_ct_DLLTOOL" = x; then
6728 case $cross_compiling:$ac_tool_warned in
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6734 DLLTOOL=$ac_ct_DLLTOOL
6737 DLLTOOL="$ac_cv_prog_DLLTOOL"
6740 test -z "$DLLTOOL" && DLLTOOL=dlltool
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6752 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6753 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 lt_cv_sharedlib_from_linklib_cmd='unknown'
6759 cygwin* | mingw* | pw32* | cegcc*)
6760 # two different shell functions defined in ltmain.sh;
6761 # decide which one to use based on capabilities of $DLLTOOL
6762 case `$DLLTOOL --help 2>&1` in
6763 *--identify-strict*)
6764 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6767 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6772 # fallback: assume linklib IS sharedlib
6773 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6779 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6780 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6781 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6789 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_AR+:} false; then :
6797 $as_echo_n "(cached) " >&6
6799 if test -n "$AR"; then
6800 ac_cv_prog_AR="$AR" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 if test -n "$AR"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6822 $as_echo "$AR" >&6; }
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6829 test -n "$AR" && break
6832 if test -z "$AR"; then
6836 # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$ac_ct_AR"; then
6844 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_ac_ct_AR="$ac_prog"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6864 if test -n "$ac_ct_AR"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6866 $as_echo "$ac_ct_AR" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6873 test -n "$ac_ct_AR" && break
6876 if test "x$ac_ct_AR" = x; then
6879 case $cross_compiling:$ac_tool_warned in
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6903 $as_echo_n "checking for archiver @FILE support... " >&6; }
6904 if ${lt_cv_ar_at_file+:} false; then :
6905 $as_echo_n "(cached) " >&6
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 echo conftest.$ac_objext > conftest.lst
6921 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6923 (eval $lt_ar_try) 2>&5
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }
6927 if test 0 -eq "$ac_status"; then
6928 # Ensure the archiver fails upon bogus file names.
6929 rm -f conftest.$ac_objext libconftest.a
6930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6931 (eval $lt_ar_try) 2>&5
6933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934 test $ac_status = 0; }
6935 if test 0 -ne "$ac_status"; then
6939 rm -f conftest.* libconftest.a
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6946 $as_echo "$lt_cv_ar_at_file" >&6; }
6948 if test no = "$lt_cv_ar_at_file"; then
6951 archiver_list_spec=$lt_cv_ar_at_file
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}strip; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_STRIP+:} false; then :
6966 $as_echo_n "(cached) " >&6
6968 if test -n "$STRIP"; then
6969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 STRIP=$ac_cv_prog_STRIP
6989 if test -n "$STRIP"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6991 $as_echo "$STRIP" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_STRIP"; then
7001 # Extract the first word of "strip", so it can be a program name with args.
7002 set dummy strip; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 if test -n "$ac_ct_STRIP"; then
7009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_ac_ct_STRIP="strip"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7029 if test -n "$ac_ct_STRIP"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7031 $as_echo "$ac_ct_STRIP" >&6; }
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_STRIP" = x; then
7040 case $cross_compiling:$ac_tool_warned in
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7049 STRIP="$ac_cv_prog_STRIP"
7052 test -z "$STRIP" && STRIP=:
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_RANLIB+:} false; then :
7065 $as_echo_n "(cached) " >&6
7067 if test -n "$RANLIB"; then
7068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 RANLIB=$ac_cv_prog_RANLIB
7088 if test -n "$RANLIB"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7090 $as_echo "$RANLIB" >&6; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7098 if test -z "$ac_cv_prog_RANLIB"; then
7099 ac_ct_RANLIB=$RANLIB
7100 # Extract the first word of "ranlib", so it can be a program name with args.
7101 set dummy ranlib; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 if test -n "$ac_ct_RANLIB"; then
7108 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_RANLIB="ranlib"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7128 if test -n "$ac_ct_RANLIB"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7130 $as_echo "$ac_ct_RANLIB" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 if test "x$ac_ct_RANLIB" = x; then
7139 case $cross_compiling:$ac_tool_warned in
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7145 RANLIB=$ac_ct_RANLIB
7148 RANLIB="$ac_cv_prog_RANLIB"
7151 test -z "$RANLIB" && RANLIB=:
7158 # Determine commands to create old-style static archives.
7159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7160 old_postinstall_cmds='chmod 644 $oldlib'
7161 old_postuninstall_cmds=
7163 if test -n "$RANLIB"; then
7166 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7172 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7177 lock_old_archive_extraction=yes ;;
7179 lock_old_archive_extraction=no ;;
7220 # If no C compiler was specified, use CC.
7223 # If no C compiler flags were specified, use CFLAGS.
7224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7226 # Allow CC to be a program name with arguments.
7230 # Check for command to grab the raw symbol name followed by C symbol from nm.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7232 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7233 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7234 $as_echo_n "(cached) " >&6
7237 # These are sane defaults that work on at least a few old systems.
7238 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7240 # Character class describing NM global symbol codes.
7241 symcode='[BCDEGRST]'
7243 # Regexp to match symbols that can be accessed directly from C.
7244 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7246 # Define system-specific variables.
7251 cygwin* | mingw* | pw32* | cegcc*)
7252 symcode='[ABCDGISTW]'
7255 if test ia64 = "$host_cpu"; then
7256 symcode='[ABCDEGRST]'
7260 symcode='[BCDEGRST]'
7263 symcode='[BCDEGQRST]'
7274 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7282 # If we're using GNU nm, then use its standard symbol codes.
7283 case `$NM -V 2>&1` in
7284 *GNU* | *'with BFD'*)
7285 symcode='[ABCDGIRSTW]' ;;
7288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7289 # Gets list of data symbols to import.
7290 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7291 # Adjust the below global symbol transforms to fixup imported variables.
7292 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7293 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7294 lt_c_name_lib_hook="\
7295 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7296 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7298 # Disable hooks by default.
7299 lt_cv_sys_global_symbol_to_import=
7305 # Transform an extracted symbol line into a proper C declaration.
7306 # Some systems (esp. on ia64) link data and code symbols differently,
7307 # so use this general approach.
7308 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7310 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7311 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7313 # Transform an extracted symbol line into symbol name and symbol address
7314 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7316 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7317 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7319 # Transform an extracted symbol line into symbol name with lib prefix and
7321 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7322 $lt_c_name_lib_hook\
7323 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7324 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7325 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7327 # Handle CRLF in mingw tool chain
7331 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7335 # Try without a prefix underscore, then with it.
7336 for ac_symprfx in "" "_"; do
7338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339 symxfrm="\\1 $ac_symprfx\\2 \\2"
7341 # Write the raw and C identifiers.
7342 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343 # Fake it for dumpbin and say T for any non-static function,
7344 # D for any global variable and I for any imported variable.
7345 # Also find C++ and __fastcall symbols from MSVC++,
7346 # which start with @ or ?.
7347 lt_cv_sys_global_symbol_pipe="$AWK '"\
7348 " {last_section=section; section=\$ 3};"\
7349 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7351 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7352 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7353 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7354 " \$ 0!~/External *\|/{next};"\
7355 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7356 " {if(hide[section]) next};"\
7357 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7358 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7359 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7360 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7361 " ' prfx=^$ac_symprfx"
7363 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7365 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7367 # Check to see that the pipe works correctly.
7371 cat > conftest.$ac_ext <<_LT_EOF
7376 void nm_test_func(void);
7377 void nm_test_func(void){}
7381 int main(){nm_test_var='a';nm_test_func();return(0);}
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385 (eval $ac_compile) 2>&5
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; }; then
7389 # Now try to grab the symbols.
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7392 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s "$nlist"; then
7396 # Try sorting and uniquifying the output.
7397 if sort "$nlist" | uniq > "$nlist"T; then
7398 mv -f "$nlist"T "$nlist"
7403 # Make sure that we snagged all the symbols we need.
7404 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7405 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7406 cat <<_LT_EOF > conftest.$ac_ext
7407 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7408 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7409 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7410 relocations are performed -- see ld's documentation on pseudo-relocs. */
7411 # define LT_DLSYM_CONST
7412 #elif defined __osf__
7413 /* This system does not cope well with relocations in const data. */
7414 # define LT_DLSYM_CONST
7416 # define LT_DLSYM_CONST const
7424 # Now generate the symbol file.
7425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7427 cat <<_LT_EOF >> conftest.$ac_ext
7429 /* The mapping between symbol names and symbols. */
7430 LT_DLSYM_CONST struct {
7434 lt__PROGRAM__LTX_preloaded_symbols[] =
7436 { "@PROGRAM@", (void *) 0 },
7438 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7439 cat <<\_LT_EOF >> conftest.$ac_ext
7443 /* This works around a problem in FreeBSD linker */
7444 #ifdef FREEBSD_WORKAROUND
7445 static const void *lt_preloaded_setup() {
7446 return lt__PROGRAM__LTX_preloaded_symbols;
7454 # Now try linking the two files.
7455 mv conftest.$ac_objext conftstm.$ac_objext
7456 lt_globsym_save_LIBS=$LIBS
7457 lt_globsym_save_CFLAGS=$CFLAGS
7458 LIBS=conftstm.$ac_objext
7459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7461 (eval $ac_link) 2>&5
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7467 LIBS=$lt_globsym_save_LIBS
7468 CFLAGS=$lt_globsym_save_CFLAGS
7470 echo "cannot find nm_test_func in $nlist" >&5
7473 echo "cannot find nm_test_var in $nlist" >&5
7476 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7479 echo "$progname: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7482 rm -rf conftest* conftst*
7484 # Do not use the global_symbol_pipe unless it works.
7485 if test yes = "$pipe_works"; then
7488 lt_cv_sys_global_symbol_pipe=
7494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7495 lt_cv_sys_global_symbol_to_cdecl=
7497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7499 $as_echo "failed" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7502 $as_echo "ok" >&6; }
7505 # Response file support.
7506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7507 nm_file_list_spec='@'
7508 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7509 nm_file_list_spec='@'
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7549 $as_echo_n "checking for sysroot... " >&6; }
7551 # Check whether --with-sysroot was given.
7552 if test "${with_sysroot+set}" = set; then :
7553 withval=$with_sysroot;
7560 case $with_sysroot in #(
7562 if test yes = "$GCC"; then
7563 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7567 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7573 $as_echo "$with_sysroot" >&6; }
7574 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7579 $as_echo "${lt_sysroot:-no}" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7586 $as_echo_n "checking for a working dd... " >&6; }
7587 if ${ac_cv_path_lt_DD+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 printf 0123456789abcdef0123456789abcdef >conftest.i
7591 cat conftest.i conftest.i >conftest2.i
7593 if test -z "$lt_DD"; then
7594 ac_path_lt_DD_found=false
7595 # Loop through the user's path and test for each of PROGNAME-LIST
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_prog in dd; do
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7604 as_fn_executable_p "$ac_path_lt_DD" || continue
7605 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7606 cmp -s conftest.i conftest.out \
7607 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7609 $ac_path_lt_DD_found && break 3
7614 if test -z "$ac_cv_path_lt_DD"; then
7618 ac_cv_path_lt_DD=$lt_DD
7621 rm -f conftest.i conftest2.i conftest.out
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7624 $as_echo "$ac_cv_path_lt_DD" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7628 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7629 if ${lt_cv_truncate_bin+:} false; then :
7630 $as_echo_n "(cached) " >&6
7632 printf 0123456789abcdef0123456789abcdef >conftest.i
7633 cat conftest.i conftest.i >conftest2.i
7635 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7636 cmp -s conftest.i conftest.out \
7637 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7639 rm -f conftest.i conftest2.i conftest.out
7640 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7643 $as_echo "$lt_cv_truncate_bin" >&6; }
7651 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7654 for cc_temp in $*""; do
7656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7662 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7665 # Check whether --enable-libtool-lock was given.
7666 if test "${enable_libtool_lock+set}" = set; then :
7667 enableval=$enable_libtool_lock;
7670 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7672 # Some flags need to be propagated to the compiler or linker for good
7676 # Find out what ABI is being produced by ac_compile, and set mode
7677 # options accordingly.
7678 echo 'int i;' > conftest.$ac_ext
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 case `/usr/bin/file conftest.$ac_objext` in
7696 # Find out what ABI is being produced by ac_compile, and set linker
7697 # options accordingly.
7698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 if test yes = "$lt_cv_prog_gnu_ld"; then
7705 case `/usr/bin/file conftest.$ac_objext` in
7707 LD="${LD-ld} -melf32bsmip"
7710 LD="${LD-ld} -melf32bmipn32"
7713 LD="${LD-ld} -melf64bmip"
7717 case `/usr/bin/file conftest.$ac_objext` in
7734 # Find out what ABI is being produced by ac_compile, and set linker
7735 # options accordingly.
7736 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738 (eval $ac_compile) 2>&5
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7743 case `/usr/bin/file conftest.$ac_objext` in
7751 case `/usr/bin/file conftest.$ac_objext` in
7753 emul="${emul}btsmip"
7756 emul="${emul}ltsmip"
7759 case `/usr/bin/file conftest.$ac_objext` in
7764 LD="${LD-ld} -m $emul"
7769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7771 # Find out what ABI is being produced by ac_compile, and set linker
7772 # options accordingly. Note that the listed cases only cover the
7773 # situations where additional linker options are needed (such as when
7774 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7775 # vice versa); the common cases where no linker options are needed do
7776 # not appear in the list.
7777 echo 'int i;' > conftest.$ac_ext
7778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7779 (eval $ac_compile) 2>&5
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
7783 case `/usr/bin/file conftest.o` in
7786 x86_64-*kfreebsd*-gnu)
7787 LD="${LD-ld} -m elf_i386_fbsd"
7790 case `/usr/bin/file conftest.o` in
7792 LD="${LD-ld} -m elf32_x86_64"
7795 LD="${LD-ld} -m elf_i386"
7799 powerpc64le-*linux*)
7800 LD="${LD-ld} -m elf32lppclinux"
7803 LD="${LD-ld} -m elf32ppclinux"
7806 LD="${LD-ld} -m elf_s390"
7809 LD="${LD-ld} -m elf32_sparc"
7815 x86_64-*kfreebsd*-gnu)
7816 LD="${LD-ld} -m elf_x86_64_fbsd"
7819 LD="${LD-ld} -m elf_x86_64"
7822 LD="${LD-ld} -m elf64lppc"
7825 LD="${LD-ld} -m elf64ppc"
7827 s390*-*linux*|s390*-*tpf*)
7828 LD="${LD-ld} -m elf64_s390"
7831 LD="${LD-ld} -m elf64_sparc"
7841 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7843 CFLAGS="$CFLAGS -belf"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7845 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7846 if ${lt_cv_cc_needs_belf+:} false; then :
7847 $as_echo_n "(cached) " >&6
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7866 if ac_fn_c_try_link "$LINENO"; then :
7867 lt_cv_cc_needs_belf=yes
7869 lt_cv_cc_needs_belf=no
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7881 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7882 if test yes != "$lt_cv_cc_needs_belf"; then
7883 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7888 # Find out what ABI is being produced by ac_compile, and set linker
7889 # options accordingly.
7890 echo 'int i;' > conftest.$ac_ext
7891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7892 (eval $ac_compile) 2>&5
7894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7895 test $ac_status = 0; }; then
7896 case `/usr/bin/file conftest.o` in
7898 case $lt_cv_prog_gnu_ld in
7901 i?86-*-solaris*|x86_64-*-solaris*)
7902 LD="${LD-ld} -m elf_x86_64"
7905 LD="${LD-ld} -m elf64_sparc"
7908 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7909 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7914 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7926 need_locks=$enable_libtool_lock
7928 if test -n "$ac_tool_prefix"; then
7929 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7930 set dummy ${ac_tool_prefix}mt; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7934 $as_echo_n "(cached) " >&6
7936 if test -n "$MANIFEST_TOOL"; then
7937 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7957 if test -n "$MANIFEST_TOOL"; then
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7959 $as_echo "$MANIFEST_TOOL" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7967 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7968 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7969 # Extract the first word of "mt", so it can be a program name with args.
7970 set dummy mt; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$ac_ct_MANIFEST_TOOL"; then
7977 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7997 if test -n "$ac_ct_MANIFEST_TOOL"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7999 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8005 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8008 case $cross_compiling:$ac_tool_warned in
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012 ac_tool_warned=yes ;;
8014 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8017 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8020 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8022 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8023 if ${lt_cv_path_mainfest_tool+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 lt_cv_path_mainfest_tool=no
8027 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8028 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8029 cat conftest.err >&5
8030 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8031 lt_cv_path_mainfest_tool=yes
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8036 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8037 if test yes != "$lt_cv_path_mainfest_tool"; then
8047 rhapsody* | darwin*)
8048 if test -n "$ac_tool_prefix"; then
8049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$DSYMUTIL"; then
8057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8077 if test -n "$DSYMUTIL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8079 $as_echo "$DSYMUTIL" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8087 if test -z "$ac_cv_prog_DSYMUTIL"; then
8088 ac_ct_DSYMUTIL=$DSYMUTIL
8089 # Extract the first word of "dsymutil", so it can be a program name with args.
8090 set dummy dsymutil; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8094 $as_echo_n "(cached) " >&6
8096 if test -n "$ac_ct_DSYMUTIL"; then
8097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8117 if test -n "$ac_ct_DSYMUTIL"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8119 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8125 if test "x$ac_ct_DSYMUTIL" = x; then
8128 case $cross_compiling:$ac_tool_warned in
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8134 DSYMUTIL=$ac_ct_DSYMUTIL
8137 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8140 if test -n "$ac_tool_prefix"; then
8141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8142 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144 $as_echo_n "checking for $ac_word... " >&6; }
8145 if ${ac_cv_prog_NMEDIT+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 if test -n "$NMEDIT"; then
8149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 NMEDIT=$ac_cv_prog_NMEDIT
8169 if test -n "$NMEDIT"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8171 $as_echo "$NMEDIT" >&6; }
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8179 if test -z "$ac_cv_prog_NMEDIT"; then
8180 ac_ct_NMEDIT=$NMEDIT
8181 # Extract the first word of "nmedit", so it can be a program name with args.
8182 set dummy nmedit; ac_word=$2
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184 $as_echo_n "checking for $ac_word... " >&6; }
8185 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8186 $as_echo_n "(cached) " >&6
8188 if test -n "$ac_ct_NMEDIT"; then
8189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8209 if test -n "$ac_ct_NMEDIT"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8211 $as_echo "$ac_ct_NMEDIT" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8217 if test "x$ac_ct_NMEDIT" = x; then
8220 case $cross_compiling:$ac_tool_warned in
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned=yes ;;
8226 NMEDIT=$ac_ct_NMEDIT
8229 NMEDIT="$ac_cv_prog_NMEDIT"
8232 if test -n "$ac_tool_prefix"; then
8233 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_LIPO+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 if test -n "$LIPO"; then
8241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 LIPO=$ac_cv_prog_LIPO
8261 if test -n "$LIPO"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8263 $as_echo "$LIPO" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8271 if test -z "$ac_cv_prog_LIPO"; then
8273 # Extract the first word of "lipo", so it can be a program name with args.
8274 set dummy lipo; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8278 $as_echo_n "(cached) " >&6
8280 if test -n "$ac_ct_LIPO"; then
8281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_prog_ac_ct_LIPO="lipo"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8301 if test -n "$ac_ct_LIPO"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8303 $as_echo "$ac_ct_LIPO" >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8309 if test "x$ac_ct_LIPO" = x; then
8312 case $cross_compiling:$ac_tool_warned in
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8316 ac_tool_warned=yes ;;
8321 LIPO="$ac_cv_prog_LIPO"
8324 if test -n "$ac_tool_prefix"; then
8325 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8326 set dummy ${ac_tool_prefix}otool; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_OTOOL+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 if test -n "$OTOOL"; then
8333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 OTOOL=$ac_cv_prog_OTOOL
8353 if test -n "$OTOOL"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8355 $as_echo "$OTOOL" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8363 if test -z "$ac_cv_prog_OTOOL"; then
8365 # Extract the first word of "otool", so it can be a program name with args.
8366 set dummy otool; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 if test -n "$ac_ct_OTOOL"; then
8373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_ac_ct_OTOOL="otool"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8393 if test -n "$ac_ct_OTOOL"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8395 $as_echo "$ac_ct_OTOOL" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8401 if test "x$ac_ct_OTOOL" = x; then
8404 case $cross_compiling:$ac_tool_warned in
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8413 OTOOL="$ac_cv_prog_OTOOL"
8416 if test -n "$ac_tool_prefix"; then
8417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_OTOOL64+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 if test -n "$OTOOL64"; then
8425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 OTOOL64=$ac_cv_prog_OTOOL64
8445 if test -n "$OTOOL64"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8447 $as_echo "$OTOOL64" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8455 if test -z "$ac_cv_prog_OTOOL64"; then
8456 ac_ct_OTOOL64=$OTOOL64
8457 # Extract the first word of "otool64", so it can be a program name with args.
8458 set dummy otool64; ac_word=$2
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 $as_echo_n "checking for $ac_word... " >&6; }
8461 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8462 $as_echo_n "(cached) " >&6
8464 if test -n "$ac_ct_OTOOL64"; then
8465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_ac_ct_OTOOL64="otool64"
8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8485 if test -n "$ac_ct_OTOOL64"; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8487 $as_echo "$ac_ct_OTOOL64" >&6; }
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8493 if test "x$ac_ct_OTOOL64" = x; then
8496 case $cross_compiling:$ac_tool_warned in
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8500 ac_tool_warned=yes ;;
8502 OTOOL64=$ac_ct_OTOOL64
8505 OTOOL64="$ac_cv_prog_OTOOL64"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8535 $as_echo_n "checking for -single_module linker flag... " >&6; }
8536 if ${lt_cv_apple_cc_single_mod+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 lt_cv_apple_cc_single_mod=no
8540 if test -z "$LT_MULTI_MODULE"; then
8541 # By default we will add the -single_module flag. You can override
8542 # by either setting the environment variable LT_MULTI_MODULE
8543 # non-empty at configure time, or by adding -multi_module to the
8545 rm -rf libconftest.dylib*
8546 echo "int foo(void){return 1;}" > conftest.c
8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8548 -dynamiclib -Wl,-single_module conftest.c" >&5
8549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8552 # If there is a non-empty error log, and "single_module"
8553 # appears in it, assume the flag caused a linker warning
8554 if test -s conftest.err && $GREP single_module conftest.err; then
8555 cat conftest.err >&5
8556 # Otherwise, if the output was created with a 0 exit code from
8557 # the compiler, it worked.
8558 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8559 lt_cv_apple_cc_single_mod=yes
8561 cat conftest.err >&5
8563 rm -rf libconftest.dylib*
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8568 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8572 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8573 $as_echo_n "(cached) " >&6
8575 lt_cv_ld_exported_symbols_list=no
8576 save_LDFLAGS=$LDFLAGS
8577 echo "_main" > conftest.sym
8578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 lt_cv_ld_exported_symbols_list=yes
8593 lt_cv_ld_exported_symbols_list=no
8595 rm -f core conftest.err conftest.$ac_objext \
8596 conftest$ac_exeext conftest.$ac_ext
8597 LDFLAGS=$save_LDFLAGS
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8604 $as_echo_n "checking for -force_load linker flag... " >&6; }
8605 if ${lt_cv_ld_force_load+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 lt_cv_ld_force_load=no
8609 cat > conftest.c << _LT_EOF
8610 int forced_loaded() { return 2;}
8612 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8613 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8614 echo "$AR cru libconftest.a conftest.o" >&5
8615 $AR cru libconftest.a conftest.o 2>&5
8616 echo "$RANLIB libconftest.a" >&5
8617 $RANLIB libconftest.a 2>&5
8618 cat > conftest.c << _LT_EOF
8619 int main() { return 0;}
8621 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8622 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8624 if test -s conftest.err && $GREP force_load conftest.err; then
8625 cat conftest.err >&5
8626 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8627 lt_cv_ld_force_load=yes
8629 cat conftest.err >&5
8631 rm -f conftest.err libconftest.a conftest conftest.c
8632 rm -rf conftest.dSYM
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8636 $as_echo "$lt_cv_ld_force_load" >&6; }
8638 rhapsody* | darwin1.[012])
8639 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8641 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8642 darwin*) # darwin 5.x on
8643 # if running on 10.5 or later, the deployment target defaults
8644 # to the OS version, if on x86, and 10.4, the deployment
8645 # target defaults to 10.4. Don't you love it?
8646 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8647 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8648 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8650 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8652 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8656 if test yes = "$lt_cv_apple_cc_single_mod"; then
8657 _lt_dar_single_mod='$single_module'
8659 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8660 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8662 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8664 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8665 _lt_dsymutil='~$DSYMUTIL $lib || :'
8672 # func_munge_path_list VARIABLE PATH
8673 # -----------------------------------
8674 # VARIABLE is name of variable containing _space_ separated list of
8675 # directories to be munged by the contents of PATH, which is string
8678 # string "DIR[ DIR]" will be prepended to VARIABLE
8680 # string "DIR[ DIR]" will be appended to VARIABLE
8681 # "DIRP[:DIRP]::[DIRA:]DIRA"
8682 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8683 # "DIRA[ DIRA]" will be appended to VARIABLE
8685 # VARIABLE will be replaced by "DIR[ DIR]"
8686 func_munge_path_list ()
8692 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8695 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8698 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8699 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8707 for ac_header in dlfcn.h
8709 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8711 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_DLFCN_H 1
8725 # Check whether --enable-static was given.
8726 if test "${enable_static+set}" = set; then :
8727 enableval=$enable_static; p=${PACKAGE-default}
8729 yes) enable_static=yes ;;
8730 no) enable_static=no ;;
8733 # Look at the argument we got. We use all the common list separators.
8734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8735 for pkg in $enableval; do
8737 if test "X$pkg" = "X$p"; then
8755 # Check whether --with-pic was given.
8756 if test "${with_pic+set}" = set; then :
8757 withval=$with_pic; lt_p=${PACKAGE-default}
8759 yes|no) pic_mode=$withval ;;
8762 # Look at the argument we got. We use all the common list separators.
8763 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8764 for lt_pkg in $withval; do
8766 if test "X$lt_pkg" = "X$lt_p"; then
8791 # Check whether --enable-shared was given.
8792 if test "${enable_shared+set}" = set; then :
8793 enableval=$enable_shared; p=${PACKAGE-default}
8795 yes) enable_shared=yes ;;
8796 no) enable_shared=no ;;
8799 # Look at the argument we got. We use all the common list separators.
8800 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8801 for pkg in $enableval; do
8803 if test "X$pkg" = "X$p"; then
8824 # Check whether --enable-fast-install was given.
8825 if test "${enable_fast_install+set}" = set; then :
8826 enableval=$enable_fast_install; p=${PACKAGE-default}
8828 yes) enable_fast_install=yes ;;
8829 no) enable_fast_install=no ;;
8831 enable_fast_install=no
8832 # Look at the argument we got. We use all the common list separators.
8833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8834 for pkg in $enableval; do
8836 if test "X$pkg" = "X$p"; then
8837 enable_fast_install=yes
8844 enable_fast_install=yes
8854 shared_archive_member_spec=
8855 case $host,$enable_shared in
8856 power*-*-aix[5-9]*,yes)
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8858 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8860 # Check whether --with-aix-soname was given.
8861 if test "${with_aix_soname+set}" = set; then :
8862 withval=$with_aix_soname; case $withval in
8866 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8869 lt_cv_with_aix_soname=$with_aix_soname
8871 if ${lt_cv_with_aix_soname+:} false; then :
8872 $as_echo_n "(cached) " >&6
8874 lt_cv_with_aix_soname=aix
8877 with_aix_soname=$lt_cv_with_aix_soname
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8881 $as_echo "$with_aix_soname" >&6; }
8882 if test aix != "$with_aix_soname"; then
8883 # For the AIX way of multilib, we name the shared archive member
8884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8887 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8888 if test 64 = "${OBJECT_MODE-32}"; then
8889 shared_archive_member_spec=shr_64
8891 shared_archive_member_spec=shr
8909 # This can be used to rebuild libtool when needed
8910 LIBTOOL_DEPS=$ltmain
8912 # Always use our own libtool.
8913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8944 test -z "$LN_S" && LN_S="ln -s"
8959 if test -n "${ZSH_VERSION+set}"; then
8960 setopt NO_GLOB_SUBST
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8964 $as_echo_n "checking for objdir... " >&6; }
8965 if ${lt_cv_objdir+:} false; then :
8966 $as_echo_n "(cached) " >&6
8968 rm -f .libs 2>/dev/null
8969 mkdir .libs 2>/dev/null
8970 if test -d .libs; then
8973 # MS-DOS does not allow filenames that begin with a dot.
8976 rmdir .libs 2>/dev/null
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8979 $as_echo "$lt_cv_objdir" >&6; }
8980 objdir=$lt_cv_objdir
8986 cat >>confdefs.h <<_ACEOF
8987 #define LT_OBJDIR "$lt_cv_objdir/"
8995 # AIX sometimes has problems with the GCC collect2 program. For some
8996 # reason, if we set the COLLECT_NAMES environment variable, the problems
8997 # vanish in a puff of smoke.
8998 if test set != "${COLLECT_NAMES+set}"; then
9000 export COLLECT_NAMES
9007 can_build_shared=yes
9009 # All known linkers require a '.a' archive for static linking (except MSVC,
9010 # which needs '.lib').
9013 with_gnu_ld=$lt_cv_prog_gnu_ld
9018 # Set sane defaults for various variables
9019 test -z "$CC" && CC=cc
9020 test -z "$LTCC" && LTCC=$CC
9021 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9022 test -z "$LD" && LD=ld
9023 test -z "$ac_objext" && ac_objext=o
9025 func_cc_basename $compiler
9026 cc_basename=$func_cc_basename_result
9029 # Only perform the check for file, if the check method requires it
9030 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9031 case $deplibs_check_method in
9033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9035 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9036 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9037 $as_echo_n "(cached) " >&6
9041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9044 lt_save_MAGIC_CMD=$MAGIC_CMD
9045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9047 for ac_dir in $ac_dummy; do
9049 test -z "$ac_dir" && ac_dir=.
9050 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9052 if test -n "$file_magic_test_file"; then
9053 case $deplibs_check_method in
9055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9058 $EGREP "$file_magic_regex" > /dev/null; then
9063 *** Warning: the command libtool uses to detect shared libraries,
9064 *** $file_magic_cmd, produces output that libtool cannot recognize.
9065 *** The result is that libtool may fail to recognize shared libraries
9066 *** as such. This will affect the creation of libtool libraries that
9067 *** depend on shared libraries, but programs linked with such libtool
9068 *** libraries will work regardless of this problem. Nevertheless, you
9069 *** may want to report the problem to your system manager and/or to
9070 *** bug-libtool@gnu.org
9080 MAGIC_CMD=$lt_save_MAGIC_CMD
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if test -n "$MAGIC_CMD"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9088 $as_echo "$MAGIC_CMD" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9098 if test -z "$lt_cv_path_MAGIC_CMD"; then
9099 if test -n "$ac_tool_prefix"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9101 $as_echo_n "checking for file... " >&6; }
9102 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9103 $as_echo_n "(cached) " >&6
9107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9110 lt_save_MAGIC_CMD=$MAGIC_CMD
9111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9113 for ac_dir in $ac_dummy; do
9115 test -z "$ac_dir" && ac_dir=.
9116 if test -f "$ac_dir/file"; then
9117 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9118 if test -n "$file_magic_test_file"; then
9119 case $deplibs_check_method in
9121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9124 $EGREP "$file_magic_regex" > /dev/null; then
9129 *** Warning: the command libtool uses to detect shared libraries,
9130 *** $file_magic_cmd, produces output that libtool cannot recognize.
9131 *** The result is that libtool may fail to recognize shared libraries
9132 *** as such. This will affect the creation of libtool libraries that
9133 *** depend on shared libraries, but programs linked with such libtool
9134 *** libraries will work regardless of this problem. Nevertheless, you
9135 *** may want to report the problem to your system manager and/or to
9136 *** bug-libtool@gnu.org
9146 MAGIC_CMD=$lt_save_MAGIC_CMD
9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9152 if test -n "$MAGIC_CMD"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9154 $as_echo "$MAGIC_CMD" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9170 # Use C for the default configuration in the libtool script
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180 # Source file extension for C test sources.
9183 # Object file extension for compiled C test sources.
9187 # Code to be used in simple compile tests
9188 lt_simple_compile_test_code="int some_variable = 0;"
9190 # Code to be used in simple link tests
9191 lt_simple_link_test_code='int main(){return(0);}'
9199 # If no C compiler was specified, use CC.
9202 # If no C compiler flags were specified, use CFLAGS.
9203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9205 # Allow CC to be a program name with arguments.
9208 # Save the default compiler, since it gets overwritten when the other
9209 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9210 compiler_DEFAULT=$CC
9212 # save warnings/boilerplate of simple test code
9213 ac_outfile=conftest.$ac_objext
9214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9216 _lt_compiler_boilerplate=`cat conftest.err`
9219 ac_outfile=conftest.$ac_objext
9220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9222 _lt_linker_boilerplate=`cat conftest.err`
9227 ## There is no encapsulation within the following macros, do not change
9228 ## the running order or otherwise move them around unless you know exactly
9229 ## what you are doing...
9230 if test -n "$compiler"; then
9232 lt_prog_compiler_no_builtin_flag=
9234 if test yes = "$GCC"; then
9235 case $cc_basename in
9237 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9239 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9243 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9244 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9245 $as_echo_n "(cached) " >&6
9247 lt_cv_prog_compiler_rtti_exceptions=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_rtti_exceptions=yes
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9278 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9280 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9281 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9293 lt_prog_compiler_wl=
9294 lt_prog_compiler_pic=
9295 lt_prog_compiler_static=
9298 if test yes = "$GCC"; then
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_static='-static'
9304 # All AIX code is PIC.
9305 if test ia64 = "$host_cpu"; then
9306 # AIX 5 now supports IA64 processor
9307 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_pic='-fPIC'
9315 # see comment about AmigaOS4 .so support
9316 lt_prog_compiler_pic='-fPIC'
9319 # FIXME: we need at least 68020 code to build shared libraries, but
9320 # adding the '-m68020' flag to GCC prevents building anything better,
9322 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9328 # PIC is the default for these OSes.
9331 mingw* | cygwin* | pw32* | os2* | cegcc*)
9332 # This hack is so that the source file can tell whether it is being
9333 # built for inclusion in a dll (and should export symbols for example).
9334 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9335 # (--disable-auto-import) libraries
9336 lt_prog_compiler_pic='-DDLL_EXPORT'
9339 lt_prog_compiler_static='$wl-static'
9344 darwin* | rhapsody*)
9345 # PIC is the default on this platform
9346 # Common symbols not allowed in MH_DYLIB files
9347 lt_prog_compiler_pic='-fno-common'
9351 # PIC is the default for Haiku.
9352 # The "-static" flag exists, but is broken.
9353 lt_prog_compiler_static=
9357 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9358 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9359 # sets the default TLS model and affects inlining.
9365 lt_prog_compiler_pic='-fPIC'
9371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9372 # Instead, we relocate shared libraries at runtime.
9376 # Just because we use GCC doesn't mean we suddenly get shared libraries
9377 # on systems that don't support them.
9378 lt_prog_compiler_can_build_shared=no
9383 # QNX uses GNU C++, but need to define -shared option too, otherwise
9385 lt_prog_compiler_pic='-fPIC -shared'
9389 if test -d /usr/nec; then
9390 lt_prog_compiler_pic=-Kconform_pic
9395 lt_prog_compiler_pic='-fPIC'
9399 case $cc_basename in
9400 nvcc*) # Cuda Compiler Driver 2.2
9401 lt_prog_compiler_wl='-Xlinker '
9402 if test -n "$lt_prog_compiler_pic"; then
9403 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9408 # PORTME Check for flag to pass linker flags through the system compiler.
9411 lt_prog_compiler_wl='-Wl,'
9412 if test ia64 = "$host_cpu"; then
9413 # AIX 5 now supports IA64 processor
9414 lt_prog_compiler_static='-Bstatic'
9416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9420 darwin* | rhapsody*)
9421 # PIC is the default on this platform
9422 # Common symbols not allowed in MH_DYLIB files
9423 lt_prog_compiler_pic='-fno-common'
9424 case $cc_basename in
9426 # NAG Fortran compiler
9427 lt_prog_compiler_wl='-Wl,-Wl,,'
9428 lt_prog_compiler_pic='-PIC'
9429 lt_prog_compiler_static='-Bstatic'
9434 mingw* | cygwin* | pw32* | os2* | cegcc*)
9435 # This hack is so that the source file can tell whether it is being
9436 # built for inclusion in a dll (and should export symbols for example).
9437 lt_prog_compiler_pic='-DDLL_EXPORT'
9440 lt_prog_compiler_static='$wl-static'
9445 hpux9* | hpux10* | hpux11*)
9446 lt_prog_compiler_wl='-Wl,'
9447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9454 lt_prog_compiler_pic='+Z'
9457 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9458 lt_prog_compiler_static='$wl-a ${wl}archive'
9461 irix5* | irix6* | nonstopux*)
9462 lt_prog_compiler_wl='-Wl,'
9463 # PIC (with -KPIC) is the default.
9464 lt_prog_compiler_static='-non_shared'
9467 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9468 case $cc_basename in
9469 # old Intel for x86_64, which still supported -KPIC.
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-KPIC'
9473 lt_prog_compiler_static='-static'
9475 # icc used to be incompatible with GCC.
9476 # ICC 10 doesn't accept -KPIC any more.
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-fPIC'
9480 lt_prog_compiler_static='-static'
9482 # Lahey Fortran 8.1.
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='--shared'
9486 lt_prog_compiler_static='--static'
9489 # NAG Fortran compiler
9490 lt_prog_compiler_wl='-Wl,-Wl,,'
9491 lt_prog_compiler_pic='-PIC'
9492 lt_prog_compiler_static='-Bstatic'
9495 # Fabrice Bellard et al's Tiny C Compiler
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='-fPIC'
9498 lt_prog_compiler_static='-static'
9500 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9501 # Portland Group compilers (*not* the Pentium gcc compiler,
9502 # which looks to be a dead project)
9503 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-fpic'
9505 lt_prog_compiler_static='-Bstatic'
9508 lt_prog_compiler_wl='-Wl,'
9509 # All Alpha code is PIC.
9510 lt_prog_compiler_static='-non_shared'
9512 xl* | bgxl* | bgf* | mpixl*)
9513 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-qpic'
9516 lt_prog_compiler_static='-qstaticlink'
9519 case `$CC -V 2>&1 | sed 5q` in
9520 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9521 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9522 lt_prog_compiler_pic='-KPIC'
9523 lt_prog_compiler_static='-Bstatic'
9524 lt_prog_compiler_wl=''
9526 *Sun\ F* | *Sun*Fortran*)
9527 lt_prog_compiler_pic='-KPIC'
9528 lt_prog_compiler_static='-Bstatic'
9529 lt_prog_compiler_wl='-Qoption ld '
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9535 lt_prog_compiler_wl='-Wl,'
9537 *Intel*\ [CF]*Compiler*)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='-fPIC'
9540 lt_prog_compiler_static='-static'
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_pic='-fpic'
9545 lt_prog_compiler_static='-Bstatic'
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9558 # QNX uses GNU C++, but need to define -shared option too, otherwise
9560 lt_prog_compiler_pic='-fPIC -shared'
9563 osf3* | osf4* | osf5*)
9564 lt_prog_compiler_wl='-Wl,'
9565 # All OSF/1 code is PIC.
9566 lt_prog_compiler_static='-non_shared'
9570 lt_prog_compiler_static='-non_shared'
9574 lt_prog_compiler_pic='-KPIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 case $cc_basename in
9577 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9578 lt_prog_compiler_wl='-Qoption ld ';;
9580 lt_prog_compiler_wl='-Wl,';;
9585 lt_prog_compiler_wl='-Qoption ld '
9586 lt_prog_compiler_pic='-PIC'
9587 lt_prog_compiler_static='-Bstatic'
9590 sysv4 | sysv4.2uw2* | sysv4.3*)
9591 lt_prog_compiler_wl='-Wl,'
9592 lt_prog_compiler_pic='-KPIC'
9593 lt_prog_compiler_static='-Bstatic'
9597 if test -d /usr/nec; then
9598 lt_prog_compiler_pic='-Kconform_pic'
9599 lt_prog_compiler_static='-Bstatic'
9603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-Bstatic'
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_can_build_shared=no
9615 lt_prog_compiler_pic='-pic'
9616 lt_prog_compiler_static='-Bstatic'
9620 lt_prog_compiler_can_build_shared=no
9626 # For platforms that do not support PIC, -DPIC is meaningless:
9628 lt_prog_compiler_pic=
9631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9636 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9637 if ${lt_cv_prog_compiler_pic+:} false; then :
9638 $as_echo_n "(cached) " >&6
9640 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9643 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9644 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9647 # Check to make sure the PIC flag actually works.
9649 if test -n "$lt_prog_compiler_pic"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9651 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9652 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9653 $as_echo_n "(cached) " >&6
9655 lt_cv_prog_compiler_pic_works=no
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9659 # Insert the option either (1) after the last *FLAGS variable, or
9660 # (2) before a word containing "conftest.", or (3) at the end.
9661 # Note that $ac_compile itself does not contain backslashes and begins
9662 # with a dollar sign (not a hyphen), so the echo should work correctly.
9663 # The option is referenced via a variable to avoid confusing sed.
9664 lt_compile=`echo "$ac_compile" | $SED \
9665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667 -e 's:$: $lt_compiler_flag:'`
9668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9669 (eval "$lt_compile" 2>conftest.err)
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 if (exit $ac_status) && test -s "$ac_outfile"; then
9674 # The compiler can only warn and ignore the option if not recognized
9675 # So say no if there are warnings other than the usual output.
9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679 lt_cv_prog_compiler_pic_works=yes
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9686 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9688 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9689 case $lt_prog_compiler_pic in
9691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9694 lt_prog_compiler_pic=
9695 lt_prog_compiler_can_build_shared=no
9711 # Check to make sure the static flag actually works.
9713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9715 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9716 if ${lt_cv_prog_compiler_static_works+:} false; then :
9717 $as_echo_n "(cached) " >&6
9719 lt_cv_prog_compiler_static_works=no
9720 save_LDFLAGS=$LDFLAGS
9721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_static_works=yes
9735 lt_cv_prog_compiler_static_works=yes
9739 LDFLAGS=$save_LDFLAGS
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9743 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9745 if test yes = "$lt_cv_prog_compiler_static_works"; then
9748 lt_prog_compiler_static=
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9759 if ${lt_cv_prog_compiler_c_o+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 lt_cv_prog_compiler_c_o=no
9763 $RM -r conftest 2>/dev/null
9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769 lt_compiler_flag="-o out/conftest2.$ac_objext"
9770 # Insert the option either (1) after the last *FLAGS variable, or
9771 # (2) before a word containing "conftest.", or (3) at the end.
9772 # Note that $ac_compile itself does not contain backslashes and begins
9773 # with a dollar sign (not a hyphen), so the echo should work correctly.
9774 lt_compile=`echo "$ac_compile" | $SED \
9775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777 -e 's:$: $lt_compiler_flag:'`
9778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9779 (eval "$lt_compile" 2>out/conftest.err)
9781 cat out/conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9785 # The compiler can only warn and ignore the option if not recognized
9786 # So say no if there are warnings
9787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_c_o=yes
9795 # SGI C++ compiler will create directory out/ii_files/ for
9796 # template instantiation
9797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9798 $RM out/* && rmdir out
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9805 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9814 if ${lt_cv_prog_compiler_c_o+:} false; then :
9815 $as_echo_n "(cached) " >&6
9817 lt_cv_prog_compiler_c_o=no
9818 $RM -r conftest 2>/dev/null
9822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824 lt_compiler_flag="-o out/conftest2.$ac_objext"
9825 # Insert the option either (1) after the last *FLAGS variable, or
9826 # (2) before a word containing "conftest.", or (3) at the end.
9827 # Note that $ac_compile itself does not contain backslashes and begins
9828 # with a dollar sign (not a hyphen), so the echo should work correctly.
9829 lt_compile=`echo "$ac_compile" | $SED \
9830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9832 -e 's:$: $lt_compiler_flag:'`
9833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9834 (eval "$lt_compile" 2>out/conftest.err)
9836 cat out/conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9840 # The compiler can only warn and ignore the option if not recognized
9841 # So say no if there are warnings
9842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9845 lt_cv_prog_compiler_c_o=yes
9850 # SGI C++ compiler will create directory out/ii_files/ for
9851 # template instantiation
9852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9853 $RM out/* && rmdir out
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9860 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9865 hard_links=nottested
9866 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9867 # do not overwrite the value of need_locks provided by the user
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9869 $as_echo_n "checking if we can lock with hard links... " >&6; }
9872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9874 ln conftest.a conftest.b 2>&5 || hard_links=no
9875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9877 $as_echo "$hard_links" >&6; }
9878 if test no = "$hard_links"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9880 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9896 allow_undefined_flag=
9897 always_export_symbols=no
9899 archive_expsym_cmds=
9900 compiler_needs_object=no
9901 enable_shared_with_static_runtimes=no
9902 export_dynamic_flag_spec=
9903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9904 hardcode_automatic=no
9906 hardcode_direct_absolute=no
9907 hardcode_libdir_flag_spec=
9908 hardcode_libdir_separator=
9910 hardcode_shlibpath_var=unsupported
9912 link_all_deplibs=unknown
9915 old_archive_from_new_cmds=
9916 old_archive_from_expsyms_cmds=
9917 thread_safe_flag_spec=
9918 whole_archive_flag_spec=
9919 # include_expsyms should be a list of space-separated symbols to be *always*
9920 # included in the symbol list
9922 # exclude_expsyms can be an extended regexp of symbols to exclude
9923 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9924 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9925 # as well as any symbol that contains 'd'.
9926 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9928 # platforms (ab)use it in PIC code, but their linkers get confused if
9929 # the symbol is explicitly referenced. Since portable code cannot
9930 # rely on this symbol name, it's probably fine to never include it in
9931 # preloaded symbol tables.
9932 # Exclude shared library initialization/finalization symbols.
9933 extract_expsyms_cmds=
9936 cygwin* | mingw* | pw32* | cegcc*)
9937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9938 # When not using gcc, we currently assume that we are using
9939 # Microsoft Visual C++.
9940 if test yes != "$GCC"; then
9945 # we just hope/assume this is gcc and not c89 (= MSVC++)
9955 # On some targets, GNU ld is compatible enough with the native linker
9956 # that we're better off using the native interface for both.
9957 lt_use_gnu_ld_interface=no
9958 if test yes = "$with_gnu_ld"; then
9961 # The AIX port of GNU ld has always aspired to compatibility
9962 # with the native linker. However, as the warning in the GNU ld
9963 # block says, versions before 2.19.5* couldn't really create working
9964 # shared libraries, regardless of the interface used.
9965 case `$LD -v 2>&1` in
9966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9970 lt_use_gnu_ld_interface=yes
9975 lt_use_gnu_ld_interface=yes
9980 if test yes = "$lt_use_gnu_ld_interface"; then
9981 # If archive_cmds runs LD, not CC, wlarc should be empty
9984 # Set some defaults for GNU ld with shared library support. These
9985 # are reset later if shared libraries are not supported. Putting them
9986 # here allows them to be overridden if necessary.
9987 runpath_var=LD_RUN_PATH
9988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9989 export_dynamic_flag_spec='$wl--export-dynamic'
9990 # ancient GNU ld didn't support --whole-archive et. al.
9991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9992 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9994 whole_archive_flag_spec=
9996 supports_anon_versioning=no
9997 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9998 *GNU\ gold*) supports_anon_versioning=yes ;;
9999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10002 *\ 2.11.*) ;; # other 2.11 versions
10003 *) supports_anon_versioning=yes ;;
10006 # See if GNU ld supports shared libraries.
10009 # On AIX/PPC, the GNU linker is very broken
10010 if test ia64 != "$host_cpu"; then
10014 *** Warning: the GNU linker, at least up to release 2.19, is reported
10015 *** to be unable to reliably create shared libraries on AIX.
10016 *** Therefore, libtool is disabling shared libraries support. If you
10017 *** really care for shared libraries, you may want to install binutils
10018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10019 *** You will then need to restart the configuration process.
10028 # see comment about AmigaOS4 .so support
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030 archive_expsym_cmds=''
10033 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)'
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_minus_L=yes
10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042 allow_undefined_flag=unsupported
10043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10044 # support --undefined. This deserves some investigation. FIXME
10045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10051 cygwin* | mingw* | pw32* | cegcc*)
10052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10053 # as there is no search path for DLLs.
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 export_dynamic_flag_spec='$wl--export-all-symbols'
10056 allow_undefined_flag=unsupported
10057 always_export_symbols=no
10058 enable_shared_with_static_runtimes=yes
10059 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'
10060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10064 # If the export-symbols file already is a .def file, use it as
10065 # is; otherwise, prepend EXPORTS...
10066 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10067 cp $export_symbols $output_objdir/$soname.def;
10069 echo EXPORTS > $output_objdir/$soname.def;
10070 cat $export_symbols >> $output_objdir/$soname.def;
10072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10080 link_all_deplibs=yes
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_minus_L=yes
10086 allow_undefined_flag=unsupported
10088 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10091 $ECHO EXPORTS >> $output_objdir/$libname.def~
10092 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10094 emximp -o $lib $output_objdir/$libname.def'
10095 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10098 $ECHO EXPORTS >> $output_objdir/$libname.def~
10099 prefix_cmds="$SED"~
10100 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10101 prefix_cmds="$prefix_cmds -e 1d";
10103 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10104 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10106 emximp -o $lib $output_objdir/$libname.def'
10107 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10108 enable_shared_with_static_runtimes=yes
10113 hardcode_shlibpath_var=no
10114 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10115 export_dynamic_flag_spec='$wl-E'
10116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10117 # Instead, shared libraries are loaded at an image base (0x10000000 by
10118 # default) and relocated if they conflict, which is a slow very memory
10119 # consuming and fragmenting process. To avoid this, we pick a random,
10120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10123 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'
10126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10128 if test linux-dietlibc = "$host_os"; then
10129 case $cc_basename in
10130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10134 && test no = "$tmp_diet"
10136 tmp_addflag=' $pic_flag'
10137 tmp_sharedflag='-shared'
10138 case $cc_basename,$host_cpu in
10139 pgcc*) # Portland Group C compiler
10140 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'
10141 tmp_addflag=' $pic_flag'
10143 pgf77* | pgf90* | pgf95* | pgfortran*)
10144 # Portland Group f77 and f90 compilers
10145 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'
10146 tmp_addflag=' $pic_flag -Mnomain' ;;
10147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10148 tmp_addflag=' -i_dynamic' ;;
10149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10150 tmp_addflag=' -i_dynamic -nofor_main' ;;
10151 ifc* | ifort*) # Intel Fortran compiler
10152 tmp_addflag=' -nofor_main' ;;
10153 lf95*) # Lahey Fortran 8.1
10154 whole_archive_flag_spec=
10155 tmp_sharedflag='--shared' ;;
10156 nagfor*) # NAGFOR 5.3
10157 tmp_sharedflag='-Wl,-shared' ;;
10158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10159 tmp_sharedflag='-qmkshrobj'
10161 nvcc*) # Cuda Compiler Driver 2.2
10162 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'
10163 compiler_needs_object=yes
10166 case `$CC -V 2>&1 | sed 5q` in
10167 *Sun\ C*) # Sun C 5.9
10168 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'
10169 compiler_needs_object=yes
10170 tmp_sharedflag='-G' ;;
10171 *Sun\ F*) # Sun Fortran 8.3
10172 tmp_sharedflag='-G' ;;
10174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10176 if test yes = "$supports_anon_versioning"; then
10177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10179 echo "local: *; };" >> $output_objdir/$libname.ver~
10180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10183 case $cc_basename in
10185 export_dynamic_flag_spec='-rdynamic'
10187 xlf* | bgf* | bgxlf* | mpixlf*)
10188 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10189 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10191 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10192 if test yes = "$supports_anon_versioning"; then
10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195 echo "local: *; };" >> $output_objdir/$libname.ver~
10196 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10221 *** create shared libraries on Solaris systems. Therefore, libtool
10222 *** is disabling shared libraries support. We urge you to upgrade GNU
10223 *** binutils to release 2.9.1 or newer. Another option is to modify
10224 *** your PATH or compiler configuration so that the native linker is
10225 *** used, and then restart.
10228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10237 case `$LD -v 2>&1` in
10238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10243 *** reliably create shared libraries on SCO systems. Therefore, libtool
10244 *** is disabling shared libraries support. We urge you to upgrade GNU
10245 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10246 *** your PATH or compiler configuration so that the native linker is
10247 *** used, and then restart.
10252 # For security reasons, it is highly recommended that you always
10253 # use absolute paths for naming shared libraries, and exclude the
10254 # DT_RUNPATH tag from executables and libraries. But doing so
10255 # requires that you compile everything twice, which is a pain.
10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=yes
10271 hardcode_shlibpath_var=no
10275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10284 if test no = "$ld_shlibs"; then
10286 hardcode_libdir_flag_spec=
10287 export_dynamic_flag_spec=
10288 whole_archive_flag_spec=
10291 # PORTME fill in a description of your system's linker (not GNU ld)
10294 allow_undefined_flag=unsupported
10295 always_export_symbols=yes
10296 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'
10297 # Note: this linker hardcodes the directories in LIBPATH if there
10298 # are no directories specified by -L.
10299 hardcode_minus_L=yes
10300 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10301 # Neither direct hardcoding nor static linking is supported with a
10303 hardcode_direct=unsupported
10308 if test ia64 = "$host_cpu"; then
10309 # On IA64, the linker does run time linking by default, so we don't
10310 # have to do anything special.
10311 aix_use_runtimelinking=no
10312 exp_sym_flag='-Bexport'
10315 # If we're using GNU nm, then we don't want the "-C" option.
10316 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10317 # Without the "-l" option, or with the "-B" option, AIX nm treats
10318 # weak defined symbols like other global defined symbols, whereas
10319 # GNU nm marks them as "W".
10320 # While the 'weak' keyword is ignored in the Export File, we need
10321 # it in the Import File for the 'aix-soname' feature, so we have
10322 # to replace the "-B" option with "-P" for AIX nm.
10323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10324 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10326 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10328 aix_use_runtimelinking=no
10330 # Test if we are trying to use run time linking or normal
10331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10332 # have runtime linking enabled, and use it for executables.
10333 # For shared libraries, we enable/disable runtime linking
10334 # depending on the kind of the shared library created -
10335 # when "with_aix_soname,aix_use_runtimelinking" is:
10336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10337 # "aix,yes" lib.so shared, rtl:yes, for executables
10338 # lib.a static archive
10339 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10340 # lib.a(lib.so.V) shared, rtl:no, for executables
10341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10342 # lib.a(lib.so.V) shared, rtl:no
10343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10344 # lib.a static archive
10345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10346 for ld_flag in $LDFLAGS; do
10347 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10348 aix_use_runtimelinking=yes
10352 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10353 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10354 # so we don't have lib.a shared libs to link our executables.
10355 # We have to force runtime linking in this case.
10356 aix_use_runtimelinking=yes
10357 LDFLAGS="$LDFLAGS -Wl,-brtl"
10362 exp_sym_flag='-bexport'
10363 no_entry_flag='-bnoentry'
10366 # When large executables or shared objects are built, AIX ld can
10367 # have problems creating the table of contents. If linking a library
10368 # or program results in "error TOC overflow" add -mminimal-toc to
10369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10373 hardcode_direct=yes
10374 hardcode_direct_absolute=yes
10375 hardcode_libdir_separator=':'
10376 link_all_deplibs=yes
10377 file_list_spec='$wl-f,'
10378 case $with_aix_soname,$aix_use_runtimelinking in
10379 aix,*) ;; # traditional, no import file
10380 svr4,* | *,yes) # use import file
10381 # The Import File defines what to hardcode.
10383 hardcode_direct_absolute=no
10387 if test yes = "$GCC"; then
10388 case $host_os in aix4.[012]|aix4.[012].*)
10389 # We only want to do this on AIX 4.2 and lower, the check
10390 # below for broken collect2 doesn't work under 4.3+
10391 collect2name=`$CC -print-prog-name=collect2`
10392 if test -f "$collect2name" &&
10393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10395 # We have reworked collect2
10398 # We have old collect2
10399 hardcode_direct=unsupported
10400 # It fails to find uninstalled libraries when the uninstalled
10401 # path is not listed in the libpath. Setting hardcode_minus_L
10402 # to unsupported forces relinking
10403 hardcode_minus_L=yes
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_libdir_separator=
10409 shared_flag='-shared'
10410 if test yes = "$aix_use_runtimelinking"; then
10411 shared_flag="$shared_flag "'$wl-G'
10413 # Need to ensure runtime linking is disabled for the traditional
10414 # shared library, or the linker may eventually find shared libraries
10415 # /with/ Import File - we do not want to mix them.
10416 shared_flag_aix='-shared'
10417 shared_flag_svr4='-shared $wl-G'
10420 if test ia64 = "$host_cpu"; then
10421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422 # chokes on -Wl,-G. The following line is correct:
10425 if test yes = "$aix_use_runtimelinking"; then
10426 shared_flag='$wl-G'
10428 shared_flag='$wl-bM:SRE'
10430 shared_flag_aix='$wl-bM:SRE'
10431 shared_flag_svr4='$wl-G'
10435 export_dynamic_flag_spec='$wl-bexpall'
10436 # It seems that -bexpall does not export symbols beginning with
10437 # underscore (_), so it is better to generate a list of symbols to export.
10438 always_export_symbols=yes
10439 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10440 # Warning - without using the other runtime loading flags (-brtl),
10441 # -berok will link without error, but may produce a broken library.
10442 allow_undefined_flag='-berok'
10443 # Determine the default libpath from the value encoded in an
10444 # empty executable.
10445 if test set = "${lt_cv_aix_libpath+set}"; then
10446 aix_libpath=$lt_cv_aix_libpath
10448 if ${lt_cv_aix_libpath_+:} false; then :
10449 $as_echo_n "(cached) " >&6
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10462 if ac_fn_c_try_link "$LINENO"; then :
10464 lt_aix_libpath_sed='
10465 /Import File Strings/,/^$/ {
10467 s/^0 *\([^ ]*\) *$/\1/
10471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472 # Check for a 64-bit object if we didn't find anything.
10473 if test -z "$lt_cv_aix_libpath_"; then
10474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 if test -z "$lt_cv_aix_libpath_"; then
10480 lt_cv_aix_libpath_=/usr/lib:/lib
10485 aix_libpath=$lt_cv_aix_libpath_
10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10489 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10491 if test ia64 = "$host_cpu"; then
10492 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10493 allow_undefined_flag="-z nodefs"
10494 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"
10496 # Determine the default libpath from the value encoded in an
10497 # empty executable.
10498 if test set = "${lt_cv_aix_libpath+set}"; then
10499 aix_libpath=$lt_cv_aix_libpath
10501 if ${lt_cv_aix_libpath_+:} false; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10515 if ac_fn_c_try_link "$LINENO"; then :
10517 lt_aix_libpath_sed='
10518 /Import File Strings/,/^$/ {
10520 s/^0 *\([^ ]*\) *$/\1/
10524 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10525 # Check for a 64-bit object if we didn't find anything.
10526 if test -z "$lt_cv_aix_libpath_"; then
10527 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 if test -z "$lt_cv_aix_libpath_"; then
10533 lt_cv_aix_libpath_=/usr/lib:/lib
10538 aix_libpath=$lt_cv_aix_libpath_
10541 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10542 # Warning - without using the other run time loading flags,
10543 # -berok will link without error, but may produce a broken library.
10544 no_undefined_flag=' $wl-bernotok'
10545 allow_undefined_flag=' $wl-berok'
10546 if test yes = "$with_gnu_ld"; then
10547 # We only use this code for GNU lds that support --whole-archive.
10548 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10550 # Exported symbols can be pulled into shared objects from archives
10551 whole_archive_flag_spec='$convenience'
10553 archive_cmds_need_lc=yes
10554 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10555 # -brtl affects multiple linker settings, -berok does not and is overridden later
10556 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10557 if test svr4 != "$with_aix_soname"; then
10558 # This is similar to how AIX traditionally builds its shared libraries.
10559 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10561 if test aix != "$with_aix_soname"; then
10562 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10564 # used by -dlpreopen to get the symbols
10565 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10567 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10575 # see comment about AmigaOS4 .so support
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10577 archive_expsym_cmds=''
10580 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)'
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_minus_L=yes
10588 export_dynamic_flag_spec=-rdynamic
10591 cygwin* | mingw* | pw32* | cegcc*)
10592 # When not using gcc, we currently assume that we are using
10593 # Microsoft Visual C++.
10594 # hardcode_libdir_flag_spec is actually meaningless, as there is
10595 # no search path for DLLs.
10596 case $cc_basename in
10599 hardcode_libdir_flag_spec=' '
10600 allow_undefined_flag=unsupported
10601 always_export_symbols=yes
10603 # Tell ltmain to make .lib files, not .a files.
10605 # Tell ltmain to make .dll files, not .so files.
10607 # FIXME: Setting linknames here is a bad hack.
10608 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10610 cp "$export_symbols" "$output_objdir/$soname.def";
10611 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10613 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10615 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10617 # The linker will not automatically build a static lib if we build a DLL.
10618 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10619 enable_shared_with_static_runtimes=yes
10620 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10623 old_postinstall_cmds='chmod 644 $oldlib'
10624 postlink_cmds='lt_outputfile="@OUTPUT@"~
10625 lt_tool_outputfile="@TOOL_OUTPUT@"~
10626 case $lt_outputfile in
10629 lt_outputfile=$lt_outputfile.exe
10630 lt_tool_outputfile=$lt_tool_outputfile.exe
10633 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10634 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10635 $RM "$lt_outputfile.manifest";
10639 # Assume MSVC wrapper
10640 hardcode_libdir_flag_spec=' '
10641 allow_undefined_flag=unsupported
10642 # Tell ltmain to make .lib files, not .a files.
10644 # Tell ltmain to make .dll files, not .so files.
10646 # FIXME: Setting linknames here is a bad hack.
10647 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10648 # The linker will automatically build a .lib file if we build a DLL.
10649 old_archive_from_new_cmds='true'
10650 # FIXME: Should let the user specify the lib program.
10651 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10652 enable_shared_with_static_runtimes=yes
10657 darwin* | rhapsody*)
10660 archive_cmds_need_lc=no
10662 hardcode_automatic=yes
10663 hardcode_shlibpath_var=unsupported
10664 if test yes = "$lt_cv_ld_force_load"; then
10665 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\"`'
10668 whole_archive_flag_spec=''
10670 link_all_deplibs=yes
10671 allow_undefined_flag=$_lt_dar_allow_undefined
10672 case $cc_basename in
10673 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10674 *) _lt_dar_can_shared=$GCC ;;
10676 if test yes = "$_lt_dar_can_shared"; then
10677 output_verbose_link_cmd=func_echo_all
10678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10680 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"
10681 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"
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_shlibpath_var=no
10695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10696 # support. Future versions do this automatically, but an explicit c++rt0.o
10697 # does not break anything, and helps significantly (at the cost of a little
10700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10701 hardcode_libdir_flag_spec='-R$libdir'
10702 hardcode_direct=yes
10703 hardcode_shlibpath_var=no
10706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct=yes
10710 hardcode_minus_L=yes
10711 hardcode_shlibpath_var=no
10714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10715 freebsd* | dragonfly*)
10716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10717 hardcode_libdir_flag_spec='-R$libdir'
10718 hardcode_direct=yes
10719 hardcode_shlibpath_var=no
10723 if test yes = "$GCC"; then
10724 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10726 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10728 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10729 hardcode_libdir_separator=:
10730 hardcode_direct=yes
10732 # hardcode_minus_L: Not really in the search PATH,
10733 # but as the default location of the library.
10734 hardcode_minus_L=yes
10735 export_dynamic_flag_spec='$wl-E'
10739 if test yes,no = "$GCC,$with_gnu_ld"; then
10740 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10744 if test no = "$with_gnu_ld"; then
10745 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10746 hardcode_libdir_separator=:
10747 hardcode_direct=yes
10748 hardcode_direct_absolute=yes
10749 export_dynamic_flag_spec='$wl-E'
10750 # hardcode_minus_L: Not really in the search PATH,
10751 # but as the default location of the library.
10752 hardcode_minus_L=yes
10757 if test yes,no = "$GCC,$with_gnu_ld"; then
10760 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10779 # Older versions of the 11.00 compiler do not understand -b yet
10780 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10782 $as_echo_n "checking if $CC understands -b... " >&6; }
10783 if ${lt_cv_prog_compiler__b+:} false; then :
10784 $as_echo_n "(cached) " >&6
10786 lt_cv_prog_compiler__b=no
10787 save_LDFLAGS=$LDFLAGS
10788 LDFLAGS="$LDFLAGS -b"
10789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10791 # The linker can only warn and ignore the option if not recognized
10792 # So say no if there are warnings
10793 if test -s conftest.err; then
10794 # Append any errors to the config.log.
10795 cat conftest.err 1>&5
10796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10798 if diff conftest.exp conftest.er2 >/dev/null; then
10799 lt_cv_prog_compiler__b=yes
10802 lt_cv_prog_compiler__b=yes
10806 LDFLAGS=$save_LDFLAGS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10810 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10812 if test yes = "$lt_cv_prog_compiler__b"; then
10813 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10821 if test no = "$with_gnu_ld"; then
10822 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10823 hardcode_libdir_separator=:
10828 hardcode_shlibpath_var=no
10831 hardcode_direct=yes
10832 hardcode_direct_absolute=yes
10833 export_dynamic_flag_spec='$wl-E'
10835 # hardcode_minus_L: Not really in the search PATH,
10836 # but as the default location of the library.
10837 hardcode_minus_L=yes
10843 irix5* | irix6* | nonstopux*)
10844 if test yes = "$GCC"; then
10845 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'
10846 # Try to use the -exported_symbol ld option, if it does not
10847 # work, assume that -exports_file does not work either and
10848 # implicitly export all symbols.
10849 # This should be the same for all languages, so no per-tag cache variable.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10851 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10852 if ${lt_cv_irix_exported_symbol+:} false; then :
10853 $as_echo_n "(cached) " >&6
10855 save_LDFLAGS=$LDFLAGS
10856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int foo (void) { return 0; }
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 lt_cv_irix_exported_symbol=yes
10864 lt_cv_irix_exported_symbol=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LDFLAGS=$save_LDFLAGS
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10871 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10872 if test yes = "$lt_cv_irix_exported_symbol"; then
10873 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'
10876 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'
10877 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'
10879 archive_cmds_need_lc='no'
10880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10881 hardcode_libdir_separator=:
10883 link_all_deplibs=yes
10887 case $cc_basename in
10889 # Fabrice Bellard et al's Tiny C Compiler
10891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10902 hardcode_libdir_flag_spec='-R$libdir'
10903 hardcode_direct=yes
10904 hardcode_shlibpath_var=no
10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_direct=yes
10910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10911 hardcode_libdir_separator=:
10912 hardcode_shlibpath_var=no
10918 openbsd* | bitrig*)
10919 if test -f /usr/libexec/ld.so; then
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10922 hardcode_direct_absolute=yes
10923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10927 export_dynamic_flag_spec='$wl-E'
10929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10930 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10938 hardcode_libdir_flag_spec='-L$libdir'
10939 hardcode_minus_L=yes
10940 allow_undefined_flag=unsupported
10942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10945 $ECHO EXPORTS >> $output_objdir/$libname.def~
10946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10948 emximp -o $lib $output_objdir/$libname.def'
10949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10952 $ECHO EXPORTS >> $output_objdir/$libname.def~
10953 prefix_cmds="$SED"~
10954 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10955 prefix_cmds="$prefix_cmds -e 1d";
10957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10960 emximp -o $lib $output_objdir/$libname.def'
10961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10962 enable_shared_with_static_runtimes=yes
10966 if test yes = "$GCC"; then
10967 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10968 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'
10970 allow_undefined_flag=' -expect_unresolved \*'
10971 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'
10973 archive_cmds_need_lc='no'
10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10975 hardcode_libdir_separator=:
10978 osf4* | osf5*) # as osf3* with the addition of -msym flag
10979 if test yes = "$GCC"; then
10980 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10981 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'
10982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10984 allow_undefined_flag=' -expect_unresolved \*'
10985 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'
10986 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~
10987 $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'
10989 # Both c and cxx compiler support -rpath directly
10990 hardcode_libdir_flag_spec='-rpath $libdir'
10992 archive_cmds_need_lc='no'
10993 hardcode_libdir_separator=:
10997 no_undefined_flag=' -z defs'
10998 if test yes = "$GCC"; then
11000 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11002 $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'
11004 case `$CC -V 2>&1` in
11007 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11009 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11013 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11015 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11019 hardcode_libdir_flag_spec='-R$libdir'
11020 hardcode_shlibpath_var=no
11022 solaris2.[0-5] | solaris2.[0-5].*) ;;
11024 # The compiler driver will combine and reorder linker options,
11025 # but understands '-z linker_flag'. GCC discards it without '$wl',
11026 # but is careful enough not to reorder.
11027 # Supported since Solaris 2.6 (maybe 2.5.1?)
11028 if test yes = "$GCC"; then
11029 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11035 link_all_deplibs=yes
11039 if test sequent = "$host_vendor"; then
11040 # Use $CC to link under sequent, because it throws in some extra .o
11041 # files that make .init and .fini sections work.
11042 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11046 hardcode_libdir_flag_spec='-L$libdir'
11047 hardcode_direct=yes
11048 hardcode_minus_L=yes
11049 hardcode_shlibpath_var=no
11053 case $host_vendor in
11055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 hardcode_direct=yes # is this really true???
11059 ## LD is ld it makes a PLAMLIB
11060 ## CC just makes a GrossModule.
11061 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11062 reload_cmds='$CC -r -o $output$reload_objs'
11066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11070 runpath_var='LD_RUN_PATH'
11071 hardcode_shlibpath_var=no
11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076 hardcode_shlibpath_var=no
11077 export_dynamic_flag_spec='-Bexport'
11081 if test -d /usr/nec; then
11082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_shlibpath_var=no
11084 runpath_var=LD_RUN_PATH
11085 hardcode_runpath_var=yes
11090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11091 no_undefined_flag='$wl-z,text'
11092 archive_cmds_need_lc=no
11093 hardcode_shlibpath_var=no
11094 runpath_var='LD_RUN_PATH'
11096 if test yes = "$GCC"; then
11097 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11105 sysv5* | sco3.2v5* | sco5v6*)
11106 # Note: We CANNOT use -z defs as we might desire, because we do not
11107 # link with -lc, and that would cause any symbols used from libc to
11108 # always be unresolved, which means just about no library would
11109 # ever link correctly. If we're not using GNU ld we use -z text
11110 # though, which does catch some bad symbols but isn't as heavy-handed
11112 no_undefined_flag='$wl-z,text'
11113 allow_undefined_flag='$wl-z,nodefs'
11114 archive_cmds_need_lc=no
11115 hardcode_shlibpath_var=no
11116 hardcode_libdir_flag_spec='$wl-R,$libdir'
11117 hardcode_libdir_separator=':'
11118 link_all_deplibs=yes
11119 export_dynamic_flag_spec='$wl-Bexport'
11120 runpath_var='LD_RUN_PATH'
11122 if test yes = "$GCC"; then
11123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_libdir_flag_spec='-L$libdir'
11134 hardcode_shlibpath_var=no
11142 if test sni = "$host_vendor"; then
11144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11145 export_dynamic_flag_spec='$wl-Blargedynsym'
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11152 $as_echo "$ld_shlibs" >&6; }
11153 test no = "$ld_shlibs" && can_build_shared=no
11155 with_gnu_ld=$with_gnu_ld
11172 # Do we need to explicitly link libc?
11174 case "x$archive_cmds_need_lc" in
11176 # Assume -lc should be added
11177 archive_cmds_need_lc=yes
11179 if test yes,yes = "$GCC,$enable_shared"; then
11180 case $archive_cmds in
11182 # FIXME: we may have to deal with multi-command sequences.
11185 # Test whether the compiler implicitly links with -lc since on some
11186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11187 # to ld, don't add -lc before -lgcc.
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11189 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11190 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11191 $as_echo_n "(cached) " >&6
11194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11197 (eval $ac_compile) 2>&5
11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11200 test $ac_status = 0; } 2>conftest.err; then
11203 libobjs=conftest.$ac_objext
11205 wl=$lt_prog_compiler_wl
11206 pic_flag=$lt_prog_compiler_pic
11212 lt_save_allow_undefined_flag=$allow_undefined_flag
11213 allow_undefined_flag=
11214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11215 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218 test $ac_status = 0; }
11220 lt_cv_archive_cmds_need_lc=no
11222 lt_cv_archive_cmds_need_lc=yes
11224 allow_undefined_flag=$lt_save_allow_undefined_flag
11226 cat conftest.err 1>&5
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11232 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11233 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11394 if test yes = "$GCC"; then
11396 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11397 *) lt_awk_arg='/^libraries:/' ;;
11400 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11401 *) lt_sed_strip_eq='s|=/|/|g' ;;
11403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11404 case $lt_search_path_spec in
11406 # if the path contains ";" then we assume it to be the separator
11407 # otherwise default to the standard path separator (i.e. ":") - it is
11408 # assumed that no part of a normal pathname contains ";" but that should
11409 # okay in the real world where ";" in dirpaths is itself problematic.
11410 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11416 # Ok, now we have the path, separated by spaces, we can step through it
11417 # and add multilib dir if necessary...
11418 lt_tmp_lt_search_path_spec=
11419 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11420 # ...but if some path component already ends with the multilib dir we assume
11421 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11422 case "$lt_multi_os_dir; $lt_search_path_spec " in
11423 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11427 for lt_sys_path in $lt_search_path_spec; do
11428 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11430 elif test -n "$lt_multi_os_dir"; then
11431 test -d "$lt_sys_path" && \
11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11435 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11436 BEGIN {RS = " "; FS = "/|\n";} {
11439 for (lt_i = NF; lt_i > 0; lt_i--) {
11440 if ($lt_i != "" && $lt_i != ".") {
11441 if ($lt_i == "..") {
11444 if (lt_count == 0) {
11445 lt_foo = "/" $lt_i lt_foo;
11452 if (lt_foo != "") { lt_freq[lt_foo]++; }
11453 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11455 # AWK program above erroneously prepends '/' to C:/dos/paths
11458 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11459 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11461 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11465 library_names_spec=
11466 libname_spec='lib$name'
11470 postuninstall_cmds=
11474 shlibpath_overrides_runpath=unknown
11476 dynamic_linker="$host_os ld.so"
11477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11478 need_lib_prefix=unknown
11479 hardcode_into_libs=no
11481 # when you set need_version to no, make sure it does not cause -set_version
11482 # flags to be left without arguments
11483 need_version=unknown
11489 version_type=linux # correct to gnu/linux during the next big refactor
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11491 shlibpath_var=LIBPATH
11493 # AIX 3 has no versioning support, so we append a major version to the name.
11494 soname_spec='$libname$release$shared_ext$major'
11498 version_type=linux # correct to gnu/linux during the next big refactor
11501 hardcode_into_libs=yes
11502 if test ia64 = "$host_cpu"; then
11503 # AIX 5 supports IA64
11504 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11505 shlibpath_var=LD_LIBRARY_PATH
11507 # With GCC up to 2.95.x, collect2 would create an import file
11508 # for dependence libraries. The import file would start with
11509 # the line '#! .'. This would cause the generated library to
11510 # depend on '.', always an invalid library. This was fixed in
11511 # development snapshots of GCC prior to 3.0.
11513 aix4 | aix4.[01] | aix4.[01].*)
11514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11516 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11519 can_build_shared=no
11523 # Using Import Files as archive members, it is possible to support
11524 # filename-based versioning of shared library archives on AIX. While
11525 # this would work for both with and without runtime linking, it will
11526 # prevent static linking of such archives. So we do filename-based
11527 # shared library versioning with .so extension only, which is used
11528 # when both runtime linking and shared linking is enabled.
11529 # Unfortunately, runtime linking may impact performance, so we do
11530 # not want this to be the default eventually. Also, we use the
11531 # versioned .so libs for executables only if there is the -brtl
11532 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11533 # To allow for filename-based versioning support, we need to create
11534 # libNAME.so.V as an archive file, containing:
11535 # *) an Import File, referring to the versioned filename of the
11536 # archive as well as the shared archive member, telling the
11537 # bitwidth (32 or 64) of that shared object, and providing the
11538 # list of exported symbols of that shared object, eventually
11539 # decorated with the 'weak' keyword
11540 # *) the shared object with the F_LOADONLY flag set, to really avoid
11541 # it being seen by the linker.
11542 # At run time we better use the real file rather than another symlink,
11543 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11545 case $with_aix_soname,$aix_use_runtimelinking in
11546 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11547 # soname into executable. Probably we can add versioning support to
11548 # collect2, so additional links can be useful in future.
11549 aix,yes) # traditional libtool
11550 dynamic_linker='AIX unversionable lib.so'
11551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11552 # instead of lib<name>.a to let people know that these are not
11553 # typical AIX shared libraries.
11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556 aix,no) # traditional AIX only
11557 dynamic_linker='AIX lib.a(lib.so.V)'
11558 # We preserve .a as extension for shared libraries through AIX4.2
11559 # and later when we are not doing run time linking.
11560 library_names_spec='$libname$release.a $libname.a'
11561 soname_spec='$libname$release$shared_ext$major'
11563 svr4,*) # full svr4 only
11564 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11565 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11566 # We do not specify a path in Import Files, so LIBPATH fires.
11567 shlibpath_overrides_runpath=yes
11569 *,yes) # both, prefer svr4
11570 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11571 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11572 # unpreferred sharedlib libNAME.a needs extra handling
11573 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11574 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11575 # We do not specify a path in Import Files, so LIBPATH fires.
11576 shlibpath_overrides_runpath=yes
11578 *,no) # both, prefer aix
11579 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11580 library_names_spec='$libname$release.a $libname.a'
11581 soname_spec='$libname$release$shared_ext$major'
11582 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11583 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11584 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11587 shlibpath_var=LIBPATH
11594 # Since July 2007 AmigaOS4 officially supports .so libraries.
11595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599 library_names_spec='$libname.ixlibrary $libname.a'
11600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11601 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11607 library_names_spec='$libname$shared_ext'
11608 dynamic_linker="$host_os ld.so"
11609 shlibpath_var=LIBRARY_PATH
11613 version_type=linux # correct to gnu/linux during the next big refactor
11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11616 soname_spec='$libname$release$shared_ext$major'
11617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11621 # the default ld.so.conf also contains /usr/contrib/lib and
11622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11623 # libtool to hard-code these into programs
11626 cygwin* | mingw* | pw32* | cegcc*)
11627 version_type=windows
11632 case $GCC,$cc_basename in
11635 library_names_spec='$libname.dll.a'
11636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11637 postinstall_cmds='base_file=`basename \$file`~
11638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11639 dldir=$destdir/`dirname \$dlpath`~
11640 test -d \$dldir || mkdir -p \$dldir~
11641 $install_prog $dir/$dlname \$dldir/$dlname~
11642 chmod a+x \$dldir/$dlname~
11643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11647 dlpath=$dir/\$dldll~
11649 shlibpath_overrides_runpath=yes
11653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11654 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11659 # MinGW DLLs use traditional 'lib' prefix
11660 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11663 # pw32 DLLs use 'pw' prefix rather than 'lib'
11664 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11667 dynamic_linker='Win32 ld.exe'
11672 libname_spec='$name'
11673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11674 library_names_spec='$libname.dll.lib'
11678 sys_lib_search_path_spec=
11681 for lt_path in $LIB
11684 # Let DOS variable expansion print the short 8.3 style file name.
11685 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11686 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11689 # Convert to MSYS style.
11690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11693 # Convert to unix form, then to dos form, then back to unix form
11694 # but this time dos style (no spaces!) so that the unix form looks
11695 # like /cygdrive/c/PROGRA~1:/cygdr...
11696 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11697 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11701 sys_lib_search_path_spec=$LIB
11702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11703 # It is most probably a Windows format PATH.
11704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11708 # FIXME: find the short name or the path components, as spaces are
11709 # common. (e.g. "Program Files" -> "PROGRA~1")
11713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11714 postinstall_cmds='base_file=`basename \$file`~
11715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11716 dldir=$destdir/`dirname \$dlpath`~
11717 test -d \$dldir || mkdir -p \$dldir~
11718 $install_prog $dir/$dlname \$dldir/$dlname'
11719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11720 dlpath=$dir/\$dldll~
11722 shlibpath_overrides_runpath=yes
11723 dynamic_linker='Win32 link.exe'
11727 # Assume MSVC wrapper
11728 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11729 dynamic_linker='Win32 ld.exe'
11732 # FIXME: first we should search . and the directory the executable is in
11736 darwin* | rhapsody*)
11737 dynamic_linker="$host_os dyld"
11738 version_type=darwin
11741 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11742 soname_spec='$libname$release$major$shared_ext'
11743 shlibpath_overrides_runpath=yes
11744 shlibpath_var=DYLD_LIBRARY_PATH
11745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11752 version_type=linux # correct to gnu/linux during the next big refactor
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 soname_spec='$libname$release$shared_ext$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11760 freebsd* | dragonfly*)
11761 # DragonFly does not have aout. When/if they implement a new
11762 # versioning mechanism, adjust this.
11763 if test -x /usr/bin/objformat; then
11764 objformat=`/usr/bin/objformat`
11767 freebsd[23].*) objformat=aout ;;
11768 *) objformat=elf ;;
11771 version_type=freebsd-$objformat
11772 case $version_type in
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 soname_spec='$libname$release$shared_ext$major'
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11784 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=yes
11789 freebsd3.[01]* | freebsdelf3.[01]*)
11790 shlibpath_overrides_runpath=yes
11791 hardcode_into_libs=yes
11793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11795 shlibpath_overrides_runpath=no
11796 hardcode_into_libs=yes
11798 *) # from 4.6 on, and DragonFly
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11806 version_type=linux # correct to gnu/linux during the next big refactor
11809 dynamic_linker="$host_os runtime_loader"
11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811 soname_spec='$libname$release$shared_ext$major'
11812 shlibpath_var=LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11815 hardcode_into_libs=yes
11818 hpux9* | hpux10* | hpux11*)
11819 # Give a soname corresponding to the major version so that dld.sl refuses to
11820 # link against other versions.
11827 hardcode_into_libs=yes
11828 dynamic_linker="$host_os dld.so"
11829 shlibpath_var=LD_LIBRARY_PATH
11830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 if test 32 = "$HPUX_IA64_MODE"; then
11834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11835 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11843 hardcode_into_libs=yes
11844 dynamic_linker="$host_os dld.sl"
11845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854 dynamic_linker="$host_os dld.sl"
11855 shlibpath_var=SHLIB_PATH
11856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11862 postinstall_cmds='chmod 555 $lib'
11863 # or fails outright, so override atomically:
11864 install_override_mode=555
11868 version_type=linux # correct to gnu/linux during the next big refactor
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=no
11876 hardcode_into_libs=yes
11879 irix5* | irix6* | nonstopux*)
11881 nonstopux*) version_type=nonstopux ;;
11883 if test yes = "$lt_cv_prog_gnu_ld"; then
11884 version_type=linux # correct to gnu/linux during the next big refactor
11891 soname_spec='$libname$release$shared_ext$major'
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11894 irix5* | nonstopux*)
11895 libsuff= shlibsuff=
11898 case $LD in # libtool.m4 will add one of these switches to LD
11899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11900 libsuff= shlibsuff= libmagic=32-bit;;
11901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11902 libsuff=32 shlibsuff=N32 libmagic=N32;;
11903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11905 *) libsuff= shlibsuff= libmagic=never-match;;
11909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11912 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11913 hardcode_into_libs=yes
11916 # No shared lib support for Linux oldld, aout, or coff.
11917 linux*oldld* | linux*aout* | linux*coff*)
11922 version_type=none # Android doesn't support versioned libraries.
11925 library_names_spec='$libname$release$shared_ext'
11926 soname_spec='$libname$release$shared_ext'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=yes
11931 # This implies no fast_install, which is unacceptable.
11932 # Some rework will be needed to allow for fast_install
11933 # before this can be enabled.
11934 hardcode_into_libs=yes
11936 dynamic_linker='Android linker'
11937 # Don't embed -rpath directories since the linker doesn't support them.
11938 hardcode_libdir_flag_spec='-L$libdir'
11941 # This must be glibc/ELF.
11942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11943 version_type=linux # correct to gnu/linux during the next big refactor
11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947 soname_spec='$libname$release$shared_ext$major'
11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=no
11952 # Some binutils ld are patched to set DT_RUNPATH
11953 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11954 $as_echo_n "(cached) " >&6
11956 lt_cv_shlibpath_overrides_runpath=no
11957 save_LDFLAGS=$LDFLAGS
11958 save_libdir=$libdir
11959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11974 lt_cv_shlibpath_overrides_runpath=yes
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LDFLAGS=$save_LDFLAGS
11980 libdir=$save_libdir
11984 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11986 # This implies no fast_install, which is unacceptable.
11987 # Some rework will be needed to allow for fast_install
11988 # before this can be enabled.
11989 hardcode_into_libs=yes
11991 # Ideally, we could use ldconfig to report *all* directores which are
11992 # searched for libraries, however this is still not possible. Aside from not
11993 # being certain /sbin/ldconfig is available, command
11994 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11995 # even though it is searched at run-time. Try to do the best guess by
11996 # appending ld.so.conf contents (and includes) to the search path.
11997 if test -f /etc/ld.so.conf; then
11998 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' ' '`
11999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12002 # We used to test for /lib/ld.so.1 and disable shared libraries on
12003 # powerpc, because MkLinux only supported shared libraries with the
12004 # GNU dynamic linker. Since this was broken with cross compilers,
12005 # most powerpc-linux boxes support dynamic linking these days and
12006 # people can always --disable-shared, the test was removed, and we
12007 # assume the GNU/Linux dynamic linker is in use.
12008 dynamic_linker='GNU/Linux ld.so'
12015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018 dynamic_linker='NetBSD (a.out) ld.so'
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12021 soname_spec='$libname$release$shared_ext$major'
12022 dynamic_linker='NetBSD ld.elf_so'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=yes
12026 hardcode_into_libs=yes
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=no
12044 hardcode_into_libs=yes
12045 dynamic_linker='ldqnx.so'
12048 openbsd* | bitrig*)
12050 sys_lib_dlsearch_path_spec=/usr/lib
12052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12064 libname_spec='$name'
12065 version_type=windows
12069 # OS/2 can only load a DLL with a base name of 8 characters or less.
12070 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12071 v=$($ECHO $release$versuffix | tr -d .-);
12072 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12073 $ECHO $n$v`$shared_ext'
12074 library_names_spec='${libname}_dll.$libext'
12075 dynamic_linker='OS/2 ld.exe'
12076 shlibpath_var=BEGINLIBPATH
12077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079 postinstall_cmds='base_file=`basename \$file`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname~
12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12089 dlpath=$dir/\$dldll~
12093 osf3* | osf4* | osf5*)
12097 soname_spec='$libname$release$shared_ext$major'
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12109 version_type=linux # correct to gnu/linux during the next big refactor
12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12113 soname_spec='$libname$release$shared_ext$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=yes
12116 hardcode_into_libs=yes
12117 # ldd complains unless libraries are executable
12118 postinstall_cmds='chmod +x $lib'
12123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 shlibpath_overrides_runpath=yes
12127 if test yes = "$with_gnu_ld"; then
12134 version_type=linux # correct to gnu/linux during the next big refactor
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12138 case $host_vendor in
12140 shlibpath_overrides_runpath=no
12142 runpath_var=LD_RUN_PATH
12150 shlibpath_overrides_runpath=no
12151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12157 if test -d /usr/nec; then
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12160 soname_spec='$libname$shared_ext.$major'
12161 shlibpath_var=LD_LIBRARY_PATH
12165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 if test yes = "$with_gnu_ld"; then
12175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12184 sys_lib_dlsearch_path_spec='/usr/lib'
12188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12189 version_type=linux # correct to gnu/linux during the next big refactor
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 shlibpath_overrides_runpath=no
12195 hardcode_into_libs=yes
12199 version_type=linux # correct to gnu/linux during the next big refactor
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12210 $as_echo "$dynamic_linker" >&6; }
12211 test no = "$dynamic_linker" && can_build_shared=no
12213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12214 if test yes = "$GCC"; then
12215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12218 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12219 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12222 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12223 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12226 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12227 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12229 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12230 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12232 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12233 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12332 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12334 if test -n "$hardcode_libdir_flag_spec" ||
12335 test -n "$runpath_var" ||
12336 test yes = "$hardcode_automatic"; then
12338 # We can hardcode non-existent directories.
12339 if test no != "$hardcode_direct" &&
12340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12341 # have to relink, otherwise we might link with an installed library
12342 # when we should be linking with a yet-to-be-installed one
12343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12344 test no != "$hardcode_minus_L"; then
12345 # Linking always hardcodes the temporary library directory.
12346 hardcode_action=relink
12348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12349 hardcode_action=immediate
12352 # We cannot hardcode anything, or else we can only hardcode existing
12354 hardcode_action=unsupported
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12357 $as_echo "$hardcode_action" >&6; }
12359 if test relink = "$hardcode_action" ||
12360 test yes = "$inherit_rpath"; then
12361 # Fast installation is not supported
12362 enable_fast_install=no
12363 elif test yes = "$shlibpath_overrides_runpath" ||
12364 test no = "$enable_shared"; then
12365 # Fast installation is not necessary
12366 enable_fast_install=needless
12374 if test yes != "$enable_dlopen"; then
12375 enable_dlopen=unknown
12376 enable_dlopen_self=unknown
12377 enable_dlopen_self_static=unknown
12384 lt_cv_dlopen=load_add_on
12386 lt_cv_dlopen_self=yes
12389 mingw* | pw32* | cegcc*)
12390 lt_cv_dlopen=LoadLibrary
12395 lt_cv_dlopen=dlopen
12400 # if libdl is installed we need to link against it
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12402 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12403 if ${ac_cv_lib_dl_dlopen+:} false; then :
12404 $as_echo_n "(cached) " >&6
12406 ac_check_lib_save_LIBS=$LIBS
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12426 if ac_fn_c_try_link "$LINENO"; then :
12427 ac_cv_lib_dl_dlopen=yes
12429 ac_cv_lib_dl_dlopen=no
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12433 LIBS=$ac_check_lib_save_LIBS
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12436 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12437 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12438 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12443 lt_cv_dlopen_self=yes
12450 # Don't try to run any link tests for TPF. We know it's impossible
12451 # because TPF is a cross-compiler, and we know how we open DSOs.
12452 lt_cv_dlopen=dlopen
12454 lt_cv_dlopen_self=no
12458 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12459 if test "x$ac_cv_func_shl_load" = xyes; then :
12460 lt_cv_dlopen=shl_load
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12464 if ${ac_cv_lib_dld_shl_load+:} false; then :
12465 $as_echo_n "(cached) " >&6
12467 ac_check_lib_save_LIBS=$LIBS
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12482 return shl_load ();
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_dld_shl_load=yes
12490 ac_cv_lib_dld_shl_load=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12497 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12498 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12499 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12501 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12502 if test "x$ac_cv_func_dlopen" = xyes; then :
12503 lt_cv_dlopen=dlopen
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12506 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12507 if ${ac_cv_lib_dl_dlopen+:} false; then :
12508 $as_echo_n "(cached) " >&6
12510 ac_check_lib_save_LIBS=$LIBS
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_lib_dl_dlopen=yes
12533 ac_cv_lib_dl_dlopen=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12540 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12541 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12542 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12545 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12546 if ${ac_cv_lib_svld_dlopen+:} false; then :
12547 $as_echo_n "(cached) " >&6
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lsvld $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 ac_cv_lib_svld_dlopen=yes
12572 ac_cv_lib_svld_dlopen=no
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12579 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12580 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12584 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12585 if ${ac_cv_lib_dld_dld_link+:} false; then :
12586 $as_echo_n "(cached) " >&6
12588 ac_check_lib_save_LIBS=$LIBS
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12593 /* Override any GCC internal prototype to avoid an error.
12594 Use char because int might match the return type of a GCC
12595 builtin and then its argument prototype would still apply. */
12603 return dld_link ();
12608 if ac_fn_c_try_link "$LINENO"; then :
12609 ac_cv_lib_dld_dld_link=yes
12611 ac_cv_lib_dld_dld_link=no
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LIBS=$ac_check_lib_save_LIBS
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12618 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12619 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12620 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12641 if test no = "$lt_cv_dlopen"; then
12647 case $lt_cv_dlopen in
12649 save_CPPFLAGS=$CPPFLAGS
12650 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12652 save_LDFLAGS=$LDFLAGS
12653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12656 LIBS="$lt_cv_dlopen_libs $LIBS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12659 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12660 if ${lt_cv_dlopen_self+:} false; then :
12661 $as_echo_n "(cached) " >&6
12663 if test yes = "$cross_compiling"; then :
12664 lt_cv_dlopen_self=cross
12666 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12667 lt_status=$lt_dlunknown
12668 cat > conftest.$ac_ext <<_LT_EOF
12669 #line $LINENO "configure"
12670 #include "confdefs.h"
12679 # define LT_DLGLOBAL RTLD_GLOBAL
12682 # define LT_DLGLOBAL DL_GLOBAL
12684 # define LT_DLGLOBAL 0
12688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12689 find out it does not work in some platform. */
12690 #ifndef LT_DLLAZY_OR_NOW
12692 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12695 # define LT_DLLAZY_OR_NOW DL_LAZY
12698 # define LT_DLLAZY_OR_NOW RTLD_NOW
12701 # define LT_DLLAZY_OR_NOW DL_NOW
12703 # define LT_DLLAZY_OR_NOW 0
12710 /* When -fvisibility=hidden is used, assume the code has been annotated
12711 correspondingly for the symbols needed. */
12712 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12713 int fnord () __attribute__((visibility("default")));
12716 int fnord () { return 42; }
12719 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12720 int status = $lt_dlunknown;
12724 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12727 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12728 else puts (dlerror ());
12730 /* dlclose (self); */
12738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12739 (eval $ac_link) 2>&5
12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12743 (./conftest; exit; ) >&5 2>/dev/null
12745 case x$lt_status in
12746 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12747 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12748 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12751 # compilation failed
12752 lt_cv_dlopen_self=no
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12760 $as_echo "$lt_cv_dlopen_self" >&6; }
12762 if test yes = "$lt_cv_dlopen_self"; then
12763 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12765 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12766 if ${lt_cv_dlopen_self_static+:} false; then :
12767 $as_echo_n "(cached) " >&6
12769 if test yes = "$cross_compiling"; then :
12770 lt_cv_dlopen_self_static=cross
12772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12773 lt_status=$lt_dlunknown
12774 cat > conftest.$ac_ext <<_LT_EOF
12775 #line $LINENO "configure"
12776 #include "confdefs.h"
12785 # define LT_DLGLOBAL RTLD_GLOBAL
12788 # define LT_DLGLOBAL DL_GLOBAL
12790 # define LT_DLGLOBAL 0
12794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12795 find out it does not work in some platform. */
12796 #ifndef LT_DLLAZY_OR_NOW
12798 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12801 # define LT_DLLAZY_OR_NOW DL_LAZY
12804 # define LT_DLLAZY_OR_NOW RTLD_NOW
12807 # define LT_DLLAZY_OR_NOW DL_NOW
12809 # define LT_DLLAZY_OR_NOW 0
12816 /* When -fvisibility=hidden is used, assume the code has been annotated
12817 correspondingly for the symbols needed. */
12818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12819 int fnord () __attribute__((visibility("default")));
12822 int fnord () { return 42; }
12825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12826 int status = $lt_dlunknown;
12830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12834 else puts (dlerror ());
12836 /* dlclose (self); */
12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12845 (eval $ac_link) 2>&5
12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12849 (./conftest; exit; ) >&5 2>/dev/null
12851 case x$lt_status in
12852 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12853 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12854 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12857 # compilation failed
12858 lt_cv_dlopen_self_static=no
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12866 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12869 CPPFLAGS=$save_CPPFLAGS
12870 LDFLAGS=$save_LDFLAGS
12875 case $lt_cv_dlopen_self in
12876 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12877 *) enable_dlopen_self=unknown ;;
12880 case $lt_cv_dlopen_self_static in
12881 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12882 *) enable_dlopen_self_static=unknown ;;
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12905 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12906 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12907 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12908 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12912 # FIXME - insert some real tests, host_os isn't really good enough
12915 if test -n "$STRIP"; then
12916 striplib="$STRIP -x"
12917 old_striplib="$STRIP -S"
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12919 $as_echo "yes" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922 $as_echo "no" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12943 # Report what library types will actually be built
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12947 $as_echo "$can_build_shared" >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12950 $as_echo_n "checking whether to build shared libraries... " >&6; }
12951 test no = "$can_build_shared" && enable_shared=no
12953 # On AIX, shared libraries and static libraries use the same namespace, and
12954 # are all built from PIC.
12957 test yes = "$enable_shared" && enable_static=no
12958 if test -n "$RANLIB"; then
12959 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12960 postinstall_cmds='$RANLIB $lib'
12965 if test ia64 != "$host_cpu"; then
12966 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12967 yes,aix,yes) ;; # shared object as lib.so file only
12968 yes,svr4,*) ;; # shared object as lib.so archive member only
12969 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12975 $as_echo "$enable_shared" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12978 $as_echo_n "checking whether to build static libraries... " >&6; }
12979 # Make sure either enable_shared or enable_static is yes.
12980 test yes = "$enable_shared" || enable_static=yes
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12982 $as_echo "$enable_static" >&6; }
12989 ac_cpp='$CPP $CPPFLAGS'
12990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13010 ac_config_commands="$ac_config_commands libtool"
13015 # Only expand once:
13022 if test -n "$GCC"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13024 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
13025 if ${gl_cv_cc_vis_werror+:} false; then :
13026 $as_echo_n "(cached) " >&6
13028 gl_save_CFLAGS="$CFLAGS"
13029 CFLAGS="$CFLAGS -Werror"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13041 if ac_fn_c_try_compile "$LINENO"; then :
13042 gl_cv_cc_vis_werror=yes
13044 gl_cv_cc_vis_werror=no
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 CFLAGS="$gl_save_CFLAGS"
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13051 $as_echo "$gl_cv_cc_vis_werror" >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13053 $as_echo_n "checking for simple visibility declarations... " >&6; }
13054 if ${gl_cv_cc_visibility+:} false; then :
13055 $as_echo_n "(cached) " >&6
13057 gl_save_CFLAGS="$CFLAGS"
13058 CFLAGS="$CFLAGS -fvisibility=hidden"
13059 if test $gl_cv_cc_vis_werror = yes; then
13060 CFLAGS="$CFLAGS -Werror"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13065 extern __attribute__((__visibility__("default"))) int exportedvar;
13066 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13067 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13068 void dummyfunc (void) {}
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 gl_cv_cc_visibility=yes
13081 gl_cv_cc_visibility=no
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 CFLAGS="$gl_save_CFLAGS"
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13088 $as_echo "$gl_cv_cc_visibility" >&6; }
13089 if test $gl_cv_cc_visibility = yes; then
13090 CFLAG_VISIBILITY="-fvisibility=hidden"
13097 cat >>confdefs.h <<_ACEOF
13098 #define HAVE_VISIBILITY $HAVE_VISIBILITY
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13103 $as_echo_n "checking for ANSI C header files... " >&6; }
13104 if ${ac_cv_header_stdc+:} false; then :
13105 $as_echo_n "(cached) " >&6
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 #include <stdlib.h>
13110 #include <stdarg.h>
13111 #include <string.h>
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 ac_cv_header_stdc=yes
13125 ac_cv_header_stdc=no
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 if test $ac_cv_header_stdc = yes; then
13130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 #include <string.h>
13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137 $EGREP "memchr" >/dev/null 2>&1; then :
13140 ac_cv_header_stdc=no
13146 if test $ac_cv_header_stdc = yes; then
13147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 #include <stdlib.h>
13153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13154 $EGREP "free" >/dev/null 2>&1; then :
13157 ac_cv_header_stdc=no
13163 if test $ac_cv_header_stdc = yes; then
13164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13165 if test "$cross_compiling" = yes; then :
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #include <stdlib.h>
13172 #if ((' ' & 0x0FF) == 0x020)
13173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13176 # define ISLOWER(c) \
13177 (('a' <= (c) && (c) <= 'i') \
13178 || ('j' <= (c) && (c) <= 'r') \
13179 || ('s' <= (c) && (c) <= 'z'))
13180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13188 for (i = 0; i < 256; i++)
13189 if (XOR (islower (i), ISLOWER (i))
13190 || toupper (i) != TOUPPER (i))
13195 if ac_fn_c_try_run "$LINENO"; then :
13198 ac_cv_header_stdc=no
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13201 conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13207 $as_echo "$ac_cv_header_stdc" >&6; }
13208 if test $ac_cv_header_stdc = yes; then
13210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13215 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13216 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13217 $as_echo_n "(cached) " >&6
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 #include <sys/types.h>
13225 return makedev(0, 0);
13230 if ac_fn_c_try_link "$LINENO"; then :
13231 ac_cv_header_sys_types_h_makedev=yes
13233 ac_cv_header_sys_types_h_makedev=no
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13240 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13242 if test $ac_cv_header_sys_types_h_makedev = no; then
13243 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13244 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13246 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13252 if test $ac_cv_header_sys_mkdev_h = no; then
13253 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13254 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13256 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13265 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13266 if ${ac_cv_header_sys_wait_h+:} false; then :
13267 $as_echo_n "(cached) " >&6
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 #include <sys/types.h>
13272 #include <sys/wait.h>
13273 #ifndef WEXITSTATUS
13274 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13277 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13285 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13290 if ac_fn_c_try_compile "$LINENO"; then :
13291 ac_cv_header_sys_wait_h=yes
13293 ac_cv_header_sys_wait_h=no
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13298 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13299 if test $ac_cv_header_sys_wait_h = yes; then
13301 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13305 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
13307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13310 cat >>confdefs.h <<_ACEOF
13311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13318 for ac_header in utime.h wchar.h wctype.h
13320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13321 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13323 cat >>confdefs.h <<_ACEOF
13324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331 for ac_header in getopt.h err.h xlocale.h
13333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13336 cat >>confdefs.h <<_ACEOF
13337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13344 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
13346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13357 if test "$enable_zlib" != "no"; then
13358 for ac_header in zlib.h
13360 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13361 if test "x$ac_cv_header_zlib_h" = xyes; then :
13362 cat >>confdefs.h <<_ACEOF
13363 #define HAVE_ZLIB_H 1
13371 if test "$enable_bzlib" != "no"; then
13372 for ac_header in bzlib.h
13374 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13375 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_BZLIB_H 1
13385 if test "$enable_xzlib" != "no"; then
13386 for ac_header in lzma.h
13388 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13389 if test "x$ac_cv_header_lzma_h" = xyes; then :
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_LZMA_H 1
13399 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13401 if test "x$ac_cv_type_sig_t" = xyes; then :
13403 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
13408 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13409 if test "x$ac_cv_type_off_t" = xyes; then :
13413 cat >>confdefs.h <<_ACEOF
13414 #define off_t long int
13419 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13420 if test "x$ac_cv_type_size_t" = xyes; then :
13424 cat >>confdefs.h <<_ACEOF
13425 #define size_t unsigned int
13430 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13431 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_STRUCT_STAT_ST_RDEV 1
13441 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13443 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13453 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13454 if ${ac_cv_struct_tm+:} false; then :
13455 $as_echo_n "(cached) " >&6
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <sys/types.h>
13466 int *p = &tm.tm_sec;
13472 if ac_fn_c_try_compile "$LINENO"; then :
13473 ac_cv_struct_tm=time.h
13475 ac_cv_struct_tm=sys/time.h
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13480 $as_echo "$ac_cv_struct_tm" >&6; }
13481 if test $ac_cv_struct_tm = sys/time.h; then
13483 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13487 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13488 #include <$ac_cv_struct_tm>
13491 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_STRUCT_TM_TM_ZONE 1
13500 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13502 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13505 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13507 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_DECL_TZNAME $ac_have_decl
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13518 $as_echo_n "checking for tzname... " >&6; }
13519 if ${ac_cv_var_tzname+:} false; then :
13520 $as_echo_n "(cached) " >&6
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13525 #if !HAVE_DECL_TZNAME
13526 extern char *tzname[];
13532 return tzname[0][0];
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 ac_cv_var_tzname=yes
13540 ac_cv_var_tzname=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13546 $as_echo "$ac_cv_var_tzname" >&6; }
13547 if test $ac_cv_var_tzname = yes; then
13549 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13555 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13556 if ${ac_cv_struct_tm_zone+:} false; then :
13557 $as_echo_n "(cached) " >&6
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 #include <sys/types.h>
13562 #include <$ac_cv_struct_tm>
13566 struct tm tm; tm.tm_zone;
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572 ac_cv_struct_tm_zone=yes
13574 ac_cv_struct_tm_zone=no
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13579 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13580 if test "$ac_cv_struct_tm_zone" = yes; then
13582 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13586 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13587 # consider it declared and we won't give our own extern.
13588 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13590 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_DECL_TZNAME $ac_have_decl
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13601 $as_echo_n "checking for tzname... " >&6; }
13602 if ${ac_cv_var_tzname+:} false; then :
13603 $as_echo_n "(cached) " >&6
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13608 #if !HAVE_DECL_TZNAME
13609 extern char *tzname[];
13614 return tzname[0][0];
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_var_tzname=yes
13622 ac_cv_var_tzname=no
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13628 $as_echo "$ac_cv_var_tzname" >&6; }
13629 if test $ac_cv_var_tzname = yes; then
13631 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13636 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13637 if ${ac_cv_struct_tm_isdst+:} false; then :
13638 $as_echo_n "(cached) " >&6
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <sys/types.h>
13643 #include <$ac_cv_struct_tm>
13647 struct tm tm; tm.tm_isdst;
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_struct_tm_isdst=yes
13655 ac_cv_struct_tm_isdst=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13660 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13661 if test "$ac_cv_struct_tm_isdst" = yes; then
13663 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13668 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13670 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13681 $as_echo_n "checking for daylight... " >&6; }
13682 if ${ac_cv_var_daylight+:} false; then :
13683 $as_echo_n "(cached) " >&6
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 #if !HAVE_DECL_DAYLIGHT
13689 extern int daylight;
13699 if ac_fn_c_try_link "$LINENO"; then :
13700 ac_cv_var_daylight=yes
13702 ac_cv_var_daylight=no
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext conftest.$ac_ext
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13708 $as_echo "$ac_cv_var_daylight" >&6; }
13709 if test $ac_cv_var_daylight = yes; then
13711 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13715 # Check whether --enable-largefile was given.
13716 if test "${enable_largefile+set}" = set; then :
13717 enableval=$enable_largefile;
13720 if test "$enable_largefile" != no; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13723 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13724 if ${ac_cv_sys_largefile_CC+:} false; then :
13725 $as_echo_n "(cached) " >&6
13727 ac_cv_sys_largefile_CC=no
13728 if test "$GCC" != yes; then
13731 # IRIX 6.2 and later do not support large files by default,
13732 # so use the C compiler's -n32 option if that helps.
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 #include <sys/types.h>
13736 /* Check that off_t can represent 2**63 - 1 correctly.
13737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13738 since some C++ compilers masquerading as C compilers
13739 incorrectly reject 9223372036854775807. */
13740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13742 && LARGE_OFF_T % 2147483647 == 1)
13752 if ac_fn_c_try_compile "$LINENO"; then :
13755 rm -f core conftest.err conftest.$ac_objext
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 ac_cv_sys_largefile_CC=' -n32'; break
13760 rm -f core conftest.err conftest.$ac_objext
13764 rm -f conftest.$ac_ext
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13768 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13769 if test "$ac_cv_sys_largefile_CC" != no; then
13770 CC=$CC$ac_cv_sys_largefile_CC
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13774 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13775 if ${ac_cv_sys_file_offset_bits+:} false; then :
13776 $as_echo_n "(cached) " >&6
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13782 /* Check that off_t can represent 2**63 - 1 correctly.
13783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13784 since some C++ compilers masquerading as C compilers
13785 incorrectly reject 9223372036854775807. */
13786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13788 && LARGE_OFF_T % 2147483647 == 1)
13798 if ac_fn_c_try_compile "$LINENO"; then :
13799 ac_cv_sys_file_offset_bits=no; break
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #define _FILE_OFFSET_BITS 64
13805 #include <sys/types.h>
13806 /* Check that off_t can represent 2**63 - 1 correctly.
13807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13808 since some C++ compilers masquerading as C compilers
13809 incorrectly reject 9223372036854775807. */
13810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13812 && LARGE_OFF_T % 2147483647 == 1)
13822 if ac_fn_c_try_compile "$LINENO"; then :
13823 ac_cv_sys_file_offset_bits=64; break
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 ac_cv_sys_file_offset_bits=unknown
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13831 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13832 case $ac_cv_sys_file_offset_bits in #(
13835 cat >>confdefs.h <<_ACEOF
13836 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13841 if test $ac_cv_sys_file_offset_bits = unknown; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13843 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13844 if ${ac_cv_sys_large_files+:} false; then :
13845 $as_echo_n "(cached) " >&6
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13851 /* Check that off_t can represent 2**63 - 1 correctly.
13852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13853 since some C++ compilers masquerading as C compilers
13854 incorrectly reject 9223372036854775807. */
13855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13857 && LARGE_OFF_T % 2147483647 == 1)
13867 if ac_fn_c_try_compile "$LINENO"; then :
13868 ac_cv_sys_large_files=no; break
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #define _LARGE_FILES 1
13874 #include <sys/types.h>
13875 /* Check that off_t can represent 2**63 - 1 correctly.
13876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13877 since some C++ compilers masquerading as C compilers
13878 incorrectly reject 9223372036854775807. */
13879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13881 && LARGE_OFF_T % 2147483647 == 1)
13891 if ac_fn_c_try_compile "$LINENO"; then :
13892 ac_cv_sys_large_files=1; break
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 ac_cv_sys_large_files=unknown
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13900 $as_echo "$ac_cv_sys_large_files" >&6; }
13901 case $ac_cv_sys_large_files in #(
13904 cat >>confdefs.h <<_ACEOF
13905 #define _LARGE_FILES $ac_cv_sys_large_files
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13916 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13917 if ${ac_cv_sys_largefile_source+:} false; then :
13918 $as_echo_n "(cached) " >&6
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 #include <sys/types.h> /* for off_t */
13928 int (*fp) (FILE *, off_t, int) = fseeko;
13929 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 ac_cv_sys_largefile_source=no; break
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #define _LARGEFILE_SOURCE 1
13942 #include <sys/types.h> /* for off_t */
13947 int (*fp) (FILE *, off_t, int) = fseeko;
13948 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13953 if ac_fn_c_try_link "$LINENO"; then :
13954 ac_cv_sys_largefile_source=1; break
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 ac_cv_sys_largefile_source=unknown
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13963 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13964 case $ac_cv_sys_largefile_source in #(
13967 cat >>confdefs.h <<_ACEOF
13968 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13974 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13975 # in glibc 2.1.3, but that breaks too many other things.
13976 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13977 if test $ac_cv_sys_largefile_source != unknown; then
13979 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13984 $as_echo_n "checking for mbstate_t... " >&6; }
13985 if ${ac_cv_type_mbstate_t+:} false; then :
13986 $as_echo_n "(cached) " >&6
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 $ac_includes_default
13991 # include <wchar.h>
13995 mbstate_t x; return sizeof x;
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001 ac_cv_type_mbstate_t=yes
14003 ac_cv_type_mbstate_t=no
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14008 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14009 if test $ac_cv_type_mbstate_t = yes; then
14011 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14015 $as_echo "#define mbstate_t int" >>confdefs.h
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14020 $as_echo_n "checking for struct option in getopt... " >&6; }
14021 if ${ac_cv_struct_option_getopt_h+:} false; then :
14022 $as_echo_n "(cached) " >&6
14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14026 #include <getopt.h>
14030 struct option op; op.name;
14035 if ac_fn_c_try_compile "$LINENO"; then :
14036 ac_cv_struct_option_getopt_h=yes
14038 ac_cv_struct_option_getopt_h=no
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14043 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
14044 if test "$ac_cv_struct_option_getopt_h" = yes; then
14046 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14050 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14051 if test "x$ac_cv_type_pid_t" = xyes; then :
14055 cat >>confdefs.h <<_ACEOF
14061 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14062 case $ac_cv_c_uint8_t in #(
14066 $as_echo "#define _UINT8_T 1" >>confdefs.h
14069 cat >>confdefs.h <<_ACEOF
14070 #define uint8_t $ac_cv_c_uint8_t
14075 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14076 case $ac_cv_c_uint16_t in #(
14081 cat >>confdefs.h <<_ACEOF
14082 #define uint16_t $ac_cv_c_uint16_t
14087 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14088 case $ac_cv_c_uint32_t in #(
14092 $as_echo "#define _UINT32_T 1" >>confdefs.h
14095 cat >>confdefs.h <<_ACEOF
14096 #define uint32_t $ac_cv_c_uint32_t
14101 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14102 case $ac_cv_c_int32_t in #(
14106 cat >>confdefs.h <<_ACEOF
14107 #define int32_t $ac_cv_c_int32_t
14112 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14113 case $ac_cv_c_uint64_t in #(
14117 $as_echo "#define _UINT64_T 1" >>confdefs.h
14120 cat >>confdefs.h <<_ACEOF
14121 #define uint64_t $ac_cv_c_uint64_t
14126 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14127 case $ac_cv_c_int64_t in #(
14131 cat >>confdefs.h <<_ACEOF
14132 #define int64_t $ac_cv_c_int64_t
14138 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14139 if test "x$ac_cv_type_intptr_t" = xyes; then :
14141 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14144 for ac_type in 'int' 'long int' 'long long int'; do
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 $ac_includes_default
14151 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14152 test_array [0] = 0;
14153 return test_array [0];
14159 if ac_fn_c_try_compile "$LINENO"; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define intptr_t $ac_type
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 test -z "$ac_type" && break
14174 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14175 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14177 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14180 for ac_type in 'unsigned int' 'unsigned long int' \
14181 'unsigned long long int'; do
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 $ac_includes_default
14188 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14189 test_array [0] = 0;
14190 return test_array [0];
14196 if ac_fn_c_try_compile "$LINENO"; then :
14198 cat >>confdefs.h <<_ACEOF
14199 #define uintptr_t $ac_type
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 test -z "$ac_type" && break
14213 for ac_header in $ac_header_list
14215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14219 cat >>confdefs.h <<_ACEOF
14220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 for ac_func in getpagesize
14236 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14237 if test "x$ac_cv_func_getpagesize" = xyes; then :
14238 cat >>confdefs.h <<_ACEOF
14239 #define HAVE_GETPAGESIZE 1
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14246 $as_echo_n "checking for working mmap... " >&6; }
14247 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14248 $as_echo_n "(cached) " >&6
14250 if test "$cross_compiling" = yes; then :
14251 ac_cv_func_mmap_fixed_mapped=no
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 $ac_includes_default
14256 /* malloc might have been renamed as rpl_malloc. */
14259 /* Thanks to Mike Haertel and Jim Avera for this test.
14260 Here is a matrix of mmap possibilities:
14261 mmap private not fixed
14262 mmap private fixed at somewhere currently unmapped
14263 mmap private fixed at somewhere already mapped
14264 mmap shared not fixed
14265 mmap shared fixed at somewhere currently unmapped
14266 mmap shared fixed at somewhere already mapped
14267 For private mappings, we should verify that changes cannot be read()
14268 back from the file, nor mmap's back from the file at a different
14269 address. (There have been systems where private was not correctly
14270 implemented like the infamous i386 svr4.0, and systems where the
14271 VM page cache was not coherent with the file system buffer cache
14272 like early versions of FreeBSD and possibly contemporary NetBSD.)
14273 For shared mappings, we should conversely verify that changes get
14274 propagated back to all the places they're supposed to be.
14276 Grep wants private fixed already mapped.
14277 The main things grep needs to know about mmap are:
14278 * does it exist and is it safe to write into the mmap'd area
14279 * how to use it (BSD variants) */
14282 #include <sys/mman.h>
14284 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14288 /* This mess was copied from the GNU getpagesize.h. */
14289 #ifndef HAVE_GETPAGESIZE
14290 # ifdef _SC_PAGESIZE
14291 # define getpagesize() sysconf(_SC_PAGESIZE)
14292 # else /* no _SC_PAGESIZE */
14293 # ifdef HAVE_SYS_PARAM_H
14294 # include <sys/param.h>
14295 # ifdef EXEC_PAGESIZE
14296 # define getpagesize() EXEC_PAGESIZE
14297 # else /* no EXEC_PAGESIZE */
14299 # define getpagesize() NBPG * CLSIZE
14302 # endif /* no CLSIZE */
14303 # else /* no NBPG */
14305 # define getpagesize() NBPC
14306 # else /* no NBPC */
14308 # define getpagesize() PAGESIZE
14309 # endif /* PAGESIZE */
14310 # endif /* no NBPC */
14311 # endif /* no NBPG */
14312 # endif /* no EXEC_PAGESIZE */
14313 # else /* no HAVE_SYS_PARAM_H */
14314 # define getpagesize() 8192 /* punt totally */
14315 # endif /* no HAVE_SYS_PARAM_H */
14316 # endif /* no _SC_PAGESIZE */
14318 #endif /* no HAVE_GETPAGESIZE */
14323 char *data, *data2, *data3;
14324 const char *cdata2;
14328 pagesize = getpagesize ();
14330 /* First, make a file with some known garbage in it. */
14331 data = (char *) malloc (pagesize);
14334 for (i = 0; i < pagesize; ++i)
14335 *(data + i) = rand ();
14337 fd = creat ("conftest.mmap", 0600);
14340 if (write (fd, data, pagesize) != pagesize)
14344 /* Next, check that the tail of a page is zero-filled. File must have
14345 non-zero length, otherwise we risk SIGBUS for entire page. */
14346 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14350 if (write (fd2, cdata2, 1) != 1)
14352 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14353 if (data2 == MAP_FAILED)
14355 for (i = 0; i < pagesize; ++i)
14359 if (munmap (data2, pagesize))
14362 /* Next, try to mmap the file at a fixed address which already has
14363 something else allocated at it. If we can, also make sure that
14364 we see the same garbage. */
14365 fd = open ("conftest.mmap", O_RDWR);
14368 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14369 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14371 for (i = 0; i < pagesize; ++i)
14372 if (*(data + i) != *(data2 + i))
14375 /* Finally, make sure that changes to the mapped area do not
14376 percolate back to the file as seen by read(). (This is a bug on
14377 some variants of i386 svr4.0.) */
14378 for (i = 0; i < pagesize; ++i)
14379 *(data2 + i) = *(data2 + i) + 1;
14380 data3 = (char *) malloc (pagesize);
14383 if (read (fd, data3, pagesize) != pagesize)
14385 for (i = 0; i < pagesize; ++i)
14386 if (*(data + i) != *(data3 + i))
14392 if ac_fn_c_try_run "$LINENO"; then :
14393 ac_cv_func_mmap_fixed_mapped=yes
14395 ac_cv_func_mmap_fixed_mapped=no
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14398 conftest.$ac_objext conftest.beam conftest.$ac_ext
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14404 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14406 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14409 rm -f conftest.mmap conftest.txt
14411 for ac_header in vfork.h
14413 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14414 if test "x$ac_cv_header_vfork_h" = xyes; then :
14415 cat >>confdefs.h <<_ACEOF
14416 #define HAVE_VFORK_H 1
14423 for ac_func in fork vfork
14425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14428 cat >>confdefs.h <<_ACEOF
14429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14435 if test "x$ac_cv_func_fork" = xyes; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14437 $as_echo_n "checking for working fork... " >&6; }
14438 if ${ac_cv_func_fork_works+:} false; then :
14439 $as_echo_n "(cached) " >&6
14441 if test "$cross_compiling" = yes; then :
14442 ac_cv_func_fork_works=cross
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 $ac_includes_default
14451 /* By Ruediger Kuhlmann. */
14452 return fork () < 0;
14458 if ac_fn_c_try_run "$LINENO"; then :
14459 ac_cv_func_fork_works=yes
14461 ac_cv_func_fork_works=no
14463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14464 conftest.$ac_objext conftest.beam conftest.$ac_ext
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14469 $as_echo "$ac_cv_func_fork_works" >&6; }
14472 ac_cv_func_fork_works=$ac_cv_func_fork
14474 if test "x$ac_cv_func_fork_works" = xcross; then
14476 *-*-amigaos* | *-*-msdosdjgpp*)
14477 # Override, as these systems have only a dummy fork() stub
14478 ac_cv_func_fork_works=no
14481 ac_cv_func_fork_works=yes
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14485 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14487 ac_cv_func_vfork_works=$ac_cv_func_vfork
14488 if test "x$ac_cv_func_vfork" = xyes; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14490 $as_echo_n "checking for working vfork... " >&6; }
14491 if ${ac_cv_func_vfork_works+:} false; then :
14492 $as_echo_n "(cached) " >&6
14494 if test "$cross_compiling" = yes; then :
14495 ac_cv_func_vfork_works=cross
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 /* Thanks to Paul Eggert for this test. */
14500 $ac_includes_default
14501 #include <sys/wait.h>
14502 #ifdef HAVE_VFORK_H
14503 # include <vfork.h>
14505 /* On some sparc systems, changes by the child to local and incoming
14506 argument registers are propagated back to the parent. The compiler
14507 is told about this with #include <vfork.h>, but some compilers
14508 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14509 static variable whose address is put into a register that is
14510 clobbered by the vfork. */
14513 sparc_address_test (int arg)
14515 sparc_address_test (arg) int arg;
14518 static pid_t child;
14536 pid_t parent = getpid ();
14539 sparc_address_test (0);
14544 /* Here is another test for sparc vfork register problems. This
14545 test uses lots of local variables, at least as many local
14546 variables as main has allocated so far including compiler
14547 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14548 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14549 reuse the register of parent for one of the local variables,
14550 since it will think that parent can't possibly be used any more
14551 in this routine. Assigning to the local variable will thus
14552 munge parent in the parent process. */
14554 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14555 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14556 /* Convince the compiler that p..p7 are live; otherwise, it might
14557 use the same hardware register for all 8 local variables. */
14558 if (p != p1 || p != p2 || p != p3 || p != p4
14559 || p != p5 || p != p6 || p != p7)
14562 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14563 from child file descriptors. If the child closes a descriptor
14564 before it execs or exits, this munges the parent's descriptor
14565 as well. Test for this by closing stdout in the child. */
14566 _exit(close(fileno(stdout)) != 0);
14571 while (wait(&status) != child)
14574 /* Was there some problem with vforking? */
14577 /* Did the child fail? (This shouldn't happen.) */
14580 /* Did the vfork/compiler bug occur? */
14581 || parent != getpid()
14583 /* Did the file descriptor bug occur? */
14584 || fstat(fileno(stdout), &st) != 0
14589 if ac_fn_c_try_run "$LINENO"; then :
14590 ac_cv_func_vfork_works=yes
14592 ac_cv_func_vfork_works=no
14594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14595 conftest.$ac_objext conftest.beam conftest.$ac_ext
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14600 $as_echo "$ac_cv_func_vfork_works" >&6; }
14603 if test "x$ac_cv_func_fork_works" = xcross; then
14604 ac_cv_func_vfork_works=$ac_cv_func_vfork
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14606 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14609 if test "x$ac_cv_func_vfork_works" = xyes; then
14611 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14615 $as_echo "#define vfork fork" >>confdefs.h
14618 if test "x$ac_cv_func_fork_works" = xyes; then
14620 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14626 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14627 if ${ac_cv_func_mbrtowc+:} false; then :
14628 $as_echo_n "(cached) " >&6
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14637 char const s[] = "";
14640 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14645 if ac_fn_c_try_link "$LINENO"; then :
14646 ac_cv_func_mbrtowc=yes
14648 ac_cv_func_mbrtowc=no
14650 rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14654 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14655 if test $ac_cv_func_mbrtowc = yes; then
14657 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14663 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14664 # Check whether --enable-warnings was given.
14665 if test "${enable_warnings+set}" = set; then :
14666 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 $as_echo "no" >&6; }
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14673 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14674 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14675 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14676 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14680 if test "$GCC" = yes; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682 $as_echo "yes" >&6; }
14683 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14684 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14685 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14686 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14695 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
14697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14700 cat >>confdefs.h <<_ACEOF
14701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14708 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14709 if test "x$ac_cv_func_getopt_long" = xyes; then :
14710 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14713 case " $LIBOBJS " in
14714 *" getopt_long.$ac_objext "* ) ;;
14715 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14721 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14722 if test "x$ac_cv_func_asprintf" = xyes; then :
14723 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14726 case " $LIBOBJS " in
14727 *" asprintf.$ac_objext "* ) ;;
14728 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14734 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14735 if test "x$ac_cv_func_vasprintf" = xyes; then :
14736 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14739 case " $LIBOBJS " in
14740 *" vasprintf.$ac_objext "* ) ;;
14741 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14747 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14748 if test "x$ac_cv_func_strlcpy" = xyes; then :
14749 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14752 case " $LIBOBJS " in
14753 *" strlcpy.$ac_objext "* ) ;;
14754 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14760 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14761 if test "x$ac_cv_func_strlcat" = xyes; then :
14762 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14765 case " $LIBOBJS " in
14766 *" strlcat.$ac_objext "* ) ;;
14767 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14773 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14774 if test "x$ac_cv_func_getline" = xyes; then :
14775 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14778 case " $LIBOBJS " in
14779 *" getline.$ac_objext "* ) ;;
14780 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14786 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14787 if test "x$ac_cv_func_ctime_r" = xyes; then :
14788 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14791 case " $LIBOBJS " in
14792 *" ctime_r.$ac_objext "* ) ;;
14793 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14799 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14800 if test "x$ac_cv_func_asctime_r" = xyes; then :
14801 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14804 case " $LIBOBJS " in
14805 *" asctime_r.$ac_objext "* ) ;;
14806 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14812 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14813 if test "x$ac_cv_func_localtime_r" = xyes; then :
14814 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14817 case " $LIBOBJS " in
14818 *" localtime_r.$ac_objext "* ) ;;
14819 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14825 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14826 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14827 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14830 case " $LIBOBJS " in
14831 *" gmtime_r.$ac_objext "* ) ;;
14832 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14838 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14839 if test "x$ac_cv_func_pread" = xyes; then :
14840 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14843 case " $LIBOBJS " in
14844 *" pread.$ac_objext "* ) ;;
14845 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14851 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14852 if test "x$ac_cv_func_strcasestr" = xyes; then :
14853 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14856 case " $LIBOBJS " in
14857 *" strcasestr.$ac_objext "* ) ;;
14858 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14864 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14865 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14866 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14869 case " $LIBOBJS " in
14870 *" fmtcheck.$ac_objext "* ) ;;
14871 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14877 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14878 if test "x$ac_cv_func_dprintf" = xyes; then :
14879 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14882 case " $LIBOBJS " in
14883 *" dprintf.$ac_objext "* ) ;;
14884 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14892 if test "$enable_zlib" != "no"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14894 $as_echo_n "checking for gzopen in -lz... " >&6; }
14895 if ${ac_cv_lib_z_gzopen+:} false; then :
14896 $as_echo_n "(cached) " >&6
14898 ac_check_lib_save_LIBS=$LIBS
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 /* Override any GCC internal prototype to avoid an error.
14904 Use char because int might match the return type of a GCC
14905 builtin and then its argument prototype would still apply. */
14918 if ac_fn_c_try_link "$LINENO"; then :
14919 ac_cv_lib_z_gzopen=yes
14921 ac_cv_lib_z_gzopen=no
14923 rm -f core conftest.err conftest.$ac_objext \
14924 conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14928 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14929 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14930 cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBZ 1
14939 if test "$enable_bzlib" != "no"; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
14941 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
14942 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
14943 $as_echo_n "(cached) " >&6
14945 ac_check_lib_save_LIBS=$LIBS
14947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14956 char BZ2_bzCompressInit ();
14960 return BZ2_bzCompressInit ();
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
14968 ac_cv_lib_bz2_BZ2_bzCompressInit=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
14975 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
14976 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBBZ2 1
14986 if test "$enable_xzlib" != "no"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
14988 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
14989 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
14990 $as_echo_n "(cached) " >&6
14992 ac_check_lib_save_LIBS=$LIBS
14993 LIBS="-llzma $LIBS"
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14997 /* Override any GCC internal prototype to avoid an error.
14998 Use char because int might match the return type of a GCC
14999 builtin and then its argument prototype would still apply. */
15003 char lzma_stream_decoder ();
15007 return lzma_stream_decoder ();
15012 if ac_fn_c_try_link "$LINENO"; then :
15013 ac_cv_lib_lzma_lzma_stream_decoder=yes
15015 ac_cv_lib_lzma_lzma_stream_decoder=no
15017 rm -f core conftest.err conftest.$ac_objext \
15018 conftest$ac_exeext conftest.$ac_ext
15019 LIBS=$ac_check_lib_save_LIBS
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15022 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15023 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
15024 cat >>confdefs.h <<_ACEOF
15025 #define HAVE_LIBLZMA 1
15028 LIBS="-llzma $LIBS"
15033 if test "$enable_libseccomp" != "no"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15035 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
15036 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
15037 $as_echo_n "(cached) " >&6
15039 ac_check_lib_save_LIBS=$LIBS
15040 LIBS="-lseccomp $LIBS"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15050 char seccomp_init ();
15054 return seccomp_init ();
15059 if ac_fn_c_try_link "$LINENO"; then :
15060 ac_cv_lib_seccomp_seccomp_init=yes
15062 ac_cv_lib_seccomp_seccomp_init=no
15064 rm -f core conftest.err conftest.$ac_objext \
15065 conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15069 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15070 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
15071 cat >>confdefs.h <<_ACEOF
15072 #define HAVE_LIBSECCOMP 1
15075 LIBS="-lseccomp $LIBS"
15080 if test "$MINGW" = 1; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15082 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
15083 if ${ac_cv_lib_gnurx_regexec+:} false; then :
15084 $as_echo_n "(cached) " >&6
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lgnurx $LIBS"
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15091 /* Override any GCC internal prototype to avoid an error.
15092 Use char because int might match the return type of a GCC
15093 builtin and then its argument prototype would still apply. */
15106 if ac_fn_c_try_link "$LINENO"; then :
15107 ac_cv_lib_gnurx_regexec=yes
15109 ac_cv_lib_gnurx_regexec=no
15111 rm -f core conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_check_lib_save_LIBS
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15116 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
15117 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
15118 cat >>confdefs.h <<_ACEOF
15119 #define HAVE_LIBGNURX 1
15122 LIBS="-lgnurx $LIBS"
15125 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15130 if test "$cross_compiling" = yes; then
15131 IS_CROSS_COMPILE_TRUE=
15132 IS_CROSS_COMPILE_FALSE='#'
15134 IS_CROSS_COMPILE_TRUE='#'
15135 IS_CROSS_COMPILE_FALSE=
15139 if test "$enable_zlib" = "yes"; then
15140 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15141 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15144 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15146 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
15149 if test "$enable_bzlib" = "yes"; then
15150 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15151 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15154 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15156 $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
15159 if test "$enable_xzlib" = "yes"; then
15160 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15161 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15164 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15166 $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
15170 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15172 cat >confcache <<\_ACEOF
15173 # This file is a shell script that caches the results of configure
15174 # tests run on this system so they can be shared between configure
15175 # scripts and configure runs, see configure's option --config-cache.
15176 # It is not useful on other systems. If it contains results you don't
15177 # want to keep, you may remove or edit it.
15179 # config.status only pays attention to the cache file if you give it
15180 # the --recheck option to rerun configure.
15182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15184 # following values.
15188 # The following way of writing the cache mishandles newlines in values,
15189 # but we know of no workaround that is simple, portable, and efficient.
15190 # So, we kill variables containing newlines.
15191 # Ultrix sh set writes to stderr and can't be redirected directly,
15192 # and sets the high bit in the cache file unless we assign to the vars.
15194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15195 eval ac_val=\$$ac_var
15199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15203 _ | IFS | as_nl) ;; #(
15204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15205 *) { eval $ac_var=; unset $ac_var;} ;;
15211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15212 *${as_nl}ac_space=\ *)
15213 # `set' does not quote correctly, so add quotes: double-quote
15214 # substitution turns \\\\ into \\, and sed turns \\ into \.
15217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15220 # `set' quotes correctly as required by POSIX, so do not add quotes.
15221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15235 if test -w "$cache_file"; then
15236 if test "x$cache_file" != "x/dev/null"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15238 $as_echo "$as_me: updating cache $cache_file" >&6;}
15239 if test ! -f "$cache_file" || test -h "$cache_file"; then
15240 cat confcache >"$cache_file"
15242 case $cache_file in #(
15244 mv -f confcache "$cache_file"$$ &&
15245 mv -f "$cache_file"$$ "$cache_file" ;; #(
15247 mv -f confcache "$cache_file" ;;
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15253 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15259 # Let make expand exec_prefix.
15260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15262 DEFS=-DHAVE_CONFIG_H
15267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15268 # 1. Remove the extension, and $U if already installed.
15269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15272 # will be set to the directory where LIBOBJS objects are built.
15273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15276 LIBOBJS=$ac_libobjs
15278 LTLIBOBJS=$ac_ltlibobjs
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15282 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15283 if test -n "$am_sleep_pid"; then
15284 # Hide warnings about reused PIDs.
15285 wait $am_sleep_pid 2>/dev/null
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15288 $as_echo "done" >&6; }
15289 if test -n "$EXEEXT"; then
15291 am__EXEEXT_FALSE='#'
15293 am__EXEEXT_TRUE='#'
15297 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15298 as_fn_error $? "conditional \"MINGW\" was never defined.
15299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15301 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15302 as_fn_error $? "conditional \"FSECT5\" was never defined.
15303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15306 as_fn_error $? "conditional \"AMDEP\" was never defined.
15307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15315 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 : "${CONFIG_STATUS=./config.status}"
15321 ac_clean_files_save=$ac_clean_files
15322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15324 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15326 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15328 # Generated by $as_me.
15329 # Run this file to recreate the current configuration.
15330 # Compiler output produced by configure, useful for debugging
15331 # configure, is in config.log if it exists.
15334 ac_cs_recheck=false
15337 SHELL=\${CONFIG_SHELL-$SHELL}
15340 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15341 ## -------------------- ##
15342 ## M4sh Initialization. ##
15343 ## -------------------- ##
15345 # Be more Bourne compatible
15346 DUALCASE=1; export DUALCASE # for MKS sh
15347 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15351 # is contrary to our usage. Disable this feature.
15352 alias -g '${1+"$@"}'='"$@"'
15353 setopt NO_GLOB_SUBST
15355 case `(set -o) 2>/dev/null` in #(
15367 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15368 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15371 # Prefer a ksh shell builtin over an external printf program on Solaris,
15372 # but without wasting forks for bash or zsh.
15373 if test -z "$BASH_VERSION$ZSH_VERSION" \
15374 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15375 as_echo='print -r --'
15376 as_echo_n='print -rn --'
15377 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15378 as_echo='printf %s\n'
15379 as_echo_n='printf %s'
15381 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15382 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15383 as_echo_n='/usr/ucb/echo -n'
15385 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15386 as_echo_n_body='eval
15390 expr "X$arg" : "X\\(.*\\)$as_nl";
15391 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15393 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15395 export as_echo_n_body
15396 as_echo_n='sh -c $as_echo_n_body as_echo'
15398 export as_echo_body
15399 as_echo='sh -c $as_echo_body as_echo'
15402 # The user is always right.
15403 if test "${PATH_SEPARATOR+set}" != set; then
15405 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15406 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15413 # We need space, tab and new line, in precisely that order. Quoting is
15414 # there to prevent editors from complaining about space-tab.
15415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15416 # splitting by setting IFS to empty value.)
15419 # Find who we are. Look in the path if we contain no directory separator.
15422 *[\\/]* ) as_myself=$0 ;;
15423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15427 test -z "$as_dir" && as_dir=.
15428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15434 # We did not find ourselves, most probably we were run as `sh COMMAND'
15435 # in which case we are not to be found in the path.
15436 if test "x$as_myself" = x; then
15439 if test ! -f "$as_myself"; then
15440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15444 # Unset variables that we do not need and which cause bugs (e.g. in
15445 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15446 # suppresses any "Segmentation fault" message there. '((' could
15447 # trigger a bug in pdksh 5.2.14.
15448 for as_var in BASH_ENV ENV MAIL MAILPATH
15449 do eval test x\${$as_var+set} = xset \
15450 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15466 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15467 # ----------------------------------------
15468 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15469 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15470 # script with STATUS, using 1 if that was 0.
15473 as_status=$1; test $as_status -eq 0 && as_status=1
15475 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15478 $as_echo "$as_me: error: $2" >&2
15479 as_fn_exit $as_status
15483 # as_fn_set_status STATUS
15484 # -----------------------
15485 # Set $? to STATUS, without forking.
15486 as_fn_set_status ()
15489 } # as_fn_set_status
15491 # as_fn_exit STATUS
15492 # -----------------
15493 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15497 as_fn_set_status $1
15503 # Portably unset VAR.
15506 { eval $1=; unset $1;}
15508 as_unset=as_fn_unset
15509 # as_fn_append VAR VALUE
15510 # ----------------------
15511 # Append the text in VALUE to the end of the definition contained in VAR. Take
15512 # advantage of any shell optimizations that allow amortized linear growth over
15513 # repeated appends, instead of the typical quadratic growth present in naive
15515 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15516 eval 'as_fn_append ()
15527 # as_fn_arith ARG...
15528 # ------------------
15529 # Perform arithmetic evaluation on the ARGs, and store the result in the
15530 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15531 # must be portable across $(()) and expr.
15532 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15533 eval 'as_fn_arith ()
15540 as_val=`expr "$@" || test $? -eq 1`
15545 if expr a : '\(a\)' >/dev/null 2>&1 &&
15546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15553 as_basename=basename
15558 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15564 as_me=`$as_basename -- "$0" ||
15565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15566 X"$0" : 'X\(//\)$' \| \
15567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15569 sed '/^.*\/\([^/][^/]*\)\/*$/{
15583 # Avoid depending upon Character Ranges.
15584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15587 as_cr_digits='0123456789'
15588 as_cr_alnum=$as_cr_Letters$as_cr_digits
15590 ECHO_C= ECHO_N= ECHO_T=
15591 case `echo -n x` in #(((((
15593 case `echo 'xy\c'` in
15594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15603 rm -f conf$$ conf$$.exe conf$$.file
15604 if test -d conf$$.dir; then
15605 rm -f conf$$.dir/conf$$.file
15608 mkdir conf$$.dir 2>/dev/null
15610 if (echo >conf$$.file) 2>/dev/null; then
15611 if ln -s conf$$.file conf$$ 2>/dev/null; then
15613 # ... but there are two gotchas:
15614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15616 # In both cases, we have to default to `cp -pR'.
15617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15619 elif ln conf$$.file conf$$ 2>/dev/null; then
15627 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15628 rmdir conf$$.dir 2>/dev/null
15633 # Create "$as_dir" as a directory, including parents if necessary.
15638 -*) as_dir=./$as_dir;;
15640 test -d "$as_dir" || eval $as_mkdir_p || {
15644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15645 *) as_qdir=$as_dir;;
15647 as_dirs="'$as_qdir' $as_dirs"
15648 as_dir=`$as_dirname -- "$as_dir" ||
15649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15650 X"$as_dir" : 'X\(//\)[^/]' \| \
15651 X"$as_dir" : 'X\(//\)$' \| \
15652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15653 $as_echo X"$as_dir" |
15654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15658 /^X\(\/\/\)[^/].*/{
15671 test -d "$as_dir" && break
15673 test -z "$as_dirs" || eval "mkdir $as_dirs"
15674 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15678 if mkdir -p . 2>/dev/null; then
15679 as_mkdir_p='mkdir -p "$as_dir"'
15681 test -d ./-p && rmdir ./-p
15686 # as_fn_executable_p FILE
15687 # -----------------------
15688 # Test if FILE is an executable regular file.
15689 as_fn_executable_p ()
15691 test -f "$1" && test -x "$1"
15692 } # as_fn_executable_p
15693 as_test_x='test -x'
15694 as_executable_p=as_fn_executable_p
15696 # Sed expression to map a string onto a valid CPP name.
15697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15699 # Sed expression to map a string onto a valid variable name.
15700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15704 ## ----------------------------------- ##
15705 ## Main body of $CONFIG_STATUS script. ##
15706 ## ----------------------------------- ##
15708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 # Save the log message, to keep $0 and so on meaningful, and to
15712 # report actual input values of CONFIG_FILES etc. instead of their
15713 # values after options handling.
15715 This file was extended by file $as_me 5.39, which was
15716 generated by GNU Autoconf 2.69. Invocation command line was
15718 CONFIG_FILES = $CONFIG_FILES
15719 CONFIG_HEADERS = $CONFIG_HEADERS
15720 CONFIG_LINKS = $CONFIG_LINKS
15721 CONFIG_COMMANDS = $CONFIG_COMMANDS
15724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15729 case $ac_config_files in *"
15730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15733 case $ac_config_headers in *"
15734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 # Files that config.status was made for.
15740 config_files="$ac_config_files"
15741 config_headers="$ac_config_headers"
15742 config_commands="$ac_config_commands"
15746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 \`$as_me' instantiates files and other configuration actions
15749 from templates according to the current configuration. Unless the files
15750 and actions are specified as TAGs, all are instantiated by default.
15752 Usage: $0 [OPTION]... [TAG]...
15754 -h, --help print this help, then exit
15755 -V, --version print version number and configuration settings, then exit
15756 --config print configuration, then exit
15757 -q, --quiet, --silent
15758 do not print progress messages
15759 -d, --debug don't remove temporary files
15760 --recheck update $as_me by reconfiguring in the same conditions
15761 --file=FILE[:TEMPLATE]
15762 instantiate the configuration file FILE
15763 --header=FILE[:TEMPLATE]
15764 instantiate the configuration header FILE
15766 Configuration files:
15769 Configuration headers:
15772 Configuration commands:
15775 Report bugs to <christos@astron.com>."
15778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15779 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15781 file config.status 5.39
15782 configured by $0, generated by GNU Autoconf 2.69,
15783 with options \\"\$ac_cs_config\\"
15785 Copyright (C) 2012 Free Software Foundation, Inc.
15786 This config.status script is free software; the Free Software Foundation
15787 gives unlimited permission to copy, distribute and modify it."
15794 test -n "\$AWK" || AWK=awk
15797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798 # The default lists apply if the user does not specify any file.
15804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15821 # Handling of the options.
15822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15825 $as_echo "$ac_cs_version"; exit ;;
15826 --config | --confi | --conf | --con | --co | --c )
15827 $as_echo "$ac_cs_config"; exit ;;
15828 --debug | --debu | --deb | --de | --d | -d )
15830 --file | --fil | --fi | --f )
15833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15834 '') as_fn_error $? "missing file argument" ;;
15836 as_fn_append CONFIG_FILES " '$ac_optarg'"
15837 ac_need_defaults=false;;
15838 --header | --heade | --head | --hea )
15841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15843 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15844 ac_need_defaults=false;;
15846 # Conflict between --help and --header
15847 as_fn_error $? "ambiguous option: \`$1'
15848 Try \`$0 --help' for more information.";;
15849 --help | --hel | -h )
15850 $as_echo "$ac_cs_usage"; exit ;;
15851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15855 # This is an error.
15856 -*) as_fn_error $? "unrecognized option: \`$1'
15857 Try \`$0 --help' for more information." ;;
15859 *) as_fn_append ac_config_targets " $1"
15860 ac_need_defaults=false ;;
15866 ac_configure_extra_args=
15868 if $ac_cs_silent; then
15870 ac_configure_extra_args="$ac_configure_extra_args --silent"
15874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15875 if \$ac_cs_recheck; then
15876 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15879 CONFIG_SHELL='$SHELL'
15880 export CONFIG_SHELL
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890 ## Running $as_me. ##
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15903 # The HP-UX ksh and POSIX shell print the target directory to stdout
15904 # if CDPATH is set.
15905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15907 sed_quote_subst='$sed_quote_subst'
15908 double_quote_subst='$double_quote_subst'
15909 delay_variable_subst='$delay_variable_subst'
15910 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15911 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15912 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15913 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15914 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15915 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15916 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15919 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15920 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15921 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15922 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15923 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15924 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15925 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15926 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15927 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15928 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15929 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15930 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15931 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15932 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15933 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15934 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15935 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15936 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15937 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15938 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15939 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15940 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15941 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15942 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15943 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15944 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15945 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15946 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15947 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15948 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15949 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15950 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15951 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15952 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15953 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15954 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15955 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15956 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15957 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15958 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15959 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15960 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15961 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15962 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15963 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15964 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15965 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15966 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15967 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15968 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"`'
15969 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15970 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15971 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15972 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15973 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15974 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15975 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15976 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15977 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15978 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15979 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15980 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15981 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15982 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15983 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15984 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15985 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15986 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15987 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15988 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15989 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15990 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15991 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15992 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15993 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15994 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15995 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15996 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15997 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15998 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15999 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16000 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16002 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16004 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16005 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16006 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16007 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16008 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16009 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16010 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16011 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16012 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16013 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16014 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16015 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16016 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16017 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16018 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16019 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16020 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16021 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16022 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16023 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16024 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16025 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16026 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16027 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16028 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16029 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16030 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16031 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16032 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16033 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16034 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16035 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16036 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16037 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16038 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16039 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16040 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16041 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16042 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16043 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16044 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16047 LTCFLAGS='$LTCFLAGS'
16048 compiler='$compiler_DEFAULT'
16050 # A function that is used when there is no print builtin or printf.
16051 func_fallback_echo ()
16053 eval 'cat <<_LTECHO_EOF
16058 # Quote evaled strings.
16073 deplibs_check_method \
16078 sharedlib_from_linklib_cmd \
16081 archiver_list_spec \
16087 lt_cv_sys_global_symbol_pipe \
16088 lt_cv_sys_global_symbol_to_cdecl \
16089 lt_cv_sys_global_symbol_to_import \
16090 lt_cv_sys_global_symbol_to_c_name_address \
16091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16092 lt_cv_nm_interface \
16093 nm_file_list_spec \
16094 lt_cv_truncate_bin \
16095 lt_prog_compiler_no_builtin_flag \
16096 lt_prog_compiler_pic \
16097 lt_prog_compiler_wl \
16098 lt_prog_compiler_static \
16099 lt_cv_prog_compiler_c_o \
16108 export_dynamic_flag_spec \
16109 whole_archive_flag_spec \
16110 compiler_needs_object \
16112 allow_undefined_flag \
16113 no_undefined_flag \
16114 hardcode_libdir_flag_spec \
16115 hardcode_libdir_separator \
16119 variables_saved_for_relink \
16121 library_names_spec \
16123 install_override_mode \
16127 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16128 *[\\\\\\\`\\"\\\$]*)
16129 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16132 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16137 # Double-quote double-evaled strings.
16138 for var in reload_cmds \
16139 old_postinstall_cmds \
16140 old_postuninstall_cmds \
16142 extract_expsyms_cmds \
16143 old_archive_from_new_cmds \
16144 old_archive_from_expsyms_cmds \
16146 archive_expsym_cmds \
16148 module_expsym_cmds \
16149 export_symbols_cmds \
16153 postuninstall_cmds \
16155 sys_lib_search_path_spec \
16156 configure_time_dlsearch_path \
16157 configure_time_lt_sys_library_path; do
16158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16159 *[\\\\\\\`\\"\\\$]*)
16160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16168 ac_aux_dir='$ac_aux_dir'
16170 # See if we are running on zsh, and set the options that allow our
16171 # commands through without removal of \ escapes INIT.
16172 if test -n "\${ZSH_VERSION+set}"; then
16173 setopt NO_GLOB_SUBST
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 # Handling of arguments.
16190 for ac_config_target in $ac_config_targets
16192 case $ac_config_target in
16193 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16194 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16195 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16197 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16198 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16199 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16200 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16201 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16202 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16204 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16209 # If the user did not use the arguments to specify the items to instantiate,
16210 # then the envvar interface is used. Set only those that are not.
16211 # We use the long form for the default assignment because of an extremely
16212 # bizarre bug on SunOS 4.1.3.
16213 if $ac_need_defaults; then
16214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16219 # Have a temporary directory for convenience. Make it in the build tree
16220 # simply because there is no reason against having it here, and in addition,
16221 # creating and moving files from /tmp can sometimes cause problems.
16222 # Hook for its removal unless debugging.
16223 # Note that there is a small window in which the directory will not be cleaned:
16224 # after its creation but before its name has been assigned to `$tmp'.
16228 trap 'exit_status=$?
16229 : "${ac_tmp:=$tmp}"
16230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16232 trap 'as_fn_exit 1' 1 2 13 15
16234 # Create a (secure) tmp directory for tmp files.
16237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16241 tmp=./conf$$-$RANDOM
16242 (umask 077 && mkdir "$tmp")
16243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16246 # Set up the scripts for CONFIG_FILES section.
16247 # No need to generate them if there are no CONFIG_FILES.
16248 # This happens for instance with `./config.status config.h'.
16249 if test -n "$CONFIG_FILES"; then
16252 ac_cr=`echo X | tr X '\015'`
16253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16254 # But we know of no other shell where ac_cr would be empty at this
16255 # point, so we can use a bashism as a fallback.
16256 if test "x$ac_cr" = x; then
16257 eval ac_cr=\$\'\\r\'
16259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16263 ac_cs_awk_cr=$ac_cr
16266 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16271 echo "cat >conf$$subs.awk <<_ACEOF" &&
16272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16274 } >conf$$subs.sh ||
16275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16278 for ac_last_try in false false false false false :; do
16279 . ./conf$$subs.sh ||
16280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16283 if test $ac_delim_n = $ac_delim_num; then
16285 elif $ac_last_try; then
16286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16291 rm -f conf$$subs.sh
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16298 s/^/S["/; s/!.*/"]=/
16308 s/\(.\{148\}\)..*/\1/
16310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16322 s/\(.\{148\}\)..*/\1/
16324 s/["\\]/\\&/g; s/^/"/; s/$/"/
16328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16333 ' <conf$$subs.awk | sed '
16338 ' >>$CONFIG_STATUS || ac_write_fail=1
16339 rm -f conf$$subs.awk
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16343 for (key in S) S_is_set[key] = 1
16349 nfields = split(line, field, "@")
16351 len = length(field[1])
16352 for (i = 2; i < nfields; i++) {
16354 keylen = length(key)
16355 if (S_is_set[key]) {
16357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16358 len += length(value) + length(field[++i])
16369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16374 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16375 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16378 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16379 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16380 # trailing colons and then remove the whole line if VPATH becomes empty
16381 # (actually we leave an empty line to preserve line numbers).
16382 if test "x$srcdir" = x.; then
16383 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 fi # test -n "$CONFIG_FILES"
16404 # Set up the scripts for CONFIG_HEADERS section.
16405 # No need to generate them if there are no CONFIG_HEADERS.
16406 # This happens for instance with `./config.status Makefile'.
16407 if test -n "$CONFIG_HEADERS"; then
16408 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16412 # Transform confdefs.h into an awk script `defines.awk', embedded as
16413 # here-document in config.status, that substitutes the proper values into
16414 # config.h.in to produce config.h.
16416 # Create a delimiter string that does not exist in confdefs.h, to ease
16417 # handling of long lines.
16419 for ac_last_try in false false :; do
16420 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16421 if test -z "$ac_tt"; then
16423 elif $ac_last_try; then
16424 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16430 # For the awk script, D is an array of macro values keyed by name,
16431 # likewise P contains macro parameters if any. Preserve backslash
16432 # newline sequences.
16434 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16436 s/.\{148\}/&'"$ac_delim"'/g
16439 s/^[ ]*#[ ]*define[ ][ ]*/ /
16446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16453 D["\1"]=" \3\\\\\\n"\\/p
16455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16460 s/.\{148\}/&'"$ac_delim"'/g
16465 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16468 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16470 ' <confdefs.h | sed '
16471 s/'"$ac_delim"'/"\\\
16472 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 for (key in D) D_is_set[key] = 1
16478 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16480 split(line, arg, " ")
16481 if (arg[1] == "#") {
16485 defundef = substr(arg[1], 2)
16488 split(mac1, mac2, "(") #)
16490 prefix = substr(line, 1, index(line, defundef) - 1)
16491 if (D_is_set[macro]) {
16492 # Preserve the white space surrounding the "#".
16493 print prefix "define", macro P[macro] D[macro]
16496 # Replace #undef with comments. This is necessary, for example,
16497 # in the case of _POSIX_SOURCE, which is predefined and required
16498 # on some systems where configure will not decide to define it.
16499 if (defundef == "undef") {
16500 print "/*", prefix defundef, macro, "*/"
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16510 fi # test -n "$CONFIG_HEADERS"
16513 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16518 :[FHLC]) ac_mode=$ac_tag; continue;;
16520 case $ac_mode$ac_tag in
16522 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16523 :[FH]-) ac_tag=-:-;;
16524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16541 -) ac_f="$ac_tmp/stdin";;
16542 *) # Look for the file first in the build tree, then in the source tree
16543 # (if the path is not absolute). The absolute path cannot be DOS-style,
16544 # because $ac_f cannot contain `:'.
16548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16550 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16552 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16553 as_fn_append ac_file_inputs " '$ac_f'"
16556 # Let's still pretend it is `configure' which instantiates (i.e., don't
16557 # use $as_me), people would be surprised to read:
16558 # /* config.h. Generated by config.status. */
16559 configure_input='Generated from '`
16560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16562 if test x"$ac_file" != x-; then
16563 configure_input="$ac_file. $configure_input"
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16565 $as_echo "$as_me: creating $ac_file" >&6;}
16567 # Neutralize special characters interpreted by sed in replacement strings.
16568 case $configure_input in #(
16569 *\&* | *\|* | *\\* )
16570 ac_sed_conf_input=`$as_echo "$configure_input" |
16571 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16572 *) ac_sed_conf_input=$configure_input;;
16576 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16582 ac_dir=`$as_dirname -- "$ac_file" ||
16583 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584 X"$ac_file" : 'X\(//\)[^/]' \| \
16585 X"$ac_file" : 'X\(//\)$' \| \
16586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16587 $as_echo X"$ac_file" |
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592 /^X\(\/\/\)[^/].*/{
16605 as_dir="$ac_dir"; as_fn_mkdir_p
16609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16612 # A ".." for each directory in $ac_dir_suffix.
16613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16614 case $ac_top_builddir_sub in
16615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16619 ac_abs_top_builddir=$ac_pwd
16620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16621 # for backward compatibility:
16622 ac_top_builddir=$ac_top_build_prefix
16625 .) # We are building in place.
16627 ac_top_srcdir=$ac_top_builddir_sub
16628 ac_abs_top_srcdir=$ac_pwd ;;
16629 [\\/]* | ?:[\\/]* ) # Absolute name.
16630 ac_srcdir=$srcdir$ac_dir_suffix;
16631 ac_top_srcdir=$srcdir
16632 ac_abs_top_srcdir=$srcdir ;;
16633 *) # Relative name.
16634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16635 ac_top_srcdir=$ac_top_build_prefix$srcdir
16636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16651 ac_MKDIR_P=$MKDIR_P
16653 [\\/$]* | ?:[\\/]* ) ;;
16654 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16659 # If the template does not know about datarootdir, expand it.
16660 # FIXME: This hack should be removed a few years after 2.60.
16661 ac_datarootdir_hack=; ac_datarootdir_seen=
16672 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16673 *datarootdir*) ac_datarootdir_seen=yes;;
16674 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16676 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16679 ac_datarootdir_hack='
16680 s&@datadir@&$datadir&g
16681 s&@docdir@&$docdir&g
16682 s&@infodir@&$infodir&g
16683 s&@localedir@&$localedir&g
16684 s&@mandir@&$mandir&g
16685 s&\\\${datarootdir}&$datarootdir&g' ;;
16689 # Neutralize VPATH when `$srcdir' = `.'.
16690 # Shell code in configure.ac might set extrasub.
16691 # FIXME: do we really want to maintain this feature?
16692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 ac_sed_extra="$ac_vpsub
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16699 s|@configure_input@|$ac_sed_conf_input|;t t
16700 s&@top_builddir@&$ac_top_builddir_sub&;t t
16701 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16702 s&@srcdir@&$ac_srcdir&;t t
16703 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16704 s&@top_srcdir@&$ac_top_srcdir&;t t
16705 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16706 s&@builddir@&$ac_builddir&;t t
16707 s&@abs_builddir@&$ac_abs_builddir&;t t
16708 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16709 s&@INSTALL@&$ac_INSTALL&;t t
16710 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16711 $ac_datarootdir_hack
16713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16714 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16716 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16717 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16718 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16719 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16721 which seems to be undefined. Please make sure it is defined" >&5
16722 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16723 which seems to be undefined. Please make sure it is defined" >&2;}
16725 rm -f "$ac_tmp/stdin"
16727 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16728 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16736 if test x"$ac_file" != x-; then
16738 $as_echo "/* $configure_input */" \
16739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16740 } >"$ac_tmp/config.h" \
16741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16742 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16744 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16747 mv "$ac_tmp/config.h" "$ac_file" \
16748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16751 $as_echo "/* $configure_input */" \
16752 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16753 || as_fn_error $? "could not create -" "$LINENO" 5
16755 # Compute "$ac_file"'s index in $config_headers.
16758 for _am_header in $config_headers :; do
16759 case $_am_header in
16760 $_am_arg | $_am_arg:* )
16763 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16766 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16767 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768 X"$_am_arg" : 'X\(//\)[^/]' \| \
16769 X"$_am_arg" : 'X\(//\)$' \| \
16770 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16771 $as_echo X"$_am_arg" |
16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16776 /^X\(\/\/\)[^/].*/{
16788 s/.*/./; q'`/stamp-h$_am_stamp_count
16791 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16792 $as_echo "$as_me: executing $ac_file commands" >&6;}
16797 case $ac_file$ac_mode in
16798 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16799 # Older Autoconf quotes --file arguments for eval, but not when files
16800 # are listed without --file. Let's play safe and only enable the eval
16801 # if we detect the quoting.
16802 # TODO: see whether this extra hack can be removed once we start
16803 # requiring Autoconf 2.70 or later.
16804 case $CONFIG_FILES in #(
16806 eval set x "$CONFIG_FILES" ;; #(
16808 set x $CONFIG_FILES ;; #(
16813 # Used to flag and report bootstrapping failures.
16817 # Strip MF so we end up with the name of the file.
16818 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16819 # Check whether this is an Automake generated Makefile which includes
16820 # dependency-tracking related rules and includes.
16821 # Grep'ing the whole file directly is not great: AIX grep has a line
16822 # limit of 2048, but all sed's we know have understand at least 4000.
16823 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16825 am_dirpart=`$as_dirname -- "$am_mf" ||
16826 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16827 X"$am_mf" : 'X\(//\)[^/]' \| \
16828 X"$am_mf" : 'X\(//\)$' \| \
16829 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16830 $as_echo X"$am_mf" |
16831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16835 /^X\(\/\/\)[^/].*/{
16848 am_filepart=`$as_basename -- "$am_mf" ||
16849 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16850 X"$am_mf" : 'X\(//\)$' \| \
16851 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16852 $as_echo X/"$am_mf" |
16853 sed '/^.*\/\([^/][^/]*\)\/*$/{
16866 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16867 && sed -e '/# am--include-marker/d' "$am_filepart" \
16868 | $MAKE -f - am--depfiles" >&5
16869 (cd "$am_dirpart" \
16870 && sed -e '/# am--include-marker/d' "$am_filepart" \
16871 | $MAKE -f - am--depfiles) >&5 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } || am_rc=$?
16876 if test $am_rc -ne 0; then
16877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16879 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16880 for automatic dependency tracking. Try re-running configure with the
16881 '--disable-dependency-tracking' option to at least be able to build
16882 the package (albeit without support for automatic dependency tracking).
16883 See \`config.log' for more details" "$LINENO" 5; }
16885 { am_dirpart=; unset am_dirpart;}
16886 { am_filepart=; unset am_filepart;}
16887 { am_mf=; unset am_mf;}
16888 { am_rc=; unset am_rc;}
16889 rm -f conftest-deps.mk
16894 # See if we are running on zsh, and set the options that allow our
16895 # commands through without removal of \ escapes.
16896 if test -n "${ZSH_VERSION+set}"; then
16897 setopt NO_GLOB_SUBST
16901 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16904 cat <<_LT_EOF >> "$cfgfile"
16906 # Generated automatically by $as_me ($PACKAGE) $VERSION
16907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16908 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16910 # Provide generalized library-building support services.
16911 # Written by Gordon Matzigkeit, 1996
16913 # Copyright (C) 2014 Free Software Foundation, Inc.
16914 # This is free software; see the source for copying conditions. There is NO
16915 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16917 # GNU Libtool is free software; you can redistribute it and/or modify
16918 # it under the terms of the GNU General Public License as published by
16919 # the Free Software Foundation; either version 2 of of the License, or
16920 # (at your option) any later version.
16922 # As a special exception to the GNU General Public License, if you
16923 # distribute this file as part of a program or library that is built
16924 # using GNU Libtool, you may include this file under the same
16925 # distribution terms that you use for the rest of that program.
16927 # GNU Libtool is distributed in the hope that it will be useful, but
16928 # WITHOUT ANY WARRANTY; without even the implied warranty of
16929 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16930 # GNU General Public License for more details.
16932 # You should have received a copy of the GNU General Public License
16933 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16936 # The names of the tagged configurations supported by this script.
16939 # Configured defaults for sys_lib_dlsearch_path munging.
16940 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16942 # ### BEGIN LIBTOOL CONFIG
16944 # Which release of libtool.m4 was used?
16945 macro_version=$macro_version
16946 macro_revision=$macro_revision
16948 # Whether or not to build static libraries.
16949 build_old_libs=$enable_static
16951 # What type of objects to build.
16954 # Whether or not to build shared libraries.
16955 build_libtool_libs=$enable_shared
16957 # Whether or not to optimize for fast installation.
16958 fast_install=$enable_fast_install
16960 # Shared archive member basename,for filename based shared library versioning on AIX.
16961 shared_archive_member_spec=$shared_archive_member_spec
16963 # Shell to use when invoking shell scripts.
16966 # An echo program that protects backslashes.
16969 # The PATH separator for the build system.
16970 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16973 host_alias=$host_alias
16977 # The build system.
16978 build_alias=$build_alias
16982 # A sed program that does not truncate output.
16985 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16986 Xsed="\$SED -e 1s/^X//"
16988 # A grep program that handles long lines.
16994 # A literal string matcher.
16997 # A BSD- or MS-compatible name lister.
17000 # Whether we need soft or hard links.
17003 # What is the maximum length of a command?
17004 max_cmd_len=$max_cmd_len
17006 # Object file suffix (normally "o").
17009 # Executable file suffix (normally "").
17012 # whether the shell understands "unset".
17015 # turn spaces into newlines.
17018 # turn newlines into spaces.
17021 # convert \$build file names to \$host format.
17022 to_host_file_cmd=$lt_cv_to_host_file_cmd
17024 # convert \$build files to toolchain format.
17025 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17027 # An object symbol dumper.
17028 OBJDUMP=$lt_OBJDUMP
17030 # Method to check whether dependent libraries are shared objects.
17031 deplibs_check_method=$lt_deplibs_check_method
17033 # Command to use when deplibs_check_method = "file_magic".
17034 file_magic_cmd=$lt_file_magic_cmd
17036 # How to find potential files when deplibs_check_method = "file_magic".
17037 file_magic_glob=$lt_file_magic_glob
17039 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17040 want_nocaseglob=$lt_want_nocaseglob
17042 # DLL creation program.
17043 DLLTOOL=$lt_DLLTOOL
17045 # Command to associate shared and link libraries.
17046 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17051 # Flags to create an archive.
17052 AR_FLAGS=$lt_AR_FLAGS
17054 # How to feed a file listing to the archiver.
17055 archiver_list_spec=$lt_archiver_list_spec
17057 # A symbol stripping program.
17060 # Commands used to install an old-style archive.
17062 old_postinstall_cmds=$lt_old_postinstall_cmds
17063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17065 # Whether to use a lock for old archive extraction.
17066 lock_old_archive_extraction=$lock_old_archive_extraction
17071 # LTCC compiler flags.
17072 LTCFLAGS=$lt_CFLAGS
17074 # Take the output of nm and produce a listing of raw symbols and C names.
17075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17077 # Transform the output of nm in a proper C declaration.
17078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17080 # Transform the output of nm into a list of symbols to manually relocate.
17081 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17083 # Transform the output of nm in a C name address pair.
17084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17086 # Transform the output of nm in a C name address pair when lib prefix is needed.
17087 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17089 # The name lister interface.
17090 nm_interface=$lt_lt_cv_nm_interface
17092 # Specify filename containing input files for \$NM.
17093 nm_file_list_spec=$lt_nm_file_list_spec
17095 # The root where to search for dependent libraries,and where our libraries should be installed.
17096 lt_sysroot=$lt_sysroot
17098 # Command to truncate a binary pipe.
17099 lt_truncate_bin=$lt_lt_cv_truncate_bin
17101 # The name of the directory that contains temporary libtool files.
17104 # Used to examine libraries when file_magic_cmd begins with "file".
17105 MAGIC_CMD=$MAGIC_CMD
17107 # Must we lock files when doing compilation?
17108 need_locks=$lt_need_locks
17111 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17113 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17114 DSYMUTIL=$lt_DSYMUTIL
17116 # Tool to change global to local symbols on Mac OS X.
17119 # Tool to manipulate fat objects and archives on Mac OS X.
17122 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17125 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17126 OTOOL64=$lt_OTOOL64
17128 # Old archive suffix (normally "a").
17131 # Shared library suffix (normally ".so").
17132 shrext_cmds=$lt_shrext_cmds
17134 # The commands to extract the exported symbol list from a shared archive.
17135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17137 # Variables whose values should be saved in libtool wrapper scripts and
17138 # restored at link time.
17139 variables_saved_for_relink=$lt_variables_saved_for_relink
17141 # Do we need the "lib" prefix for modules?
17142 need_lib_prefix=$need_lib_prefix
17144 # Do we need a version for libraries?
17145 need_version=$need_version
17147 # Library versioning type.
17148 version_type=$version_type
17150 # Shared library runtime path variable.
17151 runpath_var=$runpath_var
17153 # Shared library path variable.
17154 shlibpath_var=$shlibpath_var
17156 # Is shlibpath searched before the hard-coded library search path?
17157 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17159 # Format of library name prefix.
17160 libname_spec=$lt_libname_spec
17162 # List of archive names. First name is the real one, the rest are links.
17163 # The last name is the one that the linker finds with -lNAME
17164 library_names_spec=$lt_library_names_spec
17166 # The coded name of the library, if different from the real name.
17167 soname_spec=$lt_soname_spec
17169 # Permission mode override for installation of shared libraries.
17170 install_override_mode=$lt_install_override_mode
17172 # Command to use after installation of a shared archive.
17173 postinstall_cmds=$lt_postinstall_cmds
17175 # Command to use after uninstallation of a shared archive.
17176 postuninstall_cmds=$lt_postuninstall_cmds
17178 # Commands used to finish a libtool library installation in a directory.
17179 finish_cmds=$lt_finish_cmds
17181 # As "finish_cmds", except a single script fragment to be evaled but
17183 finish_eval=$lt_finish_eval
17185 # Whether we should hardcode library paths into libraries.
17186 hardcode_into_libs=$hardcode_into_libs
17188 # Compile-time system search path for libraries.
17189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17191 # Detected run-time system search path for libraries.
17192 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17194 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17195 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17197 # Whether dlopen is supported.
17198 dlopen_support=$enable_dlopen
17200 # Whether dlopen of programs is supported.
17201 dlopen_self=$enable_dlopen_self
17203 # Whether dlopen of statically linked programs is supported.
17204 dlopen_self_static=$enable_dlopen_self_static
17206 # Commands to strip libraries.
17207 old_striplib=$lt_old_striplib
17208 striplib=$lt_striplib
17211 # The linker used to build libraries.
17214 # How to create reloadable object files.
17215 reload_flag=$lt_reload_flag
17216 reload_cmds=$lt_reload_cmds
17218 # Commands used to build an old-style archive.
17219 old_archive_cmds=$lt_old_archive_cmds
17221 # A language specific compiler.
17224 # Is the compiler the GNU compiler?
17227 # Compiler flag to turn off builtin functions.
17228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17230 # Additional compiler flags for building library objects.
17231 pic_flag=$lt_lt_prog_compiler_pic
17233 # How to pass a linker flag through the compiler.
17234 wl=$lt_lt_prog_compiler_wl
17236 # Compiler flag to prevent dynamic linking.
17237 link_static_flag=$lt_lt_prog_compiler_static
17239 # Does compiler simultaneously support -c and -o options?
17240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17242 # Whether or not to add -lc for building shared libraries.
17243 build_libtool_need_lc=$archive_cmds_need_lc
17245 # Whether or not to disallow shared libs when runtime libs are static.
17246 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17248 # Compiler flag to allow reflexive dlopens.
17249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17251 # Compiler flag to generate shared objects directly from archives.
17252 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17254 # Whether the compiler copes with passing no objects directly.
17255 compiler_needs_object=$lt_compiler_needs_object
17257 # Create an old-style archive from a shared archive.
17258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17260 # Create a temporary old-style archive to link instead of a shared archive.
17261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17263 # Commands used to build a shared archive.
17264 archive_cmds=$lt_archive_cmds
17265 archive_expsym_cmds=$lt_archive_expsym_cmds
17267 # Commands used to build a loadable module if different from building
17268 # a shared archive.
17269 module_cmds=$lt_module_cmds
17270 module_expsym_cmds=$lt_module_expsym_cmds
17272 # Whether we are building with GNU ld or not.
17273 with_gnu_ld=$lt_with_gnu_ld
17275 # Flag that allows shared libraries with undefined symbols to be built.
17276 allow_undefined_flag=$lt_allow_undefined_flag
17278 # Flag that enforces no undefined symbols.
17279 no_undefined_flag=$lt_no_undefined_flag
17281 # Flag to hardcode \$libdir into a binary during linking.
17282 # This must work even if \$libdir does not exist
17283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17285 # Whether we need a single "-rpath" flag with a separated argument.
17286 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17288 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17289 # DIR into the resulting binary.
17290 hardcode_direct=$hardcode_direct
17292 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17293 # DIR into the resulting binary and the resulting library dependency is
17294 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17295 # library is relocated.
17296 hardcode_direct_absolute=$hardcode_direct_absolute
17298 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17299 # into the resulting binary.
17300 hardcode_minus_L=$hardcode_minus_L
17302 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17303 # into the resulting binary.
17304 hardcode_shlibpath_var=$hardcode_shlibpath_var
17306 # Set to "yes" if building a shared library automatically hardcodes DIR
17307 # into the library and all subsequent libraries and executables linked
17309 hardcode_automatic=$hardcode_automatic
17311 # Set to yes if linker adds runtime paths of dependent libraries
17312 # to runtime path list.
17313 inherit_rpath=$inherit_rpath
17315 # Whether libtool must link a program against all its dependency libraries.
17316 link_all_deplibs=$link_all_deplibs
17318 # Set to "yes" if exported symbols are required.
17319 always_export_symbols=$always_export_symbols
17321 # The commands to list exported symbols.
17322 export_symbols_cmds=$lt_export_symbols_cmds
17324 # Symbols that should not be listed in the preloaded symbols.
17325 exclude_expsyms=$lt_exclude_expsyms
17327 # Symbols that must always be exported.
17328 include_expsyms=$lt_include_expsyms
17330 # Commands necessary for linking programs (against libraries) with templates.
17331 prelink_cmds=$lt_prelink_cmds
17333 # Commands necessary for finishing linking programs.
17334 postlink_cmds=$lt_postlink_cmds
17336 # Specify filename containing input files.
17337 file_list_spec=$lt_file_list_spec
17339 # How to hardcode a shared library path into an executable.
17340 hardcode_action=$hardcode_action
17342 # ### END LIBTOOL CONFIG
17346 cat <<'_LT_EOF' >> "$cfgfile"
17348 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17350 # func_munge_path_list VARIABLE PATH
17351 # -----------------------------------
17352 # VARIABLE is name of variable containing _space_ separated list of
17353 # directories to be munged by the contents of PATH, which is string
17356 # string "DIR[ DIR]" will be prepended to VARIABLE
17358 # string "DIR[ DIR]" will be appended to VARIABLE
17359 # "DIRP[:DIRP]::[DIRA:]DIRA"
17360 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17361 # "DIRA[ DIRA]" will be appended to VARIABLE
17363 # VARIABLE will be replaced by "DIR[ DIR]"
17364 func_munge_path_list ()
17370 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17373 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17376 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17377 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17380 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17386 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17387 func_cc_basename ()
17389 for cc_temp in $*""; do
17391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17397 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17401 # ### END FUNCTIONS SHARED WITH CONFIGURE
17407 cat <<\_LT_EOF >> "$cfgfile"
17408 # AIX sometimes has problems with the GCC collect2 program. For some
17409 # reason, if we set the COLLECT_NAMES environment variable, the problems
17410 # vanish in a puff of smoke.
17411 if test set != "${COLLECT_NAMES+set}"; then
17413 export COLLECT_NAMES
17420 ltmain=$ac_aux_dir/ltmain.sh
17423 # We use sed instead of cat because bash on DJGPP gets confused if
17424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17425 # text mode, it properly converts lines to CR/LF. This bash problem
17426 # is reportedly fixed, but why not run on old versions too?
17427 sed '$q' "$ltmain" >> "$cfgfile" \
17428 || (rm -f "$cfgfile"; exit 1)
17430 mv -f "$cfgfile" "$ofile" ||
17431 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17442 ac_clean_files=$ac_clean_files_save
17444 test $ac_write_fail = 0 ||
17445 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17448 # configure is writing to config.log, and then calls config.status.
17449 # config.status does its own redirection, appending to config.log.
17450 # Unfortunately, on DOS this fails, as config.log is still kept open
17451 # by configure, so config.status won't be able to write to it; its
17452 # output is simply discarded. So we exec the FD to /dev/null,
17453 # effectively closing config.log, so it can be properly (re)opened and
17454 # appended to by config.status. When coming back to configure, we
17455 # need to make the FD available again.
17456 if test "$no_create" != yes; then
17458 ac_config_status_args=
17459 test "$silent" = yes &&
17460 ac_config_status_args="$ac_config_status_args --quiet"
17462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17465 # would make configure fail if this is the last instruction.
17466 $ac_cs_success || as_fn_exit 1
17468 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17470 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}