2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.41.
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.41'
594 PACKAGE_STRING='file 5.41'
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.41 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.41:";;
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.41, 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
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3448 if test -z "$ac_cv_prog_CC"; then
3450 # Extract the first word of "gcc", so it can be a program name with args.
3451 set dummy gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3486 if test "x$ac_ct_CC" = x; then
3489 case $cross_compiling:$ac_tool_warned in
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3501 if test -z "$CC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="${ac_tool_prefix}cc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3542 if test -z "$CC"; then
3543 # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_CC+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562 ac_prog_rejected=yes
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test $ac_prog_rejected = yes; then
3574 # We found a bogon in the path, so make sure we never use it.
3575 set dummy $ac_cv_prog_CC
3577 if test $# != 0; then
3578 # We chose a different compiler from the bogus one.
3579 # However, it has the same basename, so the bogon will be chosen
3580 # first if we set CC to just the basename; use the full file name.
3582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3588 if test -n "$CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in cl.exe
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$CC" && break
3642 if test -z "$CC"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CC="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$ac_ct_CC" && break
3686 if test "x$ac_ct_CC" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "no acceptable C compiler found in \$PATH
3705 See \`config.log' for more details" "$LINENO" 5; }
3707 # Provide some information about the compiler.
3708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711 for ac_option in --version -v -V -qversion; do
3712 { { ac_try="$ac_compiler $ac_option >&5"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3721 if test -s conftest.err; then
3723 ... rest of stderr output deleted ...
3724 10q' conftest.err >conftest.er1
3725 cat conftest.er1 >&5
3727 rm -f conftest.er1 conftest.err
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 ac_clean_files_save=$ac_clean_files
3744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3745 # Try to create an executable without -o first, disregard a.out.
3746 # It will help us diagnose broken compilers, and finding out an intuition
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3749 $as_echo_n "checking whether the C compiler works... " >&6; }
3750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3752 # The possible output files:
3753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756 for ac_file in $ac_files
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3765 if { { ac_try="$ac_link_default"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_link_default") 2>&5
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3779 # so that the user can short-circuit this test for compilers unknown to
3781 for ac_file in $ac_files ''
3783 test -f "$ac_file" || continue
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788 # We found the default executable, but exeext='' is most
3792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796 # We set ac_cv_exeext here because the later test for it is not
3797 # safe: cross compilers may not add the suffix if given an `-o'
3798 # argument, so we may need to know it at that point already.
3799 # Even if this section looks crufty: it has the advantage of
3806 test "$ac_cv_exeext" = no && ac_cv_exeext=
3811 if test -z "$ac_file"; then :
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error 77 "C compiler cannot create executables
3820 See \`config.log' for more details" "$LINENO" 5; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3828 $as_echo "$ac_file" >&6; }
3829 ac_exeext=$ac_cv_exeext
3831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3832 ac_clean_files=$ac_clean_files_save
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3834 $as_echo_n "checking for suffix of executables... " >&6; }
3835 if { { ac_try="$ac_link"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_link") 2>&5
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; then :
3846 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3847 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3848 # work properly (i.e., refer to `conftest.exe'), while it won't with
3850 for ac_file in conftest.exe conftest conftest.*; do
3851 test -f "$ac_file" || continue
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 rm -f conftest conftest$ac_cv_exeext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3867 $as_echo "$ac_cv_exeext" >&6; }
3869 rm -f conftest.$ac_ext
3870 EXEEXT=$ac_cv_exeext
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3878 FILE *f = fopen ("conftest.out", "w");
3879 return ferror (f) || fclose (f) != 0;
3885 ac_clean_files="$ac_clean_files conftest.out"
3886 # Check that the compiler produces executables we can run. If not, either
3887 # the compiler is broken, or we cross compile.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3889 $as_echo_n "checking whether we are cross compiling... " >&6; }
3890 if test "$cross_compiling" != yes; then
3891 { { ac_try="$ac_link"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 if { ac_try='./conftest$ac_cv_exeext'
3903 { { case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_try") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; }; then
3915 if test "$cross_compiling" = maybe; then
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot run C compiled programs.
3921 If you meant to cross compile, use \`--host'.
3922 See \`config.log' for more details" "$LINENO" 5; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3927 $as_echo "$cross_compiling" >&6; }
3929 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3932 $as_echo_n "checking for suffix of object files... " >&6; }
3933 if ${ac_cv_objext+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 rm -f conftest.o conftest.obj
3948 if { { ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_compile") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; then :
3959 for ac_file in conftest.o conftest.obj conftest.*; do
3960 test -f "$ac_file" || continue;
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot compute suffix of object files: cannot compile
3974 See \`config.log' for more details" "$LINENO" 5; }
3976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3979 $as_echo "$ac_cv_objext" >&6; }
3980 OBJEXT=$ac_cv_objext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if ${ac_cv_c_compiler_gnu+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
4001 if ac_fn_c_try_compile "$LINENO"; then :
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4012 if test $ac_compiler_gnu = yes; then
4017 ac_test_CFLAGS=${CFLAGS+set}
4018 ac_save_CFLAGS=$CFLAGS
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4021 if ${ac_cv_prog_cc_g+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 ac_save_c_werror_flag=$ac_c_werror_flag
4025 ac_c_werror_flag=yes
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4081 $as_echo "$ac_cv_prog_cc_g" >&6; }
4082 if test "$ac_test_CFLAGS" = set; then
4083 CFLAGS=$ac_save_CFLAGS
4084 elif test $ac_cv_prog_cc_g = yes; then
4085 if test "$GCC" = yes; then
4091 if test "$GCC" = yes; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4099 if ${ac_cv_prog_cc_c89+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 ac_cv_prog_cc_c89=no
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4200 if ${am_cv_prog_cc_c_o+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4214 # Make sure it works both with $CC and with simple cc.
4215 # Following AC_PROG_CC_C_O, we do the test twice because some
4216 # compilers refuse to overwrite an existing .o file with -o,
4217 # though they will create one.
4218 am_cv_prog_cc_c_o=yes
4220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } \
4225 && test -f conftest2.$ac_objext; then
4228 am_cv_prog_cc_c_o=no
4232 rm -f core conftest*
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4237 if test "$am_cv_prog_cc_c_o" != yes; then
4238 # Losing compiler, so override with the script.
4239 # FIXME: It is wrong to rewrite CC.
4240 # But if we don't then we get into trouble of one sort or another.
4241 # A longer-term fix would be to have automake use am__CC in this case,
4242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4243 CC="$am_aux_dir/compile $CC"
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 DEPDIR="${am__leading_dot}deps"
4253 ac_config_commands="$ac_config_commands depfiles"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4256 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4257 cat > confinc.mk << 'END'
4259 @echo this is the am__doit target >confinc.out
4264 # BSD make does it like this.
4265 echo '.include "confinc.mk" # ignored' > confmf.BSD
4266 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4267 echo 'include confinc.mk # ignored' > confmf.GNU
4269 for s in GNU BSD; do
4270 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4271 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }
4275 case $?:`cat confinc.out 2>/dev/null` in #(
4276 '0:this is the am__doit target') :
4279 am__include='.include' am__quote='"' ;; #(
4281 am__include='include' am__quote='' ;;
4286 if test "$am__include" != "#"; then
4287 _am_result="yes ($s style)"
4291 rm -f confinc.* confmf.*
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4293 $as_echo "${_am_result}" >&6; }
4295 # Check whether --enable-dependency-tracking was given.
4296 if test "${enable_dependency_tracking+set}" = set; then :
4297 enableval=$enable_dependency_tracking;
4300 if test "x$enable_dependency_tracking" != xno; then
4301 am_depcomp="$ac_aux_dir/depcomp"
4305 if test "x$enable_dependency_tracking" != xno; then
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=
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4450 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4451 # On Suns, sometimes $CPP names a directory.
4452 if test -n "$CPP" && test -d "$CPP"; then
4455 if test -z "$CPP"; then
4456 if ${ac_cv_prog_CPP+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 # Double quotes because CPP needs to be expanded
4460 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4463 for ac_c_preproc_warn_flag in '' yes
4465 # Use a header file that comes with gcc, so configuring glibc
4466 # with a fresh cross-compiler works.
4467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4468 # <limits.h> exists even on freestanding compilers.
4469 # On the NeXT, cc -E runs the code through the compiler's parser,
4470 # not just through cpp. "Syntax error" is here to catch this case.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4474 # include <limits.h>
4476 # include <assert.h>
4480 if ac_fn_c_try_cpp "$LINENO"; then :
4483 # Broken: fails on valid input.
4486 rm -f conftest.err conftest.i conftest.$ac_ext
4488 # OK, works on sane cases. Now check whether nonexistent headers
4489 # can be detected and how.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <ac_nonexistent.h>
4494 if ac_fn_c_try_cpp "$LINENO"; then :
4495 # Broken: success on invalid input.
4498 # Passes both tests.
4502 rm -f conftest.err conftest.i conftest.$ac_ext
4505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506 rm -f conftest.i conftest.err conftest.$ac_ext
4507 if $ac_preproc_ok; then :
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4520 $as_echo "$CPP" >&6; }
4522 for ac_c_preproc_warn_flag in '' yes
4524 # Use a header file that comes with gcc, so configuring glibc
4525 # with a fresh cross-compiler works.
4526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 # <limits.h> exists even on freestanding compilers.
4528 # On the NeXT, cc -E runs the code through the compiler's parser,
4529 # not just through cpp. "Syntax error" is here to catch this case.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4533 # include <limits.h>
4535 # include <assert.h>
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4542 # Broken: fails on valid input.
4545 rm -f conftest.err conftest.i conftest.$ac_ext
4547 # OK, works on sane cases. Now check whether nonexistent headers
4548 # can be detected and how.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <ac_nonexistent.h>
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4554 # Broken: success on invalid input.
4557 # Passes both tests.
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.i conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then :
4569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details" "$LINENO" 5; }
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if ${ac_cv_path_GREP+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -z "$GREP"; then
4588 ac_path_GREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in grep ggrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598 as_fn_executable_p "$ac_path_GREP" || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600 # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4606 $as_echo_n 0123456789 >"conftest.in"
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'GREP' >> "conftest.nl"
4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_GREP="$ac_path_GREP"
4619 ac_path_GREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 $ac_path_GREP_found && break 3
4632 if test -z "$ac_cv_path_GREP"; then
4633 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 ac_cv_path_GREP=$GREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642 GREP="$ac_cv_path_GREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if ${ac_cv_path_EGREP+:} false; then :
4648 $as_echo_n "(cached) " >&6
4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651 then ac_cv_path_EGREP="$GREP -E"
4653 if test -z "$EGREP"; then
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 as_fn_executable_p "$ac_path_EGREP" || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4672 $as_echo_n 0123456789 >"conftest.in"
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 $ac_path_EGREP_found && break 3
4698 if test -z "$ac_cv_path_EGREP"; then
4699 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702 ac_cv_path_EGREP=$EGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709 EGREP="$ac_cv_path_EGREP"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4713 $as_echo_n "checking for ANSI C header files... " >&6; }
4714 if ${ac_cv_header_stdc+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733 ac_cv_header_stdc=yes
4735 ac_cv_header_stdc=no
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 if test $ac_cv_header_stdc = yes; then
4740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747 $EGREP "memchr" >/dev/null 2>&1; then :
4750 ac_cv_header_stdc=no
4756 if test $ac_cv_header_stdc = yes; then
4757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4764 $EGREP "free" >/dev/null 2>&1; then :
4767 ac_cv_header_stdc=no
4773 if test $ac_cv_header_stdc = yes; then
4774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4775 if test "$cross_compiling" = yes; then :
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4782 #if ((' ' & 0x0FF) == 0x020)
4783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4786 # define ISLOWER(c) \
4787 (('a' <= (c) && (c) <= 'i') \
4788 || ('j' <= (c) && (c) <= 'r') \
4789 || ('s' <= (c) && (c) <= 'z'))
4790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4798 for (i = 0; i < 256; i++)
4799 if (XOR (islower (i), ISLOWER (i))
4800 || toupper (i) != TOUPPER (i))
4805 if ac_fn_c_try_run "$LINENO"; then :
4808 ac_cv_header_stdc=no
4810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4811 conftest.$ac_objext conftest.beam conftest.$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4817 $as_echo "$ac_cv_header_stdc" >&6; }
4818 if test $ac_cv_header_stdc = yes; then
4820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4824 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4826 inttypes.h stdint.h unistd.h
4828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4832 cat >>confdefs.h <<_ACEOF
4833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4842 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4843 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4850 if test "$MINIX" = yes; then
4852 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4855 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4858 $as_echo "#define _MINIX 1" >>confdefs.h
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4864 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4865 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4871 # define __EXTENSIONS__ 1
4872 $ac_includes_default
4881 if ac_fn_c_try_compile "$LINENO"; then :
4882 ac_cv_safe_to_define___extensions__=yes
4884 ac_cv_safe_to_define___extensions__=no
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4890 test $ac_cv_safe_to_define___extensions__ = yes &&
4891 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4893 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4895 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4897 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4899 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4904 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4905 if ${ac_cv_c_bigendian+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_cv_c_bigendian=unknown
4909 # See if we're dealing with a universal compiler.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #ifndef __APPLE_CC__
4913 not a universal capable compiler
4918 if ac_fn_c_try_compile "$LINENO"; then :
4920 # Check for potential -arch flags. It is not universal unless
4921 # there are at least two -arch flags with different values.
4924 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4925 if test -n "$ac_prev"; then
4927 i?86 | x86_64 | ppc | ppc64)
4928 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4931 ac_cv_c_bigendian=universal
4937 elif test "x$ac_word" = "x-arch"; then
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 if test $ac_cv_c_bigendian = unknown; then
4944 # See if sys/param.h defines the BYTE_ORDER macro.
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #include <sys/types.h>
4948 #include <sys/param.h>
4953 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4954 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 # It does; now see whether it defined to BIG_ENDIAN or not.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <sys/types.h>
4968 #include <sys/param.h>
4973 #if BYTE_ORDER != BIG_ENDIAN
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_c_bigendian=yes
4984 ac_cv_c_bigendian=no
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 if test $ac_cv_c_bigendian = unknown; then
4991 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4999 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 # It does; now see whether it defined to _BIG_ENDIAN or not.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_cv_c_bigendian=yes
5027 ac_cv_c_bigendian=no
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 if test $ac_cv_c_bigendian = unknown; then
5034 # Compile a test program.
5035 if test "$cross_compiling" = yes; then :
5036 # Try to guess by grepping values from an object file.
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 short int ascii_mm[] =
5040 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5041 short int ascii_ii[] =
5042 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5043 int use_ascii (int i) {
5044 return ascii_mm[i] + ascii_ii[i];
5046 short int ebcdic_ii[] =
5047 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5048 short int ebcdic_mm[] =
5049 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5050 int use_ebcdic (int i) {
5051 return ebcdic_mm[i] + ebcdic_ii[i];
5058 return use_ascii (foo) == use_ebcdic (foo);
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5065 ac_cv_c_bigendian=yes
5067 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5068 if test "$ac_cv_c_bigendian" = unknown; then
5069 ac_cv_c_bigendian=no
5071 # finding both strings is unlikely to happen, but who knows?
5072 ac_cv_c_bigendian=unknown
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 $ac_includes_default
5085 /* Are we little or big endian? From Harbison&Steele. */
5089 char c[sizeof (long int)];
5092 return u.c[sizeof (long int) - 1] == 1;
5098 if ac_fn_c_try_run "$LINENO"; then :
5099 ac_cv_c_bigendian=no
5101 ac_cv_c_bigendian=yes
5103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5104 conftest.$ac_objext conftest.beam conftest.$ac_ext
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5110 $as_echo "$ac_cv_c_bigendian" >&6; }
5111 case $ac_cv_c_bigendian in #(
5113 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5119 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5123 as_fn_error $? "unknown endianness
5124 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5129 $as_echo_n "checking whether ln -s works... " >&6; }
5131 if test "$LN_S" = "ln -s"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133 $as_echo "yes" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5136 $as_echo "no, using $LN_S" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5142 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5147 macro_version='2.4.6'
5148 macro_revision='2.4.6'
5162 ltmain=$ac_aux_dir/ltmain.sh
5164 # Backslashify metacharacters that are still active within
5165 # double-quoted strings.
5166 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5168 # Same as above, but do not quote variable references.
5169 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5171 # Sed substitution to delay expansion of an escaped shell variable in a
5172 # double_quote_subst'ed string.
5173 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5175 # Sed substitution to delay expansion of an escaped single quote.
5176 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5178 # Sed substitution to avoid accidental globbing in evaled expressions
5179 no_glob_subst='s/\*/\\\*/g'
5181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5186 $as_echo_n "checking how to print strings... " >&6; }
5187 # Test print first, because it will be a builtin if present.
5188 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5189 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5191 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5194 # Use this function as a fallback that always works.
5195 func_fallback_echo ()
5197 eval 'cat <<_LTECHO_EOF
5201 ECHO='func_fallback_echo'
5204 # func_echo_all arg...
5205 # Invoke $ECHO with all args, space-separated.
5212 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5213 $as_echo "printf" >&6; } ;;
5214 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5215 $as_echo "print -r" >&6; } ;;
5216 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5217 $as_echo "cat" >&6; } ;;
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5234 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5235 if ${ac_cv_path_SED+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5239 for ac_i in 1 2 3 4 5 6 7; do
5240 ac_script="$ac_script$as_nl$ac_script"
5242 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5243 { ac_script=; unset ac_script;}
5244 if test -z "$SED"; then
5245 ac_path_SED_found=false
5246 # Loop through the user's path and test for each of PROGNAME-LIST
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_prog in sed gsed; do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_SED" || continue
5256 # Check for GNU ac_path_SED and select it if it is found.
5257 # Check for GNU $ac_path_SED
5258 case `"$ac_path_SED" --version 2>&1` in
5260 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5263 $as_echo_n 0123456789 >"conftest.in"
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 $as_echo '' >> "conftest.nl"
5270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_SED_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_SED="$ac_path_SED"
5276 ac_path_SED_max=$ac_count
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5284 $ac_path_SED_found && break 3
5289 if test -z "$ac_cv_path_SED"; then
5290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5298 $as_echo "$ac_cv_path_SED" >&6; }
5299 SED="$ac_cv_path_SED"
5302 test -z "$SED" && SED=sed
5303 Xsed="$SED -e 1s/^X//"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5316 $as_echo_n "checking for fgrep... " >&6; }
5317 if ${ac_cv_path_FGREP+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5321 then ac_cv_path_FGREP="$GREP -F"
5323 if test -z "$FGREP"; then
5324 ac_path_FGREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 test -z "$as_dir" && as_dir=.
5331 for ac_prog in fgrep; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5334 as_fn_executable_p "$ac_path_FGREP" || continue
5335 # Check for GNU ac_path_FGREP and select it if it is found.
5336 # Check for GNU $ac_path_FGREP
5337 case `"$ac_path_FGREP" --version 2>&1` in
5339 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5342 $as_echo_n 0123456789 >"conftest.in"
5345 cat "conftest.in" "conftest.in" >"conftest.tmp"
5346 mv "conftest.tmp" "conftest.in"
5347 cp "conftest.in" "conftest.nl"
5348 $as_echo 'FGREP' >> "conftest.nl"
5349 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351 as_fn_arith $ac_count + 1 && ac_count=$as_val
5352 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5353 # Best one so far, save it but keep looking for a better one
5354 ac_cv_path_FGREP="$ac_path_FGREP"
5355 ac_path_FGREP_max=$ac_count
5357 # 10*(2^10) chars as input seems more than enough
5358 test $ac_count -gt 10 && break
5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363 $ac_path_FGREP_found && break 3
5368 if test -z "$ac_cv_path_FGREP"; then
5369 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5372 ac_cv_path_FGREP=$FGREP
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5378 $as_echo "$ac_cv_path_FGREP" >&6; }
5379 FGREP="$ac_cv_path_FGREP"
5382 test -z "$GREP" && GREP=grep
5402 # Check whether --with-gnu-ld was given.
5403 if test "${with_gnu_ld+set}" = set; then :
5404 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5410 if test yes = "$GCC"; then
5411 # Check if gcc -print-prog-name=ld gives a path.
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5413 $as_echo_n "checking for ld used by $CC... " >&6; }
5416 # gcc leaves a trailing carriage return, which upsets mingw
5417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5422 # Accept absolute paths.
5424 re_direlt='/[^/][^/]*/\.\./'
5425 # Canonicalize the pathname of ld
5426 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5427 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5428 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5430 test -z "$LD" && LD=$ac_prog
5433 # If it fails, then pretend we aren't using GCC.
5437 # If it is relative, then search for the first ld in PATH.
5441 elif test yes = "$with_gnu_ld"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5443 $as_echo_n "checking for GNU ld... " >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5446 $as_echo_n "checking for non-GNU ld... " >&6; }
5448 if ${lt_cv_path_LD+:} false; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -z "$LD"; then
5452 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5453 for ac_dir in $PATH; do
5455 test -z "$ac_dir" && ac_dir=.
5456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5457 lt_cv_path_LD=$ac_dir/$ac_prog
5458 # Check to see if the program is GNU ld. I'd rather use --version,
5459 # but apparently some variants of GNU ld only accept -v.
5460 # Break only if it was the GNU/non-GNU ld that we prefer.
5461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5462 *GNU* | *'with BFD'*)
5463 test no != "$with_gnu_ld" && break
5466 test yes != "$with_gnu_ld" && break
5473 lt_cv_path_LD=$LD # Let the user override the test with a path.
5478 if test -n "$LD"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5480 $as_echo "$LD" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5485 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5487 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5488 if ${lt_cv_prog_gnu_ld+:} false; then :
5489 $as_echo_n "(cached) " >&6
5491 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5492 case `$LD -v 2>&1 </dev/null` in
5493 *GNU* | *'with BFD'*)
5494 lt_cv_prog_gnu_ld=yes
5497 lt_cv_prog_gnu_ld=no
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5502 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5503 with_gnu_ld=$lt_cv_prog_gnu_ld
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5514 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5515 if ${lt_cv_path_NM+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$NM"; then
5519 # Let the user override the test.
5522 lt_nm_to_check=${ac_tool_prefix}nm
5523 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5524 lt_nm_to_check="$lt_nm_to_check nm"
5526 for lt_tmp_nm in $lt_nm_to_check; do
5527 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5528 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5530 test -z "$ac_dir" && ac_dir=.
5531 tmp_nm=$ac_dir/$lt_tmp_nm
5532 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5533 # Check to see if the nm accepts a BSD-compat flag.
5534 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5535 # nm: unknown option "B" ignored
5536 # Tru64's nm complains that /dev/null is an invalid object file
5537 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5539 mingw*) lt_bad_file=conftest.nm/nofile ;;
5540 *) lt_bad_file=/dev/null ;;
5542 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5543 *$lt_bad_file* | *'Invalid file or object type'*)
5544 lt_cv_path_NM="$tmp_nm -B"
5548 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5550 lt_cv_path_NM="$tmp_nm -p"
5554 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5555 continue # so that we can try to find one that supports BSD flags
5564 : ${lt_cv_path_NM=no}
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5568 $as_echo "$lt_cv_path_NM" >&6; }
5569 if test no != "$lt_cv_path_NM"; then
5572 # Didn't find any BSD compatible name lister, look for dumpbin.
5573 if test -n "$DUMPBIN"; then :
5574 # Let the user override the test.
5576 if test -n "$ac_tool_prefix"; then
5577 for ac_prog in dumpbin "link -dump"
5579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_DUMPBIN+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$DUMPBIN"; then
5587 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 DUMPBIN=$ac_cv_prog_DUMPBIN
5607 if test -n "$DUMPBIN"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5609 $as_echo "$DUMPBIN" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5616 test -n "$DUMPBIN" && break
5619 if test -z "$DUMPBIN"; then
5620 ac_ct_DUMPBIN=$DUMPBIN
5621 for ac_prog in dumpbin "link -dump"
5623 # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$ac_ct_DUMPBIN"; then
5631 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5651 if test -n "$ac_ct_DUMPBIN"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653 $as_echo "$ac_ct_DUMPBIN" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 test -n "$ac_ct_DUMPBIN" && break
5663 if test "x$ac_ct_DUMPBIN" = x; then
5666 case $cross_compiling:$ac_tool_warned in
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5672 DUMPBIN=$ac_ct_DUMPBIN
5676 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5678 DUMPBIN="$DUMPBIN -symbols -headers"
5686 if test : != "$DUMPBIN"; then
5690 test -z "$NM" && NM=nm
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5699 if ${lt_cv_nm_interface+:} false; then :
5700 $as_echo_n "(cached) " >&6
5702 lt_cv_nm_interface="BSD nm"
5703 echo "int some_variable = 0;" > conftest.$ac_ext
5704 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5705 (eval "$ac_compile" 2>conftest.err)
5706 cat conftest.err >&5
5707 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5709 cat conftest.err >&5
5710 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5711 cat conftest.out >&5
5712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5713 lt_cv_nm_interface="MS dumpbin"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5718 $as_echo "$lt_cv_nm_interface" >&6; }
5720 # find the maximum length of command line arguments
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5722 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5723 if ${lt_cv_sys_max_cmd_len+:} false; then :
5724 $as_echo_n "(cached) " >&6
5731 # On DJGPP, this test can blow up pretty badly due to problems in libc
5732 # (any single argument exceeding 2000 bytes causes a buffer overrun
5733 # during glob expansion). Even if it were fixed, the result of this
5734 # check would be larger than it should be.
5735 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5739 # Under GNU Hurd, this test is not required because there is
5740 # no limit to the length of command line arguments.
5741 # Libtool will interpret -1 as no limit whatsoever
5742 lt_cv_sys_max_cmd_len=-1;
5745 cygwin* | mingw* | cegcc*)
5746 # On Win9x/ME, this test blows up -- it succeeds, but takes
5747 # about 5 minutes as the teststring grows exponentially.
5748 # Worse, since 9x/ME are not pre-emptively multitasking,
5749 # you end up with a "frozen" computer, even though with patience
5750 # the test eventually succeeds (with a max line length of 256k).
5751 # Instead, let's just punt: use the minimum linelength reported by
5752 # all of the supported platforms: 8192 (on NT/2K/XP).
5753 lt_cv_sys_max_cmd_len=8192;
5757 # On MiNT this can take a long time and run out of memory.
5758 lt_cv_sys_max_cmd_len=8192;
5762 # On AmigaOS with pdksh, this test takes hours, literally.
5763 # So we just punt and use a minimum line length of 8192.
5764 lt_cv_sys_max_cmd_len=8192;
5767 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5768 # This has been around since 386BSD, at least. Likely further.
5769 if test -x /sbin/sysctl; then
5770 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5771 elif test -x /usr/sbin/sysctl; then
5772 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5774 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5776 # And add a safety zone
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5782 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5783 lt_cv_sys_max_cmd_len=196608
5787 # The test takes a long time on OS/2.
5788 lt_cv_sys_max_cmd_len=8192
5792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5794 # nice to cause kernel panics so lets avoid the loop below.
5795 # First set a reasonable default.
5796 lt_cv_sys_max_cmd_len=16384
5798 if test -x /sbin/sysconfig; then
5799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5800 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5805 lt_cv_sys_max_cmd_len=102400
5807 sysv5* | sco5v6* | sysv4.2uw2*)
5808 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5809 if test -n "$kargmax"; then
5810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5812 lt_cv_sys_max_cmd_len=32768
5816 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5817 if test -n "$lt_cv_sys_max_cmd_len" && \
5818 test undefined != "$lt_cv_sys_max_cmd_len"; then
5819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5822 # Make teststring a little bigger before we do anything with it.
5823 # a 1K string should be a reasonable start.
5824 for i in 1 2 3 4 5 6 7 8; do
5825 teststring=$teststring$teststring
5827 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5828 # If test is not a shell built-in, we'll probably end up computing a
5829 # maximum length that is only half of the actual maximum length, but
5831 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5832 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5833 test 17 != "$i" # 1/2 MB should be enough
5836 teststring=$teststring$teststring
5838 # Only check the string length outside the loop.
5839 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5841 # Add a significant safety factor because C++ compilers can tack on
5842 # massive amounts of additional arguments before passing them to the
5843 # linker. It appears as though 1/2 is a usable value.
5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5851 if test -n "$lt_cv_sys_max_cmd_len"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5853 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5856 $as_echo "none" >&6; }
5858 max_cmd_len=$lt_cv_sys_max_cmd_len
5869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5879 # test EBCDIC or ASCII
5880 case `echo X|tr X '\101'` in
5881 A) # ASCII based system
5882 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5883 lt_SP2NL='tr \040 \012'
5884 lt_NL2SP='tr \015\012 \040\040'
5886 *) # EBCDIC based system
5887 lt_SP2NL='tr \100 \n'
5888 lt_NL2SP='tr \r\n \100\100'
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5901 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5902 if ${lt_cv_to_host_file_cmd+:} false; then :
5903 $as_echo_n "(cached) " >&6
5908 *-*-mingw* ) # actually msys
5909 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5912 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5914 * ) # otherwise, assume *nix
5915 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5921 *-*-mingw* ) # actually msys
5922 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5925 lt_cv_to_host_file_cmd=func_convert_file_noop
5927 * ) # otherwise, assume *nix
5928 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5932 * ) # unhandled hosts (and "normal" native builds)
5933 lt_cv_to_host_file_cmd=func_convert_file_noop
5939 to_host_file_cmd=$lt_cv_to_host_file_cmd
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5941 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5948 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5949 if ${lt_cv_to_tool_file_cmd+:} false; then :
5950 $as_echo_n "(cached) " >&6
5952 #assume ordinary cross tools, or native build.
5953 lt_cv_to_tool_file_cmd=func_convert_file_noop
5957 *-*-mingw* ) # actually msys
5958 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5966 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5968 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5975 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5976 if ${lt_cv_ld_reload_flag+:} false; then :
5977 $as_echo_n "(cached) " >&6
5979 lt_cv_ld_reload_flag='-r'
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5982 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5983 reload_flag=$lt_cv_ld_reload_flag
5984 case $reload_flag in
5986 *) reload_flag=" $reload_flag" ;;
5988 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5990 cygwin* | mingw* | pw32* | cegcc*)
5991 if test yes != "$GCC"; then
5996 if test yes = "$GCC"; then
5997 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5999 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_OBJDUMP+:} false; then :
6018 $as_echo_n "(cached) " >&6
6020 if test -n "$OBJDUMP"; then
6021 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 OBJDUMP=$ac_cv_prog_OBJDUMP
6041 if test -n "$OBJDUMP"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6043 $as_echo "$OBJDUMP" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6051 if test -z "$ac_cv_prog_OBJDUMP"; then
6052 ac_ct_OBJDUMP=$OBJDUMP
6053 # Extract the first word of "objdump", so it can be a program name with args.
6054 set dummy objdump; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$ac_ct_OBJDUMP"; then
6061 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6081 if test -n "$ac_ct_OBJDUMP"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6083 $as_echo "$ac_ct_OBJDUMP" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 if test "x$ac_ct_OBJDUMP" = x; then
6092 case $cross_compiling:$ac_tool_warned in
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6098 OBJDUMP=$ac_ct_OBJDUMP
6101 OBJDUMP="$ac_cv_prog_OBJDUMP"
6104 test -z "$OBJDUMP" && OBJDUMP=objdump
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6115 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6116 if ${lt_cv_deplibs_check_method+:} false; then :
6117 $as_echo_n "(cached) " >&6
6119 lt_cv_file_magic_cmd='$MAGIC_CMD'
6120 lt_cv_file_magic_test_file=
6121 lt_cv_deplibs_check_method='unknown'
6122 # Need to set the preceding variable on all platforms that support
6123 # interlibrary dependencies.
6124 # 'none' -- dependencies not supported.
6125 # 'unknown' -- same as none, but documents that we really don't know.
6126 # 'pass_all' -- all dependencies passed with no checks.
6127 # 'test_compile' -- check by making test program.
6128 # 'file_magic [[regex]]' -- check by looking for files in library path
6129 # that responds to the $file_magic_cmd with a given extended regex.
6130 # If you have 'file' or equivalent on your system and you're not sure
6131 # whether 'pass_all' will *always* work, you probably want this one.
6135 lt_cv_deplibs_check_method=pass_all
6139 lt_cv_deplibs_check_method=pass_all
6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6144 lt_cv_file_magic_cmd='/usr/bin/file -L'
6145 lt_cv_file_magic_test_file=/shlib/libc.so
6149 # func_win32_libid is a shell function defined in ltmain.sh
6150 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6151 lt_cv_file_magic_cmd='func_win32_libid'
6155 # Base MSYS/MinGW do not provide the 'file' command needed by
6156 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6157 # unless we find 'file', for example because we are cross-compiling.
6158 if ( file / ) >/dev/null 2>&1; then
6159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6160 lt_cv_file_magic_cmd='func_win32_libid'
6162 # Keep this pattern in sync with the one in func_win32_libid.
6163 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6164 lt_cv_file_magic_cmd='$OBJDUMP -f'
6169 # use the weaker test based on 'objdump'. See mingw*.
6170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6171 lt_cv_file_magic_cmd='$OBJDUMP -f'
6174 darwin* | rhapsody*)
6175 lt_cv_deplibs_check_method=pass_all
6178 freebsd* | dragonfly*)
6179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6182 # Not sure whether the presence of OpenBSD here was a mistake.
6183 # Let's accept both of them until this is cleared up.
6184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6185 lt_cv_file_magic_cmd=/usr/bin/file
6186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6190 lt_cv_deplibs_check_method=pass_all
6195 lt_cv_deplibs_check_method=pass_all
6198 hpux10.20* | hpux11*)
6199 lt_cv_file_magic_cmd=/usr/bin/file
6202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6206 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]'
6207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6221 irix5* | irix6* | nonstopux*)
6223 *-32|*"-32 ") libmagic=32-bit;;
6224 *-n32|*"-n32 ") libmagic=N32;;
6225 *-64|*"-64 ") libmagic=64-bit;;
6226 *) libmagic=never-match;;
6228 lt_cv_deplibs_check_method=pass_all
6231 # This must be glibc/ELF.
6232 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6233 lt_cv_deplibs_check_method=pass_all
6237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6246 lt_cv_file_magic_cmd=/usr/bin/file
6247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6251 lt_cv_deplibs_check_method=pass_all
6255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6262 osf3* | osf4* | osf5*)
6263 lt_cv_deplibs_check_method=pass_all
6267 lt_cv_deplibs_check_method=pass_all
6271 lt_cv_deplibs_check_method=pass_all
6274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6275 lt_cv_deplibs_check_method=pass_all
6279 case $host_vendor in
6281 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]'
6282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6285 lt_cv_deplibs_check_method=pass_all
6288 lt_cv_file_magic_cmd='/bin/file'
6289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6292 lt_cv_file_magic_cmd='/bin/file'
6293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6294 lt_cv_file_magic_test_file=/lib/libc.so
6297 lt_cv_deplibs_check_method=pass_all
6300 lt_cv_deplibs_check_method=pass_all
6306 lt_cv_deplibs_check_method=pass_all
6309 lt_cv_deplibs_check_method=pass_all
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6315 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6319 if test "$build" = "$host"; then
6322 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6325 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6331 file_magic_cmd=$lt_cv_file_magic_cmd
6332 deplibs_check_method=$lt_cv_deplibs_check_method
6333 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_DLLTOOL+:} false; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$DLLTOOL"; then
6365 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 DLLTOOL=$ac_cv_prog_DLLTOOL
6385 if test -n "$DLLTOOL"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6387 $as_echo "$DLLTOOL" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6395 if test -z "$ac_cv_prog_DLLTOOL"; then
6396 ac_ct_DLLTOOL=$DLLTOOL
6397 # Extract the first word of "dlltool", so it can be a program name with args.
6398 set dummy dlltool; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_DLLTOOL"; then
6405 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6425 if test -n "$ac_ct_DLLTOOL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6427 $as_echo "$ac_ct_DLLTOOL" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6433 if test "x$ac_ct_DLLTOOL" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6442 DLLTOOL=$ac_ct_DLLTOOL
6445 DLLTOOL="$ac_cv_prog_DLLTOOL"
6448 test -z "$DLLTOOL" && DLLTOOL=dlltool
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6460 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6461 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6462 $as_echo_n "(cached) " >&6
6464 lt_cv_sharedlib_from_linklib_cmd='unknown'
6467 cygwin* | mingw* | pw32* | cegcc*)
6468 # two different shell functions defined in ltmain.sh;
6469 # decide which one to use based on capabilities of $DLLTOOL
6470 case `$DLLTOOL --help 2>&1` in
6471 *--identify-strict*)
6472 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6475 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6480 # fallback: assume linklib IS sharedlib
6481 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6487 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6488 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6489 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6497 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_AR+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$AR"; then
6508 ac_cv_prog_AR="$AR" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 if test -n "$AR"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6530 $as_echo "$AR" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$AR" && break
6540 if test -z "$AR"; then
6544 # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$ac_ct_AR"; then
6552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_AR="$ac_prog"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6572 if test -n "$ac_ct_AR"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6574 $as_echo "$ac_ct_AR" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6581 test -n "$ac_ct_AR" && break
6584 if test "x$ac_ct_AR" = x; then
6587 case $cross_compiling:$ac_tool_warned in
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6611 $as_echo_n "checking for archiver @FILE support... " >&6; }
6612 if ${lt_cv_ar_at_file+:} false; then :
6613 $as_echo_n "(cached) " >&6
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 echo conftest.$ac_objext > conftest.lst
6629 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6631 (eval $lt_ar_try) 2>&5
6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634 test $ac_status = 0; }
6635 if test 0 -eq "$ac_status"; then
6636 # Ensure the archiver fails upon bogus file names.
6637 rm -f conftest.$ac_objext libconftest.a
6638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6639 (eval $lt_ar_try) 2>&5
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }
6643 if test 0 -ne "$ac_status"; then
6647 rm -f conftest.* libconftest.a
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6654 $as_echo "$lt_cv_ar_at_file" >&6; }
6656 if test no = "$lt_cv_ar_at_file"; then
6659 archiver_list_spec=$lt_cv_ar_at_file
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}strip; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_STRIP+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$STRIP"; then
6677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 STRIP=$ac_cv_prog_STRIP
6697 if test -n "$STRIP"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6699 $as_echo "$STRIP" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6707 if test -z "$ac_cv_prog_STRIP"; then
6709 # Extract the first word of "strip", so it can be a program name with args.
6710 set dummy strip; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$ac_ct_STRIP"; then
6717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_STRIP="strip"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6737 if test -n "$ac_ct_STRIP"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6739 $as_echo "$ac_ct_STRIP" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6745 if test "x$ac_ct_STRIP" = x; then
6748 case $cross_compiling:$ac_tool_warned in
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6757 STRIP="$ac_cv_prog_STRIP"
6760 test -z "$STRIP" && STRIP=:
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_RANLIB+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 if test -n "$RANLIB"; then
6776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 RANLIB=$ac_cv_prog_RANLIB
6796 if test -n "$RANLIB"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6798 $as_echo "$RANLIB" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_RANLIB"; then
6807 ac_ct_RANLIB=$RANLIB
6808 # Extract the first word of "ranlib", so it can be a program name with args.
6809 set dummy ranlib; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$ac_ct_RANLIB"; then
6816 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_RANLIB="ranlib"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836 if test -n "$ac_ct_RANLIB"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6838 $as_echo "$ac_ct_RANLIB" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_RANLIB" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6853 RANLIB=$ac_ct_RANLIB
6856 RANLIB="$ac_cv_prog_RANLIB"
6859 test -z "$RANLIB" && RANLIB=:
6866 # Determine commands to create old-style static archives.
6867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6868 old_postinstall_cmds='chmod 644 $oldlib'
6869 old_postuninstall_cmds=
6871 if test -n "$RANLIB"; then
6874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6877 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6885 lock_old_archive_extraction=yes ;;
6887 lock_old_archive_extraction=no ;;
6928 # If no C compiler was specified, use CC.
6931 # If no C compiler flags were specified, use CFLAGS.
6932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6934 # Allow CC to be a program name with arguments.
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6940 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6941 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6942 $as_echo_n "(cached) " >&6
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954 # Define system-specific variables.
6959 cygwin* | mingw* | pw32* | cegcc*)
6960 symcode='[ABCDGISTW]'
6963 if test ia64 = "$host_cpu"; then
6964 symcode='[ABCDEGRST]'
6968 symcode='[BCDEGRST]'
6971 symcode='[BCDEGQRST]'
6982 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6990 # If we're using GNU nm, then use its standard symbol codes.
6991 case `$NM -V 2>&1` in
6992 *GNU* | *'with BFD'*)
6993 symcode='[ABCDGIRSTW]' ;;
6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6997 # Gets list of data symbols to import.
6998 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6999 # Adjust the below global symbol transforms to fixup imported variables.
7000 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7001 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7002 lt_c_name_lib_hook="\
7003 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7004 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7006 # Disable hooks by default.
7007 lt_cv_sys_global_symbol_to_import=
7013 # Transform an extracted symbol line into a proper C declaration.
7014 # Some systems (esp. on ia64) link data and code symbols differently,
7015 # so use this general approach.
7016 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7018 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7019 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7021 # Transform an extracted symbol line into symbol name and symbol address
7022 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7024 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7025 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7027 # Transform an extracted symbol line into symbol name with lib prefix and
7029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7030 $lt_c_name_lib_hook\
7031 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7032 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7033 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7035 # Handle CRLF in mingw tool chain
7039 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7043 # Try without a prefix underscore, then with it.
7044 for ac_symprfx in "" "_"; do
7046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7047 symxfrm="\\1 $ac_symprfx\\2 \\2"
7049 # Write the raw and C identifiers.
7050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7051 # Fake it for dumpbin and say T for any non-static function,
7052 # D for any global variable and I for any imported variable.
7053 # Also find C++ and __fastcall symbols from MSVC++,
7054 # which start with @ or ?.
7055 lt_cv_sys_global_symbol_pipe="$AWK '"\
7056 " {last_section=section; section=\$ 3};"\
7057 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7058 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7059 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7060 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7061 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7062 " \$ 0!~/External *\|/{next};"\
7063 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7064 " {if(hide[section]) next};"\
7065 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7066 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7067 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7068 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7069 " ' prfx=^$ac_symprfx"
7071 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7073 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7075 # Check to see that the pipe works correctly.
7079 cat > conftest.$ac_ext <<_LT_EOF
7084 void nm_test_func(void);
7085 void nm_test_func(void){}
7089 int main(){nm_test_var='a';nm_test_func();return(0);}
7092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7093 (eval $ac_compile) 2>&5
7095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7096 test $ac_status = 0; }; then
7097 # Now try to grab the symbols.
7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7100 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103 test $ac_status = 0; } && test -s "$nlist"; then
7104 # Try sorting and uniquifying the output.
7105 if sort "$nlist" | uniq > "$nlist"T; then
7106 mv -f "$nlist"T "$nlist"
7111 # Make sure that we snagged all the symbols we need.
7112 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7113 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7114 cat <<_LT_EOF > conftest.$ac_ext
7115 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7116 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7117 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7118 relocations are performed -- see ld's documentation on pseudo-relocs. */
7119 # define LT_DLSYM_CONST
7120 #elif defined __osf__
7121 /* This system does not cope well with relocations in const data. */
7122 # define LT_DLSYM_CONST
7124 # define LT_DLSYM_CONST const
7132 # Now generate the symbol file.
7133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7135 cat <<_LT_EOF >> conftest.$ac_ext
7137 /* The mapping between symbol names and symbols. */
7138 LT_DLSYM_CONST struct {
7142 lt__PROGRAM__LTX_preloaded_symbols[] =
7144 { "@PROGRAM@", (void *) 0 },
7146 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7147 cat <<\_LT_EOF >> conftest.$ac_ext
7151 /* This works around a problem in FreeBSD linker */
7152 #ifdef FREEBSD_WORKAROUND
7153 static const void *lt_preloaded_setup() {
7154 return lt__PROGRAM__LTX_preloaded_symbols;
7162 # Now try linking the two files.
7163 mv conftest.$ac_objext conftstm.$ac_objext
7164 lt_globsym_save_LIBS=$LIBS
7165 lt_globsym_save_CFLAGS=$CFLAGS
7166 LIBS=conftstm.$ac_objext
7167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7169 (eval $ac_link) 2>&5
7171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7175 LIBS=$lt_globsym_save_LIBS
7176 CFLAGS=$lt_globsym_save_CFLAGS
7178 echo "cannot find nm_test_func in $nlist" >&5
7181 echo "cannot find nm_test_var in $nlist" >&5
7184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7187 echo "$progname: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7190 rm -rf conftest* conftst*
7192 # Do not use the global_symbol_pipe unless it works.
7193 if test yes = "$pipe_works"; then
7196 lt_cv_sys_global_symbol_pipe=
7202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7203 lt_cv_sys_global_symbol_to_cdecl=
7205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7207 $as_echo "failed" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7210 $as_echo "ok" >&6; }
7213 # Response file support.
7214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7215 nm_file_list_spec='@'
7216 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7217 nm_file_list_spec='@'
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7257 $as_echo_n "checking for sysroot... " >&6; }
7259 # Check whether --with-sysroot was given.
7260 if test "${with_sysroot+set}" = set; then :
7261 withval=$with_sysroot;
7268 case $with_sysroot in #(
7270 if test yes = "$GCC"; then
7271 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7275 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7281 $as_echo "$with_sysroot" >&6; }
7282 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7287 $as_echo "${lt_sysroot:-no}" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7294 $as_echo_n "checking for a working dd... " >&6; }
7295 if ${ac_cv_path_lt_DD+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 printf 0123456789abcdef0123456789abcdef >conftest.i
7299 cat conftest.i conftest.i >conftest2.i
7301 if test -z "$lt_DD"; then
7302 ac_path_lt_DD_found=false
7303 # Loop through the user's path and test for each of PROGNAME-LIST
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_prog in dd; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7312 as_fn_executable_p "$ac_path_lt_DD" || continue
7313 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7314 cmp -s conftest.i conftest.out \
7315 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7317 $ac_path_lt_DD_found && break 3
7322 if test -z "$ac_cv_path_lt_DD"; then
7326 ac_cv_path_lt_DD=$lt_DD
7329 rm -f conftest.i conftest2.i conftest.out
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7332 $as_echo "$ac_cv_path_lt_DD" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7336 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7337 if ${lt_cv_truncate_bin+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 printf 0123456789abcdef0123456789abcdef >conftest.i
7341 cat conftest.i conftest.i >conftest2.i
7343 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7344 cmp -s conftest.i conftest.out \
7345 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7347 rm -f conftest.i conftest2.i conftest.out
7348 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7351 $as_echo "$lt_cv_truncate_bin" >&6; }
7359 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7362 for cc_temp in $*""; do
7364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7370 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7373 # Check whether --enable-libtool-lock was given.
7374 if test "${enable_libtool_lock+set}" = set; then :
7375 enableval=$enable_libtool_lock;
7378 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7380 # Some flags need to be propagated to the compiler or linker for good
7384 # Find out what ABI is being produced by ac_compile, and set mode
7385 # options accordingly.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 case `/usr/bin/file conftest.$ac_objext` in
7404 # Find out what ABI is being produced by ac_compile, and set linker
7405 # options accordingly.
7406 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 if test yes = "$lt_cv_prog_gnu_ld"; then
7413 case `/usr/bin/file conftest.$ac_objext` in
7415 LD="${LD-ld} -melf32bsmip"
7418 LD="${LD-ld} -melf32bmipn32"
7421 LD="${LD-ld} -melf64bmip"
7425 case `/usr/bin/file conftest.$ac_objext` in
7442 # Find out what ABI is being produced by ac_compile, and set linker
7443 # options accordingly.
7444 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446 (eval $ac_compile) 2>&5
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7451 case `/usr/bin/file conftest.$ac_objext` in
7459 case `/usr/bin/file conftest.$ac_objext` in
7461 emul="${emul}btsmip"
7464 emul="${emul}ltsmip"
7467 case `/usr/bin/file conftest.$ac_objext` in
7472 LD="${LD-ld} -m $emul"
7477 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7478 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7479 # Find out what ABI is being produced by ac_compile, and set linker
7480 # options accordingly. Note that the listed cases only cover the
7481 # situations where additional linker options are needed (such as when
7482 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7483 # vice versa); the common cases where no linker options are needed do
7484 # not appear in the list.
7485 echo 'int i;' > conftest.$ac_ext
7486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7487 (eval $ac_compile) 2>&5
7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }; then
7491 case `/usr/bin/file conftest.o` in
7494 x86_64-*kfreebsd*-gnu)
7495 LD="${LD-ld} -m elf_i386_fbsd"
7498 case `/usr/bin/file conftest.o` in
7500 LD="${LD-ld} -m elf32_x86_64"
7503 LD="${LD-ld} -m elf_i386"
7507 powerpc64le-*linux*)
7508 LD="${LD-ld} -m elf32lppclinux"
7511 LD="${LD-ld} -m elf32ppclinux"
7514 LD="${LD-ld} -m elf_s390"
7517 LD="${LD-ld} -m elf32_sparc"
7523 x86_64-*kfreebsd*-gnu)
7524 LD="${LD-ld} -m elf_x86_64_fbsd"
7527 LD="${LD-ld} -m elf_x86_64"
7530 LD="${LD-ld} -m elf64lppc"
7533 LD="${LD-ld} -m elf64ppc"
7535 s390*-*linux*|s390*-*tpf*)
7536 LD="${LD-ld} -m elf64_s390"
7539 LD="${LD-ld} -m elf64_sparc"
7549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7551 CFLAGS="$CFLAGS -belf"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7553 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7554 if ${lt_cv_cc_needs_belf+:} false; then :
7555 $as_echo_n "(cached) " >&6
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7574 if ac_fn_c_try_link "$LINENO"; then :
7575 lt_cv_cc_needs_belf=yes
7577 lt_cv_cc_needs_belf=no
7579 rm -f core conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7589 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7590 if test yes != "$lt_cv_cc_needs_belf"; then
7591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7596 # Find out what ABI is being produced by ac_compile, and set linker
7597 # options accordingly.
7598 echo 'int i;' > conftest.$ac_ext
7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7600 (eval $ac_compile) 2>&5
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
7604 case `/usr/bin/file conftest.o` in
7606 case $lt_cv_prog_gnu_ld in
7609 i?86-*-solaris*|x86_64-*-solaris*)
7610 LD="${LD-ld} -m elf_x86_64"
7613 LD="${LD-ld} -m elf64_sparc"
7616 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7617 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7634 need_locks=$enable_libtool_lock
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}mt; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$MANIFEST_TOOL"; then
7645 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7665 if test -n "$MANIFEST_TOOL"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7667 $as_echo "$MANIFEST_TOOL" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7675 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7676 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7677 # Extract the first word of "mt", so it can be a program name with args.
7678 set dummy mt; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$ac_ct_MANIFEST_TOOL"; then
7685 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7705 if test -n "$ac_ct_MANIFEST_TOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7707 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7713 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7716 case $cross_compiling:$ac_tool_warned in
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7722 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7725 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7728 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7730 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7731 if ${lt_cv_path_mainfest_tool+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 lt_cv_path_mainfest_tool=no
7735 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7736 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7737 cat conftest.err >&5
7738 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7739 lt_cv_path_mainfest_tool=yes
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7744 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7745 if test yes != "$lt_cv_path_mainfest_tool"; then
7755 rhapsody* | darwin*)
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7762 $as_echo_n "(cached) " >&6
7764 if test -n "$DSYMUTIL"; then
7765 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7785 if test -n "$DSYMUTIL"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7787 $as_echo "$DSYMUTIL" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7795 if test -z "$ac_cv_prog_DSYMUTIL"; then
7796 ac_ct_DSYMUTIL=$DSYMUTIL
7797 # Extract the first word of "dsymutil", so it can be a program name with args.
7798 set dummy dsymutil; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$ac_ct_DSYMUTIL"; then
7805 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7825 if test -n "$ac_ct_DSYMUTIL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7827 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7833 if test "x$ac_ct_DSYMUTIL" = x; then
7836 case $cross_compiling:$ac_tool_warned in
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7842 DSYMUTIL=$ac_ct_DSYMUTIL
7845 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_NMEDIT+:} false; then :
7854 $as_echo_n "(cached) " >&6
7856 if test -n "$NMEDIT"; then
7857 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 NMEDIT=$ac_cv_prog_NMEDIT
7877 if test -n "$NMEDIT"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7879 $as_echo "$NMEDIT" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7887 if test -z "$ac_cv_prog_NMEDIT"; then
7888 ac_ct_NMEDIT=$NMEDIT
7889 # Extract the first word of "nmedit", so it can be a program name with args.
7890 set dummy nmedit; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 if test -n "$ac_ct_NMEDIT"; then
7897 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7917 if test -n "$ac_ct_NMEDIT"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7919 $as_echo "$ac_ct_NMEDIT" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7925 if test "x$ac_ct_NMEDIT" = x; then
7928 case $cross_compiling:$ac_tool_warned in
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7934 NMEDIT=$ac_ct_NMEDIT
7937 NMEDIT="$ac_cv_prog_NMEDIT"
7940 if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_LIPO+:} false; then :
7946 $as_echo_n "(cached) " >&6
7948 if test -n "$LIPO"; then
7949 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 LIPO=$ac_cv_prog_LIPO
7969 if test -n "$LIPO"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7971 $as_echo "$LIPO" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7979 if test -z "$ac_cv_prog_LIPO"; then
7981 # Extract the first word of "lipo", so it can be a program name with args.
7982 set dummy lipo; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$ac_ct_LIPO"; then
7989 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_ac_ct_LIPO="lipo"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8009 if test -n "$ac_ct_LIPO"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8011 $as_echo "$ac_ct_LIPO" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8017 if test "x$ac_ct_LIPO" = x; then
8020 case $cross_compiling:$ac_tool_warned in
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8029 LIPO="$ac_cv_prog_LIPO"
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}otool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_OTOOL+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 if test -n "$OTOOL"; then
8041 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 OTOOL=$ac_cv_prog_OTOOL
8061 if test -n "$OTOOL"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8063 $as_echo "$OTOOL" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8071 if test -z "$ac_cv_prog_OTOOL"; then
8073 # Extract the first word of "otool", so it can be a program name with args.
8074 set dummy otool; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 if test -n "$ac_ct_OTOOL"; then
8081 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_ac_ct_OTOOL="otool"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8101 if test -n "$ac_ct_OTOOL"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8103 $as_echo "$ac_ct_OTOOL" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8109 if test "x$ac_ct_OTOOL" = x; then
8112 case $cross_compiling:$ac_tool_warned in
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8121 OTOOL="$ac_cv_prog_OTOOL"
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_OTOOL64+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 if test -n "$OTOOL64"; then
8133 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 OTOOL64=$ac_cv_prog_OTOOL64
8153 if test -n "$OTOOL64"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8155 $as_echo "$OTOOL64" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8163 if test -z "$ac_cv_prog_OTOOL64"; then
8164 ac_ct_OTOOL64=$OTOOL64
8165 # Extract the first word of "otool64", so it can be a program name with args.
8166 set dummy otool64; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8170 $as_echo_n "(cached) " >&6
8172 if test -n "$ac_ct_OTOOL64"; then
8173 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_OTOOL64="otool64"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8193 if test -n "$ac_ct_OTOOL64"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8195 $as_echo "$ac_ct_OTOOL64" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8201 if test "x$ac_ct_OTOOL64" = x; then
8204 case $cross_compiling:$ac_tool_warned in
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8210 OTOOL64=$ac_ct_OTOOL64
8213 OTOOL64="$ac_cv_prog_OTOOL64"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8243 $as_echo_n "checking for -single_module linker flag... " >&6; }
8244 if ${lt_cv_apple_cc_single_mod+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 lt_cv_apple_cc_single_mod=no
8248 if test -z "$LT_MULTI_MODULE"; then
8249 # By default we will add the -single_module flag. You can override
8250 # by either setting the environment variable LT_MULTI_MODULE
8251 # non-empty at configure time, or by adding -multi_module to the
8253 rm -rf libconftest.dylib*
8254 echo "int foo(void){return 1;}" > conftest.c
8255 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8256 -dynamiclib -Wl,-single_module conftest.c" >&5
8257 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8258 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8260 # If there is a non-empty error log, and "single_module"
8261 # appears in it, assume the flag caused a linker warning
8262 if test -s conftest.err && $GREP single_module conftest.err; then
8263 cat conftest.err >&5
8264 # Otherwise, if the output was created with a 0 exit code from
8265 # the compiler, it worked.
8266 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8267 lt_cv_apple_cc_single_mod=yes
8269 cat conftest.err >&5
8271 rm -rf libconftest.dylib*
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8276 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8279 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8280 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 lt_cv_ld_exported_symbols_list=no
8284 save_LDFLAGS=$LDFLAGS
8285 echo "_main" > conftest.sym
8286 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 lt_cv_ld_exported_symbols_list=yes
8301 lt_cv_ld_exported_symbols_list=no
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 LDFLAGS=$save_LDFLAGS
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8309 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8312 $as_echo_n "checking for -force_load linker flag... " >&6; }
8313 if ${lt_cv_ld_force_load+:} false; then :
8314 $as_echo_n "(cached) " >&6
8316 lt_cv_ld_force_load=no
8317 cat > conftest.c << _LT_EOF
8318 int forced_loaded() { return 2;}
8320 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8321 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8322 echo "$AR cru libconftest.a conftest.o" >&5
8323 $AR cru libconftest.a conftest.o 2>&5
8324 echo "$RANLIB libconftest.a" >&5
8325 $RANLIB libconftest.a 2>&5
8326 cat > conftest.c << _LT_EOF
8327 int main() { return 0;}
8329 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8330 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8332 if test -s conftest.err && $GREP force_load conftest.err; then
8333 cat conftest.err >&5
8334 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8335 lt_cv_ld_force_load=yes
8337 cat conftest.err >&5
8339 rm -f conftest.err libconftest.a conftest conftest.c
8340 rm -rf conftest.dSYM
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8344 $as_echo "$lt_cv_ld_force_load" >&6; }
8346 rhapsody* | darwin1.[012])
8347 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8349 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8350 darwin*) # darwin 5.x on
8351 # if running on 10.5 or later, the deployment target defaults
8352 # to the OS version, if on x86, and 10.4, the deployment
8353 # target defaults to 10.4. Don't you love it?
8354 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8355 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8356 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8358 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8360 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8364 if test yes = "$lt_cv_apple_cc_single_mod"; then
8365 _lt_dar_single_mod='$single_module'
8367 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8368 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8370 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8372 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8373 _lt_dsymutil='~$DSYMUTIL $lib || :'
8380 # func_munge_path_list VARIABLE PATH
8381 # -----------------------------------
8382 # VARIABLE is name of variable containing _space_ separated list of
8383 # directories to be munged by the contents of PATH, which is string
8386 # string "DIR[ DIR]" will be prepended to VARIABLE
8388 # string "DIR[ DIR]" will be appended to VARIABLE
8389 # "DIRP[:DIRP]::[DIRA:]DIRA"
8390 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8391 # "DIRA[ DIRA]" will be appended to VARIABLE
8393 # VARIABLE will be replaced by "DIR[ DIR]"
8394 func_munge_path_list ()
8400 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8403 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8406 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8407 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8415 for ac_header in dlfcn.h
8417 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8419 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8420 cat >>confdefs.h <<_ACEOF
8421 #define HAVE_DLFCN_H 1
8433 # Check whether --enable-static was given.
8434 if test "${enable_static+set}" = set; then :
8435 enableval=$enable_static; p=${PACKAGE-default}
8437 yes) enable_static=yes ;;
8438 no) enable_static=no ;;
8441 # Look at the argument we got. We use all the common list separators.
8442 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8443 for pkg in $enableval; do
8445 if test "X$pkg" = "X$p"; then
8463 # Check whether --with-pic was given.
8464 if test "${with_pic+set}" = set; then :
8465 withval=$with_pic; lt_p=${PACKAGE-default}
8467 yes|no) pic_mode=$withval ;;
8470 # Look at the argument we got. We use all the common list separators.
8471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8472 for lt_pkg in $withval; do
8474 if test "X$lt_pkg" = "X$lt_p"; then
8499 # Check whether --enable-shared was given.
8500 if test "${enable_shared+set}" = set; then :
8501 enableval=$enable_shared; p=${PACKAGE-default}
8503 yes) enable_shared=yes ;;
8504 no) enable_shared=no ;;
8507 # Look at the argument we got. We use all the common list separators.
8508 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8509 for pkg in $enableval; do
8511 if test "X$pkg" = "X$p"; then
8532 # Check whether --enable-fast-install was given.
8533 if test "${enable_fast_install+set}" = set; then :
8534 enableval=$enable_fast_install; p=${PACKAGE-default}
8536 yes) enable_fast_install=yes ;;
8537 no) enable_fast_install=no ;;
8539 enable_fast_install=no
8540 # Look at the argument we got. We use all the common list separators.
8541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8542 for pkg in $enableval; do
8544 if test "X$pkg" = "X$p"; then
8545 enable_fast_install=yes
8552 enable_fast_install=yes
8562 shared_archive_member_spec=
8563 case $host,$enable_shared in
8564 power*-*-aix[5-9]*,yes)
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8566 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8568 # Check whether --with-aix-soname was given.
8569 if test "${with_aix_soname+set}" = set; then :
8570 withval=$with_aix_soname; case $withval in
8574 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8577 lt_cv_with_aix_soname=$with_aix_soname
8579 if ${lt_cv_with_aix_soname+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 lt_cv_with_aix_soname=aix
8585 with_aix_soname=$lt_cv_with_aix_soname
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8589 $as_echo "$with_aix_soname" >&6; }
8590 if test aix != "$with_aix_soname"; then
8591 # For the AIX way of multilib, we name the shared archive member
8592 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8593 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8594 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8595 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8596 if test 64 = "${OBJECT_MODE-32}"; then
8597 shared_archive_member_spec=shr_64
8599 shared_archive_member_spec=shr
8617 # This can be used to rebuild libtool when needed
8618 LIBTOOL_DEPS=$ltmain
8620 # Always use our own libtool.
8621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8652 test -z "$LN_S" && LN_S="ln -s"
8667 if test -n "${ZSH_VERSION+set}"; then
8668 setopt NO_GLOB_SUBST
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8672 $as_echo_n "checking for objdir... " >&6; }
8673 if ${lt_cv_objdir+:} false; then :
8674 $as_echo_n "(cached) " >&6
8676 rm -f .libs 2>/dev/null
8677 mkdir .libs 2>/dev/null
8678 if test -d .libs; then
8681 # MS-DOS does not allow filenames that begin with a dot.
8684 rmdir .libs 2>/dev/null
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8687 $as_echo "$lt_cv_objdir" >&6; }
8688 objdir=$lt_cv_objdir
8694 cat >>confdefs.h <<_ACEOF
8695 #define LT_OBJDIR "$lt_cv_objdir/"
8703 # AIX sometimes has problems with the GCC collect2 program. For some
8704 # reason, if we set the COLLECT_NAMES environment variable, the problems
8705 # vanish in a puff of smoke.
8706 if test set != "${COLLECT_NAMES+set}"; then
8708 export COLLECT_NAMES
8715 can_build_shared=yes
8717 # All known linkers require a '.a' archive for static linking (except MSVC,
8718 # which needs '.lib').
8721 with_gnu_ld=$lt_cv_prog_gnu_ld
8726 # Set sane defaults for various variables
8727 test -z "$CC" && CC=cc
8728 test -z "$LTCC" && LTCC=$CC
8729 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8730 test -z "$LD" && LD=ld
8731 test -z "$ac_objext" && ac_objext=o
8733 func_cc_basename $compiler
8734 cc_basename=$func_cc_basename_result
8737 # Only perform the check for file, if the check method requires it
8738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8739 case $deplibs_check_method in
8741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8745 $as_echo_n "(cached) " >&6
8749 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8752 lt_save_MAGIC_CMD=$MAGIC_CMD
8753 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755 for ac_dir in $ac_dummy; do
8757 test -z "$ac_dir" && ac_dir=.
8758 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8759 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8760 if test -n "$file_magic_test_file"; then
8761 case $deplibs_check_method in
8763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766 $EGREP "$file_magic_regex" > /dev/null; then
8771 *** Warning: the command libtool uses to detect shared libraries,
8772 *** $file_magic_cmd, produces output that libtool cannot recognize.
8773 *** The result is that libtool may fail to recognize shared libraries
8774 *** as such. This will affect the creation of libtool libraries that
8775 *** depend on shared libraries, but programs linked with such libtool
8776 *** libraries will work regardless of this problem. Nevertheless, you
8777 *** may want to report the problem to your system manager and/or to
8778 *** bug-libtool@gnu.org
8788 MAGIC_CMD=$lt_save_MAGIC_CMD
8793 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8794 if test -n "$MAGIC_CMD"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796 $as_echo "$MAGIC_CMD" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8806 if test -z "$lt_cv_path_MAGIC_CMD"; then
8807 if test -n "$ac_tool_prefix"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8809 $as_echo_n "checking for file... " >&6; }
8810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8811 $as_echo_n "(cached) " >&6
8815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8818 lt_save_MAGIC_CMD=$MAGIC_CMD
8819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8821 for ac_dir in $ac_dummy; do
8823 test -z "$ac_dir" && ac_dir=.
8824 if test -f "$ac_dir/file"; then
8825 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8826 if test -n "$file_magic_test_file"; then
8827 case $deplibs_check_method in
8829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8832 $EGREP "$file_magic_regex" > /dev/null; then
8837 *** Warning: the command libtool uses to detect shared libraries,
8838 *** $file_magic_cmd, produces output that libtool cannot recognize.
8839 *** The result is that libtool may fail to recognize shared libraries
8840 *** as such. This will affect the creation of libtool libraries that
8841 *** depend on shared libraries, but programs linked with such libtool
8842 *** libraries will work regardless of this problem. Nevertheless, you
8843 *** may want to report the problem to your system manager and/or to
8844 *** bug-libtool@gnu.org
8854 MAGIC_CMD=$lt_save_MAGIC_CMD
8859 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8860 if test -n "$MAGIC_CMD"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8862 $as_echo "$MAGIC_CMD" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8878 # Use C for the default configuration in the libtool script
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888 # Source file extension for C test sources.
8891 # Object file extension for compiled C test sources.
8895 # Code to be used in simple compile tests
8896 lt_simple_compile_test_code="int some_variable = 0;"
8898 # Code to be used in simple link tests
8899 lt_simple_link_test_code='int main(){return(0);}'
8907 # If no C compiler was specified, use CC.
8910 # If no C compiler flags were specified, use CFLAGS.
8911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8913 # Allow CC to be a program name with arguments.
8916 # Save the default compiler, since it gets overwritten when the other
8917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8918 compiler_DEFAULT=$CC
8920 # save warnings/boilerplate of simple test code
8921 ac_outfile=conftest.$ac_objext
8922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8924 _lt_compiler_boilerplate=`cat conftest.err`
8927 ac_outfile=conftest.$ac_objext
8928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8930 _lt_linker_boilerplate=`cat conftest.err`
8935 ## There is no encapsulation within the following macros, do not change
8936 ## the running order or otherwise move them around unless you know exactly
8937 ## what you are doing...
8938 if test -n "$compiler"; then
8940 lt_prog_compiler_no_builtin_flag=
8942 if test yes = "$GCC"; then
8943 case $cc_basename in
8945 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8947 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8951 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8952 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8953 $as_echo_n "(cached) " >&6
8955 lt_cv_prog_compiler_rtti_exceptions=no
8956 ac_outfile=conftest.$ac_objext
8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8959 # Insert the option either (1) after the last *FLAGS variable, or
8960 # (2) before a word containing "conftest.", or (3) at the end.
8961 # Note that $ac_compile itself does not contain backslashes and begins
8962 # with a dollar sign (not a hyphen), so the echo should work correctly.
8963 # The option is referenced via a variable to avoid confusing sed.
8964 lt_compile=`echo "$ac_compile" | $SED \
8965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967 -e 's:$: $lt_compiler_flag:'`
8968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969 (eval "$lt_compile" 2>conftest.err)
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 if (exit $ac_status) && test -s "$ac_outfile"; then
8974 # The compiler can only warn and ignore the option if not recognized
8975 # So say no if there are warnings other than the usual output.
8976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8979 lt_cv_prog_compiler_rtti_exceptions=yes
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8986 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8988 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8989 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9001 lt_prog_compiler_wl=
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_static=
9006 if test yes = "$GCC"; then
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_static='-static'
9012 # All AIX code is PIC.
9013 if test ia64 = "$host_cpu"; then
9014 # AIX 5 now supports IA64 processor
9015 lt_prog_compiler_static='-Bstatic'
9017 lt_prog_compiler_pic='-fPIC'
9023 # see comment about AmigaOS4 .so support
9024 lt_prog_compiler_pic='-fPIC'
9027 # FIXME: we need at least 68020 code to build shared libraries, but
9028 # adding the '-m68020' flag to GCC prevents building anything better,
9030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9035 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9036 # PIC is the default for these OSes.
9039 mingw* | cygwin* | pw32* | os2* | cegcc*)
9040 # This hack is so that the source file can tell whether it is being
9041 # built for inclusion in a dll (and should export symbols for example).
9042 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9043 # (--disable-auto-import) libraries
9044 lt_prog_compiler_pic='-DDLL_EXPORT'
9047 lt_prog_compiler_static='$wl-static'
9052 darwin* | rhapsody*)
9053 # PIC is the default on this platform
9054 # Common symbols not allowed in MH_DYLIB files
9055 lt_prog_compiler_pic='-fno-common'
9059 # PIC is the default for Haiku.
9060 # The "-static" flag exists, but is broken.
9061 lt_prog_compiler_static=
9065 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9066 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9067 # sets the default TLS model and affects inlining.
9073 lt_prog_compiler_pic='-fPIC'
9079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9080 # Instead, we relocate shared libraries at runtime.
9084 # Just because we use GCC doesn't mean we suddenly get shared libraries
9085 # on systems that don't support them.
9086 lt_prog_compiler_can_build_shared=no
9091 # QNX uses GNU C++, but need to define -shared option too, otherwise
9093 lt_prog_compiler_pic='-fPIC -shared'
9097 if test -d /usr/nec; then
9098 lt_prog_compiler_pic=-Kconform_pic
9103 lt_prog_compiler_pic='-fPIC'
9107 case $cc_basename in
9108 nvcc*) # Cuda Compiler Driver 2.2
9109 lt_prog_compiler_wl='-Xlinker '
9110 if test -n "$lt_prog_compiler_pic"; then
9111 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9116 # PORTME Check for flag to pass linker flags through the system compiler.
9119 lt_prog_compiler_wl='-Wl,'
9120 if test ia64 = "$host_cpu"; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128 darwin* | rhapsody*)
9129 # PIC is the default on this platform
9130 # Common symbols not allowed in MH_DYLIB files
9131 lt_prog_compiler_pic='-fno-common'
9132 case $cc_basename in
9134 # NAG Fortran compiler
9135 lt_prog_compiler_wl='-Wl,-Wl,,'
9136 lt_prog_compiler_pic='-PIC'
9137 lt_prog_compiler_static='-Bstatic'
9142 mingw* | cygwin* | pw32* | os2* | cegcc*)
9143 # This hack is so that the source file can tell whether it is being
9144 # built for inclusion in a dll (and should export symbols for example).
9145 lt_prog_compiler_pic='-DDLL_EXPORT'
9148 lt_prog_compiler_static='$wl-static'
9153 hpux9* | hpux10* | hpux11*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9162 lt_prog_compiler_pic='+Z'
9165 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9166 lt_prog_compiler_static='$wl-a ${wl}archive'
9169 irix5* | irix6* | nonstopux*)
9170 lt_prog_compiler_wl='-Wl,'
9171 # PIC (with -KPIC) is the default.
9172 lt_prog_compiler_static='-non_shared'
9175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9176 case $cc_basename in
9177 # old Intel for x86_64, which still supported -KPIC.
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-KPIC'
9181 lt_prog_compiler_static='-static'
9183 # icc used to be incompatible with GCC.
9184 # ICC 10 doesn't accept -KPIC any more.
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_pic='-fPIC'
9188 lt_prog_compiler_static='-static'
9190 # Lahey Fortran 8.1.
9192 lt_prog_compiler_wl='-Wl,'
9193 lt_prog_compiler_pic='--shared'
9194 lt_prog_compiler_static='--static'
9197 # NAG Fortran compiler
9198 lt_prog_compiler_wl='-Wl,-Wl,,'
9199 lt_prog_compiler_pic='-PIC'
9200 lt_prog_compiler_static='-Bstatic'
9203 # Fabrice Bellard et al's Tiny C Compiler
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='-fPIC'
9206 lt_prog_compiler_static='-static'
9208 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9209 # Portland Group compilers (*not* the Pentium gcc compiler,
9210 # which looks to be a dead project)
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_pic='-fpic'
9213 lt_prog_compiler_static='-Bstatic'
9216 lt_prog_compiler_wl='-Wl,'
9217 # All Alpha code is PIC.
9218 lt_prog_compiler_static='-non_shared'
9220 xl* | bgxl* | bgf* | mpixl*)
9221 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9222 lt_prog_compiler_wl='-Wl,'
9223 lt_prog_compiler_pic='-qpic'
9224 lt_prog_compiler_static='-qstaticlink'
9227 case `$CC -V 2>&1 | sed 5q` in
9228 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9229 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9230 lt_prog_compiler_pic='-KPIC'
9231 lt_prog_compiler_static='-Bstatic'
9232 lt_prog_compiler_wl=''
9234 *Sun\ F* | *Sun*Fortran*)
9235 lt_prog_compiler_pic='-KPIC'
9236 lt_prog_compiler_static='-Bstatic'
9237 lt_prog_compiler_wl='-Qoption ld '
9241 lt_prog_compiler_pic='-KPIC'
9242 lt_prog_compiler_static='-Bstatic'
9243 lt_prog_compiler_wl='-Wl,'
9245 *Intel*\ [CF]*Compiler*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_pic='-fPIC'
9248 lt_prog_compiler_static='-static'
9251 lt_prog_compiler_wl='-Wl,'
9252 lt_prog_compiler_pic='-fpic'
9253 lt_prog_compiler_static='-Bstatic'
9261 lt_prog_compiler_pic='-KPIC'
9262 lt_prog_compiler_static='-Bstatic'
9266 # QNX uses GNU C++, but need to define -shared option too, otherwise
9268 lt_prog_compiler_pic='-fPIC -shared'
9271 osf3* | osf4* | osf5*)
9272 lt_prog_compiler_wl='-Wl,'
9273 # All OSF/1 code is PIC.
9274 lt_prog_compiler_static='-non_shared'
9278 lt_prog_compiler_static='-non_shared'
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 case $cc_basename in
9285 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9286 lt_prog_compiler_wl='-Qoption ld ';;
9288 lt_prog_compiler_wl='-Wl,';;
9293 lt_prog_compiler_wl='-Qoption ld '
9294 lt_prog_compiler_pic='-PIC'
9295 lt_prog_compiler_static='-Bstatic'
9298 sysv4 | sysv4.2uw2* | sysv4.3*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9305 if test -d /usr/nec; then
9306 lt_prog_compiler_pic='-Kconform_pic'
9307 lt_prog_compiler_static='-Bstatic'
9311 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-Bstatic'
9318 lt_prog_compiler_wl='-Wl,'
9319 lt_prog_compiler_can_build_shared=no
9323 lt_prog_compiler_pic='-pic'
9324 lt_prog_compiler_static='-Bstatic'
9328 lt_prog_compiler_can_build_shared=no
9334 # For platforms that do not support PIC, -DPIC is meaningless:
9336 lt_prog_compiler_pic=
9339 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9345 if ${lt_cv_prog_compiler_pic+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9351 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9352 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9355 # Check to make sure the PIC flag actually works.
9357 if test -n "$lt_prog_compiler_pic"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9359 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9360 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9361 $as_echo_n "(cached) " >&6
9363 lt_cv_prog_compiler_pic_works=no
9364 ac_outfile=conftest.$ac_objext
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9367 # Insert the option either (1) after the last *FLAGS variable, or
9368 # (2) before a word containing "conftest.", or (3) at the end.
9369 # Note that $ac_compile itself does not contain backslashes and begins
9370 # with a dollar sign (not a hyphen), so the echo should work correctly.
9371 # The option is referenced via a variable to avoid confusing sed.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>conftest.err)
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s "$ac_outfile"; then
9382 # The compiler can only warn and ignore the option if not recognized
9383 # So say no if there are warnings other than the usual output.
9384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler_pic_works=yes
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9394 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9396 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9397 case $lt_prog_compiler_pic in
9399 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9402 lt_prog_compiler_pic=
9403 lt_prog_compiler_can_build_shared=no
9419 # Check to make sure the static flag actually works.
9421 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9423 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9424 if ${lt_cv_prog_compiler_static_works+:} false; then :
9425 $as_echo_n "(cached) " >&6
9427 lt_cv_prog_compiler_static_works=no
9428 save_LDFLAGS=$LDFLAGS
9429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9432 # The linker can only warn and ignore the option if not recognized
9433 # So say no if there are warnings
9434 if test -s conftest.err; then
9435 # Append any errors to the config.log.
9436 cat conftest.err 1>&5
9437 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9439 if diff conftest.exp conftest.er2 >/dev/null; then
9440 lt_cv_prog_compiler_static_works=yes
9443 lt_cv_prog_compiler_static_works=yes
9447 LDFLAGS=$save_LDFLAGS
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9451 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9453 if test yes = "$lt_cv_prog_compiler_static_works"; then
9456 lt_prog_compiler_static=
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if ${lt_cv_prog_compiler_c_o+:} false; then :
9468 $as_echo_n "(cached) " >&6
9470 lt_cv_prog_compiler_c_o=no
9471 $RM -r conftest 2>/dev/null
9475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477 lt_compiler_flag="-o out/conftest2.$ac_objext"
9478 # Insert the option either (1) after the last *FLAGS variable, or
9479 # (2) before a word containing "conftest.", or (3) at the end.
9480 # Note that $ac_compile itself does not contain backslashes and begins
9481 # with a dollar sign (not a hyphen), so the echo should work correctly.
9482 lt_compile=`echo "$ac_compile" | $SED \
9483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485 -e 's:$: $lt_compiler_flag:'`
9486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9487 (eval "$lt_compile" 2>out/conftest.err)
9489 cat out/conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9493 # The compiler can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498 lt_cv_prog_compiler_c_o=yes
9503 # SGI C++ compiler will create directory out/ii_files/ for
9504 # template instantiation
9505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506 $RM out/* && rmdir out
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522 if ${lt_cv_prog_compiler_c_o+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 lt_cv_prog_compiler_c_o=no
9526 $RM -r conftest 2>/dev/null
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9532 lt_compiler_flag="-o out/conftest2.$ac_objext"
9533 # Insert the option either (1) after the last *FLAGS variable, or
9534 # (2) before a word containing "conftest.", or (3) at the end.
9535 # Note that $ac_compile itself does not contain backslashes and begins
9536 # with a dollar sign (not a hyphen), so the echo should work correctly.
9537 lt_compile=`echo "$ac_compile" | $SED \
9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540 -e 's:$: $lt_compiler_flag:'`
9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542 (eval "$lt_compile" 2>out/conftest.err)
9544 cat out/conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9548 # The compiler can only warn and ignore the option if not recognized
9549 # So say no if there are warnings
9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553 lt_cv_prog_compiler_c_o=yes
9558 # SGI C++ compiler will create directory out/ii_files/ for
9559 # template instantiation
9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561 $RM out/* && rmdir out
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9568 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9573 hard_links=nottested
9574 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9575 # do not overwrite the value of need_locks provided by the user
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9577 $as_echo_n "checking if we can lock with hard links... " >&6; }
9580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9582 ln conftest.a conftest.b 2>&5 || hard_links=no
9583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9585 $as_echo "$hard_links" >&6; }
9586 if test no = "$hard_links"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9588 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9604 allow_undefined_flag=
9605 always_export_symbols=no
9607 archive_expsym_cmds=
9608 compiler_needs_object=no
9609 enable_shared_with_static_runtimes=no
9610 export_dynamic_flag_spec=
9611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9612 hardcode_automatic=no
9614 hardcode_direct_absolute=no
9615 hardcode_libdir_flag_spec=
9616 hardcode_libdir_separator=
9618 hardcode_shlibpath_var=unsupported
9620 link_all_deplibs=unknown
9623 old_archive_from_new_cmds=
9624 old_archive_from_expsyms_cmds=
9625 thread_safe_flag_spec=
9626 whole_archive_flag_spec=
9627 # include_expsyms should be a list of space-separated symbols to be *always*
9628 # included in the symbol list
9630 # exclude_expsyms can be an extended regexp of symbols to exclude
9631 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9632 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9633 # as well as any symbol that contains 'd'.
9634 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9636 # platforms (ab)use it in PIC code, but their linkers get confused if
9637 # the symbol is explicitly referenced. Since portable code cannot
9638 # rely on this symbol name, it's probably fine to never include it in
9639 # preloaded symbol tables.
9640 # Exclude shared library initialization/finalization symbols.
9641 extract_expsyms_cmds=
9644 cygwin* | mingw* | pw32* | cegcc*)
9645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9646 # When not using gcc, we currently assume that we are using
9647 # Microsoft Visual C++.
9648 if test yes != "$GCC"; then
9653 # we just hope/assume this is gcc and not c89 (= MSVC++)
9663 # On some targets, GNU ld is compatible enough with the native linker
9664 # that we're better off using the native interface for both.
9665 lt_use_gnu_ld_interface=no
9666 if test yes = "$with_gnu_ld"; then
9669 # The AIX port of GNU ld has always aspired to compatibility
9670 # with the native linker. However, as the warning in the GNU ld
9671 # block says, versions before 2.19.5* couldn't really create working
9672 # shared libraries, regardless of the interface used.
9673 case `$LD -v 2>&1` in
9674 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9675 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9676 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9678 lt_use_gnu_ld_interface=yes
9683 lt_use_gnu_ld_interface=yes
9688 if test yes = "$lt_use_gnu_ld_interface"; then
9689 # If archive_cmds runs LD, not CC, wlarc should be empty
9692 # Set some defaults for GNU ld with shared library support. These
9693 # are reset later if shared libraries are not supported. Putting them
9694 # here allows them to be overridden if necessary.
9695 runpath_var=LD_RUN_PATH
9696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9697 export_dynamic_flag_spec='$wl--export-dynamic'
9698 # ancient GNU ld didn't support --whole-archive et. al.
9699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9700 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9702 whole_archive_flag_spec=
9704 supports_anon_versioning=no
9705 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9706 *GNU\ gold*) supports_anon_versioning=yes ;;
9707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9710 *\ 2.11.*) ;; # other 2.11 versions
9711 *) supports_anon_versioning=yes ;;
9714 # See if GNU ld supports shared libraries.
9717 # On AIX/PPC, the GNU linker is very broken
9718 if test ia64 != "$host_cpu"; then
9722 *** Warning: the GNU linker, at least up to release 2.19, is reported
9723 *** to be unable to reliably create shared libraries on AIX.
9724 *** Therefore, libtool is disabling shared libraries support. If you
9725 *** really care for shared libraries, you may want to install binutils
9726 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9727 *** You will then need to restart the configuration process.
9736 # see comment about AmigaOS4 .so support
9737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9738 archive_expsym_cmds=''
9741 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)'
9742 hardcode_libdir_flag_spec='-L$libdir'
9743 hardcode_minus_L=yes
9749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 allow_undefined_flag=unsupported
9751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752 # support --undefined. This deserves some investigation. FIXME
9753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9759 cygwin* | mingw* | pw32* | cegcc*)
9760 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9761 # as there is no search path for DLLs.
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 export_dynamic_flag_spec='$wl--export-all-symbols'
9764 allow_undefined_flag=unsupported
9765 always_export_symbols=no
9766 enable_shared_with_static_runtimes=yes
9767 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'
9768 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9770 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9772 # If the export-symbols file already is a .def file, use it as
9773 # is; otherwise, prepend EXPORTS...
9774 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9775 cp $export_symbols $output_objdir/$soname.def;
9777 echo EXPORTS > $output_objdir/$soname.def;
9778 cat $export_symbols >> $output_objdir/$soname.def;
9780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9788 link_all_deplibs=yes
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_minus_L=yes
9794 allow_undefined_flag=unsupported
9796 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9797 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9798 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9799 $ECHO EXPORTS >> $output_objdir/$libname.def~
9800 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9801 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9802 emximp -o $lib $output_objdir/$libname.def'
9803 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9804 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9805 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9806 $ECHO EXPORTS >> $output_objdir/$libname.def~
9808 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9809 prefix_cmds="$prefix_cmds -e 1d";
9811 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9812 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9813 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9814 emximp -o $lib $output_objdir/$libname.def'
9815 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9816 enable_shared_with_static_runtimes=yes
9821 hardcode_shlibpath_var=no
9822 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9823 export_dynamic_flag_spec='$wl-E'
9824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9825 # Instead, shared libraries are loaded at an image base (0x10000000 by
9826 # default) and relocated if they conflict, which is a slow very memory
9827 # consuming and fragmenting process. To avoid this, we pick a random,
9828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9831 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'
9834 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9836 if test linux-dietlibc = "$host_os"; then
9837 case $cc_basename in
9838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9842 && test no = "$tmp_diet"
9844 tmp_addflag=' $pic_flag'
9845 tmp_sharedflag='-shared'
9846 case $cc_basename,$host_cpu in
9847 pgcc*) # Portland Group C compiler
9848 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'
9849 tmp_addflag=' $pic_flag'
9851 pgf77* | pgf90* | pgf95* | pgfortran*)
9852 # Portland Group f77 and f90 compilers
9853 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'
9854 tmp_addflag=' $pic_flag -Mnomain' ;;
9855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9856 tmp_addflag=' -i_dynamic' ;;
9857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9858 tmp_addflag=' -i_dynamic -nofor_main' ;;
9859 ifc* | ifort*) # Intel Fortran compiler
9860 tmp_addflag=' -nofor_main' ;;
9861 lf95*) # Lahey Fortran 8.1
9862 whole_archive_flag_spec=
9863 tmp_sharedflag='--shared' ;;
9864 nagfor*) # NAGFOR 5.3
9865 tmp_sharedflag='-Wl,-shared' ;;
9866 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9867 tmp_sharedflag='-qmkshrobj'
9869 nvcc*) # Cuda Compiler Driver 2.2
9870 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'
9871 compiler_needs_object=yes
9874 case `$CC -V 2>&1 | sed 5q` in
9875 *Sun\ C*) # Sun C 5.9
9876 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'
9877 compiler_needs_object=yes
9878 tmp_sharedflag='-G' ;;
9879 *Sun\ F*) # Sun Fortran 8.3
9880 tmp_sharedflag='-G' ;;
9882 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9884 if test yes = "$supports_anon_versioning"; then
9885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887 echo "local: *; };" >> $output_objdir/$libname.ver~
9888 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9891 case $cc_basename in
9893 export_dynamic_flag_spec='-rdynamic'
9895 xlf* | bgf* | bgxlf* | mpixlf*)
9896 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9897 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9898 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9899 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9900 if test yes = "$supports_anon_versioning"; then
9901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9903 echo "local: *; };" >> $output_objdir/$libname.ver~
9904 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9915 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9924 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9928 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9929 *** create shared libraries on Solaris systems. Therefore, libtool
9930 *** is disabling shared libraries support. We urge you to upgrade GNU
9931 *** binutils to release 2.9.1 or newer. Another option is to modify
9932 *** your PATH or compiler configuration so that the native linker is
9933 *** used, and then restart.
9936 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9938 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9945 case `$LD -v 2>&1` in
9946 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9950 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9951 *** reliably create shared libraries on SCO systems. Therefore, libtool
9952 *** is disabling shared libraries support. We urge you to upgrade GNU
9953 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9954 *** your PATH or compiler configuration so that the native linker is
9955 *** used, and then restart.
9960 # For security reasons, it is highly recommended that you always
9961 # use absolute paths for naming shared libraries, and exclude the
9962 # DT_RUNPATH tag from executables and libraries. But doing so
9963 # requires that you compile everything twice, which is a pain.
9964 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9965 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9967 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9976 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_shlibpath_var=no
9983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9992 if test no = "$ld_shlibs"; then
9994 hardcode_libdir_flag_spec=
9995 export_dynamic_flag_spec=
9996 whole_archive_flag_spec=
9999 # PORTME fill in a description of your system's linker (not GNU ld)
10002 allow_undefined_flag=unsupported
10003 always_export_symbols=yes
10004 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'
10005 # Note: this linker hardcodes the directories in LIBPATH if there
10006 # are no directories specified by -L.
10007 hardcode_minus_L=yes
10008 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10009 # Neither direct hardcoding nor static linking is supported with a
10011 hardcode_direct=unsupported
10016 if test ia64 = "$host_cpu"; then
10017 # On IA64, the linker does run time linking by default, so we don't
10018 # have to do anything special.
10019 aix_use_runtimelinking=no
10020 exp_sym_flag='-Bexport'
10023 # If we're using GNU nm, then we don't want the "-C" option.
10024 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10025 # Without the "-l" option, or with the "-B" option, AIX nm treats
10026 # weak defined symbols like other global defined symbols, whereas
10027 # GNU nm marks them as "W".
10028 # While the 'weak' keyword is ignored in the Export File, we need
10029 # it in the Import File for the 'aix-soname' feature, so we have
10030 # to replace the "-B" option with "-P" for AIX nm.
10031 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10032 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'
10034 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'
10036 aix_use_runtimelinking=no
10038 # Test if we are trying to use run time linking or normal
10039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10040 # have runtime linking enabled, and use it for executables.
10041 # For shared libraries, we enable/disable runtime linking
10042 # depending on the kind of the shared library created -
10043 # when "with_aix_soname,aix_use_runtimelinking" is:
10044 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10045 # "aix,yes" lib.so shared, rtl:yes, for executables
10046 # lib.a static archive
10047 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10048 # lib.a(lib.so.V) shared, rtl:no, for executables
10049 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10050 # lib.a(lib.so.V) shared, rtl:no
10051 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10052 # lib.a static archive
10053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10054 for ld_flag in $LDFLAGS; do
10055 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10056 aix_use_runtimelinking=yes
10060 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10061 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10062 # so we don't have lib.a shared libs to link our executables.
10063 # We have to force runtime linking in this case.
10064 aix_use_runtimelinking=yes
10065 LDFLAGS="$LDFLAGS -Wl,-brtl"
10070 exp_sym_flag='-bexport'
10071 no_entry_flag='-bnoentry'
10074 # When large executables or shared objects are built, AIX ld can
10075 # have problems creating the table of contents. If linking a library
10076 # or program results in "error TOC overflow" add -mminimal-toc to
10077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10081 hardcode_direct=yes
10082 hardcode_direct_absolute=yes
10083 hardcode_libdir_separator=':'
10084 link_all_deplibs=yes
10085 file_list_spec='$wl-f,'
10086 case $with_aix_soname,$aix_use_runtimelinking in
10087 aix,*) ;; # traditional, no import file
10088 svr4,* | *,yes) # use import file
10089 # The Import File defines what to hardcode.
10091 hardcode_direct_absolute=no
10095 if test yes = "$GCC"; then
10096 case $host_os in aix4.[012]|aix4.[012].*)
10097 # We only want to do this on AIX 4.2 and lower, the check
10098 # below for broken collect2 doesn't work under 4.3+
10099 collect2name=`$CC -print-prog-name=collect2`
10100 if test -f "$collect2name" &&
10101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10103 # We have reworked collect2
10106 # We have old collect2
10107 hardcode_direct=unsupported
10108 # It fails to find uninstalled libraries when the uninstalled
10109 # path is not listed in the libpath. Setting hardcode_minus_L
10110 # to unsupported forces relinking
10111 hardcode_minus_L=yes
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_libdir_separator=
10117 shared_flag='-shared'
10118 if test yes = "$aix_use_runtimelinking"; then
10119 shared_flag="$shared_flag "'$wl-G'
10121 # Need to ensure runtime linking is disabled for the traditional
10122 # shared library, or the linker may eventually find shared libraries
10123 # /with/ Import File - we do not want to mix them.
10124 shared_flag_aix='-shared'
10125 shared_flag_svr4='-shared $wl-G'
10128 if test ia64 = "$host_cpu"; then
10129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10130 # chokes on -Wl,-G. The following line is correct:
10133 if test yes = "$aix_use_runtimelinking"; then
10134 shared_flag='$wl-G'
10136 shared_flag='$wl-bM:SRE'
10138 shared_flag_aix='$wl-bM:SRE'
10139 shared_flag_svr4='$wl-G'
10143 export_dynamic_flag_spec='$wl-bexpall'
10144 # It seems that -bexpall does not export symbols beginning with
10145 # underscore (_), so it is better to generate a list of symbols to export.
10146 always_export_symbols=yes
10147 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10148 # Warning - without using the other runtime loading flags (-brtl),
10149 # -berok will link without error, but may produce a broken library.
10150 allow_undefined_flag='-berok'
10151 # Determine the default libpath from the value encoded in an
10152 # empty executable.
10153 if test set = "${lt_cv_aix_libpath+set}"; then
10154 aix_libpath=$lt_cv_aix_libpath
10156 if ${lt_cv_aix_libpath_+:} false; then :
10157 $as_echo_n "(cached) " >&6
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10170 if ac_fn_c_try_link "$LINENO"; then :
10172 lt_aix_libpath_sed='
10173 /Import File Strings/,/^$/ {
10175 s/^0 *\([^ ]*\) *$/\1/
10179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10180 # Check for a 64-bit object if we didn't find anything.
10181 if test -z "$lt_cv_aix_libpath_"; then
10182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 if test -z "$lt_cv_aix_libpath_"; then
10188 lt_cv_aix_libpath_=/usr/lib:/lib
10193 aix_libpath=$lt_cv_aix_libpath_
10196 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10197 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
10199 if test ia64 = "$host_cpu"; then
10200 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10201 allow_undefined_flag="-z nodefs"
10202 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"
10204 # Determine the default libpath from the value encoded in an
10205 # empty executable.
10206 if test set = "${lt_cv_aix_libpath+set}"; then
10207 aix_libpath=$lt_cv_aix_libpath
10209 if ${lt_cv_aix_libpath_+:} false; then :
10210 $as_echo_n "(cached) " >&6
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10223 if ac_fn_c_try_link "$LINENO"; then :
10225 lt_aix_libpath_sed='
10226 /Import File Strings/,/^$/ {
10228 s/^0 *\([^ ]*\) *$/\1/
10232 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233 # Check for a 64-bit object if we didn't find anything.
10234 if test -z "$lt_cv_aix_libpath_"; then
10235 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 if test -z "$lt_cv_aix_libpath_"; then
10241 lt_cv_aix_libpath_=/usr/lib:/lib
10246 aix_libpath=$lt_cv_aix_libpath_
10249 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10250 # Warning - without using the other run time loading flags,
10251 # -berok will link without error, but may produce a broken library.
10252 no_undefined_flag=' $wl-bernotok'
10253 allow_undefined_flag=' $wl-berok'
10254 if test yes = "$with_gnu_ld"; then
10255 # We only use this code for GNU lds that support --whole-archive.
10256 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10258 # Exported symbols can be pulled into shared objects from archives
10259 whole_archive_flag_spec='$convenience'
10261 archive_cmds_need_lc=yes
10262 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10263 # -brtl affects multiple linker settings, -berok does not and is overridden later
10264 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10265 if test svr4 != "$with_aix_soname"; then
10266 # This is similar to how AIX traditionally builds its shared libraries.
10267 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'
10269 if test aix != "$with_aix_soname"; then
10270 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'
10272 # used by -dlpreopen to get the symbols
10273 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10275 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10283 # see comment about AmigaOS4 .so support
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10285 archive_expsym_cmds=''
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10296 export_dynamic_flag_spec=-rdynamic
10299 cygwin* | mingw* | pw32* | cegcc*)
10300 # When not using gcc, we currently assume that we are using
10301 # Microsoft Visual C++.
10302 # hardcode_libdir_flag_spec is actually meaningless, as there is
10303 # no search path for DLLs.
10304 case $cc_basename in
10307 hardcode_libdir_flag_spec=' '
10308 allow_undefined_flag=unsupported
10309 always_export_symbols=yes
10311 # Tell ltmain to make .lib files, not .a files.
10313 # Tell ltmain to make .dll files, not .so files.
10315 # FIXME: Setting linknames here is a bad hack.
10316 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10318 cp "$export_symbols" "$output_objdir/$soname.def";
10319 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10321 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10323 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10325 # The linker will not automatically build a static lib if we build a DLL.
10326 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10327 enable_shared_with_static_runtimes=yes
10328 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10331 old_postinstall_cmds='chmod 644 $oldlib'
10332 postlink_cmds='lt_outputfile="@OUTPUT@"~
10333 lt_tool_outputfile="@TOOL_OUTPUT@"~
10334 case $lt_outputfile in
10337 lt_outputfile=$lt_outputfile.exe
10338 lt_tool_outputfile=$lt_tool_outputfile.exe
10341 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10342 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10343 $RM "$lt_outputfile.manifest";
10347 # Assume MSVC wrapper
10348 hardcode_libdir_flag_spec=' '
10349 allow_undefined_flag=unsupported
10350 # Tell ltmain to make .lib files, not .a files.
10352 # Tell ltmain to make .dll files, not .so files.
10354 # FIXME: Setting linknames here is a bad hack.
10355 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10356 # The linker will automatically build a .lib file if we build a DLL.
10357 old_archive_from_new_cmds='true'
10358 # FIXME: Should let the user specify the lib program.
10359 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10360 enable_shared_with_static_runtimes=yes
10365 darwin* | rhapsody*)
10368 archive_cmds_need_lc=no
10370 hardcode_automatic=yes
10371 hardcode_shlibpath_var=unsupported
10372 if test yes = "$lt_cv_ld_force_load"; then
10373 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\"`'
10376 whole_archive_flag_spec=''
10378 link_all_deplibs=yes
10379 allow_undefined_flag=$_lt_dar_allow_undefined
10380 case $cc_basename in
10381 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10382 *) _lt_dar_can_shared=$GCC ;;
10384 if test yes = "$_lt_dar_can_shared"; then
10385 output_verbose_link_cmd=func_echo_all
10386 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10387 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10388 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"
10389 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"
10398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_libdir_flag_spec='-L$libdir'
10400 hardcode_shlibpath_var=no
10403 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10404 # support. Future versions do this automatically, but an explicit c++rt0.o
10405 # does not break anything, and helps significantly (at the cost of a little
10408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10409 hardcode_libdir_flag_spec='-R$libdir'
10410 hardcode_direct=yes
10411 hardcode_shlibpath_var=no
10414 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_direct=yes
10418 hardcode_minus_L=yes
10419 hardcode_shlibpath_var=no
10422 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10423 freebsd* | dragonfly*)
10424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10425 hardcode_libdir_flag_spec='-R$libdir'
10426 hardcode_direct=yes
10427 hardcode_shlibpath_var=no
10431 if test yes = "$GCC"; then
10432 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'
10434 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'
10436 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10437 hardcode_libdir_separator=:
10438 hardcode_direct=yes
10440 # hardcode_minus_L: Not really in the search PATH,
10441 # but as the default location of the library.
10442 hardcode_minus_L=yes
10443 export_dynamic_flag_spec='$wl-E'
10447 if test yes,no = "$GCC,$with_gnu_ld"; then
10448 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10452 if test no = "$with_gnu_ld"; then
10453 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10454 hardcode_libdir_separator=:
10455 hardcode_direct=yes
10456 hardcode_direct_absolute=yes
10457 export_dynamic_flag_spec='$wl-E'
10458 # hardcode_minus_L: Not really in the search PATH,
10459 # but as the default location of the library.
10460 hardcode_minus_L=yes
10465 if test yes,no = "$GCC,$with_gnu_ld"; then
10468 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10471 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10487 # Older versions of the 11.00 compiler do not understand -b yet
10488 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10490 $as_echo_n "checking if $CC understands -b... " >&6; }
10491 if ${lt_cv_prog_compiler__b+:} false; then :
10492 $as_echo_n "(cached) " >&6
10494 lt_cv_prog_compiler__b=no
10495 save_LDFLAGS=$LDFLAGS
10496 LDFLAGS="$LDFLAGS -b"
10497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10499 # The linker can only warn and ignore the option if not recognized
10500 # So say no if there are warnings
10501 if test -s conftest.err; then
10502 # Append any errors to the config.log.
10503 cat conftest.err 1>&5
10504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10506 if diff conftest.exp conftest.er2 >/dev/null; then
10507 lt_cv_prog_compiler__b=yes
10510 lt_cv_prog_compiler__b=yes
10514 LDFLAGS=$save_LDFLAGS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10518 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10520 if test yes = "$lt_cv_prog_compiler__b"; then
10521 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10529 if test no = "$with_gnu_ld"; then
10530 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10531 hardcode_libdir_separator=:
10536 hardcode_shlibpath_var=no
10539 hardcode_direct=yes
10540 hardcode_direct_absolute=yes
10541 export_dynamic_flag_spec='$wl-E'
10543 # hardcode_minus_L: Not really in the search PATH,
10544 # but as the default location of the library.
10545 hardcode_minus_L=yes
10551 irix5* | irix6* | nonstopux*)
10552 if test yes = "$GCC"; then
10553 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'
10554 # Try to use the -exported_symbol ld option, if it does not
10555 # work, assume that -exports_file does not work either and
10556 # implicitly export all symbols.
10557 # This should be the same for all languages, so no per-tag cache variable.
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10559 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10560 if ${lt_cv_irix_exported_symbol+:} false; then :
10561 $as_echo_n "(cached) " >&6
10563 save_LDFLAGS=$LDFLAGS
10564 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567 int foo (void) { return 0; }
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 lt_cv_irix_exported_symbol=yes
10572 lt_cv_irix_exported_symbol=no
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LDFLAGS=$save_LDFLAGS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10579 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10580 if test yes = "$lt_cv_irix_exported_symbol"; then
10581 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'
10584 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'
10585 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'
10587 archive_cmds_need_lc='no'
10588 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10589 hardcode_libdir_separator=:
10591 link_all_deplibs=yes
10595 case $cc_basename in
10597 # Fabrice Bellard et al's Tiny C Compiler
10599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10610 hardcode_libdir_flag_spec='-R$libdir'
10611 hardcode_direct=yes
10612 hardcode_shlibpath_var=no
10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_direct=yes
10618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10619 hardcode_libdir_separator=:
10620 hardcode_shlibpath_var=no
10626 openbsd* | bitrig*)
10627 if test -f /usr/libexec/ld.so; then
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10630 hardcode_direct_absolute=yes
10631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10634 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10635 export_dynamic_flag_spec='$wl-E'
10637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10638 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10646 hardcode_libdir_flag_spec='-L$libdir'
10647 hardcode_minus_L=yes
10648 allow_undefined_flag=unsupported
10650 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10651 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10652 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10653 $ECHO EXPORTS >> $output_objdir/$libname.def~
10654 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10656 emximp -o $lib $output_objdir/$libname.def'
10657 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10658 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10659 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10660 $ECHO EXPORTS >> $output_objdir/$libname.def~
10661 prefix_cmds="$SED"~
10662 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10663 prefix_cmds="$prefix_cmds -e 1d";
10665 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10666 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10667 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10668 emximp -o $lib $output_objdir/$libname.def'
10669 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10670 enable_shared_with_static_runtimes=yes
10674 if test yes = "$GCC"; then
10675 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10676 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'
10678 allow_undefined_flag=' -expect_unresolved \*'
10679 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'
10681 archive_cmds_need_lc='no'
10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10683 hardcode_libdir_separator=:
10686 osf4* | osf5*) # as osf3* with the addition of -msym flag
10687 if test yes = "$GCC"; then
10688 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10689 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'
10690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10692 allow_undefined_flag=' -expect_unresolved \*'
10693 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'
10694 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~
10695 $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'
10697 # Both c and cxx compiler support -rpath directly
10698 hardcode_libdir_flag_spec='-rpath $libdir'
10700 archive_cmds_need_lc='no'
10701 hardcode_libdir_separator=:
10705 no_undefined_flag=' -z defs'
10706 if test yes = "$GCC"; then
10708 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10710 $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'
10712 case `$CC -V 2>&1` in
10715 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10717 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10721 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10723 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10727 hardcode_libdir_flag_spec='-R$libdir'
10728 hardcode_shlibpath_var=no
10730 solaris2.[0-5] | solaris2.[0-5].*) ;;
10732 # The compiler driver will combine and reorder linker options,
10733 # but understands '-z linker_flag'. GCC discards it without '$wl',
10734 # but is careful enough not to reorder.
10735 # Supported since Solaris 2.6 (maybe 2.5.1?)
10736 if test yes = "$GCC"; then
10737 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10739 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10743 link_all_deplibs=yes
10747 if test sequent = "$host_vendor"; then
10748 # Use $CC to link under sequent, because it throws in some extra .o
10749 # files that make .init and .fini sections work.
10750 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10752 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_libdir_flag_spec='-L$libdir'
10755 hardcode_direct=yes
10756 hardcode_minus_L=yes
10757 hardcode_shlibpath_var=no
10761 case $host_vendor in
10763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764 hardcode_direct=yes # is this really true???
10767 ## LD is ld it makes a PLAMLIB
10768 ## CC just makes a GrossModule.
10769 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10770 reload_cmds='$CC -r -o $output$reload_objs'
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10778 runpath_var='LD_RUN_PATH'
10779 hardcode_shlibpath_var=no
10783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_shlibpath_var=no
10785 export_dynamic_flag_spec='-Bexport'
10789 if test -d /usr/nec; then
10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_shlibpath_var=no
10792 runpath_var=LD_RUN_PATH
10793 hardcode_runpath_var=yes
10798 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10799 no_undefined_flag='$wl-z,text'
10800 archive_cmds_need_lc=no
10801 hardcode_shlibpath_var=no
10802 runpath_var='LD_RUN_PATH'
10804 if test yes = "$GCC"; then
10805 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 sysv5* | sco3.2v5* | sco5v6*)
10814 # Note: We CANNOT use -z defs as we might desire, because we do not
10815 # link with -lc, and that would cause any symbols used from libc to
10816 # always be unresolved, which means just about no library would
10817 # ever link correctly. If we're not using GNU ld we use -z text
10818 # though, which does catch some bad symbols but isn't as heavy-handed
10820 no_undefined_flag='$wl-z,text'
10821 allow_undefined_flag='$wl-z,nodefs'
10822 archive_cmds_need_lc=no
10823 hardcode_shlibpath_var=no
10824 hardcode_libdir_flag_spec='$wl-R,$libdir'
10825 hardcode_libdir_separator=':'
10826 link_all_deplibs=yes
10827 export_dynamic_flag_spec='$wl-Bexport'
10828 runpath_var='LD_RUN_PATH'
10830 if test yes = "$GCC"; then
10831 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10832 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10834 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_libdir_flag_spec='-L$libdir'
10842 hardcode_shlibpath_var=no
10850 if test sni = "$host_vendor"; then
10852 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10853 export_dynamic_flag_spec='$wl-Blargedynsym'
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10860 $as_echo "$ld_shlibs" >&6; }
10861 test no = "$ld_shlibs" && can_build_shared=no
10863 with_gnu_ld=$with_gnu_ld
10880 # Do we need to explicitly link libc?
10882 case "x$archive_cmds_need_lc" in
10884 # Assume -lc should be added
10885 archive_cmds_need_lc=yes
10887 if test yes,yes = "$GCC,$enable_shared"; then
10888 case $archive_cmds in
10890 # FIXME: we may have to deal with multi-command sequences.
10893 # Test whether the compiler implicitly links with -lc since on some
10894 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10895 # to ld, don't add -lc before -lgcc.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10897 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10898 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10899 $as_echo_n "(cached) " >&6
10902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10905 (eval $ac_compile) 2>&5
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; } 2>conftest.err; then
10911 libobjs=conftest.$ac_objext
10913 wl=$lt_prog_compiler_wl
10914 pic_flag=$lt_prog_compiler_pic
10920 lt_save_allow_undefined_flag=$allow_undefined_flag
10921 allow_undefined_flag=
10922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10923 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10926 test $ac_status = 0; }
10928 lt_cv_archive_cmds_need_lc=no
10930 lt_cv_archive_cmds_need_lc=yes
10932 allow_undefined_flag=$lt_save_allow_undefined_flag
10934 cat conftest.err 1>&5
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10940 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10941 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11102 if test yes = "$GCC"; then
11104 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11105 *) lt_awk_arg='/^libraries:/' ;;
11108 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11109 *) lt_sed_strip_eq='s|=/|/|g' ;;
11111 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11112 case $lt_search_path_spec in
11114 # if the path contains ";" then we assume it to be the separator
11115 # otherwise default to the standard path separator (i.e. ":") - it is
11116 # assumed that no part of a normal pathname contains ";" but that should
11117 # okay in the real world where ";" in dirpaths is itself problematic.
11118 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11121 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11124 # Ok, now we have the path, separated by spaces, we can step through it
11125 # and add multilib dir if necessary...
11126 lt_tmp_lt_search_path_spec=
11127 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11128 # ...but if some path component already ends with the multilib dir we assume
11129 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11130 case "$lt_multi_os_dir; $lt_search_path_spec " in
11131 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11135 for lt_sys_path in $lt_search_path_spec; do
11136 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11137 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11138 elif test -n "$lt_multi_os_dir"; then
11139 test -d "$lt_sys_path" && \
11140 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11143 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11144 BEGIN {RS = " "; FS = "/|\n";} {
11147 for (lt_i = NF; lt_i > 0; lt_i--) {
11148 if ($lt_i != "" && $lt_i != ".") {
11149 if ($lt_i == "..") {
11152 if (lt_count == 0) {
11153 lt_foo = "/" $lt_i lt_foo;
11160 if (lt_foo != "") { lt_freq[lt_foo]++; }
11161 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11163 # AWK program above erroneously prepends '/' to C:/dos/paths
11166 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11167 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11169 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11171 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11173 library_names_spec=
11174 libname_spec='lib$name'
11178 postuninstall_cmds=
11182 shlibpath_overrides_runpath=unknown
11184 dynamic_linker="$host_os ld.so"
11185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11186 need_lib_prefix=unknown
11187 hardcode_into_libs=no
11189 # when you set need_version to no, make sure it does not cause -set_version
11190 # flags to be left without arguments
11191 need_version=unknown
11197 version_type=linux # correct to gnu/linux during the next big refactor
11198 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11199 shlibpath_var=LIBPATH
11201 # AIX 3 has no versioning support, so we append a major version to the name.
11202 soname_spec='$libname$release$shared_ext$major'
11206 version_type=linux # correct to gnu/linux during the next big refactor
11209 hardcode_into_libs=yes
11210 if test ia64 = "$host_cpu"; then
11211 # AIX 5 supports IA64
11212 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11213 shlibpath_var=LD_LIBRARY_PATH
11215 # With GCC up to 2.95.x, collect2 would create an import file
11216 # for dependence libraries. The import file would start with
11217 # the line '#! .'. This would cause the generated library to
11218 # depend on '.', always an invalid library. This was fixed in
11219 # development snapshots of GCC prior to 3.0.
11221 aix4 | aix4.[01] | aix4.[01].*)
11222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11224 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11227 can_build_shared=no
11231 # Using Import Files as archive members, it is possible to support
11232 # filename-based versioning of shared library archives on AIX. While
11233 # this would work for both with and without runtime linking, it will
11234 # prevent static linking of such archives. So we do filename-based
11235 # shared library versioning with .so extension only, which is used
11236 # when both runtime linking and shared linking is enabled.
11237 # Unfortunately, runtime linking may impact performance, so we do
11238 # not want this to be the default eventually. Also, we use the
11239 # versioned .so libs for executables only if there is the -brtl
11240 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11241 # To allow for filename-based versioning support, we need to create
11242 # libNAME.so.V as an archive file, containing:
11243 # *) an Import File, referring to the versioned filename of the
11244 # archive as well as the shared archive member, telling the
11245 # bitwidth (32 or 64) of that shared object, and providing the
11246 # list of exported symbols of that shared object, eventually
11247 # decorated with the 'weak' keyword
11248 # *) the shared object with the F_LOADONLY flag set, to really avoid
11249 # it being seen by the linker.
11250 # At run time we better use the real file rather than another symlink,
11251 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11253 case $with_aix_soname,$aix_use_runtimelinking in
11254 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11255 # soname into executable. Probably we can add versioning support to
11256 # collect2, so additional links can be useful in future.
11257 aix,yes) # traditional libtool
11258 dynamic_linker='AIX unversionable lib.so'
11259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11260 # instead of lib<name>.a to let people know that these are not
11261 # typical AIX shared libraries.
11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264 aix,no) # traditional AIX only
11265 dynamic_linker='AIX lib.a(lib.so.V)'
11266 # We preserve .a as extension for shared libraries through AIX4.2
11267 # and later when we are not doing run time linking.
11268 library_names_spec='$libname$release.a $libname.a'
11269 soname_spec='$libname$release$shared_ext$major'
11271 svr4,*) # full svr4 only
11272 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11273 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11274 # We do not specify a path in Import Files, so LIBPATH fires.
11275 shlibpath_overrides_runpath=yes
11277 *,yes) # both, prefer svr4
11278 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11279 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11280 # unpreferred sharedlib libNAME.a needs extra handling
11281 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"'
11282 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"'
11283 # We do not specify a path in Import Files, so LIBPATH fires.
11284 shlibpath_overrides_runpath=yes
11286 *,no) # both, prefer aix
11287 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11288 library_names_spec='$libname$release.a $libname.a'
11289 soname_spec='$libname$release$shared_ext$major'
11290 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11291 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)'
11292 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"'
11295 shlibpath_var=LIBPATH
11302 # Since July 2007 AmigaOS4 officially supports .so libraries.
11303 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307 library_names_spec='$libname.ixlibrary $libname.a'
11308 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11309 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'
11315 library_names_spec='$libname$shared_ext'
11316 dynamic_linker="$host_os ld.so"
11317 shlibpath_var=LIBRARY_PATH
11321 version_type=linux # correct to gnu/linux during the next big refactor
11323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324 soname_spec='$libname$release$shared_ext$major'
11325 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11328 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11329 # the default ld.so.conf also contains /usr/contrib/lib and
11330 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11331 # libtool to hard-code these into programs
11334 cygwin* | mingw* | pw32* | cegcc*)
11335 version_type=windows
11340 case $GCC,$cc_basename in
11343 library_names_spec='$libname.dll.a'
11344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11345 postinstall_cmds='base_file=`basename \$file`~
11346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11347 dldir=$destdir/`dirname \$dlpath`~
11348 test -d \$dldir || mkdir -p \$dldir~
11349 $install_prog $dir/$dlname \$dldir/$dlname~
11350 chmod a+x \$dldir/$dlname~
11351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11355 dlpath=$dir/\$dldll~
11357 shlibpath_overrides_runpath=yes
11361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11362 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11364 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11367 # MinGW DLLs use traditional 'lib' prefix
11368 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11371 # pw32 DLLs use 'pw' prefix rather than 'lib'
11372 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11375 dynamic_linker='Win32 ld.exe'
11380 libname_spec='$name'
11381 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11382 library_names_spec='$libname.dll.lib'
11386 sys_lib_search_path_spec=
11389 for lt_path in $LIB
11392 # Let DOS variable expansion print the short 8.3 style file name.
11393 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11394 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11397 # Convert to MSYS style.
11398 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11401 # Convert to unix form, then to dos form, then back to unix form
11402 # but this time dos style (no spaces!) so that the unix form looks
11403 # like /cygdrive/c/PROGRA~1:/cygdr...
11404 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11405 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11406 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11409 sys_lib_search_path_spec=$LIB
11410 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11411 # It is most probably a Windows format PATH.
11412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11416 # FIXME: find the short name or the path components, as spaces are
11417 # common. (e.g. "Program Files" -> "PROGRA~1")
11421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11422 postinstall_cmds='base_file=`basename \$file`~
11423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11424 dldir=$destdir/`dirname \$dlpath`~
11425 test -d \$dldir || mkdir -p \$dldir~
11426 $install_prog $dir/$dlname \$dldir/$dlname'
11427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11428 dlpath=$dir/\$dldll~
11430 shlibpath_overrides_runpath=yes
11431 dynamic_linker='Win32 link.exe'
11435 # Assume MSVC wrapper
11436 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11437 dynamic_linker='Win32 ld.exe'
11440 # FIXME: first we should search . and the directory the executable is in
11444 darwin* | rhapsody*)
11445 dynamic_linker="$host_os dyld"
11446 version_type=darwin
11449 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11450 soname_spec='$libname$release$major$shared_ext'
11451 shlibpath_overrides_runpath=yes
11452 shlibpath_var=DYLD_LIBRARY_PATH
11453 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11455 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11460 version_type=linux # correct to gnu/linux during the next big refactor
11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11464 soname_spec='$libname$release$shared_ext$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11468 freebsd* | dragonfly*)
11469 # DragonFly does not have aout. When/if they implement a new
11470 # versioning mechanism, adjust this.
11471 if test -x /usr/bin/objformat; then
11472 objformat=`/usr/bin/objformat`
11475 freebsd[23].*) objformat=aout ;;
11476 *) objformat=elf ;;
11479 version_type=freebsd-$objformat
11480 case $version_type in
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11492 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes
11497 freebsd3.[01]* | freebsdelf3.[01]*)
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11501 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11502 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11506 *) # from 4.6 on, and DragonFly
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11514 version_type=linux # correct to gnu/linux during the next big refactor
11517 dynamic_linker="$host_os runtime_loader"
11518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11519 soname_spec='$libname$release$shared_ext$major'
11520 shlibpath_var=LIBRARY_PATH
11521 shlibpath_overrides_runpath=no
11522 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11523 hardcode_into_libs=yes
11526 hpux9* | hpux10* | hpux11*)
11527 # Give a soname corresponding to the major version so that dld.sl refuses to
11528 # link against other versions.
11535 hardcode_into_libs=yes
11536 dynamic_linker="$host_os dld.so"
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11540 soname_spec='$libname$release$shared_ext$major'
11541 if test 32 = "$HPUX_IA64_MODE"; then
11542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11543 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11545 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11546 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.sl"
11553 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556 soname_spec='$libname$release$shared_ext$major'
11557 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11558 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11562 dynamic_linker="$host_os dld.sl"
11563 shlibpath_var=SHLIB_PATH
11564 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11566 soname_spec='$libname$release$shared_ext$major'
11569 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11570 postinstall_cmds='chmod 555 $lib'
11571 # or fails outright, so override atomically:
11572 install_override_mode=555
11576 version_type=linux # correct to gnu/linux during the next big refactor
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580 soname_spec='$libname$release$shared_ext$major'
11581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11587 irix5* | irix6* | nonstopux*)
11589 nonstopux*) version_type=nonstopux ;;
11591 if test yes = "$lt_cv_prog_gnu_ld"; then
11592 version_type=linux # correct to gnu/linux during the next big refactor
11599 soname_spec='$libname$release$shared_ext$major'
11600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11602 irix5* | nonstopux*)
11603 libsuff= shlibsuff=
11606 case $LD in # libtool.m4 will add one of these switches to LD
11607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11608 libsuff= shlibsuff= libmagic=32-bit;;
11609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11610 libsuff=32 shlibsuff=N32 libmagic=N32;;
11611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11613 *) libsuff= shlibsuff= libmagic=never-match;;
11617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11618 shlibpath_overrides_runpath=no
11619 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11620 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11621 hardcode_into_libs=yes
11624 # No shared lib support for Linux oldld, aout, or coff.
11625 linux*oldld* | linux*aout* | linux*coff*)
11630 version_type=none # Android doesn't support versioned libraries.
11633 library_names_spec='$libname$release$shared_ext'
11634 soname_spec='$libname$release$shared_ext'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11639 # This implies no fast_install, which is unacceptable.
11640 # Some rework will be needed to allow for fast_install
11641 # before this can be enabled.
11642 hardcode_into_libs=yes
11644 dynamic_linker='Android linker'
11645 # Don't embed -rpath directories since the linker doesn't support them.
11646 hardcode_libdir_flag_spec='-L$libdir'
11649 # This must be glibc/ELF.
11650 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11651 version_type=linux # correct to gnu/linux during the next big refactor
11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655 soname_spec='$libname$release$shared_ext$major'
11656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=no
11660 # Some binutils ld are patched to set DT_RUNPATH
11661 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11662 $as_echo_n "(cached) " >&6
11664 lt_cv_shlibpath_overrides_runpath=no
11665 save_LDFLAGS=$LDFLAGS
11666 save_libdir=$libdir
11667 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11668 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11680 if ac_fn_c_try_link "$LINENO"; then :
11681 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11682 lt_cv_shlibpath_overrides_runpath=yes
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LDFLAGS=$save_LDFLAGS
11688 libdir=$save_libdir
11692 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11694 # This implies no fast_install, which is unacceptable.
11695 # Some rework will be needed to allow for fast_install
11696 # before this can be enabled.
11697 hardcode_into_libs=yes
11699 # Ideally, we could use ldconfig to report *all* directores which are
11700 # searched for libraries, however this is still not possible. Aside from not
11701 # being certain /sbin/ldconfig is available, command
11702 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11703 # even though it is searched at run-time. Try to do the best guess by
11704 # appending ld.so.conf contents (and includes) to the search path.
11705 if test -f /etc/ld.so.conf; then
11706 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' ' '`
11707 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11710 # We used to test for /lib/ld.so.1 and disable shared libraries on
11711 # powerpc, because MkLinux only supported shared libraries with the
11712 # GNU dynamic linker. Since this was broken with cross compilers,
11713 # most powerpc-linux boxes support dynamic linking these days and
11714 # people can always --disable-shared, the test was removed, and we
11715 # assume the GNU/Linux dynamic linker is in use.
11716 dynamic_linker='GNU/Linux ld.so'
11723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11726 dynamic_linker='NetBSD (a.out) ld.so'
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 dynamic_linker='NetBSD ld.elf_so'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 shlibpath_overrides_runpath=yes
11734 hardcode_into_libs=yes
11738 version_type=linux # correct to gnu/linux during the next big refactor
11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=yes
11748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749 soname_spec='$libname$release$shared_ext$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 shlibpath_overrides_runpath=no
11752 hardcode_into_libs=yes
11753 dynamic_linker='ldqnx.so'
11756 openbsd* | bitrig*)
11758 sys_lib_dlsearch_path_spec=/usr/lib
11760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=yes
11772 libname_spec='$name'
11773 version_type=windows
11777 # OS/2 can only load a DLL with a base name of 8 characters or less.
11778 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11779 v=$($ECHO $release$versuffix | tr -d .-);
11780 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11781 $ECHO $n$v`$shared_ext'
11782 library_names_spec='${libname}_dll.$libext'
11783 dynamic_linker='OS/2 ld.exe'
11784 shlibpath_var=BEGINLIBPATH
11785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11787 postinstall_cmds='base_file=`basename \$file`~
11788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11789 dldir=$destdir/`dirname \$dlpath`~
11790 test -d \$dldir || mkdir -p \$dldir~
11791 $install_prog $dir/$dlname \$dldir/$dlname~
11792 chmod a+x \$dldir/$dlname~
11793 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11794 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11797 dlpath=$dir/\$dldll~
11801 osf3* | osf4* | osf5*)
11805 soname_spec='$libname$release$shared_ext$major'
11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11817 version_type=linux # correct to gnu/linux during the next big refactor
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 soname_spec='$libname$release$shared_ext$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=yes
11824 hardcode_into_libs=yes
11825 # ldd complains unless libraries are executable
11826 postinstall_cmds='chmod +x $lib'
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11832 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=yes
11835 if test yes = "$with_gnu_ld"; then
11842 version_type=linux # correct to gnu/linux during the next big refactor
11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11844 soname_spec='$libname$release$shared_ext$major'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 case $host_vendor in
11848 shlibpath_overrides_runpath=no
11850 runpath_var=LD_RUN_PATH
11858 shlibpath_overrides_runpath=no
11859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11865 if test -d /usr/nec; then
11866 version_type=linux # correct to gnu/linux during the next big refactor
11867 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11868 soname_spec='$libname$shared_ext.$major'
11869 shlibpath_var=LD_LIBRARY_PATH
11873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11878 soname_spec='$libname$release$shared_ext$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 hardcode_into_libs=yes
11882 if test yes = "$with_gnu_ld"; then
11883 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11885 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11892 sys_lib_dlsearch_path_spec='/usr/lib'
11896 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11897 version_type=linux # correct to gnu/linux during the next big refactor
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 shlibpath_overrides_runpath=no
11903 hardcode_into_libs=yes
11907 version_type=linux # correct to gnu/linux during the next big refactor
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11909 soname_spec='$libname$release$shared_ext$major'
11910 shlibpath_var=LD_LIBRARY_PATH
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11918 $as_echo "$dynamic_linker" >&6; }
11919 test no = "$dynamic_linker" && can_build_shared=no
11921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11922 if test yes = "$GCC"; then
11923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11926 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11927 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11930 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11931 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11934 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11935 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11937 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11938 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11940 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11941 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12040 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12042 if test -n "$hardcode_libdir_flag_spec" ||
12043 test -n "$runpath_var" ||
12044 test yes = "$hardcode_automatic"; then
12046 # We can hardcode non-existent directories.
12047 if test no != "$hardcode_direct" &&
12048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12049 # have to relink, otherwise we might link with an installed library
12050 # when we should be linking with a yet-to-be-installed one
12051 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12052 test no != "$hardcode_minus_L"; then
12053 # Linking always hardcodes the temporary library directory.
12054 hardcode_action=relink
12056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12057 hardcode_action=immediate
12060 # We cannot hardcode anything, or else we can only hardcode existing
12062 hardcode_action=unsupported
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12065 $as_echo "$hardcode_action" >&6; }
12067 if test relink = "$hardcode_action" ||
12068 test yes = "$inherit_rpath"; then
12069 # Fast installation is not supported
12070 enable_fast_install=no
12071 elif test yes = "$shlibpath_overrides_runpath" ||
12072 test no = "$enable_shared"; then
12073 # Fast installation is not necessary
12074 enable_fast_install=needless
12082 if test yes != "$enable_dlopen"; then
12083 enable_dlopen=unknown
12084 enable_dlopen_self=unknown
12085 enable_dlopen_self_static=unknown
12092 lt_cv_dlopen=load_add_on
12094 lt_cv_dlopen_self=yes
12097 mingw* | pw32* | cegcc*)
12098 lt_cv_dlopen=LoadLibrary
12103 lt_cv_dlopen=dlopen
12108 # if libdl is installed we need to link against it
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12110 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12111 if ${ac_cv_lib_dl_dlopen+:} false; then :
12112 $as_echo_n "(cached) " >&6
12114 ac_check_lib_save_LIBS=$LIBS
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12119 /* Override any GCC internal prototype to avoid an error.
12120 Use char because int might match the return type of a GCC
12121 builtin and then its argument prototype would still apply. */
12134 if ac_fn_c_try_link "$LINENO"; then :
12135 ac_cv_lib_dl_dlopen=yes
12137 ac_cv_lib_dl_dlopen=no
12139 rm -f core conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
12141 LIBS=$ac_check_lib_save_LIBS
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12144 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12145 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12146 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12151 lt_cv_dlopen_self=yes
12158 # Don't try to run any link tests for TPF. We know it's impossible
12159 # because TPF is a cross-compiler, and we know how we open DSOs.
12160 lt_cv_dlopen=dlopen
12162 lt_cv_dlopen_self=no
12166 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12167 if test "x$ac_cv_func_shl_load" = xyes; then :
12168 lt_cv_dlopen=shl_load
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12171 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12172 if ${ac_cv_lib_dld_shl_load+:} false; then :
12173 $as_echo_n "(cached) " >&6
12175 ac_check_lib_save_LIBS=$LIBS
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12190 return shl_load ();
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_dld_shl_load=yes
12198 ac_cv_lib_dld_shl_load=no
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12205 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12206 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12207 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12209 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12210 if test "x$ac_cv_func_dlopen" = xyes; then :
12211 lt_cv_dlopen=dlopen
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12214 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12215 if ${ac_cv_lib_dl_dlopen+:} false; then :
12216 $as_echo_n "(cached) " >&6
12218 ac_check_lib_save_LIBS=$LIBS
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12238 if ac_fn_c_try_link "$LINENO"; then :
12239 ac_cv_lib_dl_dlopen=yes
12241 ac_cv_lib_dl_dlopen=no
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12248 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12249 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12250 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12253 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12254 if ${ac_cv_lib_svld_dlopen+:} false; then :
12255 $as_echo_n "(cached) " >&6
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lsvld $LIBS"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12277 if ac_fn_c_try_link "$LINENO"; then :
12278 ac_cv_lib_svld_dlopen=yes
12280 ac_cv_lib_svld_dlopen=no
12282 rm -f core conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
12284 LIBS=$ac_check_lib_save_LIBS
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12287 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12288 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12292 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12293 if ${ac_cv_lib_dld_dld_link+:} false; then :
12294 $as_echo_n "(cached) " >&6
12296 ac_check_lib_save_LIBS=$LIBS
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12311 return dld_link ();
12316 if ac_fn_c_try_link "$LINENO"; then :
12317 ac_cv_lib_dld_dld_link=yes
12319 ac_cv_lib_dld_dld_link=no
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 LIBS=$ac_check_lib_save_LIBS
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12326 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12327 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12328 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12349 if test no = "$lt_cv_dlopen"; then
12355 case $lt_cv_dlopen in
12357 save_CPPFLAGS=$CPPFLAGS
12358 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12360 save_LDFLAGS=$LDFLAGS
12361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12364 LIBS="$lt_cv_dlopen_libs $LIBS"
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12367 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12368 if ${lt_cv_dlopen_self+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 if test yes = "$cross_compiling"; then :
12372 lt_cv_dlopen_self=cross
12374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12375 lt_status=$lt_dlunknown
12376 cat > conftest.$ac_ext <<_LT_EOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12387 # define LT_DLGLOBAL RTLD_GLOBAL
12390 # define LT_DLGLOBAL DL_GLOBAL
12392 # define LT_DLGLOBAL 0
12396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12397 find out it does not work in some platform. */
12398 #ifndef LT_DLLAZY_OR_NOW
12400 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12403 # define LT_DLLAZY_OR_NOW DL_LAZY
12406 # define LT_DLLAZY_OR_NOW RTLD_NOW
12409 # define LT_DLLAZY_OR_NOW DL_NOW
12411 # define LT_DLLAZY_OR_NOW 0
12418 /* When -fvisibility=hidden is used, assume the code has been annotated
12419 correspondingly for the symbols needed. */
12420 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12421 int fnord () __attribute__((visibility("default")));
12424 int fnord () { return 42; }
12427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12428 int status = $lt_dlunknown;
12432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12435 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12436 else puts (dlerror ());
12438 /* dlclose (self); */
12446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12447 (eval $ac_link) 2>&5
12449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12450 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12451 (./conftest; exit; ) >&5 2>/dev/null
12453 case x$lt_status in
12454 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12455 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12456 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12459 # compilation failed
12460 lt_cv_dlopen_self=no
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12468 $as_echo "$lt_cv_dlopen_self" >&6; }
12470 if test yes = "$lt_cv_dlopen_self"; then
12471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12473 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12474 if ${lt_cv_dlopen_self_static+:} false; then :
12475 $as_echo_n "(cached) " >&6
12477 if test yes = "$cross_compiling"; then :
12478 lt_cv_dlopen_self_static=cross
12480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12481 lt_status=$lt_dlunknown
12482 cat > conftest.$ac_ext <<_LT_EOF
12483 #line $LINENO "configure"
12484 #include "confdefs.h"
12493 # define LT_DLGLOBAL RTLD_GLOBAL
12496 # define LT_DLGLOBAL DL_GLOBAL
12498 # define LT_DLGLOBAL 0
12502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12503 find out it does not work in some platform. */
12504 #ifndef LT_DLLAZY_OR_NOW
12506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12509 # define LT_DLLAZY_OR_NOW DL_LAZY
12512 # define LT_DLLAZY_OR_NOW RTLD_NOW
12515 # define LT_DLLAZY_OR_NOW DL_NOW
12517 # define LT_DLLAZY_OR_NOW 0
12524 /* When -fvisibility=hidden is used, assume the code has been annotated
12525 correspondingly for the symbols needed. */
12526 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12527 int fnord () __attribute__((visibility("default")));
12530 int fnord () { return 42; }
12533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12534 int status = $lt_dlunknown;
12538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12542 else puts (dlerror ());
12544 /* dlclose (self); */
12552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12553 (eval $ac_link) 2>&5
12555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12556 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12557 (./conftest; exit; ) >&5 2>/dev/null
12559 case x$lt_status in
12560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12565 # compilation failed
12566 lt_cv_dlopen_self_static=no
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12574 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12577 CPPFLAGS=$save_CPPFLAGS
12578 LDFLAGS=$save_LDFLAGS
12583 case $lt_cv_dlopen_self in
12584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12585 *) enable_dlopen_self=unknown ;;
12588 case $lt_cv_dlopen_self_static in
12589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12590 *) enable_dlopen_self_static=unknown ;;
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12613 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12614 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12620 # FIXME - insert some real tests, host_os isn't really good enough
12623 if test -n "$STRIP"; then
12624 striplib="$STRIP -x"
12625 old_striplib="$STRIP -S"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627 $as_echo "yes" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12651 # Report what library types will actually be built
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12653 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12655 $as_echo "$can_build_shared" >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12658 $as_echo_n "checking whether to build shared libraries... " >&6; }
12659 test no = "$can_build_shared" && enable_shared=no
12661 # On AIX, shared libraries and static libraries use the same namespace, and
12662 # are all built from PIC.
12665 test yes = "$enable_shared" && enable_static=no
12666 if test -n "$RANLIB"; then
12667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12668 postinstall_cmds='$RANLIB $lib'
12673 if test ia64 != "$host_cpu"; then
12674 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12675 yes,aix,yes) ;; # shared object as lib.so file only
12676 yes,svr4,*) ;; # shared object as lib.so archive member only
12677 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12683 $as_echo "$enable_shared" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12686 $as_echo_n "checking whether to build static libraries... " >&6; }
12687 # Make sure either enable_shared or enable_static is yes.
12688 test yes = "$enable_shared" || enable_static=yes
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12690 $as_echo "$enable_static" >&6; }
12697 ac_cpp='$CPP $CPPFLAGS'
12698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12718 ac_config_commands="$ac_config_commands libtool"
12723 # Only expand once:
12730 if test -n "$GCC"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
12732 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
12733 if ${gl_cv_cc_vis_werror+:} false; then :
12734 $as_echo_n "(cached) " >&6
12737 gl_save_CFLAGS="$CFLAGS"
12738 CFLAGS="$CFLAGS -Werror"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12750 if ac_fn_c_try_compile "$LINENO"; then :
12751 gl_cv_cc_vis_werror=yes
12753 gl_cv_cc_vis_werror=no
12755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 CFLAGS="$gl_save_CFLAGS"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
12760 $as_echo "$gl_cv_cc_vis_werror" >&6; }
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12762 $as_echo_n "checking for simple visibility declarations... " >&6; }
12763 if ${gl_cv_cc_visibility+:} false; then :
12764 $as_echo_n "(cached) " >&6
12767 gl_save_CFLAGS="$CFLAGS"
12768 CFLAGS="$CFLAGS -fvisibility=hidden"
12769 if test $gl_cv_cc_vis_werror = yes; then
12770 CFLAGS="$CFLAGS -Werror"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12775 extern __attribute__((__visibility__("default"))) int exportedvar;
12776 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12777 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12778 void dummyfunc (void) {}
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789 gl_cv_cc_visibility=yes
12791 gl_cv_cc_visibility=no
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 CFLAGS="$gl_save_CFLAGS"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12798 $as_echo "$gl_cv_cc_visibility" >&6; }
12799 if test $gl_cv_cc_visibility = yes; then
12800 CFLAG_VISIBILITY="-fvisibility=hidden"
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12813 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12814 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12815 $as_echo_n "(cached) " >&6
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 #include <sys/types.h>
12823 return makedev(0, 0);
12828 if ac_fn_c_try_link "$LINENO"; then :
12829 ac_cv_header_sys_types_h_makedev=yes
12831 ac_cv_header_sys_types_h_makedev=no
12833 rm -f core conftest.err conftest.$ac_objext \
12834 conftest$ac_exeext conftest.$ac_ext
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12838 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12840 if test $ac_cv_header_sys_types_h_makedev = no; then
12841 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12842 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12844 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12850 if test $ac_cv_header_sys_mkdev_h = no; then
12851 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12852 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12854 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12863 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12864 if ${ac_cv_header_sys_wait_h+:} false; then :
12865 $as_echo_n "(cached) " >&6
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <sys/types.h>
12870 #include <sys/wait.h>
12871 #ifndef WEXITSTATUS
12872 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12875 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12883 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889 ac_cv_header_sys_wait_h=yes
12891 ac_cv_header_sys_wait_h=no
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12896 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12897 if test $ac_cv_header_sys_wait_h = yes; then
12899 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12903 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
12905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12908 cat >>confdefs.h <<_ACEOF
12909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12916 for ac_header in utime.h wchar.h wctype.h
12918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12929 for ac_header in getopt.h err.h xlocale.h
12931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12934 cat >>confdefs.h <<_ACEOF
12935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12942 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
12944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12947 cat >>confdefs.h <<_ACEOF
12948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12955 if test "$enable_zlib" != "no"; then
12956 for ac_header in zlib.h
12958 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12959 if test "x$ac_cv_header_zlib_h" = xyes; then :
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_ZLIB_H 1
12969 if test "$enable_bzlib" != "no"; then
12970 for ac_header in bzlib.h
12972 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
12973 if test "x$ac_cv_header_bzlib_h" = xyes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_BZLIB_H 1
12983 if test "$enable_xzlib" != "no"; then
12984 for ac_header in lzma.h
12986 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12987 if test "x$ac_cv_header_lzma_h" = xyes; then :
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LZMA_H 1
12997 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
12999 if test "x$ac_cv_type_sig_t" = xyes; then :
13001 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
13006 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13007 if test "x$ac_cv_type_off_t" = xyes; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define off_t long int
13017 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13018 if test "x$ac_cv_type_size_t" = xyes; then :
13022 cat >>confdefs.h <<_ACEOF
13023 #define size_t unsigned int
13028 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13029 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13031 cat >>confdefs.h <<_ACEOF
13032 #define HAVE_STRUCT_STAT_ST_RDEV 1
13039 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13041 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13051 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13052 if ${ac_cv_struct_tm+:} false; then :
13053 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <sys/types.h>
13064 int *p = &tm.tm_sec;
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 ac_cv_struct_tm=time.h
13073 ac_cv_struct_tm=sys/time.h
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13078 $as_echo "$ac_cv_struct_tm" >&6; }
13079 if test $ac_cv_struct_tm = sys/time.h; then
13081 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13085 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13086 #include <$ac_cv_struct_tm>
13089 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_STRUCT_TM_TM_ZONE 1
13098 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13100 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13103 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13105 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_DECL_TZNAME $ac_have_decl
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13116 $as_echo_n "checking for tzname... " >&6; }
13117 if ${ac_cv_var_tzname+:} false; then :
13118 $as_echo_n "(cached) " >&6
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 #if !HAVE_DECL_TZNAME
13124 extern char *tzname[];
13130 return tzname[0][0];
13135 if ac_fn_c_try_link "$LINENO"; then :
13136 ac_cv_var_tzname=yes
13138 ac_cv_var_tzname=no
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13144 $as_echo "$ac_cv_var_tzname" >&6; }
13145 if test $ac_cv_var_tzname = yes; then
13147 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13153 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13154 if ${ac_cv_struct_tm_zone+:} false; then :
13155 $as_echo_n "(cached) " >&6
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159 #include <sys/types.h>
13160 #include <$ac_cv_struct_tm>
13164 struct tm tm; tm.tm_zone;
13169 if ac_fn_c_try_compile "$LINENO"; then :
13170 ac_cv_struct_tm_zone=yes
13172 ac_cv_struct_tm_zone=no
13174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13177 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13178 if test "$ac_cv_struct_tm_zone" = yes; then
13180 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13184 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13185 # consider it declared and we won't give our own extern.
13186 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13188 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_TZNAME $ac_have_decl
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13199 $as_echo_n "checking for tzname... " >&6; }
13200 if ${ac_cv_var_tzname+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13209 #if !HAVE_DECL_TZNAME
13210 extern char *tzname[];
13212 return tzname[0][0];
13217 if ac_fn_c_try_link "$LINENO"; then :
13218 ac_cv_var_tzname=yes
13220 ac_cv_var_tzname=no
13222 rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13226 $as_echo "$ac_cv_var_tzname" >&6; }
13227 if test $ac_cv_var_tzname = yes; then
13229 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13234 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13235 if ${ac_cv_struct_tm_isdst+:} false; then :
13236 $as_echo_n "(cached) " >&6
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240 #include <sys/types.h>
13241 #include <$ac_cv_struct_tm>
13245 struct tm tm; tm.tm_isdst;
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 ac_cv_struct_tm_isdst=yes
13253 ac_cv_struct_tm_isdst=no
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13258 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13259 if test "$ac_cv_struct_tm_isdst" = yes; then
13261 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13266 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13268 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13279 $as_echo_n "checking for daylight... " >&6; }
13280 if ${ac_cv_var_daylight+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13289 #if !HAVE_DECL_DAYLIGHT
13290 extern int daylight;
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 ac_cv_var_daylight=yes
13300 ac_cv_var_daylight=no
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13306 $as_echo "$ac_cv_var_daylight" >&6; }
13307 if test $ac_cv_var_daylight = yes; then
13309 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13313 # Check whether --enable-largefile was given.
13314 if test "${enable_largefile+set}" = set; then :
13315 enableval=$enable_largefile;
13318 if test "$enable_largefile" != no; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13321 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13322 if ${ac_cv_sys_largefile_CC+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 ac_cv_sys_largefile_CC=no
13326 if test "$GCC" != yes; then
13329 # IRIX 6.2 and later do not support large files by default,
13330 # so use the C compiler's -n32 option if that helps.
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <sys/types.h>
13334 /* Check that off_t can represent 2**63 - 1 correctly.
13335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336 since some C++ compilers masquerading as C compilers
13337 incorrectly reject 9223372036854775807. */
13338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340 && LARGE_OFF_T % 2147483647 == 1)
13350 if ac_fn_c_try_compile "$LINENO"; then :
13353 rm -f core conftest.err conftest.$ac_objext
13355 if ac_fn_c_try_compile "$LINENO"; then :
13356 ac_cv_sys_largefile_CC=' -n32'; break
13358 rm -f core conftest.err conftest.$ac_objext
13362 rm -f conftest.$ac_ext
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13366 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13367 if test "$ac_cv_sys_largefile_CC" != no; then
13368 CC=$CC$ac_cv_sys_largefile_CC
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13372 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13373 if ${ac_cv_sys_file_offset_bits+:} false; then :
13374 $as_echo_n "(cached) " >&6
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379 #include <sys/types.h>
13380 /* Check that off_t can represent 2**63 - 1 correctly.
13381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13382 since some C++ compilers masquerading as C compilers
13383 incorrectly reject 9223372036854775807. */
13384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13386 && LARGE_OFF_T % 2147483647 == 1)
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397 ac_cv_sys_file_offset_bits=no; break
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #define _FILE_OFFSET_BITS 64
13403 #include <sys/types.h>
13404 /* Check that off_t can represent 2**63 - 1 correctly.
13405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13406 since some C++ compilers masquerading as C compilers
13407 incorrectly reject 9223372036854775807. */
13408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13410 && LARGE_OFF_T % 2147483647 == 1)
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 ac_cv_sys_file_offset_bits=64; break
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 ac_cv_sys_file_offset_bits=unknown
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13429 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13430 case $ac_cv_sys_file_offset_bits in #(
13433 cat >>confdefs.h <<_ACEOF
13434 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13439 if test $ac_cv_sys_file_offset_bits = unknown; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13441 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13442 if ${ac_cv_sys_large_files+:} false; then :
13443 $as_echo_n "(cached) " >&6
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <sys/types.h>
13449 /* Check that off_t can represent 2**63 - 1 correctly.
13450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13451 since some C++ compilers masquerading as C compilers
13452 incorrectly reject 9223372036854775807. */
13453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13455 && LARGE_OFF_T % 2147483647 == 1)
13465 if ac_fn_c_try_compile "$LINENO"; then :
13466 ac_cv_sys_large_files=no; break
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #define _LARGE_FILES 1
13472 #include <sys/types.h>
13473 /* Check that off_t can represent 2**63 - 1 correctly.
13474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13475 since some C++ compilers masquerading as C compilers
13476 incorrectly reject 9223372036854775807. */
13477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13479 && LARGE_OFF_T % 2147483647 == 1)
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 ac_cv_sys_large_files=1; break
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 ac_cv_sys_large_files=unknown
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13498 $as_echo "$ac_cv_sys_large_files" >&6; }
13499 case $ac_cv_sys_large_files in #(
13502 cat >>confdefs.h <<_ACEOF
13503 #define _LARGE_FILES $ac_cv_sys_large_files
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13514 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13515 if ${ac_cv_sys_largefile_source+:} false; then :
13516 $as_echo_n "(cached) " >&6
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13521 #include <sys/types.h> /* for off_t */
13526 int (*fp) (FILE *, off_t, int) = fseeko;
13527 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 ac_cv_sys_largefile_source=no; break
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 #define _LARGEFILE_SOURCE 1
13540 #include <sys/types.h> /* for off_t */
13545 int (*fp) (FILE *, off_t, int) = fseeko;
13546 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13551 if ac_fn_c_try_link "$LINENO"; then :
13552 ac_cv_sys_largefile_source=1; break
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 ac_cv_sys_largefile_source=unknown
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13561 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13562 case $ac_cv_sys_largefile_source in #(
13565 cat >>confdefs.h <<_ACEOF
13566 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13572 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13573 # in glibc 2.1.3, but that breaks too many other things.
13574 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13575 if test $ac_cv_sys_largefile_source != unknown; then
13577 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13582 $as_echo_n "checking for mbstate_t... " >&6; }
13583 if ${ac_cv_type_mbstate_t+:} false; then :
13584 $as_echo_n "(cached) " >&6
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 $ac_includes_default
13589 # include <wchar.h>
13593 mbstate_t x; return sizeof x;
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599 ac_cv_type_mbstate_t=yes
13601 ac_cv_type_mbstate_t=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13606 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13607 if test $ac_cv_type_mbstate_t = yes; then
13609 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13613 $as_echo "#define mbstate_t int" >>confdefs.h
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
13618 $as_echo_n "checking for struct option in getopt... " >&6; }
13619 if ${ac_cv_struct_option_getopt_h+:} false; then :
13620 $as_echo_n "(cached) " >&6
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <getopt.h>
13628 struct option op; op.name;
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 ac_cv_struct_option_getopt_h=yes
13636 ac_cv_struct_option_getopt_h=no
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
13641 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
13642 if test "$ac_cv_struct_option_getopt_h" = yes; then
13644 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
13648 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13649 if test "x$ac_cv_type_pid_t" = xyes; then :
13653 cat >>confdefs.h <<_ACEOF
13659 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13660 case $ac_cv_c_uint8_t in #(
13664 $as_echo "#define _UINT8_T 1" >>confdefs.h
13667 cat >>confdefs.h <<_ACEOF
13668 #define uint8_t $ac_cv_c_uint8_t
13673 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13674 case $ac_cv_c_uint16_t in #(
13679 cat >>confdefs.h <<_ACEOF
13680 #define uint16_t $ac_cv_c_uint16_t
13685 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13686 case $ac_cv_c_uint32_t in #(
13690 $as_echo "#define _UINT32_T 1" >>confdefs.h
13693 cat >>confdefs.h <<_ACEOF
13694 #define uint32_t $ac_cv_c_uint32_t
13699 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
13700 case $ac_cv_c_int32_t in #(
13704 cat >>confdefs.h <<_ACEOF
13705 #define int32_t $ac_cv_c_int32_t
13710 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13711 case $ac_cv_c_uint64_t in #(
13715 $as_echo "#define _UINT64_T 1" >>confdefs.h
13718 cat >>confdefs.h <<_ACEOF
13719 #define uint64_t $ac_cv_c_uint64_t
13724 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13725 case $ac_cv_c_int64_t in #(
13729 cat >>confdefs.h <<_ACEOF
13730 #define int64_t $ac_cv_c_int64_t
13736 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13737 if test "x$ac_cv_type_intptr_t" = xyes; then :
13739 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13742 for ac_type in 'int' 'long int' 'long long int'; do
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 $ac_includes_default
13749 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13750 test_array [0] = 0;
13751 return test_array [0];
13757 if ac_fn_c_try_compile "$LINENO"; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define intptr_t $ac_type
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 test -z "$ac_type" && break
13772 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13773 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13775 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13778 for ac_type in 'unsigned int' 'unsigned long int' \
13779 'unsigned long long int'; do
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 $ac_includes_default
13786 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13787 test_array [0] = 0;
13788 return test_array [0];
13794 if ac_fn_c_try_compile "$LINENO"; then :
13796 cat >>confdefs.h <<_ACEOF
13797 #define uintptr_t $ac_type
13802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 test -z "$ac_type" && break
13811 for ac_header in $ac_header_list
13813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 for ac_func in getpagesize
13834 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13835 if test "x$ac_cv_func_getpagesize" = xyes; then :
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_GETPAGESIZE 1
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13844 $as_echo_n "checking for working mmap... " >&6; }
13845 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13846 $as_echo_n "(cached) " >&6
13848 if test "$cross_compiling" = yes; then :
13849 ac_cv_func_mmap_fixed_mapped=no
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 $ac_includes_default
13854 /* malloc might have been renamed as rpl_malloc. */
13857 /* Thanks to Mike Haertel and Jim Avera for this test.
13858 Here is a matrix of mmap possibilities:
13859 mmap private not fixed
13860 mmap private fixed at somewhere currently unmapped
13861 mmap private fixed at somewhere already mapped
13862 mmap shared not fixed
13863 mmap shared fixed at somewhere currently unmapped
13864 mmap shared fixed at somewhere already mapped
13865 For private mappings, we should verify that changes cannot be read()
13866 back from the file, nor mmap's back from the file at a different
13867 address. (There have been systems where private was not correctly
13868 implemented like the infamous i386 svr4.0, and systems where the
13869 VM page cache was not coherent with the file system buffer cache
13870 like early versions of FreeBSD and possibly contemporary NetBSD.)
13871 For shared mappings, we should conversely verify that changes get
13872 propagated back to all the places they're supposed to be.
13874 Grep wants private fixed already mapped.
13875 The main things grep needs to know about mmap are:
13876 * does it exist and is it safe to write into the mmap'd area
13877 * how to use it (BSD variants) */
13880 #include <sys/mman.h>
13882 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13886 /* This mess was copied from the GNU getpagesize.h. */
13887 #ifndef HAVE_GETPAGESIZE
13888 # ifdef _SC_PAGESIZE
13889 # define getpagesize() sysconf(_SC_PAGESIZE)
13890 # else /* no _SC_PAGESIZE */
13891 # ifdef HAVE_SYS_PARAM_H
13892 # include <sys/param.h>
13893 # ifdef EXEC_PAGESIZE
13894 # define getpagesize() EXEC_PAGESIZE
13895 # else /* no EXEC_PAGESIZE */
13897 # define getpagesize() NBPG * CLSIZE
13900 # endif /* no CLSIZE */
13901 # else /* no NBPG */
13903 # define getpagesize() NBPC
13904 # else /* no NBPC */
13906 # define getpagesize() PAGESIZE
13907 # endif /* PAGESIZE */
13908 # endif /* no NBPC */
13909 # endif /* no NBPG */
13910 # endif /* no EXEC_PAGESIZE */
13911 # else /* no HAVE_SYS_PARAM_H */
13912 # define getpagesize() 8192 /* punt totally */
13913 # endif /* no HAVE_SYS_PARAM_H */
13914 # endif /* no _SC_PAGESIZE */
13916 #endif /* no HAVE_GETPAGESIZE */
13921 char *data, *data2, *data3;
13922 const char *cdata2;
13926 pagesize = getpagesize ();
13928 /* First, make a file with some known garbage in it. */
13929 data = (char *) malloc (pagesize);
13932 for (i = 0; i < pagesize; ++i)
13933 *(data + i) = rand ();
13935 fd = creat ("conftest.mmap", 0600);
13938 if (write (fd, data, pagesize) != pagesize)
13942 /* Next, check that the tail of a page is zero-filled. File must have
13943 non-zero length, otherwise we risk SIGBUS for entire page. */
13944 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13948 if (write (fd2, cdata2, 1) != 1)
13950 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13951 if (data2 == MAP_FAILED)
13953 for (i = 0; i < pagesize; ++i)
13957 if (munmap (data2, pagesize))
13960 /* Next, try to mmap the file at a fixed address which already has
13961 something else allocated at it. If we can, also make sure that
13962 we see the same garbage. */
13963 fd = open ("conftest.mmap", O_RDWR);
13966 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13967 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13969 for (i = 0; i < pagesize; ++i)
13970 if (*(data + i) != *(data2 + i))
13973 /* Finally, make sure that changes to the mapped area do not
13974 percolate back to the file as seen by read(). (This is a bug on
13975 some variants of i386 svr4.0.) */
13976 for (i = 0; i < pagesize; ++i)
13977 *(data2 + i) = *(data2 + i) + 1;
13978 data3 = (char *) malloc (pagesize);
13981 if (read (fd, data3, pagesize) != pagesize)
13983 for (i = 0; i < pagesize; ++i)
13984 if (*(data + i) != *(data3 + i))
13990 if ac_fn_c_try_run "$LINENO"; then :
13991 ac_cv_func_mmap_fixed_mapped=yes
13993 ac_cv_func_mmap_fixed_mapped=no
13995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13996 conftest.$ac_objext conftest.beam conftest.$ac_ext
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14001 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14002 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14004 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14007 rm -f conftest.mmap conftest.txt
14009 for ac_header in vfork.h
14011 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_vfork_h" = xyes; then :
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_VFORK_H 1
14021 for ac_func in fork vfork
14023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14025 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14026 cat >>confdefs.h <<_ACEOF
14027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14033 if test "x$ac_cv_func_fork" = xyes; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14035 $as_echo_n "checking for working fork... " >&6; }
14036 if ${ac_cv_func_fork_works+:} false; then :
14037 $as_echo_n "(cached) " >&6
14039 if test "$cross_compiling" = yes; then :
14040 ac_cv_func_fork_works=cross
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 $ac_includes_default
14049 /* By Ruediger Kuhlmann. */
14050 return fork () < 0;
14056 if ac_fn_c_try_run "$LINENO"; then :
14057 ac_cv_func_fork_works=yes
14059 ac_cv_func_fork_works=no
14061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14062 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14067 $as_echo "$ac_cv_func_fork_works" >&6; }
14070 ac_cv_func_fork_works=$ac_cv_func_fork
14072 if test "x$ac_cv_func_fork_works" = xcross; then
14074 *-*-amigaos* | *-*-msdosdjgpp*)
14075 # Override, as these systems have only a dummy fork() stub
14076 ac_cv_func_fork_works=no
14079 ac_cv_func_fork_works=yes
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14083 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14085 ac_cv_func_vfork_works=$ac_cv_func_vfork
14086 if test "x$ac_cv_func_vfork" = xyes; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14088 $as_echo_n "checking for working vfork... " >&6; }
14089 if ${ac_cv_func_vfork_works+:} false; then :
14090 $as_echo_n "(cached) " >&6
14092 if test "$cross_compiling" = yes; then :
14093 ac_cv_func_vfork_works=cross
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 /* Thanks to Paul Eggert for this test. */
14098 $ac_includes_default
14099 #include <sys/wait.h>
14100 #ifdef HAVE_VFORK_H
14101 # include <vfork.h>
14103 /* On some sparc systems, changes by the child to local and incoming
14104 argument registers are propagated back to the parent. The compiler
14105 is told about this with #include <vfork.h>, but some compilers
14106 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14107 static variable whose address is put into a register that is
14108 clobbered by the vfork. */
14111 sparc_address_test (int arg)
14113 sparc_address_test (arg) int arg;
14116 static pid_t child;
14134 pid_t parent = getpid ();
14137 sparc_address_test (0);
14142 /* Here is another test for sparc vfork register problems. This
14143 test uses lots of local variables, at least as many local
14144 variables as main has allocated so far including compiler
14145 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14146 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14147 reuse the register of parent for one of the local variables,
14148 since it will think that parent can't possibly be used any more
14149 in this routine. Assigning to the local variable will thus
14150 munge parent in the parent process. */
14152 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14153 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14154 /* Convince the compiler that p..p7 are live; otherwise, it might
14155 use the same hardware register for all 8 local variables. */
14156 if (p != p1 || p != p2 || p != p3 || p != p4
14157 || p != p5 || p != p6 || p != p7)
14160 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14161 from child file descriptors. If the child closes a descriptor
14162 before it execs or exits, this munges the parent's descriptor
14163 as well. Test for this by closing stdout in the child. */
14164 _exit(close(fileno(stdout)) != 0);
14169 while (wait(&status) != child)
14172 /* Was there some problem with vforking? */
14175 /* Did the child fail? (This shouldn't happen.) */
14178 /* Did the vfork/compiler bug occur? */
14179 || parent != getpid()
14181 /* Did the file descriptor bug occur? */
14182 || fstat(fileno(stdout), &st) != 0
14187 if ac_fn_c_try_run "$LINENO"; then :
14188 ac_cv_func_vfork_works=yes
14190 ac_cv_func_vfork_works=no
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193 conftest.$ac_objext conftest.beam conftest.$ac_ext
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14198 $as_echo "$ac_cv_func_vfork_works" >&6; }
14201 if test "x$ac_cv_func_fork_works" = xcross; then
14202 ac_cv_func_vfork_works=$ac_cv_func_vfork
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14204 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14207 if test "x$ac_cv_func_vfork_works" = xyes; then
14209 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14213 $as_echo "#define vfork fork" >>confdefs.h
14216 if test "x$ac_cv_func_fork_works" = xyes; then
14218 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14224 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14225 if ${ac_cv_func_mbrtowc+:} false; then :
14226 $as_echo_n "(cached) " >&6
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14235 char const s[] = "";
14238 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14243 if ac_fn_c_try_link "$LINENO"; then :
14244 ac_cv_func_mbrtowc=yes
14246 ac_cv_func_mbrtowc=no
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14252 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14253 if test $ac_cv_func_mbrtowc = yes; then
14255 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14261 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14262 # Check whether --enable-warnings was given.
14263 if test "${enable_warnings+set}" = set; then :
14264 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14270 $as_echo "yes" >&6; }
14271 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14272 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14273 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14274 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14278 if test "$GCC" = yes; then
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14280 $as_echo "yes" >&6; }
14281 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14282 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14283 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14284 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14293 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem pipe2
14295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14307 if test "x$ac_cv_func_getopt_long" = xyes; then :
14308 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14311 case " $LIBOBJS " in
14312 *" getopt_long.$ac_objext "* ) ;;
14313 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14319 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14320 if test "x$ac_cv_func_asprintf" = xyes; then :
14321 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14324 case " $LIBOBJS " in
14325 *" asprintf.$ac_objext "* ) ;;
14326 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14332 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14333 if test "x$ac_cv_func_vasprintf" = xyes; then :
14334 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14337 case " $LIBOBJS " in
14338 *" vasprintf.$ac_objext "* ) ;;
14339 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14345 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14346 if test "x$ac_cv_func_strlcpy" = xyes; then :
14347 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14350 case " $LIBOBJS " in
14351 *" strlcpy.$ac_objext "* ) ;;
14352 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14358 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14359 if test "x$ac_cv_func_strlcat" = xyes; then :
14360 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14363 case " $LIBOBJS " in
14364 *" strlcat.$ac_objext "* ) ;;
14365 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14371 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14372 if test "x$ac_cv_func_getline" = xyes; then :
14373 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14376 case " $LIBOBJS " in
14377 *" getline.$ac_objext "* ) ;;
14378 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14384 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14385 if test "x$ac_cv_func_ctime_r" = xyes; then :
14386 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14389 case " $LIBOBJS " in
14390 *" ctime_r.$ac_objext "* ) ;;
14391 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14397 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14398 if test "x$ac_cv_func_asctime_r" = xyes; then :
14399 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14402 case " $LIBOBJS " in
14403 *" asctime_r.$ac_objext "* ) ;;
14404 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14410 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14411 if test "x$ac_cv_func_localtime_r" = xyes; then :
14412 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14415 case " $LIBOBJS " in
14416 *" localtime_r.$ac_objext "* ) ;;
14417 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14423 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14424 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14425 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14428 case " $LIBOBJS " in
14429 *" gmtime_r.$ac_objext "* ) ;;
14430 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14436 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14437 if test "x$ac_cv_func_pread" = xyes; then :
14438 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14441 case " $LIBOBJS " in
14442 *" pread.$ac_objext "* ) ;;
14443 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14449 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14450 if test "x$ac_cv_func_strcasestr" = xyes; then :
14451 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14454 case " $LIBOBJS " in
14455 *" strcasestr.$ac_objext "* ) ;;
14456 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14462 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14463 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14464 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14467 case " $LIBOBJS " in
14468 *" fmtcheck.$ac_objext "* ) ;;
14469 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14475 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14476 if test "x$ac_cv_func_dprintf" = xyes; then :
14477 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14480 case " $LIBOBJS " in
14481 *" dprintf.$ac_objext "* ) ;;
14482 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14490 if test "$enable_zlib" != "no"; then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14492 $as_echo_n "checking for gzopen in -lz... " >&6; }
14493 if ${ac_cv_lib_z_gzopen+:} false; then :
14494 $as_echo_n "(cached) " >&6
14496 ac_check_lib_save_LIBS=$LIBS
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14516 if ac_fn_c_try_link "$LINENO"; then :
14517 ac_cv_lib_z_gzopen=yes
14519 ac_cv_lib_z_gzopen=no
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14526 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14527 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_LIBZ 1
14537 if test "$enable_bzlib" != "no"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
14539 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
14540 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
14541 $as_echo_n "(cached) " >&6
14543 ac_check_lib_save_LIBS=$LIBS
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14548 /* Override any GCC internal prototype to avoid an error.
14549 Use char because int might match the return type of a GCC
14550 builtin and then its argument prototype would still apply. */
14554 char BZ2_bzCompressInit ();
14558 return BZ2_bzCompressInit ();
14563 if ac_fn_c_try_link "$LINENO"; then :
14564 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
14566 ac_cv_lib_bz2_BZ2_bzCompressInit=no
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
14573 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
14574 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_LIBBZ2 1
14584 if test "$enable_xzlib" != "no"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
14586 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
14587 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
14588 $as_echo_n "(cached) " >&6
14590 ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-llzma $LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14601 char lzma_stream_decoder ();
14605 return lzma_stream_decoder ();
14610 if ac_fn_c_try_link "$LINENO"; then :
14611 ac_cv_lib_lzma_lzma_stream_decoder=yes
14613 ac_cv_lib_lzma_lzma_stream_decoder=no
14615 rm -f core conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
14620 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
14621 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_LIBLZMA 1
14626 LIBS="-llzma $LIBS"
14631 if test "$enable_libseccomp" != "no"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
14633 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
14634 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
14635 $as_echo_n "(cached) " >&6
14637 ac_check_lib_save_LIBS=$LIBS
14638 LIBS="-lseccomp $LIBS"
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14642 /* Override any GCC internal prototype to avoid an error.
14643 Use char because int might match the return type of a GCC
14644 builtin and then its argument prototype would still apply. */
14648 char seccomp_init ();
14652 return seccomp_init ();
14657 if ac_fn_c_try_link "$LINENO"; then :
14658 ac_cv_lib_seccomp_seccomp_init=yes
14660 ac_cv_lib_seccomp_seccomp_init=no
14662 rm -f core conftest.err conftest.$ac_objext \
14663 conftest$ac_exeext conftest.$ac_ext
14664 LIBS=$ac_check_lib_save_LIBS
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
14667 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
14668 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_LIBSECCOMP 1
14673 LIBS="-lseccomp $LIBS"
14678 if test "$MINGW" = 1; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
14680 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
14681 if ${ac_cv_lib_gnurx_regexec+:} false; then :
14682 $as_echo_n "(cached) " >&6
14684 ac_check_lib_save_LIBS=$LIBS
14685 LIBS="-lgnurx $LIBS"
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 /* Override any GCC internal prototype to avoid an error.
14690 Use char because int might match the return type of a GCC
14691 builtin and then its argument prototype would still apply. */
14704 if ac_fn_c_try_link "$LINENO"; then :
14705 ac_cv_lib_gnurx_regexec=yes
14707 ac_cv_lib_gnurx_regexec=no
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
14714 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
14715 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
14716 cat >>confdefs.h <<_ACEOF
14717 #define HAVE_LIBGNURX 1
14720 LIBS="-lgnurx $LIBS"
14723 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
14728 if test "$cross_compiling" = yes; then
14729 IS_CROSS_COMPILE_TRUE=
14730 IS_CROSS_COMPILE_FALSE='#'
14732 IS_CROSS_COMPILE_TRUE='#'
14733 IS_CROSS_COMPILE_FALSE=
14737 if test "$enable_zlib" = "yes"; then
14738 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
14739 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
14742 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
14744 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
14747 if test "$enable_bzlib" = "yes"; then
14748 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
14749 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
14752 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
14754 $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
14757 if test "$enable_xzlib" = "yes"; then
14758 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
14759 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
14762 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
14764 $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
14768 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
14770 cat >confcache <<\_ACEOF
14771 # This file is a shell script that caches the results of configure
14772 # tests run on this system so they can be shared between configure
14773 # scripts and configure runs, see configure's option --config-cache.
14774 # It is not useful on other systems. If it contains results you don't
14775 # want to keep, you may remove or edit it.
14777 # config.status only pays attention to the cache file if you give it
14778 # the --recheck option to rerun configure.
14780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14782 # following values.
14786 # The following way of writing the cache mishandles newlines in values,
14787 # but we know of no workaround that is simple, portable, and efficient.
14788 # So, we kill variables containing newlines.
14789 # Ultrix sh set writes to stderr and can't be redirected directly,
14790 # and sets the high bit in the cache file unless we assign to the vars.
14792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14793 eval ac_val=\$$ac_var
14797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14801 _ | IFS | as_nl) ;; #(
14802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14803 *) { eval $ac_var=; unset $ac_var;} ;;
14809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14810 *${as_nl}ac_space=\ *)
14811 # `set' does not quote correctly, so add quotes: double-quote
14812 # substitution turns \\\\ into \\, and sed turns \\ into \.
14815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14818 # `set' quotes correctly as required by POSIX, so do not add quotes.
14819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14833 if test -w "$cache_file"; then
14834 if test "x$cache_file" != "x/dev/null"; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14836 $as_echo "$as_me: updating cache $cache_file" >&6;}
14837 if test ! -f "$cache_file" || test -h "$cache_file"; then
14838 cat confcache >"$cache_file"
14840 case $cache_file in #(
14842 mv -f confcache "$cache_file"$$ &&
14843 mv -f "$cache_file"$$ "$cache_file" ;; #(
14845 mv -f confcache "$cache_file" ;;
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14851 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14857 # Let make expand exec_prefix.
14858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14860 DEFS=-DHAVE_CONFIG_H
14865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14866 # 1. Remove the extension, and $U if already installed.
14867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14868 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14870 # will be set to the directory where LIBOBJS objects are built.
14871 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14872 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14874 LIBOBJS=$ac_libobjs
14876 LTLIBOBJS=$ac_ltlibobjs
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14880 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14881 if test -n "$am_sleep_pid"; then
14882 # Hide warnings about reused PIDs.
14883 wait $am_sleep_pid 2>/dev/null
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14886 $as_echo "done" >&6; }
14887 if test -n "$EXEEXT"; then
14889 am__EXEEXT_FALSE='#'
14891 am__EXEEXT_TRUE='#'
14895 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14896 as_fn_error $? "conditional \"MINGW\" was never defined.
14897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14899 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
14900 as_fn_error $? "conditional \"FSECT5\" was never defined.
14901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14903 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14904 as_fn_error $? "conditional \"AMDEP\" was never defined.
14905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14907 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14908 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14912 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
14913 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 : "${CONFIG_STATUS=./config.status}"
14919 ac_clean_files_save=$ac_clean_files
14920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14926 # Generated by $as_me.
14927 # Run this file to recreate the current configuration.
14928 # Compiler output produced by configure, useful for debugging
14929 # configure, is in config.log if it exists.
14932 ac_cs_recheck=false
14935 SHELL=\${CONFIG_SHELL-$SHELL}
14938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14939 ## -------------------- ##
14940 ## M4sh Initialization. ##
14941 ## -------------------- ##
14943 # Be more Bourne compatible
14944 DUALCASE=1; export DUALCASE # for MKS sh
14945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14949 # is contrary to our usage. Disable this feature.
14950 alias -g '${1+"$@"}'='"$@"'
14951 setopt NO_GLOB_SUBST
14953 case `(set -o) 2>/dev/null` in #(
14965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14969 # Prefer a ksh shell builtin over an external printf program on Solaris,
14970 # but without wasting forks for bash or zsh.
14971 if test -z "$BASH_VERSION$ZSH_VERSION" \
14972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14973 as_echo='print -r --'
14974 as_echo_n='print -rn --'
14975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14976 as_echo='printf %s\n'
14977 as_echo_n='printf %s'
14979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14981 as_echo_n='/usr/ucb/echo -n'
14983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14984 as_echo_n_body='eval
14988 expr "X$arg" : "X\\(.*\\)$as_nl";
14989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14993 export as_echo_n_body
14994 as_echo_n='sh -c $as_echo_n_body as_echo'
14996 export as_echo_body
14997 as_echo='sh -c $as_echo_body as_echo'
15000 # The user is always right.
15001 if test "${PATH_SEPARATOR+set}" != set; then
15003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15011 # We need space, tab and new line, in precisely that order. Quoting is
15012 # there to prevent editors from complaining about space-tab.
15013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15014 # splitting by setting IFS to empty value.)
15017 # Find who we are. Look in the path if we contain no directory separator.
15020 *[\\/]* ) as_myself=$0 ;;
15021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15022 for as_dir in $PATH
15025 test -z "$as_dir" && as_dir=.
15026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15032 # We did not find ourselves, most probably we were run as `sh COMMAND'
15033 # in which case we are not to be found in the path.
15034 if test "x$as_myself" = x; then
15037 if test ! -f "$as_myself"; then
15038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15042 # Unset variables that we do not need and which cause bugs (e.g. in
15043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15044 # suppresses any "Segmentation fault" message there. '((' could
15045 # trigger a bug in pdksh 5.2.14.
15046 for as_var in BASH_ENV ENV MAIL MAILPATH
15047 do eval test x\${$as_var+set} = xset \
15048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15064 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15065 # ----------------------------------------
15066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15068 # script with STATUS, using 1 if that was 0.
15071 as_status=$1; test $as_status -eq 0 && as_status=1
15073 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15076 $as_echo "$as_me: error: $2" >&2
15077 as_fn_exit $as_status
15081 # as_fn_set_status STATUS
15082 # -----------------------
15083 # Set $? to STATUS, without forking.
15084 as_fn_set_status ()
15087 } # as_fn_set_status
15089 # as_fn_exit STATUS
15090 # -----------------
15091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15095 as_fn_set_status $1
15101 # Portably unset VAR.
15104 { eval $1=; unset $1;}
15106 as_unset=as_fn_unset
15107 # as_fn_append VAR VALUE
15108 # ----------------------
15109 # Append the text in VALUE to the end of the definition contained in VAR. Take
15110 # advantage of any shell optimizations that allow amortized linear growth over
15111 # repeated appends, instead of the typical quadratic growth present in naive
15113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15114 eval 'as_fn_append ()
15125 # as_fn_arith ARG...
15126 # ------------------
15127 # Perform arithmetic evaluation on the ARGs, and store the result in the
15128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15129 # must be portable across $(()) and expr.
15130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15131 eval 'as_fn_arith ()
15138 as_val=`expr "$@" || test $? -eq 1`
15143 if expr a : '\(a\)' >/dev/null 2>&1 &&
15144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15151 as_basename=basename
15156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15162 as_me=`$as_basename -- "$0" ||
15163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15164 X"$0" : 'X\(//\)$' \| \
15165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15167 sed '/^.*\/\([^/][^/]*\)\/*$/{
15181 # Avoid depending upon Character Ranges.
15182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15185 as_cr_digits='0123456789'
15186 as_cr_alnum=$as_cr_Letters$as_cr_digits
15188 ECHO_C= ECHO_N= ECHO_T=
15189 case `echo -n x` in #(((((
15191 case `echo 'xy\c'` in
15192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15201 rm -f conf$$ conf$$.exe conf$$.file
15202 if test -d conf$$.dir; then
15203 rm -f conf$$.dir/conf$$.file
15206 mkdir conf$$.dir 2>/dev/null
15208 if (echo >conf$$.file) 2>/dev/null; then
15209 if ln -s conf$$.file conf$$ 2>/dev/null; then
15211 # ... but there are two gotchas:
15212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15214 # In both cases, we have to default to `cp -pR'.
15215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15217 elif ln conf$$.file conf$$ 2>/dev/null; then
15225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15226 rmdir conf$$.dir 2>/dev/null
15231 # Create "$as_dir" as a directory, including parents if necessary.
15236 -*) as_dir=./$as_dir;;
15238 test -d "$as_dir" || eval $as_mkdir_p || {
15242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15243 *) as_qdir=$as_dir;;
15245 as_dirs="'$as_qdir' $as_dirs"
15246 as_dir=`$as_dirname -- "$as_dir" ||
15247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15248 X"$as_dir" : 'X\(//\)[^/]' \| \
15249 X"$as_dir" : 'X\(//\)$' \| \
15250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15251 $as_echo X"$as_dir" |
15252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15256 /^X\(\/\/\)[^/].*/{
15269 test -d "$as_dir" && break
15271 test -z "$as_dirs" || eval "mkdir $as_dirs"
15272 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15276 if mkdir -p . 2>/dev/null; then
15277 as_mkdir_p='mkdir -p "$as_dir"'
15279 test -d ./-p && rmdir ./-p
15284 # as_fn_executable_p FILE
15285 # -----------------------
15286 # Test if FILE is an executable regular file.
15287 as_fn_executable_p ()
15289 test -f "$1" && test -x "$1"
15290 } # as_fn_executable_p
15291 as_test_x='test -x'
15292 as_executable_p=as_fn_executable_p
15294 # Sed expression to map a string onto a valid CPP name.
15295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15297 # Sed expression to map a string onto a valid variable name.
15298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15302 ## ----------------------------------- ##
15303 ## Main body of $CONFIG_STATUS script. ##
15304 ## ----------------------------------- ##
15306 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 # Save the log message, to keep $0 and so on meaningful, and to
15310 # report actual input values of CONFIG_FILES etc. instead of their
15311 # values after options handling.
15313 This file was extended by file $as_me 5.41, which was
15314 generated by GNU Autoconf 2.69. Invocation command line was
15316 CONFIG_FILES = $CONFIG_FILES
15317 CONFIG_HEADERS = $CONFIG_HEADERS
15318 CONFIG_LINKS = $CONFIG_LINKS
15319 CONFIG_COMMANDS = $CONFIG_COMMANDS
15322 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15327 case $ac_config_files in *"
15328 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15331 case $ac_config_headers in *"
15332 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15337 # Files that config.status was made for.
15338 config_files="$ac_config_files"
15339 config_headers="$ac_config_headers"
15340 config_commands="$ac_config_commands"
15344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346 \`$as_me' instantiates files and other configuration actions
15347 from templates according to the current configuration. Unless the files
15348 and actions are specified as TAGs, all are instantiated by default.
15350 Usage: $0 [OPTION]... [TAG]...
15352 -h, --help print this help, then exit
15353 -V, --version print version number and configuration settings, then exit
15354 --config print configuration, then exit
15355 -q, --quiet, --silent
15356 do not print progress messages
15357 -d, --debug don't remove temporary files
15358 --recheck update $as_me by reconfiguring in the same conditions
15359 --file=FILE[:TEMPLATE]
15360 instantiate the configuration file FILE
15361 --header=FILE[:TEMPLATE]
15362 instantiate the configuration header FILE
15364 Configuration files:
15367 Configuration headers:
15370 Configuration commands:
15373 Report bugs to <christos@astron.com>."
15376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15377 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15379 file config.status 5.41
15380 configured by $0, generated by GNU Autoconf 2.69,
15381 with options \\"\$ac_cs_config\\"
15383 Copyright (C) 2012 Free Software Foundation, Inc.
15384 This config.status script is free software; the Free Software Foundation
15385 gives unlimited permission to copy, distribute and modify it."
15392 test -n "\$AWK" || AWK=awk
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396 # The default lists apply if the user does not specify any file.
15402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15419 # Handling of the options.
15420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15423 $as_echo "$ac_cs_version"; exit ;;
15424 --config | --confi | --conf | --con | --co | --c )
15425 $as_echo "$ac_cs_config"; exit ;;
15426 --debug | --debu | --deb | --de | --d | -d )
15428 --file | --fil | --fi | --f )
15431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15432 '') as_fn_error $? "missing file argument" ;;
15434 as_fn_append CONFIG_FILES " '$ac_optarg'"
15435 ac_need_defaults=false;;
15436 --header | --heade | --head | --hea )
15439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15442 ac_need_defaults=false;;
15444 # Conflict between --help and --header
15445 as_fn_error $? "ambiguous option: \`$1'
15446 Try \`$0 --help' for more information.";;
15447 --help | --hel | -h )
15448 $as_echo "$ac_cs_usage"; exit ;;
15449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15453 # This is an error.
15454 -*) as_fn_error $? "unrecognized option: \`$1'
15455 Try \`$0 --help' for more information." ;;
15457 *) as_fn_append ac_config_targets " $1"
15458 ac_need_defaults=false ;;
15464 ac_configure_extra_args=
15466 if $ac_cs_silent; then
15468 ac_configure_extra_args="$ac_configure_extra_args --silent"
15472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 if \$ac_cs_recheck; then
15474 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15477 CONFIG_SHELL='$SHELL'
15478 export CONFIG_SHELL
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15488 ## Running $as_me. ##
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15501 # The HP-UX ksh and POSIX shell print the target directory to stdout
15502 # if CDPATH is set.
15503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15505 sed_quote_subst='$sed_quote_subst'
15506 double_quote_subst='$double_quote_subst'
15507 delay_variable_subst='$delay_variable_subst'
15508 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15509 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15510 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15511 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15513 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15514 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15515 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15516 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15517 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15518 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15519 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15520 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15521 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15522 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15523 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15524 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15525 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15526 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15527 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15528 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15529 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15530 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15531 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15532 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15533 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15534 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15535 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15536 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15537 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15538 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15539 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15540 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15541 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15542 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15543 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15544 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15545 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15546 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15547 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15548 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15549 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15550 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15551 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15552 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15553 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15554 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15555 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15556 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15557 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15558 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15559 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15560 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15561 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15562 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15563 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15564 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15565 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15566 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"`'
15567 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15568 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15569 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15570 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15571 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15572 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15573 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15574 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15575 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15576 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15577 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15578 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15579 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15580 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15581 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15582 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15583 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15584 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15585 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15586 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15587 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15588 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15589 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15590 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15591 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15592 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15593 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15594 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15595 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15596 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15597 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15598 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15599 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15600 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15601 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15602 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15603 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15604 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15605 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15606 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15607 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15608 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15609 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15610 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15611 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15612 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15613 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15614 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15615 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15616 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15617 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15618 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15619 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15620 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15621 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15622 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15623 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15624 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15625 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15626 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15627 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15628 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15629 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15630 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15631 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15632 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15633 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15634 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15635 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15636 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15637 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15638 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15639 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15640 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15641 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15642 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15645 LTCFLAGS='$LTCFLAGS'
15646 compiler='$compiler_DEFAULT'
15648 # A function that is used when there is no print builtin or printf.
15649 func_fallback_echo ()
15651 eval 'cat <<_LTECHO_EOF
15656 # Quote evaled strings.
15671 deplibs_check_method \
15676 sharedlib_from_linklib_cmd \
15679 archiver_list_spec \
15685 lt_cv_sys_global_symbol_pipe \
15686 lt_cv_sys_global_symbol_to_cdecl \
15687 lt_cv_sys_global_symbol_to_import \
15688 lt_cv_sys_global_symbol_to_c_name_address \
15689 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15690 lt_cv_nm_interface \
15691 nm_file_list_spec \
15692 lt_cv_truncate_bin \
15693 lt_prog_compiler_no_builtin_flag \
15694 lt_prog_compiler_pic \
15695 lt_prog_compiler_wl \
15696 lt_prog_compiler_static \
15697 lt_cv_prog_compiler_c_o \
15706 export_dynamic_flag_spec \
15707 whole_archive_flag_spec \
15708 compiler_needs_object \
15710 allow_undefined_flag \
15711 no_undefined_flag \
15712 hardcode_libdir_flag_spec \
15713 hardcode_libdir_separator \
15717 variables_saved_for_relink \
15719 library_names_spec \
15721 install_override_mode \
15725 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15726 *[\\\\\\\`\\"\\\$]*)
15727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15735 # Double-quote double-evaled strings.
15736 for var in reload_cmds \
15737 old_postinstall_cmds \
15738 old_postuninstall_cmds \
15740 extract_expsyms_cmds \
15741 old_archive_from_new_cmds \
15742 old_archive_from_expsyms_cmds \
15744 archive_expsym_cmds \
15746 module_expsym_cmds \
15747 export_symbols_cmds \
15751 postuninstall_cmds \
15753 sys_lib_search_path_spec \
15754 configure_time_dlsearch_path \
15755 configure_time_lt_sys_library_path; do
15756 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15757 *[\\\\\\\`\\"\\\$]*)
15758 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15761 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15766 ac_aux_dir='$ac_aux_dir'
15768 # See if we are running on zsh, and set the options that allow our
15769 # commands through without removal of \ escapes INIT.
15770 if test -n "\${ZSH_VERSION+set}"; then
15771 setopt NO_GLOB_SUBST
15785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787 # Handling of arguments.
15788 for ac_config_target in $ac_config_targets
15790 case $ac_config_target in
15791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15792 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15793 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15794 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15795 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15796 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
15797 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15798 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15799 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15800 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
15802 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15807 # If the user did not use the arguments to specify the items to instantiate,
15808 # then the envvar interface is used. Set only those that are not.
15809 # We use the long form for the default assignment because of an extremely
15810 # bizarre bug on SunOS 4.1.3.
15811 if $ac_need_defaults; then
15812 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15813 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15814 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15817 # Have a temporary directory for convenience. Make it in the build tree
15818 # simply because there is no reason against having it here, and in addition,
15819 # creating and moving files from /tmp can sometimes cause problems.
15820 # Hook for its removal unless debugging.
15821 # Note that there is a small window in which the directory will not be cleaned:
15822 # after its creation but before its name has been assigned to `$tmp'.
15826 trap 'exit_status=$?
15827 : "${ac_tmp:=$tmp}"
15828 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15830 trap 'as_fn_exit 1' 1 2 13 15
15832 # Create a (secure) tmp directory for tmp files.
15835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15839 tmp=./conf$$-$RANDOM
15840 (umask 077 && mkdir "$tmp")
15841 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15844 # Set up the scripts for CONFIG_FILES section.
15845 # No need to generate them if there are no CONFIG_FILES.
15846 # This happens for instance with `./config.status config.h'.
15847 if test -n "$CONFIG_FILES"; then
15850 ac_cr=`echo X | tr X '\015'`
15851 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15852 # But we know of no other shell where ac_cr would be empty at this
15853 # point, so we can use a bashism as a fallback.
15854 if test "x$ac_cr" = x; then
15855 eval ac_cr=\$\'\\r\'
15857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15861 ac_cs_awk_cr=$ac_cr
15864 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15869 echo "cat >conf$$subs.awk <<_ACEOF" &&
15870 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15872 } >conf$$subs.sh ||
15873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15874 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15876 for ac_last_try in false false false false false :; do
15877 . ./conf$$subs.sh ||
15878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15880 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15881 if test $ac_delim_n = $ac_delim_num; then
15883 elif $ac_last_try; then
15884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15889 rm -f conf$$subs.sh
15891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15892 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15896 s/^/S["/; s/!.*/"]=/
15906 s/\(.\{148\}\)..*/\1/
15908 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15920 s/\(.\{148\}\)..*/\1/
15922 s/["\\]/\\&/g; s/^/"/; s/$/"/
15926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15931 ' <conf$$subs.awk | sed '
15936 ' >>$CONFIG_STATUS || ac_write_fail=1
15937 rm -f conf$$subs.awk
15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15941 for (key in S) S_is_set[key] = 1
15947 nfields = split(line, field, "@")
15949 len = length(field[1])
15950 for (i = 2; i < nfields; i++) {
15952 keylen = length(key)
15953 if (S_is_set[key]) {
15955 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15956 len += length(value) + length(field[++i])
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15969 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15972 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15973 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15976 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15977 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15978 # trailing colons and then remove the whole line if VPATH becomes empty
15979 # (actually we leave an empty line to preserve line numbers).
15980 if test "x$srcdir" = x.; then
15981 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16000 fi # test -n "$CONFIG_FILES"
16002 # Set up the scripts for CONFIG_HEADERS section.
16003 # No need to generate them if there are no CONFIG_HEADERS.
16004 # This happens for instance with `./config.status Makefile'.
16005 if test -n "$CONFIG_HEADERS"; then
16006 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16010 # Transform confdefs.h into an awk script `defines.awk', embedded as
16011 # here-document in config.status, that substitutes the proper values into
16012 # config.h.in to produce config.h.
16014 # Create a delimiter string that does not exist in confdefs.h, to ease
16015 # handling of long lines.
16017 for ac_last_try in false false :; do
16018 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16019 if test -z "$ac_tt"; then
16021 elif $ac_last_try; then
16022 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16028 # For the awk script, D is an array of macro values keyed by name,
16029 # likewise P contains macro parameters if any. Preserve backslash
16030 # newline sequences.
16032 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16034 s/.\{148\}/&'"$ac_delim"'/g
16037 s/^[ ]*#[ ]*define[ ][ ]*/ /
16044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16051 D["\1"]=" \3\\\\\\n"\\/p
16053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16058 s/.\{148\}/&'"$ac_delim"'/g
16063 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16066 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16068 ' <confdefs.h | sed '
16069 s/'"$ac_delim"'/"\\\
16070 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 for (key in D) D_is_set[key] = 1
16076 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16078 split(line, arg, " ")
16079 if (arg[1] == "#") {
16083 defundef = substr(arg[1], 2)
16086 split(mac1, mac2, "(") #)
16088 prefix = substr(line, 1, index(line, defundef) - 1)
16089 if (D_is_set[macro]) {
16090 # Preserve the white space surrounding the "#".
16091 print prefix "define", macro P[macro] D[macro]
16094 # Replace #undef with comments. This is necessary, for example,
16095 # in the case of _POSIX_SOURCE, which is predefined and required
16096 # on some systems where configure will not decide to define it.
16097 if (defundef == "undef") {
16098 print "/*", prefix defundef, macro, "*/"
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16108 fi # test -n "$CONFIG_HEADERS"
16111 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16116 :[FHLC]) ac_mode=$ac_tag; continue;;
16118 case $ac_mode$ac_tag in
16120 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16121 :[FH]-) ac_tag=-:-;;
16122 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16139 -) ac_f="$ac_tmp/stdin";;
16140 *) # Look for the file first in the build tree, then in the source tree
16141 # (if the path is not absolute). The absolute path cannot be DOS-style,
16142 # because $ac_f cannot contain `:'.
16146 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16148 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16150 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16151 as_fn_append ac_file_inputs " '$ac_f'"
16154 # Let's still pretend it is `configure' which instantiates (i.e., don't
16155 # use $as_me), people would be surprised to read:
16156 # /* config.h. Generated by config.status. */
16157 configure_input='Generated from '`
16158 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16160 if test x"$ac_file" != x-; then
16161 configure_input="$ac_file. $configure_input"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16163 $as_echo "$as_me: creating $ac_file" >&6;}
16165 # Neutralize special characters interpreted by sed in replacement strings.
16166 case $configure_input in #(
16167 *\&* | *\|* | *\\* )
16168 ac_sed_conf_input=`$as_echo "$configure_input" |
16169 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16170 *) ac_sed_conf_input=$configure_input;;
16174 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16180 ac_dir=`$as_dirname -- "$ac_file" ||
16181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182 X"$ac_file" : 'X\(//\)[^/]' \| \
16183 X"$ac_file" : 'X\(//\)$' \| \
16184 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16185 $as_echo X"$ac_file" |
16186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16190 /^X\(\/\/\)[^/].*/{
16203 as_dir="$ac_dir"; as_fn_mkdir_p
16207 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16209 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16210 # A ".." for each directory in $ac_dir_suffix.
16211 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16212 case $ac_top_builddir_sub in
16213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16217 ac_abs_top_builddir=$ac_pwd
16218 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16219 # for backward compatibility:
16220 ac_top_builddir=$ac_top_build_prefix
16223 .) # We are building in place.
16225 ac_top_srcdir=$ac_top_builddir_sub
16226 ac_abs_top_srcdir=$ac_pwd ;;
16227 [\\/]* | ?:[\\/]* ) # Absolute name.
16228 ac_srcdir=$srcdir$ac_dir_suffix;
16229 ac_top_srcdir=$srcdir
16230 ac_abs_top_srcdir=$srcdir ;;
16231 *) # Relative name.
16232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16233 ac_top_srcdir=$ac_top_build_prefix$srcdir
16234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16236 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16249 ac_MKDIR_P=$MKDIR_P
16251 [\\/$]* | ?:[\\/]* ) ;;
16252 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 # If the template does not know about datarootdir, expand it.
16258 # FIXME: This hack should be removed a few years after 2.60.
16259 ac_datarootdir_hack=; ac_datarootdir_seen=
16270 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16271 *datarootdir*) ac_datarootdir_seen=yes;;
16272 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16274 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277 ac_datarootdir_hack='
16278 s&@datadir@&$datadir&g
16279 s&@docdir@&$docdir&g
16280 s&@infodir@&$infodir&g
16281 s&@localedir@&$localedir&g
16282 s&@mandir@&$mandir&g
16283 s&\\\${datarootdir}&$datarootdir&g' ;;
16287 # Neutralize VPATH when `$srcdir' = `.'.
16288 # Shell code in configure.ac might set extrasub.
16289 # FIXME: do we really want to maintain this feature?
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291 ac_sed_extra="$ac_vpsub
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16297 s|@configure_input@|$ac_sed_conf_input|;t t
16298 s&@top_builddir@&$ac_top_builddir_sub&;t t
16299 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16300 s&@srcdir@&$ac_srcdir&;t t
16301 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16302 s&@top_srcdir@&$ac_top_srcdir&;t t
16303 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16304 s&@builddir@&$ac_builddir&;t t
16305 s&@abs_builddir@&$ac_abs_builddir&;t t
16306 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16307 s&@INSTALL@&$ac_INSTALL&;t t
16308 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16309 $ac_datarootdir_hack
16311 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16312 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16314 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16315 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16316 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16317 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16319 which seems to be undefined. Please make sure it is defined" >&5
16320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16321 which seems to be undefined. Please make sure it is defined" >&2;}
16323 rm -f "$ac_tmp/stdin"
16325 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16326 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16334 if test x"$ac_file" != x-; then
16336 $as_echo "/* $configure_input */" \
16337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16338 } >"$ac_tmp/config.h" \
16339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16340 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16345 mv "$ac_tmp/config.h" "$ac_file" \
16346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16349 $as_echo "/* $configure_input */" \
16350 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16351 || as_fn_error $? "could not create -" "$LINENO" 5
16353 # Compute "$ac_file"'s index in $config_headers.
16356 for _am_header in $config_headers :; do
16357 case $_am_header in
16358 $_am_arg | $_am_arg:* )
16361 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16366 X"$_am_arg" : 'X\(//\)[^/]' \| \
16367 X"$_am_arg" : 'X\(//\)$' \| \
16368 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16369 $as_echo X"$_am_arg" |
16370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16374 /^X\(\/\/\)[^/].*/{
16386 s/.*/./; q'`/stamp-h$_am_stamp_count
16389 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16390 $as_echo "$as_me: executing $ac_file commands" >&6;}
16395 case $ac_file$ac_mode in
16396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16397 # Older Autoconf quotes --file arguments for eval, but not when files
16398 # are listed without --file. Let's play safe and only enable the eval
16399 # if we detect the quoting.
16400 # TODO: see whether this extra hack can be removed once we start
16401 # requiring Autoconf 2.70 or later.
16402 case $CONFIG_FILES in #(
16404 eval set x "$CONFIG_FILES" ;; #(
16406 set x $CONFIG_FILES ;; #(
16411 # Used to flag and report bootstrapping failures.
16415 # Strip MF so we end up with the name of the file.
16416 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16417 # Check whether this is an Automake generated Makefile which includes
16418 # dependency-tracking related rules and includes.
16419 # Grep'ing the whole file directly is not great: AIX grep has a line
16420 # limit of 2048, but all sed's we know have understand at least 4000.
16421 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16423 am_dirpart=`$as_dirname -- "$am_mf" ||
16424 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16425 X"$am_mf" : 'X\(//\)[^/]' \| \
16426 X"$am_mf" : 'X\(//\)$' \| \
16427 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16428 $as_echo X"$am_mf" |
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16433 /^X\(\/\/\)[^/].*/{
16446 am_filepart=`$as_basename -- "$am_mf" ||
16447 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16448 X"$am_mf" : 'X\(//\)$' \| \
16449 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16450 $as_echo X/"$am_mf" |
16451 sed '/^.*\/\([^/][^/]*\)\/*$/{
16464 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16465 && sed -e '/# am--include-marker/d' "$am_filepart" \
16466 | $MAKE -f - am--depfiles" >&5
16467 (cd "$am_dirpart" \
16468 && sed -e '/# am--include-marker/d' "$am_filepart" \
16469 | $MAKE -f - am--depfiles) >&5 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } || am_rc=$?
16474 if test $am_rc -ne 0; then
16475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16477 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16478 for automatic dependency tracking. Try re-running configure with the
16479 '--disable-dependency-tracking' option to at least be able to build
16480 the package (albeit without support for automatic dependency tracking).
16481 See \`config.log' for more details" "$LINENO" 5; }
16483 { am_dirpart=; unset am_dirpart;}
16484 { am_filepart=; unset am_filepart;}
16485 { am_mf=; unset am_mf;}
16486 { am_rc=; unset am_rc;}
16487 rm -f conftest-deps.mk
16492 # See if we are running on zsh, and set the options that allow our
16493 # commands through without removal of \ escapes.
16494 if test -n "${ZSH_VERSION+set}"; then
16495 setopt NO_GLOB_SUBST
16499 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16502 cat <<_LT_EOF >> "$cfgfile"
16504 # Generated automatically by $as_me ($PACKAGE) $VERSION
16505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16506 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16508 # Provide generalized library-building support services.
16509 # Written by Gordon Matzigkeit, 1996
16511 # Copyright (C) 2014 Free Software Foundation, Inc.
16512 # This is free software; see the source for copying conditions. There is NO
16513 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16515 # GNU Libtool is free software; you can redistribute it and/or modify
16516 # it under the terms of the GNU General Public License as published by
16517 # the Free Software Foundation; either version 2 of of the License, or
16518 # (at your option) any later version.
16520 # As a special exception to the GNU General Public License, if you
16521 # distribute this file as part of a program or library that is built
16522 # using GNU Libtool, you may include this file under the same
16523 # distribution terms that you use for the rest of that program.
16525 # GNU Libtool is distributed in the hope that it will be useful, but
16526 # WITHOUT ANY WARRANTY; without even the implied warranty of
16527 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16528 # GNU General Public License for more details.
16530 # You should have received a copy of the GNU General Public License
16531 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16534 # The names of the tagged configurations supported by this script.
16537 # Configured defaults for sys_lib_dlsearch_path munging.
16538 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16540 # ### BEGIN LIBTOOL CONFIG
16542 # Which release of libtool.m4 was used?
16543 macro_version=$macro_version
16544 macro_revision=$macro_revision
16546 # Whether or not to build static libraries.
16547 build_old_libs=$enable_static
16549 # What type of objects to build.
16552 # Whether or not to build shared libraries.
16553 build_libtool_libs=$enable_shared
16555 # Whether or not to optimize for fast installation.
16556 fast_install=$enable_fast_install
16558 # Shared archive member basename,for filename based shared library versioning on AIX.
16559 shared_archive_member_spec=$shared_archive_member_spec
16561 # Shell to use when invoking shell scripts.
16564 # An echo program that protects backslashes.
16567 # The PATH separator for the build system.
16568 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16571 host_alias=$host_alias
16575 # The build system.
16576 build_alias=$build_alias
16580 # A sed program that does not truncate output.
16583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16584 Xsed="\$SED -e 1s/^X//"
16586 # A grep program that handles long lines.
16592 # A literal string matcher.
16595 # A BSD- or MS-compatible name lister.
16598 # Whether we need soft or hard links.
16601 # What is the maximum length of a command?
16602 max_cmd_len=$max_cmd_len
16604 # Object file suffix (normally "o").
16607 # Executable file suffix (normally "").
16610 # whether the shell understands "unset".
16613 # turn spaces into newlines.
16616 # turn newlines into spaces.
16619 # convert \$build file names to \$host format.
16620 to_host_file_cmd=$lt_cv_to_host_file_cmd
16622 # convert \$build files to toolchain format.
16623 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16625 # An object symbol dumper.
16626 OBJDUMP=$lt_OBJDUMP
16628 # Method to check whether dependent libraries are shared objects.
16629 deplibs_check_method=$lt_deplibs_check_method
16631 # Command to use when deplibs_check_method = "file_magic".
16632 file_magic_cmd=$lt_file_magic_cmd
16634 # How to find potential files when deplibs_check_method = "file_magic".
16635 file_magic_glob=$lt_file_magic_glob
16637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16638 want_nocaseglob=$lt_want_nocaseglob
16640 # DLL creation program.
16641 DLLTOOL=$lt_DLLTOOL
16643 # Command to associate shared and link libraries.
16644 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16649 # Flags to create an archive.
16650 AR_FLAGS=$lt_AR_FLAGS
16652 # How to feed a file listing to the archiver.
16653 archiver_list_spec=$lt_archiver_list_spec
16655 # A symbol stripping program.
16658 # Commands used to install an old-style archive.
16660 old_postinstall_cmds=$lt_old_postinstall_cmds
16661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16663 # Whether to use a lock for old archive extraction.
16664 lock_old_archive_extraction=$lock_old_archive_extraction
16669 # LTCC compiler flags.
16670 LTCFLAGS=$lt_CFLAGS
16672 # Take the output of nm and produce a listing of raw symbols and C names.
16673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16675 # Transform the output of nm in a proper C declaration.
16676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16678 # Transform the output of nm into a list of symbols to manually relocate.
16679 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16681 # Transform the output of nm in a C name address pair.
16682 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16684 # Transform the output of nm in a C name address pair when lib prefix is needed.
16685 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16687 # The name lister interface.
16688 nm_interface=$lt_lt_cv_nm_interface
16690 # Specify filename containing input files for \$NM.
16691 nm_file_list_spec=$lt_nm_file_list_spec
16693 # The root where to search for dependent libraries,and where our libraries should be installed.
16694 lt_sysroot=$lt_sysroot
16696 # Command to truncate a binary pipe.
16697 lt_truncate_bin=$lt_lt_cv_truncate_bin
16699 # The name of the directory that contains temporary libtool files.
16702 # Used to examine libraries when file_magic_cmd begins with "file".
16703 MAGIC_CMD=$MAGIC_CMD
16705 # Must we lock files when doing compilation?
16706 need_locks=$lt_need_locks
16709 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16711 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16712 DSYMUTIL=$lt_DSYMUTIL
16714 # Tool to change global to local symbols on Mac OS X.
16717 # Tool to manipulate fat objects and archives on Mac OS X.
16720 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16723 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16724 OTOOL64=$lt_OTOOL64
16726 # Old archive suffix (normally "a").
16729 # Shared library suffix (normally ".so").
16730 shrext_cmds=$lt_shrext_cmds
16732 # The commands to extract the exported symbol list from a shared archive.
16733 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16735 # Variables whose values should be saved in libtool wrapper scripts and
16736 # restored at link time.
16737 variables_saved_for_relink=$lt_variables_saved_for_relink
16739 # Do we need the "lib" prefix for modules?
16740 need_lib_prefix=$need_lib_prefix
16742 # Do we need a version for libraries?
16743 need_version=$need_version
16745 # Library versioning type.
16746 version_type=$version_type
16748 # Shared library runtime path variable.
16749 runpath_var=$runpath_var
16751 # Shared library path variable.
16752 shlibpath_var=$shlibpath_var
16754 # Is shlibpath searched before the hard-coded library search path?
16755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16757 # Format of library name prefix.
16758 libname_spec=$lt_libname_spec
16760 # List of archive names. First name is the real one, the rest are links.
16761 # The last name is the one that the linker finds with -lNAME
16762 library_names_spec=$lt_library_names_spec
16764 # The coded name of the library, if different from the real name.
16765 soname_spec=$lt_soname_spec
16767 # Permission mode override for installation of shared libraries.
16768 install_override_mode=$lt_install_override_mode
16770 # Command to use after installation of a shared archive.
16771 postinstall_cmds=$lt_postinstall_cmds
16773 # Command to use after uninstallation of a shared archive.
16774 postuninstall_cmds=$lt_postuninstall_cmds
16776 # Commands used to finish a libtool library installation in a directory.
16777 finish_cmds=$lt_finish_cmds
16779 # As "finish_cmds", except a single script fragment to be evaled but
16781 finish_eval=$lt_finish_eval
16783 # Whether we should hardcode library paths into libraries.
16784 hardcode_into_libs=$hardcode_into_libs
16786 # Compile-time system search path for libraries.
16787 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16789 # Detected run-time system search path for libraries.
16790 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16792 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16793 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16795 # Whether dlopen is supported.
16796 dlopen_support=$enable_dlopen
16798 # Whether dlopen of programs is supported.
16799 dlopen_self=$enable_dlopen_self
16801 # Whether dlopen of statically linked programs is supported.
16802 dlopen_self_static=$enable_dlopen_self_static
16804 # Commands to strip libraries.
16805 old_striplib=$lt_old_striplib
16806 striplib=$lt_striplib
16809 # The linker used to build libraries.
16812 # How to create reloadable object files.
16813 reload_flag=$lt_reload_flag
16814 reload_cmds=$lt_reload_cmds
16816 # Commands used to build an old-style archive.
16817 old_archive_cmds=$lt_old_archive_cmds
16819 # A language specific compiler.
16822 # Is the compiler the GNU compiler?
16825 # Compiler flag to turn off builtin functions.
16826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16828 # Additional compiler flags for building library objects.
16829 pic_flag=$lt_lt_prog_compiler_pic
16831 # How to pass a linker flag through the compiler.
16832 wl=$lt_lt_prog_compiler_wl
16834 # Compiler flag to prevent dynamic linking.
16835 link_static_flag=$lt_lt_prog_compiler_static
16837 # Does compiler simultaneously support -c and -o options?
16838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16840 # Whether or not to add -lc for building shared libraries.
16841 build_libtool_need_lc=$archive_cmds_need_lc
16843 # Whether or not to disallow shared libs when runtime libs are static.
16844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16846 # Compiler flag to allow reflexive dlopens.
16847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16849 # Compiler flag to generate shared objects directly from archives.
16850 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16852 # Whether the compiler copes with passing no objects directly.
16853 compiler_needs_object=$lt_compiler_needs_object
16855 # Create an old-style archive from a shared archive.
16856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16858 # Create a temporary old-style archive to link instead of a shared archive.
16859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16861 # Commands used to build a shared archive.
16862 archive_cmds=$lt_archive_cmds
16863 archive_expsym_cmds=$lt_archive_expsym_cmds
16865 # Commands used to build a loadable module if different from building
16866 # a shared archive.
16867 module_cmds=$lt_module_cmds
16868 module_expsym_cmds=$lt_module_expsym_cmds
16870 # Whether we are building with GNU ld or not.
16871 with_gnu_ld=$lt_with_gnu_ld
16873 # Flag that allows shared libraries with undefined symbols to be built.
16874 allow_undefined_flag=$lt_allow_undefined_flag
16876 # Flag that enforces no undefined symbols.
16877 no_undefined_flag=$lt_no_undefined_flag
16879 # Flag to hardcode \$libdir into a binary during linking.
16880 # This must work even if \$libdir does not exist
16881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16883 # Whether we need a single "-rpath" flag with a separated argument.
16884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16886 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16887 # DIR into the resulting binary.
16888 hardcode_direct=$hardcode_direct
16890 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16891 # DIR into the resulting binary and the resulting library dependency is
16892 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16893 # library is relocated.
16894 hardcode_direct_absolute=$hardcode_direct_absolute
16896 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16897 # into the resulting binary.
16898 hardcode_minus_L=$hardcode_minus_L
16900 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16901 # into the resulting binary.
16902 hardcode_shlibpath_var=$hardcode_shlibpath_var
16904 # Set to "yes" if building a shared library automatically hardcodes DIR
16905 # into the library and all subsequent libraries and executables linked
16907 hardcode_automatic=$hardcode_automatic
16909 # Set to yes if linker adds runtime paths of dependent libraries
16910 # to runtime path list.
16911 inherit_rpath=$inherit_rpath
16913 # Whether libtool must link a program against all its dependency libraries.
16914 link_all_deplibs=$link_all_deplibs
16916 # Set to "yes" if exported symbols are required.
16917 always_export_symbols=$always_export_symbols
16919 # The commands to list exported symbols.
16920 export_symbols_cmds=$lt_export_symbols_cmds
16922 # Symbols that should not be listed in the preloaded symbols.
16923 exclude_expsyms=$lt_exclude_expsyms
16925 # Symbols that must always be exported.
16926 include_expsyms=$lt_include_expsyms
16928 # Commands necessary for linking programs (against libraries) with templates.
16929 prelink_cmds=$lt_prelink_cmds
16931 # Commands necessary for finishing linking programs.
16932 postlink_cmds=$lt_postlink_cmds
16934 # Specify filename containing input files.
16935 file_list_spec=$lt_file_list_spec
16937 # How to hardcode a shared library path into an executable.
16938 hardcode_action=$hardcode_action
16940 # ### END LIBTOOL CONFIG
16944 cat <<'_LT_EOF' >> "$cfgfile"
16946 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16948 # func_munge_path_list VARIABLE PATH
16949 # -----------------------------------
16950 # VARIABLE is name of variable containing _space_ separated list of
16951 # directories to be munged by the contents of PATH, which is string
16954 # string "DIR[ DIR]" will be prepended to VARIABLE
16956 # string "DIR[ DIR]" will be appended to VARIABLE
16957 # "DIRP[:DIRP]::[DIRA:]DIRA"
16958 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16959 # "DIRA[ DIRA]" will be appended to VARIABLE
16961 # VARIABLE will be replaced by "DIR[ DIR]"
16962 func_munge_path_list ()
16968 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16971 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16974 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16975 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16984 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16985 func_cc_basename ()
16987 for cc_temp in $*""; do
16989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16995 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16999 # ### END FUNCTIONS SHARED WITH CONFIGURE
17005 cat <<\_LT_EOF >> "$cfgfile"
17006 # AIX sometimes has problems with the GCC collect2 program. For some
17007 # reason, if we set the COLLECT_NAMES environment variable, the problems
17008 # vanish in a puff of smoke.
17009 if test set != "${COLLECT_NAMES+set}"; then
17011 export COLLECT_NAMES
17018 ltmain=$ac_aux_dir/ltmain.sh
17021 # We use sed instead of cat because bash on DJGPP gets confused if
17022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17023 # text mode, it properly converts lines to CR/LF. This bash problem
17024 # is reportedly fixed, but why not run on old versions too?
17025 sed '$q' "$ltmain" >> "$cfgfile" \
17026 || (rm -f "$cfgfile"; exit 1)
17028 mv -f "$cfgfile" "$ofile" ||
17029 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17040 ac_clean_files=$ac_clean_files_save
17042 test $ac_write_fail = 0 ||
17043 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17046 # configure is writing to config.log, and then calls config.status.
17047 # config.status does its own redirection, appending to config.log.
17048 # Unfortunately, on DOS this fails, as config.log is still kept open
17049 # by configure, so config.status won't be able to write to it; its
17050 # output is simply discarded. So we exec the FD to /dev/null,
17051 # effectively closing config.log, so it can be properly (re)opened and
17052 # appended to by config.status. When coming back to configure, we
17053 # need to make the FD available again.
17054 if test "$no_create" != yes; then
17056 ac_config_status_args=
17057 test "$silent" = yes &&
17058 ac_config_status_args="$ac_config_status_args --quiet"
17060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17063 # would make configure fail if this is the last instruction.
17064 $ac_cs_success || as_fn_exit 1
17066 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17068 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}