2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libogg 1.3.5.
5 # Report bugs to <ogg-dev@xiph.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and ogg-dev@xiph.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libogg'
592 PACKAGE_TARNAME='libogg'
593 PACKAGE_VERSION='1.3.5'
594 PACKAGE_STRING='libogg 1.3.5'
595 PACKAGE_BUGREPORT='ogg-dev@xiph.org'
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>
634 ac_unique_file="src/framing.c"
635 ac_subst_vars='am__EXEEXT_FALSE
658 MAINTAINER_MODE_FALSE
680 INSTALL_STRIP_PROGRAM
762 program_transform_name
776 enable_option_checking
785 enable_dependency_tracking
787 enable_maintainer_mode
790 ac_precious_vars='build_alias
802 # Initialize some variables set by options.
804 ac_init_version=false
805 ac_unrecognized_opts=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1119 -site=* | --site=* | --sit=*)
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval with_$ac_useropt=no ;;
1178 # Obsolete; use --with-x.
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1246 # Be sure to have absolute directory names.
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures libogg 1.3.5 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of libogg 1.3.5:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-static[=PKGS] build static 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 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --disable-maintainer-mode
1441 disable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --disable-crc Disable CRC in the demuxer
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 --with-aix-soname=aix|svr4|both
1451 shared library versioning (aka "SONAME") variant to
1452 provide on AIX, [default=aix].
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1455 compiler's sysroot if not specified).
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1466 User-defined run-time library search path.
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <ogg-dev@xiph.org>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 libogg configure 1.3.5
1536 generated by GNU Autoconf 2.69
1538 Copyright (C) 2012 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 as_fn_set_status $ac_retval
1585 } # ac_fn_c_try_compile
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 test -x conftest$ac_exeext
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_link
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1650 if ac_fn_c_try_compile "$LINENO"; then :
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 } # ac_fn_c_check_header_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=$ac_status
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1766 # include <limits.h>
1768 # include <assert.h>
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1795 if ac_fn_c_try_link "$LINENO"; then :
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_func
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ------------------------------- ##
1881 ## Report this to ogg-dev@xiph.org ##
1882 ## ------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1902 # --------------------------------------------
1903 # Tries to find the compile-time value of EXPR in a program that includes
1904 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1906 ac_fn_c_compute_int ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if test "$cross_compiling" = yes; then
1910 # Depending upon the size, compute the lo and hi bounds.
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1917 static int test_array [1 - 2 * !(($2) >= 0)];
1919 return test_array [0];
1925 if ac_fn_c_try_compile "$LINENO"; then :
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_hi=$ac_mid; break
1945 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1946 if test $ac_lo -le $ac_mid; then
1950 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1961 static int test_array [1 - 2 * !(($2) < 0)];
1963 return test_array [0];
1969 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1980 return test_array [0];
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 ac_lo=$ac_mid; break
1989 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1990 if test $ac_mid -le $ac_hi; then
1994 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 # Binary search between lo and hi bounds.
2005 while test "x$ac_lo" != "x$ac_hi"; do
2006 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2013 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 return test_array [0];
2021 if ac_fn_c_try_compile "$LINENO"; then :
2024 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2036 static long int longval () { return $2; }
2037 static unsigned long int ulongval () { return $2; }
2044 FILE *f = fopen ("conftest.val", "w");
2049 long int i = longval ();
2052 fprintf (f, "%ld", i);
2056 unsigned long int i = ulongval ();
2059 fprintf (f, "%lu", i);
2061 /* Do not output a trailing newline, as this causes \r\n confusion
2062 on some platforms. */
2063 return ferror (f) || fclose (f) != 0;
2069 if ac_fn_c_try_run "$LINENO"; then :
2070 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2075 conftest.$ac_objext conftest.beam conftest.$ac_ext
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_c_compute_int
2083 cat >config.log <<_ACEOF
2084 This file contains any messages produced by compilers while
2085 running configure, to aid debugging if configure makes a mistake.
2087 It was created by libogg $as_me 1.3.5, which was
2088 generated by GNU Autoconf 2.69. Invocation command line was
2100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2140 # Keep a trace of the command line.
2141 # Strip out --no-create and --no-recursion so they do not pile up.
2142 # Strip out --silent because we don't want to record it for future runs.
2143 # Also quote any args containing shell meta-characters.
2144 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_must_keep_next=false
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2177 -* ) ac_must_keep_next=true ;;
2180 as_fn_append ac_configure_args " '$ac_arg'"
2185 { ac_configure_args0=; unset ac_configure_args0;}
2186 { ac_configure_args1=; unset ac_configure_args1;}
2188 # When interrupted or exit'd, cleanup temporary files, and complete
2189 # config.log. We remove comments because anyway the quotes in there
2190 # would cause problems or look ugly.
2191 # WARNING: Use '\'' to represent an apostrophe within the trap.
2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193 trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2198 $as_echo "## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##"
2202 # The following way of writing the cache mishandles newlines in values,
2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2205 eval ac_val=\$$ac_var
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2234 $as_echo "## ----------------- ##
2235 ## Output variables. ##
2236 ## ----------------- ##"
2238 for ac_var in $ac_subst_vars
2240 eval ac_val=\$$ac_var
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 $as_echo "$ac_var='\''$ac_val'\''"
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##"
2253 for ac_var in $ac_subst_files
2255 eval ac_val=\$$ac_var
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 $as_echo "$ac_var='\''$ac_val'\''"
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2321 if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 as_fn_error $? "failed to load site script $ac_site_file
2346 See \`config.log' for more details" "$LINENO" 5; }
2350 if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355 $as_echo "$as_me: loading cache $cache_file" >&6;}
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 # Check that the precious variables saved in the cache have kept the same
2369 ac_cache_corrupted=false
2370 for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x $ac_old_val`
2389 ac_new_val_w=`echo x $ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393 ac_cache_corrupted=:
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417 if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424 ## -------------------- ##
2425 ## Main body of script. ##
2426 ## -------------------- ##
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2438 if test -f "$ac_dir/install-sh"; then
2440 ac_install_sh="$ac_aux_dir/install-sh -c"
2442 elif test -f "$ac_dir/install.sh"; then
2444 ac_install_sh="$ac_aux_dir/install.sh -c"
2446 elif test -f "$ac_dir/shtool"; then
2448 ac_install_sh="$ac_aux_dir/shtool install -c"
2452 if test -z "$ac_aux_dir"; then
2453 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2456 # These three variables are undocumented and unsupported,
2457 # and are intended to be withdrawn in a future Autoconf release.
2458 # They can cause serious problems if a builder's source tree is in a directory
2459 # whose full name contains unusual characters.
2460 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2461 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2462 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2468 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2473 macro_version='2.4.6'
2474 macro_revision='2.4.6'
2488 ltmain=$ac_aux_dir/ltmain.sh
2490 # Make sure we can run config.sub.
2491 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2495 $as_echo_n "checking build system type... " >&6; }
2496 if ${ac_cv_build+:} false; then :
2497 $as_echo_n "(cached) " >&6
2499 ac_build_alias=$build_alias
2500 test "x$ac_build_alias" = x &&
2501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2502 test "x$ac_build_alias" = x &&
2503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2504 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2509 $as_echo "$ac_cv_build" >&6; }
2510 case $ac_cv_build in
2512 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2515 ac_save_IFS=$IFS; IFS='-'
2521 # Remember, the first character of IFS is used to create $*,
2522 # except with old shells:
2525 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2529 $as_echo_n "checking host system type... " >&6; }
2530 if ${ac_cv_host+:} false; then :
2531 $as_echo_n "(cached) " >&6
2533 if test "x$host_alias" = x; then
2534 ac_cv_host=$ac_cv_build
2536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2542 $as_echo "$ac_cv_host" >&6; }
2545 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2548 ac_save_IFS=$IFS; IFS='-'
2554 # Remember, the first character of IFS is used to create $*,
2555 # except with old shells:
2558 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2561 # Backslashify metacharacters that are still active within
2562 # double-quoted strings.
2563 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2565 # Same as above, but do not quote variable references.
2566 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2568 # Sed substitution to delay expansion of an escaped shell variable in a
2569 # double_quote_subst'ed string.
2570 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2572 # Sed substitution to delay expansion of an escaped single quote.
2573 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2575 # Sed substitution to avoid accidental globbing in evaled expressions
2576 no_glob_subst='s/\*/\\\*/g'
2578 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2579 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2580 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2583 $as_echo_n "checking how to print strings... " >&6; }
2584 # Test print first, because it will be a builtin if present.
2585 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2586 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2588 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2591 # Use this function as a fallback that always works.
2592 func_fallback_echo ()
2594 eval 'cat <<_LTECHO_EOF
2598 ECHO='func_fallback_echo'
2601 # func_echo_all arg...
2602 # Invoke $ECHO with all args, space-separated.
2609 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2610 $as_echo "printf" >&6; } ;;
2611 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2612 $as_echo "print -r" >&6; } ;;
2613 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2614 $as_echo "cat" >&6; } ;;
2630 # Expand $ac_aux_dir to an absolute path.
2631 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_CC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2677 if test -z "$ac_cv_prog_CC"; then
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_CC="gcc"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709 $as_echo "$ac_ct_CC" >&6; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2715 if test "x$ac_ct_CC" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2730 if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}cc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="${ac_tool_prefix}cc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected=yes
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog in cl.exe
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2868 test -n "$CC" && break
2871 if test -z "$CC"; then
2873 for ac_prog in cl.exe
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CC="$ac_prog"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2912 test -n "$ac_ct_CC" && break
2915 if test "x$ac_ct_CC" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details" "$LINENO" 5; }
2936 # Provide some information about the compiler.
2937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2940 for ac_option in --version -v -V -qversion; do
2941 { { ac_try="$ac_compiler $ac_option >&5"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947 $as_echo "$ac_try_echo"; } >&5
2948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2950 if test -s conftest.err; then
2952 ... rest of stderr output deleted ...
2953 10q' conftest.err >conftest.er1
2954 cat conftest.er1 >&5
2956 rm -f conftest.er1 conftest.err
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2972 ac_clean_files_save=$ac_clean_files
2973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2974 # Try to create an executable without -o first, disregard a.out.
2975 # It will help us diagnose broken compilers, and finding out an intuition
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978 $as_echo_n "checking whether the C compiler works... " >&6; }
2979 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2981 # The possible output files:
2982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2985 for ac_file in $ac_files
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 if { { ac_try="$ac_link_default"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_link_default") 2>&5
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3007 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3008 # so that the user can short-circuit this test for compilers unknown to
3010 for ac_file in $ac_files ''
3012 test -f "$ac_file" || continue
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3017 # We found the default executable, but exeext='' is most
3021 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 # We set ac_cv_exeext here because the later test for it is not
3026 # safe: cross compilers may not add the suffix if given an `-o'
3027 # argument, so we may need to know it at that point already.
3028 # Even if this section looks crufty: it has the advantage of
3035 test "$ac_cv_exeext" = no && ac_cv_exeext=
3040 if test -z "$ac_file"; then :
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error 77 "C compiler cannot create executables
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3057 $as_echo "$ac_file" >&6; }
3058 ac_exeext=$ac_cv_exeext
3060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3063 $as_echo_n "checking for suffix of executables... " >&6; }
3064 if { { ac_try="$ac_link"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3076 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3077 # work properly (i.e., refer to `conftest.exe'), while it won't with
3079 for ac_file in conftest.exe conftest conftest.*; do
3080 test -f "$ac_file" || continue
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3092 See \`config.log' for more details" "$LINENO" 5; }
3094 rm -f conftest conftest$ac_cv_exeext
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3096 $as_echo "$ac_cv_exeext" >&6; }
3098 rm -f conftest.$ac_ext
3099 EXEEXT=$ac_cv_exeext
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3107 FILE *f = fopen ("conftest.out", "w");
3108 return ferror (f) || fclose (f) != 0;
3114 ac_clean_files="$ac_clean_files conftest.out"
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 if test "$cross_compiling" != yes; then
3120 { { ac_try="$ac_link"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link") 2>&5
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 if { ac_try='./conftest$ac_cv_exeext'
3132 { { case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_try") 2>&5
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; }; then
3144 if test "$cross_compiling" = maybe; then
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details" "$LINENO" 5; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3156 $as_echo "$cross_compiling" >&6; }
3158 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161 $as_echo_n "checking for suffix of object files... " >&6; }
3162 if ${ac_cv_objext+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3176 rm -f conftest.o conftest.obj
3177 if { { ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if ${ac_cv_c_compiler_gnu+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3230 if ac_fn_c_try_compile "$LINENO"; then :
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if ${ac_cv_prog_cc_g+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3268 if ac_fn_c_try_compile "$LINENO"; then :
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3299 if ac_fn_c_try_compile "$LINENO"; then :
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3320 if test "$GCC" = yes; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if ${ac_cv_prog_cc_c89+:} false; then :
3329 $as_echo_n "(cached) " >&6
3331 ac_cv_prog_cc_c89=no
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3339 struct buf { int x; };
3340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3341 static char *e (p, i)
3347 static char *f (char * (*g) (char **, int), char **p, ...)
3352 s = g (p, va_arg (v,int));
3357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3358 function prototypes and stuff, but not '\xHH' hex character constants.
3359 These don't provoke an error unfortunately, instead are silently treated
3360 as 'x'. The following induces an error, until -std is added to get
3361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3362 array size at least. It's necessary to write '\x00'==0 to get something
3363 that's true only with -std. */
3364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3367 inside strings and character constants. */
3369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3371 int test (int i, double x);
3372 struct s1 {int (*f) (int a);};
3373 struct s2 {int (*f) (double a);};
3374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3388 CC="$ac_save_CC $ac_arg"
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_cv_prog_cc_c89=$ac_arg
3392 rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 rm -f conftest.$ac_ext
3400 case "x$ac_cv_prog_cc_c89" in
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3403 $as_echo "none needed" >&6; } ;;
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3406 $as_echo "unsupported" >&6; } ;;
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3410 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3412 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3428 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3429 if ${am_cv_prog_cc_c_o+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 # Make sure it works both with $CC and with simple cc.
3444 # Following AC_PROG_CC_C_O, we do the test twice because some
3445 # compilers refuse to overwrite an existing .o file with -o,
3446 # though they will create one.
3447 am_cv_prog_cc_c_o=yes
3449 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3450 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } \
3454 && test -f conftest2.$ac_objext; then
3457 am_cv_prog_cc_c_o=no
3461 rm -f core conftest*
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3465 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3466 if test "$am_cv_prog_cc_c_o" != yes; then
3467 # Losing compiler, so override with the script.
3468 # FIXME: It is wrong to rewrite CC.
3469 # But if we don't then we get into trouble of one sort or another.
3470 # A longer-term fix would be to have automake use am__CC in this case,
3471 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3472 CC="$am_aux_dir/compile $CC"
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3483 if ${ac_cv_path_SED+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3487 for ac_i in 1 2 3 4 5 6 7; do
3488 ac_script="$ac_script$as_nl$ac_script"
3490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3491 { ac_script=; unset ac_script;}
3492 if test -z "$SED"; then
3493 ac_path_SED_found=false
3494 # Loop through the user's path and test for each of PROGNAME-LIST
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_prog in sed gsed; do
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3503 as_fn_executable_p "$ac_path_SED" || continue
3504 # Check for GNU ac_path_SED and select it if it is found.
3505 # Check for GNU $ac_path_SED
3506 case `"$ac_path_SED" --version 2>&1` in
3508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3511 $as_echo_n 0123456789 >"conftest.in"
3514 cat "conftest.in" "conftest.in" >"conftest.tmp"
3515 mv "conftest.tmp" "conftest.in"
3516 cp "conftest.in" "conftest.nl"
3517 $as_echo '' >> "conftest.nl"
3518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3520 as_fn_arith $ac_count + 1 && ac_count=$as_val
3521 if test $ac_count -gt ${ac_path_SED_max-0}; then
3522 # Best one so far, save it but keep looking for a better one
3523 ac_cv_path_SED="$ac_path_SED"
3524 ac_path_SED_max=$ac_count
3526 # 10*(2^10) chars as input seems more than enough
3527 test $ac_count -gt 10 && break
3529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3532 $ac_path_SED_found && break 3
3537 if test -z "$ac_cv_path_SED"; then
3538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3546 $as_echo "$ac_cv_path_SED" >&6; }
3547 SED="$ac_cv_path_SED"
3550 test -z "$SED" && SED=sed
3551 Xsed="$SED -e 1s/^X//"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3565 if ${ac_cv_path_GREP+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -z "$GREP"; then
3569 ac_path_GREP_found=false
3570 # Loop through the user's path and test for each of PROGNAME-LIST
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3575 test -z "$as_dir" && as_dir=.
3576 for ac_prog in grep ggrep; do
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3579 as_fn_executable_p "$ac_path_GREP" || continue
3580 # Check for GNU ac_path_GREP and select it if it is found.
3581 # Check for GNU $ac_path_GREP
3582 case `"$ac_path_GREP" --version 2>&1` in
3584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3587 $as_echo_n 0123456789 >"conftest.in"
3590 cat "conftest.in" "conftest.in" >"conftest.tmp"
3591 mv "conftest.tmp" "conftest.in"
3592 cp "conftest.in" "conftest.nl"
3593 $as_echo 'GREP' >> "conftest.nl"
3594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3596 as_fn_arith $ac_count + 1 && ac_count=$as_val
3597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3598 # Best one so far, save it but keep looking for a better one
3599 ac_cv_path_GREP="$ac_path_GREP"
3600 ac_path_GREP_max=$ac_count
3602 # 10*(2^10) chars as input seems more than enough
3603 test $ac_count -gt 10 && break
3605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3608 $ac_path_GREP_found && break 3
3613 if test -z "$ac_cv_path_GREP"; then
3614 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3617 ac_cv_path_GREP=$GREP
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3622 $as_echo "$ac_cv_path_GREP" >&6; }
3623 GREP="$ac_cv_path_GREP"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3627 $as_echo_n "checking for egrep... " >&6; }
3628 if ${ac_cv_path_EGREP+:} false; then :
3629 $as_echo_n "(cached) " >&6
3631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3632 then ac_cv_path_EGREP="$GREP -E"
3634 if test -z "$EGREP"; then
3635 ac_path_EGREP_found=false
3636 # Loop through the user's path and test for each of PROGNAME-LIST
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in egrep; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3645 as_fn_executable_p "$ac_path_EGREP" || continue
3646 # Check for GNU ac_path_EGREP and select it if it is found.
3647 # Check for GNU $ac_path_EGREP
3648 case `"$ac_path_EGREP" --version 2>&1` in
3650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3653 $as_echo_n 0123456789 >"conftest.in"
3656 cat "conftest.in" "conftest.in" >"conftest.tmp"
3657 mv "conftest.tmp" "conftest.in"
3658 cp "conftest.in" "conftest.nl"
3659 $as_echo 'EGREP' >> "conftest.nl"
3660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662 as_fn_arith $ac_count + 1 && ac_count=$as_val
3663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3664 # Best one so far, save it but keep looking for a better one
3665 ac_cv_path_EGREP="$ac_path_EGREP"
3666 ac_path_EGREP_max=$ac_count
3668 # 10*(2^10) chars as input seems more than enough
3669 test $ac_count -gt 10 && break
3671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 $ac_path_EGREP_found && break 3
3679 if test -z "$ac_cv_path_EGREP"; then
3680 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3683 ac_cv_path_EGREP=$EGREP
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3689 $as_echo "$ac_cv_path_EGREP" >&6; }
3690 EGREP="$ac_cv_path_EGREP"
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3694 $as_echo_n "checking for fgrep... " >&6; }
3695 if ${ac_cv_path_FGREP+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3699 then ac_cv_path_FGREP="$GREP -F"
3701 if test -z "$FGREP"; then
3702 ac_path_FGREP_found=false
3703 # Loop through the user's path and test for each of PROGNAME-LIST
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3708 test -z "$as_dir" && as_dir=.
3709 for ac_prog in fgrep; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3712 as_fn_executable_p "$ac_path_FGREP" || continue
3713 # Check for GNU ac_path_FGREP and select it if it is found.
3714 # Check for GNU $ac_path_FGREP
3715 case `"$ac_path_FGREP" --version 2>&1` in
3717 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3720 $as_echo_n 0123456789 >"conftest.in"
3723 cat "conftest.in" "conftest.in" >"conftest.tmp"
3724 mv "conftest.tmp" "conftest.in"
3725 cp "conftest.in" "conftest.nl"
3726 $as_echo 'FGREP' >> "conftest.nl"
3727 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3729 as_fn_arith $ac_count + 1 && ac_count=$as_val
3730 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3731 # Best one so far, save it but keep looking for a better one
3732 ac_cv_path_FGREP="$ac_path_FGREP"
3733 ac_path_FGREP_max=$ac_count
3735 # 10*(2^10) chars as input seems more than enough
3736 test $ac_count -gt 10 && break
3738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3741 $ac_path_FGREP_found && break 3
3746 if test -z "$ac_cv_path_FGREP"; then
3747 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3750 ac_cv_path_FGREP=$FGREP
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3756 $as_echo "$ac_cv_path_FGREP" >&6; }
3757 FGREP="$ac_cv_path_FGREP"
3760 test -z "$GREP" && GREP=grep
3780 # Check whether --with-gnu-ld was given.
3781 if test "${with_gnu_ld+set}" = set; then :
3782 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3788 if test yes = "$GCC"; then
3789 # Check if gcc -print-prog-name=ld gives a path.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3791 $as_echo_n "checking for ld used by $CC... " >&6; }
3794 # gcc leaves a trailing carriage return, which upsets mingw
3795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3800 # Accept absolute paths.
3802 re_direlt='/[^/][^/]*/\.\./'
3803 # Canonicalize the pathname of ld
3804 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3805 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3806 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3808 test -z "$LD" && LD=$ac_prog
3811 # If it fails, then pretend we aren't using GCC.
3815 # If it is relative, then search for the first ld in PATH.
3819 elif test yes = "$with_gnu_ld"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3821 $as_echo_n "checking for GNU ld... " >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3824 $as_echo_n "checking for non-GNU ld... " >&6; }
3826 if ${lt_cv_path_LD+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -z "$LD"; then
3830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3831 for ac_dir in $PATH; do
3833 test -z "$ac_dir" && ac_dir=.
3834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3835 lt_cv_path_LD=$ac_dir/$ac_prog
3836 # Check to see if the program is GNU ld. I'd rather use --version,
3837 # but apparently some variants of GNU ld only accept -v.
3838 # Break only if it was the GNU/non-GNU ld that we prefer.
3839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840 *GNU* | *'with BFD'*)
3841 test no != "$with_gnu_ld" && break
3844 test yes != "$with_gnu_ld" && break
3851 lt_cv_path_LD=$LD # Let the user override the test with a path.
3856 if test -n "$LD"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3858 $as_echo "$LD" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3863 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3865 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3866 if ${lt_cv_prog_gnu_ld+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3870 case `$LD -v 2>&1 </dev/null` in
3871 *GNU* | *'with BFD'*)
3872 lt_cv_prog_gnu_ld=yes
3875 lt_cv_prog_gnu_ld=no
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3880 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3881 with_gnu_ld=$lt_cv_prog_gnu_ld
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3892 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3893 if ${lt_cv_path_NM+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$NM"; then
3897 # Let the user override the test.
3900 lt_nm_to_check=${ac_tool_prefix}nm
3901 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3902 lt_nm_to_check="$lt_nm_to_check nm"
3904 for lt_tmp_nm in $lt_nm_to_check; do
3905 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3906 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3908 test -z "$ac_dir" && ac_dir=.
3909 tmp_nm=$ac_dir/$lt_tmp_nm
3910 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3911 # Check to see if the nm accepts a BSD-compat flag.
3912 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3913 # nm: unknown option "B" ignored
3914 # Tru64's nm complains that /dev/null is an invalid object file
3915 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3917 mingw*) lt_bad_file=conftest.nm/nofile ;;
3918 *) lt_bad_file=/dev/null ;;
3920 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3921 *$lt_bad_file* | *'Invalid file or object type'*)
3922 lt_cv_path_NM="$tmp_nm -B"
3926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3928 lt_cv_path_NM="$tmp_nm -p"
3932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3933 continue # so that we can try to find one that supports BSD flags
3942 : ${lt_cv_path_NM=no}
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3946 $as_echo "$lt_cv_path_NM" >&6; }
3947 if test no != "$lt_cv_path_NM"; then
3950 # Didn't find any BSD compatible name lister, look for dumpbin.
3951 if test -n "$DUMPBIN"; then :
3952 # Let the user override the test.
3954 if test -n "$ac_tool_prefix"; then
3955 for ac_prog in dumpbin "link -dump"
3957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_DUMPBIN+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -n "$DUMPBIN"; then
3965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 DUMPBIN=$ac_cv_prog_DUMPBIN
3985 if test -n "$DUMPBIN"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3987 $as_echo "$DUMPBIN" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3994 test -n "$DUMPBIN" && break
3997 if test -z "$DUMPBIN"; then
3998 ac_ct_DUMPBIN=$DUMPBIN
3999 for ac_prog in dumpbin "link -dump"
4001 # Extract the first word of "$ac_prog", so it can be a program name with args.
4002 set dummy $ac_prog; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4006 $as_echo_n "(cached) " >&6
4008 if test -n "$ac_ct_DUMPBIN"; then
4009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4029 if test -n "$ac_ct_DUMPBIN"; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4031 $as_echo "$ac_ct_DUMPBIN" >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4038 test -n "$ac_ct_DUMPBIN" && break
4041 if test "x$ac_ct_DUMPBIN" = x; then
4044 case $cross_compiling:$ac_tool_warned in
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4050 DUMPBIN=$ac_ct_DUMPBIN
4054 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4056 DUMPBIN="$DUMPBIN -symbols -headers"
4064 if test : != "$DUMPBIN"; then
4068 test -z "$NM" && NM=nm
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4076 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4077 if ${lt_cv_nm_interface+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 lt_cv_nm_interface="BSD nm"
4081 echo "int some_variable = 0;" > conftest.$ac_ext
4082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4083 (eval "$ac_compile" 2>conftest.err)
4084 cat conftest.err >&5
4085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4087 cat conftest.err >&5
4088 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4089 cat conftest.out >&5
4090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4091 lt_cv_nm_interface="MS dumpbin"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4096 $as_echo "$lt_cv_nm_interface" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4099 $as_echo_n "checking whether ln -s works... " >&6; }
4101 if test "$LN_S" = "ln -s"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4106 $as_echo "no, using $LN_S" >&6; }
4109 # find the maximum length of command line arguments
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4111 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4112 if ${lt_cv_sys_max_cmd_len+:} false; then :
4113 $as_echo_n "(cached) " >&6
4120 # On DJGPP, this test can blow up pretty badly due to problems in libc
4121 # (any single argument exceeding 2000 bytes causes a buffer overrun
4122 # during glob expansion). Even if it were fixed, the result of this
4123 # check would be larger than it should be.
4124 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4128 # Under GNU Hurd, this test is not required because there is
4129 # no limit to the length of command line arguments.
4130 # Libtool will interpret -1 as no limit whatsoever
4131 lt_cv_sys_max_cmd_len=-1;
4134 cygwin* | mingw* | cegcc*)
4135 # On Win9x/ME, this test blows up -- it succeeds, but takes
4136 # about 5 minutes as the teststring grows exponentially.
4137 # Worse, since 9x/ME are not pre-emptively multitasking,
4138 # you end up with a "frozen" computer, even though with patience
4139 # the test eventually succeeds (with a max line length of 256k).
4140 # Instead, let's just punt: use the minimum linelength reported by
4141 # all of the supported platforms: 8192 (on NT/2K/XP).
4142 lt_cv_sys_max_cmd_len=8192;
4146 # On MiNT this can take a long time and run out of memory.
4147 lt_cv_sys_max_cmd_len=8192;
4151 # On AmigaOS with pdksh, this test takes hours, literally.
4152 # So we just punt and use a minimum line length of 8192.
4153 lt_cv_sys_max_cmd_len=8192;
4156 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4157 # This has been around since 386BSD, at least. Likely further.
4158 if test -x /sbin/sysctl; then
4159 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4160 elif test -x /usr/sbin/sysctl; then
4161 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4163 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4165 # And add a safety zone
4166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4171 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4172 lt_cv_sys_max_cmd_len=196608
4176 # The test takes a long time on OS/2.
4177 lt_cv_sys_max_cmd_len=8192
4181 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4182 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4183 # nice to cause kernel panics so lets avoid the loop below.
4184 # First set a reasonable default.
4185 lt_cv_sys_max_cmd_len=16384
4187 if test -x /sbin/sysconfig; then
4188 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4189 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4194 lt_cv_sys_max_cmd_len=102400
4196 sysv5* | sco5v6* | sysv4.2uw2*)
4197 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4198 if test -n "$kargmax"; then
4199 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4201 lt_cv_sys_max_cmd_len=32768
4205 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4206 if test -n "$lt_cv_sys_max_cmd_len" && \
4207 test undefined != "$lt_cv_sys_max_cmd_len"; then
4208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4211 # Make teststring a little bigger before we do anything with it.
4212 # a 1K string should be a reasonable start.
4213 for i in 1 2 3 4 5 6 7 8; do
4214 teststring=$teststring$teststring
4216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4217 # If test is not a shell built-in, we'll probably end up computing a
4218 # maximum length that is only half of the actual maximum length, but
4220 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4221 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4222 test 17 != "$i" # 1/2 MB should be enough
4225 teststring=$teststring$teststring
4227 # Only check the string length outside the loop.
4228 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4230 # Add a significant safety factor because C++ compilers can tack on
4231 # massive amounts of additional arguments before passing them to the
4232 # linker. It appears as though 1/2 is a usable value.
4233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4240 if test -n "$lt_cv_sys_max_cmd_len"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4242 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4245 $as_echo "none" >&6; }
4247 max_cmd_len=$lt_cv_sys_max_cmd_len
4258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4268 # test EBCDIC or ASCII
4269 case `echo X|tr X '\101'` in
4270 A) # ASCII based system
4271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4272 lt_SP2NL='tr \040 \012'
4273 lt_NL2SP='tr \015\012 \040\040'
4275 *) # EBCDIC based system
4276 lt_SP2NL='tr \100 \n'
4277 lt_NL2SP='tr \r\n \100\100'
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4290 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4291 if ${lt_cv_to_host_file_cmd+:} false; then :
4292 $as_echo_n "(cached) " >&6
4297 *-*-mingw* ) # actually msys
4298 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4301 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4303 * ) # otherwise, assume *nix
4304 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4310 *-*-mingw* ) # actually msys
4311 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4314 lt_cv_to_host_file_cmd=func_convert_file_noop
4316 * ) # otherwise, assume *nix
4317 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4321 * ) # unhandled hosts (and "normal" native builds)
4322 lt_cv_to_host_file_cmd=func_convert_file_noop
4328 to_host_file_cmd=$lt_cv_to_host_file_cmd
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4330 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4337 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4338 if ${lt_cv_to_tool_file_cmd+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 #assume ordinary cross tools, or native build.
4342 lt_cv_to_tool_file_cmd=func_convert_file_noop
4346 *-*-mingw* ) # actually msys
4347 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4355 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4357 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4364 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4365 if ${lt_cv_ld_reload_flag+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 lt_cv_ld_reload_flag='-r'
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4371 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4372 reload_flag=$lt_cv_ld_reload_flag
4373 case $reload_flag in
4375 *) reload_flag=" $reload_flag" ;;
4377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4379 cygwin* | mingw* | pw32* | cegcc*)
4380 if test yes != "$GCC"; then
4385 if test yes = "$GCC"; then
4386 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_OBJDUMP+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$OBJDUMP"; then
4410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 OBJDUMP=$ac_cv_prog_OBJDUMP
4430 if test -n "$OBJDUMP"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4432 $as_echo "$OBJDUMP" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test -z "$ac_cv_prog_OBJDUMP"; then
4441 ac_ct_OBJDUMP=$OBJDUMP
4442 # Extract the first word of "objdump", so it can be a program name with args.
4443 set dummy objdump; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$ac_ct_OBJDUMP"; then
4450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4470 if test -n "$ac_ct_OBJDUMP"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4472 $as_echo "$ac_ct_OBJDUMP" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 if test "x$ac_ct_OBJDUMP" = x; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4487 OBJDUMP=$ac_ct_OBJDUMP
4490 OBJDUMP="$ac_cv_prog_OBJDUMP"
4493 test -z "$OBJDUMP" && OBJDUMP=objdump
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4505 if ${lt_cv_deplibs_check_method+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 lt_cv_file_magic_cmd='$MAGIC_CMD'
4509 lt_cv_file_magic_test_file=
4510 lt_cv_deplibs_check_method='unknown'
4511 # Need to set the preceding variable on all platforms that support
4512 # interlibrary dependencies.
4513 # 'none' -- dependencies not supported.
4514 # 'unknown' -- same as none, but documents that we really don't know.
4515 # 'pass_all' -- all dependencies passed with no checks.
4516 # 'test_compile' -- check by making test program.
4517 # 'file_magic [[regex]]' -- check by looking for files in library path
4518 # that responds to the $file_magic_cmd with a given extended regex.
4519 # If you have 'file' or equivalent on your system and you're not sure
4520 # whether 'pass_all' will *always* work, you probably want this one.
4524 lt_cv_deplibs_check_method=pass_all
4528 lt_cv_deplibs_check_method=pass_all
4532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4533 lt_cv_file_magic_cmd='/usr/bin/file -L'
4534 lt_cv_file_magic_test_file=/shlib/libc.so
4538 # func_win32_libid is a shell function defined in ltmain.sh
4539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4540 lt_cv_file_magic_cmd='func_win32_libid'
4544 # Base MSYS/MinGW do not provide the 'file' command needed by
4545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4546 # unless we find 'file', for example because we are cross-compiling.
4547 if ( file / ) >/dev/null 2>&1; then
4548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4549 lt_cv_file_magic_cmd='func_win32_libid'
4551 # Keep this pattern in sync with the one in func_win32_libid.
4552 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4553 lt_cv_file_magic_cmd='$OBJDUMP -f'
4558 # use the weaker test based on 'objdump'. See mingw*.
4559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4560 lt_cv_file_magic_cmd='$OBJDUMP -f'
4563 darwin* | rhapsody*)
4564 lt_cv_deplibs_check_method=pass_all
4567 freebsd* | dragonfly*)
4568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4571 # Not sure whether the presence of OpenBSD here was a mistake.
4572 # Let's accept both of them until this is cleared up.
4573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4574 lt_cv_file_magic_cmd=/usr/bin/file
4575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4579 lt_cv_deplibs_check_method=pass_all
4584 lt_cv_deplibs_check_method=pass_all
4587 hpux10.20* | hpux11*)
4588 lt_cv_file_magic_cmd=/usr/bin/file
4591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4595 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]'
4596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4606 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4610 irix5* | irix6* | nonstopux*)
4612 *-32|*"-32 ") libmagic=32-bit;;
4613 *-n32|*"-n32 ") libmagic=N32;;
4614 *-64|*"-64 ") libmagic=64-bit;;
4615 *) libmagic=never-match;;
4617 lt_cv_deplibs_check_method=pass_all
4620 # This must be glibc/ELF.
4621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4622 lt_cv_deplibs_check_method=pass_all
4625 netbsd* | netbsdelf*-gnu)
4626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4634 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4635 lt_cv_file_magic_cmd=/usr/bin/file
4636 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4640 lt_cv_deplibs_check_method=pass_all
4644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4651 osf3* | osf4* | osf5*)
4652 lt_cv_deplibs_check_method=pass_all
4656 lt_cv_deplibs_check_method=pass_all
4660 lt_cv_deplibs_check_method=pass_all
4663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4664 lt_cv_deplibs_check_method=pass_all
4668 case $host_vendor in
4670 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]'
4671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4674 lt_cv_deplibs_check_method=pass_all
4677 lt_cv_file_magic_cmd='/bin/file'
4678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4681 lt_cv_file_magic_cmd='/bin/file'
4682 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4683 lt_cv_file_magic_test_file=/lib/libc.so
4686 lt_cv_deplibs_check_method=pass_all
4689 lt_cv_deplibs_check_method=pass_all
4695 lt_cv_deplibs_check_method=pass_all
4698 lt_cv_deplibs_check_method=pass_all
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4704 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4708 if test "$build" = "$host"; then
4711 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4714 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4720 file_magic_cmd=$lt_cv_file_magic_cmd
4721 deplibs_check_method=$lt_cv_deplibs_check_method
4722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4747 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_DLLTOOL+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$DLLTOOL"; then
4754 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 DLLTOOL=$ac_cv_prog_DLLTOOL
4774 if test -n "$DLLTOOL"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4776 $as_echo "$DLLTOOL" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4784 if test -z "$ac_cv_prog_DLLTOOL"; then
4785 ac_ct_DLLTOOL=$DLLTOOL
4786 # Extract the first word of "dlltool", so it can be a program name with args.
4787 set dummy dlltool; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 if test -n "$ac_ct_DLLTOOL"; then
4794 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4814 if test -n "$ac_ct_DLLTOOL"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4816 $as_echo "$ac_ct_DLLTOOL" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4822 if test "x$ac_ct_DLLTOOL" = x; then
4825 case $cross_compiling:$ac_tool_warned in
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned=yes ;;
4831 DLLTOOL=$ac_ct_DLLTOOL
4834 DLLTOOL="$ac_cv_prog_DLLTOOL"
4837 test -z "$DLLTOOL" && DLLTOOL=dlltool
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4849 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4850 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 lt_cv_sharedlib_from_linklib_cmd='unknown'
4856 cygwin* | mingw* | pw32* | cegcc*)
4857 # two different shell functions defined in ltmain.sh;
4858 # decide which one to use based on capabilities of $DLLTOOL
4859 case `$DLLTOOL --help 2>&1` in
4860 *--identify-strict*)
4861 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4864 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4869 # fallback: assume linklib IS sharedlib
4870 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4876 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4877 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4878 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4887 if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_AR+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 if test -n "$AR"; then
4898 ac_cv_prog_AR="$AR" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 if test -n "$AR"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4920 $as_echo "$AR" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4927 test -n "$AR" && break
4930 if test -z "$AR"; then
4934 # Extract the first word of "$ac_prog", so it can be a program name with args.
4935 set dummy $ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 if test -n "$ac_ct_AR"; then
4942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_prog_ac_ct_AR="$ac_prog"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4962 if test -n "$ac_ct_AR"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4964 $as_echo "$ac_ct_AR" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4971 test -n "$ac_ct_AR" && break
4974 if test "x$ac_ct_AR" = x; then
4977 case $cross_compiling:$ac_tool_warned in
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4981 ac_tool_warned=yes ;;
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5001 $as_echo_n "checking for archiver @FILE support... " >&6; }
5002 if ${lt_cv_ar_at_file+:} false; then :
5003 $as_echo_n "(cached) " >&6
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 echo conftest.$ac_objext > conftest.lst
5019 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5021 (eval $lt_ar_try) 2>&5
5023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024 test $ac_status = 0; }
5025 if test 0 -eq "$ac_status"; then
5026 # Ensure the archiver fails upon bogus file names.
5027 rm -f conftest.$ac_objext libconftest.a
5028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5029 (eval $lt_ar_try) 2>&5
5031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032 test $ac_status = 0; }
5033 if test 0 -ne "$ac_status"; then
5037 rm -f conftest.* libconftest.a
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5044 $as_echo "$lt_cv_ar_at_file" >&6; }
5046 if test no = "$lt_cv_ar_at_file"; then
5049 archiver_list_spec=$lt_cv_ar_at_file
5058 if test -n "$ac_tool_prefix"; then
5059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5060 set dummy ${ac_tool_prefix}strip; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_STRIP+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$STRIP"; then
5067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 STRIP=$ac_cv_prog_STRIP
5087 if test -n "$STRIP"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5089 $as_echo "$STRIP" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5097 if test -z "$ac_cv_prog_STRIP"; then
5099 # Extract the first word of "strip", so it can be a program name with args.
5100 set dummy strip; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -n "$ac_ct_STRIP"; then
5107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ac_ct_STRIP="strip"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5127 if test -n "$ac_ct_STRIP"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5129 $as_echo "$ac_ct_STRIP" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5135 if test "x$ac_ct_STRIP" = x; then
5138 case $cross_compiling:$ac_tool_warned in
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5142 ac_tool_warned=yes ;;
5147 STRIP="$ac_cv_prog_STRIP"
5150 test -z "$STRIP" && STRIP=:
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_RANLIB+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$RANLIB"; then
5166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 RANLIB=$ac_cv_prog_RANLIB
5186 if test -n "$RANLIB"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5188 $as_echo "$RANLIB" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5196 if test -z "$ac_cv_prog_RANLIB"; then
5197 ac_ct_RANLIB=$RANLIB
5198 # Extract the first word of "ranlib", so it can be a program name with args.
5199 set dummy ranlib; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$ac_ct_RANLIB"; then
5206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_ac_ct_RANLIB="ranlib"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5226 if test -n "$ac_ct_RANLIB"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5228 $as_echo "$ac_ct_RANLIB" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5234 if test "x$ac_ct_RANLIB" = x; then
5237 case $cross_compiling:$ac_tool_warned in
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5243 RANLIB=$ac_ct_RANLIB
5246 RANLIB="$ac_cv_prog_RANLIB"
5249 test -z "$RANLIB" && RANLIB=:
5256 # Determine commands to create old-style static archives.
5257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5258 old_postinstall_cmds='chmod 644 $oldlib'
5259 old_postuninstall_cmds=
5261 if test -n "$RANLIB"; then
5264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5275 lock_old_archive_extraction=yes ;;
5277 lock_old_archive_extraction=no ;;
5300 for ac_prog in gawk mawk nawk awk
5302 # Extract the first word of "$ac_prog", so it can be a program name with args.
5303 set dummy $ac_prog; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_AWK+:} false; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -n "$AWK"; then
5310 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_AWK="$ac_prog"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 if test -n "$AWK"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5332 $as_echo "$AWK" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5339 test -n "$AWK" && break
5360 # If no C compiler was specified, use CC.
5363 # If no C compiler flags were specified, use CFLAGS.
5364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5366 # Allow CC to be a program name with arguments.
5370 # Check for command to grab the raw symbol name followed by C symbol from nm.
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5372 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5373 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5374 $as_echo_n "(cached) " >&6
5377 # These are sane defaults that work on at least a few old systems.
5378 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5380 # Character class describing NM global symbol codes.
5381 symcode='[BCDEGRST]'
5383 # Regexp to match symbols that can be accessed directly from C.
5384 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5386 # Define system-specific variables.
5391 cygwin* | mingw* | pw32* | cegcc*)
5392 symcode='[ABCDGISTW]'
5395 if test ia64 = "$host_cpu"; then
5396 symcode='[ABCDEGRST]'
5400 symcode='[BCDEGRST]'
5403 symcode='[BCDEGQRST]'
5414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5422 # If we're using GNU nm, then use its standard symbol codes.
5423 case `$NM -V 2>&1` in
5424 *GNU* | *'with BFD'*)
5425 symcode='[ABCDGIRSTW]' ;;
5428 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5429 # Gets list of data symbols to import.
5430 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5431 # Adjust the below global symbol transforms to fixup imported variables.
5432 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5433 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5434 lt_c_name_lib_hook="\
5435 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5436 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5438 # Disable hooks by default.
5439 lt_cv_sys_global_symbol_to_import=
5445 # Transform an extracted symbol line into a proper C declaration.
5446 # Some systems (esp. on ia64) link data and code symbols differently,
5447 # so use this general approach.
5448 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5450 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5451 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5453 # Transform an extracted symbol line into symbol name and symbol address
5454 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5456 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5457 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5459 # Transform an extracted symbol line into symbol name with lib prefix and
5461 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5462 $lt_c_name_lib_hook\
5463 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5464 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5465 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5467 # Handle CRLF in mingw tool chain
5471 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5475 # Try without a prefix underscore, then with it.
5476 for ac_symprfx in "" "_"; do
5478 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5479 symxfrm="\\1 $ac_symprfx\\2 \\2"
5481 # Write the raw and C identifiers.
5482 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5483 # Fake it for dumpbin and say T for any non-static function,
5484 # D for any global variable and I for any imported variable.
5485 # Also find C++ and __fastcall symbols from MSVC++,
5486 # which start with @ or ?.
5487 lt_cv_sys_global_symbol_pipe="$AWK '"\
5488 " {last_section=section; section=\$ 3};"\
5489 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5490 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5491 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5492 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5493 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5494 " \$ 0!~/External *\|/{next};"\
5495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5496 " {if(hide[section]) next};"\
5497 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5498 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5499 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5500 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5501 " ' prfx=^$ac_symprfx"
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5505 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5507 # Check to see that the pipe works correctly.
5511 cat > conftest.$ac_ext <<_LT_EOF
5516 void nm_test_func(void);
5517 void nm_test_func(void){}
5521 int main(){nm_test_var='a';nm_test_func();return(0);}
5524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5525 (eval $ac_compile) 2>&5
5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5528 test $ac_status = 0; }; then
5529 # Now try to grab the symbols.
5531 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5532 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5533 # Try sorting and uniquifying the output.
5534 if sort "$nlist" | uniq > "$nlist"T; then
5535 mv -f "$nlist"T "$nlist"
5540 # Make sure that we snagged all the symbols we need.
5541 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5542 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5543 cat <<_LT_EOF > conftest.$ac_ext
5544 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5545 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5546 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5547 relocations are performed -- see ld's documentation on pseudo-relocs. */
5548 # define LT_DLSYM_CONST
5549 #elif defined __osf__
5550 /* This system does not cope well with relocations in const data. */
5551 # define LT_DLSYM_CONST
5553 # define LT_DLSYM_CONST const
5561 # Now generate the symbol file.
5562 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5564 cat <<_LT_EOF >> conftest.$ac_ext
5566 /* The mapping between symbol names and symbols. */
5567 LT_DLSYM_CONST struct {
5571 lt__PROGRAM__LTX_preloaded_symbols[] =
5573 { "@PROGRAM@", (void *) 0 },
5575 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5576 cat <<\_LT_EOF >> conftest.$ac_ext
5580 /* This works around a problem in FreeBSD linker */
5581 #ifdef FREEBSD_WORKAROUND
5582 static const void *lt_preloaded_setup() {
5583 return lt__PROGRAM__LTX_preloaded_symbols;
5591 # Now try linking the two files.
5592 mv conftest.$ac_objext conftstm.$ac_objext
5593 lt_globsym_save_LIBS=$LIBS
5594 lt_globsym_save_CFLAGS=$CFLAGS
5595 LIBS=conftstm.$ac_objext
5596 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5598 (eval $ac_link) 2>&5
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5604 LIBS=$lt_globsym_save_LIBS
5605 CFLAGS=$lt_globsym_save_CFLAGS
5607 echo "cannot find nm_test_func in $nlist" >&5
5610 echo "cannot find nm_test_var in $nlist" >&5
5613 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5616 echo "$progname: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 rm -rf conftest* conftst*
5621 # Do not use the global_symbol_pipe unless it works.
5622 if test yes = "$pipe_works"; then
5625 lt_cv_sys_global_symbol_pipe=
5631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5632 lt_cv_sys_global_symbol_to_cdecl=
5634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5636 $as_echo "failed" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5639 $as_echo "ok" >&6; }
5642 # Response file support.
5643 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5644 nm_file_list_spec='@'
5645 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5646 nm_file_list_spec='@'
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5686 $as_echo_n "checking for sysroot... " >&6; }
5688 # Check whether --with-sysroot was given.
5689 if test "${with_sysroot+set}" = set; then :
5690 withval=$with_sysroot;
5697 case $with_sysroot in #(
5699 if test yes = "$GCC"; then
5700 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5704 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5710 $as_echo "$with_sysroot" >&6; }
5711 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5716 $as_echo "${lt_sysroot:-no}" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5723 $as_echo_n "checking for a working dd... " >&6; }
5724 if ${ac_cv_path_lt_DD+:} false; then :
5725 $as_echo_n "(cached) " >&6
5727 printf 0123456789abcdef0123456789abcdef >conftest.i
5728 cat conftest.i conftest.i >conftest2.i
5730 if test -z "$lt_DD"; then
5731 ac_path_lt_DD_found=false
5732 # Loop through the user's path and test for each of PROGNAME-LIST
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_prog in dd; do
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5741 as_fn_executable_p "$ac_path_lt_DD" || continue
5742 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5743 cmp -s conftest.i conftest.out \
5744 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5746 $ac_path_lt_DD_found && break 3
5751 if test -z "$ac_cv_path_lt_DD"; then
5755 ac_cv_path_lt_DD=$lt_DD
5758 rm -f conftest.i conftest2.i conftest.out
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5761 $as_echo "$ac_cv_path_lt_DD" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5765 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5766 if ${lt_cv_truncate_bin+:} false; then :
5767 $as_echo_n "(cached) " >&6
5769 printf 0123456789abcdef0123456789abcdef >conftest.i
5770 cat conftest.i conftest.i >conftest2.i
5772 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5773 cmp -s conftest.i conftest.out \
5774 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5776 rm -f conftest.i conftest2.i conftest.out
5777 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5780 $as_echo "$lt_cv_truncate_bin" >&6; }
5788 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5791 for cc_temp in $*""; do
5793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5799 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5802 # Check whether --enable-libtool-lock was given.
5803 if test "${enable_libtool_lock+set}" = set; then :
5804 enableval=$enable_libtool_lock;
5807 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5809 # Some flags need to be propagated to the compiler or linker for good
5813 # Find out what ABI is being produced by ac_compile, and set mode
5814 # options accordingly.
5815 echo 'int i;' > conftest.$ac_ext
5816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5817 (eval $ac_compile) 2>&5
5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5820 test $ac_status = 0; }; then
5821 case `/usr/bin/file conftest.$ac_objext` in
5833 # Find out what ABI is being produced by ac_compile, and set linker
5834 # options accordingly.
5835 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5837 (eval $ac_compile) 2>&5
5839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5840 test $ac_status = 0; }; then
5841 if test yes = "$lt_cv_prog_gnu_ld"; then
5842 case `/usr/bin/file conftest.$ac_objext` in
5844 LD="${LD-ld} -melf32bsmip"
5847 LD="${LD-ld} -melf32bmipn32"
5850 LD="${LD-ld} -melf64bmip"
5854 case `/usr/bin/file conftest.$ac_objext` in
5871 # Find out what ABI is being produced by ac_compile, and set linker
5872 # options accordingly.
5873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5875 (eval $ac_compile) 2>&5
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; }; then
5880 case `/usr/bin/file conftest.$ac_objext` in
5888 case `/usr/bin/file conftest.$ac_objext` in
5890 emul="${emul}btsmip"
5893 emul="${emul}ltsmip"
5896 case `/usr/bin/file conftest.$ac_objext` in
5901 LD="${LD-ld} -m $emul"
5906 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5907 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5908 # Find out what ABI is being produced by ac_compile, and set linker
5909 # options accordingly. Note that the listed cases only cover the
5910 # situations where additional linker options are needed (such as when
5911 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5912 # vice versa); the common cases where no linker options are needed do
5913 # not appear in the list.
5914 echo 'int i;' > conftest.$ac_ext
5915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5916 (eval $ac_compile) 2>&5
5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5919 test $ac_status = 0; }; then
5920 case `/usr/bin/file conftest.o` in
5923 x86_64-*kfreebsd*-gnu)
5924 LD="${LD-ld} -m elf_i386_fbsd"
5927 case `/usr/bin/file conftest.o` in
5929 LD="${LD-ld} -m elf32_x86_64"
5932 LD="${LD-ld} -m elf_i386"
5936 powerpc64le-*linux*)
5937 LD="${LD-ld} -m elf32lppclinux"
5940 LD="${LD-ld} -m elf32ppclinux"
5943 LD="${LD-ld} -m elf_s390"
5946 LD="${LD-ld} -m elf32_sparc"
5952 x86_64-*kfreebsd*-gnu)
5953 LD="${LD-ld} -m elf_x86_64_fbsd"
5956 LD="${LD-ld} -m elf_x86_64"
5959 LD="${LD-ld} -m elf64lppc"
5962 LD="${LD-ld} -m elf64ppc"
5964 s390*-*linux*|s390*-*tpf*)
5965 LD="${LD-ld} -m elf64_s390"
5968 LD="${LD-ld} -m elf64_sparc"
5978 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5980 CFLAGS="$CFLAGS -belf"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5982 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5983 if ${lt_cv_cc_needs_belf+:} false; then :
5984 $as_echo_n "(cached) " >&6
5987 ac_cpp='$CPP $CPPFLAGS'
5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
6003 if ac_fn_c_try_link "$LINENO"; then :
6004 lt_cv_cc_needs_belf=yes
6006 lt_cv_cc_needs_belf=no
6008 rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6018 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6019 if test yes != "$lt_cv_cc_needs_belf"; then
6020 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6025 # Find out what ABI is being produced by ac_compile, and set linker
6026 # options accordingly.
6027 echo 'int i;' > conftest.$ac_ext
6028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6029 (eval $ac_compile) 2>&5
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }; then
6033 case `/usr/bin/file conftest.o` in
6035 case $lt_cv_prog_gnu_ld in
6038 i?86-*-solaris*|x86_64-*-solaris*)
6039 LD="${LD-ld} -m elf_x86_64"
6042 LD="${LD-ld} -m elf64_sparc"
6045 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6046 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6051 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6063 need_locks=$enable_libtool_lock
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}mt; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 if test -n "$MANIFEST_TOOL"; then
6074 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6094 if test -n "$MANIFEST_TOOL"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6096 $as_echo "$MANIFEST_TOOL" >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6104 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6105 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6106 # Extract the first word of "mt", so it can be a program name with args.
6107 set dummy mt; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6111 $as_echo_n "(cached) " >&6
6113 if test -n "$ac_ct_MANIFEST_TOOL"; then
6114 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6134 if test -n "$ac_ct_MANIFEST_TOOL"; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6136 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6142 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6145 case $cross_compiling:$ac_tool_warned in
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6149 ac_tool_warned=yes ;;
6151 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6154 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6157 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6159 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6160 if ${lt_cv_path_mainfest_tool+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 lt_cv_path_mainfest_tool=no
6164 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6165 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6166 cat conftest.err >&5
6167 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6168 lt_cv_path_mainfest_tool=yes
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6173 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6174 if test yes != "$lt_cv_path_mainfest_tool"; then
6184 rhapsody* | darwin*)
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$DSYMUTIL"; then
6194 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6214 if test -n "$DSYMUTIL"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6216 $as_echo "$DSYMUTIL" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6224 if test -z "$ac_cv_prog_DSYMUTIL"; then
6225 ac_ct_DSYMUTIL=$DSYMUTIL
6226 # Extract the first word of "dsymutil", so it can be a program name with args.
6227 set dummy dsymutil; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$ac_ct_DSYMUTIL"; then
6234 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6254 if test -n "$ac_ct_DSYMUTIL"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6256 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6262 if test "x$ac_ct_DSYMUTIL" = x; then
6265 case $cross_compiling:$ac_tool_warned in
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6271 DSYMUTIL=$ac_ct_DSYMUTIL
6274 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6279 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_NMEDIT+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$NMEDIT"; then
6286 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 NMEDIT=$ac_cv_prog_NMEDIT
6306 if test -n "$NMEDIT"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6308 $as_echo "$NMEDIT" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6316 if test -z "$ac_cv_prog_NMEDIT"; then
6317 ac_ct_NMEDIT=$NMEDIT
6318 # Extract the first word of "nmedit", so it can be a program name with args.
6319 set dummy nmedit; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6323 $as_echo_n "(cached) " >&6
6325 if test -n "$ac_ct_NMEDIT"; then
6326 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6346 if test -n "$ac_ct_NMEDIT"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6348 $as_echo "$ac_ct_NMEDIT" >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6354 if test "x$ac_ct_NMEDIT" = x; then
6357 case $cross_compiling:$ac_tool_warned in
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6363 NMEDIT=$ac_ct_NMEDIT
6366 NMEDIT="$ac_cv_prog_NMEDIT"
6369 if test -n "$ac_tool_prefix"; then
6370 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_LIPO+:} false; then :
6375 $as_echo_n "(cached) " >&6
6377 if test -n "$LIPO"; then
6378 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 LIPO=$ac_cv_prog_LIPO
6398 if test -n "$LIPO"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6400 $as_echo "$LIPO" >&6; }
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6408 if test -z "$ac_cv_prog_LIPO"; then
6410 # Extract the first word of "lipo", so it can be a program name with args.
6411 set dummy lipo; ac_word=$2
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413 $as_echo_n "checking for $ac_word... " >&6; }
6414 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6415 $as_echo_n "(cached) " >&6
6417 if test -n "$ac_ct_LIPO"; then
6418 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_ac_ct_LIPO="lipo"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6438 if test -n "$ac_ct_LIPO"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6440 $as_echo "$ac_ct_LIPO" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6446 if test "x$ac_ct_LIPO" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6458 LIPO="$ac_cv_prog_LIPO"
6461 if test -n "$ac_tool_prefix"; then
6462 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}otool; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_OTOOL+:} false; then :
6467 $as_echo_n "(cached) " >&6
6469 if test -n "$OTOOL"; then
6470 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 OTOOL=$ac_cv_prog_OTOOL
6490 if test -n "$OTOOL"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6492 $as_echo "$OTOOL" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6500 if test -z "$ac_cv_prog_OTOOL"; then
6502 # Extract the first word of "otool", so it can be a program name with args.
6503 set dummy otool; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$ac_ct_OTOOL"; then
6510 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_OTOOL="otool"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6530 if test -n "$ac_ct_OTOOL"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6532 $as_echo "$ac_ct_OTOOL" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6538 if test "x$ac_ct_OTOOL" = x; then
6541 case $cross_compiling:$ac_tool_warned in
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6550 OTOOL="$ac_cv_prog_OTOOL"
6553 if test -n "$ac_tool_prefix"; then
6554 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_OTOOL64+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -n "$OTOOL64"; then
6562 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 OTOOL64=$ac_cv_prog_OTOOL64
6582 if test -n "$OTOOL64"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6584 $as_echo "$OTOOL64" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6592 if test -z "$ac_cv_prog_OTOOL64"; then
6593 ac_ct_OTOOL64=$OTOOL64
6594 # Extract the first word of "otool64", so it can be a program name with args.
6595 set dummy otool64; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 if test -n "$ac_ct_OTOOL64"; then
6602 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_ac_ct_OTOOL64="otool64"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6622 if test -n "$ac_ct_OTOOL64"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6624 $as_echo "$ac_ct_OTOOL64" >&6; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6630 if test "x$ac_ct_OTOOL64" = x; then
6633 case $cross_compiling:$ac_tool_warned in
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6639 OTOOL64=$ac_ct_OTOOL64
6642 OTOOL64="$ac_cv_prog_OTOOL64"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6672 $as_echo_n "checking for -single_module linker flag... " >&6; }
6673 if ${lt_cv_apple_cc_single_mod+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 lt_cv_apple_cc_single_mod=no
6677 if test -z "$LT_MULTI_MODULE"; then
6678 # By default we will add the -single_module flag. You can override
6679 # by either setting the environment variable LT_MULTI_MODULE
6680 # non-empty at configure time, or by adding -multi_module to the
6682 rm -rf libconftest.dylib*
6683 echo "int foo(void){return 1;}" > conftest.c
6684 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6685 -dynamiclib -Wl,-single_module conftest.c" >&5
6686 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6687 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6689 # If there is a non-empty error log, and "single_module"
6690 # appears in it, assume the flag caused a linker warning
6691 if test -s conftest.err && $GREP single_module conftest.err; then
6692 cat conftest.err >&5
6693 # Otherwise, if the output was created with a 0 exit code from
6694 # the compiler, it worked.
6695 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6696 lt_cv_apple_cc_single_mod=yes
6698 cat conftest.err >&5
6700 rm -rf libconftest.dylib*
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6705 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6708 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6709 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 lt_cv_ld_exported_symbols_list=no
6713 save_LDFLAGS=$LDFLAGS
6714 echo "_main" > conftest.sym
6715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6727 if ac_fn_c_try_link "$LINENO"; then :
6728 lt_cv_ld_exported_symbols_list=yes
6730 lt_cv_ld_exported_symbols_list=no
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 LDFLAGS=$save_LDFLAGS
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6738 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6741 $as_echo_n "checking for -force_load linker flag... " >&6; }
6742 if ${lt_cv_ld_force_load+:} false; then :
6743 $as_echo_n "(cached) " >&6
6745 lt_cv_ld_force_load=no
6746 cat > conftest.c << _LT_EOF
6747 int forced_loaded() { return 2;}
6749 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6750 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6751 echo "$AR cr libconftest.a conftest.o" >&5
6752 $AR cr libconftest.a conftest.o 2>&5
6753 echo "$RANLIB libconftest.a" >&5
6754 $RANLIB libconftest.a 2>&5
6755 cat > conftest.c << _LT_EOF
6756 int main() { return 0;}
6758 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6759 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6761 if test -s conftest.err && $GREP force_load conftest.err; then
6762 cat conftest.err >&5
6763 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6764 lt_cv_ld_force_load=yes
6766 cat conftest.err >&5
6768 rm -f conftest.err libconftest.a conftest conftest.c
6769 rm -rf conftest.dSYM
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6773 $as_echo "$lt_cv_ld_force_load" >&6; }
6775 rhapsody* | darwin1.[012])
6776 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6778 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6779 darwin*) # darwin 5.x on
6780 # if running on 10.5 or later, the deployment target defaults
6781 # to the OS version, if on x86, and 10.4, the deployment
6782 # target defaults to 10.4. Don't you love it?
6783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6784 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
6785 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6787 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6789 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6793 if test yes = "$lt_cv_apple_cc_single_mod"; then
6794 _lt_dar_single_mod='$single_module'
6796 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6797 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6801 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6802 _lt_dsymutil='~$DSYMUTIL $lib || :'
6809 # func_munge_path_list VARIABLE PATH
6810 # -----------------------------------
6811 # VARIABLE is name of variable containing _space_ separated list of
6812 # directories to be munged by the contents of PATH, which is string
6815 # string "DIR[ DIR]" will be prepended to VARIABLE
6817 # string "DIR[ DIR]" will be appended to VARIABLE
6818 # "DIRP[:DIRP]::[DIRA:]DIRA"
6819 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6820 # "DIRA[ DIRA]" will be appended to VARIABLE
6822 # VARIABLE will be replaced by "DIR[ DIR]"
6823 func_munge_path_list ()
6829 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6832 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6835 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6836 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6839 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6851 # On Suns, sometimes $CPP names a directory.
6852 if test -n "$CPP" && test -d "$CPP"; then
6855 if test -z "$CPP"; then
6856 if ${ac_cv_prog_CPP+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 # Double quotes because CPP needs to be expanded
6860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6863 for ac_c_preproc_warn_flag in '' yes
6865 # Use a header file that comes with gcc, so configuring glibc
6866 # with a fresh cross-compiler works.
6867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868 # <limits.h> exists even on freestanding compilers.
6869 # On the NeXT, cc -E runs the code through the compiler's parser,
6870 # not just through cpp. "Syntax error" is here to catch this case.
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 # include <limits.h>
6876 # include <assert.h>
6880 if ac_fn_c_try_cpp "$LINENO"; then :
6883 # Broken: fails on valid input.
6886 rm -f conftest.err conftest.i conftest.$ac_ext
6888 # OK, works on sane cases. Now check whether nonexistent headers
6889 # can be detected and how.
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <ac_nonexistent.h>
6894 if ac_fn_c_try_cpp "$LINENO"; then :
6895 # Broken: success on invalid input.
6898 # Passes both tests.
6902 rm -f conftest.err conftest.i conftest.$ac_ext
6905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6906 rm -f conftest.i conftest.err conftest.$ac_ext
6907 if $ac_preproc_ok; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6920 $as_echo "$CPP" >&6; }
6922 for ac_c_preproc_warn_flag in '' yes
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 # include <limits.h>
6935 # include <assert.h>
6939 if ac_fn_c_try_cpp "$LINENO"; then :
6942 # Broken: fails on valid input.
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <ac_nonexistent.h>
6953 if ac_fn_c_try_cpp "$LINENO"; then :
6954 # Broken: success on invalid input.
6957 # Passes both tests.
6961 rm -f conftest.err conftest.i conftest.$ac_ext
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.i conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then :
6969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6971 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6972 See \`config.log' for more details" "$LINENO" 5; }
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6983 $as_echo_n "checking for ANSI C header files... " >&6; }
6984 if ${ac_cv_header_stdc+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
7002 if ac_fn_c_try_compile "$LINENO"; then :
7003 ac_cv_header_stdc=yes
7005 ac_cv_header_stdc=no
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 if test $ac_cv_header_stdc = yes; then
7010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "memchr" >/dev/null 2>&1; then :
7020 ac_cv_header_stdc=no
7026 if test $ac_cv_header_stdc = yes; then
7027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "free" >/dev/null 2>&1; then :
7037 ac_cv_header_stdc=no
7043 if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then :
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056 # define ISLOWER(c) \
7057 (('a' <= (c) && (c) <= 'i') \
7058 || ('j' <= (c) && (c) <= 'r') \
7059 || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068 for (i = 0; i < 256; i++)
7069 if (XOR (islower (i), ISLOWER (i))
7070 || toupper (i) != TOUPPER (i))
7075 if ac_fn_c_try_run "$LINENO"; then :
7078 ac_cv_header_stdc=no
7080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7081 conftest.$ac_objext conftest.beam conftest.$ac_ext
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7087 $as_echo "$ac_cv_header_stdc" >&6; }
7088 if test $ac_cv_header_stdc = yes; then
7090 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7096 inttypes.h stdint.h unistd.h
7098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7102 cat >>confdefs.h <<_ACEOF
7103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7111 for ac_header in dlfcn.h
7113 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7115 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DLFCN_H 1
7138 # Check whether --enable-shared was given.
7139 if test "${enable_shared+set}" = set; then :
7140 enableval=$enable_shared; p=${PACKAGE-default}
7142 yes) enable_shared=yes ;;
7143 no) enable_shared=no ;;
7146 # Look at the argument we got. We use all the common list separators.
7147 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7148 for pkg in $enableval; do
7150 if test "X$pkg" = "X$p"; then
7169 # Check whether --enable-static was given.
7170 if test "${enable_static+set}" = set; then :
7171 enableval=$enable_static; p=${PACKAGE-default}
7173 yes) enable_static=yes ;;
7174 no) enable_static=no ;;
7177 # Look at the argument we got. We use all the common list separators.
7178 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7179 for pkg in $enableval; do
7181 if test "X$pkg" = "X$p"; then
7201 # Check whether --with-pic was given.
7202 if test "${with_pic+set}" = set; then :
7203 withval=$with_pic; lt_p=${PACKAGE-default}
7205 yes|no) pic_mode=$withval ;;
7208 # Look at the argument we got. We use all the common list separators.
7209 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7210 for lt_pkg in $withval; do
7212 if test "X$lt_pkg" = "X$lt_p"; then
7230 # Check whether --enable-fast-install was given.
7231 if test "${enable_fast_install+set}" = set; then :
7232 enableval=$enable_fast_install; p=${PACKAGE-default}
7234 yes) enable_fast_install=yes ;;
7235 no) enable_fast_install=no ;;
7237 enable_fast_install=no
7238 # Look at the argument we got. We use all the common list separators.
7239 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7240 for pkg in $enableval; do
7242 if test "X$pkg" = "X$p"; then
7243 enable_fast_install=yes
7250 enable_fast_install=yes
7260 shared_archive_member_spec=
7261 case $host,$enable_shared in
7262 power*-*-aix[5-9]*,yes)
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7264 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7266 # Check whether --with-aix-soname was given.
7267 if test "${with_aix_soname+set}" = set; then :
7268 withval=$with_aix_soname; case $withval in
7272 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7275 lt_cv_with_aix_soname=$with_aix_soname
7277 if ${lt_cv_with_aix_soname+:} false; then :
7278 $as_echo_n "(cached) " >&6
7280 lt_cv_with_aix_soname=aix
7283 with_aix_soname=$lt_cv_with_aix_soname
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7287 $as_echo "$with_aix_soname" >&6; }
7288 if test aix != "$with_aix_soname"; then
7289 # For the AIX way of multilib, we name the shared archive member
7290 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7291 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7292 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7293 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7294 if test 64 = "${OBJECT_MODE-32}"; then
7295 shared_archive_member_spec=shr_64
7297 shared_archive_member_spec=shr
7315 # This can be used to rebuild libtool when needed
7316 LIBTOOL_DEPS=$ltmain
7318 # Always use our own libtool.
7319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7350 test -z "$LN_S" && LN_S="ln -s"
7365 if test -n "${ZSH_VERSION+set}"; then
7366 setopt NO_GLOB_SUBST
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7370 $as_echo_n "checking for objdir... " >&6; }
7371 if ${lt_cv_objdir+:} false; then :
7372 $as_echo_n "(cached) " >&6
7374 rm -f .libs 2>/dev/null
7375 mkdir .libs 2>/dev/null
7376 if test -d .libs; then
7379 # MS-DOS does not allow filenames that begin with a dot.
7382 rmdir .libs 2>/dev/null
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7385 $as_echo "$lt_cv_objdir" >&6; }
7386 objdir=$lt_cv_objdir
7392 cat >>confdefs.h <<_ACEOF
7393 #define LT_OBJDIR "$lt_cv_objdir/"
7401 # AIX sometimes has problems with the GCC collect2 program. For some
7402 # reason, if we set the COLLECT_NAMES environment variable, the problems
7403 # vanish in a puff of smoke.
7404 if test set != "${COLLECT_NAMES+set}"; then
7406 export COLLECT_NAMES
7413 can_build_shared=yes
7415 # All known linkers require a '.a' archive for static linking (except MSVC,
7416 # which needs '.lib').
7419 with_gnu_ld=$lt_cv_prog_gnu_ld
7424 # Set sane defaults for various variables
7425 test -z "$CC" && CC=cc
7426 test -z "$LTCC" && LTCC=$CC
7427 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7428 test -z "$LD" && LD=ld
7429 test -z "$ac_objext" && ac_objext=o
7431 func_cc_basename $compiler
7432 cc_basename=$func_cc_basename_result
7435 # Only perform the check for file, if the check method requires it
7436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7437 case $deplibs_check_method in
7439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7441 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7443 $as_echo_n "(cached) " >&6
7447 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7450 lt_save_MAGIC_CMD=$MAGIC_CMD
7451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7453 for ac_dir in $ac_dummy; do
7455 test -z "$ac_dir" && ac_dir=.
7456 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7457 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7458 if test -n "$file_magic_test_file"; then
7459 case $deplibs_check_method in
7461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7462 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7464 $EGREP "$file_magic_regex" > /dev/null; then
7469 *** Warning: the command libtool uses to detect shared libraries,
7470 *** $file_magic_cmd, produces output that libtool cannot recognize.
7471 *** The result is that libtool may fail to recognize shared libraries
7472 *** as such. This will affect the creation of libtool libraries that
7473 *** depend on shared libraries, but programs linked with such libtool
7474 *** libraries will work regardless of this problem. Nevertheless, you
7475 *** may want to report the problem to your system manager and/or to
7476 *** bug-libtool@gnu.org
7486 MAGIC_CMD=$lt_save_MAGIC_CMD
7491 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7492 if test -n "$MAGIC_CMD"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7494 $as_echo "$MAGIC_CMD" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7504 if test -z "$lt_cv_path_MAGIC_CMD"; then
7505 if test -n "$ac_tool_prefix"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7507 $as_echo_n "checking for file... " >&6; }
7508 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7509 $as_echo_n "(cached) " >&6
7513 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7516 lt_save_MAGIC_CMD=$MAGIC_CMD
7517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7519 for ac_dir in $ac_dummy; do
7521 test -z "$ac_dir" && ac_dir=.
7522 if test -f "$ac_dir/file"; then
7523 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7524 if test -n "$file_magic_test_file"; then
7525 case $deplibs_check_method in
7527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7528 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7530 $EGREP "$file_magic_regex" > /dev/null; then
7535 *** Warning: the command libtool uses to detect shared libraries,
7536 *** $file_magic_cmd, produces output that libtool cannot recognize.
7537 *** The result is that libtool may fail to recognize shared libraries
7538 *** as such. This will affect the creation of libtool libraries that
7539 *** depend on shared libraries, but programs linked with such libtool
7540 *** libraries will work regardless of this problem. Nevertheless, you
7541 *** may want to report the problem to your system manager and/or to
7542 *** bug-libtool@gnu.org
7552 MAGIC_CMD=$lt_save_MAGIC_CMD
7557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7558 if test -n "$MAGIC_CMD"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7560 $as_echo "$MAGIC_CMD" >&6; }
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7576 # Use C for the default configuration in the libtool script
7580 ac_cpp='$CPP $CPPFLAGS'
7581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586 # Source file extension for C test sources.
7589 # Object file extension for compiled C test sources.
7593 # Code to be used in simple compile tests
7594 lt_simple_compile_test_code="int some_variable = 0;"
7596 # Code to be used in simple link tests
7597 lt_simple_link_test_code='int main(){return(0);}'
7605 # If no C compiler was specified, use CC.
7608 # If no C compiler flags were specified, use CFLAGS.
7609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7611 # Allow CC to be a program name with arguments.
7614 # Save the default compiler, since it gets overwritten when the other
7615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7616 compiler_DEFAULT=$CC
7618 # save warnings/boilerplate of simple test code
7619 ac_outfile=conftest.$ac_objext
7620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7622 _lt_compiler_boilerplate=`cat conftest.err`
7625 ac_outfile=conftest.$ac_objext
7626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7628 _lt_linker_boilerplate=`cat conftest.err`
7633 ## There is no encapsulation within the following macros, do not change
7634 ## the running order or otherwise move them around unless you know exactly
7635 ## what you are doing...
7636 if test -n "$compiler"; then
7638 lt_prog_compiler_no_builtin_flag=
7640 if test yes = "$GCC"; then
7641 case $cc_basename in
7643 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7645 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7649 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7650 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7651 $as_echo_n "(cached) " >&6
7653 lt_cv_prog_compiler_rtti_exceptions=no
7654 ac_outfile=conftest.$ac_objext
7655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7656 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7657 # Insert the option either (1) after the last *FLAGS variable, or
7658 # (2) before a word containing "conftest.", or (3) at the end.
7659 # Note that $ac_compile itself does not contain backslashes and begins
7660 # with a dollar sign (not a hyphen), so the echo should work correctly.
7661 # The option is referenced via a variable to avoid confusing sed.
7662 lt_compile=`echo "$ac_compile" | $SED \
7663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7665 -e 's:$: $lt_compiler_flag:'`
7666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7667 (eval "$lt_compile" 2>conftest.err)
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 if (exit $ac_status) && test -s "$ac_outfile"; then
7672 # The compiler can only warn and ignore the option if not recognized
7673 # So say no if there are warnings other than the usual output.
7674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7677 lt_cv_prog_compiler_rtti_exceptions=yes
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7684 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7686 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7687 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7699 lt_prog_compiler_wl=
7700 lt_prog_compiler_pic=
7701 lt_prog_compiler_static=
7704 if test yes = "$GCC"; then
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_static='-static'
7710 # All AIX code is PIC.
7711 if test ia64 = "$host_cpu"; then
7712 # AIX 5 now supports IA64 processor
7713 lt_prog_compiler_static='-Bstatic'
7715 lt_prog_compiler_pic='-fPIC'
7721 # see comment about AmigaOS4 .so support
7722 lt_prog_compiler_pic='-fPIC'
7725 # FIXME: we need at least 68020 code to build shared libraries, but
7726 # adding the '-m68020' flag to GCC prevents building anything better,
7728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7734 # PIC is the default for these OSes.
7737 mingw* | cygwin* | pw32* | os2* | cegcc*)
7738 # This hack is so that the source file can tell whether it is being
7739 # built for inclusion in a dll (and should export symbols for example).
7740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7741 # (--disable-auto-import) libraries
7742 lt_prog_compiler_pic='-DDLL_EXPORT'
7745 lt_prog_compiler_static='$wl-static'
7750 darwin* | rhapsody*)
7751 # PIC is the default on this platform
7752 # Common symbols not allowed in MH_DYLIB files
7753 lt_prog_compiler_pic='-fno-common'
7757 # PIC is the default for Haiku.
7758 # The "-static" flag exists, but is broken.
7759 lt_prog_compiler_static=
7763 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7764 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7765 # sets the default TLS model and affects inlining.
7771 lt_prog_compiler_pic='-fPIC'
7777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7778 # Instead, we relocate shared libraries at runtime.
7782 # Just because we use GCC doesn't mean we suddenly get shared libraries
7783 # on systems that don't support them.
7784 lt_prog_compiler_can_build_shared=no
7789 # QNX uses GNU C++, but need to define -shared option too, otherwise
7791 lt_prog_compiler_pic='-fPIC -shared'
7795 if test -d /usr/nec; then
7796 lt_prog_compiler_pic=-Kconform_pic
7801 lt_prog_compiler_pic='-fPIC'
7805 case $cc_basename in
7806 nvcc*) # Cuda Compiler Driver 2.2
7807 lt_prog_compiler_wl='-Xlinker '
7808 if test -n "$lt_prog_compiler_pic"; then
7809 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7814 # PORTME Check for flag to pass linker flags through the system compiler.
7817 lt_prog_compiler_wl='-Wl,'
7818 if test ia64 = "$host_cpu"; then
7819 # AIX 5 now supports IA64 processor
7820 lt_prog_compiler_static='-Bstatic'
7822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7826 darwin* | rhapsody*)
7827 # PIC is the default on this platform
7828 # Common symbols not allowed in MH_DYLIB files
7829 lt_prog_compiler_pic='-fno-common'
7830 case $cc_basename in
7832 # NAG Fortran compiler
7833 lt_prog_compiler_wl='-Wl,-Wl,,'
7834 lt_prog_compiler_pic='-PIC'
7835 lt_prog_compiler_static='-Bstatic'
7840 mingw* | cygwin* | pw32* | os2* | cegcc*)
7841 # This hack is so that the source file can tell whether it is being
7842 # built for inclusion in a dll (and should export symbols for example).
7843 lt_prog_compiler_pic='-DDLL_EXPORT'
7846 lt_prog_compiler_static='$wl-static'
7851 hpux9* | hpux10* | hpux11*)
7852 lt_prog_compiler_wl='-Wl,'
7853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7860 lt_prog_compiler_pic='+Z'
7863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7864 lt_prog_compiler_static='$wl-a ${wl}archive'
7867 irix5* | irix6* | nonstopux*)
7868 lt_prog_compiler_wl='-Wl,'
7869 # PIC (with -KPIC) is the default.
7870 lt_prog_compiler_static='-non_shared'
7873 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7874 case $cc_basename in
7875 # old Intel for x86_64, which still supported -KPIC.
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-static'
7881 # flang / f18. f95 an alias for gfortran or flang on Debian
7882 flang* | f18* | f95*)
7883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_pic='-fPIC'
7885 lt_prog_compiler_static='-static'
7887 # icc used to be incompatible with GCC.
7888 # ICC 10 doesn't accept -KPIC any more.
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_pic='-fPIC'
7892 lt_prog_compiler_static='-static'
7894 # Lahey Fortran 8.1.
7896 lt_prog_compiler_wl='-Wl,'
7897 lt_prog_compiler_pic='--shared'
7898 lt_prog_compiler_static='--static'
7901 # NAG Fortran compiler
7902 lt_prog_compiler_wl='-Wl,-Wl,,'
7903 lt_prog_compiler_pic='-PIC'
7904 lt_prog_compiler_static='-Bstatic'
7907 # Fabrice Bellard et al's Tiny C Compiler
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='-fPIC'
7910 lt_prog_compiler_static='-static'
7912 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7913 # Portland Group compilers (*not* the Pentium gcc compiler,
7914 # which looks to be a dead project)
7915 lt_prog_compiler_wl='-Wl,'
7916 lt_prog_compiler_pic='-fpic'
7917 lt_prog_compiler_static='-Bstatic'
7920 lt_prog_compiler_wl='-Wl,'
7921 # All Alpha code is PIC.
7922 lt_prog_compiler_static='-non_shared'
7924 xl* | bgxl* | bgf* | mpixl*)
7925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-qpic'
7928 lt_prog_compiler_static='-qstaticlink'
7931 case `$CC -V 2>&1 | sed 5q` in
7932 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7933 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7934 lt_prog_compiler_pic='-KPIC'
7935 lt_prog_compiler_static='-Bstatic'
7936 lt_prog_compiler_wl=''
7938 *Sun\ F* | *Sun*Fortran*)
7939 lt_prog_compiler_pic='-KPIC'
7940 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_wl='-Qoption ld '
7945 lt_prog_compiler_pic='-KPIC'
7946 lt_prog_compiler_static='-Bstatic'
7947 lt_prog_compiler_wl='-Wl,'
7949 *Intel*\ [CF]*Compiler*)
7950 lt_prog_compiler_wl='-Wl,'
7951 lt_prog_compiler_pic='-fPIC'
7952 lt_prog_compiler_static='-static'
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-fpic'
7957 lt_prog_compiler_static='-Bstatic'
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7972 lt_prog_compiler_pic='-fPIC -shared'
7975 osf3* | osf4* | osf5*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All OSF/1 code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7982 lt_prog_compiler_static='-non_shared'
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 case $cc_basename in
7989 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7990 lt_prog_compiler_wl='-Qoption ld ';;
7992 lt_prog_compiler_wl='-Wl,';;
7997 lt_prog_compiler_wl='-Qoption ld '
7998 lt_prog_compiler_pic='-PIC'
7999 lt_prog_compiler_static='-Bstatic'
8002 sysv4 | sysv4.2uw2* | sysv4.3*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-Bstatic'
8009 if test -d /usr/nec; then
8010 lt_prog_compiler_pic='-Kconform_pic'
8011 lt_prog_compiler_static='-Bstatic'
8015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_can_build_shared=no
8027 lt_prog_compiler_pic='-pic'
8028 lt_prog_compiler_static='-Bstatic'
8032 lt_prog_compiler_can_build_shared=no
8038 # For platforms that do not support PIC, -DPIC is meaningless:
8040 lt_prog_compiler_pic=
8043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8048 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8049 if ${lt_cv_prog_compiler_pic+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8055 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8056 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8059 # Check to make sure the PIC flag actually works.
8061 if test -n "$lt_prog_compiler_pic"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8064 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8065 $as_echo_n "(cached) " >&6
8067 lt_cv_prog_compiler_pic_works=no
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>conftest.err)
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_pic_works=yes
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8100 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8101 case $lt_prog_compiler_pic in
8103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8106 lt_prog_compiler_pic=
8107 lt_prog_compiler_can_build_shared=no
8123 # Check to make sure the static flag actually works.
8125 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8127 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8128 if ${lt_cv_prog_compiler_static_works+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 lt_cv_prog_compiler_static_works=no
8132 save_LDFLAGS=$LDFLAGS
8133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8136 # The linker can only warn and ignore the option if not recognized
8137 # So say no if there are warnings
8138 if test -s conftest.err; then
8139 # Append any errors to the config.log.
8140 cat conftest.err 1>&5
8141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143 if diff conftest.exp conftest.er2 >/dev/null; then
8144 lt_cv_prog_compiler_static_works=yes
8147 lt_cv_prog_compiler_static_works=yes
8151 LDFLAGS=$save_LDFLAGS
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8155 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8157 if test yes = "$lt_cv_prog_compiler_static_works"; then
8160 lt_prog_compiler_static=
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8171 if ${lt_cv_prog_compiler_c_o+:} false; then :
8172 $as_echo_n "(cached) " >&6
8174 lt_cv_prog_compiler_c_o=no
8175 $RM -r conftest 2>/dev/null
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8181 lt_compiler_flag="-o out/conftest2.$ac_objext"
8182 # Insert the option either (1) after the last *FLAGS variable, or
8183 # (2) before a word containing "conftest.", or (3) at the end.
8184 # Note that $ac_compile itself does not contain backslashes and begins
8185 # with a dollar sign (not a hyphen), so the echo should work correctly.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>out/conftest.err)
8193 cat out/conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8197 # The compiler can only warn and ignore the option if not recognized
8198 # So say no if there are warnings
8199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8202 lt_cv_prog_compiler_c_o=yes
8207 # SGI C++ compiler will create directory out/ii_files/ for
8208 # template instantiation
8209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8210 $RM out/* && rmdir out
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8217 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8226 if ${lt_cv_prog_compiler_c_o+:} false; then :
8227 $as_echo_n "(cached) " >&6
8229 lt_cv_prog_compiler_c_o=no
8230 $RM -r conftest 2>/dev/null
8234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236 lt_compiler_flag="-o out/conftest2.$ac_objext"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 lt_compile=`echo "$ac_compile" | $SED \
8242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244 -e 's:$: $lt_compiler_flag:'`
8245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246 (eval "$lt_compile" 2>out/conftest.err)
8248 cat out/conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings
8254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_c_o=yes
8262 # SGI C++ compiler will create directory out/ii_files/ for
8263 # template instantiation
8264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265 $RM out/* && rmdir out
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8277 hard_links=nottested
8278 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8279 # do not overwrite the value of need_locks provided by the user
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8281 $as_echo_n "checking if we can lock with hard links... " >&6; }
8284 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8286 ln conftest.a conftest.b 2>&5 || hard_links=no
8287 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8289 $as_echo "$hard_links" >&6; }
8290 if test no = "$hard_links"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8292 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8305 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8308 allow_undefined_flag=
8309 always_export_symbols=no
8311 archive_expsym_cmds=
8312 compiler_needs_object=no
8313 enable_shared_with_static_runtimes=no
8314 export_dynamic_flag_spec=
8315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8316 hardcode_automatic=no
8318 hardcode_direct_absolute=no
8319 hardcode_libdir_flag_spec=
8320 hardcode_libdir_separator=
8322 hardcode_shlibpath_var=unsupported
8324 link_all_deplibs=unknown
8327 old_archive_from_new_cmds=
8328 old_archive_from_expsyms_cmds=
8329 thread_safe_flag_spec=
8330 whole_archive_flag_spec=
8331 # include_expsyms should be a list of space-separated symbols to be *always*
8332 # included in the symbol list
8334 # exclude_expsyms can be an extended regexp of symbols to exclude
8335 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8336 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8337 # as well as any symbol that contains 'd'.
8338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8340 # platforms (ab)use it in PIC code, but their linkers get confused if
8341 # the symbol is explicitly referenced. Since portable code cannot
8342 # rely on this symbol name, it's probably fine to never include it in
8343 # preloaded symbol tables.
8344 # Exclude shared library initialization/finalization symbols.
8345 extract_expsyms_cmds=
8348 cygwin* | mingw* | pw32* | cegcc*)
8349 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8350 # When not using gcc, we currently assume that we are using
8351 # Microsoft Visual C++.
8352 if test yes != "$GCC"; then
8357 # we just hope/assume this is gcc and not c89 (= MSVC++)
8363 linux* | k*bsd*-gnu | gnu*)
8370 # On some targets, GNU ld is compatible enough with the native linker
8371 # that we're better off using the native interface for both.
8372 lt_use_gnu_ld_interface=no
8373 if test yes = "$with_gnu_ld"; then
8376 # The AIX port of GNU ld has always aspired to compatibility
8377 # with the native linker. However, as the warning in the GNU ld
8378 # block says, versions before 2.19.5* couldn't really create working
8379 # shared libraries, regardless of the interface used.
8380 case `$LD -v 2>&1` in
8381 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8382 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8383 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8385 lt_use_gnu_ld_interface=yes
8390 lt_use_gnu_ld_interface=yes
8395 if test yes = "$lt_use_gnu_ld_interface"; then
8396 # If archive_cmds runs LD, not CC, wlarc should be empty
8399 # Set some defaults for GNU ld with shared library support. These
8400 # are reset later if shared libraries are not supported. Putting them
8401 # here allows them to be overridden if necessary.
8402 runpath_var=LD_RUN_PATH
8403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8404 export_dynamic_flag_spec='$wl--export-dynamic'
8405 # ancient GNU ld didn't support --whole-archive et. al.
8406 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8407 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8409 whole_archive_flag_spec=
8411 supports_anon_versioning=no
8412 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8413 *GNU\ gold*) supports_anon_versioning=yes ;;
8414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8417 *\ 2.11.*) ;; # other 2.11 versions
8418 *) supports_anon_versioning=yes ;;
8421 # See if GNU ld supports shared libraries.
8424 # On AIX/PPC, the GNU linker is very broken
8425 if test ia64 != "$host_cpu"; then
8429 *** Warning: the GNU linker, at least up to release 2.19, is reported
8430 *** to be unable to reliably create shared libraries on AIX.
8431 *** Therefore, libtool is disabling shared libraries support. If you
8432 *** really care for shared libraries, you may want to install binutils
8433 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8434 *** You will then need to restart the configuration process.
8443 # see comment about AmigaOS4 .so support
8444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8445 archive_expsym_cmds=''
8448 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)'
8449 hardcode_libdir_flag_spec='-L$libdir'
8450 hardcode_minus_L=yes
8456 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8457 allow_undefined_flag=unsupported
8458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8459 # support --undefined. This deserves some investigation. FIXME
8460 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8466 cygwin* | mingw* | pw32* | cegcc*)
8467 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8468 # as there is no search path for DLLs.
8469 hardcode_libdir_flag_spec='-L$libdir'
8470 export_dynamic_flag_spec='$wl--export-all-symbols'
8471 allow_undefined_flag=unsupported
8472 always_export_symbols=no
8473 enable_shared_with_static_runtimes=yes
8474 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'
8475 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8479 # If the export-symbols file already is a .def file, use it as
8480 # is; otherwise, prepend EXPORTS...
8481 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8482 cp $export_symbols $output_objdir/$soname.def;
8484 echo EXPORTS > $output_objdir/$soname.def;
8485 cat $export_symbols >> $output_objdir/$soname.def;
8487 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8495 link_all_deplibs=yes
8499 hardcode_libdir_flag_spec='-L$libdir'
8500 hardcode_minus_L=yes
8501 allow_undefined_flag=unsupported
8503 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8506 $ECHO EXPORTS >> $output_objdir/$libname.def~
8507 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8509 emximp -o $lib $output_objdir/$libname.def'
8510 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8511 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8512 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8513 $ECHO EXPORTS >> $output_objdir/$libname.def~
8515 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8516 prefix_cmds="$prefix_cmds -e 1d";
8518 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8519 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8520 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8521 emximp -o $lib $output_objdir/$libname.def'
8522 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8523 enable_shared_with_static_runtimes=yes
8528 hardcode_shlibpath_var=no
8529 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8530 export_dynamic_flag_spec='$wl-E'
8531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8532 # Instead, shared libraries are loaded at an image base (0x10000000 by
8533 # default) and relocated if they conflict, which is a slow very memory
8534 # consuming and fragmenting process. To avoid this, we pick a random,
8535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8536 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8538 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'
8541 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8543 if test linux-dietlibc = "$host_os"; then
8544 case $cc_basename in
8545 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8548 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8549 && test no = "$tmp_diet"
8551 tmp_addflag=' $pic_flag'
8552 tmp_sharedflag='-shared'
8553 case $cc_basename,$host_cpu in
8554 pgcc*) # Portland Group C compiler
8555 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'
8556 tmp_addflag=' $pic_flag'
8558 pgf77* | pgf90* | pgf95* | pgfortran*)
8559 # Portland Group f77 and f90 compilers
8560 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'
8561 tmp_addflag=' $pic_flag -Mnomain' ;;
8562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8563 tmp_addflag=' -i_dynamic' ;;
8564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8565 tmp_addflag=' -i_dynamic -nofor_main' ;;
8566 ifc* | ifort*) # Intel Fortran compiler
8567 tmp_addflag=' -nofor_main' ;;
8568 lf95*) # Lahey Fortran 8.1
8569 whole_archive_flag_spec=
8570 tmp_sharedflag='--shared' ;;
8571 nagfor*) # NAGFOR 5.3
8572 tmp_sharedflag='-Wl,-shared' ;;
8573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8574 tmp_sharedflag='-qmkshrobj'
8576 nvcc*) # Cuda Compiler Driver 2.2
8577 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'
8578 compiler_needs_object=yes
8581 case `$CC -V 2>&1 | sed 5q` in
8582 *Sun\ C*) # Sun C 5.9
8583 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'
8584 compiler_needs_object=yes
8585 tmp_sharedflag='-G' ;;
8586 *Sun\ F*) # Sun Fortran 8.3
8587 tmp_sharedflag='-G' ;;
8589 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8591 if test yes = "$supports_anon_versioning"; then
8592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8594 echo "local: *; };" >> $output_objdir/$libname.ver~
8595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8598 case $cc_basename in
8600 export_dynamic_flag_spec='-rdynamic'
8602 xlf* | bgf* | bgxlf* | mpixlf*)
8603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8605 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8606 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8607 if test yes = "$supports_anon_versioning"; then
8608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8610 echo "local: *; };" >> $output_objdir/$libname.ver~
8611 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8620 netbsd* | netbsdelf*-gnu)
8621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8622 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8631 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8636 *** create shared libraries on Solaris systems. Therefore, libtool
8637 *** is disabling shared libraries support. We urge you to upgrade GNU
8638 *** binutils to release 2.9.1 or newer. Another option is to modify
8639 *** your PATH or compiler configuration so that the native linker is
8640 *** used, and then restart.
8643 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8645 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8652 case `$LD -v 2>&1` in
8653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8658 *** reliably create shared libraries on SCO systems. Therefore, libtool
8659 *** is disabling shared libraries support. We urge you to upgrade GNU
8660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8661 *** your PATH or compiler configuration so that the native linker is
8662 *** used, and then restart.
8667 # For security reasons, it is highly recommended that you always
8668 # use absolute paths for naming shared libraries, and exclude the
8669 # DT_RUNPATH tag from executables and libraries. But doing so
8670 # requires that you compile everything twice, which is a pain.
8671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8683 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686 hardcode_shlibpath_var=no
8690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8699 if test no = "$ld_shlibs"; then
8701 hardcode_libdir_flag_spec=
8702 export_dynamic_flag_spec=
8703 whole_archive_flag_spec=
8706 # PORTME fill in a description of your system's linker (not GNU ld)
8709 allow_undefined_flag=unsupported
8710 always_export_symbols=yes
8711 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'
8712 # Note: this linker hardcodes the directories in LIBPATH if there
8713 # are no directories specified by -L.
8714 hardcode_minus_L=yes
8715 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8716 # Neither direct hardcoding nor static linking is supported with a
8718 hardcode_direct=unsupported
8723 if test ia64 = "$host_cpu"; then
8724 # On IA64, the linker does run time linking by default, so we don't
8725 # have to do anything special.
8726 aix_use_runtimelinking=no
8727 exp_sym_flag='-Bexport'
8730 # If we're using GNU nm, then we don't want the "-C" option.
8731 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8732 # Without the "-l" option, or with the "-B" option, AIX nm treats
8733 # weak defined symbols like other global defined symbols, whereas
8734 # GNU nm marks them as "W".
8735 # While the 'weak' keyword is ignored in the Export File, we need
8736 # it in the Import File for the 'aix-soname' feature, so we have
8737 # to replace the "-B" option with "-P" for AIX nm.
8738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8739 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'
8741 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'
8743 aix_use_runtimelinking=no
8745 # Test if we are trying to use run time linking or normal
8746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8747 # have runtime linking enabled, and use it for executables.
8748 # For shared libraries, we enable/disable runtime linking
8749 # depending on the kind of the shared library created -
8750 # when "with_aix_soname,aix_use_runtimelinking" is:
8751 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8752 # "aix,yes" lib.so shared, rtl:yes, for executables
8753 # lib.a static archive
8754 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8755 # lib.a(lib.so.V) shared, rtl:no, for executables
8756 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8757 # lib.a(lib.so.V) shared, rtl:no
8758 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8759 # lib.a static archive
8760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8761 for ld_flag in $LDFLAGS; do
8762 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8763 aix_use_runtimelinking=yes
8767 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8768 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8769 # so we don't have lib.a shared libs to link our executables.
8770 # We have to force runtime linking in this case.
8771 aix_use_runtimelinking=yes
8772 LDFLAGS="$LDFLAGS -Wl,-brtl"
8777 exp_sym_flag='-bexport'
8778 no_entry_flag='-bnoentry'
8781 # When large executables or shared objects are built, AIX ld can
8782 # have problems creating the table of contents. If linking a library
8783 # or program results in "error TOC overflow" add -mminimal-toc to
8784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8789 hardcode_direct_absolute=yes
8790 hardcode_libdir_separator=':'
8791 link_all_deplibs=yes
8792 file_list_spec='$wl-f,'
8793 case $with_aix_soname,$aix_use_runtimelinking in
8794 aix,*) ;; # traditional, no import file
8795 svr4,* | *,yes) # use import file
8796 # The Import File defines what to hardcode.
8798 hardcode_direct_absolute=no
8802 if test yes = "$GCC"; then
8803 case $host_os in aix4.[012]|aix4.[012].*)
8804 # We only want to do this on AIX 4.2 and lower, the check
8805 # below for broken collect2 doesn't work under 4.3+
8806 collect2name=`$CC -print-prog-name=collect2`
8807 if test -f "$collect2name" &&
8808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810 # We have reworked collect2
8813 # We have old collect2
8814 hardcode_direct=unsupported
8815 # It fails to find uninstalled libraries when the uninstalled
8816 # path is not listed in the libpath. Setting hardcode_minus_L
8817 # to unsupported forces relinking
8818 hardcode_minus_L=yes
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_libdir_separator=
8824 shared_flag='-shared'
8825 if test yes = "$aix_use_runtimelinking"; then
8826 shared_flag="$shared_flag "'$wl-G'
8828 # Need to ensure runtime linking is disabled for the traditional
8829 # shared library, or the linker may eventually find shared libraries
8830 # /with/ Import File - we do not want to mix them.
8831 shared_flag_aix='-shared'
8832 shared_flag_svr4='-shared $wl-G'
8835 if test ia64 = "$host_cpu"; then
8836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8837 # chokes on -Wl,-G. The following line is correct:
8840 if test yes = "$aix_use_runtimelinking"; then
8843 shared_flag='$wl-bM:SRE'
8845 shared_flag_aix='$wl-bM:SRE'
8846 shared_flag_svr4='$wl-G'
8850 export_dynamic_flag_spec='$wl-bexpall'
8851 # It seems that -bexpall does not export symbols beginning with
8852 # underscore (_), so it is better to generate a list of symbols to export.
8853 always_export_symbols=yes
8854 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8855 # Warning - without using the other runtime loading flags (-brtl),
8856 # -berok will link without error, but may produce a broken library.
8857 allow_undefined_flag='-berok'
8858 # Determine the default libpath from the value encoded in an
8860 if test set = "${lt_cv_aix_libpath+set}"; then
8861 aix_libpath=$lt_cv_aix_libpath
8863 if ${lt_cv_aix_libpath_+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_c_try_link "$LINENO"; then :
8879 lt_aix_libpath_sed='
8880 /Import File Strings/,/^$/ {
8882 s/^0 *\([^ ]*\) *$/\1/
8886 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 # Check for a 64-bit object if we didn't find anything.
8888 if test -z "$lt_cv_aix_libpath_"; then
8889 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 if test -z "$lt_cv_aix_libpath_"; then
8895 lt_cv_aix_libpath_=/usr/lib:/lib
8900 aix_libpath=$lt_cv_aix_libpath_
8903 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8904 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
8906 if test ia64 = "$host_cpu"; then
8907 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8908 allow_undefined_flag="-z nodefs"
8909 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"
8911 # Determine the default libpath from the value encoded in an
8913 if test set = "${lt_cv_aix_libpath+set}"; then
8914 aix_libpath=$lt_cv_aix_libpath
8916 if ${lt_cv_aix_libpath_+:} false; then :
8917 $as_echo_n "(cached) " >&6
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8930 if ac_fn_c_try_link "$LINENO"; then :
8932 lt_aix_libpath_sed='
8933 /Import File Strings/,/^$/ {
8935 s/^0 *\([^ ]*\) *$/\1/
8939 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8940 # Check for a 64-bit object if we didn't find anything.
8941 if test -z "$lt_cv_aix_libpath_"; then
8942 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 if test -z "$lt_cv_aix_libpath_"; then
8948 lt_cv_aix_libpath_=/usr/lib:/lib
8953 aix_libpath=$lt_cv_aix_libpath_
8956 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8957 # Warning - without using the other run time loading flags,
8958 # -berok will link without error, but may produce a broken library.
8959 no_undefined_flag=' $wl-bernotok'
8960 allow_undefined_flag=' $wl-berok'
8961 if test yes = "$with_gnu_ld"; then
8962 # We only use this code for GNU lds that support --whole-archive.
8963 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8965 # Exported symbols can be pulled into shared objects from archives
8966 whole_archive_flag_spec='$convenience'
8968 archive_cmds_need_lc=yes
8969 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8970 # -brtl affects multiple linker settings, -berok does not and is overridden later
8971 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8972 if test svr4 != "$with_aix_soname"; then
8973 # This is similar to how AIX traditionally builds its shared libraries.
8974 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'
8976 if test aix != "$with_aix_soname"; then
8977 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'
8979 # used by -dlpreopen to get the symbols
8980 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8982 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8990 # see comment about AmigaOS4 .so support
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8992 archive_expsym_cmds=''
8995 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)'
8996 hardcode_libdir_flag_spec='-L$libdir'
8997 hardcode_minus_L=yes
9003 export_dynamic_flag_spec=-rdynamic
9006 cygwin* | mingw* | pw32* | cegcc*)
9007 # When not using gcc, we currently assume that we are using
9008 # Microsoft Visual C++.
9009 # hardcode_libdir_flag_spec is actually meaningless, as there is
9010 # no search path for DLLs.
9011 case $cc_basename in
9014 hardcode_libdir_flag_spec=' '
9015 allow_undefined_flag=unsupported
9016 always_export_symbols=yes
9018 # Tell ltmain to make .lib files, not .a files.
9020 # Tell ltmain to make .dll files, not .so files.
9022 # FIXME: Setting linknames here is a bad hack.
9023 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9024 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9025 cp "$export_symbols" "$output_objdir/$soname.def";
9026 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9028 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9030 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9032 # The linker will not automatically build a static lib if we build a DLL.
9033 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9034 enable_shared_with_static_runtimes=yes
9035 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9038 old_postinstall_cmds='chmod 644 $oldlib'
9039 postlink_cmds='lt_outputfile="@OUTPUT@"~
9040 lt_tool_outputfile="@TOOL_OUTPUT@"~
9041 case $lt_outputfile in
9044 lt_outputfile=$lt_outputfile.exe
9045 lt_tool_outputfile=$lt_tool_outputfile.exe
9048 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9049 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9050 $RM "$lt_outputfile.manifest";
9054 # Assume MSVC wrapper
9055 hardcode_libdir_flag_spec=' '
9056 allow_undefined_flag=unsupported
9057 # Tell ltmain to make .lib files, not .a files.
9059 # Tell ltmain to make .dll files, not .so files.
9061 # FIXME: Setting linknames here is a bad hack.
9062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9063 # The linker will automatically build a .lib file if we build a DLL.
9064 old_archive_from_new_cmds='true'
9065 # FIXME: Should let the user specify the lib program.
9066 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9067 enable_shared_with_static_runtimes=yes
9072 darwin* | rhapsody*)
9075 archive_cmds_need_lc=no
9077 hardcode_automatic=yes
9078 hardcode_shlibpath_var=unsupported
9079 if test yes = "$lt_cv_ld_force_load"; then
9080 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\"`'
9083 whole_archive_flag_spec=''
9085 link_all_deplibs=yes
9086 allow_undefined_flag=$_lt_dar_allow_undefined
9087 case $cc_basename in
9088 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9089 *) _lt_dar_can_shared=$GCC ;;
9091 if test yes = "$_lt_dar_can_shared"; then
9092 output_verbose_link_cmd=func_echo_all
9093 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9094 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9095 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"
9096 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"
9105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 hardcode_shlibpath_var=no
9110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9111 # support. Future versions do this automatically, but an explicit c++rt0.o
9112 # does not break anything, and helps significantly (at the cost of a little
9115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9116 hardcode_libdir_flag_spec='-R$libdir'
9118 hardcode_shlibpath_var=no
9121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_minus_L=yes
9126 hardcode_shlibpath_var=no
9129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9130 freebsd* | dragonfly*)
9131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9132 hardcode_libdir_flag_spec='-R$libdir'
9134 hardcode_shlibpath_var=no
9138 if test yes = "$GCC"; then
9139 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'
9141 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'
9143 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9144 hardcode_libdir_separator=:
9147 # hardcode_minus_L: Not really in the search PATH,
9148 # but as the default location of the library.
9149 hardcode_minus_L=yes
9150 export_dynamic_flag_spec='$wl-E'
9154 if test yes,no = "$GCC,$with_gnu_ld"; then
9155 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159 if test no = "$with_gnu_ld"; then
9160 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9161 hardcode_libdir_separator=:
9163 hardcode_direct_absolute=yes
9164 export_dynamic_flag_spec='$wl-E'
9165 # hardcode_minus_L: Not really in the search PATH,
9166 # but as the default location of the library.
9167 hardcode_minus_L=yes
9172 if test yes,no = "$GCC,$with_gnu_ld"; then
9175 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194 # Older versions of the 11.00 compiler do not understand -b yet
9195 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9197 $as_echo_n "checking if $CC understands -b... " >&6; }
9198 if ${lt_cv_prog_compiler__b+:} false; then :
9199 $as_echo_n "(cached) " >&6
9201 lt_cv_prog_compiler__b=no
9202 save_LDFLAGS=$LDFLAGS
9203 LDFLAGS="$LDFLAGS -b"
9204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9206 # The linker can only warn and ignore the option if not recognized
9207 # So say no if there are warnings
9208 if test -s conftest.err; then
9209 # Append any errors to the config.log.
9210 cat conftest.err 1>&5
9211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9213 if diff conftest.exp conftest.er2 >/dev/null; then
9214 lt_cv_prog_compiler__b=yes
9217 lt_cv_prog_compiler__b=yes
9221 LDFLAGS=$save_LDFLAGS
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9225 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9227 if test yes = "$lt_cv_prog_compiler__b"; then
9228 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9236 if test no = "$with_gnu_ld"; then
9237 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9238 hardcode_libdir_separator=:
9243 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 export_dynamic_flag_spec='$wl-E'
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9258 irix5* | irix6* | nonstopux*)
9259 if test yes = "$GCC"; then
9260 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'
9261 # Try to use the -exported_symbol ld option, if it does not
9262 # work, assume that -exports_file does not work either and
9263 # implicitly export all symbols.
9264 # This should be the same for all languages, so no per-tag cache variable.
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9266 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9267 if ${lt_cv_irix_exported_symbol+:} false; then :
9268 $as_echo_n "(cached) " >&6
9270 save_LDFLAGS=$LDFLAGS
9271 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 int foo (void) { return 0; }
9276 if ac_fn_c_try_link "$LINENO"; then :
9277 lt_cv_irix_exported_symbol=yes
9279 lt_cv_irix_exported_symbol=no
9281 rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 LDFLAGS=$save_LDFLAGS
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9286 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9287 if test yes = "$lt_cv_irix_exported_symbol"; then
9288 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'
9292 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'
9293 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'
9295 archive_cmds_need_lc='no'
9296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9297 hardcode_libdir_separator=:
9299 link_all_deplibs=yes
9303 case $cc_basename in
9305 # Fabrice Bellard et al's Tiny C Compiler
9307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312 netbsd* | netbsdelf*-gnu)
9313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9318 hardcode_libdir_flag_spec='-R$libdir'
9320 hardcode_shlibpath_var=no
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9327 hardcode_libdir_separator=:
9328 hardcode_shlibpath_var=no
9335 if test -f /usr/libexec/ld.so; then
9337 hardcode_shlibpath_var=no
9338 hardcode_direct_absolute=yes
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9342 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9343 export_dynamic_flag_spec='$wl-E'
9345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_minus_L=yes
9356 allow_undefined_flag=unsupported
9358 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9361 $ECHO EXPORTS >> $output_objdir/$libname.def~
9362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9364 emximp -o $lib $output_objdir/$libname.def'
9365 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9368 $ECHO EXPORTS >> $output_objdir/$libname.def~
9370 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9371 prefix_cmds="$prefix_cmds -e 1d";
9373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9376 emximp -o $lib $output_objdir/$libname.def'
9377 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9378 enable_shared_with_static_runtimes=yes
9382 if test yes = "$GCC"; then
9383 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9384 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'
9386 allow_undefined_flag=' -expect_unresolved \*'
9387 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'
9389 archive_cmds_need_lc='no'
9390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9391 hardcode_libdir_separator=:
9394 osf4* | osf5*) # as osf3* with the addition of -msym flag
9395 if test yes = "$GCC"; then
9396 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9397 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'
9398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9400 allow_undefined_flag=' -expect_unresolved \*'
9401 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'
9402 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~
9403 $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'
9405 # Both c and cxx compiler support -rpath directly
9406 hardcode_libdir_flag_spec='-rpath $libdir'
9408 archive_cmds_need_lc='no'
9409 hardcode_libdir_separator=:
9413 no_undefined_flag=' -z defs'
9414 if test yes = "$GCC"; then
9416 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418 $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'
9420 case `$CC -V 2>&1` in
9423 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9425 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9429 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9431 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9435 hardcode_libdir_flag_spec='-R$libdir'
9436 hardcode_shlibpath_var=no
9438 solaris2.[0-5] | solaris2.[0-5].*) ;;
9440 # The compiler driver will combine and reorder linker options,
9441 # but understands '-z linker_flag'. GCC discards it without '$wl',
9442 # but is careful enough not to reorder.
9443 # Supported since Solaris 2.6 (maybe 2.5.1?)
9444 if test yes = "$GCC"; then
9445 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9447 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9451 link_all_deplibs=yes
9455 if test sequent = "$host_vendor"; then
9456 # Use $CC to link under sequent, because it throws in some extra .o
9457 # files that make .init and .fini sections work.
9458 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_libdir_flag_spec='-L$libdir'
9464 hardcode_minus_L=yes
9465 hardcode_shlibpath_var=no
9469 case $host_vendor in
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_direct=yes # is this really true???
9475 ## LD is ld it makes a PLAMLIB
9476 ## CC just makes a GrossModule.
9477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9478 reload_cmds='$CC -r -o $output$reload_objs'
9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9486 runpath_var='LD_RUN_PATH'
9487 hardcode_shlibpath_var=no
9491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 hardcode_shlibpath_var=no
9493 export_dynamic_flag_spec='-Bexport'
9497 if test -d /usr/nec; then
9498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_shlibpath_var=no
9500 runpath_var=LD_RUN_PATH
9501 hardcode_runpath_var=yes
9506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9507 no_undefined_flag='$wl-z,text'
9508 archive_cmds_need_lc=no
9509 hardcode_shlibpath_var=no
9510 runpath_var='LD_RUN_PATH'
9512 if test yes = "$GCC"; then
9513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 sysv5* | sco3.2v5* | sco5v6*)
9522 # Note: We CANNOT use -z defs as we might desire, because we do not
9523 # link with -lc, and that would cause any symbols used from libc to
9524 # always be unresolved, which means just about no library would
9525 # ever link correctly. If we're not using GNU ld we use -z text
9526 # though, which does catch some bad symbols but isn't as heavy-handed
9528 no_undefined_flag='$wl-z,text'
9529 allow_undefined_flag='$wl-z,nodefs'
9530 archive_cmds_need_lc=no
9531 hardcode_shlibpath_var=no
9532 hardcode_libdir_flag_spec='$wl-R,$libdir'
9533 hardcode_libdir_separator=':'
9534 link_all_deplibs=yes
9535 export_dynamic_flag_spec='$wl-Bexport'
9536 runpath_var='LD_RUN_PATH'
9538 if test yes = "$GCC"; then
9539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_libdir_flag_spec='-L$libdir'
9550 hardcode_shlibpath_var=no
9558 if test sni = "$host_vendor"; then
9560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9561 export_dynamic_flag_spec='$wl-Blargedynsym'
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9568 $as_echo "$ld_shlibs" >&6; }
9569 test no = "$ld_shlibs" && can_build_shared=no
9571 with_gnu_ld=$with_gnu_ld
9588 # Do we need to explicitly link libc?
9590 case "x$archive_cmds_need_lc" in
9592 # Assume -lc should be added
9593 archive_cmds_need_lc=yes
9595 if test yes,yes = "$GCC,$enable_shared"; then
9596 case $archive_cmds in
9598 # FIXME: we may have to deal with multi-command sequences.
9601 # Test whether the compiler implicitly links with -lc since on some
9602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9603 # to ld, don't add -lc before -lgcc.
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9605 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9606 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9607 $as_echo_n "(cached) " >&6
9610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9613 (eval $ac_compile) 2>&5
9615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; } 2>conftest.err; then
9619 libobjs=conftest.$ac_objext
9621 wl=$lt_prog_compiler_wl
9622 pic_flag=$lt_prog_compiler_pic
9628 lt_save_allow_undefined_flag=$allow_undefined_flag
9629 allow_undefined_flag=
9630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9631 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9634 test $ac_status = 0; }
9636 lt_cv_archive_cmds_need_lc=no
9638 lt_cv_archive_cmds_need_lc=yes
9640 allow_undefined_flag=$lt_save_allow_undefined_flag
9642 cat conftest.err 1>&5
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9648 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9649 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9808 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9810 if test yes = "$GCC"; then
9812 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9813 *) lt_awk_arg='/^libraries:/' ;;
9816 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9817 *) lt_sed_strip_eq='s|=/|/|g' ;;
9819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9820 case $lt_search_path_spec in
9822 # if the path contains ";" then we assume it to be the separator
9823 # otherwise default to the standard path separator (i.e. ":") - it is
9824 # assumed that no part of a normal pathname contains ";" but that should
9825 # okay in the real world where ";" in dirpaths is itself problematic.
9826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9832 # Ok, now we have the path, separated by spaces, we can step through it
9833 # and add multilib dir if necessary...
9834 lt_tmp_lt_search_path_spec=
9835 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9836 # ...but if some path component already ends with the multilib dir we assume
9837 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9838 case "$lt_multi_os_dir; $lt_search_path_spec " in
9839 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9843 for lt_sys_path in $lt_search_path_spec; do
9844 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9846 elif test -n "$lt_multi_os_dir"; then
9847 test -d "$lt_sys_path" && \
9848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9852 BEGIN {RS = " "; FS = "/|\n";} {
9855 for (lt_i = NF; lt_i > 0; lt_i--) {
9856 if ($lt_i != "" && $lt_i != ".") {
9857 if ($lt_i == "..") {
9860 if (lt_count == 0) {
9861 lt_foo = "/" $lt_i lt_foo;
9868 if (lt_foo != "") { lt_freq[lt_foo]++; }
9869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9871 # AWK program above erroneously prepends '/' to C:/dos/paths
9874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9875 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9882 libname_spec='lib$name'
9890 shlibpath_overrides_runpath=unknown
9892 dynamic_linker="$host_os ld.so"
9893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9894 need_lib_prefix=unknown
9895 hardcode_into_libs=no
9897 # when you set need_version to no, make sure it does not cause -set_version
9898 # flags to be left without arguments
9899 need_version=unknown
9905 version_type=linux # correct to gnu/linux during the next big refactor
9906 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9907 shlibpath_var=LIBPATH
9909 # AIX 3 has no versioning support, so we append a major version to the name.
9910 soname_spec='$libname$release$shared_ext$major'
9914 version_type=linux # correct to gnu/linux during the next big refactor
9917 hardcode_into_libs=yes
9918 if test ia64 = "$host_cpu"; then
9919 # AIX 5 supports IA64
9920 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9921 shlibpath_var=LD_LIBRARY_PATH
9923 # With GCC up to 2.95.x, collect2 would create an import file
9924 # for dependence libraries. The import file would start with
9925 # the line '#! .'. This would cause the generated library to
9926 # depend on '.', always an invalid library. This was fixed in
9927 # development snapshots of GCC prior to 3.0.
9929 aix4 | aix4.[01] | aix4.[01].*)
9930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9932 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9939 # Using Import Files as archive members, it is possible to support
9940 # filename-based versioning of shared library archives on AIX. While
9941 # this would work for both with and without runtime linking, it will
9942 # prevent static linking of such archives. So we do filename-based
9943 # shared library versioning with .so extension only, which is used
9944 # when both runtime linking and shared linking is enabled.
9945 # Unfortunately, runtime linking may impact performance, so we do
9946 # not want this to be the default eventually. Also, we use the
9947 # versioned .so libs for executables only if there is the -brtl
9948 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9949 # To allow for filename-based versioning support, we need to create
9950 # libNAME.so.V as an archive file, containing:
9951 # *) an Import File, referring to the versioned filename of the
9952 # archive as well as the shared archive member, telling the
9953 # bitwidth (32 or 64) of that shared object, and providing the
9954 # list of exported symbols of that shared object, eventually
9955 # decorated with the 'weak' keyword
9956 # *) the shared object with the F_LOADONLY flag set, to really avoid
9957 # it being seen by the linker.
9958 # At run time we better use the real file rather than another symlink,
9959 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9961 case $with_aix_soname,$aix_use_runtimelinking in
9962 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9963 # soname into executable. Probably we can add versioning support to
9964 # collect2, so additional links can be useful in future.
9965 aix,yes) # traditional libtool
9966 dynamic_linker='AIX unversionable lib.so'
9967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9968 # instead of lib<name>.a to let people know that these are not
9969 # typical AIX shared libraries.
9970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9972 aix,no) # traditional AIX only
9973 dynamic_linker='AIX lib.a(lib.so.V)'
9974 # We preserve .a as extension for shared libraries through AIX4.2
9975 # and later when we are not doing run time linking.
9976 library_names_spec='$libname$release.a $libname.a'
9977 soname_spec='$libname$release$shared_ext$major'
9979 svr4,*) # full svr4 only
9980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9982 # We do not specify a path in Import Files, so LIBPATH fires.
9983 shlibpath_overrides_runpath=yes
9985 *,yes) # both, prefer svr4
9986 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9987 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9988 # unpreferred sharedlib libNAME.a needs extra handling
9989 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"'
9990 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"'
9991 # We do not specify a path in Import Files, so LIBPATH fires.
9992 shlibpath_overrides_runpath=yes
9994 *,no) # both, prefer aix
9995 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9996 library_names_spec='$libname$release.a $libname.a'
9997 soname_spec='$libname$release$shared_ext$major'
9998 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9999 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)'
10000 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"'
10003 shlibpath_var=LIBPATH
10010 # Since July 2007 AmigaOS4 officially supports .so libraries.
10011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10015 library_names_spec='$libname.ixlibrary $libname.a'
10016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10017 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'
10023 library_names_spec='$libname$shared_ext'
10024 dynamic_linker="$host_os ld.so"
10025 shlibpath_var=LIBRARY_PATH
10029 version_type=linux # correct to gnu/linux during the next big refactor
10031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10032 soname_spec='$libname$release$shared_ext$major'
10033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10037 # the default ld.so.conf also contains /usr/contrib/lib and
10038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10039 # libtool to hard-code these into programs
10042 cygwin* | mingw* | pw32* | cegcc*)
10043 version_type=windows
10048 case $GCC,$cc_basename in
10051 library_names_spec='$libname.dll.a'
10052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10053 postinstall_cmds='base_file=`basename \$file`~
10054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10055 dldir=$destdir/`dirname \$dlpath`~
10056 test -d \$dldir || mkdir -p \$dldir~
10057 $install_prog $dir/$dlname \$dldir/$dlname~
10058 chmod a+x \$dldir/$dlname~
10059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10063 dlpath=$dir/\$dldll~
10065 shlibpath_overrides_runpath=yes
10069 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10070 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10075 # MinGW DLLs use traditional 'lib' prefix
10076 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10079 # pw32 DLLs use 'pw' prefix rather than 'lib'
10080 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10083 dynamic_linker='Win32 ld.exe'
10088 libname_spec='$name'
10089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10090 library_names_spec='$libname.dll.lib'
10094 sys_lib_search_path_spec=
10097 for lt_path in $LIB
10100 # Let DOS variable expansion print the short 8.3 style file name.
10101 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10102 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10105 # Convert to MSYS style.
10106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10109 # Convert to unix form, then to dos form, then back to unix form
10110 # but this time dos style (no spaces!) so that the unix form looks
10111 # like /cygdrive/c/PROGRA~1:/cygdr...
10112 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10113 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10114 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10117 sys_lib_search_path_spec=$LIB
10118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10119 # It is most probably a Windows format PATH.
10120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10124 # FIXME: find the short name or the path components, as spaces are
10125 # common. (e.g. "Program Files" -> "PROGRA~1")
10129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10130 postinstall_cmds='base_file=`basename \$file`~
10131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10132 dldir=$destdir/`dirname \$dlpath`~
10133 test -d \$dldir || mkdir -p \$dldir~
10134 $install_prog $dir/$dlname \$dldir/$dlname'
10135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10136 dlpath=$dir/\$dldll~
10138 shlibpath_overrides_runpath=yes
10139 dynamic_linker='Win32 link.exe'
10143 # Assume MSVC wrapper
10144 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10145 dynamic_linker='Win32 ld.exe'
10148 # FIXME: first we should search . and the directory the executable is in
10152 darwin* | rhapsody*)
10153 dynamic_linker="$host_os dyld"
10154 version_type=darwin
10157 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10158 soname_spec='$libname$release$major$shared_ext'
10159 shlibpath_overrides_runpath=yes
10160 shlibpath_var=DYLD_LIBRARY_PATH
10161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10168 version_type=linux # correct to gnu/linux during the next big refactor
10171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10172 soname_spec='$libname$release$shared_ext$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10176 freebsd* | dragonfly*)
10177 # DragonFly does not have aout. When/if they implement a new
10178 # versioning mechanism, adjust this.
10179 if test -x /usr/bin/objformat; then
10180 objformat=`/usr/bin/objformat`
10183 freebsd[23].*) objformat=aout ;;
10184 *) objformat=elf ;;
10187 version_type=freebsd-$objformat
10188 case $version_type in
10190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10191 soname_spec='$libname$release$shared_ext$major'
10196 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10200 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=yes
10205 freebsd3.[01]* | freebsdelf3.[01]*)
10206 shlibpath_overrides_runpath=yes
10207 hardcode_into_libs=yes
10209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10211 shlibpath_overrides_runpath=no
10212 hardcode_into_libs=yes
10214 *) # from 4.6 on, and DragonFly
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10222 version_type=linux # correct to gnu/linux during the next big refactor
10225 dynamic_linker="$host_os runtime_loader"
10226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10227 soname_spec='$libname$release$shared_ext$major'
10228 shlibpath_var=LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10231 hardcode_into_libs=yes
10234 hpux9* | hpux10* | hpux11*)
10235 # Give a soname corresponding to the major version so that dld.sl refuses to
10236 # link against other versions.
10243 hardcode_into_libs=yes
10244 dynamic_linker="$host_os dld.so"
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10248 soname_spec='$libname$release$shared_ext$major'
10249 if test 32 = "$HPUX_IA64_MODE"; then
10250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10259 hardcode_into_libs=yes
10260 dynamic_linker="$host_os dld.sl"
10261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10264 soname_spec='$libname$release$shared_ext$major'
10265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10270 dynamic_linker="$host_os dld.sl"
10271 shlibpath_var=SHLIB_PATH
10272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10274 soname_spec='$libname$release$shared_ext$major'
10277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10278 postinstall_cmds='chmod 555 $lib'
10279 # or fails outright, so override atomically:
10280 install_override_mode=555
10284 version_type=linux # correct to gnu/linux during the next big refactor
10287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10288 soname_spec='$libname$release$shared_ext$major'
10289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
10292 hardcode_into_libs=yes
10295 irix5* | irix6* | nonstopux*)
10297 nonstopux*) version_type=nonstopux ;;
10299 if test yes = "$lt_cv_prog_gnu_ld"; then
10300 version_type=linux # correct to gnu/linux during the next big refactor
10307 soname_spec='$libname$release$shared_ext$major'
10308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10310 irix5* | nonstopux*)
10311 libsuff= shlibsuff=
10314 case $LD in # libtool.m4 will add one of these switches to LD
10315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10316 libsuff= shlibsuff= libmagic=32-bit;;
10317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10318 libsuff=32 shlibsuff=N32 libmagic=N32;;
10319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10321 *) libsuff= shlibsuff= libmagic=never-match;;
10325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10326 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10329 hardcode_into_libs=yes
10332 # No shared lib support for Linux oldld, aout, or coff.
10333 linux*oldld* | linux*aout* | linux*coff*)
10338 version_type=none # Android doesn't support versioned libraries.
10341 library_names_spec='$libname$release$shared_ext'
10342 soname_spec='$libname$release$shared_ext'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 shlibpath_overrides_runpath=yes
10347 # This implies no fast_install, which is unacceptable.
10348 # Some rework will be needed to allow for fast_install
10349 # before this can be enabled.
10350 hardcode_into_libs=yes
10352 dynamic_linker='Android linker'
10353 # Don't embed -rpath directories since the linker doesn't support them.
10354 hardcode_libdir_flag_spec='-L$libdir'
10357 # This must be glibc/ELF.
10358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10359 version_type=linux # correct to gnu/linux during the next big refactor
10362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10363 soname_spec='$libname$release$shared_ext$major'
10364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10368 # Some binutils ld are patched to set DT_RUNPATH
10369 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10370 $as_echo_n "(cached) " >&6
10372 lt_cv_shlibpath_overrides_runpath=no
10373 save_LDFLAGS=$LDFLAGS
10374 save_libdir=$libdir
10375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10390 lt_cv_shlibpath_overrides_runpath=yes
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LDFLAGS=$save_LDFLAGS
10396 libdir=$save_libdir
10400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10402 # This implies no fast_install, which is unacceptable.
10403 # Some rework will be needed to allow for fast_install
10404 # before this can be enabled.
10405 hardcode_into_libs=yes
10407 # Ideally, we could use ldconfig to report *all* directores which are
10408 # searched for libraries, however this is still not possible. Aside from not
10409 # being certain /sbin/ldconfig is available, command
10410 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10411 # even though it is searched at run-time. Try to do the best guess by
10412 # appending ld.so.conf contents (and includes) to the search path.
10413 if test -f /etc/ld.so.conf; then
10414 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' ' '`
10415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10418 # We used to test for /lib/ld.so.1 and disable shared libraries on
10419 # powerpc, because MkLinux only supported shared libraries with the
10420 # GNU dynamic linker. Since this was broken with cross compilers,
10421 # most powerpc-linux boxes support dynamic linking these days and
10422 # people can always --disable-shared, the test was removed, and we
10423 # assume the GNU/Linux dynamic linker is in use.
10424 dynamic_linker='GNU/Linux ld.so'
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 shlibpath_var=LD_LIBRARY_PATH
10434 shlibpath_overrides_runpath=no
10435 hardcode_into_libs=yes
10436 dynamic_linker='NetBSD ld.elf_so'
10443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10444 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10446 dynamic_linker='NetBSD (a.out) ld.so'
10448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10449 soname_spec='$libname$release$shared_ext$major'
10450 dynamic_linker='NetBSD ld.elf_so'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10458 version_type=linux # correct to gnu/linux during the next big refactor
10459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469 soname_spec='$libname$release$shared_ext$major'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 hardcode_into_libs=yes
10473 dynamic_linker='ldqnx.so'
10476 openbsd* | bitrig*)
10478 sys_lib_dlsearch_path_spec=/usr/lib
10480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10485 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=yes
10492 libname_spec='$name'
10493 version_type=windows
10497 # OS/2 can only load a DLL with a base name of 8 characters or less.
10498 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10499 v=$($ECHO $release$versuffix | tr -d .-);
10500 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10501 $ECHO $n$v`$shared_ext'
10502 library_names_spec='${libname}_dll.$libext'
10503 dynamic_linker='OS/2 ld.exe'
10504 shlibpath_var=BEGINLIBPATH
10505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10507 postinstall_cmds='base_file=`basename \$file`~
10508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10509 dldir=$destdir/`dirname \$dlpath`~
10510 test -d \$dldir || mkdir -p \$dldir~
10511 $install_prog $dir/$dlname \$dldir/$dlname~
10512 chmod a+x \$dldir/$dlname~
10513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10517 dlpath=$dir/\$dldll~
10521 osf3* | osf4* | osf5*)
10525 soname_spec='$libname$release$shared_ext$major'
10526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 version_type=linux # correct to gnu/linux during the next big refactor
10540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10541 soname_spec='$libname$release$shared_ext$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10545 # ldd complains unless libraries are executable
10546 postinstall_cmds='chmod +x $lib'
10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 if test yes = "$with_gnu_ld"; then
10562 version_type=linux # correct to gnu/linux during the next big refactor
10563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10564 soname_spec='$libname$release$shared_ext$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_vendor in
10568 shlibpath_overrides_runpath=no
10570 runpath_var=LD_RUN_PATH
10578 shlibpath_overrides_runpath=no
10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10585 if test -d /usr/nec; then
10586 version_type=linux # correct to gnu/linux during the next big refactor
10587 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10588 soname_spec='$libname$shared_ext.$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10598 soname_spec='$libname$release$shared_ext$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 if test yes = "$with_gnu_ld"; then
10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10612 sys_lib_dlsearch_path_spec='/usr/lib'
10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10617 version_type=linux # correct to gnu/linux during the next big refactor
10620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10627 version_type=linux # correct to gnu/linux during the next big refactor
10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629 soname_spec='$libname$release$shared_ext$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10638 $as_echo "$dynamic_linker" >&6; }
10639 test no = "$dynamic_linker" && can_build_shared=no
10641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10642 if test yes = "$GCC"; then
10643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10646 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10647 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10650 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10651 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10654 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10655 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10657 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10658 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10660 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10661 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10760 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10762 if test -n "$hardcode_libdir_flag_spec" ||
10763 test -n "$runpath_var" ||
10764 test yes = "$hardcode_automatic"; then
10766 # We can hardcode non-existent directories.
10767 if test no != "$hardcode_direct" &&
10768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10769 # have to relink, otherwise we might link with an installed library
10770 # when we should be linking with a yet-to-be-installed one
10771 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10772 test no != "$hardcode_minus_L"; then
10773 # Linking always hardcodes the temporary library directory.
10774 hardcode_action=relink
10776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10777 hardcode_action=immediate
10780 # We cannot hardcode anything, or else we can only hardcode existing
10782 hardcode_action=unsupported
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10785 $as_echo "$hardcode_action" >&6; }
10787 if test relink = "$hardcode_action" ||
10788 test yes = "$inherit_rpath"; then
10789 # Fast installation is not supported
10790 enable_fast_install=no
10791 elif test yes = "$shlibpath_overrides_runpath" ||
10792 test no = "$enable_shared"; then
10793 # Fast installation is not necessary
10794 enable_fast_install=needless
10802 if test yes != "$enable_dlopen"; then
10803 enable_dlopen=unknown
10804 enable_dlopen_self=unknown
10805 enable_dlopen_self_static=unknown
10812 lt_cv_dlopen=load_add_on
10814 lt_cv_dlopen_self=yes
10817 mingw* | pw32* | cegcc*)
10818 lt_cv_dlopen=LoadLibrary
10823 lt_cv_dlopen=dlopen
10828 # if libdl is installed we need to link against it
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10830 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10831 if ${ac_cv_lib_dl_dlopen+:} false; then :
10832 $as_echo_n "(cached) " >&6
10834 ac_check_lib_save_LIBS=$LIBS
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_dl_dlopen=yes
10857 ac_cv_lib_dl_dlopen=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10865 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10871 lt_cv_dlopen_self=yes
10878 # Don't try to run any link tests for TPF. We know it's impossible
10879 # because TPF is a cross-compiler, and we know how we open DSOs.
10880 lt_cv_dlopen=dlopen
10882 lt_cv_dlopen_self=no
10886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10887 if test "x$ac_cv_func_shl_load" = xyes; then :
10888 lt_cv_dlopen=shl_load
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10892 if ${ac_cv_lib_dld_shl_load+:} false; then :
10893 $as_echo_n "(cached) " >&6
10895 ac_check_lib_save_LIBS=$LIBS
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10910 return shl_load ();
10915 if ac_fn_c_try_link "$LINENO"; then :
10916 ac_cv_lib_dld_shl_load=yes
10918 ac_cv_lib_dld_shl_load=no
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10926 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10927 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10930 if test "x$ac_cv_func_dlopen" = xyes; then :
10931 lt_cv_dlopen=dlopen
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10935 if ${ac_cv_lib_dl_dlopen+:} false; then :
10936 $as_echo_n "(cached) " >&6
10938 ac_check_lib_save_LIBS=$LIBS
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 ac_cv_lib_dl_dlopen=yes
10961 ac_cv_lib_dl_dlopen=no
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10970 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974 if ${ac_cv_lib_svld_dlopen+:} false; then :
10975 $as_echo_n "(cached) " >&6
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-lsvld $LIBS"
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10982 /* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10997 if ac_fn_c_try_link "$LINENO"; then :
10998 ac_cv_lib_svld_dlopen=yes
11000 ac_cv_lib_svld_dlopen=no
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_lib_save_LIBS
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11008 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11013 if ${ac_cv_lib_dld_dld_link+:} false; then :
11014 $as_echo_n "(cached) " >&6
11016 ac_check_lib_save_LIBS=$LIBS
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11031 return dld_link ();
11036 if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_dld_dld_link=yes
11039 ac_cv_lib_dld_dld_link=no
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11047 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11048 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11069 if test no = "$lt_cv_dlopen"; then
11075 case $lt_cv_dlopen in
11077 save_CPPFLAGS=$CPPFLAGS
11078 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11080 save_LDFLAGS=$LDFLAGS
11081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11084 LIBS="$lt_cv_dlopen_libs $LIBS"
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11088 if ${lt_cv_dlopen_self+:} false; then :
11089 $as_echo_n "(cached) " >&6
11091 if test yes = "$cross_compiling"; then :
11092 lt_cv_dlopen_self=cross
11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095 lt_status=$lt_dlunknown
11096 cat > conftest.$ac_ext <<_LT_EOF
11097 #line $LINENO "configure"
11098 #include "confdefs.h"
11107 # define LT_DLGLOBAL RTLD_GLOBAL
11110 # define LT_DLGLOBAL DL_GLOBAL
11112 # define LT_DLGLOBAL 0
11116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117 find out it does not work in some platform. */
11118 #ifndef LT_DLLAZY_OR_NOW
11120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11123 # define LT_DLLAZY_OR_NOW DL_LAZY
11126 # define LT_DLLAZY_OR_NOW RTLD_NOW
11129 # define LT_DLLAZY_OR_NOW DL_NOW
11131 # define LT_DLLAZY_OR_NOW 0
11138 /* When -fvisibility=hidden is used, assume the code has been annotated
11139 correspondingly for the symbols needed. */
11140 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11141 int fnord () __attribute__((visibility("default")));
11144 int fnord () { return 42; }
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156 else puts (dlerror ());
11158 /* dlclose (self); */
11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11167 (eval $ac_link) 2>&5
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11171 (./conftest; exit; ) >&5 2>/dev/null
11173 case x$lt_status in
11174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11179 # compilation failed
11180 lt_cv_dlopen_self=no
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11188 $as_echo "$lt_cv_dlopen_self" >&6; }
11190 if test yes = "$lt_cv_dlopen_self"; then
11191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11194 if ${lt_cv_dlopen_self_static+:} false; then :
11195 $as_echo_n "(cached) " >&6
11197 if test yes = "$cross_compiling"; then :
11198 lt_cv_dlopen_self_static=cross
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
11203 #line $LINENO "configure"
11204 #include "confdefs.h"
11213 # define LT_DLGLOBAL RTLD_GLOBAL
11216 # define LT_DLGLOBAL DL_GLOBAL
11218 # define LT_DLGLOBAL 0
11222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224 #ifndef LT_DLLAZY_OR_NOW
11226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11229 # define LT_DLLAZY_OR_NOW DL_LAZY
11232 # define LT_DLLAZY_OR_NOW RTLD_NOW
11235 # define LT_DLLAZY_OR_NOW DL_NOW
11237 # define LT_DLLAZY_OR_NOW 0
11244 /* When -fvisibility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247 int fnord () __attribute__((visibility("default")));
11250 int fnord () { return 42; }
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11264 /* dlclose (self); */
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11273 (eval $ac_link) 2>&5
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11277 (./conftest; exit; ) >&5 2>/dev/null
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11285 # compilation failed
11286 lt_cv_dlopen_self_static=no
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11297 CPPFLAGS=$save_CPPFLAGS
11298 LDFLAGS=$save_LDFLAGS
11303 case $lt_cv_dlopen_self in
11304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11305 *) enable_dlopen_self=unknown ;;
11308 case $lt_cv_dlopen_self_static in
11309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11310 *) enable_dlopen_self_static=unknown ;;
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 $as_echo "yes" >&6; }
11340 # FIXME - insert some real tests, host_os isn't really good enough
11343 if test -n "$STRIP"; then
11344 striplib="$STRIP -x"
11345 old_striplib="$STRIP -S"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347 $as_echo "yes" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11371 # Report what library types will actually be built
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11375 $as_echo "$can_build_shared" >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11378 $as_echo_n "checking whether to build shared libraries... " >&6; }
11379 test no = "$can_build_shared" && enable_shared=no
11381 # On AIX, shared libraries and static libraries use the same namespace, and
11382 # are all built from PIC.
11385 test yes = "$enable_shared" && enable_static=no
11386 if test -n "$RANLIB"; then
11387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11388 postinstall_cmds='$RANLIB $lib'
11393 if test ia64 != "$host_cpu"; then
11394 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11395 yes,aix,yes) ;; # shared object as lib.so file only
11396 yes,svr4,*) ;; # shared object as lib.so archive member only
11397 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11403 $as_echo "$enable_shared" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11406 $as_echo_n "checking whether to build static libraries... " >&6; }
11407 # Make sure either enable_shared or enable_static is yes.
11408 test yes = "$enable_shared" || enable_static=yes
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11410 $as_echo "$enable_static" >&6; }
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438 ac_config_commands="$ac_config_commands libtool"
11443 # Only expand once:
11449 am__api_version='1.16'
11451 # Find a good install program. We prefer a C program (faster),
11452 # so one script is as good as another. But avoid the broken or
11453 # incompatible versions:
11454 # SysV /etc/install, /usr/sbin/install
11455 # SunOS /usr/etc/install
11456 # IRIX /sbin/install
11458 # AmigaOS /C/install, which installs bootblocks on floppy discs
11459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11462 # OS/2's system install, which has a completely different semantic
11463 # ./install, which can be erroneously created by make from ./install.sh.
11464 # Reject install programs that cannot install multiple files.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11467 if test -z "$INSTALL"; then
11468 if ${ac_cv_path_install+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11475 test -z "$as_dir" && as_dir=.
11476 # Account for people who put trailing slashes in PATH elements.
11477 case $as_dir/ in #((
11478 ./ | .// | /[cC]/* | \
11479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11483 # OSF1 and SCO ODT 3.0 have their own names for install.
11484 # Don't use installbsd from OSF since it installs stuff as root
11486 for ac_prog in ginstall scoinst install; do
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11489 if test $ac_prog = install &&
11490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11491 # AIX install. It has an incompatible calling convention.
11493 elif test $ac_prog = install &&
11494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11495 # program-specific install script used by HP pwplus--don't use.
11498 rm -rf conftest.one conftest.two conftest.dir
11499 echo one > conftest.one
11500 echo two > conftest.two
11502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11503 test -s conftest.one && test -s conftest.two &&
11504 test -s conftest.dir/conftest.one &&
11505 test -s conftest.dir/conftest.two
11507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11520 rm -rf conftest.one conftest.two conftest.dir
11523 if test "${ac_cv_path_install+set}" = set; then
11524 INSTALL=$ac_cv_path_install
11526 # As a last resort, use the slow shell script. Don't cache a
11527 # value for INSTALL within a source directory, because that will
11528 # break other packages using the cache if that directory is
11529 # removed, or if the value is a relative name.
11530 INSTALL=$ac_install_sh
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11534 $as_echo "$INSTALL" >&6; }
11536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11537 # It thinks the first close brace ends the variable substitution.
11538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11545 $as_echo_n "checking whether build environment is sane... " >&6; }
11546 # Reject unsafe characters in $srcdir or the absolute working directory
11547 # name. Accept space and tab only in the latter.
11551 *[\\\"\#\$\&\'\`$am_lf]*)
11552 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11555 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11556 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11559 # Do 'set' in a subshell so we don't clobber the current shell's
11560 # arguments. Must try -L first in case configure is actually a
11561 # symlink; some systems play weird games with the mod time of symlinks
11562 # (eg FreeBSD returns the mod time of the symlink's containing
11566 for am_try in 1 2; do
11567 echo "timestamp, slept: $am_has_slept" > conftest.file
11568 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11569 if test "$*" = "X"; then
11571 set X `ls -t "$srcdir/configure" conftest.file`
11573 if test "$*" != "X $srcdir/configure conftest.file" \
11574 && test "$*" != "X conftest.file $srcdir/configure"; then
11576 # If neither matched, then we have a broken ls. This can happen
11577 # if, for instance, CONFIG_SHELL is bash and it inherits a
11578 # broken ls alias from the environment. This has actually
11579 # happened. Such a system could not be considered "sane".
11580 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11581 alias in your environment" "$LINENO" 5
11583 if test "$2" = conftest.file || test $am_try -eq 2; then
11590 test "$2" = conftest.file
11596 as_fn_error $? "newly created file is older than distributed files!
11597 Check your system clock" "$LINENO" 5
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11600 $as_echo "yes" >&6; }
11601 # If we didn't sleep, we still need to ensure time stamps of config.status and
11602 # generated files are strictly newer.
11604 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11609 rm -f conftest.file
11611 test "$program_prefix" != NONE &&
11612 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11613 # Use a double $ so make ignores it.
11614 test "$program_suffix" != NONE &&
11615 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11616 # Double any \ or $.
11617 # By default was `s,x,x', remove it if useless.
11618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11621 if test x"${MISSING+set}" != xset; then
11622 MISSING="\${SHELL} '$am_aux_dir/missing'"
11624 # Use eval to expand $SHELL
11625 if eval "$MISSING --is-lightweight"; then
11626 am_missing_run="$MISSING "
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11630 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11633 if test x"${install_sh+set}" != xset; then
11634 case $am_aux_dir in
11636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11638 install_sh="\${SHELL} $am_aux_dir/install-sh"
11642 # Installed binaries are usually stripped using 'strip' when the user
11643 # run "make install-strip". However 'strip' might not be the right
11644 # tool to use in cross-compilation environments, therefore Automake
11645 # will honor the 'STRIP' environment variable to overrule this program.
11646 if test "$cross_compiling" != no; then
11647 if test -n "$ac_tool_prefix"; then
11648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11649 set dummy ${ac_tool_prefix}strip; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_prog_STRIP+:} false; then :
11653 $as_echo_n "(cached) " >&6
11655 if test -n "$STRIP"; then
11656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 STRIP=$ac_cv_prog_STRIP
11676 if test -n "$STRIP"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11678 $as_echo "$STRIP" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11686 if test -z "$ac_cv_prog_STRIP"; then
11688 # Extract the first word of "strip", so it can be a program name with args.
11689 set dummy strip; ac_word=$2
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691 $as_echo_n "checking for $ac_word... " >&6; }
11692 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11693 $as_echo_n "(cached) " >&6
11695 if test -n "$ac_ct_STRIP"; then
11696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_prog_ac_ct_STRIP="strip"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11716 if test -n "$ac_ct_STRIP"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11718 $as_echo "$ac_ct_STRIP" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11724 if test "x$ac_ct_STRIP" = x; then
11727 case $cross_compiling:$ac_tool_warned in
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11731 ac_tool_warned=yes ;;
11736 STRIP="$ac_cv_prog_STRIP"
11740 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11743 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11744 if test -z "$MKDIR_P"; then
11745 if ${ac_cv_path_mkdir+:} false; then :
11746 $as_echo_n "(cached) " >&6
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11752 test -z "$as_dir" && as_dir=.
11753 for ac_prog in mkdir gmkdir; do
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11756 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11757 'mkdir (GNU coreutils) '* | \
11758 'mkdir (coreutils) '* | \
11759 'mkdir (fileutils) '4.1*)
11760 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11770 test -d ./--version && rmdir ./--version
11771 if test "${ac_cv_path_mkdir+set}" = set; then
11772 MKDIR_P="$ac_cv_path_mkdir -p"
11774 # As a last resort, use the slow shell script. Don't cache a
11775 # value for MKDIR_P within a source directory, because that will
11776 # break other packages using the cache if that directory is
11777 # removed, or if the value is a relative name.
11778 MKDIR_P="$ac_install_sh -d"
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11782 $as_echo "$MKDIR_P" >&6; }
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11788 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 cat >conftest.make <<\_ACEOF
11794 @echo '@@@%%%=$(MAKE)=@@@%%%'
11796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11798 *@@@%%%=?*=@@@%%%*)
11799 eval ac_cv_prog_make_${ac_make}_set=yes;;
11801 eval ac_cv_prog_make_${ac_make}_set=no;;
11803 rm -f conftest.make
11805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 SET_MAKE="MAKE=${MAKE-make}"
11815 rm -rf .tst 2>/dev/null
11816 mkdir .tst 2>/dev/null
11817 if test -d .tst; then
11822 rmdir .tst 2>/dev/null
11824 DEPDIR="${am__leading_dot}deps"
11826 ac_config_commands="$ac_config_commands depfiles"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
11829 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
11830 cat > confinc.mk << 'END'
11832 @echo this is the am__doit target >confinc.out
11837 # BSD make does it like this.
11838 echo '.include "confinc.mk" # ignored' > confmf.BSD
11839 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
11840 echo 'include confinc.mk # ignored' > confmf.GNU
11842 for s in GNU BSD; do
11843 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
11844 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }
11848 case $?:`cat confinc.out 2>/dev/null` in #(
11849 '0:this is the am__doit target') :
11852 am__include='.include' am__quote='"' ;; #(
11854 am__include='include' am__quote='' ;;
11859 if test "$am__include" != "#"; then
11860 _am_result="yes ($s style)"
11864 rm -f confinc.* confmf.*
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
11866 $as_echo "${_am_result}" >&6; }
11868 # Check whether --enable-dependency-tracking was given.
11869 if test "${enable_dependency_tracking+set}" = set; then :
11870 enableval=$enable_dependency_tracking;
11873 if test "x$enable_dependency_tracking" != xno; then
11874 am_depcomp="$ac_aux_dir/depcomp"
11878 if test "x$enable_dependency_tracking" != xno; then
11887 # Check whether --enable-silent-rules was given.
11888 if test "${enable_silent_rules+set}" = set; then :
11889 enableval=$enable_silent_rules;
11892 case $enable_silent_rules in # (((
11893 yes) AM_DEFAULT_VERBOSITY=0;;
11894 no) AM_DEFAULT_VERBOSITY=1;;
11895 *) AM_DEFAULT_VERBOSITY=1;;
11897 am_make=${MAKE-make}
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11899 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11900 if ${am_cv_make_support_nested_variables+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 if $as_echo 'TRUE=$(BAR$(V))
11909 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11910 am_cv_make_support_nested_variables=yes
11912 am_cv_make_support_nested_variables=no
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11916 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11917 if test $am_cv_make_support_nested_variables = yes; then
11919 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11921 AM_V=$AM_DEFAULT_VERBOSITY
11922 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11926 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11927 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11928 # is not polluted with repeated "-I."
11929 am__isrc=' -I$(srcdir)'
11930 # test to see if srcdir already configured
11931 if test -f $srcdir/config.status; then
11932 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11936 # test whether we have cygpath
11937 if test -z "$CYGPATH_W"; then
11938 if (cygpath --version) >/dev/null 2>/dev/null; then
11939 CYGPATH_W='cygpath -w'
11946 # Define the identity of the package.
11951 cat >>confdefs.h <<_ACEOF
11952 #define PACKAGE "$PACKAGE"
11956 cat >>confdefs.h <<_ACEOF
11957 #define VERSION "$VERSION"
11960 # Some tools Automake needs.
11962 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11965 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11968 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11971 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11974 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11976 # For better backward compatibility. To be removed once Automake 1.9.x
11977 # dies out for good. For more background, see:
11978 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11979 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11980 mkdir_p='$(MKDIR_P)'
11982 # We need awk for the "check" target (and possibly the TAP driver). The
11983 # system "awk" is bad on some platforms.
11984 # Always define AMTAR for backward compatibility. Yes, it's still used
11985 # in the wild :-( We should find a proper way to deprecate it ...
11986 AMTAR='$${TAR-tar}'
11989 # We'll loop over all known methods to create a tar archive until one works.
11990 _am_tools='gnutar pax cpio none'
11992 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11998 depcc="$CC" am_compiler_list=
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12001 $as_echo_n "checking dependency style of $depcc... " >&6; }
12002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12003 $as_echo_n "(cached) " >&6
12005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12006 # We make a subdir and do the tests there. Otherwise we can end up
12007 # making bogus files that we don't know about and never remove. For
12008 # instance it was reported that on HP-UX the gcc test will end up
12009 # making a dummy file named 'D' -- because '-MD' means "put the output
12011 rm -rf conftest.dir
12013 # Copy depcomp to subdir because otherwise we won't find it if we're
12014 # using a relative directory.
12015 cp "$am_depcomp" conftest.dir
12017 # We will build objects and dependencies in a subdirectory because
12018 # it helps to detect inapplicable dependency modes. For instance
12019 # both Tru64's cc and ICC support -MD to output dependencies as a
12020 # side effect of compilation, but ICC will put the dependencies in
12021 # the current directory while Tru64 will put them in the object
12025 am_cv_CC_dependencies_compiler_type=none
12026 if test "$am_compiler_list" = ""; then
12027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12029 am__universal=false
12030 case " $depcc " in #(
12031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12034 for depmode in $am_compiler_list; do
12035 # Setup a source with many dependencies, because some compilers
12036 # like to wrap large dependency lists on column 80 (with \), and
12037 # we should not choose a depcomp mode which is confused by this.
12039 # We need to recreate these files for each test, as the compiler may
12040 # overwrite some of them when testing with obscure command lines.
12041 # This happens at least with the AIX C compiler.
12043 for i in 1 2 3 4 5 6; do
12044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12046 # Solaris 10 /bin/sh.
12047 echo '/* dummy */' > sub/conftst$i.h
12049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12051 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12052 # mode. It turns out that the SunPro C++ compiler does not properly
12053 # handle '-M -o', and we need to detect this. Also, some Intel
12054 # versions had trouble with output in subdirs.
12055 am__obj=sub/conftest.${OBJEXT-o}
12056 am__minus_obj="-o $am__obj"
12059 # This depmode causes a compiler race in universal mode.
12060 test "$am__universal" = false || continue
12063 # After this tag, mechanisms are not by side-effect, so they'll
12064 # only be used when explicitly requested.
12065 if test "x$enable_dependency_tracking" = xyes; then
12071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12072 # This compiler won't grok '-c -o', but also, the minuso test has
12073 # not run yet. These depmodes are late enough in the game, and
12074 # so weak that their functioning should not be impacted.
12075 am__obj=conftest.${OBJEXT-o}
12080 if depmode=$depmode \
12081 source=sub/conftest.c object=$am__obj \
12082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12084 >/dev/null 2>conftest.err &&
12085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12089 # icc doesn't choke on unknown options, it will just issue warnings
12090 # or remarks (even with -Werror). So we grep stderr for any message
12091 # that says an option was ignored or not supported.
12092 # When given -MP, icc 7.0 and 7.1 complain thusly:
12093 # icc: Command line warning: ignoring option '-M'; no argument required
12094 # The diagnosis changed in icc 8.0:
12095 # icc: Command line remark: option '-MP' not supported
12096 if (grep 'ignoring option' conftest.err ||
12097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12098 am_cv_CC_dependencies_compiler_type=$depmode
12105 rm -rf conftest.dir
12107 am_cv_CC_dependencies_compiler_type=none
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12116 test "x$enable_dependency_tracking" != xno \
12117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12118 am__fastdepCC_TRUE=
12119 am__fastdepCC_FALSE='#'
12121 am__fastdepCC_TRUE='#'
12122 am__fastdepCC_FALSE=
12127 # POSIX will say in a future version that running "rm -f" with no argument
12128 # is OK; and we want to be able to make that assumption in our Makefile
12129 # recipes. So use an aggressive probe to check that the usage we want is
12130 # actually supported "in the wild" to an acceptable degree.
12131 # See automake bug#10828.
12132 # To make any issue more visible, cause the running configure to be aborted
12133 # by default if the 'rm' program in use doesn't match our expectations; the
12134 # user can still override this though.
12135 if rm -f && rm -fr && rm -rf; then : OK; else
12139 Your 'rm' program seems unable to run without file operands specified
12140 on the command line, even when the '-f' option is present. This is contrary
12141 to the behaviour of most rm programs out there, and not conforming with
12142 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12144 Please tell bug-automake@gnu.org about your system, including the value
12145 of your $PATH and any error possibly output before this message. This
12146 can help us improve future automake versions.
12149 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12150 echo 'Configuration will proceed anyway, since you have set the' >&2
12151 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12155 Aborting the configuration process, to ensure you take notice of the issue.
12157 You can download and install GNU coreutils to get an 'rm' implementation
12158 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12160 If you want to complete the configuration process using your problematic
12161 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12162 to "yes", and re-run configure.
12165 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12171 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12172 # Check whether --enable-maintainer-mode was given.
12173 if test "${enable_maintainer_mode+set}" = set; then :
12174 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12176 USE_MAINTAINER_MODE=yes
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12180 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12181 if test $USE_MAINTAINER_MODE = yes; then
12182 MAINTAINER_MODE_TRUE=
12183 MAINTAINER_MODE_FALSE='#'
12185 MAINTAINER_MODE_TRUE='#'
12186 MAINTAINER_MODE_FALSE=
12189 MAINT=$MAINTAINER_MODE_TRUE
12202 ac_cpp='$CPP $CPPFLAGS'
12203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206 if test -n "$ac_tool_prefix"; then
12207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210 $as_echo_n "checking for $ac_word... " >&6; }
12211 if ${ac_cv_prog_CC+:} false; then :
12212 $as_echo_n "(cached) " >&6
12214 if test -n "$CC"; then
12215 ac_cv_prog_CC="$CC" # Let the user override the test.
12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12221 test -z "$as_dir" && as_dir=.
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 if test -n "$CC"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12237 $as_echo "$CC" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test -z "$ac_cv_prog_CC"; then
12247 # Extract the first word of "gcc", so it can be a program name with args.
12248 set dummy gcc; ac_word=$2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250 $as_echo_n "checking for $ac_word... " >&6; }
12251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12252 $as_echo_n "(cached) " >&6
12254 if test -n "$ac_ct_CC"; then
12255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $PATH
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12264 ac_cv_prog_ac_ct_CC="gcc"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12275 if test -n "$ac_ct_CC"; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12277 $as_echo "$ac_ct_CC" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12283 if test "x$ac_ct_CC" = x; then
12286 case $cross_compiling:$ac_tool_warned in
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12290 ac_tool_warned=yes ;;
12295 CC="$ac_cv_prog_CC"
12298 if test -z "$CC"; then
12299 if test -n "$ac_tool_prefix"; then
12300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12301 set dummy ${ac_tool_prefix}cc; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_prog_CC+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 if test -n "$CC"; then
12308 ac_cv_prog_CC="$CC" # Let the user override the test.
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_prog_CC="${ac_tool_prefix}cc"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 if test -n "$CC"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12330 $as_echo "$CC" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12339 if test -z "$CC"; then
12340 # Extract the first word of "cc", so it can be a program name with args.
12341 set dummy cc; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_prog_CC+:} false; then :
12345 $as_echo_n "(cached) " >&6
12347 if test -n "$CC"; then
12348 ac_cv_prog_CC="$CC" # Let the user override the test.
12350 ac_prog_rejected=no
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12359 ac_prog_rejected=yes
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 if test $ac_prog_rejected = yes; then
12371 # We found a bogon in the path, so make sure we never use it.
12372 set dummy $ac_cv_prog_CC
12374 if test $# != 0; then
12375 # We chose a different compiler from the bogus one.
12376 # However, it has the same basename, so the bogon will be chosen
12377 # first if we set CC to just the basename; use the full file name.
12379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12385 if test -n "$CC"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12387 $as_echo "$CC" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12395 if test -z "$CC"; then
12396 if test -n "$ac_tool_prefix"; then
12397 for ac_prog in cl.exe
12399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_prog_CC+:} false; then :
12404 $as_echo_n "(cached) " >&6
12406 if test -n "$CC"; then
12407 ac_cv_prog_CC="$CC" # Let the user override the test.
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 if test -n "$CC"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12429 $as_echo "$CC" >&6; }
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12436 test -n "$CC" && break
12439 if test -z "$CC"; then
12441 for ac_prog in cl.exe
12443 # Extract the first word of "$ac_prog", so it can be a program name with args.
12444 set dummy $ac_prog; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12448 $as_echo_n "(cached) " >&6
12450 if test -n "$ac_ct_CC"; then
12451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12460 ac_cv_prog_ac_ct_CC="$ac_prog"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12471 if test -n "$ac_ct_CC"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12473 $as_echo "$ac_ct_CC" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12480 test -n "$ac_ct_CC" && break
12483 if test "x$ac_ct_CC" = x; then
12486 case $cross_compiling:$ac_tool_warned in
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12490 ac_tool_warned=yes ;;
12499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12501 as_fn_error $? "no acceptable C compiler found in \$PATH
12502 See \`config.log' for more details" "$LINENO" 5; }
12504 # Provide some information about the compiler.
12505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12508 for ac_option in --version -v -V -qversion; do
12509 { { ac_try="$ac_compiler $ac_option >&5"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12515 $as_echo "$ac_try_echo"; } >&5
12516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12518 if test -s conftest.err; then
12520 ... rest of stderr output deleted ...
12521 10q' conftest.err >conftest.er1
12522 cat conftest.er1 >&5
12524 rm -f conftest.er1 conftest.err
12525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526 test $ac_status = 0; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12531 if ${ac_cv_c_compiler_gnu+:} false; then :
12532 $as_echo_n "(cached) " >&6
12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12548 if ac_fn_c_try_compile "$LINENO"; then :
12549 ac_compiler_gnu=yes
12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12559 if test $ac_compiler_gnu = yes; then
12564 ac_test_CFLAGS=${CFLAGS+set}
12565 ac_save_CFLAGS=$CFLAGS
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12568 if ${ac_cv_prog_cc_g+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 ac_save_c_werror_flag=$ac_c_werror_flag
12572 ac_c_werror_flag=yes
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 ac_cv_prog_cc_g=yes
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12601 if ac_fn_c_try_compile "$LINENO"; then :
12604 ac_c_werror_flag=$ac_save_c_werror_flag
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 ac_cv_prog_cc_g=yes
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 ac_c_werror_flag=$ac_save_c_werror_flag
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12628 $as_echo "$ac_cv_prog_cc_g" >&6; }
12629 if test "$ac_test_CFLAGS" = set; then
12630 CFLAGS=$ac_save_CFLAGS
12631 elif test $ac_cv_prog_cc_g = yes; then
12632 if test "$GCC" = yes; then
12638 if test "$GCC" = yes; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12646 if ${ac_cv_prog_cc_c89+:} false; then :
12647 $as_echo_n "(cached) " >&6
12649 ac_cv_prog_cc_c89=no
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <stdarg.h>
12656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12657 struct buf { int x; };
12658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12659 static char *e (p, i)
12665 static char *f (char * (*g) (char **, int), char **p, ...)
12670 s = g (p, va_arg (v,int));
12675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12676 function prototypes and stuff, but not '\xHH' hex character constants.
12677 These don't provoke an error unfortunately, instead are silently treated
12678 as 'x'. The following induces an error, until -std is added to get
12679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12680 array size at least. It's necessary to write '\x00'==0 to get something
12681 that's true only with -std. */
12682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12685 inside strings and character constants. */
12687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12689 int test (int i, double x);
12690 struct s1 {int (*f) (int a);};
12691 struct s2 {int (*f) (double a);};
12692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12706 CC="$ac_save_CC $ac_arg"
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 ac_cv_prog_cc_c89=$ac_arg
12710 rm -f core conftest.err conftest.$ac_objext
12711 test "x$ac_cv_prog_cc_c89" != "xno" && break
12713 rm -f conftest.$ac_ext
12718 case "x$ac_cv_prog_cc_c89" in
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12721 $as_echo "none needed" >&6; } ;;
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12724 $as_echo "unsupported" >&6; } ;;
12726 CC="$CC $ac_cv_prog_cc_c89"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12730 if test "x$ac_cv_prog_cc_c89" != xno; then :
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12746 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12747 if ${am_cv_prog_cc_c_o+:} false; then :
12748 $as_echo_n "(cached) " >&6
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12761 # Make sure it works both with $CC and with simple cc.
12762 # Following AC_PROG_CC_C_O, we do the test twice because some
12763 # compilers refuse to overwrite an existing .o file with -o,
12764 # though they will create one.
12765 am_cv_prog_cc_c_o=yes
12766 for am_i in 1 2; do
12767 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12768 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } \
12772 && test -f conftest2.$ac_objext; then
12775 am_cv_prog_cc_c_o=no
12779 rm -f core conftest*
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12783 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12784 if test "$am_cv_prog_cc_c_o" != yes; then
12785 # Losing compiler, so override with the script.
12786 # FIXME: It is wrong to rewrite CC.
12787 # But if we don't then we get into trouble of one sort or another.
12788 # A longer-term fix would be to have automake use am__CC in this case,
12789 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12790 CC="$am_aux_dir/compile $CC"
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802 cflags_save="$CFLAGS"
12803 if test -z "$GCC"; then
12807 CFLAGS="-O2 -w -signed"
12808 PROFILE="-p -g3 -O2 -signed"
12810 sparc-sun-solaris*)
12812 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
12813 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
12824 DEBUG="-g -Wall -fsigned-char"
12825 CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
12826 PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
12829 DEBUG="-g -Wall -fsigned-char"
12830 CFLAGS="-O2 -ffast-math -fsigned-char"
12831 PROFILE="-pg -g -O2 -fsigned-char"
12834 DEBUG="-fno-common -g -Wall -fsigned-char"
12835 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
12836 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
12839 DEBUG="-g -Wall -fsigned-char"
12840 CFLAGS="-O2 -fsigned-char"
12841 PROFILE="-O2 -g -pg -fsigned-char"
12845 CFLAGS="$CFLAGS $cflags_save"
12846 DEBUG="$DEBUG $cflags_save"
12847 PROFILE="$PROFILE $cflags_save"
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12852 $as_echo_n "checking for ANSI C header files... " >&6; }
12853 if ${ac_cv_header_stdc+:} false; then :
12854 $as_echo_n "(cached) " >&6
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 #include <stdlib.h>
12859 #include <stdarg.h>
12860 #include <string.h>
12871 if ac_fn_c_try_compile "$LINENO"; then :
12872 ac_cv_header_stdc=yes
12874 ac_cv_header_stdc=no
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 if test $ac_cv_header_stdc = yes; then
12879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #include <string.h>
12885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12886 $EGREP "memchr" >/dev/null 2>&1; then :
12889 ac_cv_header_stdc=no
12895 if test $ac_cv_header_stdc = yes; then
12896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899 #include <stdlib.h>
12902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12903 $EGREP "free" >/dev/null 2>&1; then :
12906 ac_cv_header_stdc=no
12912 if test $ac_cv_header_stdc = yes; then
12913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12914 if test "$cross_compiling" = yes; then :
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12920 #include <stdlib.h>
12921 #if ((' ' & 0x0FF) == 0x020)
12922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12925 # define ISLOWER(c) \
12926 (('a' <= (c) && (c) <= 'i') \
12927 || ('j' <= (c) && (c) <= 'r') \
12928 || ('s' <= (c) && (c) <= 'z'))
12929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12937 for (i = 0; i < 256; i++)
12938 if (XOR (islower (i), ISLOWER (i))
12939 || toupper (i) != TOUPPER (i))
12944 if ac_fn_c_try_run "$LINENO"; then :
12947 ac_cv_header_stdc=no
12949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12950 conftest.$ac_objext conftest.beam conftest.$ac_ext
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12956 $as_echo "$ac_cv_header_stdc" >&6; }
12957 if test $ac_cv_header_stdc = yes; then
12959 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12963 INCLUDE_INTTYPES_H=0
12965 INCLUDE_SYS_TYPES_H=0
12966 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12967 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12968 INCLUDE_INTTYPES_H=1
12972 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12973 if test "x$ac_cv_header_stdint_h" = xyes; then :
12978 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12979 if test "x$ac_cv_header_sys_types_h" = xyes; then :
12980 INCLUDE_SYS_TYPES_H=1
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12986 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12987 if ${ac_cv_c_const+:} false; then :
12988 $as_echo_n "(cached) " >&6
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12997 #ifndef __cplusplus
12998 /* Ultrix mips cc rejects this sort of thing. */
12999 typedef int charset[2];
13000 const charset cs = { 0, 0 };
13001 /* SunOS 4.1.1 cc rejects this. */
13002 char const *const *pcpcc;
13004 /* NEC SVR4.0.2 mips cc rejects this. */
13005 struct point {int x, y;};
13006 static struct point const zero = {0,0};
13007 /* AIX XL C 1.02.0.0 rejects this.
13008 It does not let you subtract one const X* pointer from another in
13009 an arm of an if-expression whose if-part is not a constant
13011 const char *g = "string";
13012 pcpcc = &g + (g ? g-g : 0);
13013 /* HPUX 7.0 cc rejects these. */
13015 ppc = (char**) pcpcc;
13016 pcpcc = (char const *const *) ppc;
13017 { /* SCO 3.2v4 cc rejects this sort of thing. */
13020 char const *s = 0 ? (char *) 0 : (char const *) 0;
13025 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13026 int x[] = {25, 17};
13027 const int *foo = &x[0];
13030 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13031 typedef const int *iptr;
13035 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13036 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13037 struct s { int j; const int *ap[3]; } bx;
13038 struct s *b = &bx; b->j = 5;
13040 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13041 const int foo = 10;
13042 if (!foo) return 0;
13044 return !cs[0] && !zero.x;
13051 if ac_fn_c_try_compile "$LINENO"; then :
13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13059 $as_echo "$ac_cv_c_const" >&6; }
13060 if test $ac_cv_c_const = no; then
13062 $as_echo "#define const /**/" >>confdefs.h
13068 # The cast to long int works around a bug in the HP C Compiler
13069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13071 # This bug is HP SR number 8606223364.
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
13073 $as_echo_n "checking size of int16_t... " >&6; }
13074 if ${ac_cv_sizeof_int16_t+:} false; then :
13075 $as_echo_n "(cached) " >&6
13077 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
13080 if test "$ac_cv_type_int16_t" = yes; then
13081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13083 as_fn_error 77 "cannot compute sizeof (int16_t)
13084 See \`config.log' for more details" "$LINENO" 5; }
13086 ac_cv_sizeof_int16_t=0
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
13092 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
13096 cat >>confdefs.h <<_ACEOF
13097 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
13101 # The cast to long int works around a bug in the HP C Compiler
13102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13104 # This bug is HP SR number 8606223364.
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
13106 $as_echo_n "checking size of uint16_t... " >&6; }
13107 if ${ac_cv_sizeof_uint16_t+:} false; then :
13108 $as_echo_n "(cached) " >&6
13110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
13113 if test "$ac_cv_type_uint16_t" = yes; then
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13116 as_fn_error 77 "cannot compute sizeof (uint16_t)
13117 See \`config.log' for more details" "$LINENO" 5; }
13119 ac_cv_sizeof_uint16_t=0
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
13125 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
13129 cat >>confdefs.h <<_ACEOF
13130 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
13134 # The cast to long int works around a bug in the HP C Compiler
13135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13137 # This bug is HP SR number 8606223364.
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
13139 $as_echo_n "checking size of u_int16_t... " >&6; }
13140 if ${ac_cv_sizeof_u_int16_t+:} false; then :
13141 $as_echo_n "(cached) " >&6
13143 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
13146 if test "$ac_cv_type_u_int16_t" = yes; then
13147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13149 as_fn_error 77 "cannot compute sizeof (u_int16_t)
13150 See \`config.log' for more details" "$LINENO" 5; }
13152 ac_cv_sizeof_u_int16_t=0
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
13158 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
13162 cat >>confdefs.h <<_ACEOF
13163 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
13167 # The cast to long int works around a bug in the HP C Compiler
13168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13170 # This bug is HP SR number 8606223364.
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
13172 $as_echo_n "checking size of int32_t... " >&6; }
13173 if ${ac_cv_sizeof_int32_t+:} false; then :
13174 $as_echo_n "(cached) " >&6
13176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
13179 if test "$ac_cv_type_int32_t" = yes; then
13180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13182 as_fn_error 77 "cannot compute sizeof (int32_t)
13183 See \`config.log' for more details" "$LINENO" 5; }
13185 ac_cv_sizeof_int32_t=0
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
13191 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
13195 cat >>confdefs.h <<_ACEOF
13196 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
13200 # The cast to long int works around a bug in the HP C Compiler
13201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13203 # This bug is HP SR number 8606223364.
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
13205 $as_echo_n "checking size of uint32_t... " >&6; }
13206 if ${ac_cv_sizeof_uint32_t+:} false; then :
13207 $as_echo_n "(cached) " >&6
13209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
13212 if test "$ac_cv_type_uint32_t" = yes; then
13213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13215 as_fn_error 77 "cannot compute sizeof (uint32_t)
13216 See \`config.log' for more details" "$LINENO" 5; }
13218 ac_cv_sizeof_uint32_t=0
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
13224 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
13228 cat >>confdefs.h <<_ACEOF
13229 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
13233 # The cast to long int works around a bug in the HP C Compiler
13234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13236 # This bug is HP SR number 8606223364.
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
13238 $as_echo_n "checking size of u_int32_t... " >&6; }
13239 if ${ac_cv_sizeof_u_int32_t+:} false; then :
13240 $as_echo_n "(cached) " >&6
13242 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
13245 if test "$ac_cv_type_u_int32_t" = yes; then
13246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13248 as_fn_error 77 "cannot compute sizeof (u_int32_t)
13249 See \`config.log' for more details" "$LINENO" 5; }
13251 ac_cv_sizeof_u_int32_t=0
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
13257 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
13261 cat >>confdefs.h <<_ACEOF
13262 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
13266 # The cast to long int works around a bug in the HP C Compiler
13267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13269 # This bug is HP SR number 8606223364.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13271 $as_echo_n "checking size of int64_t... " >&6; }
13272 if ${ac_cv_sizeof_int64_t+:} false; then :
13273 $as_echo_n "(cached) " >&6
13275 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
13278 if test "$ac_cv_type_int64_t" = yes; then
13279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13281 as_fn_error 77 "cannot compute sizeof (int64_t)
13282 See \`config.log' for more details" "$LINENO" 5; }
13284 ac_cv_sizeof_int64_t=0
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13290 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13294 cat >>confdefs.h <<_ACEOF
13295 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13299 # The cast to long int works around a bug in the HP C Compiler
13300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13302 # This bug is HP SR number 8606223364.
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
13304 $as_echo_n "checking size of uint64_t... " >&6; }
13305 if ${ac_cv_sizeof_uint64_t+:} false; then :
13306 $as_echo_n "(cached) " >&6
13308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
13311 if test "$ac_cv_type_uint64_t" = yes; then
13312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13314 as_fn_error 77 "cannot compute sizeof (uint64_t)
13315 See \`config.log' for more details" "$LINENO" 5; }
13317 ac_cv_sizeof_uint64_t=0
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
13323 $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
13327 cat >>confdefs.h <<_ACEOF
13328 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
13332 # The cast to long int works around a bug in the HP C Compiler
13333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13335 # This bug is HP SR number 8606223364.
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13337 $as_echo_n "checking size of short... " >&6; }
13338 if ${ac_cv_sizeof_short+:} false; then :
13339 $as_echo_n "(cached) " >&6
13341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13344 if test "$ac_cv_type_short" = yes; then
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error 77 "cannot compute sizeof (short)
13348 See \`config.log' for more details" "$LINENO" 5; }
13350 ac_cv_sizeof_short=0
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13356 $as_echo "$ac_cv_sizeof_short" >&6; }
13360 cat >>confdefs.h <<_ACEOF
13361 #define SIZEOF_SHORT $ac_cv_sizeof_short
13365 # The cast to long int works around a bug in the HP C Compiler
13366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13368 # This bug is HP SR number 8606223364.
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13370 $as_echo_n "checking size of int... " >&6; }
13371 if ${ac_cv_sizeof_int+:} false; then :
13372 $as_echo_n "(cached) " >&6
13374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13377 if test "$ac_cv_type_int" = yes; then
13378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13380 as_fn_error 77 "cannot compute sizeof (int)
13381 See \`config.log' for more details" "$LINENO" 5; }
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13389 $as_echo "$ac_cv_sizeof_int" >&6; }
13393 cat >>confdefs.h <<_ACEOF
13394 #define SIZEOF_INT $ac_cv_sizeof_int
13398 # The cast to long int works around a bug in the HP C Compiler
13399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13401 # This bug is HP SR number 8606223364.
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13403 $as_echo_n "checking size of long... " >&6; }
13404 if ${ac_cv_sizeof_long+:} false; then :
13405 $as_echo_n "(cached) " >&6
13407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13410 if test "$ac_cv_type_long" = yes; then
13411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13413 as_fn_error 77 "cannot compute sizeof (long)
13414 See \`config.log' for more details" "$LINENO" 5; }
13416 ac_cv_sizeof_long=0
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13422 $as_echo "$ac_cv_sizeof_long" >&6; }
13426 cat >>confdefs.h <<_ACEOF
13427 #define SIZEOF_LONG $ac_cv_sizeof_long
13431 # The cast to long int works around a bug in the HP C Compiler
13432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13434 # This bug is HP SR number 8606223364.
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13436 $as_echo_n "checking size of long long... " >&6; }
13437 if ${ac_cv_sizeof_long_long+:} false; then :
13438 $as_echo_n "(cached) " >&6
13440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13443 if test "$ac_cv_type_long_long" = yes; then
13444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13446 as_fn_error 77 "cannot compute sizeof (long long)
13447 See \`config.log' for more details" "$LINENO" 5; }
13449 ac_cv_sizeof_long_long=0
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13455 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13459 cat >>confdefs.h <<_ACEOF
13460 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13466 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
13467 $ac_cv_sizeof_short) SIZE16="short";;
13468 $ac_cv_sizeof_int) SIZE16="int";;
13472 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
13473 $ac_cv_sizeof_short) USIZE16="unsigned short";;
13474 $ac_cv_sizeof_int) USIZE16="unsigned int";;
13475 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
13479 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
13480 $ac_cv_sizeof_short) SIZE32="short";;
13481 $ac_cv_sizeof_int) SIZE32="int";;
13482 $ac_cv_sizeof_long) SIZE32="long";;
13486 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
13487 $ac_cv_sizeof_short) USIZE32="unsigned short";;
13488 $ac_cv_sizeof_int) USIZE32="unsigned int";;
13489 $ac_cv_sizeof_long) USIZE32="unsigned long";;
13490 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
13494 $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
13495 $ac_cv_sizeof_int) SIZE64="int";;
13496 $ac_cv_sizeof_long) SIZE64="long";;
13497 $ac_cv_sizeof_long_long) SIZE64="long long";;
13501 $ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
13502 $ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
13503 $ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
13504 $ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
13507 if test -z "$SIZE16"; then
13508 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
13510 if test -z "$USIZE16"; then
13511 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
13513 if test -z "$SIZE32"; then
13514 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
13516 if test -z "$USIZE32"; then
13517 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
13519 if test -z "$SIZE64"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
13521 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
13523 if test -z "$USIZE64"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No unsigned 64 bit type found on this platform!" >&5
13525 $as_echo "$as_me: WARNING: No unsigned 64 bit type found on this platform!" >&2;}
13528 # Check whether --enable-crc was given.
13529 if test "${enable_crc+set}" = set; then :
13530 enableval=$enable_crc;
13536 if test "$enable_crc" = "no"; then
13538 DISABLE_CRC_FALSE='#'
13540 DISABLE_CRC_TRUE='#'
13545 if test "$enable_crc" = "no"; then :
13548 $as_echo "#define DISABLE_CRC 1" >>confdefs.h
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13554 $as_echo_n "checking for working memcmp... " >&6; }
13555 if ${ac_cv_func_memcmp_working+:} false; then :
13556 $as_echo_n "(cached) " >&6
13558 if test "$cross_compiling" = yes; then :
13559 ac_cv_func_memcmp_working=no
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 $ac_includes_default
13568 /* Some versions of memcmp are not 8-bit clean. */
13569 char c0 = '\100', c1 = '\200', c2 = '\201';
13570 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13573 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13574 or more and with at least one buffer not starting on a 4-byte boundary.
13575 William Lewis provided this test program. */
13580 for (i = 0; i < 4; i++)
13584 strcpy (a, "--------01111111");
13585 strcpy (b, "--------10000000");
13586 if (memcmp (a, b, 16) >= 0)
13596 if ac_fn_c_try_run "$LINENO"; then :
13597 ac_cv_func_memcmp_working=yes
13599 ac_cv_func_memcmp_working=no
13601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602 conftest.$ac_objext conftest.beam conftest.$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13607 $as_echo "$ac_cv_func_memcmp_working" >&6; }
13608 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13609 *" memcmp.$ac_objext "* ) ;;
13610 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13634 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
13636 ac_config_headers="$ac_config_headers config.h"
13639 cat >confcache <<\_ACEOF
13640 # This file is a shell script that caches the results of configure
13641 # tests run on this system so they can be shared between configure
13642 # scripts and configure runs, see configure's option --config-cache.
13643 # It is not useful on other systems. If it contains results you don't
13644 # want to keep, you may remove or edit it.
13646 # config.status only pays attention to the cache file if you give it
13647 # the --recheck option to rerun configure.
13649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13651 # following values.
13655 # The following way of writing the cache mishandles newlines in values,
13656 # but we know of no workaround that is simple, portable, and efficient.
13657 # So, we kill variables containing newlines.
13658 # Ultrix sh set writes to stderr and can't be redirected directly,
13659 # and sets the high bit in the cache file unless we assign to the vars.
13661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13662 eval ac_val=\$$ac_var
13666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13670 _ | IFS | as_nl) ;; #(
13671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13672 *) { eval $ac_var=; unset $ac_var;} ;;
13678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13679 *${as_nl}ac_space=\ *)
13680 # `set' does not quote correctly, so add quotes: double-quote
13681 # substitution turns \\\\ into \\, and sed turns \\ into \.
13684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13687 # `set' quotes correctly as required by POSIX, so do not add quotes.
13688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13702 if test -w "$cache_file"; then
13703 if test "x$cache_file" != "x/dev/null"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13705 $as_echo "$as_me: updating cache $cache_file" >&6;}
13706 if test ! -f "$cache_file" || test -h "$cache_file"; then
13707 cat confcache >"$cache_file"
13709 case $cache_file in #(
13711 mv -f confcache "$cache_file"$$ &&
13712 mv -f "$cache_file"$$ "$cache_file" ;; #(
13714 mv -f confcache "$cache_file" ;;
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13726 # Let make expand exec_prefix.
13727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13729 DEFS=-DHAVE_CONFIG_H
13734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13735 # 1. Remove the extension, and $U if already installed.
13736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13739 # will be set to the directory where LIBOBJS objects are built.
13740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13743 LIBOBJS=$ac_libobjs
13745 LTLIBOBJS=$ac_ltlibobjs
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13749 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13750 if test -n "$am_sleep_pid"; then
13751 # Hide warnings about reused PIDs.
13752 wait $am_sleep_pid 2>/dev/null
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13755 $as_echo "done" >&6; }
13756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13757 as_fn_error $? "conditional \"AMDEP\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13760 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13764 if test -n "$EXEEXT"; then
13766 am__EXEEXT_FALSE='#'
13768 am__EXEEXT_TRUE='#'
13772 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13773 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13776 if test -z "${DISABLE_CRC_TRUE}" && test -z "${DISABLE_CRC_FALSE}"; then
13777 as_fn_error $? "conditional \"DISABLE_CRC\" was never defined.
13778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13781 : "${CONFIG_STATUS=./config.status}"
13783 ac_clean_files_save=$ac_clean_files
13784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13790 # Generated by $as_me.
13791 # Run this file to recreate the current configuration.
13792 # Compiler output produced by configure, useful for debugging
13793 # configure, is in config.log if it exists.
13796 ac_cs_recheck=false
13799 SHELL=\${CONFIG_SHELL-$SHELL}
13802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13803 ## -------------------- ##
13804 ## M4sh Initialization. ##
13805 ## -------------------- ##
13807 # Be more Bourne compatible
13808 DUALCASE=1; export DUALCASE # for MKS sh
13809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13813 # is contrary to our usage. Disable this feature.
13814 alias -g '${1+"$@"}'='"$@"'
13815 setopt NO_GLOB_SUBST
13817 case `(set -o) 2>/dev/null` in #(
13829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13833 # Prefer a ksh shell builtin over an external printf program on Solaris,
13834 # but without wasting forks for bash or zsh.
13835 if test -z "$BASH_VERSION$ZSH_VERSION" \
13836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13837 as_echo='print -r --'
13838 as_echo_n='print -rn --'
13839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13840 as_echo='printf %s\n'
13841 as_echo_n='printf %s'
13843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13845 as_echo_n='/usr/ucb/echo -n'
13847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13848 as_echo_n_body='eval
13852 expr "X$arg" : "X\\(.*\\)$as_nl";
13853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13857 export as_echo_n_body
13858 as_echo_n='sh -c $as_echo_n_body as_echo'
13860 export as_echo_body
13861 as_echo='sh -c $as_echo_body as_echo'
13864 # The user is always right.
13865 if test "${PATH_SEPARATOR+set}" != set; then
13867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13875 # We need space, tab and new line, in precisely that order. Quoting is
13876 # there to prevent editors from complaining about space-tab.
13877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13878 # splitting by setting IFS to empty value.)
13881 # Find who we are. Look in the path if we contain no directory separator.
13884 *[\\/]* ) as_myself=$0 ;;
13885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13889 test -z "$as_dir" && as_dir=.
13890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13896 # We did not find ourselves, most probably we were run as `sh COMMAND'
13897 # in which case we are not to be found in the path.
13898 if test "x$as_myself" = x; then
13901 if test ! -f "$as_myself"; then
13902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13906 # Unset variables that we do not need and which cause bugs (e.g. in
13907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13908 # suppresses any "Segmentation fault" message there. '((' could
13909 # trigger a bug in pdksh 5.2.14.
13910 for as_var in BASH_ENV ENV MAIL MAILPATH
13911 do eval test x\${$as_var+set} = xset \
13912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13928 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13929 # ----------------------------------------
13930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13932 # script with STATUS, using 1 if that was 0.
13935 as_status=$1; test $as_status -eq 0 && as_status=1
13937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13940 $as_echo "$as_me: error: $2" >&2
13941 as_fn_exit $as_status
13945 # as_fn_set_status STATUS
13946 # -----------------------
13947 # Set $? to STATUS, without forking.
13948 as_fn_set_status ()
13951 } # as_fn_set_status
13953 # as_fn_exit STATUS
13954 # -----------------
13955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13959 as_fn_set_status $1
13965 # Portably unset VAR.
13968 { eval $1=; unset $1;}
13970 as_unset=as_fn_unset
13971 # as_fn_append VAR VALUE
13972 # ----------------------
13973 # Append the text in VALUE to the end of the definition contained in VAR. Take
13974 # advantage of any shell optimizations that allow amortized linear growth over
13975 # repeated appends, instead of the typical quadratic growth present in naive
13977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13978 eval 'as_fn_append ()
13989 # as_fn_arith ARG...
13990 # ------------------
13991 # Perform arithmetic evaluation on the ARGs, and store the result in the
13992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13993 # must be portable across $(()) and expr.
13994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13995 eval 'as_fn_arith ()
14002 as_val=`expr "$@" || test $? -eq 1`
14007 if expr a : '\(a\)' >/dev/null 2>&1 &&
14008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14015 as_basename=basename
14020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14026 as_me=`$as_basename -- "$0" ||
14027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14028 X"$0" : 'X\(//\)$' \| \
14029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14031 sed '/^.*\/\([^/][^/]*\)\/*$/{
14045 # Avoid depending upon Character Ranges.
14046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14049 as_cr_digits='0123456789'
14050 as_cr_alnum=$as_cr_Letters$as_cr_digits
14052 ECHO_C= ECHO_N= ECHO_T=
14053 case `echo -n x` in #(((((
14055 case `echo 'xy\c'` in
14056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14065 rm -f conf$$ conf$$.exe conf$$.file
14066 if test -d conf$$.dir; then
14067 rm -f conf$$.dir/conf$$.file
14070 mkdir conf$$.dir 2>/dev/null
14072 if (echo >conf$$.file) 2>/dev/null; then
14073 if ln -s conf$$.file conf$$ 2>/dev/null; then
14075 # ... but there are two gotchas:
14076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14078 # In both cases, we have to default to `cp -pR'.
14079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14081 elif ln conf$$.file conf$$ 2>/dev/null; then
14089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14090 rmdir conf$$.dir 2>/dev/null
14095 # Create "$as_dir" as a directory, including parents if necessary.
14100 -*) as_dir=./$as_dir;;
14102 test -d "$as_dir" || eval $as_mkdir_p || {
14106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14107 *) as_qdir=$as_dir;;
14109 as_dirs="'$as_qdir' $as_dirs"
14110 as_dir=`$as_dirname -- "$as_dir" ||
14111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112 X"$as_dir" : 'X\(//\)[^/]' \| \
14113 X"$as_dir" : 'X\(//\)$' \| \
14114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14115 $as_echo X"$as_dir" |
14116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14120 /^X\(\/\/\)[^/].*/{
14133 test -d "$as_dir" && break
14135 test -z "$as_dirs" || eval "mkdir $as_dirs"
14136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14140 if mkdir -p . 2>/dev/null; then
14141 as_mkdir_p='mkdir -p "$as_dir"'
14143 test -d ./-p && rmdir ./-p
14148 # as_fn_executable_p FILE
14149 # -----------------------
14150 # Test if FILE is an executable regular file.
14151 as_fn_executable_p ()
14153 test -f "$1" && test -x "$1"
14154 } # as_fn_executable_p
14155 as_test_x='test -x'
14156 as_executable_p=as_fn_executable_p
14158 # Sed expression to map a string onto a valid CPP name.
14159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14161 # Sed expression to map a string onto a valid variable name.
14162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14166 ## ----------------------------------- ##
14167 ## Main body of $CONFIG_STATUS script. ##
14168 ## ----------------------------------- ##
14170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 # Save the log message, to keep $0 and so on meaningful, and to
14174 # report actual input values of CONFIG_FILES etc. instead of their
14175 # values after options handling.
14177 This file was extended by libogg $as_me 1.3.5, which was
14178 generated by GNU Autoconf 2.69. Invocation command line was
14180 CONFIG_FILES = $CONFIG_FILES
14181 CONFIG_HEADERS = $CONFIG_HEADERS
14182 CONFIG_LINKS = $CONFIG_LINKS
14183 CONFIG_COMMANDS = $CONFIG_COMMANDS
14186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14191 case $ac_config_files in *"
14192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14195 case $ac_config_headers in *"
14196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201 # Files that config.status was made for.
14202 config_files="$ac_config_files"
14203 config_headers="$ac_config_headers"
14204 config_commands="$ac_config_commands"
14208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14210 \`$as_me' instantiates files and other configuration actions
14211 from templates according to the current configuration. Unless the files
14212 and actions are specified as TAGs, all are instantiated by default.
14214 Usage: $0 [OPTION]... [TAG]...
14216 -h, --help print this help, then exit
14217 -V, --version print version number and configuration settings, then exit
14218 --config print configuration, then exit
14219 -q, --quiet, --silent
14220 do not print progress messages
14221 -d, --debug don't remove temporary files
14222 --recheck update $as_me by reconfiguring in the same conditions
14223 --file=FILE[:TEMPLATE]
14224 instantiate the configuration file FILE
14225 --header=FILE[:TEMPLATE]
14226 instantiate the configuration header FILE
14228 Configuration files:
14231 Configuration headers:
14234 Configuration commands:
14237 Report bugs to <ogg-dev@xiph.org>."
14240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14243 libogg config.status 1.3.5
14244 configured by $0, generated by GNU Autoconf 2.69,
14245 with options \\"\$ac_cs_config\\"
14247 Copyright (C) 2012 Free Software Foundation, Inc.
14248 This config.status script is free software; the Free Software Foundation
14249 gives unlimited permission to copy, distribute and modify it."
14256 test -n "\$AWK" || AWK=awk
14259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14260 # The default lists apply if the user does not specify any file.
14266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14283 # Handling of the options.
14284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14287 $as_echo "$ac_cs_version"; exit ;;
14288 --config | --confi | --conf | --con | --co | --c )
14289 $as_echo "$ac_cs_config"; exit ;;
14290 --debug | --debu | --deb | --de | --d | -d )
14292 --file | --fil | --fi | --f )
14295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14296 '') as_fn_error $? "missing file argument" ;;
14298 as_fn_append CONFIG_FILES " '$ac_optarg'"
14299 ac_need_defaults=false;;
14300 --header | --heade | --head | --hea )
14303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14306 ac_need_defaults=false;;
14308 # Conflict between --help and --header
14309 as_fn_error $? "ambiguous option: \`$1'
14310 Try \`$0 --help' for more information.";;
14311 --help | --hel | -h )
14312 $as_echo "$ac_cs_usage"; exit ;;
14313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14317 # This is an error.
14318 -*) as_fn_error $? "unrecognized option: \`$1'
14319 Try \`$0 --help' for more information." ;;
14321 *) as_fn_append ac_config_targets " $1"
14322 ac_need_defaults=false ;;
14328 ac_configure_extra_args=
14330 if $ac_cs_silent; then
14332 ac_configure_extra_args="$ac_configure_extra_args --silent"
14336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14337 if \$ac_cs_recheck; then
14338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14341 CONFIG_SHELL='$SHELL'
14342 export CONFIG_SHELL
14347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14352 ## Running $as_me. ##
14358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14364 # The HP-UX ksh and POSIX shell print the target directory to stdout
14365 # if CDPATH is set.
14366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14368 sed_quote_subst='$sed_quote_subst'
14369 double_quote_subst='$double_quote_subst'
14370 delay_variable_subst='$delay_variable_subst'
14371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14377 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14378 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14379 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14380 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14381 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14382 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14383 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14384 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14385 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14386 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14387 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14388 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14389 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14390 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14391 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14392 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14393 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14394 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14395 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14396 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14397 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14398 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14399 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14400 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14401 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14402 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14403 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14404 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14405 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14406 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14407 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14408 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14409 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14410 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14411 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14412 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14413 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14414 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14427 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14428 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14429 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"`'
14430 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14431 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14432 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14433 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14434 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14435 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14436 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14437 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14438 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14439 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14440 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14441 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14442 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14443 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14444 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14445 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14446 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14447 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14448 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14449 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14450 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14451 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14452 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14453 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14454 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14455 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14456 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14457 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14458 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14459 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14460 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14461 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14462 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14463 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14464 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14465 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14466 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14467 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14468 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14469 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14470 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14471 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14472 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14473 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14474 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14475 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14476 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14477 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14478 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14479 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14480 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14481 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14482 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14483 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14484 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14485 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14486 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14487 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14488 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14489 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14490 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14491 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14492 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14493 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14494 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14495 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14496 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14497 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14498 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14499 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14500 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14501 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14502 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14503 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14504 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14505 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14508 LTCFLAGS='$LTCFLAGS'
14509 compiler='$compiler_DEFAULT'
14511 # A function that is used when there is no print builtin or printf.
14512 func_fallback_echo ()
14514 eval 'cat <<_LTECHO_EOF
14519 # Quote evaled strings.
14534 deplibs_check_method \
14539 sharedlib_from_linklib_cmd \
14542 archiver_list_spec \
14548 lt_cv_sys_global_symbol_pipe \
14549 lt_cv_sys_global_symbol_to_cdecl \
14550 lt_cv_sys_global_symbol_to_import \
14551 lt_cv_sys_global_symbol_to_c_name_address \
14552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14553 lt_cv_nm_interface \
14554 nm_file_list_spec \
14555 lt_cv_truncate_bin \
14556 lt_prog_compiler_no_builtin_flag \
14557 lt_prog_compiler_pic \
14558 lt_prog_compiler_wl \
14559 lt_prog_compiler_static \
14560 lt_cv_prog_compiler_c_o \
14569 export_dynamic_flag_spec \
14570 whole_archive_flag_spec \
14571 compiler_needs_object \
14573 allow_undefined_flag \
14574 no_undefined_flag \
14575 hardcode_libdir_flag_spec \
14576 hardcode_libdir_separator \
14580 variables_saved_for_relink \
14582 library_names_spec \
14584 install_override_mode \
14588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14589 *[\\\\\\\`\\"\\\$]*)
14590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14593 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14598 # Double-quote double-evaled strings.
14599 for var in reload_cmds \
14600 old_postinstall_cmds \
14601 old_postuninstall_cmds \
14603 extract_expsyms_cmds \
14604 old_archive_from_new_cmds \
14605 old_archive_from_expsyms_cmds \
14607 archive_expsym_cmds \
14609 module_expsym_cmds \
14610 export_symbols_cmds \
14614 postuninstall_cmds \
14616 sys_lib_search_path_spec \
14617 configure_time_dlsearch_path \
14618 configure_time_lt_sys_library_path; do
14619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14620 *[\\\\\\\`\\"\\\$]*)
14621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14629 ac_aux_dir='$ac_aux_dir'
14631 # See if we are running on zsh, and set the options that allow our
14632 # commands through without removal of \ escapes INIT.
14633 if test -n "\${ZSH_VERSION+set}"; then
14634 setopt NO_GLOB_SUBST
14645 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14651 # Handling of arguments.
14652 for ac_config_target in $ac_config_targets
14654 case $ac_config_target in
14655 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14656 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14658 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14659 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14660 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
14661 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14662 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
14663 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
14664 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
14665 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
14666 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
14667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14669 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14674 # If the user did not use the arguments to specify the items to instantiate,
14675 # then the envvar interface is used. Set only those that are not.
14676 # We use the long form for the default assignment because of an extremely
14677 # bizarre bug on SunOS 4.1.3.
14678 if $ac_need_defaults; then
14679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14684 # Have a temporary directory for convenience. Make it in the build tree
14685 # simply because there is no reason against having it here, and in addition,
14686 # creating and moving files from /tmp can sometimes cause problems.
14687 # Hook for its removal unless debugging.
14688 # Note that there is a small window in which the directory will not be cleaned:
14689 # after its creation but before its name has been assigned to `$tmp'.
14693 trap 'exit_status=$?
14694 : "${ac_tmp:=$tmp}"
14695 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14697 trap 'as_fn_exit 1' 1 2 13 15
14699 # Create a (secure) tmp directory for tmp files.
14702 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14706 tmp=./conf$$-$RANDOM
14707 (umask 077 && mkdir "$tmp")
14708 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14711 # Set up the scripts for CONFIG_FILES section.
14712 # No need to generate them if there are no CONFIG_FILES.
14713 # This happens for instance with `./config.status config.h'.
14714 if test -n "$CONFIG_FILES"; then
14717 ac_cr=`echo X | tr X '\015'`
14718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14719 # But we know of no other shell where ac_cr would be empty at this
14720 # point, so we can use a bashism as a fallback.
14721 if test "x$ac_cr" = x; then
14722 eval ac_cr=\$\'\\r\'
14724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14728 ac_cs_awk_cr=$ac_cr
14731 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14736 echo "cat >conf$$subs.awk <<_ACEOF" &&
14737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14739 } >conf$$subs.sh ||
14740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14741 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14743 for ac_last_try in false false false false false :; do
14744 . ./conf$$subs.sh ||
14745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14748 if test $ac_delim_n = $ac_delim_num; then
14750 elif $ac_last_try; then
14751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14756 rm -f conf$$subs.sh
14758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14759 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14763 s/^/S["/; s/!.*/"]=/
14773 s/\(.\{148\}\)..*/\1/
14775 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14787 s/\(.\{148\}\)..*/\1/
14789 s/["\\]/\\&/g; s/^/"/; s/$/"/
14793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14798 ' <conf$$subs.awk | sed '
14803 ' >>$CONFIG_STATUS || ac_write_fail=1
14804 rm -f conf$$subs.awk
14805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14807 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14808 for (key in S) S_is_set[key] = 1
14814 nfields = split(line, field, "@")
14816 len = length(field[1])
14817 for (i = 2; i < nfields; i++) {
14819 keylen = length(key)
14820 if (S_is_set[key]) {
14822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14823 len += length(value) + length(field[++i])
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14839 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14840 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14843 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14844 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14845 # trailing colons and then remove the whole line if VPATH becomes empty
14846 # (actually we leave an empty line to preserve line numbers).
14847 if test "x$srcdir" = x.; then
14848 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14867 fi # test -n "$CONFIG_FILES"
14869 # Set up the scripts for CONFIG_HEADERS section.
14870 # No need to generate them if there are no CONFIG_HEADERS.
14871 # This happens for instance with `./config.status Makefile'.
14872 if test -n "$CONFIG_HEADERS"; then
14873 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14877 # Transform confdefs.h into an awk script `defines.awk', embedded as
14878 # here-document in config.status, that substitutes the proper values into
14879 # config.h.in to produce config.h.
14881 # Create a delimiter string that does not exist in confdefs.h, to ease
14882 # handling of long lines.
14884 for ac_last_try in false false :; do
14885 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14886 if test -z "$ac_tt"; then
14888 elif $ac_last_try; then
14889 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14895 # For the awk script, D is an array of macro values keyed by name,
14896 # likewise P contains macro parameters if any. Preserve backslash
14897 # newline sequences.
14899 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14901 s/.\{148\}/&'"$ac_delim"'/g
14904 s/^[ ]*#[ ]*define[ ][ ]*/ /
14911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14913 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14917 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14918 D["\1"]=" \3\\\\\\n"\\/p
14920 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14925 s/.\{148\}/&'"$ac_delim"'/g
14930 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14933 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14935 ' <confdefs.h | sed '
14936 s/'"$ac_delim"'/"\\\
14937 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14940 for (key in D) D_is_set[key] = 1
14943 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14945 split(line, arg, " ")
14946 if (arg[1] == "#") {
14950 defundef = substr(arg[1], 2)
14953 split(mac1, mac2, "(") #)
14955 prefix = substr(line, 1, index(line, defundef) - 1)
14956 if (D_is_set[macro]) {
14957 # Preserve the white space surrounding the "#".
14958 print prefix "define", macro P[macro] D[macro]
14961 # Replace #undef with comments. This is necessary, for example,
14962 # in the case of _POSIX_SOURCE, which is predefined and required
14963 # on some systems where configure will not decide to define it.
14964 if (defundef == "undef") {
14965 print "/*", prefix defundef, macro, "*/"
14973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14974 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14975 fi # test -n "$CONFIG_HEADERS"
14978 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14983 :[FHLC]) ac_mode=$ac_tag; continue;;
14985 case $ac_mode$ac_tag in
14987 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14988 :[FH]-) ac_tag=-:-;;
14989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15006 -) ac_f="$ac_tmp/stdin";;
15007 *) # Look for the file first in the build tree, then in the source tree
15008 # (if the path is not absolute). The absolute path cannot be DOS-style,
15009 # because $ac_f cannot contain `:'.
15013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15015 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15017 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15018 as_fn_append ac_file_inputs " '$ac_f'"
15021 # Let's still pretend it is `configure' which instantiates (i.e., don't
15022 # use $as_me), people would be surprised to read:
15023 # /* config.h. Generated by config.status. */
15024 configure_input='Generated from '`
15025 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15027 if test x"$ac_file" != x-; then
15028 configure_input="$ac_file. $configure_input"
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15030 $as_echo "$as_me: creating $ac_file" >&6;}
15032 # Neutralize special characters interpreted by sed in replacement strings.
15033 case $configure_input in #(
15034 *\&* | *\|* | *\\* )
15035 ac_sed_conf_input=`$as_echo "$configure_input" |
15036 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15037 *) ac_sed_conf_input=$configure_input;;
15041 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15047 ac_dir=`$as_dirname -- "$ac_file" ||
15048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15049 X"$ac_file" : 'X\(//\)[^/]' \| \
15050 X"$ac_file" : 'X\(//\)$' \| \
15051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15052 $as_echo X"$ac_file" |
15053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15057 /^X\(\/\/\)[^/].*/{
15070 as_dir="$ac_dir"; as_fn_mkdir_p
15074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15077 # A ".." for each directory in $ac_dir_suffix.
15078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15079 case $ac_top_builddir_sub in
15080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15084 ac_abs_top_builddir=$ac_pwd
15085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15086 # for backward compatibility:
15087 ac_top_builddir=$ac_top_build_prefix
15090 .) # We are building in place.
15092 ac_top_srcdir=$ac_top_builddir_sub
15093 ac_abs_top_srcdir=$ac_pwd ;;
15094 [\\/]* | ?:[\\/]* ) # Absolute name.
15095 ac_srcdir=$srcdir$ac_dir_suffix;
15096 ac_top_srcdir=$srcdir
15097 ac_abs_top_srcdir=$srcdir ;;
15098 *) # Relative name.
15099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15100 ac_top_srcdir=$ac_top_build_prefix$srcdir
15101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15113 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15114 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15116 ac_MKDIR_P=$MKDIR_P
15118 [\\/$]* | ?:[\\/]* ) ;;
15119 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15124 # If the template does not know about datarootdir, expand it.
15125 # FIXME: This hack should be removed a few years after 2.60.
15126 ac_datarootdir_hack=; ac_datarootdir_seen=
15137 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15138 *datarootdir*) ac_datarootdir_seen=yes;;
15139 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15141 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144 ac_datarootdir_hack='
15145 s&@datadir@&$datadir&g
15146 s&@docdir@&$docdir&g
15147 s&@infodir@&$infodir&g
15148 s&@localedir@&$localedir&g
15149 s&@mandir@&$mandir&g
15150 s&\\\${datarootdir}&$datarootdir&g' ;;
15154 # Neutralize VPATH when `$srcdir' = `.'.
15155 # Shell code in configure.ac might set extrasub.
15156 # FIXME: do we really want to maintain this feature?
15157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15158 ac_sed_extra="$ac_vpsub
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15164 s|@configure_input@|$ac_sed_conf_input|;t t
15165 s&@top_builddir@&$ac_top_builddir_sub&;t t
15166 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15167 s&@srcdir@&$ac_srcdir&;t t
15168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15169 s&@top_srcdir@&$ac_top_srcdir&;t t
15170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15171 s&@builddir@&$ac_builddir&;t t
15172 s&@abs_builddir@&$ac_abs_builddir&;t t
15173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15174 s&@INSTALL@&$ac_INSTALL&;t t
15175 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15176 $ac_datarootdir_hack
15178 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15179 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15181 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15182 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15183 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15184 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15186 which seems to be undefined. Please make sure it is defined" >&5
15187 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15188 which seems to be undefined. Please make sure it is defined" >&2;}
15190 rm -f "$ac_tmp/stdin"
15192 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15193 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15201 if test x"$ac_file" != x-; then
15203 $as_echo "/* $configure_input */" \
15204 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15205 } >"$ac_tmp/config.h" \
15206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15207 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15209 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15212 mv "$ac_tmp/config.h" "$ac_file" \
15213 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15216 $as_echo "/* $configure_input */" \
15217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15218 || as_fn_error $? "could not create -" "$LINENO" 5
15220 # Compute "$ac_file"'s index in $config_headers.
15223 for _am_header in $config_headers :; do
15224 case $_am_header in
15225 $_am_arg | $_am_arg:* )
15228 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15231 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15232 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15233 X"$_am_arg" : 'X\(//\)[^/]' \| \
15234 X"$_am_arg" : 'X\(//\)$' \| \
15235 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15236 $as_echo X"$_am_arg" |
15237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15241 /^X\(\/\/\)[^/].*/{
15253 s/.*/./; q'`/stamp-h$_am_stamp_count
15256 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15257 $as_echo "$as_me: executing $ac_file commands" >&6;}
15262 case $ac_file$ac_mode in
15265 # See if we are running on zsh, and set the options that allow our
15266 # commands through without removal of \ escapes.
15267 if test -n "${ZSH_VERSION+set}"; then
15268 setopt NO_GLOB_SUBST
15272 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15275 cat <<_LT_EOF >> "$cfgfile"
15277 # Generated automatically by $as_me ($PACKAGE) $VERSION
15278 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15280 # Provide generalized library-building support services.
15281 # Written by Gordon Matzigkeit, 1996
15283 # Copyright (C) 2014 Free Software Foundation, Inc.
15284 # This is free software; see the source for copying conditions. There is NO
15285 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15287 # GNU Libtool is free software; you can redistribute it and/or modify
15288 # it under the terms of the GNU General Public License as published by
15289 # the Free Software Foundation; either version 2 of of the License, or
15290 # (at your option) any later version.
15292 # As a special exception to the GNU General Public License, if you
15293 # distribute this file as part of a program or library that is built
15294 # using GNU Libtool, you may include this file under the same
15295 # distribution terms that you use for the rest of that program.
15297 # GNU Libtool is distributed in the hope that it will be useful, but
15298 # WITHOUT ANY WARRANTY; without even the implied warranty of
15299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15300 # GNU General Public License for more details.
15302 # You should have received a copy of the GNU General Public License
15303 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15306 # The names of the tagged configurations supported by this script.
15309 # Configured defaults for sys_lib_dlsearch_path munging.
15310 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15312 # ### BEGIN LIBTOOL CONFIG
15314 # Which release of libtool.m4 was used?
15315 macro_version=$macro_version
15316 macro_revision=$macro_revision
15318 # Whether or not to build shared libraries.
15319 build_libtool_libs=$enable_shared
15321 # Whether or not to build static libraries.
15322 build_old_libs=$enable_static
15324 # What type of objects to build.
15327 # Whether or not to optimize for fast installation.
15328 fast_install=$enable_fast_install
15330 # Shared archive member basename,for filename based shared library versioning on AIX.
15331 shared_archive_member_spec=$shared_archive_member_spec
15333 # Shell to use when invoking shell scripts.
15336 # An echo program that protects backslashes.
15339 # The PATH separator for the build system.
15340 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15343 host_alias=$host_alias
15347 # The build system.
15348 build_alias=$build_alias
15352 # A sed program that does not truncate output.
15355 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15356 Xsed="\$SED -e 1s/^X//"
15358 # A grep program that handles long lines.
15364 # A literal string matcher.
15367 # A BSD- or MS-compatible name lister.
15370 # Whether we need soft or hard links.
15373 # What is the maximum length of a command?
15374 max_cmd_len=$max_cmd_len
15376 # Object file suffix (normally "o").
15379 # Executable file suffix (normally "").
15382 # whether the shell understands "unset".
15385 # turn spaces into newlines.
15388 # turn newlines into spaces.
15391 # convert \$build file names to \$host format.
15392 to_host_file_cmd=$lt_cv_to_host_file_cmd
15394 # convert \$build files to toolchain format.
15395 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15397 # An object symbol dumper.
15398 OBJDUMP=$lt_OBJDUMP
15400 # Method to check whether dependent libraries are shared objects.
15401 deplibs_check_method=$lt_deplibs_check_method
15403 # Command to use when deplibs_check_method = "file_magic".
15404 file_magic_cmd=$lt_file_magic_cmd
15406 # How to find potential files when deplibs_check_method = "file_magic".
15407 file_magic_glob=$lt_file_magic_glob
15409 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15410 want_nocaseglob=$lt_want_nocaseglob
15412 # DLL creation program.
15413 DLLTOOL=$lt_DLLTOOL
15415 # Command to associate shared and link libraries.
15416 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15421 # Flags to create an archive.
15422 AR_FLAGS=$lt_AR_FLAGS
15424 # How to feed a file listing to the archiver.
15425 archiver_list_spec=$lt_archiver_list_spec
15427 # A symbol stripping program.
15430 # Commands used to install an old-style archive.
15432 old_postinstall_cmds=$lt_old_postinstall_cmds
15433 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15435 # Whether to use a lock for old archive extraction.
15436 lock_old_archive_extraction=$lock_old_archive_extraction
15441 # LTCC compiler flags.
15442 LTCFLAGS=$lt_CFLAGS
15444 # Take the output of nm and produce a listing of raw symbols and C names.
15445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15447 # Transform the output of nm in a proper C declaration.
15448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15450 # Transform the output of nm into a list of symbols to manually relocate.
15451 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15453 # Transform the output of nm in a C name address pair.
15454 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15456 # Transform the output of nm in a C name address pair when lib prefix is needed.
15457 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15459 # The name lister interface.
15460 nm_interface=$lt_lt_cv_nm_interface
15462 # Specify filename containing input files for \$NM.
15463 nm_file_list_spec=$lt_nm_file_list_spec
15465 # The root where to search for dependent libraries,and where our libraries should be installed.
15466 lt_sysroot=$lt_sysroot
15468 # Command to truncate a binary pipe.
15469 lt_truncate_bin=$lt_lt_cv_truncate_bin
15471 # The name of the directory that contains temporary libtool files.
15474 # Used to examine libraries when file_magic_cmd begins with "file".
15475 MAGIC_CMD=$MAGIC_CMD
15477 # Must we lock files when doing compilation?
15478 need_locks=$lt_need_locks
15481 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15483 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15484 DSYMUTIL=$lt_DSYMUTIL
15486 # Tool to change global to local symbols on Mac OS X.
15489 # Tool to manipulate fat objects and archives on Mac OS X.
15492 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15495 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15496 OTOOL64=$lt_OTOOL64
15498 # Old archive suffix (normally "a").
15501 # Shared library suffix (normally ".so").
15502 shrext_cmds=$lt_shrext_cmds
15504 # The commands to extract the exported symbol list from a shared archive.
15505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15507 # Variables whose values should be saved in libtool wrapper scripts and
15508 # restored at link time.
15509 variables_saved_for_relink=$lt_variables_saved_for_relink
15511 # Do we need the "lib" prefix for modules?
15512 need_lib_prefix=$need_lib_prefix
15514 # Do we need a version for libraries?
15515 need_version=$need_version
15517 # Library versioning type.
15518 version_type=$version_type
15520 # Shared library runtime path variable.
15521 runpath_var=$runpath_var
15523 # Shared library path variable.
15524 shlibpath_var=$shlibpath_var
15526 # Is shlibpath searched before the hard-coded library search path?
15527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15529 # Format of library name prefix.
15530 libname_spec=$lt_libname_spec
15532 # List of archive names. First name is the real one, the rest are links.
15533 # The last name is the one that the linker finds with -lNAME
15534 library_names_spec=$lt_library_names_spec
15536 # The coded name of the library, if different from the real name.
15537 soname_spec=$lt_soname_spec
15539 # Permission mode override for installation of shared libraries.
15540 install_override_mode=$lt_install_override_mode
15542 # Command to use after installation of a shared archive.
15543 postinstall_cmds=$lt_postinstall_cmds
15545 # Command to use after uninstallation of a shared archive.
15546 postuninstall_cmds=$lt_postuninstall_cmds
15548 # Commands used to finish a libtool library installation in a directory.
15549 finish_cmds=$lt_finish_cmds
15551 # As "finish_cmds", except a single script fragment to be evaled but
15553 finish_eval=$lt_finish_eval
15555 # Whether we should hardcode library paths into libraries.
15556 hardcode_into_libs=$hardcode_into_libs
15558 # Compile-time system search path for libraries.
15559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15561 # Detected run-time system search path for libraries.
15562 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15564 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15565 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15567 # Whether dlopen is supported.
15568 dlopen_support=$enable_dlopen
15570 # Whether dlopen of programs is supported.
15571 dlopen_self=$enable_dlopen_self
15573 # Whether dlopen of statically linked programs is supported.
15574 dlopen_self_static=$enable_dlopen_self_static
15576 # Commands to strip libraries.
15577 old_striplib=$lt_old_striplib
15578 striplib=$lt_striplib
15581 # The linker used to build libraries.
15584 # How to create reloadable object files.
15585 reload_flag=$lt_reload_flag
15586 reload_cmds=$lt_reload_cmds
15588 # Commands used to build an old-style archive.
15589 old_archive_cmds=$lt_old_archive_cmds
15591 # A language specific compiler.
15594 # Is the compiler the GNU compiler?
15597 # Compiler flag to turn off builtin functions.
15598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15600 # Additional compiler flags for building library objects.
15601 pic_flag=$lt_lt_prog_compiler_pic
15603 # How to pass a linker flag through the compiler.
15604 wl=$lt_lt_prog_compiler_wl
15606 # Compiler flag to prevent dynamic linking.
15607 link_static_flag=$lt_lt_prog_compiler_static
15609 # Does compiler simultaneously support -c and -o options?
15610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15612 # Whether or not to add -lc for building shared libraries.
15613 build_libtool_need_lc=$archive_cmds_need_lc
15615 # Whether or not to disallow shared libs when runtime libs are static.
15616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15618 # Compiler flag to allow reflexive dlopens.
15619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15621 # Compiler flag to generate shared objects directly from archives.
15622 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15624 # Whether the compiler copes with passing no objects directly.
15625 compiler_needs_object=$lt_compiler_needs_object
15627 # Create an old-style archive from a shared archive.
15628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15630 # Create a temporary old-style archive to link instead of a shared archive.
15631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15633 # Commands used to build a shared archive.
15634 archive_cmds=$lt_archive_cmds
15635 archive_expsym_cmds=$lt_archive_expsym_cmds
15637 # Commands used to build a loadable module if different from building
15638 # a shared archive.
15639 module_cmds=$lt_module_cmds
15640 module_expsym_cmds=$lt_module_expsym_cmds
15642 # Whether we are building with GNU ld or not.
15643 with_gnu_ld=$lt_with_gnu_ld
15645 # Flag that allows shared libraries with undefined symbols to be built.
15646 allow_undefined_flag=$lt_allow_undefined_flag
15648 # Flag that enforces no undefined symbols.
15649 no_undefined_flag=$lt_no_undefined_flag
15651 # Flag to hardcode \$libdir into a binary during linking.
15652 # This must work even if \$libdir does not exist
15653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15655 # Whether we need a single "-rpath" flag with a separated argument.
15656 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15659 # DIR into the resulting binary.
15660 hardcode_direct=$hardcode_direct
15662 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15663 # DIR into the resulting binary and the resulting library dependency is
15664 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15665 # library is relocated.
15666 hardcode_direct_absolute=$hardcode_direct_absolute
15668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15669 # into the resulting binary.
15670 hardcode_minus_L=$hardcode_minus_L
15672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15673 # into the resulting binary.
15674 hardcode_shlibpath_var=$hardcode_shlibpath_var
15676 # Set to "yes" if building a shared library automatically hardcodes DIR
15677 # into the library and all subsequent libraries and executables linked
15679 hardcode_automatic=$hardcode_automatic
15681 # Set to yes if linker adds runtime paths of dependent libraries
15682 # to runtime path list.
15683 inherit_rpath=$inherit_rpath
15685 # Whether libtool must link a program against all its dependency libraries.
15686 link_all_deplibs=$link_all_deplibs
15688 # Set to "yes" if exported symbols are required.
15689 always_export_symbols=$always_export_symbols
15691 # The commands to list exported symbols.
15692 export_symbols_cmds=$lt_export_symbols_cmds
15694 # Symbols that should not be listed in the preloaded symbols.
15695 exclude_expsyms=$lt_exclude_expsyms
15697 # Symbols that must always be exported.
15698 include_expsyms=$lt_include_expsyms
15700 # Commands necessary for linking programs (against libraries) with templates.
15701 prelink_cmds=$lt_prelink_cmds
15703 # Commands necessary for finishing linking programs.
15704 postlink_cmds=$lt_postlink_cmds
15706 # Specify filename containing input files.
15707 file_list_spec=$lt_file_list_spec
15709 # How to hardcode a shared library path into an executable.
15710 hardcode_action=$hardcode_action
15712 # ### END LIBTOOL CONFIG
15716 cat <<'_LT_EOF' >> "$cfgfile"
15718 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15720 # func_munge_path_list VARIABLE PATH
15721 # -----------------------------------
15722 # VARIABLE is name of variable containing _space_ separated list of
15723 # directories to be munged by the contents of PATH, which is string
15726 # string "DIR[ DIR]" will be prepended to VARIABLE
15728 # string "DIR[ DIR]" will be appended to VARIABLE
15729 # "DIRP[:DIRP]::[DIRA:]DIRA"
15730 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15731 # "DIRA[ DIRA]" will be appended to VARIABLE
15733 # VARIABLE will be replaced by "DIR[ DIR]"
15734 func_munge_path_list ()
15740 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15743 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15746 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15747 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15750 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15756 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15757 func_cc_basename ()
15759 for cc_temp in $*""; do
15761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15767 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15771 # ### END FUNCTIONS SHARED WITH CONFIGURE
15777 cat <<\_LT_EOF >> "$cfgfile"
15778 # AIX sometimes has problems with the GCC collect2 program. For some
15779 # reason, if we set the COLLECT_NAMES environment variable, the problems
15780 # vanish in a puff of smoke.
15781 if test set != "${COLLECT_NAMES+set}"; then
15783 export COLLECT_NAMES
15790 ltmain=$ac_aux_dir/ltmain.sh
15793 # We use sed instead of cat because bash on DJGPP gets confused if
15794 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15795 # text mode, it properly converts lines to CR/LF. This bash problem
15796 # is reportedly fixed, but why not run on old versions too?
15797 sed '$q' "$ltmain" >> "$cfgfile" \
15798 || (rm -f "$cfgfile"; exit 1)
15800 mv -f "$cfgfile" "$ofile" ||
15801 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15805 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15806 # Older Autoconf quotes --file arguments for eval, but not when files
15807 # are listed without --file. Let's play safe and only enable the eval
15808 # if we detect the quoting.
15809 # TODO: see whether this extra hack can be removed once we start
15810 # requiring Autoconf 2.70 or later.
15811 case $CONFIG_FILES in #(
15813 eval set x "$CONFIG_FILES" ;; #(
15815 set x $CONFIG_FILES ;; #(
15820 # Used to flag and report bootstrapping failures.
15824 # Strip MF so we end up with the name of the file.
15825 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15826 # Check whether this is an Automake generated Makefile which includes
15827 # dependency-tracking related rules and includes.
15828 # Grep'ing the whole file directly is not great: AIX grep has a line
15829 # limit of 2048, but all sed's we know have understand at least 4000.
15830 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15832 am_dirpart=`$as_dirname -- "$am_mf" ||
15833 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15834 X"$am_mf" : 'X\(//\)[^/]' \| \
15835 X"$am_mf" : 'X\(//\)$' \| \
15836 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15837 $as_echo X"$am_mf" |
15838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15842 /^X\(\/\/\)[^/].*/{
15855 am_filepart=`$as_basename -- "$am_mf" ||
15856 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15857 X"$am_mf" : 'X\(//\)$' \| \
15858 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15859 $as_echo X/"$am_mf" |
15860 sed '/^.*\/\([^/][^/]*\)\/*$/{
15873 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15874 && sed -e '/# am--include-marker/d' "$am_filepart" \
15875 | $MAKE -f - am--depfiles" >&5
15876 (cd "$am_dirpart" \
15877 && sed -e '/# am--include-marker/d' "$am_filepart" \
15878 | $MAKE -f - am--depfiles) >&5 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } || am_rc=$?
15883 if test $am_rc -ne 0; then
15884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15886 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15887 for automatic dependency tracking. If GNU make was not used, consider
15888 re-running the configure script with MAKE=\"gmake\" (or whatever is
15889 necessary). You can also try re-running configure with the
15890 '--disable-dependency-tracking' option to at least be able to build
15891 the package (albeit without support for automatic dependency tracking).
15892 See \`config.log' for more details" "$LINENO" 5; }
15894 { am_dirpart=; unset am_dirpart;}
15895 { am_filepart=; unset am_filepart;}
15896 { am_mf=; unset am_mf;}
15897 { am_rc=; unset am_rc;}
15898 rm -f conftest-deps.mk
15908 ac_clean_files=$ac_clean_files_save
15910 test $ac_write_fail = 0 ||
15911 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15914 # configure is writing to config.log, and then calls config.status.
15915 # config.status does its own redirection, appending to config.log.
15916 # Unfortunately, on DOS this fails, as config.log is still kept open
15917 # by configure, so config.status won't be able to write to it; its
15918 # output is simply discarded. So we exec the FD to /dev/null,
15919 # effectively closing config.log, so it can be properly (re)opened and
15920 # appended to by config.status. When coming back to configure, we
15921 # need to make the FD available again.
15922 if test "$no_create" != yes; then
15924 ac_config_status_args=
15925 test "$silent" = yes &&
15926 ac_config_status_args="$ac_config_status_args --quiet"
15928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15931 # would make configure fail if this is the last instruction.
15932 $ac_cs_success || as_fn_exit 1
15934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}