2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libsndfile 1.0.21.
5 # Report bugs to <erikd@mega-nerd.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: erikd@mega-nerd.com about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='libsndfile'
700 PACKAGE_TARNAME='libsndfile'
701 PACKAGE_VERSION='1.0.21'
702 PACKAGE_STRING='libsndfile 1.0.21'
703 PACKAGE_BUGREPORT='erikd@mega-nerd.com'
706 ac_unique_file="src/sndfile.c"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars='am__EXEEXT_FALSE
783 OCTAVE_CONFIG_VERSION
792 BUILD_OCTAVE_MOD_FALSE
793 BUILD_OCTAVE_MOD_TRUE
798 ENABLE_TEST_COVERAGE_FALSE
799 ENABLE_TEST_COVERAGE_TRUE
800 LINUX_MINGW_CROSS_TEST_FALSE
801 LINUX_MINGW_CROSS_TEST_TRUE
856 INSTALL_STRIP_PROGRAM
910 program_transform_name
923 enable_option_checking
924 enable_dependency_tracking
948 ac_precious_vars='build_alias
974 # Initialize some variables set by options.
976 ac_init_version=false
977 ac_unrecognized_opts=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name=s,x,x,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013 infodir='${datarootdir}/info'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1280 -site=* | --site=* | --sit=*)
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1336 eval with_$ac_useropt=no ;;
1339 # Obsolete; use --with-x.
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1407 # Be sure to have absolute directory names.
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1513 \`configure' configures libsndfile 1.0.21 to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/libsndfile]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of libsndfile 1.0.21:";;
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --disable-dependency-tracking speeds up one-time build
1593 --enable-dependency-tracking do not reject slow dependency extractors
1594 --enable-shared[=PKGS] build shared libraries [default=yes]
1595 --enable-static[=PKGS] build static libraries [default=yes]
1596 --enable-fast-install[=PKGS]
1597 optimize for fast installation [default=yes]
1598 --disable-libtool-lock avoid locking (might break parallel builds)
1599 --enable-experimental enable experimental code
1600 --enable-gcc-werror enable -Werror in all Makefiles
1601 --disable-gcc-pipe disable gcc -pipe option
1602 --disable-gcc-opt disable gcc optimisations
1603 --disable-cpu-clip disable tricky cpu specific clipper
1604 --enable-bow-docs enable black-on-white html docs
1605 --disable-sqlite disable use of sqlite
1606 --disable-alsa disable use of ALSA
1607 --disable-external-libs disable use of FLAC, Ogg and Vorbis [default=no]
1608 --enable-octave disable building of GNU Octave module
1609 --enable-test-coverage enable test coverage
1610 --disable-largefile omit support for large files
1611 --enable-shave use shave to make the build pretty [default=yes]
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1616 --with-pic try to use only PIC/non-PIC objects [default=use
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-octave choose the octave version
1620 --with-mkoctfile choose the mkoctfile version
1621 --with-octave-config choose the octave-config version
1623 Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
1628 LIBS libraries to pass to the linker, e.g. -l<library>
1629 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1630 you have headers in a nonstandard directory <include dir>
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1634 CXXCPP C++ preprocessor
1635 PKG_CONFIG path to pkg-config utility
1636 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1637 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1638 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1639 OGG_LIBS linker flags for OGG, overriding pkg-config
1641 C compiler flags for VORBIS, overriding pkg-config
1642 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1644 C compiler flags for VORBISENC, overriding pkg-config
1646 linker flags for VORBISENC, overriding pkg-config
1648 C compiler flags for SQLITE3, overriding pkg-config
1650 linker flags for SQLITE3, overriding pkg-config
1652 Use these variables to override the choices made by `configure' or to help
1653 it to find libraries and programs with nonstandard names/locations.
1655 Report bugs to <erikd@mega-nerd.com>.
1660 if test "$ac_init_help" = "recursive"; then
1661 # If there are subdirs, report their specific --help.
1662 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663 test -d "$ac_dir" ||
1664 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1685 .) # We are building in place.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1709 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1718 libsndfile configure 1.0.21
1719 generated by GNU Autoconf 2.64
1721 Copyright (C) 2009 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1728 ## ------------------------ ##
1729 ## Autoconf initialization. ##
1730 ## ------------------------ ##
1732 # ac_fn_c_try_compile LINENO
1733 # --------------------------
1734 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 } # ac_fn_c_try_compile
1770 # ac_fn_cxx_try_compile LINENO
1771 # ----------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_cxx_try_compile ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext
1777 if { { ac_try="$ac_compile"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_cxx_try_compile
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 $as_test_x conftest$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1871 if ac_fn_c_try_compile "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_compile
1885 # ac_fn_c_try_cpp LINENO
1886 # ----------------------
1887 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } >/dev/null && {
1907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 # ac_fn_c_try_run LINENO
1923 # ----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1925 # that executables *can* be run.
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { { ac_try="$ac_link"
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>&5
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1940 { { case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_try") 2>&5
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; }; }; then :
1952 $as_echo "$as_me: program exited with status $ac_status" >&5
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=$ac_status
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 # ac_fn_c_check_func LINENO FUNC VAR
1965 # ----------------------------------
1966 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1967 ac_fn_c_check_func ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1979 #define $2 innocuous_$2
1981 /* System header to define __stub macros and hopefully few prototypes,
1982 which can conflict with char $2 (); below.
1983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1984 <limits.h> exists even on freestanding compilers. */
1987 # include <limits.h>
1989 # include <assert.h>
1994 /* Override any GCC internal prototype to avoid an error.
1995 Use char because int might match the return type of a GCC
1996 builtin and then its argument prototype would still apply. */
2001 /* The GNU C library defines this for functions which it implements
2002 to always fail with ENOSYS. Some functions are actually named
2003 something starting with __ and the normal name is an alias. */
2004 #if defined __stub_$2 || defined __stub___$2
2016 if ac_fn_c_try_link "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext \
2022 conftest$ac_exeext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_c_check_func
2031 # ac_fn_cxx_try_cpp LINENO
2032 # ------------------------
2033 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_cxx_try_cpp ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if { { ac_try="$ac_cpp conftest.$ac_ext"
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2046 if test -s conftest.err; then
2047 grep -v '^ *+' conftest.err >conftest.er1
2048 cat conftest.er1 >&5
2049 mv -f conftest.er1 conftest.err
2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } >/dev/null && {
2053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2054 test ! -s conftest.err
2058 $as_echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_cxx_try_cpp
2068 # ac_fn_cxx_try_link LINENO
2069 # -------------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_link ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 rm -f conftest.$ac_objext conftest$ac_exeext
2075 if { { ac_try="$ac_link"
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>conftest.err
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } && {
2091 test -z "$ac_cxx_werror_flag" ||
2092 test ! -s conftest.err
2093 } && test -s conftest$ac_exeext && {
2094 test "$cross_compiling" = yes ||
2095 $as_test_x conftest$ac_exeext
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2104 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2105 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2106 # interfere with the next link command; also delete a directory that is
2107 # left behind by Apple's compiler. We do this before executing the actions.
2108 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_cxx_try_link
2114 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2115 # -------------------------------------------------------
2116 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2117 # the include files in INCLUDES and setting the cache variable VAR
2119 ac_fn_c_check_header_mongrel ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2132 # Is the header compilable?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2134 $as_echo_n "checking $2 usability... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_header_compiler=yes
2143 ac_header_compiler=no
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2147 $as_echo "$ac_header_compiler" >&6; }
2149 # Is the header present?
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2151 $as_echo_n "checking $2 presence... " >&6; }
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 if ac_fn_c_try_cpp "$LINENO"; then :
2157 ac_header_preproc=yes
2159 ac_header_preproc=no
2161 rm -f conftest.err conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2163 $as_echo "$ac_header_preproc" >&6; }
2165 # So? What about this header?
2166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2169 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2171 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2175 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2177 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2179 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2181 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 ## ---------------------------------- ##
2186 ## Report this to erikd@mega-nerd.com ##
2187 ## ---------------------------------- ##
2189 ) | sed "s/^/$as_me: WARNING: /" >&2
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2195 $as_echo_n "(cached) " >&6
2197 eval "$3=\$ac_header_compiler"
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 } # ac_fn_c_check_header_mongrel
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR
2208 # ------------------------------------
2209 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2210 ac_fn_c_check_decl ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2214 $as_echo_n "checking whether $2 is declared... " >&6; }
2215 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 $as_echo_n "(cached) " >&6
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2232 if ac_fn_c_try_compile "$LINENO"; then :
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_check_decl
2246 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2247 # --------------------------------------------
2248 # Tries to find the compile-time value of EXPR in a program that includes
2249 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 ac_fn_c_compute_int ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 if test "$cross_compiling" = yes; then
2255 # Depending upon the size, compute the lo and hi bounds.
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) >= 0)];
2269 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 if ac_fn_c_try_compile "$LINENO"; then :
2286 ac_hi=$ac_mid; break
2288 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2289 if test $ac_lo -le $ac_mid; then
2293 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) < 0)];
2311 if ac_fn_c_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2327 if ac_fn_c_try_compile "$LINENO"; then :
2328 ac_lo=$ac_mid; break
2330 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331 if test $ac_mid -le $ac_hi; then
2335 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2361 if ac_fn_c_try_compile "$LINENO"; then :
2364 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2376 static long int longval () { return $2; }
2377 static unsigned long int ulongval () { return $2; }
2384 FILE *f = fopen ("conftest.val", "w");
2389 long int i = longval ();
2392 fprintf (f, "%ld", i);
2396 unsigned long int i = ulongval ();
2399 fprintf (f, "%lu", i);
2401 /* Do not output a trailing newline, as this causes \r\n confusion
2402 on some platforms. */
2403 return ferror (f) || fclose (f) != 0;
2409 if ac_fn_c_try_run "$LINENO"; then :
2410 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2415 conftest.$ac_objext conftest.beam conftest.$ac_ext
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2422 } # ac_fn_c_compute_int
2424 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2425 # -------------------------------------------
2426 # Tests whether TYPE exists after having included INCLUDES, setting cache
2427 # variable VAR accordingly.
2428 ac_fn_c_check_type ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2462 if ac_fn_c_try_compile "$LINENO"; then :
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476 } # ac_fn_c_check_type
2477 cat >config.log <<_ACEOF
2478 This file contains any messages produced by compilers while
2479 running configure, to aid debugging if configure makes a mistake.
2481 It was created by libsndfile $as_me 1.0.21, which was
2482 generated by GNU Autoconf 2.64. Invocation command line was
2494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 $as_echo "PATH: $as_dir"
2534 # Keep a trace of the command line.
2535 # Strip out --no-create and --no-recursion so they do not pile up.
2536 # Strip out --silent because we don't want to record it for future runs.
2537 # Also quote any args containing shell meta-characters.
2538 # Make two passes to allow for proper duplicate-argument suppression.
2542 ac_must_keep_next=false
2548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2550 | -silent | --silent | --silen | --sile | --sil)
2553 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2558 as_fn_append ac_configure_args1 " '$ac_arg'"
2559 if test $ac_must_keep_next = true; then
2560 ac_must_keep_next=false # Got value, back to normal.
2563 *=* | --config-cache | -C | -disable-* | --disable-* \
2564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2566 | -with-* | --with-* | -without-* | --without-* | --x)
2567 case "$ac_configure_args0 " in
2568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2571 -* ) ac_must_keep_next=true ;;
2574 as_fn_append ac_configure_args " '$ac_arg'"
2579 { ac_configure_args0=; unset ac_configure_args0;}
2580 { ac_configure_args1=; unset ac_configure_args1;}
2582 # When interrupted or exit'd, cleanup temporary files, and complete
2583 # config.log. We remove comments because anyway the quotes in there
2584 # would cause problems or look ugly.
2585 # WARNING: Use '\'' to represent an apostrophe within the trap.
2586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2587 trap 'exit_status=$?
2588 # Save into config.log some information that might help in debugging.
2593 ## ---------------- ##
2594 ## Cache variables. ##
2595 ## ---------------- ##
2598 # The following way of writing the cache mishandles newlines in values,
2600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2601 eval ac_val=\$$ac_var
2605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2609 _ | IFS | as_nl) ;; #(
2610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2611 *) { eval $ac_var=; unset $ac_var;} ;;
2616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2617 *${as_nl}ac_space=\ *)
2619 "s/'\''/'\''\\\\'\'''\''/g;
2620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2631 ## ----------------- ##
2632 ## Output variables. ##
2633 ## ----------------- ##
2636 for ac_var in $ac_subst_vars
2638 eval ac_val=\$$ac_var
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2642 $as_echo "$ac_var='\''$ac_val'\''"
2646 if test -n "$ac_subst_files"; then
2648 ## ------------------- ##
2649 ## File substitutions. ##
2650 ## ------------------- ##
2653 for ac_var in $ac_subst_files
2655 eval ac_val=\$$ac_var
2657 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2659 $as_echo "$ac_var='\''$ac_val'\''"
2664 if test -s confdefs.h; then
2674 test "$ac_signal" != 0 &&
2675 $as_echo "$as_me: caught signal $ac_signal"
2676 $as_echo "$as_me: exit $exit_status"
2678 rm -f core *.core core.conftest.* &&
2679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2682 for ac_signal in 1 2 13 15; do
2683 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2688 rm -f -r conftest* confdefs.h
2690 $as_echo "/* confdefs.h */" > confdefs.h
2692 # Predefined preprocessor variables.
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_NAME "$PACKAGE_NAME"
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_STRING "$PACKAGE_STRING"
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2714 cat >>confdefs.h <<_ACEOF
2715 #define PACKAGE_URL "$PACKAGE_URL"
2719 # Let the site file select an alternate cache file if it wants to.
2720 # Prefer an explicitly selected file to automatically selected ones.
2723 if test -n "$CONFIG_SITE"; then
2724 ac_site_file1=$CONFIG_SITE
2725 elif test "x$prefix" != xNONE; then
2726 ac_site_file1=$prefix/share/config.site
2727 ac_site_file2=$prefix/etc/config.site
2729 ac_site_file1=$ac_default_prefix/share/config.site
2730 ac_site_file2=$ac_default_prefix/etc/config.site
2732 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2734 test "x$ac_site_file" = xNONE && continue
2735 if test -r "$ac_site_file"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2737 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2738 sed 's/^/| /' "$ac_site_file" >&5
2743 if test -r "$cache_file"; then
2744 # Some versions of bash will fail to source /dev/null (special
2745 # files actually), so we avoid doing that.
2746 if test -f "$cache_file"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2748 $as_echo "$as_me: loading cache $cache_file" >&6;}
2750 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2751 *) . "./$cache_file";;
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2756 $as_echo "$as_me: creating cache $cache_file" >&6;}
2760 # Check that the precious variables saved in the cache have kept the same
2762 ac_cache_corrupted=false
2763 for ac_var in $ac_precious_vars; do
2764 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2765 eval ac_new_set=\$ac_env_${ac_var}_set
2766 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2767 eval ac_new_val=\$ac_env_${ac_var}_value
2768 case $ac_old_set,$ac_new_set in
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2771 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2772 ac_cache_corrupted=: ;;
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2775 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2776 ac_cache_corrupted=: ;;
2779 if test "x$ac_old_val" != "x$ac_new_val"; then
2780 # differences in whitespace do not lead to failure.
2781 ac_old_val_w=`echo x $ac_old_val`
2782 ac_new_val_w=`echo x $ac_new_val`
2783 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2785 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2786 ac_cache_corrupted=:
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2789 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2790 eval $ac_var=\$ac_old_val
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2793 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2795 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2798 # Pass precious variables to config.status.
2799 if test "$ac_new_set" = set; then
2801 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2802 *) ac_arg=$ac_var=$ac_new_val ;;
2804 case " $ac_configure_args " in
2805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2806 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2810 if $ac_cache_corrupted; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2814 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2815 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2817 ## -------------------- ##
2818 ## Main body of script. ##
2819 ## -------------------- ##
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 # Put config stuff in Cfg.
2831 for ac_dir in Cfg "$srcdir"/Cfg; do
2832 for ac_t in install-sh install.sh shtool; do
2833 if test -f "$ac_dir/$ac_t"; then
2835 ac_install_sh="$ac_aux_dir/$ac_t -c"
2840 if test -z "$ac_aux_dir"; then
2841 as_fn_error "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2844 # These three variables are undocumented and unsupported,
2845 # and are intended to be withdrawn in a future Autoconf release.
2846 # They can cause serious problems if a builder's source tree is in a directory
2847 # whose full name contains unusual characters.
2848 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2849 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2850 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if test "${ac_cv_build+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2864 ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2877 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2880 ac_save_IFS=$IFS; IFS='-'
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if test "${ac_cv_host+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2898 if test "x$host_alias" = x; then
2899 ac_cv_host=$ac_cv_build
2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2910 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2913 ac_save_IFS=$IFS; IFS='-'
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2927 $as_echo_n "checking target system type... " >&6; }
2928 if test "${ac_cv_target+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 if test "x$target_alias" = x; then
2932 ac_cv_target=$ac_cv_host
2934 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2935 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2940 $as_echo "$ac_cv_target" >&6; }
2941 case $ac_cv_target in
2943 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2945 target=$ac_cv_target
2946 ac_save_IFS=$IFS; IFS='-'
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2956 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2959 # The aliases save the names the user supplied, while $host etc.
2960 # will get canonicalized.
2961 test -n "$target_alias" &&
2962 test "$program_prefix$program_suffix$program_transform_name" = \
2964 program_prefix=${target_alias}-
2967 ac_config_headers="$ac_config_headers src/config.h"
2970 am__api_version='1.11'
2972 # Find a good install program. We prefer a C program (faster),
2973 # so one script is as good as another. But avoid the broken or
2974 # incompatible versions:
2975 # SysV /etc/install, /usr/sbin/install
2976 # SunOS /usr/etc/install
2977 # IRIX /sbin/install
2979 # AmigaOS /C/install, which installs bootblocks on floppy discs
2980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2983 # OS/2's system install, which has a completely different semantic
2984 # ./install, which can be erroneously created by make from ./install.sh.
2985 # Reject install programs that cannot install multiple files.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2987 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2988 if test -z "$INSTALL"; then
2989 if test "${ac_cv_path_install+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 # Account for people who put trailing slashes in PATH elements.
2998 case $as_dir/ in #((
2999 ./ | .// | /[cC]/* | \
3000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3001 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3004 # OSF1 and SCO ODT 3.0 have their own names for install.
3005 # Don't use installbsd from OSF since it installs stuff as root
3007 for ac_prog in ginstall scoinst install; do
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3010 if test $ac_prog = install &&
3011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3012 # AIX install. It has an incompatible calling convention.
3014 elif test $ac_prog = install &&
3015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3016 # program-specific install script used by HP pwplus--don't use.
3019 rm -rf conftest.one conftest.two conftest.dir
3020 echo one > conftest.one
3021 echo two > conftest.two
3023 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3024 test -s conftest.one && test -s conftest.two &&
3025 test -s conftest.dir/conftest.one &&
3026 test -s conftest.dir/conftest.two
3028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3041 rm -rf conftest.one conftest.two conftest.dir
3044 if test "${ac_cv_path_install+set}" = set; then
3045 INSTALL=$ac_cv_path_install
3047 # As a last resort, use the slow shell script. Don't cache a
3048 # value for INSTALL within a source directory, because that will
3049 # break other packages using the cache if that directory is
3050 # removed, or if the value is a relative name.
3051 INSTALL=$ac_install_sh
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3055 $as_echo "$INSTALL" >&6; }
3057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3058 # It thinks the first close brace ends the variable substitution.
3059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3066 $as_echo_n "checking whether build environment is sane... " >&6; }
3069 echo timestamp > conftest.file
3070 # Reject unsafe characters in $srcdir or the absolute working directory
3071 # name. Accept space and tab only in the latter.
3075 *[\\\"\#\$\&\'\`$am_lf]*)
3076 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3079 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3080 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3083 # Do `set' in a subshell so we don't clobber the current shell's
3084 # arguments. Must try -L first in case configure is actually a
3085 # symlink; some systems play weird games with the mod time of symlinks
3086 # (eg FreeBSD returns the mod time of the symlink's containing
3089 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3090 if test "$*" = "X"; then
3092 set X `ls -t "$srcdir/configure" conftest.file`
3095 if test "$*" != "X $srcdir/configure conftest.file" \
3096 && test "$*" != "X conftest.file $srcdir/configure"; then
3098 # If neither matched, then we have a broken ls. This can happen
3099 # if, for instance, CONFIG_SHELL is bash and it inherits a
3100 # broken ls alias from the environment. This has actually
3101 # happened. Such a system could not be considered "sane".
3102 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3103 alias in your environment" "$LINENO" 5
3106 test "$2" = conftest.file
3112 as_fn_error "newly created file is older than distributed files!
3113 Check your system clock" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3116 $as_echo "yes" >&6; }
3117 test "$program_prefix" != NONE &&
3118 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3119 # Use a double $ so make ignores it.
3120 test "$program_suffix" != NONE &&
3121 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3122 # Double any \ or $.
3123 # By default was `s,x,x', remove it if useless.
3124 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3125 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3127 # expand $ac_aux_dir to an absolute path
3128 am_aux_dir=`cd $ac_aux_dir && pwd`
3130 if test x"${MISSING+set}" != xset; then
3133 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3135 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3138 # Use eval to expand $SHELL
3139 if eval "$MISSING --run true"; then
3140 am_missing_run="$MISSING --run "
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3144 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3147 if test x"${install_sh}" != xset; then
3150 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3152 install_sh="\${SHELL} $am_aux_dir/install-sh"
3156 # Installed binaries are usually stripped using `strip' when the user
3157 # run `make install-strip'. However `strip' might not be the right
3158 # tool to use in cross-compilation environments, therefore Automake
3159 # will honor the `STRIP' environment variable to overrule this program.
3160 if test "$cross_compiling" != no; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_STRIP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$STRIP"; then
3170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 STRIP=$ac_cv_prog_STRIP
3190 if test -n "$STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3192 $as_echo "$STRIP" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3200 if test -z "$ac_cv_prog_STRIP"; then
3202 # Extract the first word of "strip", so it can be a program name with args.
3203 set dummy strip; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3209 if test -n "$ac_ct_STRIP"; then
3210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_ac_ct_STRIP="strip"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3230 if test -n "$ac_ct_STRIP"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3232 $as_echo "$ac_ct_STRIP" >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3238 if test "x$ac_ct_STRIP" = x; then
3241 case $cross_compiling:$ac_tool_warned in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3250 STRIP="$ac_cv_prog_STRIP"
3254 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3257 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3258 if test -z "$MKDIR_P"; then
3259 if test "${ac_cv_path_mkdir+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3266 test -z "$as_dir" && as_dir=.
3267 for ac_prog in mkdir gmkdir; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3270 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3271 'mkdir (GNU coreutils) '* | \
3272 'mkdir (coreutils) '* | \
3273 'mkdir (fileutils) '4.1*)
3274 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3284 if test "${ac_cv_path_mkdir+set}" = set; then
3285 MKDIR_P="$ac_cv_path_mkdir -p"
3287 # As a last resort, use the slow shell script. Don't cache a
3288 # value for MKDIR_P within a source directory, because that will
3289 # break other packages using the cache if that directory is
3290 # removed, or if the value is a relative name.
3291 test -d ./--version && rmdir ./--version
3292 MKDIR_P="$ac_install_sh -d"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3296 $as_echo "$MKDIR_P" >&6; }
3300 [\\/$]* | ?:[\\/]*) ;;
3301 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3304 for ac_prog in gawk mawk nawk awk
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_AWK+set}" = set; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$AWK"; then
3314 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_AWK="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$AWK"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3336 $as_echo "$AWK" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3343 test -n "$AWK" && break
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3347 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3349 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3350 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3351 $as_echo_n "(cached) " >&6
3353 cat >conftest.make <<\_ACEOF
3356 @echo '@@@%%%=$(MAKE)=@@@%%%'
3358 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3359 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3361 eval ac_cv_prog_make_${ac_make}_set=yes;;
3363 eval ac_cv_prog_make_${ac_make}_set=no;;
3367 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 SET_MAKE="MAKE=${MAKE-make}"
3377 rm -rf .tst 2>/dev/null
3378 mkdir .tst 2>/dev/null
3379 if test -d .tst; then
3384 rmdir .tst 2>/dev/null
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388 # is not polluted with repeated "-I."
3389 am__isrc=' -I$(srcdir)'
3390 # test to see if srcdir already configured
3391 if test -f $srcdir/config.status; then
3392 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398 if (cygpath --version) >/dev/null 2>/dev/null; then
3399 CYGPATH_W='cygpath -w'
3406 # Define the identity of the package.
3407 PACKAGE=$PACKAGE_NAME
3408 VERSION=$PACKAGE_VERSION
3411 cat >>confdefs.h <<_ACEOF
3412 #define PACKAGE "$PACKAGE"
3416 cat >>confdefs.h <<_ACEOF
3417 #define VERSION "$VERSION"
3420 # Some tools Automake needs.
3422 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3425 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3428 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3431 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3434 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3436 # We need awk for the "check" target. The system "awk" is bad on
3438 # Always define AMTAR for backward compatibility.
3440 AMTAR=${AMTAR-"${am_missing_run}tar"}
3442 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3449 ACLOCAL_AMFLAGS="-I M4"
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 #------------------------------------------------------------------------------------
3460 # Rules for library version information:
3462 # 1. Start with version information of `0:0:0' for each libtool library.
3463 # 2. Update the version information only immediately before a public release of
3464 # your software. More frequent updates are unnecessary, and only guarantee
3465 # that the current interface number gets larger faster.
3466 # 3. If the library source code has changed at all since the last update, then
3467 # increment revision (`c:r:a' becomes `c:r+1:a').
3468 # 4. If any interfaces have been added, removed, or changed since the last update,
3469 # increment current, and set revision to 0.
3470 # 5. If any interfaces have been added since the last public release, then increment
3472 # 6. If any interfaces have been removed since the last public release, then set age
3475 SHARED_VERSION_INFO="1:21:0"
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3521 if test -z "$ac_cv_prog_CC"; then
3523 # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC="gcc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3559 if test "x$ac_ct_CC" = x; then
3562 case $cross_compiling:$ac_tool_warned in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3574 if test -z "$CC"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_CC="${ac_tool_prefix}cc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3615 if test -z "$CC"; then
3616 # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635 ac_prog_rejected=yes
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test $ac_prog_rejected = yes; then
3647 # We found a bogon in the path, so make sure we never use it.
3648 set dummy $ac_cv_prog_CC
3650 if test $# != 0; then
3651 # We chose a different compiler from the bogus one.
3652 # However, it has the same basename, so the bogon will be chosen
3653 # first if we set CC to just the basename; use the full file name.
3655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3671 if test -z "$CC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$CC" && break
3715 if test -z "$CC"; then
3717 for ac_prog in cl.exe
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$ac_ct_CC" && break
3759 if test "x$ac_ct_CC" = x; then
3762 case $cross_compiling:$ac_tool_warned in
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found in \$PATH
3778 See \`config.log' for more details." "$LINENO" 5; }
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3784 for ac_option in --version -v -V -qversion; do
3785 { { ac_try="$ac_compiler $ac_option >&5"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3794 if test -s conftest.err; then
3796 ... rest of stderr output deleted ...
3797 10q' conftest.err >conftest.er1
3798 cat conftest.er1 >&5
3799 rm -f conftest.er1 conftest.err
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3811 FILE *f = fopen ("conftest.out", "w");
3812 return ferror (f) || fclose (f) != 0;
3818 ac_clean_files_save=$ac_clean_files
3819 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3820 # Try to create an executable without -o first, disregard a.out.
3821 # It will help us diagnose broken compilers, and finding out an intuition
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3824 $as_echo_n "checking for C compiler default output file name... " >&6; }
3825 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3827 # The possible output files:
3828 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3831 for ac_file in $ac_files
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3840 if { { ac_try="$ac_link_default"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link_default") 2>&5
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3852 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3853 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3854 # so that the user can short-circuit this test for compilers unknown to
3856 for ac_file in $ac_files ''
3858 test -f "$ac_file" || continue
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3863 # We found the default executable, but exeext='' is most
3867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 # We set ac_cv_exeext here because the later test for it is not
3872 # safe: cross compilers may not add the suffix if given an `-o'
3873 # argument, so we may need to know it at that point already.
3874 # Even if this section looks crufty: it has the advantage of
3881 test "$ac_cv_exeext" = no && ac_cv_exeext=
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3887 $as_echo "$ac_file" >&6; }
3888 if test -z "$ac_file"; then :
3889 $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 { as_fn_set_status 77
3895 as_fn_error "C compiler cannot create executables
3896 See \`config.log' for more details." "$LINENO" 5; }; }
3898 ac_exeext=$ac_cv_exeext
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 $as_echo_n "checking whether the C compiler works... " >&6; }
3904 # If not cross compiling, check that we can run a simple program.
3905 if test "$cross_compiling" != yes; then
3906 if { ac_try='./$ac_file'
3907 { { case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_try") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; }; then
3919 if test "$cross_compiling" = maybe; then
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error "cannot run C compiled programs.
3925 If you meant to cross compile, use \`--host'.
3926 See \`config.log' for more details." "$LINENO" 5; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3934 ac_clean_files=$ac_clean_files_save
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3940 $as_echo "$cross_compiling" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943 $as_echo_n "checking for suffix of executables... " >&6; }
3944 if { { ac_try="$ac_link"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3957 # work properly (i.e., refer to `conftest.exe'), while it won't with
3959 for ac_file in conftest.exe conftest conftest.*; do
3960 test -f "$ac_file" || continue
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of executables: cannot compile and link
3972 See \`config.log' for more details." "$LINENO" 5; }
3974 rm -f conftest$ac_cv_exeext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3976 $as_echo "$ac_cv_exeext" >&6; }
3978 rm -f conftest.$ac_ext
3979 EXEEXT=$ac_cv_exeext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3982 $as_echo_n "checking for suffix of object files... " >&6; }
3983 if test "${ac_cv_objext+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 rm -f conftest.o conftest.obj
3998 if { { ac_try="$ac_compile"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_compile") 2>&5
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; then :
4009 for ac_file in conftest.o conftest.obj conftest.*; do
4010 test -f "$ac_file" || continue;
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4013 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error "cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details." "$LINENO" 5; }
4026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4029 $as_echo "$ac_cv_objext" >&6; }
4030 OBJEXT=$ac_cv_objext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4033 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4034 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4062 if test $ac_compiler_gnu = yes; then
4067 ac_test_CFLAGS=${CFLAGS+set}
4068 ac_save_CFLAGS=$CFLAGS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4070 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4071 if test "${ac_cv_prog_cc_g+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_save_c_werror_flag=$ac_c_werror_flag
4075 ac_c_werror_flag=yes
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4131 $as_echo "$ac_cv_prog_cc_g" >&6; }
4132 if test "$ac_test_CFLAGS" = set; then
4133 CFLAGS=$ac_save_CFLAGS
4134 elif test $ac_cv_prog_cc_g = yes; then
4135 if test "$GCC" = yes; then
4141 if test "$GCC" = yes; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4148 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4149 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 ac_cv_prog_cc_c89=no
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4174 s = g (p, va_arg (v,int));
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_c89=$ac_arg
4214 rm -f core conftest.err conftest.$ac_objext
4215 test "x$ac_cv_prog_cc_c89" != "xno" && break
4217 rm -f conftest.$ac_ext
4222 case "x$ac_cv_prog_cc_c89" in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 $as_echo "none needed" >&6; } ;;
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;;
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4234 if test "x$ac_cv_prog_cc_c89" != xno; then :
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 DEPDIR="${am__leading_dot}deps"
4245 ac_config_commands="$ac_config_commands depfiles"
4248 am_make=${MAKE-make}
4249 cat > confinc << 'END'
4251 @echo this is the am__doit target
4254 # If we don't find an include directive, just comment out the code.
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4256 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4260 # First try GNU make style include.
4261 echo "include confinc" > confmf
4262 # Ignore all kinds of additional output from `make'.
4263 case `$am_make -s -f confmf 2> /dev/null` in #(
4264 *the\ am__doit\ target*)
4270 # Now try BSD make style include.
4271 if test "$am__include" = "#"; then
4272 echo '.include "confinc"' > confmf
4273 case `$am_make -s -f confmf 2> /dev/null` in #(
4274 *the\ am__doit\ target*)
4275 am__include=.include
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4284 $as_echo "$_am_result" >&6; }
4285 rm -f confinc confmf
4287 # Check whether --enable-dependency-tracking was given.
4288 if test "${enable_dependency_tracking+set}" = set; then :
4289 enableval=$enable_dependency_tracking;
4292 if test "x$enable_dependency_tracking" != xno; then
4293 am_depcomp="$ac_aux_dir/depcomp"
4296 if test "x$enable_dependency_tracking" != xno; then
4306 depcc="$CC" am_compiler_list=
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4309 $as_echo_n "checking dependency style of $depcc... " >&6; }
4310 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4314 # We make a subdir and do the tests there. Otherwise we can end up
4315 # making bogus files that we don't know about and never remove. For
4316 # instance it was reported that on HP-UX the gcc test will end up
4317 # making a dummy file named `D' -- because `-MD' means `put the output
4320 # Copy depcomp to subdir because otherwise we won't find it if we're
4321 # using a relative directory.
4322 cp "$am_depcomp" conftest.dir
4324 # We will build objects and dependencies in a subdirectory because
4325 # it helps to detect inapplicable dependency modes. For instance
4326 # both Tru64's cc and ICC support -MD to output dependencies as a
4327 # side effect of compilation, but ICC will put the dependencies in
4328 # the current directory while Tru64 will put them in the object
4332 am_cv_CC_dependencies_compiler_type=none
4333 if test "$am_compiler_list" = ""; then
4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4337 case " $depcc " in #(
4338 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4341 for depmode in $am_compiler_list; do
4342 # Setup a source with many dependencies, because some compilers
4343 # like to wrap large dependency lists on column 80 (with \), and
4344 # we should not choose a depcomp mode which is confused by this.
4346 # We need to recreate these files for each test, as the compiler may
4347 # overwrite some of them when testing with obscure command lines.
4348 # This happens at least with the AIX C compiler.
4350 for i in 1 2 3 4 5 6; do
4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4352 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4353 # Solaris 8's {/usr,}/bin/sh.
4354 touch sub/conftst$i.h
4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4358 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4359 # mode. It turns out that the SunPro C++ compiler does not properly
4360 # handle `-M -o', and we need to detect this. Also, some Intel
4361 # versions had trouble with output in subdirs
4362 am__obj=sub/conftest.${OBJEXT-o}
4363 am__minus_obj="-o $am__obj"
4366 # This depmode causes a compiler race in universal mode.
4367 test "$am__universal" = false || continue
4370 # after this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested
4372 if test "x$enable_dependency_tracking" = xyes; then
4378 msvisualcpp | msvcmsys)
4379 # This compiler won't grok `-c -o', but also, the minuso test has
4380 # not run yet. These depmodes are late enough in the game, and
4381 # so weak that their functioning should not be impacted.
4382 am__obj=conftest.${OBJEXT-o}
4387 if depmode=$depmode \
4388 source=sub/conftest.c object=$am__obj \
4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4391 >/dev/null 2>conftest.err &&
4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4396 # icc doesn't choke on unknown options, it will just issue warnings
4397 # or remarks (even with -Werror). So we grep stderr for any message
4398 # that says an option was ignored or not supported.
4399 # When given -MP, icc 7.0 and 7.1 complain thusly:
4400 # icc: Command line warning: ignoring option '-M'; no argument required
4401 # The diagnosis changed in icc 8.0:
4402 # icc: Command line remark: option '-MP' not supported
4403 if (grep 'ignoring option' conftest.err ||
4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4405 am_cv_CC_dependencies_compiler_type=$depmode
4414 am_cv_CC_dependencies_compiler_type=none
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4419 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4423 test "x$enable_dependency_tracking" != xno \
4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4426 am__fastdepCC_FALSE='#'
4428 am__fastdepCC_TRUE='#'
4429 am__fastdepCC_FALSE=
4433 if test "x$CC" != xcc; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4435 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4438 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4440 set dummy $CC; ac_cc=`$as_echo "$2" |
4441 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4442 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4443 $as_echo_n "(cached) " >&6
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4456 # Make sure it works both with $CC and with simple cc.
4457 # We do the test twice because some compilers refuse to overwrite an
4458 # existing .o file with -o, though they will create one.
4459 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4461 if { { case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_try") 2>&5
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; } &&
4471 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476 $as_echo "$ac_try_echo"; } >&5
4477 (eval "$ac_try") 2>&5
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; };
4482 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4483 if test "x$CC" != xcc; then
4484 # Test first that cc exists at all.
4485 if { ac_try='cc -c conftest.$ac_ext >&5'
4486 { { case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_try") 2>&5
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; }; then
4496 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4498 if { { case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_try") 2>&5
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; } &&
4508 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_try") 2>&5
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; };
4522 # cc exists but doesn't like -o.
4523 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4528 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4530 rm -f core conftest*
4533 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4540 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4544 # FIXME: we rely on the cache variable name because
4545 # there is no other way.
4547 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4548 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4549 if test "$am_t" != yes; then
4550 # Losing compiler, so override with the script.
4551 # FIXME: It is wrong to rewrite CC.
4552 # But if we don't then we get into trouble of one sort or another.
4553 # A longer-term fix would be to have automake use am__CC in this case,
4554 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4555 CC="$am_aux_dir/compile $CC"
4560 ac_cpp='$CXXCPP $CPPFLAGS'
4561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4564 if test -z "$CXX"; then
4565 if test -n "$CCC"; then
4568 if test -n "$ac_tool_prefix"; then
4569 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if test "${ac_cv_prog_CXX+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4578 if test -n "$CXX"; then
4579 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 if test -n "$CXX"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4601 $as_echo "$CXX" >&6; }
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4608 test -n "$CXX" && break
4611 if test -z "$CXX"; then
4613 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4615 # Extract the first word of "$ac_prog", so it can be a program name with args.
4616 set dummy $ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4622 if test -n "$ac_ct_CXX"; then
4623 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_ac_ct_CXX="$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4643 if test -n "$ac_ct_CXX"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4645 $as_echo "$ac_ct_CXX" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4652 test -n "$ac_ct_CXX" && break
4655 if test "x$ac_ct_CXX" = x; then
4658 case $cross_compiling:$ac_tool_warned in
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662 ac_tool_warned=yes ;;
4670 # Provide some information about the compiler.
4671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4674 for ac_option in --version -v -V -qversion; do
4675 { { ac_try="$ac_compiler $ac_option >&5"
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4684 if test -s conftest.err; then
4686 ... rest of stderr output deleted ...
4687 10q' conftest.err >conftest.er1
4688 cat conftest.er1 >&5
4689 rm -f conftest.er1 conftest.err
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4696 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4697 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4724 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4725 if test $ac_compiler_gnu = yes; then
4730 ac_test_CXXFLAGS=${CXXFLAGS+set}
4731 ac_save_CXXFLAGS=$CXXFLAGS
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4733 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4734 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4738 ac_cxx_werror_flag=yes
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4752 if ac_fn_cxx_try_compile "$LINENO"; then :
4753 ac_cv_prog_cxx_g=yes
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4767 if ac_fn_cxx_try_compile "$LINENO"; then :
4770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4783 if ac_fn_cxx_try_compile "$LINENO"; then :
4784 ac_cv_prog_cxx_g=yes
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4794 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4795 if test "$ac_test_CXXFLAGS" = set; then
4796 CXXFLAGS=$ac_save_CXXFLAGS
4797 elif test $ac_cv_prog_cxx_g = yes; then
4798 if test "$GXX" = yes; then
4804 if test "$GXX" = yes; then
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816 depcc="$CXX" am_compiler_list=
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4819 $as_echo_n "checking dependency style of $depcc... " >&6; }
4820 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4824 # We make a subdir and do the tests there. Otherwise we can end up
4825 # making bogus files that we don't know about and never remove. For
4826 # instance it was reported that on HP-UX the gcc test will end up
4827 # making a dummy file named `D' -- because `-MD' means `put the output
4830 # Copy depcomp to subdir because otherwise we won't find it if we're
4831 # using a relative directory.
4832 cp "$am_depcomp" conftest.dir
4834 # We will build objects and dependencies in a subdirectory because
4835 # it helps to detect inapplicable dependency modes. For instance
4836 # both Tru64's cc and ICC support -MD to output dependencies as a
4837 # side effect of compilation, but ICC will put the dependencies in
4838 # the current directory while Tru64 will put them in the object
4842 am_cv_CXX_dependencies_compiler_type=none
4843 if test "$am_compiler_list" = ""; then
4844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4847 case " $depcc " in #(
4848 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4851 for depmode in $am_compiler_list; do
4852 # Setup a source with many dependencies, because some compilers
4853 # like to wrap large dependency lists on column 80 (with \), and
4854 # we should not choose a depcomp mode which is confused by this.
4856 # We need to recreate these files for each test, as the compiler may
4857 # overwrite some of them when testing with obscure command lines.
4858 # This happens at least with the AIX C compiler.
4860 for i in 1 2 3 4 5 6; do
4861 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4862 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4863 # Solaris 8's {/usr,}/bin/sh.
4864 touch sub/conftst$i.h
4866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4868 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4869 # mode. It turns out that the SunPro C++ compiler does not properly
4870 # handle `-M -o', and we need to detect this. Also, some Intel
4871 # versions had trouble with output in subdirs
4872 am__obj=sub/conftest.${OBJEXT-o}
4873 am__minus_obj="-o $am__obj"
4876 # This depmode causes a compiler race in universal mode.
4877 test "$am__universal" = false || continue
4880 # after this tag, mechanisms are not by side-effect, so they'll
4881 # only be used when explicitly requested
4882 if test "x$enable_dependency_tracking" = xyes; then
4888 msvisualcpp | msvcmsys)
4889 # This compiler won't grok `-c -o', but also, the minuso test has
4890 # not run yet. These depmodes are late enough in the game, and
4891 # so weak that their functioning should not be impacted.
4892 am__obj=conftest.${OBJEXT-o}
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=$am__obj \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4906 # icc doesn't choke on unknown options, it will just issue warnings
4907 # or remarks (even with -Werror). So we grep stderr for any message
4908 # that says an option was ignored or not supported.
4909 # When given -MP, icc 7.0 and 7.1 complain thusly:
4910 # icc: Command line warning: ignoring option '-M'; no argument required
4911 # The diagnosis changed in icc 8.0:
4912 # icc: Command line remark: option '-MP' not supported
4913 if (grep 'ignoring option' conftest.err ||
4914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4915 am_cv_CXX_dependencies_compiler_type=$depmode
4924 am_cv_CXX_dependencies_compiler_type=none
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4929 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4930 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4933 test "x$enable_dependency_tracking" != xno \
4934 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4935 am__fastdepCXX_TRUE=
4936 am__fastdepCXX_FALSE='#'
4938 am__fastdepCXX_TRUE='#'
4939 am__fastdepCXX_FALSE=
4944 # Do not check for F77.
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4949 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4954 macro_version='2.2.6'
4955 macro_revision='1.3012'
4969 ltmain="$ac_aux_dir/ltmain.sh"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4972 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4973 if test "${ac_cv_path_SED+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4977 for ac_i in 1 2 3 4 5 6 7; do
4978 ac_script="$ac_script$as_nl$ac_script"
4980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4981 { ac_script=; unset ac_script;}
4982 if test -z "$SED"; then
4983 ac_path_SED_found=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_prog in sed gsed; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4993 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4994 # Check for GNU ac_path_SED and select it if it is found.
4995 # Check for GNU $ac_path_SED
4996 case `"$ac_path_SED" --version 2>&1` in
4998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5001 $as_echo_n 0123456789 >"conftest.in"
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo '' >> "conftest.nl"
5008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_SED_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_SED="$ac_path_SED"
5014 ac_path_SED_max=$ac_count
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 $ac_path_SED_found && break 3
5027 if test -z "$ac_cv_path_SED"; then
5028 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5036 $as_echo "$ac_cv_path_SED" >&6; }
5037 SED="$ac_cv_path_SED"
5040 test -z "$SED" && SED=sed
5041 Xsed="$SED -e 1s/^X//"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5054 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5055 if test "${ac_cv_path_GREP+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
5058 if test -z "$GREP"; then
5059 ac_path_GREP_found=false
5060 # Loop through the user's path and test for each of PROGNAME-LIST
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 test -z "$as_dir" && as_dir=.
5066 for ac_prog in grep ggrep; do
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5069 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5070 # Check for GNU ac_path_GREP and select it if it is found.
5071 # Check for GNU $ac_path_GREP
5072 case `"$ac_path_GREP" --version 2>&1` in
5074 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5077 $as_echo_n 0123456789 >"conftest.in"
5080 cat "conftest.in" "conftest.in" >"conftest.tmp"
5081 mv "conftest.tmp" "conftest.in"
5082 cp "conftest.in" "conftest.nl"
5083 $as_echo 'GREP' >> "conftest.nl"
5084 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086 as_fn_arith $ac_count + 1 && ac_count=$as_val
5087 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5088 # Best one so far, save it but keep looking for a better one
5089 ac_cv_path_GREP="$ac_path_GREP"
5090 ac_path_GREP_max=$ac_count
5092 # 10*(2^10) chars as input seems more than enough
5093 test $ac_count -gt 10 && break
5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 $ac_path_GREP_found && break 3
5103 if test -z "$ac_cv_path_GREP"; then
5104 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 ac_cv_path_GREP=$GREP
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5112 $as_echo "$ac_cv_path_GREP" >&6; }
5113 GREP="$ac_cv_path_GREP"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5117 $as_echo_n "checking for egrep... " >&6; }
5118 if test "${ac_cv_path_EGREP+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5121 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5122 then ac_cv_path_EGREP="$GREP -E"
5124 if test -z "$EGREP"; then
5125 ac_path_EGREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in egrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5135 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5136 # Check for GNU ac_path_EGREP and select it if it is found.
5137 # Check for GNU $ac_path_EGREP
5138 case `"$ac_path_EGREP" --version 2>&1` in
5140 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5143 $as_echo_n 0123456789 >"conftest.in"
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'EGREP' >> "conftest.nl"
5150 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 as_fn_arith $ac_count + 1 && ac_count=$as_val
5153 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_EGREP="$ac_path_EGREP"
5156 ac_path_EGREP_max=$ac_count
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 $ac_path_EGREP_found && break 3
5169 if test -z "$ac_cv_path_EGREP"; then
5170 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173 ac_cv_path_EGREP=$EGREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5179 $as_echo "$ac_cv_path_EGREP" >&6; }
5180 EGREP="$ac_cv_path_EGREP"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5184 $as_echo_n "checking for fgrep... " >&6; }
5185 if test "${ac_cv_path_FGREP+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5189 then ac_cv_path_FGREP="$GREP -F"
5191 if test -z "$FGREP"; then
5192 ac_path_FGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in fgrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5203 # Check for GNU ac_path_FGREP and select it if it is found.
5204 # Check for GNU $ac_path_FGREP
5205 case `"$ac_path_FGREP" --version 2>&1` in
5207 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5210 $as_echo_n 0123456789 >"conftest.in"
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'FGREP' >> "conftest.nl"
5217 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_FGREP="$ac_path_FGREP"
5223 ac_path_FGREP_max=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231 $ac_path_FGREP_found && break 3
5236 if test -z "$ac_cv_path_FGREP"; then
5237 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 ac_cv_path_FGREP=$FGREP
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5246 $as_echo "$ac_cv_path_FGREP" >&6; }
5247 FGREP="$ac_cv_path_FGREP"
5250 test -z "$GREP" && GREP=grep
5270 # Check whether --with-gnu-ld was given.
5271 if test "${with_gnu_ld+set}" = set; then :
5272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5278 if test "$GCC" = yes; then
5279 # Check if gcc -print-prog-name=ld gives a path.
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5281 $as_echo_n "checking for ld used by $CC... " >&6; }
5284 # gcc leaves a trailing carriage return which upsets mingw
5285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5290 # Accept absolute paths.
5292 re_direlt='/[^/][^/]*/\.\./'
5293 # Canonicalize the pathname of ld
5294 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5295 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5296 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5298 test -z "$LD" && LD="$ac_prog"
5301 # If it fails, then pretend we aren't using GCC.
5305 # If it is relative, then search for the first ld in PATH.
5309 elif test "$with_gnu_ld" = yes; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5311 $as_echo_n "checking for GNU ld... " >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5314 $as_echo_n "checking for non-GNU ld... " >&6; }
5316 if test "${lt_cv_path_LD+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -z "$LD"; then
5320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5321 for ac_dir in $PATH; do
5323 test -z "$ac_dir" && ac_dir=.
5324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5325 lt_cv_path_LD="$ac_dir/$ac_prog"
5326 # Check to see if the program is GNU ld. I'd rather use --version,
5327 # but apparently some variants of GNU ld only accept -v.
5328 # Break only if it was the GNU/non-GNU ld that we prefer.
5329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5330 *GNU* | *'with BFD'*)
5331 test "$with_gnu_ld" != no && break
5334 test "$with_gnu_ld" != yes && break
5341 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5346 if test -n "$LD"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5348 $as_echo "$LD" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5353 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5355 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5356 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5360 case `$LD -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362 lt_cv_prog_gnu_ld=yes
5365 lt_cv_prog_gnu_ld=no
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5370 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5371 with_gnu_ld=$lt_cv_prog_gnu_ld
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5382 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5383 if test "${lt_cv_path_NM+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$NM"; then
5387 # Let the user override the test.
5390 lt_nm_to_check="${ac_tool_prefix}nm"
5391 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5392 lt_nm_to_check="$lt_nm_to_check nm"
5394 for lt_tmp_nm in $lt_nm_to_check; do
5395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5396 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5398 test -z "$ac_dir" && ac_dir=.
5399 tmp_nm="$ac_dir/$lt_tmp_nm"
5400 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5401 # Check to see if the nm accepts a BSD-compat flag.
5402 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5403 # nm: unknown option "B" ignored
5404 # Tru64's nm complains that /dev/null is an invalid object file
5405 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5406 */dev/null* | *'Invalid file or object type'*)
5407 lt_cv_path_NM="$tmp_nm -B"
5411 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5413 lt_cv_path_NM="$tmp_nm -p"
5417 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5418 continue # so that we can try to find one that supports BSD flags
5427 : ${lt_cv_path_NM=no}
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5431 $as_echo "$lt_cv_path_NM" >&6; }
5432 if test "$lt_cv_path_NM" != "no"; then
5435 # Didn't find any BSD compatible name lister, look for dumpbin.
5436 if test -n "$ac_tool_prefix"; then
5437 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5446 if test -n "$DUMPBIN"; then
5447 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 DUMPBIN=$ac_cv_prog_DUMPBIN
5467 if test -n "$DUMPBIN"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469 $as_echo "$DUMPBIN" >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5476 test -n "$DUMPBIN" && break
5479 if test -z "$DUMPBIN"; then
5480 ac_ct_DUMPBIN=$DUMPBIN
5481 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5490 if test -n "$ac_ct_DUMPBIN"; then
5491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5511 if test -n "$ac_ct_DUMPBIN"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5513 $as_echo "$ac_ct_DUMPBIN" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5520 test -n "$ac_ct_DUMPBIN" && break
5523 if test "x$ac_ct_DUMPBIN" = x; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5532 DUMPBIN=$ac_ct_DUMPBIN
5537 if test "$DUMPBIN" != ":"; then
5541 test -z "$NM" && NM=nm
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5549 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5550 if test "${lt_cv_nm_interface+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 lt_cv_nm_interface="BSD nm"
5554 echo "int some_variable = 0;" > conftest.$ac_ext
5555 (eval echo "\"\$as_me:5555: $ac_compile\"" >&5)
5556 (eval "$ac_compile" 2>conftest.err)
5557 cat conftest.err >&5
5558 (eval echo "\"\$as_me:5558: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5559 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5560 cat conftest.err >&5
5561 (eval echo "\"\$as_me:5561: output\"" >&5)
5562 cat conftest.out >&5
5563 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5564 lt_cv_nm_interface="MS dumpbin"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5569 $as_echo "$lt_cv_nm_interface" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5572 $as_echo_n "checking whether ln -s works... " >&6; }
5574 if test "$LN_S" = "ln -s"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576 $as_echo "yes" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5579 $as_echo "no, using $LN_S" >&6; }
5582 # find the maximum length of command line arguments
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5584 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5585 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5593 # On DJGPP, this test can blow up pretty badly due to problems in libc
5594 # (any single argument exceeding 2000 bytes causes a buffer overrun
5595 # during glob expansion). Even if it were fixed, the result of this
5596 # check would be larger than it should be.
5597 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5601 # Under GNU Hurd, this test is not required because there is
5602 # no limit to the length of command line arguments.
5603 # Libtool will interpret -1 as no limit whatsoever
5604 lt_cv_sys_max_cmd_len=-1;
5607 cygwin* | mingw* | cegcc*)
5608 # On Win9x/ME, this test blows up -- it succeeds, but takes
5609 # about 5 minutes as the teststring grows exponentially.
5610 # Worse, since 9x/ME are not pre-emptively multitasking,
5611 # you end up with a "frozen" computer, even though with patience
5612 # the test eventually succeeds (with a max line length of 256k).
5613 # Instead, let's just punt: use the minimum linelength reported by
5614 # all of the supported platforms: 8192 (on NT/2K/XP).
5615 lt_cv_sys_max_cmd_len=8192;
5619 # On AmigaOS with pdksh, this test takes hours, literally.
5620 # So we just punt and use a minimum line length of 8192.
5621 lt_cv_sys_max_cmd_len=8192;
5624 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5625 # This has been around since 386BSD, at least. Likely further.
5626 if test -x /sbin/sysctl; then
5627 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5628 elif test -x /usr/sbin/sysctl; then
5629 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5631 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5633 # And add a safety zone
5634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5639 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5640 lt_cv_sys_max_cmd_len=196608
5644 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5645 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5646 # nice to cause kernel panics so lets avoid the loop below.
5647 # First set a reasonable default.
5648 lt_cv_sys_max_cmd_len=16384
5650 if test -x /sbin/sysconfig; then
5651 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5652 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5657 lt_cv_sys_max_cmd_len=102400
5659 sysv5* | sco5v6* | sysv4.2uw2*)
5660 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5661 if test -n "$kargmax"; then
5662 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5664 lt_cv_sys_max_cmd_len=32768
5668 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5669 if test -n "$lt_cv_sys_max_cmd_len"; then
5670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5673 # Make teststring a little bigger before we do anything with it.
5674 # a 1K string should be a reasonable start.
5675 for i in 1 2 3 4 5 6 7 8 ; do
5676 teststring=$teststring$teststring
5678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5679 # If test is not a shell built-in, we'll probably end up computing a
5680 # maximum length that is only half of the actual maximum length, but
5682 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5683 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5684 test $i != 17 # 1/2 MB should be enough
5687 teststring=$teststring$teststring
5689 # Only check the string length outside the loop.
5690 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5692 # Add a significant safety factor because C++ compilers can tack on
5693 # massive amounts of additional arguments before passing them to the
5694 # linker. It appears as though 1/2 is a usable value.
5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5702 if test -n $lt_cv_sys_max_cmd_len ; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5704 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5707 $as_echo "none" >&6; }
5709 max_cmd_len=$lt_cv_sys_max_cmd_len
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5721 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5722 # Try some XSI features
5725 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5727 && eval 'test $(( 1 + 1 )) -eq 2 \
5728 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5731 $as_echo "$xsi_shell" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5735 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5739 && lt_shell_append=yes
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5741 $as_echo "$lt_shell_append" >&6; }
5744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5754 # test EBCDIC or ASCII
5755 case `echo X|tr X '\101'` in
5756 A) # ASCII based system
5757 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5758 lt_SP2NL='tr \040 \012'
5759 lt_NL2SP='tr \015\012 \040\040'
5761 *) # EBCDIC based system
5762 lt_SP2NL='tr \100 \n'
5763 lt_NL2SP='tr \r\n \100\100'
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5776 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5777 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 lt_cv_ld_reload_flag='-r'
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5784 reload_flag=$lt_cv_ld_reload_flag
5785 case $reload_flag in
5787 *) reload_flag=" $reload_flag" ;;
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5792 if test "$GCC" = yes; then
5793 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 if test -n "$OBJDUMP"; then
5817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 OBJDUMP=$ac_cv_prog_OBJDUMP
5837 if test -n "$OBJDUMP"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5839 $as_echo "$OBJDUMP" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5847 if test -z "$ac_cv_prog_OBJDUMP"; then
5848 ac_ct_OBJDUMP=$OBJDUMP
5849 # Extract the first word of "objdump", so it can be a program name with args.
5850 set dummy objdump; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5856 if test -n "$ac_ct_OBJDUMP"; then
5857 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5877 if test -n "$ac_ct_OBJDUMP"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5879 $as_echo "$ac_ct_OBJDUMP" >&6; }
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5885 if test "x$ac_ct_OBJDUMP" = x; then
5888 case $cross_compiling:$ac_tool_warned in
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5894 OBJDUMP=$ac_ct_OBJDUMP
5897 OBJDUMP="$ac_cv_prog_OBJDUMP"
5900 test -z "$OBJDUMP" && OBJDUMP=objdump
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5911 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5912 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 lt_cv_file_magic_cmd='$MAGIC_CMD'
5916 lt_cv_file_magic_test_file=
5917 lt_cv_deplibs_check_method='unknown'
5918 # Need to set the preceding variable on all platforms that support
5919 # interlibrary dependencies.
5920 # 'none' -- dependencies not supported.
5921 # `unknown' -- same as none, but documents that we really don't know.
5922 # 'pass_all' -- all dependencies passed with no checks.
5923 # 'test_compile' -- check by making test program.
5924 # 'file_magic [[regex]]' -- check by looking for files in library path
5925 # which responds to the $file_magic_cmd with a given extended regex.
5926 # If you have `file' or equivalent on your system and you're not sure
5927 # whether `pass_all' will *always* work, you probably want this one.
5931 lt_cv_deplibs_check_method=pass_all
5935 lt_cv_deplibs_check_method=pass_all
5939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5940 lt_cv_file_magic_cmd='/usr/bin/file -L'
5941 lt_cv_file_magic_test_file=/shlib/libc.so
5945 # func_win32_libid is a shell function defined in ltmain.sh
5946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5947 lt_cv_file_magic_cmd='func_win32_libid'
5951 # Base MSYS/MinGW do not provide the 'file' command needed by
5952 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5953 # unless we find 'file', for example because we are cross-compiling.
5954 if ( file / ) >/dev/null 2>&1; then
5955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5956 lt_cv_file_magic_cmd='func_win32_libid'
5958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5959 lt_cv_file_magic_cmd='$OBJDUMP -f'
5964 # use the weaker test based on 'objdump'. See mingw*.
5965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5966 lt_cv_file_magic_cmd='$OBJDUMP -f'
5969 darwin* | rhapsody*)
5970 lt_cv_deplibs_check_method=pass_all
5973 freebsd* | dragonfly*)
5974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5977 # Not sure whether the presence of OpenBSD here was a mistake.
5978 # Let's accept both of them until this is cleared up.
5979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5980 lt_cv_file_magic_cmd=/usr/bin/file
5981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5985 lt_cv_deplibs_check_method=pass_all
5990 lt_cv_deplibs_check_method=pass_all
5993 hpux10.20* | hpux11*)
5994 lt_cv_file_magic_cmd=/usr/bin/file
5997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6012 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6016 irix5* | irix6* | nonstopux*)
6018 *-32|*"-32 ") libmagic=32-bit;;
6019 *-n32|*"-n32 ") libmagic=N32;;
6020 *-64|*"-64 ") libmagic=64-bit;;
6021 *) libmagic=never-match;;
6023 lt_cv_deplibs_check_method=pass_all
6026 # This must be Linux ELF.
6027 linux* | k*bsd*-gnu)
6028 lt_cv_deplibs_check_method=pass_all
6031 netbsd* | netbsdelf*-gnu)
6032 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6046 lt_cv_deplibs_check_method=pass_all
6050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6057 osf3* | osf4* | osf5*)
6058 lt_cv_deplibs_check_method=pass_all
6062 lt_cv_deplibs_check_method=pass_all
6066 lt_cv_deplibs_check_method=pass_all
6069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6070 lt_cv_deplibs_check_method=pass_all
6074 case $host_vendor in
6076 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]'
6077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6080 lt_cv_deplibs_check_method=pass_all
6083 lt_cv_file_magic_cmd='/bin/file'
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6087 lt_cv_file_magic_cmd='/bin/file'
6088 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6089 lt_cv_file_magic_test_file=/lib/libc.so
6092 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_deplibs_check_method=pass_all
6101 lt_cv_deplibs_check_method=pass_all
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6107 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6108 file_magic_cmd=$lt_cv_file_magic_cmd
6109 deplibs_check_method=$lt_cv_deplibs_check_method
6110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ar; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_AR+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$AR"; then
6132 ac_cv_prog_AR="$AR" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_AR="${ac_tool_prefix}ar"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 if test -n "$AR"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6154 $as_echo "$AR" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_AR"; then
6164 # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy ar; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_ac_ct_AR="ar"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6194 $as_echo "$ac_ct_AR" >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_AR" = x; then
6203 case $cross_compiling:$ac_tool_warned in
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6215 test -z "$AR" && AR=ar
6216 test -z "$AR_FLAGS" && AR_FLAGS=cru
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}strip; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if test "${ac_cv_prog_STRIP+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6236 if test -n "$STRIP"; then
6237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 STRIP=$ac_cv_prog_STRIP
6257 if test -n "$STRIP"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6259 $as_echo "$STRIP" >&6; }
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6267 if test -z "$ac_cv_prog_STRIP"; then
6269 # Extract the first word of "strip", so it can be a program name with args.
6270 set dummy strip; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6274 $as_echo_n "(cached) " >&6
6276 if test -n "$ac_ct_STRIP"; then
6277 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_prog_ac_ct_STRIP="strip"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6297 if test -n "$ac_ct_STRIP"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6299 $as_echo "$ac_ct_STRIP" >&6; }
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6305 if test "x$ac_ct_STRIP" = x; then
6308 case $cross_compiling:$ac_tool_warned in
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6317 STRIP="$ac_cv_prog_STRIP"
6320 test -z "$STRIP" && STRIP=:
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$RANLIB"; then
6336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 RANLIB=$ac_cv_prog_RANLIB
6356 if test -n "$RANLIB"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6358 $as_echo "$RANLIB" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6366 if test -z "$ac_cv_prog_RANLIB"; then
6367 ac_ct_RANLIB=$RANLIB
6368 # Extract the first word of "ranlib", so it can be a program name with args.
6369 set dummy ranlib; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$ac_ct_RANLIB"; then
6376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_RANLIB="ranlib"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6396 if test -n "$ac_ct_RANLIB"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6398 $as_echo "$ac_ct_RANLIB" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 if test "x$ac_ct_RANLIB" = x; then
6407 case $cross_compiling:$ac_tool_warned in
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6413 RANLIB=$ac_ct_RANLIB
6416 RANLIB="$ac_cv_prog_RANLIB"
6419 test -z "$RANLIB" && RANLIB=:
6426 # Determine commands to create old-style static archives.
6427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6428 old_postinstall_cmds='chmod 644 $oldlib'
6429 old_postuninstall_cmds=
6431 if test -n "$RANLIB"; then
6434 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6440 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6476 # If no C compiler was specified, use CC.
6479 # If no C compiler flags were specified, use CFLAGS.
6480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6482 # Allow CC to be a program name with arguments.
6486 # Check for command to grab the raw symbol name followed by C symbol from nm.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6489 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6493 # These are sane defaults that work on at least a few old systems.
6494 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6496 # Character class describing NM global symbol codes.
6497 symcode='[BCDEGRST]'
6499 # Regexp to match symbols that can be accessed directly from C.
6500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6502 # Define system-specific variables.
6507 cygwin* | mingw* | pw32* | cegcc*)
6508 symcode='[ABCDGISTW]'
6511 if test "$host_cpu" = ia64; then
6512 symcode='[ABCDEGRST]'
6516 symcode='[BCDEGRST]'
6519 symcode='[BCDEGQRST]'
6530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6538 # If we're using GNU nm, then use its standard symbol codes.
6539 case `$NM -V 2>&1` in
6540 *GNU* | *'with BFD'*)
6541 symcode='[ABCDGIRSTW]' ;;
6544 # Transform an extracted symbol line into a proper C declaration.
6545 # Some systems (esp. on ia64) link data and code symbols differently,
6546 # so use this general approach.
6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6549 # Transform an extracted symbol line into symbol name and symbol address
6550 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6551 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6553 # Handle CRLF in mingw tool chain
6557 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6561 # Try without a prefix underscore, then with it.
6562 for ac_symprfx in "" "_"; do
6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565 symxfrm="\\1 $ac_symprfx\\2 \\2"
6567 # Write the raw and C identifiers.
6568 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6569 # Fake it for dumpbin and say T for any non-static function
6570 # and D for any global variable.
6571 # Also find C++ and __fastcall symbols from MSVC++,
6572 # which start with @ or ?.
6573 lt_cv_sys_global_symbol_pipe="$AWK '"\
6574 " {last_section=section; section=\$ 3};"\
6575 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6576 " \$ 0!~/External *\|/{next};"\
6577 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6578 " {if(hide[section]) next};"\
6579 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6580 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6581 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6582 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6583 " ' prfx=^$ac_symprfx"
6585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6588 # Check to see that the pipe works correctly.
6592 cat > conftest.$ac_ext <<_LT_EOF
6597 void nm_test_func(void);
6598 void nm_test_func(void){}
6602 int main(){nm_test_var='a';nm_test_func();return(0);}
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6606 (eval $ac_compile) 2>&5
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }; then
6610 # Now try to grab the symbols.
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6613 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; } && test -s "$nlist"; then
6617 # Try sorting and uniquifying the output.
6618 if sort "$nlist" | uniq > "$nlist"T; then
6619 mv -f "$nlist"T "$nlist"
6624 # Make sure that we snagged all the symbols we need.
6625 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6626 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6627 cat <<_LT_EOF > conftest.$ac_ext
6633 # Now generate the symbol file.
6634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6636 cat <<_LT_EOF >> conftest.$ac_ext
6638 /* The mapping between symbol names and symbols. */
6643 lt__PROGRAM__LTX_preloaded_symbols[] =
6645 { "@PROGRAM@", (void *) 0 },
6647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6648 cat <<\_LT_EOF >> conftest.$ac_ext
6652 /* This works around a problem in FreeBSD linker */
6653 #ifdef FREEBSD_WORKAROUND
6654 static const void *lt_preloaded_setup() {
6655 return lt__PROGRAM__LTX_preloaded_symbols;
6663 # Now try linking the two files.
6664 mv conftest.$ac_objext conftstm.$ac_objext
6665 lt_save_LIBS="$LIBS"
6666 lt_save_CFLAGS="$CFLAGS"
6667 LIBS="conftstm.$ac_objext"
6668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6670 (eval $ac_link) 2>&5
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6676 LIBS="$lt_save_LIBS"
6677 CFLAGS="$lt_save_CFLAGS"
6679 echo "cannot find nm_test_func in $nlist" >&5
6682 echo "cannot find nm_test_var in $nlist" >&5
6685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6688 echo "$progname: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 rm -rf conftest* conftst*
6693 # Do not use the global_symbol_pipe unless it works.
6694 if test "$pipe_works" = yes; then
6697 lt_cv_sys_global_symbol_pipe=
6703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6704 lt_cv_sys_global_symbol_to_cdecl=
6706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6708 $as_echo "failed" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6711 $as_echo "ok" >&6; }
6736 # Check whether --enable-libtool-lock was given.
6737 if test "${enable_libtool_lock+set}" = set; then :
6738 enableval=$enable_libtool_lock;
6741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6743 # Some flags need to be propagated to the compiler or linker for good
6747 # Find out which ABI we are using.
6748 echo 'int i;' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 case `/usr/bin/file conftest.$ac_objext` in
6766 # Find out which ABI we are using.
6767 echo '#line 6767 "configure"' > conftest.$ac_ext
6768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6769 (eval $ac_compile) 2>&5
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; }; then
6773 if test "$lt_cv_prog_gnu_ld" = yes; then
6774 case `/usr/bin/file conftest.$ac_objext` in
6776 LD="${LD-ld} -melf32bsmip"
6779 LD="${LD-ld} -melf32bmipn32"
6782 LD="${LD-ld} -melf64bmip"
6786 case `/usr/bin/file conftest.$ac_objext` in
6802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6804 # Find out which ABI we are using.
6805 echo 'int i;' > conftest.$ac_ext
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 case `/usr/bin/file conftest.o` in
6814 x86_64-*kfreebsd*-gnu)
6815 LD="${LD-ld} -m elf_i386_fbsd"
6818 LD="${LD-ld} -m elf_i386"
6820 ppc64-*linux*|powerpc64-*linux*)
6821 LD="${LD-ld} -m elf32ppclinux"
6824 LD="${LD-ld} -m elf_s390"
6827 LD="${LD-ld} -m elf32_sparc"
6833 x86_64-*kfreebsd*-gnu)
6834 LD="${LD-ld} -m elf_x86_64_fbsd"
6837 LD="${LD-ld} -m elf_x86_64"
6839 ppc*-*linux*|powerpc*-*linux*)
6840 LD="${LD-ld} -m elf64ppc"
6842 s390*-*linux*|s390*-*tpf*)
6843 LD="${LD-ld} -m elf64_s390"
6846 LD="${LD-ld} -m elf64_sparc"
6856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6857 SAVE_CFLAGS="$CFLAGS"
6858 CFLAGS="$CFLAGS -belf"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6881 if ac_fn_c_try_link "$LINENO"; then :
6882 lt_cv_cc_needs_belf=yes
6884 lt_cv_cc_needs_belf=no
6886 rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6899 CFLAGS="$SAVE_CFLAGS"
6903 # Find out which ABI we are using.
6904 echo 'int i;' > conftest.$ac_ext
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906 (eval $ac_compile) 2>&5
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; then
6910 case `/usr/bin/file conftest.o` in
6912 case $lt_cv_prog_gnu_ld in
6913 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6915 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6927 need_locks="$enable_libtool_lock"
6931 rhapsody* | darwin*)
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6940 if test -n "$DSYMUTIL"; then
6941 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6961 if test -n "$DSYMUTIL"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6963 $as_echo "$DSYMUTIL" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6971 if test -z "$ac_cv_prog_DSYMUTIL"; then
6972 ac_ct_DSYMUTIL=$DSYMUTIL
6973 # Extract the first word of "dsymutil", so it can be a program name with args.
6974 set dummy dsymutil; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6980 if test -n "$ac_ct_DSYMUTIL"; then
6981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7001 if test -n "$ac_ct_DSYMUTIL"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7003 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7009 if test "x$ac_ct_DSYMUTIL" = x; then
7012 case $cross_compiling:$ac_tool_warned in
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7018 DSYMUTIL=$ac_ct_DSYMUTIL
7021 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7024 if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7032 if test -n "$NMEDIT"; then
7033 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 NMEDIT=$ac_cv_prog_NMEDIT
7053 if test -n "$NMEDIT"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7055 $as_echo "$NMEDIT" >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7063 if test -z "$ac_cv_prog_NMEDIT"; then
7064 ac_ct_NMEDIT=$NMEDIT
7065 # Extract the first word of "nmedit", so it can be a program name with args.
7066 set dummy nmedit; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -n "$ac_ct_NMEDIT"; then
7073 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7082 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7093 if test -n "$ac_ct_NMEDIT"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7095 $as_echo "$ac_ct_NMEDIT" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7101 if test "x$ac_ct_NMEDIT" = x; then
7104 case $cross_compiling:$ac_tool_warned in
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108 ac_tool_warned=yes ;;
7110 NMEDIT=$ac_ct_NMEDIT
7113 NMEDIT="$ac_cv_prog_NMEDIT"
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_LIPO+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$LIPO"; then
7125 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 LIPO=$ac_cv_prog_LIPO
7145 if test -n "$LIPO"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7147 $as_echo "$LIPO" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_LIPO"; then
7157 # Extract the first word of "lipo", so it can be a program name with args.
7158 set dummy lipo; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$ac_ct_LIPO"; then
7165 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_LIPO="lipo"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7185 if test -n "$ac_ct_LIPO"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7187 $as_echo "$ac_ct_LIPO" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_LIPO" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7205 LIPO="$ac_cv_prog_LIPO"
7208 if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}otool; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 if test -n "$OTOOL"; then
7217 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 OTOOL=$ac_cv_prog_OTOOL
7237 if test -n "$OTOOL"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7239 $as_echo "$OTOOL" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7247 if test -z "$ac_cv_prog_OTOOL"; then
7249 # Extract the first word of "otool", so it can be a program name with args.
7250 set dummy otool; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$ac_ct_OTOOL"; then
7257 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_ac_ct_OTOOL="otool"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7277 if test -n "$ac_ct_OTOOL"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7279 $as_echo "$ac_ct_OTOOL" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7285 if test "x$ac_ct_OTOOL" = x; then
7288 case $cross_compiling:$ac_tool_warned in
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292 ac_tool_warned=yes ;;
7297 OTOOL="$ac_cv_prog_OTOOL"
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7308 if test -n "$OTOOL64"; then
7309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 OTOOL64=$ac_cv_prog_OTOOL64
7329 if test -n "$OTOOL64"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7331 $as_echo "$OTOOL64" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7339 if test -z "$ac_cv_prog_OTOOL64"; then
7340 ac_ct_OTOOL64=$OTOOL64
7341 # Extract the first word of "otool64", so it can be a program name with args.
7342 set dummy otool64; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$ac_ct_OTOOL64"; then
7349 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_ac_ct_OTOOL64="otool64"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7369 if test -n "$ac_ct_OTOOL64"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7371 $as_echo "$ac_ct_OTOOL64" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7377 if test "x$ac_ct_OTOOL64" = x; then
7380 case $cross_compiling:$ac_tool_warned in
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384 ac_tool_warned=yes ;;
7386 OTOOL64=$ac_ct_OTOOL64
7389 OTOOL64="$ac_cv_prog_OTOOL64"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7419 $as_echo_n "checking for -single_module linker flag... " >&6; }
7420 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7423 lt_cv_apple_cc_single_mod=no
7424 if test -z "${LT_MULTI_MODULE}"; then
7425 # By default we will add the -single_module flag. You can override
7426 # by either setting the environment variable LT_MULTI_MODULE
7427 # non-empty at configure time, or by adding -multi_module to the
7429 rm -rf libconftest.dylib*
7430 echo "int foo(void){return 1;}" > conftest.c
7431 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7432 -dynamiclib -Wl,-single_module conftest.c" >&5
7433 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7434 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7436 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7437 lt_cv_apple_cc_single_mod=yes
7439 cat conftest.err >&5
7441 rm -rf libconftest.dylib*
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7446 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7449 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7452 lt_cv_ld_exported_symbols_list=no
7453 save_LDFLAGS=$LDFLAGS
7454 echo "_main" > conftest.sym
7455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7467 if ac_fn_c_try_link "$LINENO"; then :
7468 lt_cv_ld_exported_symbols_list=yes
7470 lt_cv_ld_exported_symbols_list=no
7472 rm -f core conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LDFLAGS="$save_LDFLAGS"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7478 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7480 rhapsody* | darwin1.[012])
7481 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7483 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7484 darwin*) # darwin 5.x on
7485 # if running on 10.5 or later, the deployment target defaults
7486 # to the OS version, if on x86, and 10.4, the deployment
7487 # target defaults to 10.4. Don't you love it?
7488 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7489 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7490 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7494 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7498 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7499 _lt_dar_single_mod='$single_module'
7501 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7502 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7504 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7506 if test "$DSYMUTIL" != ":"; then
7507 _lt_dsymutil='~$DSYMUTIL $lib || :'
7515 ac_cpp='$CPP $CPPFLAGS'
7516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7521 # On Suns, sometimes $CPP names a directory.
7522 if test -n "$CPP" && test -d "$CPP"; then
7525 if test -z "$CPP"; then
7526 if test "${ac_cv_prog_CPP+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7529 # Double quotes because CPP needs to be expanded
7530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7533 for ac_c_preproc_warn_flag in '' yes
7535 # Use a header file that comes with gcc, so configuring glibc
7536 # with a fresh cross-compiler works.
7537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 # <limits.h> exists even on freestanding compilers.
7539 # On the NeXT, cc -E runs the code through the compiler's parser,
7540 # not just through cpp. "Syntax error" is here to catch this case.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7544 # include <limits.h>
7546 # include <assert.h>
7550 if ac_fn_c_try_cpp "$LINENO"; then :
7553 # Broken: fails on valid input.
7556 rm -f conftest.err conftest.$ac_ext
7558 # OK, works on sane cases. Now check whether nonexistent headers
7559 # can be detected and how.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #include <ac_nonexistent.h>
7564 if ac_fn_c_try_cpp "$LINENO"; then :
7565 # Broken: success on invalid input.
7568 # Passes both tests.
7572 rm -f conftest.err conftest.$ac_ext
7575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7576 rm -f conftest.err conftest.$ac_ext
7577 if $ac_preproc_ok; then :
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7590 $as_echo "$CPP" >&6; }
7592 for ac_c_preproc_warn_flag in '' yes
7594 # Use a header file that comes with gcc, so configuring glibc
7595 # with a fresh cross-compiler works.
7596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597 # <limits.h> exists even on freestanding compilers.
7598 # On the NeXT, cc -E runs the code through the compiler's parser,
7599 # not just through cpp. "Syntax error" is here to catch this case.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7603 # include <limits.h>
7605 # include <assert.h>
7609 if ac_fn_c_try_cpp "$LINENO"; then :
7612 # Broken: fails on valid input.
7615 rm -f conftest.err conftest.$ac_ext
7617 # OK, works on sane cases. Now check whether nonexistent headers
7618 # can be detected and how.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <ac_nonexistent.h>
7623 if ac_fn_c_try_cpp "$LINENO"; then :
7624 # Broken: success on invalid input.
7627 # Passes both tests.
7631 rm -f conftest.err conftest.$ac_ext
7634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7635 rm -f conftest.err conftest.$ac_ext
7636 if $ac_preproc_ok; then :
7639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7641 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7642 See \`config.log' for more details." "$LINENO" 5; }
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7653 $as_echo_n "checking for ANSI C header files... " >&6; }
7654 if test "${ac_cv_header_stdc+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 ac_cv_header_stdc=yes
7675 ac_cv_header_stdc=no
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 if test $ac_cv_header_stdc = yes; then
7680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687 $EGREP "memchr" >/dev/null 2>&1; then :
7690 ac_cv_header_stdc=no
7696 if test $ac_cv_header_stdc = yes; then
7697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704 $EGREP "free" >/dev/null 2>&1; then :
7707 ac_cv_header_stdc=no
7713 if test $ac_cv_header_stdc = yes; then
7714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7715 if test "$cross_compiling" = yes; then :
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7722 #if ((' ' & 0x0FF) == 0x020)
7723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7726 # define ISLOWER(c) \
7727 (('a' <= (c) && (c) <= 'i') \
7728 || ('j' <= (c) && (c) <= 'r') \
7729 || ('s' <= (c) && (c) <= 'z'))
7730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7738 for (i = 0; i < 256; i++)
7739 if (XOR (islower (i), ISLOWER (i))
7740 || toupper (i) != TOUPPER (i))
7745 if ac_fn_c_try_run "$LINENO"; then :
7748 ac_cv_header_stdc=no
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7751 conftest.$ac_objext conftest.beam conftest.$ac_ext
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7757 $as_echo "$ac_cv_header_stdc" >&6; }
7758 if test $ac_cv_header_stdc = yes; then
7760 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7765 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7766 inttypes.h stdint.h unistd.h
7768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7771 eval as_val=\$$as_ac_Header
7772 if test "x$as_val" = x""yes; then :
7773 cat >>confdefs.h <<_ACEOF
7774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7782 for ac_header in dlfcn.h
7784 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7786 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7787 cat >>confdefs.h <<_ACEOF
7788 #define HAVE_DLFCN_H 1
7798 ac_cpp='$CXXCPP $CPPFLAGS'
7799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7802 if test -z "$CXX"; then
7803 if test -n "$CCC"; then
7806 if test -n "$ac_tool_prefix"; then
7807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_CXX+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$CXX"; then
7817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 if test -n "$CXX"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7839 $as_echo "$CXX" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$CXX" && break
7849 if test -z "$CXX"; then
7851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7860 if test -n "$ac_ct_CXX"; then
7861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_ac_ct_CXX="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7881 if test -n "$ac_ct_CXX"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7883 $as_echo "$ac_ct_CXX" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7890 test -n "$ac_ct_CXX" && break
7893 if test "x$ac_ct_CXX" = x; then
7896 case $cross_compiling:$ac_tool_warned in
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7908 # Provide some information about the compiler.
7909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7912 for ac_option in --version -v -V -qversion; do
7913 { { ac_try="$ac_compiler $ac_option >&5"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7919 $as_echo "$ac_try_echo"; } >&5
7920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7922 if test -s conftest.err; then
7924 ... rest of stderr output deleted ...
7925 10q' conftest.err >conftest.er1
7926 cat conftest.er1 >&5
7927 rm -f conftest.er1 conftest.err
7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930 test $ac_status = 0; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7934 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7935 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7952 if ac_fn_cxx_try_compile "$LINENO"; then :
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7962 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7963 if test $ac_compiler_gnu = yes; then
7968 ac_test_CXXFLAGS=${CXXFLAGS+set}
7969 ac_save_CXXFLAGS=$CXXFLAGS
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7971 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7972 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7975 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7976 ac_cxx_werror_flag=yes
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7990 if ac_fn_cxx_try_compile "$LINENO"; then :
7991 ac_cv_prog_cxx_g=yes
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8005 if ac_fn_cxx_try_compile "$LINENO"; then :
8008 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8021 if ac_fn_cxx_try_compile "$LINENO"; then :
8022 ac_cv_prog_cxx_g=yes
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8032 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8033 if test "$ac_test_CXXFLAGS" = set; then
8034 CXXFLAGS=$ac_save_CXXFLAGS
8035 elif test $ac_cv_prog_cxx_g = yes; then
8036 if test "$GXX" = yes; then
8042 if test "$GXX" = yes; then
8049 ac_cpp='$CPP $CPPFLAGS'
8050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054 depcc="$CXX" am_compiler_list=
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8057 $as_echo_n "checking dependency style of $depcc... " >&6; }
8058 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8062 # We make a subdir and do the tests there. Otherwise we can end up
8063 # making bogus files that we don't know about and never remove. For
8064 # instance it was reported that on HP-UX the gcc test will end up
8065 # making a dummy file named `D' -- because `-MD' means `put the output
8068 # Copy depcomp to subdir because otherwise we won't find it if we're
8069 # using a relative directory.
8070 cp "$am_depcomp" conftest.dir
8072 # We will build objects and dependencies in a subdirectory because
8073 # it helps to detect inapplicable dependency modes. For instance
8074 # both Tru64's cc and ICC support -MD to output dependencies as a
8075 # side effect of compilation, but ICC will put the dependencies in
8076 # the current directory while Tru64 will put them in the object
8080 am_cv_CXX_dependencies_compiler_type=none
8081 if test "$am_compiler_list" = ""; then
8082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8085 case " $depcc " in #(
8086 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8089 for depmode in $am_compiler_list; do
8090 # Setup a source with many dependencies, because some compilers
8091 # like to wrap large dependency lists on column 80 (with \), and
8092 # we should not choose a depcomp mode which is confused by this.
8094 # We need to recreate these files for each test, as the compiler may
8095 # overwrite some of them when testing with obscure command lines.
8096 # This happens at least with the AIX C compiler.
8098 for i in 1 2 3 4 5 6; do
8099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8101 # Solaris 8's {/usr,}/bin/sh.
8102 touch sub/conftst$i.h
8104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8107 # mode. It turns out that the SunPro C++ compiler does not properly
8108 # handle `-M -o', and we need to detect this. Also, some Intel
8109 # versions had trouble with output in subdirs
8110 am__obj=sub/conftest.${OBJEXT-o}
8111 am__minus_obj="-o $am__obj"
8114 # This depmode causes a compiler race in universal mode.
8115 test "$am__universal" = false || continue
8118 # after this tag, mechanisms are not by side-effect, so they'll
8119 # only be used when explicitly requested
8120 if test "x$enable_dependency_tracking" = xyes; then
8126 msvisualcpp | msvcmsys)
8127 # This compiler won't grok `-c -o', but also, the minuso test has
8128 # not run yet. These depmodes are late enough in the game, and
8129 # so weak that their functioning should not be impacted.
8130 am__obj=conftest.${OBJEXT-o}
8135 if depmode=$depmode \
8136 source=sub/conftest.c object=$am__obj \
8137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8139 >/dev/null 2>conftest.err &&
8140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8144 # icc doesn't choke on unknown options, it will just issue warnings
8145 # or remarks (even with -Werror). So we grep stderr for any message
8146 # that says an option was ignored or not supported.
8147 # When given -MP, icc 7.0 and 7.1 complain thusly:
8148 # icc: Command line warning: ignoring option '-M'; no argument required
8149 # The diagnosis changed in icc 8.0:
8150 # icc: Command line remark: option '-MP' not supported
8151 if (grep 'ignoring option' conftest.err ||
8152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8153 am_cv_CXX_dependencies_compiler_type=$depmode
8162 am_cv_CXX_dependencies_compiler_type=none
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8167 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8168 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8171 test "x$enable_dependency_tracking" != xno \
8172 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8173 am__fastdepCXX_TRUE=
8174 am__fastdepCXX_FALSE='#'
8176 am__fastdepCXX_TRUE='#'
8177 am__fastdepCXX_FALSE=
8181 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8182 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8183 (test "X$CXX" != "Xg++"))) ; then
8185 ac_cpp='$CXXCPP $CPPFLAGS'
8186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8190 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8191 if test -z "$CXXCPP"; then
8192 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 # Double quotes because CXXCPP needs to be expanded
8196 for CXXCPP in "$CXX -E" "/lib/cpp"
8199 for ac_cxx_preproc_warn_flag in '' yes
8201 # Use a header file that comes with gcc, so configuring glibc
8202 # with a fresh cross-compiler works.
8203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8204 # <limits.h> exists even on freestanding compilers.
8205 # On the NeXT, cc -E runs the code through the compiler's parser,
8206 # not just through cpp. "Syntax error" is here to catch this case.
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 # include <limits.h>
8212 # include <assert.h>
8216 if ac_fn_cxx_try_cpp "$LINENO"; then :
8219 # Broken: fails on valid input.
8222 rm -f conftest.err conftest.$ac_ext
8224 # OK, works on sane cases. Now check whether nonexistent headers
8225 # can be detected and how.
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8228 #include <ac_nonexistent.h>
8230 if ac_fn_cxx_try_cpp "$LINENO"; then :
8231 # Broken: success on invalid input.
8234 # Passes both tests.
8238 rm -f conftest.err conftest.$ac_ext
8241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8242 rm -f conftest.err conftest.$ac_ext
8243 if $ac_preproc_ok; then :
8248 ac_cv_prog_CXXCPP=$CXXCPP
8251 CXXCPP=$ac_cv_prog_CXXCPP
8253 ac_cv_prog_CXXCPP=$CXXCPP
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8256 $as_echo "$CXXCPP" >&6; }
8258 for ac_cxx_preproc_warn_flag in '' yes
8260 # Use a header file that comes with gcc, so configuring glibc
8261 # with a fresh cross-compiler works.
8262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8263 # <limits.h> exists even on freestanding compilers.
8264 # On the NeXT, cc -E runs the code through the compiler's parser,
8265 # not just through cpp. "Syntax error" is here to catch this case.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8269 # include <limits.h>
8271 # include <assert.h>
8275 if ac_fn_cxx_try_cpp "$LINENO"; then :
8278 # Broken: fails on valid input.
8281 rm -f conftest.err conftest.$ac_ext
8283 # OK, works on sane cases. Now check whether nonexistent headers
8284 # can be detected and how.
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #include <ac_nonexistent.h>
8289 if ac_fn_cxx_try_cpp "$LINENO"; then :
8290 # Broken: success on invalid input.
8293 # Passes both tests.
8297 rm -f conftest.err conftest.$ac_ext
8300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8301 rm -f conftest.err conftest.$ac_ext
8302 if $ac_preproc_ok; then :
8305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8307 _lt_caught_CXX_error=yes; }
8311 ac_cpp='$CPP $CPPFLAGS'
8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317 _lt_caught_CXX_error=yes
8334 # Check whether --enable-shared was given.
8335 if test "${enable_shared+set}" = set; then :
8336 enableval=$enable_shared; p=${PACKAGE-default}
8338 yes) enable_shared=yes ;;
8339 no) enable_shared=no ;;
8342 # Look at the argument we got. We use all the common list separators.
8343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8344 for pkg in $enableval; do
8346 if test "X$pkg" = "X$p"; then
8365 # Check whether --enable-static was given.
8366 if test "${enable_static+set}" = set; then :
8367 enableval=$enable_static; p=${PACKAGE-default}
8369 yes) enable_static=yes ;;
8370 no) enable_static=no ;;
8373 # Look at the argument we got. We use all the common list separators.
8374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8375 for pkg in $enableval; do
8377 if test "X$pkg" = "X$p"; then
8397 # Check whether --with-pic was given.
8398 if test "${with_pic+set}" = set; then :
8399 withval=$with_pic; pic_mode="$withval"
8405 test -z "$pic_mode" && pic_mode=default
8413 # Check whether --enable-fast-install was given.
8414 if test "${enable_fast_install+set}" = set; then :
8415 enableval=$enable_fast_install; p=${PACKAGE-default}
8417 yes) enable_fast_install=yes ;;
8418 no) enable_fast_install=no ;;
8420 enable_fast_install=no
8421 # Look at the argument we got. We use all the common list separators.
8422 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8423 for pkg in $enableval; do
8425 if test "X$pkg" = "X$p"; then
8426 enable_fast_install=yes
8433 enable_fast_install=yes
8446 # This can be used to rebuild libtool when needed
8447 LIBTOOL_DEPS="$ltmain"
8449 # Always use our own libtool.
8450 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8476 test -z "$LN_S" && LN_S="ln -s"
8491 if test -n "${ZSH_VERSION+set}" ; then
8492 setopt NO_GLOB_SUBST
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8496 $as_echo_n "checking for objdir... " >&6; }
8497 if test "${lt_cv_objdir+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 rm -f .libs 2>/dev/null
8501 mkdir .libs 2>/dev/null
8502 if test -d .libs; then
8505 # MS-DOS does not allow filenames that begin with a dot.
8508 rmdir .libs 2>/dev/null
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8511 $as_echo "$lt_cv_objdir" >&6; }
8512 objdir=$lt_cv_objdir
8518 cat >>confdefs.h <<_ACEOF
8519 #define LT_OBJDIR "$lt_cv_objdir/"
8540 # AIX sometimes has problems with the GCC collect2 program. For some
8541 # reason, if we set the COLLECT_NAMES environment variable, the problems
8542 # vanish in a puff of smoke.
8543 if test "X${COLLECT_NAMES+set}" != Xset; then
8545 export COLLECT_NAMES
8550 # Sed substitution that helps us do robust quoting. It backslashifies
8551 # metacharacters that are still active within double-quoted strings.
8552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8554 # Same as above, but do not quote variable references.
8555 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8557 # Sed substitution to delay expansion of an escaped shell variable in a
8558 # double_quote_subst'ed string.
8559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8561 # Sed substitution to delay expansion of an escaped single quote.
8562 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8564 # Sed substitution to avoid accidental globbing in evaled expressions
8565 no_glob_subst='s/\*/\\\*/g'
8569 can_build_shared=yes
8571 # All known linkers require a `.a' archive for static linking (except MSVC,
8572 # which needs '.lib').
8575 with_gnu_ld="$lt_cv_prog_gnu_ld"
8578 old_CFLAGS="$CFLAGS"
8580 # Set sane defaults for various variables
8581 test -z "$CC" && CC=cc
8582 test -z "$LTCC" && LTCC=$CC
8583 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8584 test -z "$LD" && LD=ld
8585 test -z "$ac_objext" && ac_objext=o
8587 for cc_temp in $compiler""; do
8589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8595 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8598 # Only perform the check for file, if the check method requires it
8599 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8600 case $deplibs_check_method in
8602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8604 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8613 lt_save_MAGIC_CMD="$MAGIC_CMD"
8614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8616 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/${ac_tool_prefix}file; then
8620 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8621 if test -n "$file_magic_test_file"; then
8622 case $deplibs_check_method in
8624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8627 $EGREP "$file_magic_regex" > /dev/null; then
8632 *** Warning: the command libtool uses to detect shared libraries,
8633 *** $file_magic_cmd, produces output that libtool cannot recognize.
8634 *** The result is that libtool may fail to recognize shared libraries
8635 *** as such. This will affect the creation of libtool libraries that
8636 *** depend on shared libraries, but programs linked with such libtool
8637 *** libraries will work regardless of this problem. Nevertheless, you
8638 *** may want to report the problem to your system manager and/or to
8639 *** bug-libtool@gnu.org
8649 MAGIC_CMD="$lt_save_MAGIC_CMD"
8654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8655 if test -n "$MAGIC_CMD"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8657 $as_echo "$MAGIC_CMD" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8667 if test -z "$lt_cv_path_MAGIC_CMD"; then
8668 if test -n "$ac_tool_prefix"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8670 $as_echo_n "checking for file... " >&6; }
8671 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8679 lt_save_MAGIC_CMD="$MAGIC_CMD"
8680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8682 for ac_dir in $ac_dummy; do
8684 test -z "$ac_dir" && ac_dir=.
8685 if test -f $ac_dir/file; then
8686 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8687 if test -n "$file_magic_test_file"; then
8688 case $deplibs_check_method in
8690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8693 $EGREP "$file_magic_regex" > /dev/null; then
8698 *** Warning: the command libtool uses to detect shared libraries,
8699 *** $file_magic_cmd, produces output that libtool cannot recognize.
8700 *** The result is that libtool may fail to recognize shared libraries
8701 *** as such. This will affect the creation of libtool libraries that
8702 *** depend on shared libraries, but programs linked with such libtool
8703 *** libraries will work regardless of this problem. Nevertheless, you
8704 *** may want to report the problem to your system manager and/or to
8705 *** bug-libtool@gnu.org
8715 MAGIC_CMD="$lt_save_MAGIC_CMD"
8720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8721 if test -n "$MAGIC_CMD"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8723 $as_echo "$MAGIC_CMD" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8739 # Use C for the default configuration in the libtool script
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8749 # Source file extension for C test sources.
8752 # Object file extension for compiled C test sources.
8756 # Code to be used in simple compile tests
8757 lt_simple_compile_test_code="int some_variable = 0;"
8759 # Code to be used in simple link tests
8760 lt_simple_link_test_code='int main(){return(0);}'
8768 # If no C compiler was specified, use CC.
8771 # If no C compiler flags were specified, use CFLAGS.
8772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8774 # Allow CC to be a program name with arguments.
8777 # Save the default compiler, since it gets overwritten when the other
8778 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8779 compiler_DEFAULT=$CC
8781 # save warnings/boilerplate of simple test code
8782 ac_outfile=conftest.$ac_objext
8783 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8784 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8785 _lt_compiler_boilerplate=`cat conftest.err`
8788 ac_outfile=conftest.$ac_objext
8789 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8790 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8791 _lt_linker_boilerplate=`cat conftest.err`
8796 ## There is no encapsulation within the following macros, do not change
8797 ## the running order or otherwise move them around unless you know exactly
8798 ## what you are doing...
8799 if test -n "$compiler"; then
8801 lt_prog_compiler_no_builtin_flag=
8803 if test "$GCC" = yes; then
8804 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8811 lt_cv_prog_compiler_rtti_exceptions=no
8812 ac_outfile=conftest.$ac_objext
8813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814 lt_compiler_flag="-fno-rtti -fno-exceptions"
8815 # Insert the option either (1) after the last *FLAGS variable, or
8816 # (2) before a word containing "conftest.", or (3) at the end.
8817 # Note that $ac_compile itself does not contain backslashes and begins
8818 # with a dollar sign (not a hyphen), so the echo should work correctly.
8819 # The option is referenced via a variable to avoid confusing sed.
8820 lt_compile=`echo "$ac_compile" | $SED \
8821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8823 -e 's:$: $lt_compiler_flag:'`
8824 (eval echo "\"\$as_me:8824: $lt_compile\"" >&5)
8825 (eval "$lt_compile" 2>conftest.err)
8827 cat conftest.err >&5
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 if (exit $ac_status) && test -s "$ac_outfile"; then
8830 # The compiler can only warn and ignore the option if not recognized
8831 # So say no if there are warnings other than the usual output.
8832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_rtti_exceptions=yes
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8857 lt_prog_compiler_wl=
8858 lt_prog_compiler_pic=
8859 lt_prog_compiler_static=
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8864 if test "$GCC" = yes; then
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_static='-static'
8870 # All AIX code is PIC.
8871 if test "$host_cpu" = ia64; then
8872 # AIX 5 now supports IA64 processor
8873 lt_prog_compiler_static='-Bstatic'
8880 # see comment about AmigaOS4 .so support
8881 lt_prog_compiler_pic='-fPIC'
8884 # FIXME: we need at least 68020 code to build shared libraries, but
8885 # adding the `-m68020' flag to GCC prevents building anything better,
8887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8893 # PIC is the default for these OSes.
8896 mingw* | cygwin* | pw32* | os2* | cegcc*)
8897 # This hack is so that the source file can tell whether it is being
8898 # built for inclusion in a dll (and should export symbols for example).
8899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8900 # (--disable-auto-import) libraries
8901 lt_prog_compiler_pic='-DDLL_EXPORT'
8904 darwin* | rhapsody*)
8905 # PIC is the default on this platform
8906 # Common symbols not allowed in MH_DYLIB files
8907 lt_prog_compiler_pic='-fno-common'
8911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8913 # sets the default TLS model and affects inlining.
8919 lt_prog_compiler_pic='-fPIC'
8925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8926 # Instead, we relocate shared libraries at runtime.
8930 # Just because we use GCC doesn't mean we suddenly get shared libraries
8931 # on systems that don't support them.
8932 lt_prog_compiler_can_build_shared=no
8937 # QNX uses GNU C++, but need to define -shared option too, otherwise
8939 lt_prog_compiler_pic='-fPIC -shared'
8943 if test -d /usr/nec; then
8944 lt_prog_compiler_pic=-Kconform_pic
8949 lt_prog_compiler_pic='-fPIC'
8953 # PORTME Check for flag to pass linker flags through the system compiler.
8956 lt_prog_compiler_wl='-Wl,'
8957 if test "$host_cpu" = ia64; then
8958 # AIX 5 now supports IA64 processor
8959 lt_prog_compiler_static='-Bstatic'
8961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8965 mingw* | cygwin* | pw32* | os2* | cegcc*)
8966 # This hack is so that the source file can tell whether it is being
8967 # built for inclusion in a dll (and should export symbols for example).
8968 lt_prog_compiler_pic='-DDLL_EXPORT'
8971 hpux9* | hpux10* | hpux11*)
8972 lt_prog_compiler_wl='-Wl,'
8973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8980 lt_prog_compiler_pic='+Z'
8983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8984 lt_prog_compiler_static='${wl}-a ${wl}archive'
8987 irix5* | irix6* | nonstopux*)
8988 lt_prog_compiler_wl='-Wl,'
8989 # PIC (with -KPIC) is the default.
8990 lt_prog_compiler_static='-non_shared'
8993 linux* | k*bsd*-gnu)
8994 case $cc_basename in
8995 # old Intel for x86_64 which still supported -KPIC.
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-static'
9001 # icc used to be incompatible with GCC.
9002 # ICC 10 doesn't accept -KPIC any more.
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='-fPIC'
9006 lt_prog_compiler_static='-static'
9008 # Lahey Fortran 8.1.
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='--shared'
9012 lt_prog_compiler_static='--static'
9014 pgcc* | pgf77* | pgf90* | pgf95*)
9015 # Portland Group compilers (*not* the Pentium gcc compiler,
9016 # which looks to be a dead project)
9017 lt_prog_compiler_wl='-Wl,'
9018 lt_prog_compiler_pic='-fpic'
9019 lt_prog_compiler_static='-Bstatic'
9022 lt_prog_compiler_wl='-Wl,'
9023 # All Alpha code is PIC.
9024 lt_prog_compiler_static='-non_shared'
9027 # IBM XL C 8.0/Fortran 10.1 on PPC
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_pic='-qpic'
9030 lt_prog_compiler_static='-qstaticlink'
9033 case `$CC -V 2>&1 | sed 5q` in
9036 lt_prog_compiler_pic='-KPIC'
9037 lt_prog_compiler_static='-Bstatic'
9038 lt_prog_compiler_wl='-Wl,'
9041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9042 lt_prog_compiler_pic='-KPIC'
9043 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_wl=''
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9057 # QNX uses GNU C++, but need to define -shared option too, otherwise
9059 lt_prog_compiler_pic='-fPIC -shared'
9062 osf3* | osf4* | osf5*)
9063 lt_prog_compiler_wl='-Wl,'
9064 # All OSF/1 code is PIC.
9065 lt_prog_compiler_static='-non_shared'
9069 lt_prog_compiler_static='-non_shared'
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-Bstatic'
9075 case $cc_basename in
9077 lt_prog_compiler_wl='-Qoption ld ';;
9079 lt_prog_compiler_wl='-Wl,';;
9084 lt_prog_compiler_wl='-Qoption ld '
9085 lt_prog_compiler_pic='-PIC'
9086 lt_prog_compiler_static='-Bstatic'
9089 sysv4 | sysv4.2uw2* | sysv4.3*)
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-Bstatic'
9096 if test -d /usr/nec ;then
9097 lt_prog_compiler_pic='-Kconform_pic'
9098 lt_prog_compiler_static='-Bstatic'
9102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_pic='-KPIC'
9105 lt_prog_compiler_static='-Bstatic'
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_can_build_shared=no
9114 lt_prog_compiler_pic='-pic'
9115 lt_prog_compiler_static='-Bstatic'
9119 lt_prog_compiler_can_build_shared=no
9125 # For platforms which do not support PIC, -DPIC is meaningless:
9127 lt_prog_compiler_pic=
9130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9134 $as_echo "$lt_prog_compiler_pic" >&6; }
9142 # Check to make sure the PIC flag actually works.
9144 if test -n "$lt_prog_compiler_pic"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9146 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9147 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9150 lt_cv_prog_compiler_pic_works=no
9151 ac_outfile=conftest.$ac_objext
9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9154 # Insert the option either (1) after the last *FLAGS variable, or
9155 # (2) before a word containing "conftest.", or (3) at the end.
9156 # Note that $ac_compile itself does not contain backslashes and begins
9157 # with a dollar sign (not a hyphen), so the echo should work correctly.
9158 # The option is referenced via a variable to avoid confusing sed.
9159 lt_compile=`echo "$ac_compile" | $SED \
9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162 -e 's:$: $lt_compiler_flag:'`
9163 (eval echo "\"\$as_me:9163: $lt_compile\"" >&5)
9164 (eval "$lt_compile" 2>conftest.err)
9166 cat conftest.err >&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 if (exit $ac_status) && test -s "$ac_outfile"; then
9169 # The compiler can only warn and ignore the option if not recognized
9170 # So say no if there are warnings other than the usual output.
9171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler_pic_works=yes
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9181 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9183 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9184 case $lt_prog_compiler_pic in
9186 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9189 lt_prog_compiler_pic=
9190 lt_prog_compiler_can_build_shared=no
9201 # Check to make sure the static flag actually works.
9203 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9205 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9206 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9209 lt_cv_prog_compiler_static_works=no
9210 save_LDFLAGS="$LDFLAGS"
9211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9214 # The linker can only warn and ignore the option if not recognized
9215 # So say no if there are warnings
9216 if test -s conftest.err; then
9217 # Append any errors to the config.log.
9218 cat conftest.err 1>&5
9219 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221 if diff conftest.exp conftest.er2 >/dev/null; then
9222 lt_cv_prog_compiler_static_works=yes
9225 lt_cv_prog_compiler_static_works=yes
9229 LDFLAGS="$save_LDFLAGS"
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9233 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9235 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9238 lt_prog_compiler_static=
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9249 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9252 lt_cv_prog_compiler_c_o=no
9253 $RM -r conftest 2>/dev/null
9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259 lt_compiler_flag="-o out/conftest2.$ac_objext"
9260 # Insert the option either (1) after the last *FLAGS variable, or
9261 # (2) before a word containing "conftest.", or (3) at the end.
9262 # Note that $ac_compile itself does not contain backslashes and begins
9263 # with a dollar sign (not a hyphen), so the echo should work correctly.
9264 lt_compile=`echo "$ac_compile" | $SED \
9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267 -e 's:$: $lt_compiler_flag:'`
9268 (eval echo "\"\$as_me:9268: $lt_compile\"" >&5)
9269 (eval "$lt_compile" 2>out/conftest.err)
9271 cat out/conftest.err >&5
9272 echo "$as_me:9272: \$? = $ac_status" >&5
9273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275 # The compiler can only warn and ignore the option if not recognized
9276 # So say no if there are warnings
9277 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9280 lt_cv_prog_compiler_c_o=yes
9285 # SGI C++ compiler will create directory out/ii_files/ for
9286 # template instantiation
9287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9288 $RM out/* && rmdir out
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9304 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9307 lt_cv_prog_compiler_c_o=no
9308 $RM -r conftest 2>/dev/null
9312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9314 lt_compiler_flag="-o out/conftest2.$ac_objext"
9315 # Insert the option either (1) after the last *FLAGS variable, or
9316 # (2) before a word containing "conftest.", or (3) at the end.
9317 # Note that $ac_compile itself does not contain backslashes and begins
9318 # with a dollar sign (not a hyphen), so the echo should work correctly.
9319 lt_compile=`echo "$ac_compile" | $SED \
9320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9322 -e 's:$: $lt_compiler_flag:'`
9323 (eval echo "\"\$as_me:9323: $lt_compile\"" >&5)
9324 (eval "$lt_compile" 2>out/conftest.err)
9326 cat out/conftest.err >&5
9327 echo "$as_me:9327: \$? = $ac_status" >&5
9328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9330 # The compiler can only warn and ignore the option if not recognized
9331 # So say no if there are warnings
9332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9335 lt_cv_prog_compiler_c_o=yes
9340 # SGI C++ compiler will create directory out/ii_files/ for
9341 # template instantiation
9342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9343 $RM out/* && rmdir out
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9355 hard_links="nottested"
9356 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9357 # do not overwrite the value of need_locks provided by the user
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9359 $as_echo_n "checking if we can lock with hard links... " >&6; }
9362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9364 ln conftest.a conftest.b 2>&5 || hard_links=no
9365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9367 $as_echo "$hard_links" >&6; }
9368 if test "$hard_links" = no; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9370 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9383 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9386 allow_undefined_flag=
9387 always_export_symbols=no
9389 archive_expsym_cmds=
9390 compiler_needs_object=no
9391 enable_shared_with_static_runtimes=no
9392 export_dynamic_flag_spec=
9393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9394 hardcode_automatic=no
9396 hardcode_direct_absolute=no
9397 hardcode_libdir_flag_spec=
9398 hardcode_libdir_flag_spec_ld=
9399 hardcode_libdir_separator=
9401 hardcode_shlibpath_var=unsupported
9403 link_all_deplibs=unknown
9406 old_archive_from_new_cmds=
9407 old_archive_from_expsyms_cmds=
9408 thread_safe_flag_spec=
9409 whole_archive_flag_spec=
9410 # include_expsyms should be a list of space-separated symbols to be *always*
9411 # included in the symbol list
9413 # exclude_expsyms can be an extended regexp of symbols to exclude
9414 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9416 # as well as any symbol that contains `d'.
9417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9419 # platforms (ab)use it in PIC code, but their linkers get confused if
9420 # the symbol is explicitly referenced. Since portable code cannot
9421 # rely on this symbol name, it's probably fine to never include it in
9422 # preloaded symbol tables.
9423 # Exclude shared library initialization/finalization symbols.
9424 extract_expsyms_cmds=
9427 cygwin* | mingw* | pw32* | cegcc*)
9428 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9429 # When not using gcc, we currently assume that we are using
9430 # Microsoft Visual C++.
9431 if test "$GCC" != yes; then
9436 # we just hope/assume this is gcc and not c89 (= MSVC++)
9442 linux* | k*bsd*-gnu)
9448 if test "$with_gnu_ld" = yes; then
9449 # If archive_cmds runs LD, not CC, wlarc should be empty
9452 # Set some defaults for GNU ld with shared library support. These
9453 # are reset later if shared libraries are not supported. Putting them
9454 # here allows them to be overridden if necessary.
9455 runpath_var=LD_RUN_PATH
9456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457 export_dynamic_flag_spec='${wl}--export-dynamic'
9458 # ancient GNU ld didn't support --whole-archive et. al.
9459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9462 whole_archive_flag_spec=
9464 supports_anon_versioning=no
9465 case `$LD -v 2>&1` in
9466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9469 *\ 2.11.*) ;; # other 2.11 versions
9470 *) supports_anon_versioning=yes ;;
9473 # See if GNU ld supports shared libraries.
9476 # On AIX/PPC, the GNU linker is very broken
9477 if test "$host_cpu" != ia64; then
9481 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9482 *** to be unable to reliably create shared libraries on AIX.
9483 *** Therefore, libtool is disabling shared libraries support. If you
9484 *** really care for shared libraries, you may want to modify your PATH
9485 *** so that a non-GNU linker is found, and then restart.
9494 # see comment about AmigaOS4 .so support
9495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496 archive_expsym_cmds=''
9499 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)'
9500 hardcode_libdir_flag_spec='-L$libdir'
9501 hardcode_minus_L=yes
9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9508 allow_undefined_flag=unsupported
9509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9510 # support --undefined. This deserves some investigation. FIXME
9511 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517 cygwin* | mingw* | pw32* | cegcc*)
9518 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9519 # as there is no search path for DLLs.
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 allow_undefined_flag=unsupported
9522 always_export_symbols=no
9523 enable_shared_with_static_runtimes=yes
9524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9526 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9528 # If the export-symbols file already is a .def file (1st line
9529 # is EXPORTS), use it as is; otherwise, prepend...
9530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531 cp $export_symbols $output_objdir/$soname.def;
9533 echo EXPORTS > $output_objdir/$soname.def;
9534 cat $export_symbols >> $output_objdir/$soname.def;
9536 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9544 hardcode_shlibpath_var=no
9545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546 export_dynamic_flag_spec='${wl}-E'
9547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9548 # Instead, shared libraries are loaded at an image base (0x10000000 by
9549 # default) and relocated if they conflict, which is a slow very memory
9550 # consuming and fragmenting process. To avoid this, we pick a random,
9551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9554 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'
9557 gnu* | linux* | tpf* | k*bsd*-gnu)
9559 if test "$host_os" = linux-dietlibc; then
9560 case $cc_basename in
9561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9565 && test "$tmp_diet" = no
9568 tmp_sharedflag='-shared'
9569 case $cc_basename,$host_cpu in
9570 pgcc*) # Portland Group C compiler
9571 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9572 tmp_addflag=' $pic_flag'
9574 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9575 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9576 tmp_addflag=' $pic_flag -Mnomain' ;;
9577 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9578 tmp_addflag=' -i_dynamic' ;;
9579 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9580 tmp_addflag=' -i_dynamic -nofor_main' ;;
9581 ifc* | ifort*) # Intel Fortran compiler
9582 tmp_addflag=' -nofor_main' ;;
9583 lf95*) # Lahey Fortran 8.1
9584 whole_archive_flag_spec=
9585 tmp_sharedflag='--shared' ;;
9586 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9587 tmp_sharedflag='-qmkshrobj'
9590 case `$CC -V 2>&1 | sed 5q` in
9591 *Sun\ C*) # Sun C 5.9
9592 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9593 compiler_needs_object=yes
9594 tmp_sharedflag='-G' ;;
9595 *Sun\ F*) # Sun Fortran 8.3
9596 tmp_sharedflag='-G' ;;
9598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 if test "x$supports_anon_versioning" = xyes; then
9601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9603 echo "local: *; };" >> $output_objdir/$libname.ver~
9604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9607 case $cc_basename in
9609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9611 hardcode_libdir_flag_spec=
9612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9613 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9614 if test "x$supports_anon_versioning" = xyes; then
9615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9617 echo "local: *; };" >> $output_objdir/$libname.ver~
9618 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9627 netbsd* | netbsdelf*-gnu)
9628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9643 *** create shared libraries on Solaris systems. Therefore, libtool
9644 *** is disabling shared libraries support. We urge you to upgrade GNU
9645 *** binutils to release 2.9.1 or newer. Another option is to modify
9646 *** your PATH or compiler configuration so that the native linker is
9647 *** used, and then restart.
9650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9659 case `$LD -v 2>&1` in
9660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9665 *** reliably create shared libraries on SCO systems. Therefore, libtool
9666 *** is disabling shared libraries support. We urge you to upgrade GNU
9667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9668 *** your PATH or compiler configuration so that the native linker is
9669 *** used, and then restart.
9674 # For security reasons, it is highly recommended that you always
9675 # use absolute paths for naming shared libraries, and exclude the
9676 # DT_RUNPATH tag from executables and libraries. But doing so
9677 # requires that you compile everything twice, which is a pain.
9678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_shlibpath_var=no
9697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706 if test "$ld_shlibs" = no; then
9708 hardcode_libdir_flag_spec=
9709 export_dynamic_flag_spec=
9710 whole_archive_flag_spec=
9713 # PORTME fill in a description of your system's linker (not GNU ld)
9716 allow_undefined_flag=unsupported
9717 always_export_symbols=yes
9718 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'
9719 # Note: this linker hardcodes the directories in LIBPATH if there
9720 # are no directories specified by -L.
9721 hardcode_minus_L=yes
9722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9723 # Neither direct hardcoding nor static linking is supported with a
9725 hardcode_direct=unsupported
9730 if test "$host_cpu" = ia64; then
9731 # On IA64, the linker does run time linking by default, so we don't
9732 # have to do anything special.
9733 aix_use_runtimelinking=no
9734 exp_sym_flag='-Bexport'
9737 # If we're using GNU nm, then we don't want the "-C" option.
9738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9739 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9740 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9742 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9744 aix_use_runtimelinking=no
9746 # Test if we are trying to use run time linking or normal
9747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9748 # need to do runtime linking.
9749 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9750 for ld_flag in $LDFLAGS; do
9751 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9752 aix_use_runtimelinking=yes
9759 exp_sym_flag='-bexport'
9760 no_entry_flag='-bnoentry'
9763 # When large executables or shared objects are built, AIX ld can
9764 # have problems creating the table of contents. If linking a library
9765 # or program results in "error TOC overflow" add -mminimal-toc to
9766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9771 hardcode_direct_absolute=yes
9772 hardcode_libdir_separator=':'
9773 link_all_deplibs=yes
9774 file_list_spec='${wl}-f,'
9776 if test "$GCC" = yes; then
9777 case $host_os in aix4.[012]|aix4.[012].*)
9778 # We only want to do this on AIX 4.2 and lower, the check
9779 # below for broken collect2 doesn't work under 4.3+
9780 collect2name=`${CC} -print-prog-name=collect2`
9781 if test -f "$collect2name" &&
9782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9784 # We have reworked collect2
9787 # We have old collect2
9788 hardcode_direct=unsupported
9789 # It fails to find uninstalled libraries when the uninstalled
9790 # path is not listed in the libpath. Setting hardcode_minus_L
9791 # to unsupported forces relinking
9792 hardcode_minus_L=yes
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_libdir_separator=
9798 shared_flag='-shared'
9799 if test "$aix_use_runtimelinking" = yes; then
9800 shared_flag="$shared_flag "'${wl}-G'
9805 if test "$host_cpu" = ia64; then
9806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9807 # chokes on -Wl,-G. The following line is correct:
9810 if test "$aix_use_runtimelinking" = yes; then
9811 shared_flag='${wl}-G'
9813 shared_flag='${wl}-bM:SRE'
9818 export_dynamic_flag_spec='${wl}-bexpall'
9819 # It seems that -bexpall does not export symbols beginning with
9820 # underscore (_), so it is better to generate a list of symbols to export.
9821 always_export_symbols=yes
9822 if test "$aix_use_runtimelinking" = yes; then
9823 # Warning - without using the other runtime loading flags (-brtl),
9824 # -berok will link without error, but may produce a broken library.
9825 allow_undefined_flag='-berok'
9826 # Determine the default libpath from the value encoded in an
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9839 if ac_fn_c_try_link "$LINENO"; then :
9841 lt_aix_libpath_sed='
9842 /Import File Strings/,/^$/ {
9848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9849 # Check for a 64-bit object if we didn't find anything.
9850 if test -z "$aix_libpath"; then
9851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9859 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9861 if test "$host_cpu" = ia64; then
9862 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9863 allow_undefined_flag="-z nodefs"
9864 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"
9866 # Determine the default libpath from the value encoded in an
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9879 if ac_fn_c_try_link "$LINENO"; then :
9881 lt_aix_libpath_sed='
9882 /Import File Strings/,/^$/ {
9888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9889 # Check for a 64-bit object if we didn't find anything.
9890 if test -z "$aix_libpath"; then
9891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9894 rm -f core conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9898 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9899 # Warning - without using the other run time loading flags,
9900 # -berok will link without error, but may produce a broken library.
9901 no_undefined_flag=' ${wl}-bernotok'
9902 allow_undefined_flag=' ${wl}-berok'
9903 # Exported symbols can be pulled into shared objects from archives
9904 whole_archive_flag_spec='$convenience'
9905 archive_cmds_need_lc=yes
9906 # This is similar to how AIX traditionally builds its shared libraries.
9907 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9915 # see comment about AmigaOS4 .so support
9916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917 archive_expsym_cmds=''
9920 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)'
9921 hardcode_libdir_flag_spec='-L$libdir'
9922 hardcode_minus_L=yes
9928 export_dynamic_flag_spec=-rdynamic
9931 cygwin* | mingw* | pw32* | cegcc*)
9932 # When not using gcc, we currently assume that we are using
9933 # Microsoft Visual C++.
9934 # hardcode_libdir_flag_spec is actually meaningless, as there is
9935 # no search path for DLLs.
9936 hardcode_libdir_flag_spec=' '
9937 allow_undefined_flag=unsupported
9938 # Tell ltmain to make .lib files, not .a files.
9940 # Tell ltmain to make .dll files, not .so files.
9942 # FIXME: Setting linknames here is a bad hack.
9943 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9944 # The linker will automatically build a .lib file if we build a DLL.
9945 old_archive_from_new_cmds='true'
9946 # FIXME: Should let the user specify the lib program.
9947 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9948 fix_srcfile_path='`cygpath -w "$srcfile"`'
9949 enable_shared_with_static_runtimes=yes
9952 darwin* | rhapsody*)
9955 archive_cmds_need_lc=no
9957 hardcode_automatic=yes
9958 hardcode_shlibpath_var=unsupported
9959 whole_archive_flag_spec=''
9960 link_all_deplibs=yes
9961 allow_undefined_flag="$_lt_dar_allow_undefined"
9962 case $cc_basename in
9963 ifort*) _lt_dar_can_shared=yes ;;
9964 *) _lt_dar_can_shared=$GCC ;;
9966 if test "$_lt_dar_can_shared" = "yes"; then
9967 output_verbose_link_cmd=echo
9968 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9969 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9970 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}"
9971 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}"
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_libdir_flag_spec='-L$libdir'
9982 hardcode_shlibpath_var=no
9989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9990 # support. Future versions do this automatically, but an explicit c++rt0.o
9991 # does not break anything, and helps significantly (at the cost of a little
9994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9995 hardcode_libdir_flag_spec='-R$libdir'
9997 hardcode_shlibpath_var=no
10000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct=yes
10004 hardcode_minus_L=yes
10005 hardcode_shlibpath_var=no
10008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10009 freebsd* | dragonfly*)
10010 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10017 if test "$GCC" = yes; then
10018 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10020 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10023 hardcode_libdir_separator=:
10024 hardcode_direct=yes
10026 # hardcode_minus_L: Not really in the search PATH,
10027 # but as the default location of the library.
10028 hardcode_minus_L=yes
10029 export_dynamic_flag_spec='${wl}-E'
10033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10038 if test "$with_gnu_ld" = no; then
10039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10040 hardcode_libdir_flag_spec_ld='+b $libdir'
10041 hardcode_libdir_separator=:
10042 hardcode_direct=yes
10043 hardcode_direct_absolute=yes
10044 export_dynamic_flag_spec='${wl}-E'
10045 # hardcode_minus_L: Not really in the search PATH,
10046 # but as the default location of the library.
10047 hardcode_minus_L=yes
10052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10077 if test "$with_gnu_ld" = no; then
10078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10079 hardcode_libdir_separator=:
10084 hardcode_shlibpath_var=no
10087 hardcode_direct=yes
10088 hardcode_direct_absolute=yes
10089 export_dynamic_flag_spec='${wl}-E'
10091 # hardcode_minus_L: Not really in the search PATH,
10092 # but as the default location of the library.
10093 hardcode_minus_L=yes
10099 irix5* | irix6* | nonstopux*)
10100 if test "$GCC" = yes; then
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10102 # Try to use the -exported_symbol ld option, if it does not
10103 # work, assume that -exports_file does not work either and
10104 # implicitly export all symbols.
10105 save_LDFLAGS="$LDFLAGS"
10106 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LDFLAGS="$save_LDFLAGS"
10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10122 archive_cmds_need_lc='no'
10123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124 hardcode_libdir_separator=:
10126 link_all_deplibs=yes
10129 netbsd* | netbsdelf*-gnu)
10130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10133 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10135 hardcode_libdir_flag_spec='-R$libdir'
10136 hardcode_direct=yes
10137 hardcode_shlibpath_var=no
10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_direct=yes
10143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 hardcode_libdir_separator=:
10145 hardcode_shlibpath_var=no
10152 if test -f /usr/libexec/ld.so; then
10153 hardcode_direct=yes
10154 hardcode_shlibpath_var=no
10155 hardcode_direct_absolute=yes
10156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10160 export_dynamic_flag_spec='${wl}-E'
10163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_libdir_flag_spec='-R$libdir'
10168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_minus_L=yes
10181 allow_undefined_flag=unsupported
10182 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10183 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10187 if test "$GCC" = yes; then
10188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10189 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10191 allow_undefined_flag=' -expect_unresolved \*'
10192 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10194 archive_cmds_need_lc='no'
10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10196 hardcode_libdir_separator=:
10199 osf4* | osf5*) # as osf3* with the addition of -msym flag
10200 if test "$GCC" = yes; then
10201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10202 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10205 allow_undefined_flag=' -expect_unresolved \*'
10206 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10207 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~
10208 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10210 # Both c and cxx compiler support -rpath directly
10211 hardcode_libdir_flag_spec='-rpath $libdir'
10213 archive_cmds_need_lc='no'
10214 hardcode_libdir_separator=:
10218 no_undefined_flag=' -z defs'
10219 if test "$GCC" = yes; then
10221 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10223 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10225 case `$CC -V 2>&1` in
10228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10234 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10236 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240 hardcode_libdir_flag_spec='-R$libdir'
10241 hardcode_shlibpath_var=no
10243 solaris2.[0-5] | solaris2.[0-5].*) ;;
10245 # The compiler driver will combine and reorder linker options,
10246 # but understands `-z linker_flag'. GCC discards it without `$wl',
10247 # but is careful enough not to reorder.
10248 # Supported since Solaris 2.6 (maybe 2.5.1?)
10249 if test "$GCC" = yes; then
10250 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10252 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10256 link_all_deplibs=yes
10260 if test "x$host_vendor" = xsequent; then
10261 # Use $CC to link under sequent, because it throws in some extra .o
10262 # files that make .init and .fini sections work.
10263 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10267 hardcode_libdir_flag_spec='-L$libdir'
10268 hardcode_direct=yes
10269 hardcode_minus_L=yes
10270 hardcode_shlibpath_var=no
10274 case $host_vendor in
10276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10277 hardcode_direct=yes # is this really true???
10280 ## LD is ld it makes a PLAMLIB
10281 ## CC just makes a GrossModule.
10282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10283 reload_cmds='$CC -r -o $output$reload_objs'
10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10291 runpath_var='LD_RUN_PATH'
10292 hardcode_shlibpath_var=no
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_shlibpath_var=no
10298 export_dynamic_flag_spec='-Bexport'
10302 if test -d /usr/nec; then
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_shlibpath_var=no
10305 runpath_var=LD_RUN_PATH
10306 hardcode_runpath_var=yes
10311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10312 no_undefined_flag='${wl}-z,text'
10313 archive_cmds_need_lc=no
10314 hardcode_shlibpath_var=no
10315 runpath_var='LD_RUN_PATH'
10317 if test "$GCC" = yes; then
10318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 sysv5* | sco3.2v5* | sco5v6*)
10327 # Note: We can NOT use -z defs as we might desire, because we do not
10328 # link with -lc, and that would cause any symbols used from libc to
10329 # always be unresolved, which means just about no library would
10330 # ever link correctly. If we're not using GNU ld we use -z text
10331 # though, which does catch some bad symbols but isn't as heavy-handed
10333 no_undefined_flag='${wl}-z,text'
10334 allow_undefined_flag='${wl}-z,nodefs'
10335 archive_cmds_need_lc=no
10336 hardcode_shlibpath_var=no
10337 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10338 hardcode_libdir_separator=':'
10339 link_all_deplibs=yes
10340 export_dynamic_flag_spec='${wl}-Bexport'
10341 runpath_var='LD_RUN_PATH'
10343 if test "$GCC" = yes; then
10344 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_libdir_flag_spec='-L$libdir'
10355 hardcode_shlibpath_var=no
10363 if test x$host_vendor = xsni; then
10365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10366 export_dynamic_flag_spec='${wl}-Blargedynsym'
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10373 $as_echo "$ld_shlibs" >&6; }
10374 test "$ld_shlibs" = no && can_build_shared=no
10376 with_gnu_ld=$with_gnu_ld
10393 # Do we need to explicitly link libc?
10395 case "x$archive_cmds_need_lc" in
10397 # Assume -lc should be added
10398 archive_cmds_need_lc=yes
10400 if test "$enable_shared" = yes && test "$GCC" = yes; then
10401 case $archive_cmds in
10403 # FIXME: we may have to deal with multi-command sequences.
10406 # Test whether the compiler implicitly links with -lc since on some
10407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10408 # to ld, don't add -lc before -lgcc.
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10410 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10415 (eval $ac_compile) 2>&5
10417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418 test $ac_status = 0; } 2>conftest.err; then
10421 libobjs=conftest.$ac_objext
10423 wl=$lt_prog_compiler_wl
10424 pic_flag=$lt_prog_compiler_pic
10430 lt_save_allow_undefined_flag=$allow_undefined_flag
10431 allow_undefined_flag=
10432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10433 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436 test $ac_status = 0; }
10438 archive_cmds_need_lc=no
10440 archive_cmds_need_lc=yes
10442 allow_undefined_flag=$lt_save_allow_undefined_flag
10444 cat conftest.err 1>&5
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10448 $as_echo "$archive_cmds_need_lc" >&6; }
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10612 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10614 if test "$GCC" = yes; then
10616 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10617 *) lt_awk_arg="/^libraries:/" ;;
10619 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10620 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10621 # if the path contains ";" then we assume it to be the separator
10622 # otherwise default to the standard path separator (i.e. ":") - it is
10623 # assumed that no part of a normal pathname contains ";" but that should
10624 # okay in the real world where ";" in dirpaths is itself problematic.
10625 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10629 # Ok, now we have the path, separated by spaces, we can step through it
10630 # and add multilib dir if necessary.
10631 lt_tmp_lt_search_path_spec=
10632 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10633 for lt_sys_path in $lt_search_path_spec; do
10634 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10637 test -d "$lt_sys_path" && \
10638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10641 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10642 BEGIN {RS=" "; FS="/|\n";} {
10645 for (lt_i = NF; lt_i > 0; lt_i--) {
10646 if ($lt_i != "" && $lt_i != ".") {
10647 if ($lt_i == "..") {
10650 if (lt_count == 0) {
10651 lt_foo="/" $lt_i lt_foo;
10658 if (lt_foo != "") { lt_freq[lt_foo]++; }
10659 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10661 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10665 library_names_spec=
10666 libname_spec='lib$name'
10670 postuninstall_cmds=
10674 shlibpath_overrides_runpath=unknown
10676 dynamic_linker="$host_os ld.so"
10677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10678 need_lib_prefix=unknown
10679 hardcode_into_libs=no
10681 # when you set need_version to no, make sure it does not cause -set_version
10682 # flags to be left without arguments
10683 need_version=unknown
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10689 shlibpath_var=LIBPATH
10691 # AIX 3 has no versioning support, so we append a major version to the name.
10692 soname_spec='${libname}${release}${shared_ext}$major'
10699 hardcode_into_libs=yes
10700 if test "$host_cpu" = ia64; then
10701 # AIX 5 supports IA64
10702 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10703 shlibpath_var=LD_LIBRARY_PATH
10705 # With GCC up to 2.95.x, collect2 would create an import file
10706 # for dependence libraries. The import file would start with
10707 # the line `#! .'. This would cause the generated library to
10708 # depend on `.', always an invalid library. This was fixed in
10709 # development snapshots of GCC prior to 3.0.
10711 aix4 | aix4.[01] | aix4.[01].*)
10712 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10714 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10717 can_build_shared=no
10721 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10722 # soname into executable. Probably we can add versioning support to
10723 # collect2, so additional links can be useful in future.
10724 if test "$aix_use_runtimelinking" = yes; then
10725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10726 # instead of lib<name>.a to let people know that these are not
10727 # typical AIX shared libraries.
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 # We preserve .a as extension for shared libraries through AIX4.2
10731 # and later when we are not doing run time linking.
10732 library_names_spec='${libname}${release}.a $libname.a'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LIBPATH
10742 # Since July 2007 AmigaOS4 officially supports .so libraries.
10743 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 library_names_spec='$libname.ixlibrary $libname.a'
10748 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10749 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10755 library_names_spec='${libname}${shared_ext}'
10756 dynamic_linker="$host_os ld.so"
10757 shlibpath_var=LIBRARY_PATH
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10769 # the default ld.so.conf also contains /usr/contrib/lib and
10770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10771 # libtool to hard-code these into programs
10774 cygwin* | mingw* | pw32* | cegcc*)
10775 version_type=windows
10780 case $GCC,$host_os in
10781 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10782 library_names_spec='$libname.dll.a'
10783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10784 postinstall_cmds='base_file=`basename \${file}`~
10785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10786 dldir=$destdir/`dirname \$dlpath`~
10787 test -d \$dldir || mkdir -p \$dldir~
10788 $install_prog $dir/$dlname \$dldir/$dlname~
10789 chmod a+x \$dldir/$dlname~
10790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10794 dlpath=$dir/\$dldll~
10796 shlibpath_overrides_runpath=yes
10800 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10801 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10802 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10805 # MinGW DLLs use traditional 'lib' prefix
10806 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10807 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10808 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10809 # It is most probably a Windows format PATH printed by
10810 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10811 # path with ; separators, and with drive letters. We can handle the
10812 # drive letters (cygwin fileutils understands them), so leave them,
10813 # especially as we might pass files found there to a mingw objdump,
10814 # which wouldn't understand a cygwinified path. Ahh.
10815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10821 # pw32 DLLs use 'pw' prefix rather than 'lib'
10822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10831 dynamic_linker='Win32 ld.exe'
10832 # FIXME: first we should search . and the directory the executable is in
10836 darwin* | rhapsody*)
10837 dynamic_linker="$host_os dyld"
10838 version_type=darwin
10841 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10842 soname_spec='${libname}${release}${major}$shared_ext'
10843 shlibpath_overrides_runpath=yes
10844 shlibpath_var=DYLD_LIBRARY_PATH
10845 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10848 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 shlibpath_var=LD_LIBRARY_PATH
10864 freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10871 freebsd[123]*) objformat=aout ;;
10872 *) objformat=elf ;;
10875 version_type=freebsd-$objformat
10876 case $version_type in
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10887 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10892 freebsd3.[01]* | freebsdelf3.[01]*)
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10901 *) # from 4.6 on, and DragonFly
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 hardcode_into_libs=yes
10918 hpux9* | hpux10* | hpux11*)
10919 # Give a soname corresponding to the major version so that dld.sl refuses to
10920 # link against other versions.
10927 hardcode_into_libs=yes
10928 dynamic_linker="$host_os dld.so"
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 if test "X$HPUX_IA64_MODE" = X32; then
10934 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10936 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10942 hardcode_into_libs=yes
10943 dynamic_linker="$host_os dld.sl"
10944 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953 dynamic_linker="$host_os dld.sl"
10954 shlibpath_var=SHLIB_PATH
10955 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10960 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10961 postinstall_cmds='chmod 555 $lib'
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10976 irix5* | irix6* | nonstopux*)
10978 nonstopux*) version_type=nonstopux ;;
10980 if test "$lt_cv_prog_gnu_ld" = yes; then
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10991 irix5* | nonstopux*)
10992 libsuff= shlibsuff=
10995 case $LD in # libtool.m4 will add one of these switches to LD
10996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10997 libsuff= shlibsuff= libmagic=32-bit;;
10998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10999 libsuff=32 shlibsuff=N32 libmagic=N32;;
11000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11002 *) libsuff= shlibsuff= libmagic=never-match;;
11006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11007 shlibpath_overrides_runpath=no
11008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11010 hardcode_into_libs=yes
11013 # No shared lib support for Linux oldld, aout, or coff.
11014 linux*oldld* | linux*aout* | linux*coff*)
11018 # This must be Linux ELF.
11019 linux* | k*bsd*-gnu)
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=no
11028 # Some binutils ld are patched to set DT_RUNPATH
11029 save_LDFLAGS=$LDFLAGS
11030 save_libdir=$libdir
11031 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11032 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11044 if ac_fn_c_try_link "$LINENO"; then :
11045 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11046 shlibpath_overrides_runpath=yes
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 LDFLAGS=$save_LDFLAGS
11052 libdir=$save_libdir
11054 # This implies no fast_install, which is unacceptable.
11055 # Some rework will be needed to allow for fast_install
11056 # before this can be enabled.
11057 hardcode_into_libs=yes
11059 # Append ld.so.conf contents to the search path
11060 if test -f /etc/ld.so.conf; then
11061 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;/^$/d' | tr '\n' ' '`
11062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11065 # We used to test for /lib/ld.so.1 and disable shared libraries on
11066 # powerpc, because MkLinux only supported shared libraries with the
11067 # GNU dynamic linker. Since this was broken with cross compilers,
11068 # most powerpc-linux boxes support dynamic linking these days and
11069 # people can always --disable-shared, the test was removed, and we
11070 # assume the GNU/Linux dynamic linker is in use.
11071 dynamic_linker='GNU/Linux ld.so'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=no
11082 hardcode_into_libs=yes
11083 dynamic_linker='NetBSD ld.elf_so'
11090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11093 dynamic_linker='NetBSD (a.out) ld.so'
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 dynamic_linker='NetBSD ld.elf_so'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 hardcode_into_libs=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=no
11119 hardcode_into_libs=yes
11120 dynamic_linker='ldqnx.so'
11125 sys_lib_dlsearch_path_spec="/usr/lib"
11127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11130 *) need_version=no ;;
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11137 openbsd2.[89] | openbsd2.[89].*)
11138 shlibpath_overrides_runpath=no
11141 shlibpath_overrides_runpath=yes
11145 shlibpath_overrides_runpath=yes
11150 libname_spec='$name'
11153 library_names_spec='$libname${shared_ext} $libname.a'
11154 dynamic_linker='OS/2 ld.exe'
11155 shlibpath_var=LIBPATH
11158 osf3* | osf4* | osf5*)
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 hardcode_into_libs=yes
11182 # ldd complains unless libraries are executable
11183 postinstall_cmds='chmod +x $lib'
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 if test "$with_gnu_ld" = yes; then
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 case $host_vendor in
11205 shlibpath_overrides_runpath=no
11207 runpath_var=LD_RUN_PATH
11215 shlibpath_overrides_runpath=no
11216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11222 if test -d /usr/nec ;then
11224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11225 soname_spec='$libname${shared_ext}.$major'
11226 shlibpath_var=LD_LIBRARY_PATH
11230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11231 version_type=freebsd-elf
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 if test "$with_gnu_ld" = yes; then
11240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11249 sys_lib_dlsearch_path_spec='/usr/lib'
11253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=no
11260 hardcode_into_libs=yes
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11275 $as_echo "$dynamic_linker" >&6; }
11276 test "$dynamic_linker" = no && can_build_shared=no
11278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11279 if test "$GCC" = yes; then
11280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11283 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11377 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11379 if test -n "$hardcode_libdir_flag_spec" ||
11380 test -n "$runpath_var" ||
11381 test "X$hardcode_automatic" = "Xyes" ; then
11383 # We can hardcode non-existent directories.
11384 if test "$hardcode_direct" != no &&
11385 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11386 # have to relink, otherwise we might link with an installed library
11387 # when we should be linking with a yet-to-be-installed one
11388 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11389 test "$hardcode_minus_L" != no; then
11390 # Linking always hardcodes the temporary library directory.
11391 hardcode_action=relink
11393 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11394 hardcode_action=immediate
11397 # We cannot hardcode anything, or else we can only hardcode existing
11399 hardcode_action=unsupported
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11402 $as_echo "$hardcode_action" >&6; }
11404 if test "$hardcode_action" = relink ||
11405 test "$inherit_rpath" = yes; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408 elif test "$shlibpath_overrides_runpath" = yes ||
11409 test "$enable_shared" = no; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11419 if test "x$enable_dlopen" != xyes; then
11420 enable_dlopen=unknown
11421 enable_dlopen_self=unknown
11422 enable_dlopen_self_static=unknown
11429 lt_cv_dlopen="load_add_on"
11431 lt_cv_dlopen_self=yes
11434 mingw* | pw32* | cegcc*)
11435 lt_cv_dlopen="LoadLibrary"
11440 lt_cv_dlopen="dlopen"
11445 # if libdl is installed we need to link against it
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11451 ac_check_lib_save_LIBS=$LIBS
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dl_dlopen=yes
11474 ac_cv_lib_dl_dlopen=no
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11483 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11486 lt_cv_dlopen="dyld"
11488 lt_cv_dlopen_self=yes
11495 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11496 if test "x$ac_cv_func_shl_load" = x""yes; then :
11497 lt_cv_dlopen="shl_load"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11500 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11504 ac_check_lib_save_LIBS=$LIBS
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11519 return shl_load ();
11524 if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dld_shl_load=yes
11527 ac_cv_lib_dld_shl_load=no
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_lib_save_LIBS
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11534 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11535 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11536 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11538 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11539 if test "x$ac_cv_func_dlopen" = x""yes; then :
11540 lt_cv_dlopen="dlopen"
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11547 ac_check_lib_save_LIBS=$LIBS
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dl_dlopen=yes
11570 ac_cv_lib_dl_dlopen=no
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11578 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11582 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_svld_dlopen=yes
11609 ac_cv_lib_svld_dlopen=no
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11616 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11617 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11622 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11625 ac_check_lib_save_LIBS=$LIBS
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11640 return dld_link ();
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_lib_dld_dld_link=yes
11648 ac_cv_lib_dld_dld_link=no
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_lib_save_LIBS
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11655 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11656 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11657 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11678 if test "x$lt_cv_dlopen" != xno; then
11684 case $lt_cv_dlopen in
11686 save_CPPFLAGS="$CPPFLAGS"
11687 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11689 save_LDFLAGS="$LDFLAGS"
11690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11693 LIBS="$lt_cv_dlopen_libs $LIBS"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11696 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11697 if test "${lt_cv_dlopen_self+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 if test "$cross_compiling" = yes; then :
11701 lt_cv_dlopen_self=cross
11703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11704 lt_status=$lt_dlunknown
11705 cat > conftest.$ac_ext <<_LT_EOF
11706 #line 11706 "configure"
11707 #include "confdefs.h"
11716 # define LT_DLGLOBAL RTLD_GLOBAL
11719 # define LT_DLGLOBAL DL_GLOBAL
11721 # define LT_DLGLOBAL 0
11725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11726 find out it does not work in some platform. */
11727 #ifndef LT_DLLAZY_OR_NOW
11729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11732 # define LT_DLLAZY_OR_NOW DL_LAZY
11735 # define LT_DLLAZY_OR_NOW RTLD_NOW
11738 # define LT_DLLAZY_OR_NOW DL_NOW
11740 # define LT_DLLAZY_OR_NOW 0
11747 void fnord() { int i=42;}
11750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11751 int status = $lt_dlunknown;
11755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11756 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757 /* dlclose (self); */
11765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11766 (eval $ac_link) 2>&5
11768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11770 (./conftest; exit; ) >&5 2>/dev/null
11772 case x$lt_status in
11773 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11774 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11775 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11778 # compilation failed
11779 lt_cv_dlopen_self=no
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11787 $as_echo "$lt_cv_dlopen_self" >&6; }
11789 if test "x$lt_cv_dlopen_self" = xyes; then
11790 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11792 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11793 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11796 if test "$cross_compiling" = yes; then :
11797 lt_cv_dlopen_self_static=cross
11799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11800 lt_status=$lt_dlunknown
11801 cat > conftest.$ac_ext <<_LT_EOF
11802 #line 11802 "configure"
11803 #include "confdefs.h"
11812 # define LT_DLGLOBAL RTLD_GLOBAL
11815 # define LT_DLGLOBAL DL_GLOBAL
11817 # define LT_DLGLOBAL 0
11821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11822 find out it does not work in some platform. */
11823 #ifndef LT_DLLAZY_OR_NOW
11825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11828 # define LT_DLLAZY_OR_NOW DL_LAZY
11831 # define LT_DLLAZY_OR_NOW RTLD_NOW
11834 # define LT_DLLAZY_OR_NOW DL_NOW
11836 # define LT_DLLAZY_OR_NOW 0
11843 void fnord() { int i=42;}
11846 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11847 int status = $lt_dlunknown;
11851 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11852 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11853 /* dlclose (self); */
11861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11862 (eval $ac_link) 2>&5
11864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11865 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11866 (./conftest; exit; ) >&5 2>/dev/null
11868 case x$lt_status in
11869 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11870 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11871 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11874 # compilation failed
11875 lt_cv_dlopen_self_static=no
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11883 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11886 CPPFLAGS="$save_CPPFLAGS"
11887 LDFLAGS="$save_LDFLAGS"
11892 case $lt_cv_dlopen_self in
11893 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11894 *) enable_dlopen_self=unknown ;;
11897 case $lt_cv_dlopen_self_static in
11898 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11899 *) enable_dlopen_self_static=unknown ;;
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11922 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11923 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11924 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11925 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11929 # FIXME - insert some real tests, host_os isn't really good enough
11932 if test -n "$STRIP" ; then
11933 striplib="$STRIP -x"
11934 old_striplib="$STRIP -S"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; }
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11960 # Report which library types will actually be built
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11962 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11964 $as_echo "$can_build_shared" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11967 $as_echo_n "checking whether to build shared libraries... " >&6; }
11968 test "$can_build_shared" = "no" && enable_shared=no
11970 # On AIX, shared libraries and static libraries use the same namespace, and
11971 # are all built from PIC.
11974 test "$enable_shared" = yes && enable_static=no
11975 if test -n "$RANLIB"; then
11976 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11977 postinstall_cmds='$RANLIB $lib'
11982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11983 test "$enable_shared" = yes && enable_static=no
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988 $as_echo "$enable_shared" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991 $as_echo_n "checking whether to build static libraries... " >&6; }
11992 # Make sure either enable_shared or enable_static is yes.
11993 test "$enable_shared" = yes || enable_static=yes
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995 $as_echo "$enable_static" >&6; }
12002 ac_cpp='$CPP $CPPFLAGS'
12003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12011 ac_cpp='$CXXCPP $CPPFLAGS'
12012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12016 archive_cmds_need_lc_CXX=no
12017 allow_undefined_flag_CXX=
12018 always_export_symbols_CXX=no
12019 archive_expsym_cmds_CXX=
12020 compiler_needs_object_CXX=no
12021 export_dynamic_flag_spec_CXX=
12022 hardcode_direct_CXX=no
12023 hardcode_direct_absolute_CXX=no
12024 hardcode_libdir_flag_spec_CXX=
12025 hardcode_libdir_flag_spec_ld_CXX=
12026 hardcode_libdir_separator_CXX=
12027 hardcode_minus_L_CXX=no
12028 hardcode_shlibpath_var_CXX=unsupported
12029 hardcode_automatic_CXX=no
12030 inherit_rpath_CXX=no
12032 module_expsym_cmds_CXX=
12033 link_all_deplibs_CXX=unknown
12034 old_archive_cmds_CXX=$old_archive_cmds
12035 no_undefined_flag_CXX=
12036 whole_archive_flag_spec_CXX=
12037 enable_shared_with_static_runtimes_CXX=no
12039 # Source file extension for C++ test sources.
12042 # Object file extension for compiled C++ test sources.
12046 # No sense in running all these tests if we already determined that
12047 # the CXX compiler isn't working. Some variables (like enable_shared)
12048 # are currently assumed to apply to all compilers on this platform,
12049 # and will be corrupted by setting them based on a non-working compiler.
12050 if test "$_lt_caught_CXX_error" != yes; then
12051 # Code to be used in simple compile tests
12052 lt_simple_compile_test_code="int some_variable = 0;"
12054 # Code to be used in simple link tests
12055 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12057 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12064 # If no C compiler was specified, use CC.
12067 # If no C compiler flags were specified, use CFLAGS.
12068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12070 # Allow CC to be a program name with arguments.
12074 # save warnings/boilerplate of simple test code
12075 ac_outfile=conftest.$ac_objext
12076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12078 _lt_compiler_boilerplate=`cat conftest.err`
12081 ac_outfile=conftest.$ac_objext
12082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12084 _lt_linker_boilerplate=`cat conftest.err`
12088 # Allow CC to be a program name with arguments.
12093 lt_save_with_gnu_ld=$with_gnu_ld
12094 lt_save_path_LD=$lt_cv_path_LD
12095 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12096 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12098 $as_unset lt_cv_prog_gnu_ld
12100 if test -n "${lt_cv_path_LDCXX+set}"; then
12101 lt_cv_path_LD=$lt_cv_path_LDCXX
12103 $as_unset lt_cv_path_LD
12105 test -z "${LDCXX+set}" || LD=$LDCXX
12109 for cc_temp in $compiler""; do
12111 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12112 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12117 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12120 if test -n "$compiler"; then
12121 # We don't want -fno-exception when compiling C++ code, so set the
12122 # no_builtin_flag separately
12123 if test "$GXX" = yes; then
12124 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12126 lt_prog_compiler_no_builtin_flag_CXX=
12129 if test "$GXX" = yes; then
12130 # Set up default GNU C++ configuration
12134 # Check whether --with-gnu-ld was given.
12135 if test "${with_gnu_ld+set}" = set; then :
12136 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12142 if test "$GCC" = yes; then
12143 # Check if gcc -print-prog-name=ld gives a path.
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12145 $as_echo_n "checking for ld used by $CC... " >&6; }
12148 # gcc leaves a trailing carriage return which upsets mingw
12149 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12151 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12154 # Accept absolute paths.
12156 re_direlt='/[^/][^/]*/\.\./'
12157 # Canonicalize the pathname of ld
12158 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12159 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12160 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12162 test -z "$LD" && LD="$ac_prog"
12165 # If it fails, then pretend we aren't using GCC.
12169 # If it is relative, then search for the first ld in PATH.
12170 with_gnu_ld=unknown
12173 elif test "$with_gnu_ld" = yes; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12175 $as_echo_n "checking for GNU ld... " >&6; }
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12178 $as_echo_n "checking for non-GNU ld... " >&6; }
12180 if test "${lt_cv_path_LD+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12183 if test -z "$LD"; then
12184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12185 for ac_dir in $PATH; do
12187 test -z "$ac_dir" && ac_dir=.
12188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12189 lt_cv_path_LD="$ac_dir/$ac_prog"
12190 # Check to see if the program is GNU ld. I'd rather use --version,
12191 # but apparently some variants of GNU ld only accept -v.
12192 # Break only if it was the GNU/non-GNU ld that we prefer.
12193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12194 *GNU* | *'with BFD'*)
12195 test "$with_gnu_ld" != no && break
12198 test "$with_gnu_ld" != yes && break
12205 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12209 LD="$lt_cv_path_LD"
12210 if test -n "$LD"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12212 $as_echo "$LD" >&6; }
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12217 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12219 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12220 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12224 case `$LD -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226 lt_cv_prog_gnu_ld=yes
12229 lt_cv_prog_gnu_ld=no
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12234 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12235 with_gnu_ld=$lt_cv_prog_gnu_ld
12243 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12244 # archiving commands below assume that GNU ld is being used.
12245 if test "$with_gnu_ld" = yes; then
12246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12250 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12252 # If archive_cmds runs LD, not CC, wlarc should be empty
12253 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12254 # investigate it a little bit more. (MM)
12257 # ancient GNU ld didn't support --whole-archive et. al.
12258 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12259 $GREP 'no-whole-archive' > /dev/null; then
12260 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12262 whole_archive_flag_spec_CXX=
12268 # A generic and very simple default shared library creation
12269 # command for GNU C++ for the case where it uses the native
12270 # linker, instead of GNU ld. If possible, this setting should
12271 # overridden to take advantage of the native linker features on
12272 # the platform it is being used on.
12273 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12276 # Commands to make compiler produce verbose output that lists
12277 # what "hidden" libraries, object files and flags are used when
12278 # linking a shared library.
12279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12287 # PORTME: fill in a description of your system's C++ link characteristics
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12293 # FIXME: insert proper C++ library support
12297 if test "$host_cpu" = ia64; then
12298 # On IA64, the linker does run time linking by default, so we don't
12299 # have to do anything special.
12300 aix_use_runtimelinking=no
12301 exp_sym_flag='-Bexport'
12304 aix_use_runtimelinking=no
12306 # Test if we are trying to use run time linking or normal
12307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12308 # need to do runtime linking.
12309 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12310 for ld_flag in $LDFLAGS; do
12313 aix_use_runtimelinking=yes
12321 exp_sym_flag='-bexport'
12322 no_entry_flag='-bnoentry'
12325 # When large executables or shared objects are built, AIX ld can
12326 # have problems creating the table of contents. If linking a library
12327 # or program results in "error TOC overflow" add -mminimal-toc to
12328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12331 archive_cmds_CXX=''
12332 hardcode_direct_CXX=yes
12333 hardcode_direct_absolute_CXX=yes
12334 hardcode_libdir_separator_CXX=':'
12335 link_all_deplibs_CXX=yes
12336 file_list_spec_CXX='${wl}-f,'
12338 if test "$GXX" = yes; then
12339 case $host_os in aix4.[012]|aix4.[012].*)
12340 # We only want to do this on AIX 4.2 and lower, the check
12341 # below for broken collect2 doesn't work under 4.3+
12342 collect2name=`${CC} -print-prog-name=collect2`
12343 if test -f "$collect2name" &&
12344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12346 # We have reworked collect2
12349 # We have old collect2
12350 hardcode_direct_CXX=unsupported
12351 # It fails to find uninstalled libraries when the uninstalled
12352 # path is not listed in the libpath. Setting hardcode_minus_L
12353 # to unsupported forces relinking
12354 hardcode_minus_L_CXX=yes
12355 hardcode_libdir_flag_spec_CXX='-L$libdir'
12356 hardcode_libdir_separator_CXX=
12359 shared_flag='-shared'
12360 if test "$aix_use_runtimelinking" = yes; then
12361 shared_flag="$shared_flag "'${wl}-G'
12365 if test "$host_cpu" = ia64; then
12366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12367 # chokes on -Wl,-G. The following line is correct:
12370 if test "$aix_use_runtimelinking" = yes; then
12371 shared_flag='${wl}-G'
12373 shared_flag='${wl}-bM:SRE'
12378 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12379 # It seems that -bexpall does not export symbols beginning with
12380 # underscore (_), so it is better to generate a list of symbols to
12382 always_export_symbols_CXX=yes
12383 if test "$aix_use_runtimelinking" = yes; then
12384 # Warning - without using the other runtime loading flags (-brtl),
12385 # -berok will link without error, but may produce a broken library.
12386 allow_undefined_flag_CXX='-berok'
12387 # Determine the default libpath from the value encoded in an empty
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12400 if ac_fn_cxx_try_link "$LINENO"; then :
12402 lt_aix_libpath_sed='
12403 /Import File Strings/,/^$/ {
12409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12410 # Check for a 64-bit object if we didn't find anything.
12411 if test -z "$aix_libpath"; then
12412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12415 rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12419 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12421 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12423 if test "$host_cpu" = ia64; then
12424 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12425 allow_undefined_flag_CXX="-z nodefs"
12426 archive_expsym_cmds_CXX="\$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"
12428 # Determine the default libpath from the value encoded in an
12429 # empty executable.
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12441 if ac_fn_cxx_try_link "$LINENO"; then :
12443 lt_aix_libpath_sed='
12444 /Import File Strings/,/^$/ {
12450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 # Check for a 64-bit object if we didn't find anything.
12452 if test -z "$aix_libpath"; then
12453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12460 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12461 # Warning - without using the other run time loading flags,
12462 # -berok will link without error, but may produce a broken library.
12463 no_undefined_flag_CXX=' ${wl}-bernotok'
12464 allow_undefined_flag_CXX=' ${wl}-berok'
12465 # Exported symbols can be pulled into shared objects from archives
12466 whole_archive_flag_spec_CXX='$convenience'
12467 archive_cmds_need_lc_CXX=yes
12468 # This is similar to how AIX traditionally builds its shared
12470 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12477 allow_undefined_flag_CXX=unsupported
12478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12479 # support --undefined. This deserves some investigation. FIXME
12480 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12487 case $cc_basename in
12489 # FIXME: insert proper C++ library support
12495 cygwin* | mingw* | pw32* | cegcc*)
12496 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12497 # as there is no search path for DLLs.
12498 hardcode_libdir_flag_spec_CXX='-L$libdir'
12499 allow_undefined_flag_CXX=unsupported
12500 always_export_symbols_CXX=no
12501 enable_shared_with_static_runtimes_CXX=yes
12503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12504 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12505 # If the export-symbols file already is a .def file (1st line
12506 # is EXPORTS), use it as is; otherwise, prepend...
12507 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12508 cp $export_symbols $output_objdir/$soname.def;
12510 echo EXPORTS > $output_objdir/$soname.def;
12511 cat $export_symbols >> $output_objdir/$soname.def;
12513 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12518 darwin* | rhapsody*)
12521 archive_cmds_need_lc_CXX=no
12522 hardcode_direct_CXX=no
12523 hardcode_automatic_CXX=yes
12524 hardcode_shlibpath_var_CXX=unsupported
12525 whole_archive_flag_spec_CXX=''
12526 link_all_deplibs_CXX=yes
12527 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12528 case $cc_basename in
12529 ifort*) _lt_dar_can_shared=yes ;;
12530 *) _lt_dar_can_shared=$GCC ;;
12532 if test "$_lt_dar_can_shared" = "yes"; then
12533 output_verbose_link_cmd=echo
12534 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12535 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12536 archive_expsym_cmds_CXX="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}"
12537 module_expsym_cmds_CXX="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}"
12538 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12539 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12540 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12550 case $cc_basename in
12552 # FIXME: insert proper C++ library support
12556 # Green Hills C++ Compiler
12557 # FIXME: insert proper C++ library support
12561 # FIXME: insert proper C++ library support
12568 # C++ shared libraries reported to be fairly broken before
12574 archive_cmds_need_lc_CXX=no
12577 freebsd* | dragonfly*)
12578 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12587 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12588 hardcode_libdir_separator_CXX=:
12589 export_dynamic_flag_spec_CXX='${wl}-E'
12590 hardcode_direct_CXX=yes
12591 hardcode_minus_L_CXX=yes # Not in the search PATH,
12592 # but as the default
12593 # location of the library.
12595 case $cc_basename in
12597 # FIXME: insert proper C++ library support
12601 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12602 # Commands to make compiler produce verbose output that lists
12603 # what "hidden" libraries, object files and flags are used when
12604 # linking a shared library.
12606 # There doesn't appear to be a way to prevent this compiler from
12607 # explicitly linking system object files so we need to strip them
12608 # from the output so that they don't get included in the library
12610 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12613 if test "$GXX" = yes; then
12614 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12616 # FIXME: insert proper C++ library support
12624 if test $with_gnu_ld = no; then
12625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12626 hardcode_libdir_separator_CXX=:
12632 export_dynamic_flag_spec_CXX='${wl}-E'
12638 hardcode_direct_CXX=no
12639 hardcode_shlibpath_var_CXX=no
12642 hardcode_direct_CXX=yes
12643 hardcode_direct_absolute_CXX=yes
12644 hardcode_minus_L_CXX=yes # Not in the search PATH,
12645 # but as the default
12646 # location of the library.
12650 case $cc_basename in
12652 # FIXME: insert proper C++ library support
12658 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12664 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12667 # Commands to make compiler produce verbose output that lists
12668 # what "hidden" libraries, object files and flags are used when
12669 # linking a shared library.
12671 # There doesn't appear to be a way to prevent this compiler from
12672 # explicitly linking system object files so we need to strip them
12673 # from the output so that they don't get included in the library
12675 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12678 if test "$GXX" = yes; then
12679 if test $with_gnu_ld = no; then
12682 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12685 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12688 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12693 # FIXME: insert proper C++ library support
12701 hardcode_direct_CXX=no
12702 hardcode_shlibpath_var_CXX=no
12703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12704 export_dynamic_flag_spec_CXX='${wl}-E'
12705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12706 # Instead, shared libraries are loaded at an image base (0x10000000 by
12707 # default) and relocated if they conflict, which is a slow very memory
12708 # consuming and fragmenting process. To avoid this, we pick a random,
12709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12711 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12712 archive_expsym_cmds_CXX='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'
12715 case $cc_basename in
12718 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12720 # Archives containing C++ object files must be created using
12721 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12722 # necessary to make sure instantiated templates are included
12724 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12727 if test "$GXX" = yes; then
12728 if test "$with_gnu_ld" = no; then
12729 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12734 link_all_deplibs_CXX=yes
12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12738 hardcode_libdir_separator_CXX=:
12739 inherit_rpath_CXX=yes
12742 linux* | k*bsd*-gnu)
12743 case $cc_basename in
12745 # Kuck and Associates, Inc. (KAI) C++ Compiler
12747 # KCC will only create a shared library if the output file
12748 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12749 # to its proper name (with version) after linking.
12750 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12751 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12752 # Commands to make compiler produce verbose output that lists
12753 # what "hidden" libraries, object files and flags are used when
12754 # linking a shared library.
12756 # There doesn't appear to be a way to prevent this compiler from
12757 # explicitly linking system object files so we need to strip them
12758 # from the output so that they don't get included in the library
12760 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12765 # Archives containing C++ object files must be created using
12766 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12767 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12772 # version 8.0 and above of icpc choke on multiply defined symbols
12773 # if we add $predep_objects and $postdep_objects, however 7.1 and
12774 # earlier do not add the objects themselves.
12775 case `$CC -V 2>&1` in
12777 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12780 *) # Version 8.0 or newer
12783 ia64*) tmp_idyn=' -i_dynamic';;
12785 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12789 archive_cmds_need_lc_CXX=no
12790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12792 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12795 # Portland Group C++ compiler
12797 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12798 prelink_cmds_CXX='tpldir=Template.dir~
12800 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12801 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12802 old_archive_cmds_CXX='tpldir=Template.dir~
12804 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12805 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12807 archive_cmds_CXX='tpldir=Template.dir~
12809 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12810 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12811 archive_expsym_cmds_CXX='tpldir=Template.dir~
12813 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12814 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12816 *) # Version 6 will use weak symbols
12817 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12818 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12822 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12831 runpath_var=LD_RUN_PATH
12832 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12833 hardcode_libdir_separator_CXX=:
12835 # Commands to make compiler produce verbose output that lists
12836 # what "hidden" libraries, object files and flags are used when
12837 # linking a shared library.
12839 # There doesn't appear to be a way to prevent this compiler from
12840 # explicitly linking system object files so we need to strip them
12841 # from the output so that they don't get included in the library
12843 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12846 # IBM XL 8.0 on PPC, with GNU ld
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12849 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12850 if test "x$supports_anon_versioning" = xyes; then
12851 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12853 echo "local: *; };" >> $output_objdir/$libname.ver~
12854 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12858 case `$CC -V 2>&1 | sed 5q` in
12861 no_undefined_flag_CXX=' -zdefs'
12862 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12863 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12864 hardcode_libdir_flag_spec_CXX='-R$libdir'
12865 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12866 compiler_needs_object_CXX=yes
12868 # Not sure whether something based on
12869 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12871 output_verbose_link_cmd='echo'
12873 # Archives containing C++ object files must be created using
12874 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12875 # necessary to make sure instantiated templates are included
12877 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12885 # FIXME: insert proper C++ library support
12890 # FIXME: insert proper C++ library support
12895 case $cc_basename in
12897 # FIXME: insert proper C++ library support
12901 # FIXME: insert proper C++ library support
12908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12909 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12911 hardcode_libdir_flag_spec_CXX='-R$libdir'
12912 hardcode_direct_CXX=yes
12913 hardcode_shlibpath_var_CXX=no
12915 # Workaround some broken pre-1.5 toolchains
12916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12924 # C++ shared libraries are fairly broken
12929 if test -f /usr/libexec/ld.so; then
12930 hardcode_direct_CXX=yes
12931 hardcode_shlibpath_var_CXX=no
12932 hardcode_direct_absolute_CXX=yes
12933 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12936 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12937 export_dynamic_flag_spec_CXX='${wl}-E'
12938 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12940 output_verbose_link_cmd=echo
12946 osf3* | osf4* | osf5*)
12947 case $cc_basename in
12949 # Kuck and Associates, Inc. (KAI) C++ Compiler
12951 # KCC will only create a shared library if the output file
12952 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12953 # to its proper name (with version) after linking.
12954 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12957 hardcode_libdir_separator_CXX=:
12959 # Archives containing C++ object files must be created using
12960 # the KAI C++ compiler.
12962 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12963 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12967 # Rational C++ 2.4.1
12968 # FIXME: insert proper C++ library support
12974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12975 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12976 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12979 allow_undefined_flag_CXX=' -expect_unresolved \*'
12980 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12981 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12982 echo "-hidden">> $lib.exp~
12983 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12985 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989 hardcode_libdir_separator_CXX=:
12991 # Commands to make compiler produce verbose output that lists
12992 # what "hidden" libraries, object files and flags are used when
12993 # linking a shared library.
12995 # There doesn't appear to be a way to prevent this compiler from
12996 # explicitly linking system object files so we need to strip them
12997 # from the output so that they don't get included in the library
12999 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13002 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13003 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13006 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13009 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13013 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13014 hardcode_libdir_separator_CXX=:
13016 # Commands to make compiler produce verbose output that lists
13017 # what "hidden" libraries, object files and flags are used when
13018 # linking a shared library.
13019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13022 # FIXME: insert proper C++ library support
13030 # FIXME: insert proper C++ library support
13035 case $cc_basename in
13038 # FIXME: insert proper C++ library support
13043 # FIXME: insert proper C++ library support
13047 # FIXME: insert proper C++ library support
13054 case $cc_basename in
13056 # Sun C++ 4.2, 5.x and Centerline C++
13057 archive_cmds_need_lc_CXX=yes
13058 no_undefined_flag_CXX=' -zdefs'
13059 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13061 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13063 hardcode_libdir_flag_spec_CXX='-R$libdir'
13064 hardcode_shlibpath_var_CXX=no
13066 solaris2.[0-5] | solaris2.[0-5].*) ;;
13068 # The compiler driver will combine and reorder linker options,
13069 # but understands `-z linker_flag'.
13070 # Supported since Solaris 2.6 (maybe 2.5.1?)
13071 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13074 link_all_deplibs_CXX=yes
13076 output_verbose_link_cmd='echo'
13078 # Archives containing C++ object files must be created using
13079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13080 # necessary to make sure instantiated templates are included
13082 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13085 # Green Hills C++ Compiler
13086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13088 # The C++ compiler must be used to create the archive.
13089 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13092 # GNU C++ compiler with Solaris linker
13093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13094 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13095 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13096 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13097 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13098 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13100 # Commands to make compiler produce verbose output that lists
13101 # what "hidden" libraries, object files and flags are used when
13102 # linking a shared library.
13103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13105 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13107 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13108 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13109 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13111 # Commands to make compiler produce verbose output that lists
13112 # what "hidden" libraries, object files and flags are used when
13113 # linking a shared library.
13114 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13117 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13119 solaris2.[0-5] | solaris2.[0-5].*) ;;
13121 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13130 no_undefined_flag_CXX='${wl}-z,text'
13131 archive_cmds_need_lc_CXX=no
13132 hardcode_shlibpath_var_CXX=no
13133 runpath_var='LD_RUN_PATH'
13135 case $cc_basename in
13137 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13141 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 sysv5* | sco3.2v5* | sco5v6*)
13148 # Note: We can NOT use -z defs as we might desire, because we do not
13149 # link with -lc, and that would cause any symbols used from libc to
13150 # always be unresolved, which means just about no library would
13151 # ever link correctly. If we're not using GNU ld we use -z text
13152 # though, which does catch some bad symbols but isn't as heavy-handed
13154 no_undefined_flag_CXX='${wl}-z,text'
13155 allow_undefined_flag_CXX='${wl}-z,nodefs'
13156 archive_cmds_need_lc_CXX=no
13157 hardcode_shlibpath_var_CXX=no
13158 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13159 hardcode_libdir_separator_CXX=':'
13160 link_all_deplibs_CXX=yes
13161 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13162 runpath_var='LD_RUN_PATH'
13164 case $cc_basename in
13166 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 case $cc_basename in
13179 # NonStop-UX NCC 3.20
13180 # FIXME: insert proper C++ library support
13184 # FIXME: insert proper C++ library support
13191 # FIXME: insert proper C++ library support
13196 # FIXME: insert proper C++ library support
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13202 $as_echo "$ld_shlibs_CXX" >&6; }
13203 test "$ld_shlibs_CXX" = no && can_build_shared=no
13209 ## There is no encapsulation within the following macros, do not change
13210 ## the running order or otherwise move them around unless you know exactly
13211 ## what you are doing...
13212 # Dependencies to place before and after the object being linked:
13213 predep_objects_CXX=
13214 postdep_objects_CXX=
13217 compiler_lib_search_path_CXX=
13219 cat > conftest.$ac_ext <<_LT_EOF
13223 Foo (void) { a = 0; }
13229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13230 (eval $ac_compile) 2>&5
13232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13233 test $ac_status = 0; }; then
13234 # Parse the compiler output and extract the necessary
13235 # objects, libraries and library flags.
13237 # Sentinel used to keep track of whether or not we are before
13238 # the conftest object file.
13239 pre_test_object_deps_done=no
13241 for p in `eval "$output_verbose_link_cmd"`; do
13245 # Some compilers place space between "-{L,R}" and the path.
13246 # Remove the space.
13247 if test $p = "-L" ||
13248 test $p = "-R"; then
13255 if test "$pre_test_object_deps_done" = no; then
13258 # Internal compiler library paths should come after those
13259 # provided the user. The postdeps already come after the
13260 # user supplied libs so there is no need to process them.
13261 if test -z "$compiler_lib_search_path_CXX"; then
13262 compiler_lib_search_path_CXX="${prev}${p}"
13264 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13267 # The "-l" case would never come before the object being
13268 # linked, so don't bother handling this case.
13271 if test -z "$postdeps_CXX"; then
13272 postdeps_CXX="${prev}${p}"
13274 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13280 # This assumes that the test object file only shows up
13281 # once in the compiler output.
13282 if test "$p" = "conftest.$objext"; then
13283 pre_test_object_deps_done=yes
13287 if test "$pre_test_object_deps_done" = no; then
13288 if test -z "$predep_objects_CXX"; then
13289 predep_objects_CXX="$p"
13291 predep_objects_CXX="$predep_objects_CXX $p"
13294 if test -z "$postdep_objects_CXX"; then
13295 postdep_objects_CXX="$p"
13297 postdep_objects_CXX="$postdep_objects_CXX $p"
13302 *) ;; # Ignore the rest.
13310 echo "libtool.m4: error: problem compiling CXX test program"
13313 $RM -f confest.$objext
13315 # PORTME: override above test on systems where it is broken
13318 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13319 # hack all around it, let's just trust "g++" to DTRT.
13320 predep_objects_CXX=
13321 postdep_objects_CXX=
13326 case `$CC -V 2>&1 | sed 5q` in
13330 # The more standards-conforming stlport4 library is
13331 # incompatible with the Cstd library. Avoid specifying
13332 # it if it's in CXXFLAGS. Ignore libCrun as
13333 # -library=stlport4 depends on it.
13334 case " $CXX $CXXFLAGS " in
13335 *" -library=stlport4 "*)
13336 solaris_use_stlport4=yes
13340 if test "$solaris_use_stlport4" != yes; then
13341 postdeps_CXX='-library=Cstd -library=Crun'
13348 case $cc_basename in
13350 # The more standards-conforming stlport4 library is
13351 # incompatible with the Cstd library. Avoid specifying
13352 # it if it's in CXXFLAGS. Ignore libCrun as
13353 # -library=stlport4 depends on it.
13354 case " $CXX $CXXFLAGS " in
13355 *" -library=stlport4 "*)
13356 solaris_use_stlport4=yes
13360 # Adding this requires a known-good setup of shared libraries for
13361 # Sun compiler versions before 5.6, else PIC objects from an old
13362 # archive will be linked into the output, leading to subtle bugs.
13363 if test "$solaris_use_stlport4" != yes; then
13364 postdeps_CXX='-library=Cstd -library=Crun'
13372 case " $postdeps_CXX " in
13373 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13375 compiler_lib_search_dirs_CXX=
13376 if test -n "${compiler_lib_search_path_CXX}"; then
13377 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13410 lt_prog_compiler_wl_CXX=
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_static_CXX=
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13415 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13417 # C++ specific cases for pic, static, wl, etc.
13418 if test "$GXX" = yes; then
13419 lt_prog_compiler_wl_CXX='-Wl,'
13420 lt_prog_compiler_static_CXX='-static'
13424 # All AIX code is PIC.
13425 if test "$host_cpu" = ia64; then
13426 # AIX 5 now supports IA64 processor
13427 lt_prog_compiler_static_CXX='-Bstatic'
13434 # see comment about AmigaOS4 .so support
13435 lt_prog_compiler_pic_CXX='-fPIC'
13438 # FIXME: we need at least 68020 code to build shared libraries, but
13439 # adding the `-m68020' flag to GCC prevents building anything better,
13441 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13447 # PIC is the default for these OSes.
13449 mingw* | cygwin* | os2* | pw32* | cegcc*)
13450 # This hack is so that the source file can tell whether it is being
13451 # built for inclusion in a dll (and should export symbols for example).
13452 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13453 # (--disable-auto-import) libraries
13454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13456 darwin* | rhapsody*)
13457 # PIC is the default on this platform
13458 # Common symbols not allowed in MH_DYLIB files
13459 lt_prog_compiler_pic_CXX='-fno-common'
13462 # DJGPP does not support shared libraries at all
13463 lt_prog_compiler_pic_CXX=
13466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13467 # Instead, we relocate shared libraries at runtime.
13470 if test -d /usr/nec; then
13471 lt_prog_compiler_pic_CXX=-Kconform_pic
13475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13477 # sets the default TLS model and affects inlining.
13482 lt_prog_compiler_pic_CXX='-fPIC'
13487 # QNX uses GNU C++, but need to define -shared option too, otherwise
13488 # it will coredump.
13489 lt_prog_compiler_pic_CXX='-fPIC -shared'
13492 lt_prog_compiler_pic_CXX='-fPIC'
13498 # All AIX code is PIC.
13499 if test "$host_cpu" = ia64; then
13500 # AIX 5 now supports IA64 processor
13501 lt_prog_compiler_static_CXX='-Bstatic'
13503 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13507 case $cc_basename in
13509 # Green Hills C++ Compiler
13510 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13515 case $cc_basename in
13517 lt_prog_compiler_pic_CXX='-KPIC'
13520 # Green Hills C++ Compiler
13521 lt_prog_compiler_pic_CXX='-pic'
13527 freebsd* | dragonfly*)
13528 # FreeBSD uses GNU C++
13530 hpux9* | hpux10* | hpux11*)
13531 case $cc_basename in
13533 lt_prog_compiler_wl_CXX='-Wl,'
13534 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13535 if test "$host_cpu" != ia64; then
13536 lt_prog_compiler_pic_CXX='+Z'
13540 lt_prog_compiler_wl_CXX='-Wl,'
13541 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13547 lt_prog_compiler_pic_CXX='+Z'
13556 # This is c89, which is MS Visual C++ (no shared libs)
13557 # Anyone wants to do a port?
13559 irix5* | irix6* | nonstopux*)
13560 case $cc_basename in
13562 lt_prog_compiler_wl_CXX='-Wl,'
13563 lt_prog_compiler_static_CXX='-non_shared'
13564 # CC pic flag -KPIC is the default.
13570 linux* | k*bsd*-gnu)
13571 case $cc_basename in
13574 lt_prog_compiler_wl_CXX='--backend -Wl,'
13575 lt_prog_compiler_pic_CXX='-fPIC'
13578 # old Intel C++ for x86_64 which still supported -KPIC.
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-KPIC'
13581 lt_prog_compiler_static_CXX='-static'
13584 # Intel C++, used to be incompatible with GCC.
13585 # ICC 10 doesn't accept -KPIC any more.
13586 lt_prog_compiler_wl_CXX='-Wl,'
13587 lt_prog_compiler_pic_CXX='-fPIC'
13588 lt_prog_compiler_static_CXX='-static'
13591 # Portland Group C++ compiler
13592 lt_prog_compiler_wl_CXX='-Wl,'
13593 lt_prog_compiler_pic_CXX='-fpic'
13594 lt_prog_compiler_static_CXX='-Bstatic'
13598 # Make sure the PIC flag is empty. It appears that all Alpha
13599 # Linux and Compaq Tru64 Unix objects are PIC.
13600 lt_prog_compiler_pic_CXX=
13601 lt_prog_compiler_static_CXX='-non_shared'
13604 # IBM XL 8.0 on PPC
13605 lt_prog_compiler_wl_CXX='-Wl,'
13606 lt_prog_compiler_pic_CXX='-qpic'
13607 lt_prog_compiler_static_CXX='-qstaticlink'
13610 case `$CC -V 2>&1 | sed 5q` in
13613 lt_prog_compiler_pic_CXX='-KPIC'
13614 lt_prog_compiler_static_CXX='-Bstatic'
13615 lt_prog_compiler_wl_CXX='-Qoption ld '
13626 case $cc_basename in
13628 lt_prog_compiler_pic_CXX='-W c,exportall'
13634 netbsd* | netbsdelf*-gnu)
13637 # QNX uses GNU C++, but need to define -shared option too, otherwise
13638 # it will coredump.
13639 lt_prog_compiler_pic_CXX='-fPIC -shared'
13641 osf3* | osf4* | osf5*)
13642 case $cc_basename in
13644 lt_prog_compiler_wl_CXX='--backend -Wl,'
13647 # Rational C++ 2.4.1
13648 lt_prog_compiler_pic_CXX='-pic'
13651 # Digital/Compaq C++
13652 lt_prog_compiler_wl_CXX='-Wl,'
13653 # Make sure the PIC flag is empty. It appears that all Alpha
13654 # Linux and Compaq Tru64 Unix objects are PIC.
13655 lt_prog_compiler_pic_CXX=
13656 lt_prog_compiler_static_CXX='-non_shared'
13665 case $cc_basename in
13667 # Sun C++ 4.2, 5.x and Centerline C++
13668 lt_prog_compiler_pic_CXX='-KPIC'
13669 lt_prog_compiler_static_CXX='-Bstatic'
13670 lt_prog_compiler_wl_CXX='-Qoption ld '
13673 # Green Hills C++ Compiler
13674 lt_prog_compiler_pic_CXX='-PIC'
13681 case $cc_basename in
13684 lt_prog_compiler_pic_CXX='-pic'
13685 lt_prog_compiler_static_CXX='-Bstatic'
13689 lt_prog_compiler_pic_CXX='-pic'
13695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13696 case $cc_basename in
13698 lt_prog_compiler_wl_CXX='-Wl,'
13699 lt_prog_compiler_pic_CXX='-KPIC'
13700 lt_prog_compiler_static_CXX='-Bstatic'
13705 case $cc_basename in
13707 # NonStop-UX NCC 3.20
13708 lt_prog_compiler_pic_CXX='-KPIC'
13717 lt_prog_compiler_can_build_shared_CXX=no
13723 # For platforms which do not support PIC, -DPIC is meaningless:
13725 lt_prog_compiler_pic_CXX=
13728 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13732 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13737 # Check to make sure the PIC flag actually works.
13739 if test -n "$lt_prog_compiler_pic_CXX"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13741 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13742 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13745 lt_cv_prog_compiler_pic_works_CXX=no
13746 ac_outfile=conftest.$ac_objext
13747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13748 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13749 # Insert the option either (1) after the last *FLAGS variable, or
13750 # (2) before a word containing "conftest.", or (3) at the end.
13751 # Note that $ac_compile itself does not contain backslashes and begins
13752 # with a dollar sign (not a hyphen), so the echo should work correctly.
13753 # The option is referenced via a variable to avoid confusing sed.
13754 lt_compile=`echo "$ac_compile" | $SED \
13755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13757 -e 's:$: $lt_compiler_flag:'`
13758 (eval echo "\"\$as_me:13758: $lt_compile\"" >&5)
13759 (eval "$lt_compile" 2>conftest.err)
13761 cat conftest.err >&5
13762 echo "$as_me:13762: \$? = $ac_status" >&5
13763 if (exit $ac_status) && test -s "$ac_outfile"; then
13764 # The compiler can only warn and ignore the option if not recognized
13765 # So say no if there are warnings other than the usual output.
13766 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13768 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13769 lt_cv_prog_compiler_pic_works_CXX=yes
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13776 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13778 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13779 case $lt_prog_compiler_pic_CXX in
13781 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13784 lt_prog_compiler_pic_CXX=
13785 lt_prog_compiler_can_build_shared_CXX=no
13793 # Check to make sure the static flag actually works.
13795 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13798 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13801 lt_cv_prog_compiler_static_works_CXX=no
13802 save_LDFLAGS="$LDFLAGS"
13803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13806 # The linker can only warn and ignore the option if not recognized
13807 # So say no if there are warnings
13808 if test -s conftest.err; then
13809 # Append any errors to the config.log.
13810 cat conftest.err 1>&5
13811 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13813 if diff conftest.exp conftest.er2 >/dev/null; then
13814 lt_cv_prog_compiler_static_works_CXX=yes
13817 lt_cv_prog_compiler_static_works_CXX=yes
13821 LDFLAGS="$save_LDFLAGS"
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13825 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13827 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13830 lt_prog_compiler_static_CXX=
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13838 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13839 $as_echo_n "(cached) " >&6
13841 lt_cv_prog_compiler_c_o_CXX=no
13842 $RM -r conftest 2>/dev/null
13846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13848 lt_compiler_flag="-o out/conftest2.$ac_objext"
13849 # Insert the option either (1) after the last *FLAGS variable, or
13850 # (2) before a word containing "conftest.", or (3) at the end.
13851 # Note that $ac_compile itself does not contain backslashes and begins
13852 # with a dollar sign (not a hyphen), so the echo should work correctly.
13853 lt_compile=`echo "$ac_compile" | $SED \
13854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13856 -e 's:$: $lt_compiler_flag:'`
13857 (eval echo "\"\$as_me:13857: $lt_compile\"" >&5)
13858 (eval "$lt_compile" 2>out/conftest.err)
13860 cat out/conftest.err >&5
13861 echo "$as_me:13861: \$? = $ac_status" >&5
13862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13864 # The compiler can only warn and ignore the option if not recognized
13865 # So say no if there are warnings
13866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13869 lt_cv_prog_compiler_c_o_CXX=yes
13874 # SGI C++ compiler will create directory out/ii_files/ for
13875 # template instantiation
13876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13877 $RM out/* && rmdir out
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13884 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13890 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13891 $as_echo_n "(cached) " >&6
13893 lt_cv_prog_compiler_c_o_CXX=no
13894 $RM -r conftest 2>/dev/null
13898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13900 lt_compiler_flag="-o out/conftest2.$ac_objext"
13901 # Insert the option either (1) after the last *FLAGS variable, or
13902 # (2) before a word containing "conftest.", or (3) at the end.
13903 # Note that $ac_compile itself does not contain backslashes and begins
13904 # with a dollar sign (not a hyphen), so the echo should work correctly.
13905 lt_compile=`echo "$ac_compile" | $SED \
13906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13908 -e 's:$: $lt_compiler_flag:'`
13909 (eval echo "\"\$as_me:13909: $lt_compile\"" >&5)
13910 (eval "$lt_compile" 2>out/conftest.err)
13912 cat out/conftest.err >&5
13913 echo "$as_me:13913: \$? = $ac_status" >&5
13914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13916 # The compiler can only warn and ignore the option if not recognized
13917 # So say no if there are warnings
13918 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13921 lt_cv_prog_compiler_c_o_CXX=yes
13926 # SGI C++ compiler will create directory out/ii_files/ for
13927 # template instantiation
13928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13929 $RM out/* && rmdir out
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13936 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13941 hard_links="nottested"
13942 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13943 # do not overwrite the value of need_locks provided by the user
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13945 $as_echo_n "checking if we can lock with hard links... " >&6; }
13948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13950 ln conftest.a conftest.b 2>&5 || hard_links=no
13951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13953 $as_echo "$hard_links" >&6; }
13954 if test "$hard_links" = no; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13956 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13966 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13971 # If we're using GNU nm, then we don't want the "-C" option.
13972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13974 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13976 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13980 export_symbols_cmds_CXX="$ltdll_cmds"
13982 cygwin* | mingw* | cegcc*)
13983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13985 linux* | k*bsd*-gnu)
13986 link_all_deplibs_CXX=no
13989 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13992 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13995 $as_echo "$ld_shlibs_CXX" >&6; }
13996 test "$ld_shlibs_CXX" = no && can_build_shared=no
13998 with_gnu_ld_CXX=$with_gnu_ld
14006 # Do we need to explicitly link libc?
14008 case "x$archive_cmds_need_lc_CXX" in
14010 # Assume -lc should be added
14011 archive_cmds_need_lc_CXX=yes
14013 if test "$enable_shared" = yes && test "$GCC" = yes; then
14014 case $archive_cmds_CXX in
14016 # FIXME: we may have to deal with multi-command sequences.
14019 # Test whether the compiler implicitly links with -lc since on some
14020 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14021 # to ld, don't add -lc before -lgcc.
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14023 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14028 (eval $ac_compile) 2>&5
14030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; } 2>conftest.err; then
14034 libobjs=conftest.$ac_objext
14036 wl=$lt_prog_compiler_wl_CXX
14037 pic_flag=$lt_prog_compiler_pic_CXX
14043 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14044 allow_undefined_flag_CXX=
14045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14046 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049 test $ac_status = 0; }
14051 archive_cmds_need_lc_CXX=no
14053 archive_cmds_need_lc_CXX=yes
14055 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14057 cat conftest.err 1>&5
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14061 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14132 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14134 library_names_spec=
14135 libname_spec='lib$name'
14139 postuninstall_cmds=
14143 shlibpath_overrides_runpath=unknown
14145 dynamic_linker="$host_os ld.so"
14146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14147 need_lib_prefix=unknown
14148 hardcode_into_libs=no
14150 # when you set need_version to no, make sure it does not cause -set_version
14151 # flags to be left without arguments
14152 need_version=unknown
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14158 shlibpath_var=LIBPATH
14160 # AIX 3 has no versioning support, so we append a major version to the name.
14161 soname_spec='${libname}${release}${shared_ext}$major'
14168 hardcode_into_libs=yes
14169 if test "$host_cpu" = ia64; then
14170 # AIX 5 supports IA64
14171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14172 shlibpath_var=LD_LIBRARY_PATH
14174 # With GCC up to 2.95.x, collect2 would create an import file
14175 # for dependence libraries. The import file would start with
14176 # the line `#! .'. This would cause the generated library to
14177 # depend on `.', always an invalid library. This was fixed in
14178 # development snapshots of GCC prior to 3.0.
14180 aix4 | aix4.[01] | aix4.[01].*)
14181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14186 can_build_shared=no
14190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14191 # soname into executable. Probably we can add versioning support to
14192 # collect2, so additional links can be useful in future.
14193 if test "$aix_use_runtimelinking" = yes; then
14194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14195 # instead of lib<name>.a to let people know that these are not
14196 # typical AIX shared libraries.
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 # We preserve .a as extension for shared libraries through AIX4.2
14200 # and later when we are not doing run time linking.
14201 library_names_spec='${libname}${release}.a $libname.a'
14202 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LIBPATH
14211 # Since July 2007 AmigaOS4 officially supports .so libraries.
14212 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 library_names_spec='$libname.ixlibrary $libname.a'
14217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14218 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14224 library_names_spec='${libname}${shared_ext}'
14225 dynamic_linker="$host_os ld.so"
14226 shlibpath_var=LIBRARY_PATH
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14238 # the default ld.so.conf also contains /usr/contrib/lib and
14239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14240 # libtool to hard-code these into programs
14243 cygwin* | mingw* | pw32* | cegcc*)
14244 version_type=windows
14249 case $GCC,$host_os in
14250 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14251 library_names_spec='$libname.dll.a'
14252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14253 postinstall_cmds='base_file=`basename \${file}`~
14254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14255 dldir=$destdir/`dirname \$dlpath`~
14256 test -d \$dldir || mkdir -p \$dldir~
14257 $install_prog $dir/$dlname \$dldir/$dlname~
14258 chmod a+x \$dldir/$dlname~
14259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14263 dlpath=$dir/\$dldll~
14265 shlibpath_overrides_runpath=yes
14269 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14270 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14271 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14274 # MinGW DLLs use traditional 'lib' prefix
14275 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14276 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14278 # It is most probably a Windows format PATH printed by
14279 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14280 # path with ; separators, and with drive letters. We can handle the
14281 # drive letters (cygwin fileutils understands them), so leave them,
14282 # especially as we might pass files found there to a mingw objdump,
14283 # which wouldn't understand a cygwinified path. Ahh.
14284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14290 # pw32 DLLs use 'pw' prefix rather than 'lib'
14291 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14297 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14300 dynamic_linker='Win32 ld.exe'
14301 # FIXME: first we should search . and the directory the executable is in
14305 darwin* | rhapsody*)
14306 dynamic_linker="$host_os dyld"
14307 version_type=darwin
14310 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14311 soname_spec='${libname}${release}${major}$shared_ext'
14312 shlibpath_overrides_runpath=yes
14313 shlibpath_var=DYLD_LIBRARY_PATH
14314 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14316 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14324 soname_spec='${libname}${release}${shared_ext}$major'
14325 shlibpath_var=LD_LIBRARY_PATH
14332 freebsd* | dragonfly*)
14333 # DragonFly does not have aout. When/if they implement a new
14334 # versioning mechanism, adjust this.
14335 if test -x /usr/bin/objformat; then
14336 objformat=`/usr/bin/objformat`
14339 freebsd[123]*) objformat=aout ;;
14340 *) objformat=elf ;;
14343 version_type=freebsd-$objformat
14344 case $version_type in
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14355 shlibpath_var=LD_LIBRARY_PATH
14358 shlibpath_overrides_runpath=yes
14360 freebsd3.[01]* | freebsdelf3.[01]*)
14361 shlibpath_overrides_runpath=yes
14362 hardcode_into_libs=yes
14364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14366 shlibpath_overrides_runpath=no
14367 hardcode_into_libs=yes
14369 *) # from 4.6 on, and DragonFly
14370 shlibpath_overrides_runpath=yes
14371 hardcode_into_libs=yes
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 shlibpath_var=LD_LIBRARY_PATH
14383 hardcode_into_libs=yes
14386 hpux9* | hpux10* | hpux11*)
14387 # Give a soname corresponding to the major version so that dld.sl refuses to
14388 # link against other versions.
14395 hardcode_into_libs=yes
14396 dynamic_linker="$host_os dld.so"
14397 shlibpath_var=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 if test "X$HPUX_IA64_MODE" = X32; then
14402 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14404 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14410 hardcode_into_libs=yes
14411 dynamic_linker="$host_os dld.sl"
14412 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14415 soname_spec='${libname}${release}${shared_ext}$major'
14416 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14421 dynamic_linker="$host_os dld.sl"
14422 shlibpath_var=SHLIB_PATH
14423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14428 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14429 postinstall_cmds='chmod 555 $lib'
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=no
14441 hardcode_into_libs=yes
14444 irix5* | irix6* | nonstopux*)
14446 nonstopux*) version_type=nonstopux ;;
14448 if test "$lt_cv_prog_gnu_ld" = yes; then
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14459 irix5* | nonstopux*)
14460 libsuff= shlibsuff=
14463 case $LD in # libtool.m4 will add one of these switches to LD
14464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14465 libsuff= shlibsuff= libmagic=32-bit;;
14466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14467 libsuff=32 shlibsuff=N32 libmagic=N32;;
14468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14470 *) libsuff= shlibsuff= libmagic=never-match;;
14474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14475 shlibpath_overrides_runpath=no
14476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14478 hardcode_into_libs=yes
14481 # No shared lib support for Linux oldld, aout, or coff.
14482 linux*oldld* | linux*aout* | linux*coff*)
14486 # This must be Linux ELF.
14487 linux* | k*bsd*-gnu)
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=no
14496 # Some binutils ld are patched to set DT_RUNPATH
14497 save_LDFLAGS=$LDFLAGS
14498 save_libdir=$libdir
14499 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14500 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14512 if ac_fn_cxx_try_link "$LINENO"; then :
14513 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14514 shlibpath_overrides_runpath=yes
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14519 LDFLAGS=$save_LDFLAGS
14520 libdir=$save_libdir
14522 # This implies no fast_install, which is unacceptable.
14523 # Some rework will be needed to allow for fast_install
14524 # before this can be enabled.
14525 hardcode_into_libs=yes
14527 # Append ld.so.conf contents to the search path
14528 if test -f /etc/ld.so.conf; then
14529 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;/^$/d' | tr '\n' ' '`
14530 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14533 # We used to test for /lib/ld.so.1 and disable shared libraries on
14534 # powerpc, because MkLinux only supported shared libraries with the
14535 # GNU dynamic linker. Since this was broken with cross compilers,
14536 # most powerpc-linux boxes support dynamic linking these days and
14537 # people can always --disable-shared, the test was removed, and we
14538 # assume the GNU/Linux dynamic linker is in use.
14539 dynamic_linker='GNU/Linux ld.so'
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14551 dynamic_linker='NetBSD ld.elf_so'
14558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14561 dynamic_linker='NetBSD (a.out) ld.so'
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 dynamic_linker='NetBSD ld.elf_so'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 shlibpath_overrides_runpath=yes
14569 hardcode_into_libs=yes
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=yes
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 shlibpath_overrides_runpath=no
14587 hardcode_into_libs=yes
14588 dynamic_linker='ldqnx.so'
14593 sys_lib_dlsearch_path_spec="/usr/lib"
14595 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14597 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14598 *) need_version=no ;;
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14605 openbsd2.[89] | openbsd2.[89].*)
14606 shlibpath_overrides_runpath=no
14609 shlibpath_overrides_runpath=yes
14613 shlibpath_overrides_runpath=yes
14618 libname_spec='$name'
14621 library_names_spec='$libname${shared_ext} $libname.a'
14622 dynamic_linker='OS/2 ld.exe'
14623 shlibpath_var=LIBPATH
14626 osf3* | osf4* | osf5*)
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14634 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14646 soname_spec='${libname}${release}${shared_ext}$major'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=yes
14649 hardcode_into_libs=yes
14650 # ldd complains unless libraries are executable
14651 postinstall_cmds='chmod +x $lib'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes
14660 if test "$with_gnu_ld" = yes; then
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 case $host_vendor in
14673 shlibpath_overrides_runpath=no
14675 runpath_var=LD_RUN_PATH
14683 shlibpath_overrides_runpath=no
14684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14690 if test -d /usr/nec ;then
14692 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14693 soname_spec='$libname${shared_ext}.$major'
14694 shlibpath_var=LD_LIBRARY_PATH
14698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14699 version_type=freebsd-elf
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14706 hardcode_into_libs=yes
14707 if test "$with_gnu_ld" = yes; then
14708 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14717 sys_lib_dlsearch_path_spec='/usr/lib'
14721 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 shlibpath_overrides_runpath=no
14728 hardcode_into_libs=yes
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 shlibpath_var=LD_LIBRARY_PATH
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14743 $as_echo "$dynamic_linker" >&6; }
14744 test "$dynamic_linker" = no && can_build_shared=no
14746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14747 if test "$GCC" = yes; then
14748 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14751 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14752 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14754 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14755 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14795 hardcode_action_CXX=
14796 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14797 test -n "$runpath_var_CXX" ||
14798 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14800 # We can hardcode non-existent directories.
14801 if test "$hardcode_direct_CXX" != no &&
14802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14803 # have to relink, otherwise we might link with an installed library
14804 # when we should be linking with a yet-to-be-installed one
14805 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14806 test "$hardcode_minus_L_CXX" != no; then
14807 # Linking always hardcodes the temporary library directory.
14808 hardcode_action_CXX=relink
14810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14811 hardcode_action_CXX=immediate
14814 # We cannot hardcode anything, or else we can only hardcode existing
14816 hardcode_action_CXX=unsupported
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14819 $as_echo "$hardcode_action_CXX" >&6; }
14821 if test "$hardcode_action_CXX" = relink ||
14822 test "$inherit_rpath_CXX" = yes; then
14823 # Fast installation is not supported
14824 enable_fast_install=no
14825 elif test "$shlibpath_overrides_runpath" = yes ||
14826 test "$enable_shared" = no; then
14827 # Fast installation is not necessary
14828 enable_fast_install=needless
14837 fi # test -n "$compiler"
14843 with_gnu_ld=$lt_save_with_gnu_ld
14844 lt_cv_path_LDCXX=$lt_cv_path_LD
14845 lt_cv_path_LD=$lt_save_path_LD
14846 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14847 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14848 fi # test "$_lt_caught_CXX_error" != yes
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14868 ac_config_commands="$ac_config_commands libtool"
14873 # Only expand once:
14877 # Extract the first word of "autogen", so it can be a program name with args.
14878 set dummy autogen; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 $as_echo_n "checking for $ac_word... " >&6; }
14881 if test "${ac_cv_prog_HAVE_AUTOGEN+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14884 if test -n "$HAVE_AUTOGEN"; then
14885 ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14894 ac_cv_prog_HAVE_AUTOGEN="yes"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14902 test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
14905 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
14906 if test -n "$HAVE_AUTOGEN"; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
14908 $as_echo "$HAVE_AUTOGEN" >&6; }
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14915 # Extract the first word of "wine", so it can be a program name with args.
14916 set dummy wine; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if test "${ac_cv_prog_HAVE_WINE+set}" = set; then :
14920 $as_echo_n "(cached) " >&6
14922 if test -n "$HAVE_WINE"; then
14923 ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14929 test -z "$as_dir" && as_dir=.
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14932 ac_cv_prog_HAVE_WINE="yes"
14933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940 test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
14943 HAVE_WINE=$ac_cv_prog_HAVE_WINE
14944 if test -n "$HAVE_WINE"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
14946 $as_echo "$HAVE_WINE" >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14956 $as_echo_n "checking whether ln -s works... " >&6; }
14958 if test "$LN_S" = "ln -s"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14960 $as_echo "yes" >&6; }
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14963 $as_echo "no, using $LN_S" >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14968 $as_echo_n "checking for ANSI C header files... " >&6; }
14969 if test "${ac_cv_header_stdc+set}" = set; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <stdlib.h>
14975 #include <stdarg.h>
14976 #include <string.h>
14987 if ac_fn_c_try_compile "$LINENO"; then :
14988 ac_cv_header_stdc=yes
14990 ac_cv_header_stdc=no
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 if test $ac_cv_header_stdc = yes; then
14995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <string.h>
15001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15002 $EGREP "memchr" >/dev/null 2>&1; then :
15005 ac_cv_header_stdc=no
15011 if test $ac_cv_header_stdc = yes; then
15012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015 #include <stdlib.h>
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "free" >/dev/null 2>&1; then :
15022 ac_cv_header_stdc=no
15028 if test $ac_cv_header_stdc = yes; then
15029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15030 if test "$cross_compiling" = yes; then :
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15036 #include <stdlib.h>
15037 #if ((' ' & 0x0FF) == 0x020)
15038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15041 # define ISLOWER(c) \
15042 (('a' <= (c) && (c) <= 'i') \
15043 || ('j' <= (c) && (c) <= 'r') \
15044 || ('s' <= (c) && (c) <= 'z'))
15045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15053 for (i = 0; i < 256; i++)
15054 if (XOR (islower (i), ISLOWER (i))
15055 || toupper (i) != TOUPPER (i))
15060 if ac_fn_c_try_run "$LINENO"; then :
15063 ac_cv_header_stdc=no
15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15066 conftest.$ac_objext conftest.beam conftest.$ac_ext
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15072 $as_echo "$ac_cv_header_stdc" >&6; }
15073 if test $ac_cv_header_stdc = yes; then
15075 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15080 for ac_header in endian.h
15082 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
15083 if test "x$ac_cv_header_endian_h" = x""yes; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_ENDIAN_H 1
15092 for ac_header in byteswap.h
15094 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
15095 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
15096 cat >>confdefs.h <<_ACEOF
15097 #define HAVE_BYTESWAP_H 1
15104 for ac_header in locale.h
15106 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15107 if test "x$ac_cv_header_locale_h" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_LOCALE_H 1
15116 for ac_header in sys/time.h
15118 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15119 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_SYS_TIME_H 1
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15130 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15131 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
15132 $as_echo_n "(cached) " >&6
15134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #include <sys/wait.h>
15138 #ifndef WEXITSTATUS
15139 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15142 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15150 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15155 if ac_fn_c_try_compile "$LINENO"; then :
15156 ac_cv_header_sys_wait_h=yes
15158 ac_cv_header_sys_wait_h=no
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15163 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15164 if test $ac_cv_header_sys_wait_h = yes; then
15166 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15171 ac_fn_c_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default"
15172 if test "x$ac_cv_have_decl_S_IRGRP" = x""yes; then :
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_DECL_S_IRGRP $ac_have_decl
15182 if test x$ac_cv_have_decl_S_IRGRP = xyes ; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_DECL_S_IRGRP 1
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_DECL_S_IRGRP 0
15195 if test "$build_os:$target_os:$host_os:$HAVE_WINE" = "linux-gnu:mingw32msvc:mingw32msvc:yes"; then
15196 LINUX_MINGW_CROSS_TEST_TRUE=
15197 LINUX_MINGW_CROSS_TEST_FALSE='#'
15199 LINUX_MINGW_CROSS_TEST_TRUE='#'
15200 LINUX_MINGW_CROSS_TEST_FALSE=
15204 #====================================================================================
15205 # Check for support of the struct hack.
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C99 struct flexible array support" >&5
15208 $as_echo_n "checking C99 struct flexible array support... " >&6; }
15209 if test "${ac_cv_c99_flexible_array+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15212 # Initialize to unknown
15213 ac_cv_c99_flexible_array=no
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 #include <stdlib.h>
15227 MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
15232 if ac_fn_c_try_link "$LINENO"; then :
15233 ac_cv_c99_flexible_array=yes
15235 ac_cv_c99_flexible_array=no
15238 rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_flexible_array" >&5
15242 $as_echo "$ac_cv_c99_flexible_array" >&6; }
15245 if test x$ac_cv_c99_flexible_array = xyes ; then
15247 $as_echo "#define HAVE_FLEXIBLE_ARRAY 1" >>confdefs.h
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
15251 $as_echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** feature known as the flexible array struct member. ***" >&5
15253 $as_echo "$as_me: WARNING: *** feature known as the flexible array struct member. ***" >&2;}
15254 $as_echo "#define HAVE_FLEXIBLE_ARRAY 0" >>confdefs.h
15258 #====================================================================================
15259 # Couple of initializations here. Fill in real values later.
15261 SHLIB_VERSION_ARG=""
15263 #====================================================================================
15264 # Finished checking, handle options.
15266 # Check whether --enable-experimental was given.
15267 if test "${enable_experimental+set}" = set; then :
15268 enableval=$enable_experimental;
15272 EXPERIMENTAL_CODE=0
15273 if test x$enable_experimental = xyes ; then
15274 EXPERIMENTAL_CODE=1
15277 cat >>confdefs.h <<_ACEOF
15278 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
15282 # Check whether --enable-gcc-werror was given.
15283 if test "${enable_gcc_werror+set}" = set; then :
15284 enableval=$enable_gcc_werror;
15288 # Check whether --enable-gcc-pipe was given.
15289 if test "${enable_gcc_pipe+set}" = set; then :
15290 enableval=$enable_gcc_pipe;
15294 # Check whether --enable-gcc-opt was given.
15295 if test "${enable_gcc_opt+set}" = set; then :
15296 enableval=$enable_gcc_opt;
15300 # Check whether --enable-cpu-clip was given.
15301 if test "${enable_cpu_clip+set}" = set; then :
15302 enableval=$enable_cpu_clip;
15306 # Check whether --enable-bow-docs was given.
15307 if test "${enable_bow_docs+set}" = set; then :
15308 enableval=$enable_bow_docs;
15312 # Check whether --enable-sqlite was given.
15313 if test "${enable_sqlite+set}" = set; then :
15314 enableval=$enable_sqlite;
15318 # Check whether --enable-alsa was given.
15319 if test "${enable_alsa+set}" = set; then :
15320 enableval=$enable_alsa;
15324 # Check whether --enable-external-libs was given.
15325 if test "${enable_external_libs+set}" = set; then :
15326 enableval=$enable_external_libs;
15330 # Check whether --enable-octave was given.
15331 if test "${enable_octave+set}" = set; then :
15332 enableval=$enable_octave;
15336 # Check whether --enable-test-coverage was given.
15337 if test "${enable_test_coverage+set}" = set; then :
15338 enableval=$enable_test_coverage;
15341 if test "$enable_test_coverage" = yes; then
15342 ENABLE_TEST_COVERAGE_TRUE=
15343 ENABLE_TEST_COVERAGE_FALSE='#'
15345 ENABLE_TEST_COVERAGE_TRUE='#'
15346 ENABLE_TEST_COVERAGE_FALSE=
15350 #====================================================================================
15351 # Check types and their sizes.
15353 # The cast to long int works around a bug in the HP C Compiler
15354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15356 # This bug is HP SR number 8606223364.
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15358 $as_echo_n "checking size of wchar_t... " >&6; }
15359 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
15360 $as_echo_n "(cached) " >&6
15362 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
15365 if test "$ac_cv_type_wchar_t" = yes; then
15366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15368 { as_fn_set_status 77
15369 as_fn_error "cannot compute sizeof (wchar_t)
15370 See \`config.log' for more details." "$LINENO" 5; }; }
15372 ac_cv_sizeof_wchar_t=0
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15378 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15382 cat >>confdefs.h <<_ACEOF
15383 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15387 # The cast to long int works around a bug in the HP C Compiler
15388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15390 # This bug is HP SR number 8606223364.
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15392 $as_echo_n "checking size of short... " >&6; }
15393 if test "${ac_cv_sizeof_short+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15399 if test "$ac_cv_type_short" = yes; then
15400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15402 { as_fn_set_status 77
15403 as_fn_error "cannot compute sizeof (short)
15404 See \`config.log' for more details." "$LINENO" 5; }; }
15406 ac_cv_sizeof_short=0
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15412 $as_echo "$ac_cv_sizeof_short" >&6; }
15416 cat >>confdefs.h <<_ACEOF
15417 #define SIZEOF_SHORT $ac_cv_sizeof_short
15421 # The cast to long int works around a bug in the HP C Compiler
15422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15424 # This bug is HP SR number 8606223364.
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15426 $as_echo_n "checking size of int... " >&6; }
15427 if test "${ac_cv_sizeof_int+set}" = set; then :
15428 $as_echo_n "(cached) " >&6
15430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15433 if test "$ac_cv_type_int" = yes; then
15434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15436 { as_fn_set_status 77
15437 as_fn_error "cannot compute sizeof (int)
15438 See \`config.log' for more details." "$LINENO" 5; }; }
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15446 $as_echo "$ac_cv_sizeof_int" >&6; }
15450 cat >>confdefs.h <<_ACEOF
15451 #define SIZEOF_INT $ac_cv_sizeof_int
15455 # The cast to long int works around a bug in the HP C Compiler
15456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15458 # This bug is HP SR number 8606223364.
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15460 $as_echo_n "checking size of long... " >&6; }
15461 if test "${ac_cv_sizeof_long+set}" = set; then :
15462 $as_echo_n "(cached) " >&6
15464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15467 if test "$ac_cv_type_long" = yes; then
15468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15470 { as_fn_set_status 77
15471 as_fn_error "cannot compute sizeof (long)
15472 See \`config.log' for more details." "$LINENO" 5; }; }
15474 ac_cv_sizeof_long=0
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15480 $as_echo "$ac_cv_sizeof_long" >&6; }
15484 cat >>confdefs.h <<_ACEOF
15485 #define SIZEOF_LONG $ac_cv_sizeof_long
15489 # The cast to long int works around a bug in the HP C Compiler
15490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15492 # This bug is HP SR number 8606223364.
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
15494 $as_echo_n "checking size of float... " >&6; }
15495 if test "${ac_cv_sizeof_float+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
15501 if test "$ac_cv_type_float" = yes; then
15502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15504 { as_fn_set_status 77
15505 as_fn_error "cannot compute sizeof (float)
15506 See \`config.log' for more details." "$LINENO" 5; }; }
15508 ac_cv_sizeof_float=0
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
15514 $as_echo "$ac_cv_sizeof_float" >&6; }
15518 cat >>confdefs.h <<_ACEOF
15519 #define SIZEOF_FLOAT $ac_cv_sizeof_float
15523 # The cast to long int works around a bug in the HP C Compiler
15524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15526 # This bug is HP SR number 8606223364.
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15528 $as_echo_n "checking size of double... " >&6; }
15529 if test "${ac_cv_sizeof_double+set}" = set; then :
15530 $as_echo_n "(cached) " >&6
15532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15535 if test "$ac_cv_type_double" = yes; then
15536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15538 { as_fn_set_status 77
15539 as_fn_error "cannot compute sizeof (double)
15540 See \`config.log' for more details." "$LINENO" 5; }; }
15542 ac_cv_sizeof_double=0
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15548 $as_echo "$ac_cv_sizeof_double" >&6; }
15552 cat >>confdefs.h <<_ACEOF
15553 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15557 # The cast to long int works around a bug in the HP C Compiler
15558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15560 # This bug is HP SR number 8606223364.
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
15562 $as_echo_n "checking size of void*... " >&6; }
15563 if test "${ac_cv_sizeof_voidp+set}" = set; then :
15564 $as_echo_n "(cached) " >&6
15566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
15569 if test "$ac_cv_type_voidp" = yes; then
15570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15572 { as_fn_set_status 77
15573 as_fn_error "cannot compute sizeof (void*)
15574 See \`config.log' for more details." "$LINENO" 5; }; }
15576 ac_cv_sizeof_voidp=0
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
15582 $as_echo "$ac_cv_sizeof_voidp" >&6; }
15586 cat >>confdefs.h <<_ACEOF
15587 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
15591 # The cast to long int works around a bug in the HP C Compiler
15592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15594 # This bug is HP SR number 8606223364.
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15596 $as_echo_n "checking size of size_t... " >&6; }
15597 if test "${ac_cv_sizeof_size_t+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15600 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15603 if test "$ac_cv_type_size_t" = yes; then
15604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15606 { as_fn_set_status 77
15607 as_fn_error "cannot compute sizeof (size_t)
15608 See \`config.log' for more details." "$LINENO" 5; }; }
15610 ac_cv_sizeof_size_t=0
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15616 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15620 cat >>confdefs.h <<_ACEOF
15621 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15625 # The cast to long int works around a bug in the HP C Compiler
15626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15628 # This bug is HP SR number 8606223364.
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
15630 $as_echo_n "checking size of int64_t... " >&6; }
15631 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
15632 $as_echo_n "(cached) " >&6
15634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
15637 if test "$ac_cv_type_int64_t" = yes; then
15638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15640 { as_fn_set_status 77
15641 as_fn_error "cannot compute sizeof (int64_t)
15642 See \`config.log' for more details." "$LINENO" 5; }; }
15644 ac_cv_sizeof_int64_t=0
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
15650 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
15654 cat >>confdefs.h <<_ACEOF
15655 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
15659 # The cast to long int works around a bug in the HP C Compiler
15660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15662 # This bug is HP SR number 8606223364.
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15664 $as_echo_n "checking size of long long... " >&6; }
15665 if test "${ac_cv_sizeof_long_long+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15671 if test "$ac_cv_type_long_long" = yes; then
15672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15674 { as_fn_set_status 77
15675 as_fn_error "cannot compute sizeof (long long)
15676 See \`config.log' for more details." "$LINENO" 5; }; }
15678 ac_cv_sizeof_long_long=0
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15684 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15688 cat >>confdefs.h <<_ACEOF
15689 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15694 #====================================================================================
15695 # Find an appropriate type for sf_count_t.
15696 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
15697 # Unfortunately there is more than one way of ensuring this so need to do some
15698 # pretty rigourous testing here.
15700 unset ac_cv_sizeof_off_t
15702 # The cast to long int works around a bug in the HP C Compiler
15703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15705 # This bug is HP SR number 8606223364.
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15707 $as_echo_n "checking size of off_t... " >&6; }
15708 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15714 if test "$ac_cv_type_off_t" = yes; then
15715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15717 { as_fn_set_status 77
15718 as_fn_error "cannot compute sizeof (off_t)
15719 See \`config.log' for more details." "$LINENO" 5; }; }
15721 ac_cv_sizeof_off_t=0
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15727 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15731 cat >>confdefs.h <<_ACEOF
15732 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15735 # Fake default value.
15738 mingw32msvc | mingw32)
15739 TYPEOF_SF_COUNT_T="__int64"
15740 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
15741 SIZEOF_SF_COUNT_T=8
15743 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
15747 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
15748 # If sizeof (off_t) is 8, no further checking is needed.
15749 TYPEOF_SF_COUNT_T="off_t"
15750 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
15751 SIZEOF_SF_COUNT_T=8
15753 # Check for common 64 bit file offset types.
15754 # The cast to long int works around a bug in the HP C Compiler
15755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15757 # This bug is HP SR number 8606223364.
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5
15759 $as_echo_n "checking size of loff_t... " >&6; }
15760 if test "${ac_cv_sizeof_loff_t+set}" = set; then :
15761 $as_echo_n "(cached) " >&6
15763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t" "$ac_includes_default"; then :
15766 if test "$ac_cv_type_loff_t" = yes; then
15767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15769 { as_fn_set_status 77
15770 as_fn_error "cannot compute sizeof (loff_t)
15771 See \`config.log' for more details." "$LINENO" 5; }; }
15773 ac_cv_sizeof_loff_t=0
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5
15779 $as_echo "$ac_cv_sizeof_loff_t" >&6; }
15783 cat >>confdefs.h <<_ACEOF
15784 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
15787 # Fake default value.
15788 # The cast to long int works around a bug in the HP C Compiler
15789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15791 # This bug is HP SR number 8606223364.
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
15793 $as_echo_n "checking size of off64_t... " >&6; }
15794 if test "${ac_cv_sizeof_off64_t+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
15800 if test "$ac_cv_type_off64_t" = yes; then
15801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15803 { as_fn_set_status 77
15804 as_fn_error "cannot compute sizeof (off64_t)
15805 See \`config.log' for more details." "$LINENO" 5; }; }
15807 ac_cv_sizeof_off64_t=0
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
15813 $as_echo "$ac_cv_sizeof_off64_t" >&6; }
15817 cat >>confdefs.h <<_ACEOF
15818 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
15821 # Fake default value.
15823 TYPEOF_SF_COUNT_T="unknown"
15824 if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
15825 TYPEOF_SF_COUNT_T="loff_t"
15826 SIZEOF_SF_COUNT_T=8
15827 elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
15828 TYPEOF_SF_COUNT_T="off64_t"
15829 SIZEOF_SF_COUNT_T=8
15832 # Save the old sizeof (off_t) value and then unset it to see if it
15833 # changes when Large File Support is enabled.
15835 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
15836 unset ac_cv_sizeof_off_t
15839 # Check whether --enable-largefile was given.
15840 if test "${enable_largefile+set}" = set; then :
15841 enableval=$enable_largefile;
15844 if test "$enable_largefile" != no; then
15845 if test -n "$ac_tool_prefix"; then
15846 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
15847 set dummy ${ac_tool_prefix}getconf; ac_word=$2
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849 $as_echo_n "checking for $ac_word... " >&6; }
15850 if test "${ac_cv_prog_GETCONF+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15853 if test -n "$GETCONF"; then
15854 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
15856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15860 test -z "$as_dir" && as_dir=.
15861 for ac_exec_ext in '' $ac_executable_extensions; do
15862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15863 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
15864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15873 GETCONF=$ac_cv_prog_GETCONF
15874 if test -n "$GETCONF"; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
15876 $as_echo "$GETCONF" >&6; }
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15884 if test -z "$ac_cv_prog_GETCONF"; then
15885 ac_ct_GETCONF=$GETCONF
15886 # Extract the first word of "getconf", so it can be a program name with args.
15887 set dummy getconf; ac_word=$2
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889 $as_echo_n "checking for $ac_word... " >&6; }
15890 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
15893 if test -n "$ac_ct_GETCONF"; then
15894 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in $PATH
15900 test -z "$as_dir" && as_dir=.
15901 for ac_exec_ext in '' $ac_executable_extensions; do
15902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15903 ac_cv_prog_ac_ct_GETCONF="getconf"
15904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15913 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
15914 if test -n "$ac_ct_GETCONF"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
15916 $as_echo "$ac_ct_GETCONF" >&6; }
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15922 if test "x$ac_ct_GETCONF" = x; then
15925 case $cross_compiling:$ac_tool_warned in
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15929 ac_tool_warned=yes ;;
15931 GETCONF=$ac_ct_GETCONF
15934 GETCONF="$ac_cv_prog_GETCONF"
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
15938 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
15939 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15942 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
15943 ac_cv_sys_largefile_CFLAGS=no
15945 # IRIX 6.2 and later require cc -n32.
15946 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
15947 if test "$GCC" != yes; then
15948 ac_cv_sys_largefile_CFLAGS=-n32
15951 CC="$CC $ac_cv_sys_largefile_CFLAGS"
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15963 if ac_fn_c_try_link "$LINENO"; then :
15966 ac_cv_sys_largefile_CFLAGS=no
15968 rm -f core conftest.err conftest.$ac_objext \
15969 conftest$ac_exeext conftest.$ac_ext
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
15975 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
15977 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
15978 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
15979 $as_echo_n "(cached) " >&6
15981 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
15982 ac_cv_sys_largefile_LDFLAGS=no
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
15987 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
15989 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
15990 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
15991 $as_echo_n "(cached) " >&6
15993 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
15994 ac_cv_sys_largefile_LIBS=no
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
15999 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
16001 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16004 -D_FILE_OFFSET_BITS=*) ;;
16005 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
16006 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
16011 case "$CPPFLAGS" in
16012 '') CPPFLAGS="$ac_flag" ;;
16013 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
16021 '') CFLAGS="$ac_flag" ;;
16022 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
16027 case "$ac_cv_sys_largefile_LDFLAGS" in
16031 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
16032 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
16035 case "$ac_cv_sys_largefile_LIBS" in
16039 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
16040 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
16044 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
16045 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
16046 $as_echo_n "(cached) " >&6
16048 ac_cv_sys_file_offset_bits=no
16050 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16052 -D_FILE_OFFSET_BITS)
16053 ac_cv_sys_file_offset_bits=1 ;;
16054 -D_FILE_OFFSET_BITS=*)
16055 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16061 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16062 if test "$ac_cv_sys_file_offset_bits" != no; then
16064 cat >>confdefs.h <<_ACEOF
16065 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16070 # HP-UX 10.20 and later
16071 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
16072 ac_cv_sys_file_offset_bits=64 ;;
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
16075 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
16076 if test "${ac_cv_sys_largefile_source+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16079 ac_cv_sys_largefile_source=no
16081 # HP-UX 10.20 and later
16082 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
16083 ac_cv_sys_largefile_source=1 ;;
16085 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16087 -D_LARGEFILE_SOURCE)
16088 ac_cv_sys_largefile_source=1 ;;
16089 -D_LARGEFILE_SOURCE=*)
16090 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16096 $as_echo "$ac_cv_sys_largefile_source" >&6; }
16097 if test "$ac_cv_sys_largefile_source" != no; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
16105 $as_echo_n "checking for _LARGE_FILES... " >&6; }
16106 if test "${ac_cv_sys_large_files+set}" = set; then :
16107 $as_echo_n "(cached) " >&6
16109 ac_cv_sys_large_files=no
16111 # AIX 4.2 and later
16112 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
16113 ac_cv_sys_large_files=1 ;;
16115 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
16118 ac_cv_sys_large_files=1 ;;
16120 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16126 $as_echo "$ac_cv_sys_large_files" >&6; }
16127 if test "$ac_cv_sys_large_files" != no; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define _LARGE_FILES $ac_cv_sys_large_files
16137 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
16138 ac_cv_sys_largefile_CFLAGS=""
16140 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
16141 ac_cv_sys_largefile_LDFLAGS=""
16143 if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
16144 ac_cv_sys_largefile_LIBS=""
16147 # The cast to long int works around a bug in the HP C Compiler
16148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16150 # This bug is HP SR number 8606223364.
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16152 $as_echo_n "checking size of off_t... " >&6; }
16153 if test "${ac_cv_sizeof_off_t+set}" = set; then :
16154 $as_echo_n "(cached) " >&6
16156 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16159 if test "$ac_cv_type_off_t" = yes; then
16160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16162 { as_fn_set_status 77
16163 as_fn_error "cannot compute sizeof (off_t)
16164 See \`config.log' for more details." "$LINENO" 5; }; }
16166 ac_cv_sizeof_off_t=0
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16172 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16176 cat >>confdefs.h <<_ACEOF
16177 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16180 # Fake default value.
16182 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
16183 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
16184 elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This machine does not seem to support 64 bit file offsets." >&5
16186 $as_echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
16187 TYPEOF_SF_COUNT_T="off_t"
16188 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
16189 elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
16191 echo "*** The configure process has determined that this system is capable"
16192 echo "*** of Large File Support but has not been able to find a type which"
16193 echo "*** is an unambiguous 64 bit file offset."
16194 echo "*** Please contact the author to help resolve this problem."
16196 as_fn_error "Bad file offset type." "$LINENO" 5
16202 if test $SIZEOF_SF_COUNT_T = 4 ; then
16203 SF_COUNT_MAX="0x7FFFFFFF"
16207 cat >>confdefs.h <<_ACEOF
16208 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
16214 cat >>confdefs.h <<_ACEOF
16215 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
16221 cat >>confdefs.h <<_ACEOF
16222 #define SF_COUNT_MAX ${SF_COUNT_MAX}
16227 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16228 if test "x$ac_cv_type_ssize_t" = x""yes; then :
16230 cat >>confdefs.h <<_ACEOF
16231 #define HAVE_SSIZE_T 1
16237 # The cast to long int works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
16242 $as_echo_n "checking size of ssize_t... " >&6; }
16243 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
16244 $as_echo_n "(cached) " >&6
16246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
16249 if test "$ac_cv_type_ssize_t" = yes; then
16250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16252 { as_fn_set_status 77
16253 as_fn_error "cannot compute sizeof (ssize_t)
16254 See \`config.log' for more details." "$LINENO" 5; }; }
16256 ac_cv_sizeof_ssize_t=0
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
16262 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
16266 cat >>confdefs.h <<_ACEOF
16267 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
16272 #====================================================================================
16273 # Determine endian-ness of target processor.
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
16276 $as_echo_n "checking processor byte ordering... " >&6; }
16277 if test "${ac_cv_c_byte_order+set}" = set; then :
16278 $as_echo_n "(cached) " >&6
16280 # Initialize to unknown
16281 ac_cv_c_byte_order=unknown
16283 if test x$ac_cv_header_endian_h = xyes ; then
16285 # First try <endian.h> which should set BYTE_ORDER.
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16290 #include <endian.h>
16291 #if BYTE_ORDER != LITTLE_ENDIAN
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 ac_cv_c_byte_order=little
16307 rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16313 #include <endian.h>
16314 #if BYTE_ORDER != BIG_ENDIAN
16326 if ac_fn_c_try_link "$LINENO"; then :
16327 ac_cv_c_byte_order=big
16330 rm -f core conftest.err conftest.$ac_objext \
16331 conftest$ac_exeext conftest.$ac_ext
16335 if test $ac_cv_c_byte_order = unknown ; then
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16340 #include <sys/types.h>
16341 #include <sys/param.h>
16342 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16343 bogus endian macros
16354 if ac_fn_c_try_link "$LINENO"; then :
16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356 /* end confdefs.h. */
16358 #include <sys/types.h>
16359 #include <sys/param.h>
16360 #if BYTE_ORDER != LITTLE_ENDIAN
16372 if ac_fn_c_try_link "$LINENO"; then :
16373 ac_cv_c_byte_order=little
16376 rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16382 #include <sys/types.h>
16383 #include <sys/param.h>
16384 #if BYTE_ORDER != LITTLE_ENDIAN
16396 if ac_fn_c_try_link "$LINENO"; then :
16397 ac_cv_c_byte_order=little
16400 rm -f core conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16405 rm -f core conftest.err conftest.$ac_objext \
16406 conftest$ac_exeext conftest.$ac_ext
16410 if test $ac_cv_c_byte_order = unknown ; then
16411 if test $cross_compiling = yes ; then
16412 # This is the last resort. Try to guess the target processor endian-ness
16413 # by looking at the target CPU type.
16415 case "$target_cpu" in
16416 alpha* | i?86* | mipsel* | ia64*)
16417 ac_cv_c_byte_order=little
16420 m68* | mips* | powerpc* | hppa* | sparc*)
16421 ac_cv_c_byte_order=big
16427 if test "$cross_compiling" = yes; then :
16428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16430 as_fn_error "cannot run test program while cross compiling
16431 See \`config.log' for more details." "$LINENO" 5; }
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16437 { /* Are we little or big endian? From Harbison&Steele. */
16440 char c [sizeof (long)] ;
16443 return (u.c [sizeof (long) - 1] == 1);
16447 if ac_fn_c_try_run "$LINENO"; then :
16450 ac_cv_c_byte_order=big
16452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16453 conftest.$ac_objext conftest.beam conftest.$ac_ext
16457 if test "$cross_compiling" = yes; then :
16458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16460 as_fn_error "cannot run test program while cross compiling
16461 See \`config.log' for more details." "$LINENO" 5; }
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16466 { /* Are we little or big endian? From Harbison&Steele. */
16469 char c [sizeof (long)] ;
16472 return (u.c [0] == 1);
16475 if ac_fn_c_try_run "$LINENO"; then :
16478 ac_cv_c_byte_order=little
16480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16481 conftest.$ac_objext conftest.beam conftest.$ac_ext
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
16490 $as_echo "$ac_cv_c_byte_order" >&6; }
16492 if test $ac_cv_c_byte_order = big ; then
16493 ac_cv_c_big_endian=1
16494 ac_cv_c_little_endian=0
16495 elif test $ac_cv_c_byte_order = little ; then
16496 ac_cv_c_big_endian=0
16497 ac_cv_c_little_endian=1
16499 ac_cv_c_big_endian=0
16500 ac_cv_c_little_endian=0
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16503 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
16505 $as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
16507 $as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
16509 $as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
16511 $as_echo "$as_me: WARNING: *****************************************************************" >&2;}
16518 cat >>confdefs.h <<_ACEOF
16519 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
16523 cat >>confdefs.h <<_ACEOF
16524 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
16528 cat >>confdefs.h <<_ACEOF
16529 #define WORDS_BIGENDIAN ${ac_cv_c_big_endian}
16533 #====================================================================================
16534 # Check for functions.
16536 for ac_func in malloc calloc realloc free
16538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16540 eval as_val=\$$as_ac_var
16541 if test "x$as_val" = x""yes; then :
16542 cat >>confdefs.h <<_ACEOF
16543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16549 for ac_func in open read write lseek pread pwrite
16551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16553 eval as_val=\$$as_ac_var
16554 if test "x$as_val" = x""yes; then :
16555 cat >>confdefs.h <<_ACEOF
16556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 for ac_func in fstat ftruncate fsync
16564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16566 eval as_val=\$$as_ac_var
16567 if test "x$as_val" = x""yes; then :
16568 cat >>confdefs.h <<_ACEOF
16569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16575 for ac_func in snprintf vsnprintf
16577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16579 eval as_val=\$$as_ac_var
16580 if test "x$as_val" = x""yes; then :
16581 cat >>confdefs.h <<_ACEOF
16582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 for ac_func in gmtime gmtime_r localtime localtime_r gettimeofday
16590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16592 eval as_val=\$$as_ac_var
16593 if test "x$as_val" = x""yes; then :
16594 cat >>confdefs.h <<_ACEOF
16595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16601 for ac_func in mmap getpagesize
16603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16605 eval as_val=\$$as_ac_var
16606 if test "x$as_val" = x""yes; then :
16607 cat >>confdefs.h <<_ACEOF
16608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16614 for ac_func in setlocale
16616 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16617 if test "x$ac_cv_func_setlocale" = x""yes; then :
16618 cat >>confdefs.h <<_ACEOF
16619 #define HAVE_SETLOCALE 1
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
16627 $as_echo_n "checking for floor in -lm... " >&6; }
16628 if test "${ac_cv_lib_m_floor+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16631 ac_check_lib_save_LIBS=$LIBS
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 ac_cv_lib_m_floor=yes
16654 ac_cv_lib_m_floor=no
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
16661 $as_echo "$ac_cv_lib_m_floor" >&6; }
16662 if test "x$ac_cv_lib_m_floor" = x""yes; then :
16663 cat >>confdefs.h <<_ACEOF
16664 #define HAVE_LIBM 1
16671 for ac_func in floor ceil fmod
16673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16675 eval as_val=\$$as_ac_var
16676 if test "x$as_val" = x""yes; then :
16677 cat >>confdefs.h <<_ACEOF
16678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
16686 $as_echo_n "checking for lrint... " >&6; }
16687 if test "${ac_cv_c99_lrint+set}" = set; then :
16688 $as_echo_n "(cached) " >&6
16691 lrint_save_CFLAGS=$CFLAGS
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16696 #define _ISOC9X_SOURCE 1
16697 #define _ISOC99_SOURCE 1
16698 #define __USE_ISOC99 1
16699 #define __USE_ISOC9X 1
16706 if (!lrint(3.14159)) lrint(2.7183);
16711 if ac_fn_c_try_link "$LINENO"; then :
16712 ac_cv_c99_lrint=yes
16716 rm -f core conftest.err conftest.$ac_objext \
16717 conftest$ac_exeext conftest.$ac_ext
16719 CFLAGS=$lrint_save_CFLAGS
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
16724 $as_echo "$ac_cv_c99_lrint" >&6; }
16726 if test "$ac_cv_c99_lrint" = yes; then
16728 $as_echo "#define HAVE_LRINT 1" >>confdefs.h
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
16733 $as_echo_n "checking for lrintf... " >&6; }
16734 if test "${ac_cv_c99_lrintf+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16738 lrintf_save_CFLAGS=$CFLAGS
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16743 #define _ISOC9X_SOURCE 1
16744 #define _ISOC99_SOURCE 1
16745 #define __USE_ISOC99 1
16746 #define __USE_ISOC9X 1
16753 if (!lrintf(3.14159)) lrintf(2.7183);
16758 if ac_fn_c_try_link "$LINENO"; then :
16759 ac_cv_c99_lrintf=yes
16761 ac_cv_c99_lrintf=no
16763 rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16766 CFLAGS=$lrintf_save_CFLAGS
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
16771 $as_echo "$ac_cv_c99_lrintf" >&6; }
16773 if test "$ac_cv_c99_lrintf" = yes; then
16775 $as_echo "#define HAVE_LRINTF 1" >>confdefs.h
16780 #====================================================================================
16781 # Check for requirements for building plugins for other languages/enviroments.
16783 if test x$cross_compiling = xno ; then
16784 if test x$enable_octave = xno ; then
16786 BUILD_OCTAVE_MOD_TRUE=
16787 BUILD_OCTAVE_MOD_FALSE='#'
16789 BUILD_OCTAVE_MOD_TRUE='#'
16790 BUILD_OCTAVE_MOD_FALSE=
16801 # Check whether --with-octave was given.
16802 if test "${with_octave+set}" = set; then :
16803 withval=$with_octave; with_octave=$withval
16807 test -z "$with_octave" && with_octave=octave
16809 # Extract the first word of "$with_octave", so it can be a program name with args.
16810 set dummy $with_octave; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if test "${ac_cv_prog_HAVE_OCTAVE+set}" = set; then :
16814 $as_echo_n "(cached) " >&6
16816 if test -n "$HAVE_OCTAVE"; then
16817 ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16826 ac_cv_prog_HAVE_OCTAVE="yes"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16834 test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
16837 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
16838 if test -n "$HAVE_OCTAVE"; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
16840 $as_echo "$HAVE_OCTAVE" >&6; }
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16848 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
16849 OCTAVE=$with_octave
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
16852 $as_echo_n "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
16853 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
16855 $as_echo "$OCTAVE_VERSION" >&6; }
16868 # Check whether --with-mkoctfile was given.
16869 if test "${with_mkoctfile+set}" = set; then :
16870 withval=$with_mkoctfile; with_mkoctfile=$withval
16874 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
16876 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
16877 set dummy $with_mkoctfile; ac_word=$2
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16879 $as_echo_n "checking for $ac_word... " >&6; }
16880 if test "${ac_cv_prog_HAVE_MKOCTFILE+set}" = set; then :
16881 $as_echo_n "(cached) " >&6
16883 if test -n "$HAVE_MKOCTFILE"; then
16884 ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16890 test -z "$as_dir" && as_dir=.
16891 for ac_exec_ext in '' $ac_executable_extensions; do
16892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16893 ac_cv_prog_HAVE_MKOCTFILE="yes"
16894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16901 test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
16904 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
16905 if test -n "$HAVE_MKOCTFILE"; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
16907 $as_echo "$HAVE_MKOCTFILE" >&6; }
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 $as_echo "no" >&6; }
16915 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
16916 MKOCTFILE=$with_mkoctfile
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
16919 $as_echo_n "checking for version of $MKOCTFILE... " >&6; }
16920 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
16922 $as_echo "$MKOCTFILE_VERSION" >&6; }
16932 # Check whether --with-octave-config was given.
16933 if test "${with_octave_config+set}" = set; then :
16934 withval=$with_octave_config; with_octave_config=$withval
16938 test -z "$with_octave_config" && with_octave_config=octave-config
16940 # Extract the first word of "$with_octave_config", so it can be a program name with args.
16941 set dummy $with_octave_config; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if test "${ac_cv_prog_HAVE_OCTAVE_CONFIG+set}" = set; then :
16945 $as_echo_n "(cached) " >&6
16947 if test -n "$HAVE_OCTAVE_CONFIG"; then
16948 ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16954 test -z "$as_dir" && as_dir=.
16955 for ac_exec_ext in '' $ac_executable_extensions; do
16956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16957 ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
16958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16965 test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
16968 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
16969 if test -n "$HAVE_OCTAVE_CONFIG"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
16971 $as_echo "$HAVE_OCTAVE_CONFIG" >&6; }
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16979 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
16980 OCTAVE_CONFIG=$with_octave_config
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
16982 $as_echo_n "checking for version of $OCTAVE_CONFIG... " >&6; }
16983 OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
16985 $as_echo "$OCTAVE_CONFIG_VERSION" >&6; }
16993 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
16995 if test "x$prog_concat" = "xyesyesyes" ; then
16996 if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
16998 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17000 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17001 elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
17003 $as_echo "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
17005 $as_echo "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
17007 case "$MKOCTFILE_VERSION" in
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
17010 $as_echo "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
17013 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
17014 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
17020 $as_echo "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
17025 $as_echo "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
17033 if test "x$OCTAVE_BUILD" = xyes; then
17034 BUILD_OCTAVE_MOD_TRUE=
17035 BUILD_OCTAVE_MOD_FALSE='#'
17037 BUILD_OCTAVE_MOD_TRUE='#'
17038 BUILD_OCTAVE_MOD_FALSE=
17046 BUILD_OCTAVE_MOD_TRUE=
17047 BUILD_OCTAVE_MOD_FALSE='#'
17049 BUILD_OCTAVE_MOD_TRUE='#'
17050 BUILD_OCTAVE_MOD_FALSE=
17055 #====================================================================================
17056 # Check for Ogg, Vorbis and FLAC.
17058 HAVE_EXTERNAL_LIBS=0
17062 # Check for pkg-config outside the if statement.
17065 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17066 if test -n "$ac_tool_prefix"; then
17067 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17068 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17070 $as_echo_n "checking for $ac_word... " >&6; }
17071 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17072 $as_echo_n "(cached) " >&6
17074 case $PKG_CONFIG in
17076 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in $PATH
17083 test -z "$as_dir" && as_dir=.
17084 for ac_exec_ext in '' $ac_executable_extensions; do
17085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17086 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17097 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17098 if test -n "$PKG_CONFIG"; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17100 $as_echo "$PKG_CONFIG" >&6; }
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17103 $as_echo "no" >&6; }
17108 if test -z "$ac_cv_path_PKG_CONFIG"; then
17109 ac_pt_PKG_CONFIG=$PKG_CONFIG
17110 # Extract the first word of "pkg-config", so it can be a program name with args.
17111 set dummy pkg-config; ac_word=$2
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17113 $as_echo_n "checking for $ac_word... " >&6; }
17114 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17115 $as_echo_n "(cached) " >&6
17117 case $ac_pt_PKG_CONFIG in
17119 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17123 for as_dir in $PATH
17126 test -z "$as_dir" && as_dir=.
17127 for ac_exec_ext in '' $ac_executable_extensions; do
17128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17129 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17140 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17141 if test -n "$ac_pt_PKG_CONFIG"; then
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17143 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146 $as_echo "no" >&6; }
17149 if test "x$ac_pt_PKG_CONFIG" = x; then
17152 case $cross_compiling:$ac_tool_warned in
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17156 ac_tool_warned=yes ;;
17158 PKG_CONFIG=$ac_pt_PKG_CONFIG
17161 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17165 if test -n "$PKG_CONFIG"; then
17166 _pkg_min_version=0.9.0
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17168 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17169 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17171 $as_echo "yes" >&6; }
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17180 if test x$enable_external_libs = xno ; then
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
17182 $as_echo "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.2.1 " >&5
17187 $as_echo_n "checking for flac >= 1.2.1 ... " >&6; }
17189 if test -n "$PKG_CONFIG"; then
17190 if test -n "$FLAC_CFLAGS"; then
17191 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
17193 if test -n "$PKG_CONFIG" && \
17194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
17195 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
17197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17198 test $ac_status = 0; }; then
17199 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.2.1" 2>/dev/null`
17207 if test -n "$PKG_CONFIG"; then
17208 if test -n "$FLAC_LIBS"; then
17209 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
17211 if test -n "$PKG_CONFIG" && \
17212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.2.1\""; } >&5
17213 ($PKG_CONFIG --exists --print-errors "flac >= 1.2.1") 2>&5
17215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17216 test $ac_status = 0; }; then
17217 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.2.1" 2>/dev/null`
17228 if test $pkg_failed = yes; then
17230 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17231 _pkg_short_errors_supported=yes
17233 _pkg_short_errors_supported=no
17235 if test $_pkg_short_errors_supported = yes; then
17236 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.2.1"`
17238 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.2.1"`
17240 # Put the nasty error message in config.log where it belongs
17241 echo "$FLAC_PKG_ERRORS" >&5
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17246 elif test $pkg_failed = untried; then
17249 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
17250 FLAC_LIBS=$pkg_cv_FLAC_LIBS
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.1.3 " >&5
17258 $as_echo_n "checking for ogg >= 1.1.3 ... " >&6; }
17260 if test -n "$PKG_CONFIG"; then
17261 if test -n "$OGG_CFLAGS"; then
17262 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
17264 if test -n "$PKG_CONFIG" && \
17265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
17266 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
17268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17269 test $ac_status = 0; }; then
17270 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1.3" 2>/dev/null`
17278 if test -n "$PKG_CONFIG"; then
17279 if test -n "$OGG_LIBS"; then
17280 pkg_cv_OGG_LIBS="$OGG_LIBS"
17282 if test -n "$PKG_CONFIG" && \
17283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1.3\""; } >&5
17284 ($PKG_CONFIG --exists --print-errors "ogg >= 1.1.3") 2>&5
17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287 test $ac_status = 0; }; then
17288 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1.3" 2>/dev/null`
17299 if test $pkg_failed = yes; then
17301 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17302 _pkg_short_errors_supported=yes
17304 _pkg_short_errors_supported=no
17306 if test $_pkg_short_errors_supported = yes; then
17307 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1.3"`
17309 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1.3"`
17311 # Put the nasty error message in config.log where it belongs
17312 echo "$OGG_PKG_ERRORS" >&5
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315 $as_echo "no" >&6; }
17317 elif test $pkg_failed = untried; then
17320 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
17321 OGG_LIBS=$pkg_cv_OGG_LIBS
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17323 $as_echo "yes" >&6; }
17327 # Vorbis versions earlier than 1.2.3 have bugs that cause the libsndfile
17328 # test suite to fail on MIPS, PowerPC and others.
17329 # See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549899
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
17333 $as_echo_n "checking for vorbis >= 1.2.3 ... " >&6; }
17335 if test -n "$PKG_CONFIG"; then
17336 if test -n "$VORBIS_CFLAGS"; then
17337 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
17339 if test -n "$PKG_CONFIG" && \
17340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
17341 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
17343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17344 test $ac_status = 0; }; then
17345 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
17353 if test -n "$PKG_CONFIG"; then
17354 if test -n "$VORBIS_LIBS"; then
17355 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
17357 if test -n "$PKG_CONFIG" && \
17358 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
17359 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; }; then
17363 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
17374 if test $pkg_failed = yes; then
17376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17377 _pkg_short_errors_supported=yes
17379 _pkg_short_errors_supported=no
17381 if test $_pkg_short_errors_supported = yes; then
17382 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
17384 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
17386 # Put the nasty error message in config.log where it belongs
17387 echo "$VORBIS_PKG_ERRORS" >&5
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390 $as_echo "no" >&6; }
17392 elif test $pkg_failed = untried; then
17395 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
17396 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17398 $as_echo "yes" >&6; }
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
17404 $as_echo_n "checking for vorbisenc >= 1.2.3 ... " >&6; }
17406 if test -n "$PKG_CONFIG"; then
17407 if test -n "$VORBISENC_CFLAGS"; then
17408 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
17410 if test -n "$PKG_CONFIG" && \
17411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
17412 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
17414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17415 test $ac_status = 0; }; then
17416 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
17424 if test -n "$PKG_CONFIG"; then
17425 if test -n "$VORBISENC_LIBS"; then
17426 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
17428 if test -n "$PKG_CONFIG" && \
17429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
17430 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
17432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17433 test $ac_status = 0; }; then
17434 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
17445 if test $pkg_failed = yes; then
17447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17448 _pkg_short_errors_supported=yes
17450 _pkg_short_errors_supported=no
17452 if test $_pkg_short_errors_supported = yes; then
17453 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
17455 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
17457 # Put the nasty error message in config.log where it belongs
17458 echo "$VORBISENC_PKG_ERRORS" >&5
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17461 $as_echo "no" >&6; }
17463 elif test $pkg_failed = untried; then
17466 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
17467 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17469 $as_echo "yes" >&6; }
17470 ac_cv_vorbisenc=yes
17472 enable_external_libs=yes
17475 if test x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc = "xyesyesyesyes" ; then
17476 HAVE_EXTERNAL_LIBS=1
17477 enable_external_libs=yes
17479 EXTERNAL_CFLAGS="$FLAC_CFLAGS $OGG_CFLAGS $VORBISENC_CFLAGS"
17480 EXTERNAL_LIBS="$FLAC_LIBS $VORBISENC_LIBS"
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17484 *** One or more of the external libraries (ie libflac, libogg and
17485 *** libvorbis) is either missing (possibly only the development
17486 *** headers) or is of an unsupported version.
17488 *** Unfortunately, for ease of maintenance, the external libs
17489 *** are an all or nothing affair.
17491 $as_echo "$as_me: WARNING:
17493 *** One or more of the external libraries (ie libflac, libogg and
17494 *** libvorbis) is either missing (possibly only the development
17495 *** headers) or is of an unsupported version.
17497 *** Unfortunately, for ease of maintenance, the external libs
17498 *** are an all or nothing affair.
17500 enable_external_libs=no
17504 cat >>confdefs.h <<_ACEOF
17505 #define HAVE_EXTERNAL_LIBS $HAVE_EXTERNAL_LIBS
17509 #====================================================================================
17510 # Check for libsqlite3 (only used in regtest).
17513 if test x$enable_sqlite != xno ; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
17517 $as_echo_n "checking for sqlite3 >= 3.2 ... " >&6; }
17519 if test -n "$PKG_CONFIG"; then
17520 if test -n "$SQLITE3_CFLAGS"; then
17521 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
17523 if test -n "$PKG_CONFIG" && \
17524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
17525 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
17527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528 test $ac_status = 0; }; then
17529 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
17537 if test -n "$PKG_CONFIG"; then
17538 if test -n "$SQLITE3_LIBS"; then
17539 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
17541 if test -n "$PKG_CONFIG" && \
17542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
17543 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
17545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546 test $ac_status = 0; }; then
17547 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
17558 if test $pkg_failed = yes; then
17560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17561 _pkg_short_errors_supported=yes
17563 _pkg_short_errors_supported=no
17565 if test $_pkg_short_errors_supported = yes; then
17566 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
17568 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
17570 # Put the nasty error message in config.log where it belongs
17571 echo "$SQLITE3_PKG_ERRORS" >&5
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17574 $as_echo "no" >&6; }
17576 elif test $pkg_failed = untried; then
17579 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
17580 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582 $as_echo "yes" >&6; }
17587 if test x$ac_cv_sqlite3 = "xyes" ; then
17594 cat >>confdefs.h <<_ACEOF
17595 #define HAVE_SQLITE3 $HAVE_SQLITE3
17599 #====================================================================================
17600 # Determine if the processor can do clipping on float to int conversions.
17602 if test x$enable_cpu_clip != "xno" ; then
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
17604 $as_echo_n "checking processor clipping capabilities... " >&6; }
17605 if test "${ac_cv_c_clip_type+set}" = set; then :
17606 $as_echo_n "(cached) " >&6
17608 # Initialize to unknown
17609 ac_cv_c_clip_positive=unknown
17610 ac_cv_c_clip_negative=unknown
17613 if test $ac_cv_c_clip_positive = unknown ; then
17614 if test "$cross_compiling" = yes; then :
17615 ac_cv_c_clip_positive=unknown
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17621 #define _ISOC9X_SOURCE 1
17622 #define _ISOC99_SOURCE 1
17623 #define __USE_ISOC99 1
17624 #define __USE_ISOC9X 1
17630 fval = 1.0 * 0x7FFFFFFF ;
17631 for (k = 0 ; k < 100 ; k++)
17632 { ival = (lrint (fval)) >> 24 ;
17636 fval *= 1.2499999 ;
17643 if ac_fn_c_try_run "$LINENO"; then :
17644 ac_cv_c_clip_positive=yes
17646 ac_cv_c_clip_positive=no
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17649 conftest.$ac_objext conftest.beam conftest.$ac_ext
17653 if test "$cross_compiling" = yes; then :
17654 ac_cv_c_clip_negative=unknown
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17660 #define _ISOC9X_SOURCE 1
17661 #define _ISOC99_SOURCE 1
17662 #define __USE_ISOC99 1
17663 #define __USE_ISOC9X 1
17669 fval = -8.0 * 0x10000000 ;
17670 for (k = 0 ; k < 100 ; k++)
17671 { ival = (lrint (fval)) >> 24 ;
17675 fval *= 1.2499999 ;
17682 if ac_fn_c_try_run "$LINENO"; then :
17683 ac_cv_c_clip_negative=yes
17685 ac_cv_c_clip_negative=no
17687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17688 conftest.$ac_objext conftest.beam conftest.$ac_ext
17693 if test $ac_cv_c_clip_positive = yes ; then
17694 ac_cv_c_clip_positive=1
17696 ac_cv_c_clip_positive=0
17699 if test $ac_cv_c_clip_negative = yes ; then
17700 ac_cv_c_clip_negative=1
17702 ac_cv_c_clip_negative=0
17706 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
17708 ac_cv_c_clip_type="none"
17711 ac_cv_c_clip_type="positive"
17714 ac_cv_c_clip_type="negative"
17717 ac_cv_c_clip_type="both"
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
17725 $as_echo "$ac_cv_c_clip_type" >&6; }
17730 echo "checking processor clipping capabilities... disabled"
17731 ac_cv_c_clip_positive=0
17732 ac_cv_c_clip_negative=0
17736 cat >>confdefs.h <<_ACEOF
17737 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
17741 cat >>confdefs.h <<_ACEOF
17742 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
17746 #====================================================================================
17747 # Target OS specific stuff.
17749 OS_SPECIFIC_CFLAGS=""
17750 OS_SPECIFIC_LINKS=""
17756 darwin* | rhapsody*)
17758 OS_SPECIFIC_CFLAGS="-fpascal-strings -I/Developer/Headers/FlatCarbon"
17759 OS_SPECIFIC_LINKS="-framework CoreAudio"
17764 OS_SPECIFIC_LINKS="-lwinmm"
17769 cat >>confdefs.h <<_ACEOF
17770 #define OS_IS_WIN32 ${os_is_win32}
17774 cat >>confdefs.h <<_ACEOF
17775 #define OS_IS_MACOSX ${os_is_macosx}
17779 cat >>confdefs.h <<_ACEOF
17780 #define USE_WINDOWS_API ${use_windows_api}
17784 #====================================================================================
17789 if test x$enable_alsa != xno ; then
17790 for ac_header in alsa/asoundlib.h
17792 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
17793 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_ALSA_ASOUNDLIB_H 1
17802 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
17803 ALSA_LIBS="-lasound"
17808 #====================================================================================
17809 # Test for sanity when cross-compiling.
17811 if test x$cross_compiling = xyes ; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17813 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
17815 $as_echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&5
17817 $as_echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no " >&2;}
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chance of this working. Please contact the mantainer. " >&5
17819 $as_echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer. " >&2;}
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17821 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17824 if test $ac_cv_sizeof_short != 2 ; then
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17826 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2. " >&5
17828 $as_echo "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17830 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17833 if test $ac_cv_sizeof_int != 4 ; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17835 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4 " >&5
17837 $as_echo "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17839 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17842 if test $ac_cv_sizeof_float != 4 ; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17844 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4. " >&5
17846 $as_echo "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17848 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17851 if test $ac_cv_sizeof_double != 8 ; then
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17853 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8. " >&5
17855 $as_echo "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
17857 $as_echo "$as_me: WARNING: ******************************************************************" >&2;}
17860 if test x"$ac_cv_prog_HAVE_AUTOGEN" = "xno" ; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
17862 $as_echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
17863 touch tests/*.c tests/*.h
17866 #====================================================================================
17867 # Settings for the HTML documentation.
17869 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
17871 if test $prefix = "NONE" ; then
17872 htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
17874 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
17877 if test x$enable_bow_docs = "xyes" ; then
17878 HTML_BGCOLOUR="white"
17879 HTML_FGCOLOUR="black"
17881 HTML_BGCOLOUR="black"
17882 HTML_FGCOLOUR="white"
17885 #====================================================================================
17886 # Now use the information from the checking stage.
17891 if test x$ac_cv_c_compiler_gnu = xyes ; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=gnu99" >&5
17893 $as_echo_n "checking if $CC accepts -std=gnu99... " >&6; }
17894 ac_add_cflags__old_cflags="$CFLAGS"
17895 CFLAGS="$CFLAGS -std=gnu99"
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17904 puts("Hello, World!"); return 0;
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915 CFLAGS="$ac_add_cflags__old_cflags"
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17923 if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $CC" >&5
17926 $as_echo_n "checking for version of $CC... " >&6; }
17927 GCC_VERSION=`$CC -dumpversion`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VERSION" >&5
17929 $as_echo "$GCC_VERSION" >&6; }
17931 GCC_MINOR_VERSION=`echo $GCC_VERSION | sed "s/^[0-9]\+\.//" | sed "s/\..*//"`
17932 GCC_MAJOR_VERSION=`echo $GCC_VERSION | sed "s/\..*//"`
17941 if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x42" ; then
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
17943 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&5
17945 $as_echo "$as_me: WARNING: ** GCC version 4.2 warns about the inline keyword for no good **" >&2;}
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** reason but the maintainers do not see it as a bug. **" >&5
17947 $as_echo "$as_me: WARNING: ** reason but the maintainers do not see it as a bug. **" >&2;}
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&5
17949 $as_echo "$as_me: WARNING: ** See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33995 **" >&2;}
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&5
17951 $as_echo "$as_me: WARNING: ** Using -fgnu-inline to avoid this stupidity. **" >&2;}
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****************************************************************" >&5
17953 $as_echo "$as_me: WARNING: ****************************************************************" >&2;}
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
17955 $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
17956 ac_add_cflags__old_cflags="$CFLAGS"
17957 CFLAGS="$CFLAGS -fgnu89-inline"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17966 puts("Hello, World!"); return 0;
17971 if ac_fn_c_try_link "$LINENO"; then :
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17973 $as_echo "yes" >&6; }
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977 CFLAGS="$ac_add_cflags__old_cflags"
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17985 CFLAGS="$CFLAGS -Wall"
17986 CXXFLAGS="$CXXFLAGS -Wall"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra" >&5
17989 $as_echo_n "checking if $CC accepts -Wextra... " >&6; }
17990 ac_add_cflags__old_cflags="$CFLAGS"
17991 CFLAGS="$CFLAGS -Wextra"
17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17993 /* end confdefs.h. */
18000 puts("Hello, World!"); return 0;
18005 if ac_fn_c_try_link "$LINENO"; then :
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18007 $as_echo "yes" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18010 $as_echo "no" >&6; }
18011 CFLAGS="$ac_add_cflags__old_cflags"
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18019 ac_cpp='$CXXCPP $CPPFLAGS'
18020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra" >&5
18025 $as_echo_n "checking if $CXX accepts -Wextra... " >&6; }
18026 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
18027 CXXFLAGS="$CXXFLAGS -Wextra"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18036 puts("Hello, World!"); return 0;
18041 if ac_fn_cxx_try_link "$LINENO"; then :
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18043 $as_echo "yes" >&6; }
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18046 $as_echo "no" >&6; }
18047 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18054 ac_cpp='$CPP $CPPFLAGS'
18055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wdeclaration-after-statement" >&5
18061 $as_echo_n "checking if $CC accepts -Wdeclaration-after-statement... " >&6; }
18062 ac_add_cflags__old_cflags="$CFLAGS"
18063 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18072 puts("Hello, World!"); return 0;
18077 if ac_fn_c_try_link "$LINENO"; then :
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18079 $as_echo "yes" >&6; }
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18082 $as_echo "no" >&6; }
18083 CFLAGS="$ac_add_cflags__old_cflags"
18086 rm -f core conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpointer-arith" >&5
18090 $as_echo_n "checking if $CC accepts -Wpointer-arith... " >&6; }
18091 ac_add_cflags__old_cflags="$CFLAGS"
18092 CFLAGS="$CFLAGS -Wpointer-arith"
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h. */
18101 puts("Hello, World!"); return 0;
18106 if ac_fn_c_try_link "$LINENO"; then :
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18108 $as_echo "yes" >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 $as_echo "no" >&6; }
18112 CFLAGS="$ac_add_cflags__old_cflags"
18115 rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -funsigned-char" >&5
18119 $as_echo_n "checking if $CC accepts -funsigned-char... " >&6; }
18120 ac_add_cflags__old_cflags="$CFLAGS"
18121 CFLAGS="$CFLAGS -funsigned-char"
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18130 puts("Hello, World!"); return 0;
18135 if ac_fn_c_try_link "$LINENO"; then :
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18141 CFLAGS="$ac_add_cflags__old_cflags"
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18148 if test x$enable_gcc_werror = "xyes" ; then
18149 CFLAGS="-Werror $CFLAGS"
18150 CXXFLAGS="-Werror $CXXFLAGS"
18153 if test x$enable_test_coverage = "xyes" ; then
18154 # MN_ADD_CFLAGS([-ftest-coverage])
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -coverage" >&5
18156 $as_echo_n "checking if $CC accepts -coverage... " >&6; }
18157 ac_add_cflags__old_cflags="$CFLAGS"
18158 CFLAGS="$CFLAGS -coverage"
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18167 puts("Hello, World!"); return 0;
18172 if ac_fn_c_try_link "$LINENO"; then :
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174 $as_echo "yes" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18178 CFLAGS="$ac_add_cflags__old_cflags"
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18186 CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings "
18187 # -Wundef -Wmissing-declarations -Winline -Wconversion"
18188 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo "
18190 if test "x$enable_gcc_opt" = "xno" ; then
18191 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
18192 CFLAGS=$temp_CFLAGS
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
18194 $as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
18197 # OS specific tweaks.
18199 darwin* | rhapsody*)
18200 # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
18201 # System headers on these systems are broken.
18202 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall -pedantic//" | sed "s/-Wshadow//" | sed "s/-Waggregate-return//"`
18203 CFLAGS=$temp_CFLAGS
18204 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
18207 SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.linux"
18210 # Linker flag '-Wl,--out-implib' does not work with mingw cross compiler
18211 # so we don't use it here.
18212 SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def"
18214 if test x"$enable_shared" = xno ; then
18219 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(srcdir)/Symbols.os2"
18224 if test x$enable_gcc_pipe != "xno" ; then
18225 CFLAGS="$CFLAGS -pipe"
18232 cat >>confdefs.h <<_ACEOF
18233 #define WIN32_TARGET_DLL ${win32_target_dll}
18237 cat >>confdefs.h <<_ACEOF
18238 #define COMPILER_IS_GCC ${COMPILER_IS_GCC}
18242 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
18244 if test x"$CFLAGS" = x ; then
18245 echo "Error in configure script. CFLAGS has been screwed up."
18249 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
18251 #-------------------------------------------------------------------------------
18270 # Shave make automake/libtool output much less verbose and much more
18271 # readable. See : git://git.lespiau.name/shave
18274 # Check whether --enable-shave was given.
18275 if test "${enable_shave+set}" = set; then :
18276 enableval=$enable_shave;
18284 if test x"$enable_shave" = xyes; then
18290 AM_MAKEFLAGS='`test -z $V && echo -s`'
18293 # Extract the first word of "sed", so it can be a program name with args.
18294 set dummy sed; ac_word=$2
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18296 $as_echo_n "checking for $ac_word... " >&6; }
18297 if test "${ac_cv_prog_SED+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18300 if test -n "$SED"; then
18301 ac_cv_prog_SED="$SED" # Let the user override the test.
18303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18304 for as_dir in $PATH
18307 test -z "$as_dir" && as_dir=.
18308 for ac_exec_ext in '' $ac_executable_extensions; do
18309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18310 ac_cv_prog_SED="sed"
18311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18318 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
18321 SED=$ac_cv_prog_SED
18322 if test -n "$SED"; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
18324 $as_echo "$SED" >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18332 SHAVE_SAVED_LIBTOOL=$LIBTOOL
18333 LIBTOOL="${SHELL} ${shavedir}/shave-libtool '${SHAVE_SAVED_LIBTOOL}'"
18337 SHAVE_SAVED_CXX=$CXX
18339 SHAVE_SAVED_F77=$F77
18340 SHAVE_SAVED_OBJC=$OBJC
18341 CC="${SHELL} ${shavedir}/shave cc ${SHAVE_SAVED_CC}"
18342 CXX="${SHELL} ${shavedir}/shave cxx ${SHAVE_SAVED_CXX}"
18343 FC="${SHELL} ${shavedir}/shave fc ${SHAVE_SAVED_FC}"
18344 F77="${SHELL} ${shavedir}/shave f77 ${SHAVE_SAVED_F77}"
18345 OBJC="${SHELL} ${shavedir}/shave objc ${SHAVE_SAVED_OBJC}"
18361 ac_config_files="$ac_config_files shave shave-libtool src/sndfile.h src/Makefile src/GSM610/Makefile src/G72x/Makefile man/Makefile examples/Makefile tests/Makefile regtest/Makefile M4/Makefile doc/Makefile Win32/Makefile Octave/Makefile programs/Makefile doc/libsndfile.css Makefile libsndfile.spec sndfile.pc tests/test_wrapper.sh build-test-tarball.mk"
18363 cat >confcache <<\_ACEOF
18364 # This file is a shell script that caches the results of configure
18365 # tests run on this system so they can be shared between configure
18366 # scripts and configure runs, see configure's option --config-cache.
18367 # It is not useful on other systems. If it contains results you don't
18368 # want to keep, you may remove or edit it.
18370 # config.status only pays attention to the cache file if you give it
18371 # the --recheck option to rerun configure.
18373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18375 # following values.
18379 # The following way of writing the cache mishandles newlines in values,
18380 # but we know of no workaround that is simple, portable, and efficient.
18381 # So, we kill variables containing newlines.
18382 # Ultrix sh set writes to stderr and can't be redirected directly,
18383 # and sets the high bit in the cache file unless we assign to the vars.
18385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18386 eval ac_val=\$$ac_var
18390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18394 _ | IFS | as_nl) ;; #(
18395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18396 *) { eval $ac_var=; unset $ac_var;} ;;
18402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18403 *${as_nl}ac_space=\ *)
18404 # `set' does not quote correctly, so add quotes: double-quote
18405 # substitution turns \\\\ into \\, and sed turns \\ into \.
18408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18411 # `set' quotes correctly as required by POSIX, so do not add quotes.
18412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18426 if test -w "$cache_file"; then
18427 test "x$cache_file" != "x/dev/null" &&
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18429 $as_echo "$as_me: updating cache $cache_file" >&6;}
18430 cat confcache >$cache_file
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18433 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18439 # Let make expand exec_prefix.
18440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18442 DEFS=-DHAVE_CONFIG_H
18446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18447 # 1. Remove the extension, and $U if already installed.
18448 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18449 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18450 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18451 # will be set to the directory where LIBOBJS objects are built.
18452 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18453 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18455 LIBOBJS=$ac_libobjs
18457 LTLIBOBJS=$ac_ltlibobjs
18460 if test -n "$EXEEXT"; then
18462 am__EXEEXT_FALSE='#'
18464 am__EXEEXT_TRUE='#'
18468 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18469 as_fn_error "conditional \"AMDEP\" was never defined.
18470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18472 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18473 as_fn_error "conditional \"am__fastdepCC\" was never defined.
18474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18476 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18477 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18480 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18481 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
18482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18484 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
18485 as_fn_error "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
18486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18488 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
18489 as_fn_error "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
18490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18492 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18493 as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18496 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18497 as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18500 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
18501 as_fn_error "conditional \"BUILD_OCTAVE_MOD\" was never defined.
18502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18505 : ${CONFIG_STATUS=./config.status}
18507 ac_clean_files_save=$ac_clean_files
18508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18512 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18514 # Generated by $as_me.
18515 # Run this file to recreate the current configuration.
18516 # Compiler output produced by configure, useful for debugging
18517 # configure, is in config.log if it exists.
18520 ac_cs_recheck=false
18523 SHELL=\${CONFIG_SHELL-$SHELL}
18526 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18527 ## -------------------- ##
18528 ## M4sh Initialization. ##
18529 ## -------------------- ##
18531 # Be more Bourne compatible
18532 DUALCASE=1; export DUALCASE # for MKS sh
18533 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18536 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18537 # is contrary to our usage. Disable this feature.
18538 alias -g '${1+"$@"}'='"$@"'
18539 setopt NO_GLOB_SUBST
18541 case `(set -o) 2>/dev/null` in #(
18553 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18554 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18557 # Prefer a ksh shell builtin over an external printf program on Solaris,
18558 # but without wasting forks for bash or zsh.
18559 if test -z "$BASH_VERSION$ZSH_VERSION" \
18560 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18561 as_echo='print -r --'
18562 as_echo_n='print -rn --'
18563 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18564 as_echo='printf %s\n'
18565 as_echo_n='printf %s'
18567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18568 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18569 as_echo_n='/usr/ucb/echo -n'
18571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18572 as_echo_n_body='eval
18576 expr "X$arg" : "X\\(.*\\)$as_nl";
18577 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18579 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18581 export as_echo_n_body
18582 as_echo_n='sh -c $as_echo_n_body as_echo'
18584 export as_echo_body
18585 as_echo='sh -c $as_echo_body as_echo'
18588 # The user is always right.
18589 if test "${PATH_SEPARATOR+set}" != set; then
18591 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18592 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18599 # We need space, tab and new line, in precisely that order. Quoting is
18600 # there to prevent editors from complaining about space-tab.
18601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18602 # splitting by setting IFS to empty value.)
18605 # Find who we are. Look in the path if we contain no directory separator.
18607 *[\\/]* ) as_myself=$0 ;;
18608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18609 for as_dir in $PATH
18612 test -z "$as_dir" && as_dir=.
18613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18619 # We did not find ourselves, most probably we were run as `sh COMMAND'
18620 # in which case we are not to be found in the path.
18621 if test "x$as_myself" = x; then
18624 if test ! -f "$as_myself"; then
18625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18629 # Unset variables that we do not need and which cause bugs (e.g. in
18630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18631 # suppresses any "Segmentation fault" message there. '((' could
18632 # trigger a bug in pdksh 5.2.14.
18633 for as_var in BASH_ENV ENV MAIL MAILPATH
18634 do eval test x\${$as_var+set} = xset \
18635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18651 # as_fn_error ERROR [LINENO LOG_FD]
18652 # ---------------------------------
18653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18655 # script with status $?, using 1 if that was 0.
18658 as_status=$?; test $as_status -eq 0 && as_status=1
18660 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18663 $as_echo "$as_me: error: $1" >&2
18664 as_fn_exit $as_status
18668 # as_fn_set_status STATUS
18669 # -----------------------
18670 # Set $? to STATUS, without forking.
18671 as_fn_set_status ()
18674 } # as_fn_set_status
18676 # as_fn_exit STATUS
18677 # -----------------
18678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18682 as_fn_set_status $1
18688 # Portably unset VAR.
18691 { eval $1=; unset $1;}
18693 as_unset=as_fn_unset
18694 # as_fn_append VAR VALUE
18695 # ----------------------
18696 # Append the text in VALUE to the end of the definition contained in VAR. Take
18697 # advantage of any shell optimizations that allow amortized linear growth over
18698 # repeated appends, instead of the typical quadratic growth present in naive
18700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18701 eval 'as_fn_append ()
18712 # as_fn_arith ARG...
18713 # ------------------
18714 # Perform arithmetic evaluation on the ARGs, and store the result in the
18715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18716 # must be portable across $(()) and expr.
18717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18718 eval 'as_fn_arith ()
18725 as_val=`expr "$@" || test $? -eq 1`
18730 if expr a : '\(a\)' >/dev/null 2>&1 &&
18731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18738 as_basename=basename
18743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18749 as_me=`$as_basename -- "$0" ||
18750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18751 X"$0" : 'X\(//\)$' \| \
18752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18754 sed '/^.*\/\([^/][^/]*\)\/*$/{
18768 # Avoid depending upon Character Ranges.
18769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18772 as_cr_digits='0123456789'
18773 as_cr_alnum=$as_cr_Letters$as_cr_digits
18775 ECHO_C= ECHO_N= ECHO_T=
18776 case `echo -n x` in #(((((
18778 case `echo 'xy\c'` in
18779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18788 rm -f conf$$ conf$$.exe conf$$.file
18789 if test -d conf$$.dir; then
18790 rm -f conf$$.dir/conf$$.file
18793 mkdir conf$$.dir 2>/dev/null
18795 if (echo >conf$$.file) 2>/dev/null; then
18796 if ln -s conf$$.file conf$$ 2>/dev/null; then
18798 # ... but there are two gotchas:
18799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18801 # In both cases, we have to default to `cp -p'.
18802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18804 elif ln conf$$.file conf$$ 2>/dev/null; then
18812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18813 rmdir conf$$.dir 2>/dev/null
18818 # Create "$as_dir" as a directory, including parents if necessary.
18823 -*) as_dir=./$as_dir;;
18825 test -d "$as_dir" || eval $as_mkdir_p || {
18829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18830 *) as_qdir=$as_dir;;
18832 as_dirs="'$as_qdir' $as_dirs"
18833 as_dir=`$as_dirname -- "$as_dir" ||
18834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18835 X"$as_dir" : 'X\(//\)[^/]' \| \
18836 X"$as_dir" : 'X\(//\)$' \| \
18837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18838 $as_echo X"$as_dir" |
18839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18843 /^X\(\/\/\)[^/].*/{
18856 test -d "$as_dir" && break
18858 test -z "$as_dirs" || eval "mkdir $as_dirs"
18859 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18863 if mkdir -p . 2>/dev/null; then
18864 as_mkdir_p='mkdir -p "$as_dir"'
18866 test -d ./-p && rmdir ./-p
18870 if test -x / >/dev/null 2>&1; then
18871 as_test_x='test -x'
18873 if ls -dL / >/dev/null 2>&1; then
18880 if test -d "$1"; then
18886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18887 ???[sx]*):;;*)false;;esac;fi
18891 as_executable_p=$as_test_x
18893 # Sed expression to map a string onto a valid CPP name.
18894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18896 # Sed expression to map a string onto a valid variable name.
18897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18901 ## ----------------------------------- ##
18902 ## Main body of $CONFIG_STATUS script. ##
18903 ## ----------------------------------- ##
18905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18908 # Save the log message, to keep $0 and so on meaningful, and to
18909 # report actual input values of CONFIG_FILES etc. instead of their
18910 # values after options handling.
18912 This file was extended by libsndfile $as_me 1.0.21, which was
18913 generated by GNU Autoconf 2.64. Invocation command line was
18915 CONFIG_FILES = $CONFIG_FILES
18916 CONFIG_HEADERS = $CONFIG_HEADERS
18917 CONFIG_LINKS = $CONFIG_LINKS
18918 CONFIG_COMMANDS = $CONFIG_COMMANDS
18921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18926 case $ac_config_files in *"
18927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18930 case $ac_config_headers in *"
18931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18936 # Files that config.status was made for.
18937 config_files="$ac_config_files"
18938 config_headers="$ac_config_headers"
18939 config_commands="$ac_config_commands"
18943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18945 \`$as_me' instantiates files and other configuration actions
18946 from templates according to the current configuration. Unless the files
18947 and actions are specified as TAGs, all are instantiated by default.
18949 Usage: $0 [OPTION]... [TAG]...
18951 -h, --help print this help, then exit
18952 -V, --version print version number and configuration settings, then exit
18953 -q, --quiet, --silent
18954 do not print progress messages
18955 -d, --debug don't remove temporary files
18956 --recheck update $as_me by reconfiguring in the same conditions
18957 --file=FILE[:TEMPLATE]
18958 instantiate the configuration file FILE
18959 --header=FILE[:TEMPLATE]
18960 instantiate the configuration header FILE
18962 Configuration files:
18965 Configuration headers:
18968 Configuration commands:
18971 Report bugs to <erikd@mega-nerd.com>."
18974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18976 libsndfile config.status 1.0.21
18977 configured by $0, generated by GNU Autoconf 2.64,
18978 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18980 Copyright (C) 2009 Free Software Foundation, Inc.
18981 This config.status script is free software; the Free Software Foundation
18982 gives unlimited permission to copy, distribute and modify it."
18989 test -n "\$AWK" || AWK=awk
18992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18993 # The default lists apply if the user does not specify any file.
18999 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19011 # Handling of the options.
19012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19015 $as_echo "$ac_cs_version"; exit ;;
19016 --debug | --debu | --deb | --de | --d | -d )
19018 --file | --fil | --fi | --f )
19021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19023 as_fn_append CONFIG_FILES " '$ac_optarg'"
19024 ac_need_defaults=false;;
19025 --header | --heade | --head | --hea )
19028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19030 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19031 ac_need_defaults=false;;
19033 # Conflict between --help and --header
19034 as_fn_error "ambiguous option: \`$1'
19035 Try \`$0 --help' for more information.";;
19036 --help | --hel | -h )
19037 $as_echo "$ac_cs_usage"; exit ;;
19038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19042 # This is an error.
19043 -*) as_fn_error "unrecognized option: \`$1'
19044 Try \`$0 --help' for more information." ;;
19046 *) as_fn_append ac_config_targets " $1"
19047 ac_need_defaults=false ;;
19053 ac_configure_extra_args=
19055 if $ac_cs_silent; then
19057 ac_configure_extra_args="$ac_configure_extra_args --silent"
19061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062 if \$ac_cs_recheck; then
19063 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19066 CONFIG_SHELL='$SHELL'
19067 export CONFIG_SHELL
19072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19077 ## Running $as_me. ##
19083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19090 # The HP-UX ksh and POSIX shell print the target directory to stdout
19091 # if CDPATH is set.
19092 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19094 sed_quote_subst='$sed_quote_subst'
19095 double_quote_subst='$double_quote_subst'
19096 delay_variable_subst='$delay_variable_subst'
19097 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19098 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19099 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19100 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19101 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19102 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19103 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19104 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19105 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19106 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19107 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19108 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19109 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19110 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19111 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19112 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19113 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19114 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19115 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19116 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19117 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19118 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19119 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19120 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19121 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19122 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19123 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19124 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19125 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19126 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19127 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19128 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19129 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19130 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19131 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19132 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19133 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19134 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19135 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19136 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19137 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19138 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19139 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19140 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19141 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19142 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19143 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19144 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19145 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19146 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19147 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19148 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19149 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19150 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19151 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19152 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19153 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19154 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19155 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19156 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19157 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19158 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19159 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19160 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19161 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19162 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19163 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19164 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19165 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19166 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19167 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19168 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19169 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19170 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19171 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19172 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19173 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19174 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19175 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19176 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19177 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19178 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19179 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19180 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19181 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19182 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19183 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19184 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19185 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19186 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19187 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19188 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19189 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19190 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19191 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19192 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19193 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19194 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19195 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19196 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19197 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19198 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19199 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19200 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19201 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19202 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19203 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19204 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19205 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19206 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19207 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19208 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19209 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19210 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19211 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19212 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19213 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19214 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19215 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19216 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19217 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19218 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19219 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19220 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19221 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19222 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19223 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19224 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19225 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19226 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19227 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19228 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19229 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19230 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19231 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19232 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19233 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19234 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19235 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19236 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19237 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19238 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19239 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19240 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19241 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19242 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19243 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19244 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19245 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19246 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19247 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19248 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19249 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19250 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19251 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19252 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19253 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19254 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19255 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19256 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19257 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19258 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19259 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19260 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19261 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19262 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19263 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19264 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19265 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19266 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19267 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19270 LTCFLAGS='$LTCFLAGS'
19271 compiler='$compiler_DEFAULT'
19273 # Quote evaled strings.
19285 deplibs_check_method \
19294 lt_cv_sys_global_symbol_pipe \
19295 lt_cv_sys_global_symbol_to_cdecl \
19296 lt_cv_sys_global_symbol_to_c_name_address \
19297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19300 lt_prog_compiler_no_builtin_flag \
19301 lt_prog_compiler_wl \
19302 lt_prog_compiler_pic \
19303 lt_prog_compiler_static \
19304 lt_cv_prog_compiler_c_o \
19312 export_dynamic_flag_spec \
19313 whole_archive_flag_spec \
19314 compiler_needs_object \
19316 allow_undefined_flag \
19317 no_undefined_flag \
19318 hardcode_libdir_flag_spec \
19319 hardcode_libdir_flag_spec_ld \
19320 hardcode_libdir_separator \
19325 variables_saved_for_relink \
19327 library_names_spec \
19332 compiler_lib_search_dirs \
19337 compiler_lib_search_path \
19340 lt_prog_compiler_no_builtin_flag_CXX \
19341 lt_prog_compiler_wl_CXX \
19342 lt_prog_compiler_pic_CXX \
19343 lt_prog_compiler_static_CXX \
19344 lt_cv_prog_compiler_c_o_CXX \
19345 export_dynamic_flag_spec_CXX \
19346 whole_archive_flag_spec_CXX \
19347 compiler_needs_object_CXX \
19349 allow_undefined_flag_CXX \
19350 no_undefined_flag_CXX \
19351 hardcode_libdir_flag_spec_CXX \
19352 hardcode_libdir_flag_spec_ld_CXX \
19353 hardcode_libdir_separator_CXX \
19354 fix_srcfile_path_CXX \
19355 exclude_expsyms_CXX \
19356 include_expsyms_CXX \
19357 file_list_spec_CXX \
19358 compiler_lib_search_dirs_CXX \
19359 predep_objects_CXX \
19360 postdep_objects_CXX \
19363 compiler_lib_search_path_CXX; do
19364 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19365 *[\\\\\\\`\\"\\\$]*)
19366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19374 # Double-quote double-evaled strings.
19375 for var in reload_cmds \
19376 old_postinstall_cmds \
19377 old_postuninstall_cmds \
19379 extract_expsyms_cmds \
19380 old_archive_from_new_cmds \
19381 old_archive_from_expsyms_cmds \
19383 archive_expsym_cmds \
19385 module_expsym_cmds \
19386 export_symbols_cmds \
19389 postuninstall_cmds \
19391 sys_lib_search_path_spec \
19392 sys_lib_dlsearch_path_spec \
19393 old_archive_cmds_CXX \
19394 old_archive_from_new_cmds_CXX \
19395 old_archive_from_expsyms_cmds_CXX \
19397 archive_expsym_cmds_CXX \
19399 module_expsym_cmds_CXX \
19400 export_symbols_cmds_CXX \
19401 prelink_cmds_CXX; do
19402 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19403 *[\\\\\\\`\\"\\\$]*)
19404 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19407 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19412 # Fix-up fallback echo if it was mangled by the above quoting rules.
19414 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19418 ac_aux_dir='$ac_aux_dir'
19419 xsi_shell='$xsi_shell'
19420 lt_shell_append='$lt_shell_append'
19422 # See if we are running on zsh, and set the options which allow our
19423 # commands through without removal of \ escapes INIT.
19424 if test -n "\${ZSH_VERSION+set}" ; then
19425 setopt NO_GLOB_SUBST
19431 TIMESTAMP='$TIMESTAMP'
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19444 # Handling of arguments.
19445 for ac_config_target in $ac_config_targets
19447 case $ac_config_target in
19448 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19449 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19450 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19451 "shave") CONFIG_FILES="$CONFIG_FILES shave" ;;
19452 "shave-libtool") CONFIG_FILES="$CONFIG_FILES shave-libtool" ;;
19453 "src/sndfile.h") CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
19454 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19455 "src/GSM610/Makefile") CONFIG_FILES="$CONFIG_FILES src/GSM610/Makefile" ;;
19456 "src/G72x/Makefile") CONFIG_FILES="$CONFIG_FILES src/G72x/Makefile" ;;
19457 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19458 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19459 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19460 "regtest/Makefile") CONFIG_FILES="$CONFIG_FILES regtest/Makefile" ;;
19461 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
19462 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19463 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
19464 "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
19465 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
19466 "doc/libsndfile.css") CONFIG_FILES="$CONFIG_FILES doc/libsndfile.css" ;;
19467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19468 "libsndfile.spec") CONFIG_FILES="$CONFIG_FILES libsndfile.spec" ;;
19469 "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
19470 "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
19471 "build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES build-test-tarball.mk" ;;
19473 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19478 # If the user did not use the arguments to specify the items to instantiate,
19479 # then the envvar interface is used. Set only those that are not.
19480 # We use the long form for the default assignment because of an extremely
19481 # bizarre bug on SunOS 4.1.3.
19482 if $ac_need_defaults; then
19483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19488 # Have a temporary directory for convenience. Make it in the build tree
19489 # simply because there is no reason against having it here, and in addition,
19490 # creating and moving files from /tmp can sometimes cause problems.
19491 # Hook for its removal unless debugging.
19492 # Note that there is a small window in which the directory will not be cleaned:
19493 # after its creation but before its name has been assigned to `$tmp'.
19497 trap 'exit_status=$?
19498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19500 trap 'as_fn_exit 1' 1 2 13 15
19502 # Create a (secure) tmp directory for tmp files.
19505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19506 test -n "$tmp" && test -d "$tmp"
19509 tmp=./conf$$-$RANDOM
19510 (umask 077 && mkdir "$tmp")
19511 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19513 # Set up the scripts for CONFIG_FILES section.
19514 # No need to generate them if there are no CONFIG_FILES.
19515 # This happens for instance with `./config.status config.h'.
19516 if test -n "$CONFIG_FILES"; then
19519 ac_cr=`echo X | tr X '\015'`
19520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19521 # But we know of no other shell where ac_cr would be empty at this
19522 # point, so we can use a bashism as a fallback.
19523 if test "x$ac_cr" = x; then
19524 eval ac_cr=\$\'\\r\'
19526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19530 ac_cs_awk_cr=$ac_cr
19533 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19538 echo "cat >conf$$subs.awk <<_ACEOF" &&
19539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19541 } >conf$$subs.sh ||
19542 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19545 for ac_last_try in false false false false false :; do
19546 . ./conf$$subs.sh ||
19547 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19550 if test $ac_delim_n = $ac_delim_num; then
19552 elif $ac_last_try; then
19553 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19558 rm -f conf$$subs.sh
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19565 s/^/S["/; s/!.*/"]=/
19575 s/\(.\{148\}\).*/\1/
19577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19589 s/\(.\{148\}\).*/\1/
19591 s/["\\]/\\&/g; s/^/"/; s/$/"/
19595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19600 ' <conf$$subs.awk | sed '
19605 ' >>$CONFIG_STATUS || ac_write_fail=1
19606 rm -f conf$$subs.awk
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19609 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19610 for (key in S) S_is_set[key] = 1
19616 nfields = split(line, field, "@")
19618 len = length(field[1])
19619 for (i = 2; i < nfields; i++) {
19621 keylen = length(key)
19622 if (S_is_set[key]) {
19624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19625 len += length(value) + length(field[++i])
19636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19638 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19641 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19642 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19645 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19646 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19647 # trailing colons and then remove the whole line if VPATH becomes empty
19648 # (actually we leave an empty line to preserve line numbers).
19649 if test "x$srcdir" = x.; then
19650 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19651 s/:*\$(srcdir):*/:/
19652 s/:*\${srcdir}:*/:/
19654 s/^\([^=]*=[ ]*\):*/\1/
19660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19661 fi # test -n "$CONFIG_FILES"
19663 # Set up the scripts for CONFIG_HEADERS section.
19664 # No need to generate them if there are no CONFIG_HEADERS.
19665 # This happens for instance with `./config.status Makefile'.
19666 if test -n "$CONFIG_HEADERS"; then
19667 cat >"$tmp/defines.awk" <<\_ACAWK ||
19671 # Transform confdefs.h into an awk script `defines.awk', embedded as
19672 # here-document in config.status, that substitutes the proper values into
19673 # config.h.in to produce config.h.
19675 # Create a delimiter string that does not exist in confdefs.h, to ease
19676 # handling of long lines.
19678 for ac_last_try in false false :; do
19679 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19680 if test -z "$ac_t"; then
19682 elif $ac_last_try; then
19683 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19689 # For the awk script, D is an array of macro values keyed by name,
19690 # likewise P contains macro parameters if any. Preserve backslash
19691 # newline sequences.
19693 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19695 s/.\{148\}/&'"$ac_delim"'/g
19698 s/^[ ]*#[ ]*define[ ][ ]*/ /
19705 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19707 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19711 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19712 D["\1"]=" \3\\\\\\n"\\/p
19714 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19719 s/.\{148\}/&'"$ac_delim"'/g
19724 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19727 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19729 ' <confdefs.h | sed '
19730 s/'"$ac_delim"'/"\\\
19731 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19734 for (key in D) D_is_set[key] = 1
19737 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19739 split(line, arg, " ")
19740 if (arg[1] == "#") {
19744 defundef = substr(arg[1], 2)
19747 split(mac1, mac2, "(") #)
19749 prefix = substr(line, 1, index(line, defundef) - 1)
19750 if (D_is_set[macro]) {
19751 # Preserve the white space surrounding the "#".
19752 print prefix "define", macro P[macro] D[macro]
19755 # Replace #undef with comments. This is necessary, for example,
19756 # in the case of _POSIX_SOURCE, which is predefined and required
19757 # on some systems where configure will not decide to define it.
19758 if (defundef == "undef") {
19759 print "/*", prefix defundef, macro, "*/"
19767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19768 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19769 fi # test -n "$CONFIG_HEADERS"
19772 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19777 :[FHLC]) ac_mode=$ac_tag; continue;;
19779 case $ac_mode$ac_tag in
19781 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19782 :[FH]-) ac_tag=-:-;;
19783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19800 -) ac_f="$tmp/stdin";;
19801 *) # Look for the file first in the build tree, then in the source tree
19802 # (if the path is not absolute). The absolute path cannot be DOS-style,
19803 # because $ac_f cannot contain `:'.
19807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19809 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19811 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19812 as_fn_append ac_file_inputs " '$ac_f'"
19815 # Let's still pretend it is `configure' which instantiates (i.e., don't
19816 # use $as_me), people would be surprised to read:
19817 # /* config.h. Generated by config.status. */
19818 configure_input='Generated from '`
19819 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19821 if test x"$ac_file" != x-; then
19822 configure_input="$ac_file. $configure_input"
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19824 $as_echo "$as_me: creating $ac_file" >&6;}
19826 # Neutralize special characters interpreted by sed in replacement strings.
19827 case $configure_input in #(
19828 *\&* | *\|* | *\\* )
19829 ac_sed_conf_input=`$as_echo "$configure_input" |
19830 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19831 *) ac_sed_conf_input=$configure_input;;
19835 *:-:* | *:-) cat >"$tmp/stdin" \
19836 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19841 ac_dir=`$as_dirname -- "$ac_file" ||
19842 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19843 X"$ac_file" : 'X\(//\)[^/]' \| \
19844 X"$ac_file" : 'X\(//\)$' \| \
19845 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19846 $as_echo X"$ac_file" |
19847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19851 /^X\(\/\/\)[^/].*/{
19864 as_dir="$ac_dir"; as_fn_mkdir_p
19868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19870 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19871 # A ".." for each directory in $ac_dir_suffix.
19872 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19873 case $ac_top_builddir_sub in
19874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19878 ac_abs_top_builddir=$ac_pwd
19879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19880 # for backward compatibility:
19881 ac_top_builddir=$ac_top_build_prefix
19884 .) # We are building in place.
19886 ac_top_srcdir=$ac_top_builddir_sub
19887 ac_abs_top_srcdir=$ac_pwd ;;
19888 [\\/]* | ?:[\\/]* ) # Absolute name.
19889 ac_srcdir=$srcdir$ac_dir_suffix;
19890 ac_top_srcdir=$srcdir
19891 ac_abs_top_srcdir=$srcdir ;;
19892 *) # Relative name.
19893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19894 ac_top_srcdir=$ac_top_build_prefix$srcdir
19895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19908 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19910 ac_MKDIR_P=$MKDIR_P
19912 [\\/$]* | ?:[\\/]* ) ;;
19913 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19918 # If the template does not know about datarootdir, expand it.
19919 # FIXME: This hack should be removed a few years after 2.60.
19920 ac_datarootdir_hack=; ac_datarootdir_seen=
19931 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19932 *datarootdir*) ac_datarootdir_seen=yes;;
19933 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19935 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19938 ac_datarootdir_hack='
19939 s&@datadir@&$datadir&g
19940 s&@docdir@&$docdir&g
19941 s&@infodir@&$infodir&g
19942 s&@localedir@&$localedir&g
19943 s&@mandir@&$mandir&g
19944 s&\\\${datarootdir}&$datarootdir&g' ;;
19948 # Neutralize VPATH when `$srcdir' = `.'.
19949 # Shell code in configure.ac might set extrasub.
19950 # FIXME: do we really want to maintain this feature?
19951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19952 ac_sed_extra="$ac_vpsub
19955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19958 s|@configure_input@|$ac_sed_conf_input|;t t
19959 s&@top_builddir@&$ac_top_builddir_sub&;t t
19960 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19961 s&@srcdir@&$ac_srcdir&;t t
19962 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19963 s&@top_srcdir@&$ac_top_srcdir&;t t
19964 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19965 s&@builddir@&$ac_builddir&;t t
19966 s&@abs_builddir@&$ac_abs_builddir&;t t
19967 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19968 s&@INSTALL@&$ac_INSTALL&;t t
19969 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19970 $ac_datarootdir_hack
19972 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19973 || as_fn_error "could not create $ac_file" "$LINENO" 5
19975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19976 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19979 which seems to be undefined. Please make sure it is defined." >&5
19980 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19981 which seems to be undefined. Please make sure it is defined." >&2;}
19985 -) cat "$tmp/out" && rm -f "$tmp/out";;
19986 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19988 || as_fn_error "could not create $ac_file" "$LINENO" 5
19994 if test x"$ac_file" != x-; then
19996 $as_echo "/* $configure_input */" \
19997 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19998 } >"$tmp/config.h" \
19999 || as_fn_error "could not create $ac_file" "$LINENO" 5
20000 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20002 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20005 mv "$tmp/config.h" "$ac_file" \
20006 || as_fn_error "could not create $ac_file" "$LINENO" 5
20009 $as_echo "/* $configure_input */" \
20010 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20011 || as_fn_error "could not create -" "$LINENO" 5
20013 # Compute "$ac_file"'s index in $config_headers.
20016 for _am_header in $config_headers :; do
20017 case $_am_header in
20018 $_am_arg | $_am_arg:* )
20021 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20024 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20025 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20026 X"$_am_arg" : 'X\(//\)[^/]' \| \
20027 X"$_am_arg" : 'X\(//\)$' \| \
20028 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20029 $as_echo X"$_am_arg" |
20030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20034 /^X\(\/\/\)[^/].*/{
20046 s/.*/./; q'`/stamp-h$_am_stamp_count
20049 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20050 $as_echo "$as_me: executing $ac_file commands" >&6;}
20055 case $ac_file$ac_mode in
20056 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20057 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20058 # are listed without --file. Let's play safe and only enable the eval
20059 # if we detect the quoting.
20060 case $CONFIG_FILES in
20061 *\'*) eval set x "$CONFIG_FILES" ;;
20062 *) set x $CONFIG_FILES ;;
20067 # Strip MF so we end up with the name of the file.
20068 mf=`echo "$mf" | sed -e 's/:.*$//'`
20069 # Check whether this is an Automake generated Makefile or not.
20070 # We used to match only the files named `Makefile.in', but
20071 # some people rename them; so instead we look at the file content.
20072 # Grep'ing the first line is not enough: some people post-process
20073 # each Makefile.in and add a new line on top of each file to say so.
20074 # Grep'ing the whole file is not good either: AIX grep has a line
20075 # limit of 2048, but all sed's we know have understand at least 4000.
20076 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20077 dirpart=`$as_dirname -- "$mf" ||
20078 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20079 X"$mf" : 'X\(//\)[^/]' \| \
20080 X"$mf" : 'X\(//\)$' \| \
20081 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20087 /^X\(\/\/\)[^/].*/{
20103 # Extract the definition of DEPDIR, am__include, and am__quote
20104 # from the Makefile without running `make'.
20105 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20106 test -z "$DEPDIR" && continue
20107 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20108 test -z "am__include" && continue
20109 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20110 # When using ansi2knr, U may be empty or an underscore; expand it
20111 U=`sed -n 's/^U = //p' < "$mf"`
20112 # Find all dependency output files, they are included files with
20113 # $(DEPDIR) in their names. We invoke sed twice because it is the
20114 # simplest approach to changing $(DEPDIR) to its actual value in the
20116 for file in `sed -n "
20117 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20118 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20119 # Make sure the directory exists.
20120 test -f "$dirpart/$file" && continue
20121 fdir=`$as_dirname -- "$file" ||
20122 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20123 X"$file" : 'X\(//\)[^/]' \| \
20124 X"$file" : 'X\(//\)$' \| \
20125 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20126 $as_echo X"$file" |
20127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20131 /^X\(\/\/\)[^/].*/{
20144 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20145 # echo "creating $dirpart/$file"
20146 echo '# dummy' > "$dirpart/$file"
20153 # See if we are running on zsh, and set the options which allow our
20154 # commands through without removal of \ escapes.
20155 if test -n "${ZSH_VERSION+set}" ; then
20156 setopt NO_GLOB_SUBST
20159 cfgfile="${ofile}T"
20160 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20163 cat <<_LT_EOF >> "$cfgfile"
20166 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20167 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20172 # 2006, 2007, 2008 Free Software Foundation, Inc.
20173 # Written by Gordon Matzigkeit, 1996
20175 # This file is part of GNU Libtool.
20177 # GNU Libtool is free software; you can redistribute it and/or
20178 # modify it under the terms of the GNU General Public License as
20179 # published by the Free Software Foundation; either version 2 of
20180 # the License, or (at your option) any later version.
20182 # As a special exception to the GNU General Public License,
20183 # if you distribute this file as part of a program or library that
20184 # is built using GNU Libtool, you may include this file under the
20185 # same distribution terms that you use for the rest of that program.
20187 # GNU Libtool is distributed in the hope that it will be useful,
20188 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20190 # GNU General Public License for more details.
20192 # You should have received a copy of the GNU General Public License
20193 # along with GNU Libtool; see the file COPYING. If not, a copy
20194 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20195 # obtained by writing to the Free Software Foundation, Inc.,
20196 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20199 # The names of the tagged configurations supported by this script.
20200 available_tags="CXX "
20202 # ### BEGIN LIBTOOL CONFIG
20204 # Which release of libtool.m4 was used?
20205 macro_version=$macro_version
20206 macro_revision=$macro_revision
20208 # Whether or not to build shared libraries.
20209 build_libtool_libs=$enable_shared
20211 # Whether or not to build static libraries.
20212 build_old_libs=$enable_static
20214 # What type of objects to build.
20217 # Whether or not to optimize for fast installation.
20218 fast_install=$enable_fast_install
20221 host_alias=$host_alias
20225 # The build system.
20226 build_alias=$build_alias
20230 # A sed program that does not truncate output.
20233 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20234 Xsed="\$SED -e 1s/^X//"
20236 # A grep program that handles long lines.
20242 # A literal string matcher.
20245 # A BSD- or MS-compatible name lister.
20248 # Whether we need soft or hard links.
20251 # What is the maximum length of a command?
20252 max_cmd_len=$max_cmd_len
20254 # Object file suffix (normally "o").
20257 # Executable file suffix (normally "").
20260 # whether the shell understands "unset".
20263 # turn spaces into newlines.
20266 # turn newlines into spaces.
20269 # How to create reloadable object files.
20270 reload_flag=$lt_reload_flag
20271 reload_cmds=$lt_reload_cmds
20273 # An object symbol dumper.
20274 OBJDUMP=$lt_OBJDUMP
20276 # Method to check whether dependent libraries are shared objects.
20277 deplibs_check_method=$lt_deplibs_check_method
20279 # Command to use when deplibs_check_method == "file_magic".
20280 file_magic_cmd=$lt_file_magic_cmd
20284 AR_FLAGS=$lt_AR_FLAGS
20286 # A symbol stripping program.
20289 # Commands used to install an old-style archive.
20291 old_postinstall_cmds=$lt_old_postinstall_cmds
20292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20297 # LTCC compiler flags.
20298 LTCFLAGS=$lt_CFLAGS
20300 # Take the output of nm and produce a listing of raw symbols and C names.
20301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20303 # Transform the output of nm in a proper C declaration.
20304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20306 # Transform the output of nm in a C name address pair.
20307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20309 # Transform the output of nm in a C name address pair when lib prefix is needed.
20310 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20312 # The name of the directory that contains temporary libtool files.
20315 # Shell to use when invoking shell scripts.
20318 # An echo program that does not interpret backslashes.
20321 # Used to examine libraries when file_magic_cmd begins with "file".
20322 MAGIC_CMD=$MAGIC_CMD
20324 # Must we lock files when doing compilation?
20325 need_locks=$lt_need_locks
20327 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20328 DSYMUTIL=$lt_DSYMUTIL
20330 # Tool to change global to local symbols on Mac OS X.
20333 # Tool to manipulate fat objects and archives on Mac OS X.
20336 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20339 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20340 OTOOL64=$lt_OTOOL64
20342 # Old archive suffix (normally "a").
20345 # Shared library suffix (normally ".so").
20346 shrext_cmds=$lt_shrext_cmds
20348 # The commands to extract the exported symbol list from a shared archive.
20349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20351 # Variables whose values should be saved in libtool wrapper scripts and
20352 # restored at link time.
20353 variables_saved_for_relink=$lt_variables_saved_for_relink
20355 # Do we need the "lib" prefix for modules?
20356 need_lib_prefix=$need_lib_prefix
20358 # Do we need a version for libraries?
20359 need_version=$need_version
20361 # Library versioning type.
20362 version_type=$version_type
20364 # Shared library runtime path variable.
20365 runpath_var=$runpath_var
20367 # Shared library path variable.
20368 shlibpath_var=$shlibpath_var
20370 # Is shlibpath searched before the hard-coded library search path?
20371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20373 # Format of library name prefix.
20374 libname_spec=$lt_libname_spec
20376 # List of archive names. First name is the real one, the rest are links.
20377 # The last name is the one that the linker finds with -lNAME
20378 library_names_spec=$lt_library_names_spec
20380 # The coded name of the library, if different from the real name.
20381 soname_spec=$lt_soname_spec
20383 # Command to use after installation of a shared archive.
20384 postinstall_cmds=$lt_postinstall_cmds
20386 # Command to use after uninstallation of a shared archive.
20387 postuninstall_cmds=$lt_postuninstall_cmds
20389 # Commands used to finish a libtool library installation in a directory.
20390 finish_cmds=$lt_finish_cmds
20392 # As "finish_cmds", except a single script fragment to be evaled but
20394 finish_eval=$lt_finish_eval
20396 # Whether we should hardcode library paths into libraries.
20397 hardcode_into_libs=$hardcode_into_libs
20399 # Compile-time system search path for libraries.
20400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20402 # Run-time system search path for libraries.
20403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20405 # Whether dlopen is supported.
20406 dlopen_support=$enable_dlopen
20408 # Whether dlopen of programs is supported.
20409 dlopen_self=$enable_dlopen_self
20411 # Whether dlopen of statically linked programs is supported.
20412 dlopen_self_static=$enable_dlopen_self_static
20414 # Commands to strip libraries.
20415 old_striplib=$lt_old_striplib
20416 striplib=$lt_striplib
20419 # The linker used to build libraries.
20422 # Commands used to build an old-style archive.
20423 old_archive_cmds=$lt_old_archive_cmds
20425 # A language specific compiler.
20428 # Is the compiler the GNU compiler?
20431 # Compiler flag to turn off builtin functions.
20432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20434 # How to pass a linker flag through the compiler.
20435 wl=$lt_lt_prog_compiler_wl
20437 # Additional compiler flags for building library objects.
20438 pic_flag=$lt_lt_prog_compiler_pic
20440 # Compiler flag to prevent dynamic linking.
20441 link_static_flag=$lt_lt_prog_compiler_static
20443 # Does compiler simultaneously support -c and -o options?
20444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20446 # Whether or not to add -lc for building shared libraries.
20447 build_libtool_need_lc=$archive_cmds_need_lc
20449 # Whether or not to disallow shared libs when runtime libs are static.
20450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20452 # Compiler flag to allow reflexive dlopens.
20453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20455 # Compiler flag to generate shared objects directly from archives.
20456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20458 # Whether the compiler copes with passing no objects directly.
20459 compiler_needs_object=$lt_compiler_needs_object
20461 # Create an old-style archive from a shared archive.
20462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20464 # Create a temporary old-style archive to link instead of a shared archive.
20465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20467 # Commands used to build a shared archive.
20468 archive_cmds=$lt_archive_cmds
20469 archive_expsym_cmds=$lt_archive_expsym_cmds
20471 # Commands used to build a loadable module if different from building
20472 # a shared archive.
20473 module_cmds=$lt_module_cmds
20474 module_expsym_cmds=$lt_module_expsym_cmds
20476 # Whether we are building with GNU ld or not.
20477 with_gnu_ld=$lt_with_gnu_ld
20479 # Flag that allows shared libraries with undefined symbols to be built.
20480 allow_undefined_flag=$lt_allow_undefined_flag
20482 # Flag that enforces no undefined symbols.
20483 no_undefined_flag=$lt_no_undefined_flag
20485 # Flag to hardcode \$libdir into a binary during linking.
20486 # This must work even if \$libdir does not exist
20487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20489 # If ld is used when linking, flag to hardcode \$libdir into a binary
20490 # during linking. This must work even if \$libdir does not exist.
20491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20493 # Whether we need a single "-rpath" flag with a separated argument.
20494 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20497 # DIR into the resulting binary.
20498 hardcode_direct=$hardcode_direct
20500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20501 # DIR into the resulting binary and the resulting library dependency is
20502 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20503 # library is relocated.
20504 hardcode_direct_absolute=$hardcode_direct_absolute
20506 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20507 # into the resulting binary.
20508 hardcode_minus_L=$hardcode_minus_L
20510 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20511 # into the resulting binary.
20512 hardcode_shlibpath_var=$hardcode_shlibpath_var
20514 # Set to "yes" if building a shared library automatically hardcodes DIR
20515 # into the library and all subsequent libraries and executables linked
20517 hardcode_automatic=$hardcode_automatic
20519 # Set to yes if linker adds runtime paths of dependent libraries
20520 # to runtime path list.
20521 inherit_rpath=$inherit_rpath
20523 # Whether libtool must link a program against all its dependency libraries.
20524 link_all_deplibs=$link_all_deplibs
20526 # Fix the shell variable \$srcfile for the compiler.
20527 fix_srcfile_path=$lt_fix_srcfile_path
20529 # Set to "yes" if exported symbols are required.
20530 always_export_symbols=$always_export_symbols
20532 # The commands to list exported symbols.
20533 export_symbols_cmds=$lt_export_symbols_cmds
20535 # Symbols that should not be listed in the preloaded symbols.
20536 exclude_expsyms=$lt_exclude_expsyms
20538 # Symbols that must always be exported.
20539 include_expsyms=$lt_include_expsyms
20541 # Commands necessary for linking programs (against libraries) with templates.
20542 prelink_cmds=$lt_prelink_cmds
20544 # Specify filename containing input files.
20545 file_list_spec=$lt_file_list_spec
20547 # How to hardcode a shared library path into an executable.
20548 hardcode_action=$hardcode_action
20550 # The directories searched by this compiler when creating a shared library.
20551 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20553 # Dependencies to place before and after the objects being linked to
20554 # create a shared library.
20555 predep_objects=$lt_predep_objects
20556 postdep_objects=$lt_postdep_objects
20557 predeps=$lt_predeps
20558 postdeps=$lt_postdeps
20560 # The library search path used internally by the compiler when linking
20561 # a shared library.
20562 compiler_lib_search_path=$lt_compiler_lib_search_path
20564 # ### END LIBTOOL CONFIG
20570 cat <<\_LT_EOF >> "$cfgfile"
20571 # AIX sometimes has problems with the GCC collect2 program. For some
20572 # reason, if we set the COLLECT_NAMES environment variable, the problems
20573 # vanish in a puff of smoke.
20574 if test "X${COLLECT_NAMES+set}" != Xset; then
20576 export COLLECT_NAMES
20583 ltmain="$ac_aux_dir/ltmain.sh"
20586 # We use sed instead of cat because bash on DJGPP gets confused if
20587 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20588 # text mode, it properly converts lines to CR/LF. This bash problem
20589 # is reportedly fixed, but why not run on old versions too?
20590 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20591 || (rm -f "$cfgfile"; exit 1)
20595 cat << \_LT_EOF >> "$cfgfile"
20597 # func_dirname file append nondir_replacement
20598 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20599 # otherwise set result to NONDIR_REPLACEMENT.
20603 */*) func_dirname_result="${1%/*}${2}" ;;
20604 * ) func_dirname_result="${3}" ;;
20608 # func_basename file
20611 func_basename_result="${1##*/}"
20614 # func_dirname_and_basename file append nondir_replacement
20615 # perform func_basename and func_dirname in a single function
20617 # dirname: Compute the dirname of FILE. If nonempty,
20618 # add APPEND to the result, otherwise set result
20619 # to NONDIR_REPLACEMENT.
20620 # value returned in "$func_dirname_result"
20621 # basename: Compute filename of FILE.
20622 # value retuned in "$func_basename_result"
20623 # Implementation must be kept synchronized with func_dirname
20624 # and func_basename. For efficiency, we do not delegate to
20625 # those functions but instead duplicate the functionality here.
20626 func_dirname_and_basename ()
20629 */*) func_dirname_result="${1%/*}${2}" ;;
20630 * ) func_dirname_result="${3}" ;;
20632 func_basename_result="${1##*/}"
20635 # func_stripname prefix suffix name
20636 # strip PREFIX and SUFFIX off of NAME.
20637 # PREFIX and SUFFIX must not contain globbing or regex special
20638 # characters, hashes, percent signs, but SUFFIX may contain a leading
20639 # dot (in which case that matches only a dot).
20642 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20643 # positional parameters, so assign one to ordinary parameter first.
20644 func_stripname_result=${3}
20645 func_stripname_result=${func_stripname_result#"${1}"}
20646 func_stripname_result=${func_stripname_result%"${2}"}
20652 func_opt_split_opt=${1%%=*}
20653 func_opt_split_arg=${1#*=}
20660 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20661 *) func_lo2o_result=${1} ;;
20665 # func_xform libobj-or-source
20668 func_xform_result=${1%.*}.lo
20671 # func_arith arithmetic-term...
20674 func_arith_result=$(( $* ))
20678 # STRING may not start with a hyphen.
20681 func_len_result=${#1}
20686 *) # Bourne compatible functions.
20687 cat << \_LT_EOF >> "$cfgfile"
20689 # func_dirname file append nondir_replacement
20690 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20691 # otherwise set result to NONDIR_REPLACEMENT.
20694 # Extract subdirectory from the argument.
20695 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20696 if test "X$func_dirname_result" = "X${1}"; then
20697 func_dirname_result="${3}"
20699 func_dirname_result="$func_dirname_result${2}"
20703 # func_basename file
20706 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20710 # func_stripname prefix suffix name
20711 # strip PREFIX and SUFFIX off of NAME.
20712 # PREFIX and SUFFIX must not contain globbing or regex special
20713 # characters, hashes, percent signs, but SUFFIX may contain a leading
20714 # dot (in which case that matches only a dot).
20715 # func_strip_suffix prefix name
20719 .*) func_stripname_result=`$ECHO "X${3}" \
20720 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20721 *) func_stripname_result=`$ECHO "X${3}" \
20722 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20727 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20728 my_sed_long_arg='1s/^-[^=]*=//'
20733 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20734 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20740 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20743 # func_xform libobj-or-source
20746 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20749 # func_arith arithmetic-term...
20752 func_arith_result=`expr "$@"`
20756 # STRING may not start with a hyphen.
20759 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20765 case $lt_shell_append in
20767 cat << \_LT_EOF >> "$cfgfile"
20769 # func_append var value
20770 # Append VALUE to the end of shell variable VAR.
20778 cat << \_LT_EOF >> "$cfgfile"
20780 # func_append var value
20781 # Append VALUE to the end of shell variable VAR.
20792 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20793 || (rm -f "$cfgfile"; exit 1)
20795 mv -f "$cfgfile" "$ofile" ||
20796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20800 cat <<_LT_EOF >> "$ofile"
20802 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20804 # The linker used to build libraries.
20807 # Commands used to build an old-style archive.
20808 old_archive_cmds=$lt_old_archive_cmds_CXX
20810 # A language specific compiler.
20811 CC=$lt_compiler_CXX
20813 # Is the compiler the GNU compiler?
20816 # Compiler flag to turn off builtin functions.
20817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20819 # How to pass a linker flag through the compiler.
20820 wl=$lt_lt_prog_compiler_wl_CXX
20822 # Additional compiler flags for building library objects.
20823 pic_flag=$lt_lt_prog_compiler_pic_CXX
20825 # Compiler flag to prevent dynamic linking.
20826 link_static_flag=$lt_lt_prog_compiler_static_CXX
20828 # Does compiler simultaneously support -c and -o options?
20829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20831 # Whether or not to add -lc for building shared libraries.
20832 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20834 # Whether or not to disallow shared libs when runtime libs are static.
20835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20837 # Compiler flag to allow reflexive dlopens.
20838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20840 # Compiler flag to generate shared objects directly from archives.
20841 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20843 # Whether the compiler copes with passing no objects directly.
20844 compiler_needs_object=$lt_compiler_needs_object_CXX
20846 # Create an old-style archive from a shared archive.
20847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20849 # Create a temporary old-style archive to link instead of a shared archive.
20850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20852 # Commands used to build a shared archive.
20853 archive_cmds=$lt_archive_cmds_CXX
20854 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20856 # Commands used to build a loadable module if different from building
20857 # a shared archive.
20858 module_cmds=$lt_module_cmds_CXX
20859 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20861 # Whether we are building with GNU ld or not.
20862 with_gnu_ld=$lt_with_gnu_ld_CXX
20864 # Flag that allows shared libraries with undefined symbols to be built.
20865 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20867 # Flag that enforces no undefined symbols.
20868 no_undefined_flag=$lt_no_undefined_flag_CXX
20870 # Flag to hardcode \$libdir into a binary during linking.
20871 # This must work even if \$libdir does not exist
20872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20874 # If ld is used when linking, flag to hardcode \$libdir into a binary
20875 # during linking. This must work even if \$libdir does not exist.
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20878 # Whether we need a single "-rpath" flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20882 # DIR into the resulting binary.
20883 hardcode_direct=$hardcode_direct_CXX
20885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20886 # DIR into the resulting binary and the resulting library dependency is
20887 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20888 # library is relocated.
20889 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20892 # into the resulting binary.
20893 hardcode_minus_L=$hardcode_minus_L_CXX
20895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20896 # into the resulting binary.
20897 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20899 # Set to "yes" if building a shared library automatically hardcodes DIR
20900 # into the library and all subsequent libraries and executables linked
20902 hardcode_automatic=$hardcode_automatic_CXX
20904 # Set to yes if linker adds runtime paths of dependent libraries
20905 # to runtime path list.
20906 inherit_rpath=$inherit_rpath_CXX
20908 # Whether libtool must link a program against all its dependency libraries.
20909 link_all_deplibs=$link_all_deplibs_CXX
20911 # Fix the shell variable \$srcfile for the compiler.
20912 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20914 # Set to "yes" if exported symbols are required.
20915 always_export_symbols=$always_export_symbols_CXX
20917 # The commands to list exported symbols.
20918 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20920 # Symbols that should not be listed in the preloaded symbols.
20921 exclude_expsyms=$lt_exclude_expsyms_CXX
20923 # Symbols that must always be exported.
20924 include_expsyms=$lt_include_expsyms_CXX
20926 # Commands necessary for linking programs (against libraries) with templates.
20927 prelink_cmds=$lt_prelink_cmds_CXX
20929 # Specify filename containing input files.
20930 file_list_spec=$lt_file_list_spec_CXX
20932 # How to hardcode a shared library path into an executable.
20933 hardcode_action=$hardcode_action_CXX
20935 # The directories searched by this compiler when creating a shared library.
20936 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20938 # Dependencies to place before and after the objects being linked to
20939 # create a shared library.
20940 predep_objects=$lt_predep_objects_CXX
20941 postdep_objects=$lt_postdep_objects_CXX
20942 predeps=$lt_predeps_CXX
20943 postdeps=$lt_postdeps_CXX
20945 # The library search path used internally by the compiler when linking
20946 # a shared library.
20947 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20949 # ### END LIBTOOL TAG CONFIG: CXX
20960 ac_clean_files=$ac_clean_files_save
20962 test $ac_write_fail = 0 ||
20963 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20966 # configure is writing to config.log, and then calls config.status.
20967 # config.status does its own redirection, appending to config.log.
20968 # Unfortunately, on DOS this fails, as config.log is still kept open
20969 # by configure, so config.status won't be able to write to it; its
20970 # output is simply discarded. So we exec the FD to /dev/null,
20971 # effectively closing config.log, so it can be properly (re)opened and
20972 # appended to by config.status. When coming back to configure, we
20973 # need to make the FD available again.
20974 if test "$no_create" != yes; then
20976 ac_config_status_args=
20977 test "$silent" = yes &&
20978 ac_config_status_args="$ac_config_status_args --quiet"
20980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20983 # would make configure fail if this is the last instruction.
20984 $ac_cs_success || as_fn_exit $?
20986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20992 # Make sure these are executable.
20993 chmod u+x tests/test_wrapper.sh build-test-tarball.mk
20995 #====================================================================================
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20998 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
21000 Configuration summary :
21002 libsndfile cersion : .................. ${VERSION}
21004 Host CPU : ............................ ${host_cpu}
21005 Host Vendor : ......................... ${host_vendor}
21006 Host OS : ............................. ${host_os}
21008 Experimental code : ................... ${enable_experimental:-no}
21009 Using ALSA in example programs : ...... ${enable_alsa:-no}
21010 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
21013 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
21015 Configuration summary :
21017 libsndfile cersion : .................. ${VERSION}
21019 Host CPU : ............................ ${host_cpu}
21020 Host Vendor : ......................... ${host_vendor}
21021 Host OS : ............................. ${host_os}
21023 Experimental code : ................... ${enable_experimental:-no}
21024 Using ALSA in example programs : ...... ${enable_alsa:-no}
21025 External FLAC/Ogg/Vorbis : ............ ${enable_external_libs:-no}
21029 if test x$ac_cv_c_compiler_gnu = xyes ; then
21030 echo -e " Tools :\n"
21031 echo " Compiler is GCC : ..................... ${ac_cv_c_compiler_gnu}"
21032 echo " GCC version : ......................... ${GCC_VERSION}"
21033 if test $GCC_MAJOR_VERSION -lt 3 ; then
21034 echo -e "\n ** This compiler version allows applications to write"
21035 echo " ** to static strings within the library."
21036 echo " ** Compile with GCC version 3.X or above to avoid this problem."
21040 if test $libdir = "\${exec_prefix}/lib" ; then
21041 libdir="$prefix/lib"
21044 if test $bindir = "\${exec_prefix}/bin" ; then
21045 bindir="$prefix/bin"
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21049 Installation directories :
21051 Library directory : ................... $libdir
21052 Program directory : ................... $bindir
21053 Pkgconfig directory : ................. $libdir/pkgconfig
21054 HTML docs directory : ................. $htmldocdir
21057 Installation directories :
21059 Library directory : ................... $libdir
21060 Program directory : ................... $bindir
21061 Pkgconfig directory : ................. $libdir/pkgconfig
21062 HTML docs directory : ................. $htmldocdir
21065 if test x$prefix != "x/usr" ; then
21066 echo "Compiling some other packages against libsndfile may require"
21067 echo -e "the addition of \"$libdir/pkgconfig\" to the"
21068 echo -e "PKG_CONFIG_PATH environment variable.\n"
21071 (cd src && make genfiles)
21072 (cd tests && make genfiles)