2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RtAudio 4.1.2.
5 # Report bugs to <gary@music.mcgill.ca>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: gary@music.mcgill.ca about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='RtAudio'
592 PACKAGE_TARNAME='rtaudio'
593 PACKAGE_VERSION='4.1.2'
594 PACKAGE_STRING='RtAudio 4.1.2'
595 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
598 ac_unique_file="RtAudio.cpp"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
688 MAINTAINER_MODE_FALSE
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
777 enable_dependency_tracking
778 enable_maintainer_mode
796 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=no ;;
1180 # Obsolete; use --with-x.
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1248 # Be sure to have absolute directory names.
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1352 \`configure' configures RtAudio 4.1.2 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of RtAudio 4.1.2:";;
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-maintainer-mode
1437 enable make rules and dependencies not useful (and
1438 sometimes confusing) to the casual installer
1439 --enable-debug enable various debug output
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 --with-sysroot=DIR Search for dependent libraries within DIR
1453 (or the compiler's sysroot if not specified).
1454 --with-jack = choose JACK server support (mac and linux only)
1455 --with-alsa = choose native ALSA API support (linux only)
1456 --with-pulse = choose PulseAudio API support (linux only)
1457 --with-oss = choose OSS API support (linux only)
1458 --with-jack = choose JACK server support (unix only)
1459 --with-core = choose CoreAudio API support (mac only)
1460 --with-asio = choose ASIO API support (windoze only)
1461 --with-ds = choose DirectSound API support (windoze only)
1462 --with-wasapi = choose Windows Audio Session API support (windoze only)
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 PKG_CONFIG path to pkg-config utility
1474 directories to add to pkg-config's search path
1476 path overriding pkg-config's built-in search path
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to <gary@music.mcgill.ca>.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1548 RtAudio configure 4.1.2
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_run LINENO
1601 # ----------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603 # that executables *can* be run.
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_link"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>&5
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1618 { { case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_try") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; }; }; then :
1630 $as_echo "$as_me: program exited with status $ac_status" >&5
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=$ac_status
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_compile
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1743 if ac_fn_c_try_compile "$LINENO"; then :
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1817 # include <limits.h>
1819 # include <assert.h>
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1846 if ac_fn_c_try_link "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_func
1861 # ac_fn_cxx_try_cpp LINENO
1862 # ------------------------
1863 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_cpp ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_cpp conftest.$ac_ext"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } > conftest.i && {
1883 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_cxx_try_cpp
1898 # ac_fn_cxx_try_link LINENO
1899 # -------------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_link ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_cxx_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 test -x conftest$ac_exeext
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1934 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936 # interfere with the next link command; also delete a directory that is
1937 # left behind by Apple's compiler. We do this before executing the actions.
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_cxx_try_link
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1949 ac_fn_c_check_header_mongrel ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if eval \${$3+:} false; then :
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_header_compiler=yes
1973 ac_header_compiler=no
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 ac_header_preproc=yes
1989 ac_header_preproc=no
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1995 # So? What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## ----------------------------------- ##
2015 ## Report this to gary@music.mcgill.ca ##
2016 ## ----------------------------------- ##"
2017 ) | sed "s/^/$as_me: WARNING: /" >&2
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 eval "$3=\$ac_header_compiler"
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_mongrel
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2038 It was created by RtAudio $as_me 4.1.2, which was
2039 generated by GNU Autoconf 2.69. Invocation command line was
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 $as_echo "PATH: $as_dir"
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_must_keep_next=false
2105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107 | -silent | --silent | --silen | --sile | --sil)
2110 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2113 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2115 as_fn_append ac_configure_args1 " '$ac_arg'"
2116 if test $ac_must_keep_next = true; then
2117 ac_must_keep_next=false # Got value, back to normal.
2120 *=* | --config-cache | -C | -disable-* | --disable-* \
2121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123 | -with-* | --with-* | -without-* | --without-* | --x)
2124 case "$ac_configure_args0 " in
2125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2128 -* ) ac_must_keep_next=true ;;
2131 as_fn_append ac_configure_args " '$ac_arg'"
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log. We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145 # Save into config.log some information that might help in debugging.
2149 $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2153 # The following way of writing the cache mishandles newlines in values,
2155 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156 eval ac_val=\$$ac_var
2160 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2164 _ | IFS | as_nl) ;; #(
2165 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166 *) { eval $ac_var=; unset $ac_var;} ;;
2171 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172 *${as_nl}ac_space=\ *)
2174 "s/'\''/'\''\\\\'\'''\''/g;
2175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2185 $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2189 for ac_var in $ac_subst_vars
2191 eval ac_val=\$$ac_var
2193 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 $as_echo "$ac_var='\''$ac_val'\''"
2199 if test -n "$ac_subst_files"; then
2200 $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2204 for ac_var in $ac_subst_files
2206 eval ac_val=\$$ac_var
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -s confdefs.h; then
2216 $as_echo "## ----------- ##
2223 test "$ac_signal" != 0 &&
2224 $as_echo "$as_me: caught signal $ac_signal"
2225 $as_echo "$as_me: exit $exit_status"
2227 rm -f core *.core core.conftest.* &&
2228 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231 for ac_signal in 1 2 13 15; do
2232 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2239 $as_echo "/* confdefs.h */" > confdefs.h
2241 # Predefined preprocessor variables.
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273 # We do not want a PATH search for config.site.
2274 case $CONFIG_SITE in #((
2275 -*) ac_site_file1=./$CONFIG_SITE;;
2276 */*) ac_site_file1=$CONFIG_SITE;;
2277 *) ac_site_file1=./$CONFIG_SITE;;
2279 elif test "x$prefix" != xNONE; then
2280 ac_site_file1=$prefix/share/config.site
2281 ac_site_file2=$prefix/etc/config.site
2283 ac_site_file1=$ac_default_prefix/share/config.site
2284 ac_site_file2=$ac_default_prefix/etc/config.site
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288 test "x$ac_site_file" = xNONE && continue
2289 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292 sed 's/^/| /' "$ac_site_file" >&5
2294 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5; }
2301 if test -r "$cache_file"; then
2302 # Some versions of bash will fail to source /dev/null (special files
2303 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2304 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309 *) . "./$cache_file";;
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 # Check that the precious variables saved in the cache have kept the same
2320 ac_cache_corrupted=false
2321 for ac_var in $ac_precious_vars; do
2322 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2323 eval ac_new_set=\$ac_env_${ac_var}_set
2324 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2325 eval ac_new_val=\$ac_env_${ac_var}_value
2326 case $ac_old_set,$ac_new_set in
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2334 ac_cache_corrupted=: ;;
2337 if test "x$ac_old_val" != "x$ac_new_val"; then
2338 # differences in whitespace do not lead to failure.
2339 ac_old_val_w=`echo x $ac_old_val`
2340 ac_new_val_w=`echo x $ac_new_val`
2341 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2344 ac_cache_corrupted=:
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2348 eval $ac_var=\$ac_old_val
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2351 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2353 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2356 # Pass precious variables to config.status.
2357 if test "$ac_new_set" = set; then
2359 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2360 *) ac_arg=$ac_var=$ac_new_val ;;
2362 case " $ac_configure_args " in
2363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2364 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 if $ac_cache_corrupted; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2373 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 ## -------------------- ##
2376 ## Main body of script. ##
2377 ## -------------------- ##
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 for ac_dir in config "$srcdir"/config; do
2388 if test -f "$ac_dir/install-sh"; then
2390 ac_install_sh="$ac_aux_dir/install-sh -c"
2392 elif test -f "$ac_dir/install.sh"; then
2394 ac_install_sh="$ac_aux_dir/install.sh -c"
2396 elif test -f "$ac_dir/shtool"; then
2398 ac_install_sh="$ac_aux_dir/shtool install -c"
2402 if test -z "$ac_aux_dir"; then
2403 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2406 # These three variables are undocumented and unsupported,
2407 # and are intended to be withdrawn in a future Autoconf release.
2408 # They can cause serious problems if a builder's source tree is in a directory
2409 # whose full name contains unusual characters.
2410 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2411 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2412 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2416 ac_config_files="$ac_config_files rtaudio-config rtaudio.pc Makefile tests/Makefile doc/Makefile doc/doxygen/Doxyfile"
2418 am__api_version='1.15'
2420 # Find a good install program. We prefer a C program (faster),
2421 # so one script is as good as another. But avoid the broken or
2422 # incompatible versions:
2423 # SysV /etc/install, /usr/sbin/install
2424 # SunOS /usr/etc/install
2425 # IRIX /sbin/install
2427 # AmigaOS /C/install, which installs bootblocks on floppy discs
2428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2431 # OS/2's system install, which has a completely different semantic
2432 # ./install, which can be erroneously created by make from ./install.sh.
2433 # Reject install programs that cannot install multiple files.
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2436 if test -z "$INSTALL"; then
2437 if ${ac_cv_path_install+:} false; then :
2438 $as_echo_n "(cached) " >&6
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 # Account for people who put trailing slashes in PATH elements.
2446 case $as_dir/ in #((
2447 ./ | .// | /[cC]/* | \
2448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2449 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2452 # OSF1 and SCO ODT 3.0 have their own names for install.
2453 # Don't use installbsd from OSF since it installs stuff as root
2455 for ac_prog in ginstall scoinst install; do
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2458 if test $ac_prog = install &&
2459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460 # AIX install. It has an incompatible calling convention.
2462 elif test $ac_prog = install &&
2463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # program-specific install script used by HP pwplus--don't use.
2467 rm -rf conftest.one conftest.two conftest.dir
2468 echo one > conftest.one
2469 echo two > conftest.two
2471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2472 test -s conftest.one && test -s conftest.two &&
2473 test -s conftest.dir/conftest.one &&
2474 test -s conftest.dir/conftest.two
2476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2489 rm -rf conftest.one conftest.two conftest.dir
2492 if test "${ac_cv_path_install+set}" = set; then
2493 INSTALL=$ac_cv_path_install
2495 # As a last resort, use the slow shell script. Don't cache a
2496 # value for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the value is a relative name.
2499 INSTALL=$ac_install_sh
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2503 $as_echo "$INSTALL" >&6; }
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2514 $as_echo_n "checking whether build environment is sane... " >&6; }
2515 # Reject unsafe characters in $srcdir or the absolute working directory
2516 # name. Accept space and tab only in the latter.
2520 *[\\\"\#\$\&\'\`$am_lf]*)
2521 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2524 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2525 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2528 # Do 'set' in a subshell so we don't clobber the current shell's
2529 # arguments. Must try -L first in case configure is actually a
2530 # symlink; some systems play weird games with the mod time of symlinks
2531 # (eg FreeBSD returns the mod time of the symlink's containing
2535 for am_try in 1 2; do
2536 echo "timestamp, slept: $am_has_slept" > conftest.file
2537 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2538 if test "$*" = "X"; then
2540 set X `ls -t "$srcdir/configure" conftest.file`
2542 if test "$*" != "X $srcdir/configure conftest.file" \
2543 && test "$*" != "X conftest.file $srcdir/configure"; then
2545 # If neither matched, then we have a broken ls. This can happen
2546 # if, for instance, CONFIG_SHELL is bash and it inherits a
2547 # broken ls alias from the environment. This has actually
2548 # happened. Such a system could not be considered "sane".
2549 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2550 alias in your environment" "$LINENO" 5
2552 if test "$2" = conftest.file || test $am_try -eq 2; then
2559 test "$2" = conftest.file
2565 as_fn_error $? "newly created file is older than distributed files!
2566 Check your system clock" "$LINENO" 5
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570 # If we didn't sleep, we still need to ensure time stamps of config.status and
2571 # generated files are strictly newer.
2573 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2580 test "$program_prefix" != NONE &&
2581 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2582 # Use a double $ so make ignores it.
2583 test "$program_suffix" != NONE &&
2584 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2585 # Double any \ or $.
2586 # By default was `s,x,x', remove it if useless.
2587 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2588 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2590 # Expand $ac_aux_dir to an absolute path.
2591 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2593 if test x"${MISSING+set}" != xset; then
2596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2598 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2601 # Use eval to expand $SHELL
2602 if eval "$MISSING --is-lightweight"; then
2603 am_missing_run="$MISSING "
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2607 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2610 if test x"${install_sh+set}" != xset; then
2613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2615 install_sh="\${SHELL} $am_aux_dir/install-sh"
2619 # Installed binaries are usually stripped using 'strip' when the user
2620 # run "make install-strip". However 'strip' might not be the right
2621 # tool to use in cross-compilation environments, therefore Automake
2622 # will honor the 'STRIP' environment variable to overrule this program.
2623 if test "$cross_compiling" != no; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_STRIP+:} false; then :
2630 $as_echo_n "(cached) " >&6
2632 if test -n "$STRIP"; then
2633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 STRIP=$ac_cv_prog_STRIP
2653 if test -n "$STRIP"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2655 $as_echo "$STRIP" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2663 if test -z "$ac_cv_prog_STRIP"; then
2665 # Extract the first word of "strip", so it can be a program name with args.
2666 set dummy strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 if test -n "$ac_ct_STRIP"; then
2673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682 ac_cv_prog_ac_ct_STRIP="strip"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2693 if test -n "$ac_ct_STRIP"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2695 $as_echo "$ac_ct_STRIP" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2701 if test "x$ac_ct_STRIP" = x; then
2704 case $cross_compiling:$ac_tool_warned in
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2713 STRIP="$ac_cv_prog_STRIP"
2717 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2720 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2721 if test -z "$MKDIR_P"; then
2722 if ${ac_cv_path_mkdir+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2729 test -z "$as_dir" && as_dir=.
2730 for ac_prog in mkdir gmkdir; do
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2734 'mkdir (GNU coreutils) '* | \
2735 'mkdir (coreutils) '* | \
2736 'mkdir (fileutils) '4.1*)
2737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 test -d ./--version && rmdir ./--version
2748 if test "${ac_cv_path_mkdir+set}" = set; then
2749 MKDIR_P="$ac_cv_path_mkdir -p"
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for MKDIR_P within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 MKDIR_P="$ac_install_sh -d"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2759 $as_echo "$MKDIR_P" >&6; }
2761 for ac_prog in gawk mawk nawk awk
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_AWK+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 if test -n "$AWK"; then
2771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_AWK="$ac_prog"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 if test -n "$AWK"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2793 $as_echo "$AWK" >&6; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2800 test -n "$AWK" && break
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2804 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2806 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2807 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2808 $as_echo_n "(cached) " >&6
2810 cat >conftest.make <<\_ACEOF
2813 @echo '@@@%%%=$(MAKE)=@@@%%%'
2815 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2818 eval ac_cv_prog_make_${ac_make}_set=yes;;
2820 eval ac_cv_prog_make_${ac_make}_set=no;;
2824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831 SET_MAKE="MAKE=${MAKE-make}"
2834 rm -rf .tst 2>/dev/null
2835 mkdir .tst 2>/dev/null
2836 if test -d .tst; then
2841 rmdir .tst 2>/dev/null
2843 # Check whether --enable-silent-rules was given.
2844 if test "${enable_silent_rules+set}" = set; then :
2845 enableval=$enable_silent_rules;
2848 case $enable_silent_rules in # (((
2849 yes) AM_DEFAULT_VERBOSITY=0;;
2850 no) AM_DEFAULT_VERBOSITY=1;;
2851 *) AM_DEFAULT_VERBOSITY=1;;
2853 am_make=${MAKE-make}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2855 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2856 if ${am_cv_make_support_nested_variables+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if $as_echo 'TRUE=$(BAR$(V))
2865 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2866 am_cv_make_support_nested_variables=yes
2868 am_cv_make_support_nested_variables=no
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2872 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2873 if test $am_cv_make_support_nested_variables = yes; then
2875 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2877 AM_V=$AM_DEFAULT_VERBOSITY
2878 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2882 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884 # is not polluted with repeated "-I."
2885 am__isrc=' -I$(srcdir)'
2886 # test to see if srcdir already configured
2887 if test -f $srcdir/config.status; then
2888 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2892 # test whether we have cygpath
2893 if test -z "$CYGPATH_W"; then
2894 if (cygpath --version) >/dev/null 2>/dev/null; then
2895 CYGPATH_W='cygpath -w'
2902 # Define the identity of the package.
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE "$PACKAGE"
2912 cat >>confdefs.h <<_ACEOF
2913 #define VERSION "$VERSION"
2916 # Some tools Automake needs.
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932 # For better backward compatibility. To be removed once Automake 1.9.x
2933 # dies out for good. For more background, see:
2934 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2936 mkdir_p='$(MKDIR_P)'
2938 # We need awk for the "check" target (and possibly the TAP driver). The
2939 # system "awk" is bad on some platforms.
2940 # Always define AMTAR for backward compatibility. Yes, it's still used
2941 # in the wild :-( We should find a proper way to deprecate it ...
2945 # We'll loop over all known methods to create a tar archive until one works.
2946 _am_tools='gnutar pax cpio none'
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2955 # POSIX will say in a future version that running "rm -f" with no argument
2956 # is OK; and we want to be able to make that assumption in our Makefile
2957 # recipes. So use an aggressive probe to check that the usage we want is
2958 # actually supported "in the wild" to an acceptable degree.
2959 # See automake bug#10828.
2960 # To make any issue more visible, cause the running configure to be aborted
2961 # by default if the 'rm' program in use doesn't match our expectations; the
2962 # user can still override this though.
2963 if rm -f && rm -fr && rm -rf; then : OK; else
2967 Your 'rm' program seems unable to run without file operands specified
2968 on the command line, even when the '-f' option is present. This is contrary
2969 to the behaviour of most rm programs out there, and not conforming with
2970 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2972 Please tell bug-automake@gnu.org about your system, including the value
2973 of your $PATH and any error possibly output before this message. This
2974 can help us improve future automake versions.
2977 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2978 echo 'Configuration will proceed anyway, since you have set the' >&2
2979 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2983 Aborting the configuration process, to ensure you take notice of the issue.
2985 You can download and install GNU coreutils to get an 'rm' implementation
2986 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2988 If you want to complete the configuration process using your problematic
2989 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990 to "yes", and re-run configure.
2993 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2998 # libtool version: current:revision:age
3000 # If the library source code has changed at all since the last update, then
3001 # increment revision (`c:r:a' becomes `c:r+1:a').
3003 # If any interfaces have been added, removed, or changed since the last update,
3004 # increment current, and set revision to 0.
3006 # If any interfaces have been added since the last public release, then
3009 # If any interfaces have been removed since the last public release, then set
3021 # Check version number coherency between RtAudio.h and configure.ac
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that version numbers are coherent" >&5
3023 $as_echo_n "checking that version numbers are coherent... " >&6; }
3024 DEPDIR="${am__leading_dot}deps"
3026 ac_config_commands="$ac_config_commands depfiles"
3029 am_make=${MAKE-make}
3030 cat > confinc << 'END'
3032 @echo this is the am__doit target
3035 # If we don't find an include directive, just comment out the code.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3037 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3041 # First try GNU make style include.
3042 echo "include confinc" > confmf
3043 # Ignore all kinds of additional output from 'make'.
3044 case `$am_make -s -f confmf 2> /dev/null` in #(
3045 *the\ am__doit\ target*)
3051 # Now try BSD make style include.
3052 if test "$am__include" = "#"; then
3053 echo '.include "confinc"' > confmf
3054 case `$am_make -s -f confmf 2> /dev/null` in #(
3055 *the\ am__doit\ target*)
3056 am__include=.include
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3065 $as_echo "$_am_result" >&6; }
3066 rm -f confinc confmf
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then :
3070 enableval=$enable_dependency_tracking;
3073 if test "x$enable_dependency_tracking" != xno; then
3074 am_depcomp="$ac_aux_dir/depcomp"
3078 if test "x$enable_dependency_tracking" != xno; then
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3131 if test -z "$ac_cv_prog_CC"; then
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3169 if test "x$ac_ct_CC" = x; then
3172 case $cross_compiling:$ac_tool_warned in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3322 test -n "$CC" && break
3325 if test -z "$CC"; then
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$ac_ct_CC" && break
3369 if test "x$ac_ct_CC" = x; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3404 if test -s conftest.err; then
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3439 for ac_file in $ac_files
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3448 if { { ac_try="$ac_link_default"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3464 for ac_file in $ac_files ''
3466 test -f "$ac_file" || continue
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3471 # We found the default executable, but exeext='' is most
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3494 if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3533 for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3561 FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3598 if test "$cross_compiling" = maybe; then
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3684 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_save_c_werror_flag=$ac_c_werror_flag
3708 ac_c_werror_flag=yes
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 if ac_fn_c_try_compile "$LINENO"; then :
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766 CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768 if test "$GCC" = yes; then
3774 if test "$GCC" = yes; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 ac_cv_prog_cc_c89=no
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3806 s = g (p, va_arg (v,int));
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812 function prototypes and stuff, but not '\xHH' hex character constants.
3813 These don't provoke an error unfortunately, instead are silently treated
3814 as 'x'. The following induces an error, until -std is added to get
3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816 array size at least. It's necessary to write '\x00'==0 to get something
3817 that's true only with -std. */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821 inside strings and character constants. */
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3842 CC="$ac_save_CC $ac_arg"
3843 if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_c89=$ac_arg
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 rm -f conftest.$ac_ext
3854 case "x$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3897 # Make sure it works both with $CC and with simple cc.
3898 # Following AC_PROG_CC_C_O, we do the test twice because some
3899 # compilers refuse to overwrite an existing .o file with -o,
3900 # though they will create one.
3901 am_cv_prog_cc_c_o=yes
3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } \
3908 && test -f conftest2.$ac_objext; then
3911 am_cv_prog_cc_c_o=no
3915 rm -f core conftest*
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921 # Losing compiler, so override with the script.
3922 # FIXME: It is wrong to rewrite CC.
3923 # But if we don't then we get into trouble of one sort or another.
3924 # A longer-term fix would be to have automake use am__CC in this case,
3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926 CC="$am_aux_dir/compile $CC"
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 depcc="$CC" am_compiler_list=
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938 $as_echo_n "checking dependency style of $depcc... " >&6; }
3939 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943 # We make a subdir and do the tests there. Otherwise we can end up
3944 # making bogus files that we don't know about and never remove. For
3945 # instance it was reported that on HP-UX the gcc test will end up
3946 # making a dummy file named 'D' -- because '-MD' means "put the output
3950 # Copy depcomp to subdir because otherwise we won't find it if we're
3951 # using a relative directory.
3952 cp "$am_depcomp" conftest.dir
3954 # We will build objects and dependencies in a subdirectory because
3955 # it helps to detect inapplicable dependency modes. For instance
3956 # both Tru64's cc and ICC support -MD to output dependencies as a
3957 # side effect of compilation, but ICC will put the dependencies in
3958 # the current directory while Tru64 will put them in the object
3962 am_cv_CC_dependencies_compiler_type=none
3963 if test "$am_compiler_list" = ""; then
3964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967 case " $depcc " in #(
3968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3971 for depmode in $am_compiler_list; do
3972 # Setup a source with many dependencies, because some compilers
3973 # like to wrap large dependency lists on column 80 (with \), and
3974 # we should not choose a depcomp mode which is confused by this.
3976 # We need to recreate these files for each test, as the compiler may
3977 # overwrite some of them when testing with obscure command lines.
3978 # This happens at least with the AIX C compiler.
3980 for i in 1 2 3 4 5 6; do
3981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3983 # Solaris 10 /bin/sh.
3984 echo '/* dummy */' > sub/conftst$i.h
3986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3989 # mode. It turns out that the SunPro C++ compiler does not properly
3990 # handle '-M -o', and we need to detect this. Also, some Intel
3991 # versions had trouble with output in subdirs.
3992 am__obj=sub/conftest.${OBJEXT-o}
3993 am__minus_obj="-o $am__obj"
3996 # This depmode causes a compiler race in universal mode.
3997 test "$am__universal" = false || continue
4000 # After this tag, mechanisms are not by side-effect, so they'll
4001 # only be used when explicitly requested.
4002 if test "x$enable_dependency_tracking" = xyes; then
4008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4009 # This compiler won't grok '-c -o', but also, the minuso test has
4010 # not run yet. These depmodes are late enough in the game, and
4011 # so weak that their functioning should not be impacted.
4012 am__obj=conftest.${OBJEXT-o}
4017 if depmode=$depmode \
4018 source=sub/conftest.c object=$am__obj \
4019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4021 >/dev/null 2>conftest.err &&
4022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026 # icc doesn't choke on unknown options, it will just issue warnings
4027 # or remarks (even with -Werror). So we grep stderr for any message
4028 # that says an option was ignored or not supported.
4029 # When given -MP, icc 7.0 and 7.1 complain thusly:
4030 # icc: Command line warning: ignoring option '-M'; no argument required
4031 # The diagnosis changed in icc 8.0:
4032 # icc: Command line remark: option '-MP' not supported
4033 if (grep 'ignoring option' conftest.err ||
4034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035 am_cv_CC_dependencies_compiler_type=$depmode
4044 am_cv_CC_dependencies_compiler_type=none
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053 test "x$enable_dependency_tracking" != xno \
4054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCC_FALSE='#'
4058 am__fastdepCC_TRUE='#'
4059 am__fastdepCC_FALSE=
4064 if test "$cross_compiling" = yes; then :
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $? "cannot run test program while cross compiling
4068 See \`config.log' for more details" "$LINENO" 5; }
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4073 `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`
4077 return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);
4082 if ac_fn_c_try_run "$LINENO"; then :
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 as_fn_error $? "testing RTAUDIO_VERSION==PACKAGE_VERSION failed, check that RtAudio.h defines RTAUDIO_VERSION as \"$PACKAGE_VERSION\" or that the first line of configure.ac has been updated.
4089 See \`config.log' for more details" "$LINENO" 5; }
4091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4092 conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 # Enable some nice automake features if they are available
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4099 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4100 # Check whether --enable-maintainer-mode was given.
4101 if test "${enable_maintainer_mode+set}" = set; then :
4102 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4104 USE_MAINTAINER_MODE=no
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4108 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4109 if test $USE_MAINTAINER_MODE = yes; then
4110 MAINTAINER_MODE_TRUE=
4111 MAINTAINER_MODE_FALSE='#'
4113 MAINTAINER_MODE_TRUE='#'
4114 MAINTAINER_MODE_FALSE=
4117 MAINT=$MAINTAINER_MODE_TRUE
4120 # Check whether --enable-silent-rules was given.
4121 if test "${enable_silent_rules+set}" = set; then :
4122 enableval=$enable_silent_rules;
4125 case $enable_silent_rules in # (((
4126 yes) AM_DEFAULT_VERBOSITY=0;;
4127 no) AM_DEFAULT_VERBOSITY=1;;
4128 *) AM_DEFAULT_VERBOSITY=0;;
4130 am_make=${MAKE-make}
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4132 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4133 if ${am_cv_make_support_nested_variables+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if $as_echo 'TRUE=$(BAR$(V))
4142 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4143 am_cv_make_support_nested_variables=yes
4145 am_cv_make_support_nested_variables=no
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4149 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4150 if test $am_cv_make_support_nested_variables = yes; then
4152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4154 AM_V=$AM_DEFAULT_VERBOSITY
4155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4160 # Fill GXX with something before test.
4173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4180 $as_echo_n "(cached) " >&6
4184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4206 if test -n "$PKG_CONFIG"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4208 $as_echo "$PKG_CONFIG" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4216 if test -z "$ac_cv_path_PKG_CONFIG"; then
4217 ac_pt_PKG_CONFIG=$PKG_CONFIG
4218 # Extract the first word of "pkg-config", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 case $ac_pt_PKG_CONFIG in
4227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4249 if test -n "$ac_pt_PKG_CONFIG"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4257 if test "x$ac_pt_PKG_CONFIG" = x; then
4260 case $cross_compiling:$ac_tool_warned in
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4264 ac_tool_warned=yes ;;
4266 PKG_CONFIG=$ac_pt_PKG_CONFIG
4269 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4273 if test -n "$PKG_CONFIG"; then
4274 _pkg_min_version=0.9.0
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4277 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4291 $as_echo_n "checking whether to compile debug version... " >&6; }
4292 # Check whether --enable-debug was given.
4293 if test "${enable_debug+set}" = set; then :
4294 enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4301 # Checks for programs.
4303 ac_cpp='$CXXCPP $CPPFLAGS'
4304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4307 if test -z "$CXX"; then
4308 if test -n "$CCC"; then
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in g++ CC c++ cxx
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_CXX+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -n "$CXX"; then
4322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 if test -n "$CXX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4344 $as_echo "$CXX" >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$CXX" && break
4354 if test -z "$CXX"; then
4356 for ac_prog in g++ CC c++ cxx
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$ac_ct_CXX"; then
4366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_CXX="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4386 if test -n "$ac_ct_CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4388 $as_echo "$ac_ct_CXX" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$ac_ct_CXX" && break
4398 if test "x$ac_ct_CXX" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4413 # Provide some information about the compiler.
4414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4417 for ac_option in --version -v -V -qversion; do
4418 { { ac_try="$ac_compiler $ac_option >&5"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4427 if test -s conftest.err; then
4429 ... rest of stderr output deleted ...
4430 10q' conftest.err >conftest.er1
4431 cat conftest.er1 >&5
4433 rm -f conftest.er1 conftest.err
4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4439 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4440 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4457 if ac_fn_cxx_try_compile "$LINENO"; then :
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4467 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4468 if test $ac_compiler_gnu = yes; then
4473 ac_test_CXXFLAGS=${CXXFLAGS+set}
4474 ac_save_CXXFLAGS=$CXXFLAGS
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4476 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4477 if ${ac_cv_prog_cxx_g+:} false; then :
4478 $as_echo_n "(cached) " >&6
4480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4481 ac_cxx_werror_flag=yes
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496 ac_cv_prog_cxx_g=yes
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4510 if ac_fn_cxx_try_compile "$LINENO"; then :
4513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_cv_prog_cxx_g=yes
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4537 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4538 if test "$ac_test_CXXFLAGS" = set; then
4539 CXXFLAGS=$ac_save_CXXFLAGS
4540 elif test $ac_cv_prog_cxx_g = yes; then
4541 if test "$GXX" = yes; then
4547 if test "$GXX" = yes; then
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 depcc="$CXX" am_compiler_list=
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567 # We make a subdir and do the tests there. Otherwise we can end up
4568 # making bogus files that we don't know about and never remove. For
4569 # instance it was reported that on HP-UX the gcc test will end up
4570 # making a dummy file named 'D' -- because '-MD' means "put the output
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4586 am_cv_CXX_dependencies_compiler_type=none
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4591 case " $depcc " in #(
4592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607 # Solaris 10 /bin/sh.
4608 echo '/* dummy */' > sub/conftst$i.h
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle '-M -o', and we need to detect this. Also, some Intel
4615 # versions had trouble with output in subdirs.
4616 am__obj=sub/conftest.${OBJEXT-o}
4617 am__minus_obj="-o $am__obj"
4620 # This depmode causes a compiler race in universal mode.
4621 test "$am__universal" = false || continue
4624 # After this tag, mechanisms are not by side-effect, so they'll
4625 # only be used when explicitly requested.
4626 if test "x$enable_dependency_tracking" = xyes; then
4632 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633 # This compiler won't grok '-c -o', but also, the minuso test has
4634 # not run yet. These depmodes are late enough in the game, and
4635 # so weak that their functioning should not be impacted.
4636 am__obj=conftest.${OBJEXT-o}
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=$am__obj \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659 am_cv_CXX_dependencies_compiler_type=$depmode
4668 am_cv_CXX_dependencies_compiler_type=none
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4674 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4677 test "x$enable_dependency_tracking" != xno \
4678 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4679 am__fastdepCXX_TRUE=
4680 am__fastdepCXX_FALSE='#'
4682 am__fastdepCXX_TRUE='#'
4683 am__fastdepCXX_FALSE=
4687 if test -n "$ac_tool_prefix"; then
4688 for ac_prog in ar lib "link -lib"
4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_AR+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$AR"; then
4698 ac_cv_prog_AR="$AR" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test -n "$AR"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4720 $as_echo "$AR" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4727 test -n "$AR" && break
4730 if test -z "$AR"; then
4732 for ac_prog in ar lib "link -lib"
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -n "$ac_ct_AR"; then
4742 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_AR="$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4762 if test -n "$ac_ct_AR"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4764 $as_echo "$ac_ct_AR" >&6; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4771 test -n "$ac_ct_AR" && break
4774 if test "x$ac_ct_AR" = x; then
4777 case $cross_compiling:$ac_tool_warned in
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4790 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4791 if ${am_cv_ar_interface+:} false; then :
4792 $as_echo_n "(cached) " >&6
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 am_cv_ar_interface=ar
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 int some_variable = 0;
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4808 (eval $am_ar_try) 2>&5
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4812 if test "$ac_status" -eq 0; then
4813 am_cv_ar_interface=ar
4815 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4817 (eval $am_ar_try) 2>&5
4819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820 test $ac_status = 0; }
4821 if test "$ac_status" -eq 0; then
4822 am_cv_ar_interface=lib
4824 am_cv_ar_interface=unknown
4827 rm -f conftest.lib libconftest.a
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4839 $as_echo "$am_cv_ar_interface" >&6; }
4841 case $am_cv_ar_interface in
4845 # Microsoft lib, so override with the ar-lib wrapper script.
4846 # FIXME: It is wrong to rewrite AR.
4847 # But if we don't then we get into trouble of one sort or another.
4848 # A longer-term fix would be to have automake use am__AR in this case,
4849 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4851 AR="$am_aux_dir/ar-lib $AR"
4854 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4858 # Extract the first word of "ar", so it can be a program name with args.
4859 set dummy ar; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_path_AR+:} false; then :
4863 $as_echo_n "(cached) " >&6
4867 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4890 if test -n "$AR"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4892 $as_echo "$AR" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 if [ $AR = "no" ] ; then
4900 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4903 # Initialize libtool
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4912 macro_version='2.4.2'
4913 macro_revision='1.3337'
4927 ltmain="$ac_aux_dir/ltmain.sh"
4929 # Make sure we can run config.sub.
4930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4931 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4934 $as_echo_n "checking build system type... " >&6; }
4935 if ${ac_cv_build+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 ac_build_alias=$build_alias
4939 test "x$ac_build_alias" = x &&
4940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4941 test "x$ac_build_alias" = x &&
4942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4948 $as_echo "$ac_cv_build" >&6; }
4949 case $ac_cv_build in
4951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4954 ac_save_IFS=$IFS; IFS='-'
4960 # Remember, the first character of IFS is used to create $*,
4961 # except with old shells:
4964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4968 $as_echo_n "checking host system type... " >&6; }
4969 if ${ac_cv_host+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if test "x$host_alias" = x; then
4973 ac_cv_host=$ac_cv_build
4975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4981 $as_echo "$ac_cv_host" >&6; }
4984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4987 ac_save_IFS=$IFS; IFS='-'
4993 # Remember, the first character of IFS is used to create $*,
4994 # except with old shells:
4997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5000 # Backslashify metacharacters that are still active within
5001 # double-quoted strings.
5002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5004 # Same as above, but do not quote variable references.
5005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5007 # Sed substitution to delay expansion of an escaped shell variable in a
5008 # double_quote_subst'ed string.
5009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5011 # Sed substitution to delay expansion of an escaped single quote.
5012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5014 # Sed substitution to avoid accidental globbing in evaled expressions
5015 no_glob_subst='s/\*/\\\*/g'
5017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5022 $as_echo_n "checking how to print strings... " >&6; }
5023 # Test print first, because it will be a builtin if present.
5024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5030 # Use this function as a fallback that always works.
5031 func_fallback_echo ()
5033 eval 'cat <<_LTECHO_EOF
5037 ECHO='func_fallback_echo'
5040 # func_echo_all arg...
5041 # Invoke $ECHO with all args, space-separated.
5048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5049 $as_echo "printf" >&6; } ;;
5050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5051 $as_echo "print -r" >&6; } ;;
5052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5053 $as_echo "cat" >&6; } ;;
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5071 if ${ac_cv_path_SED+:} false; then :
5072 $as_echo_n "(cached) " >&6
5074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5075 for ac_i in 1 2 3 4 5 6 7; do
5076 ac_script="$ac_script$as_nl$ac_script"
5078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5079 { ac_script=; unset ac_script;}
5080 if test -z "$SED"; then
5081 ac_path_SED_found=false
5082 # Loop through the user's path and test for each of PROGNAME-LIST
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_prog in sed gsed; do
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5091 as_fn_executable_p "$ac_path_SED" || continue
5092 # Check for GNU ac_path_SED and select it if it is found.
5093 # Check for GNU $ac_path_SED
5094 case `"$ac_path_SED" --version 2>&1` in
5096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5099 $as_echo_n 0123456789 >"conftest.in"
5102 cat "conftest.in" "conftest.in" >"conftest.tmp"
5103 mv "conftest.tmp" "conftest.in"
5104 cp "conftest.in" "conftest.nl"
5105 $as_echo '' >> "conftest.nl"
5106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108 as_fn_arith $ac_count + 1 && ac_count=$as_val
5109 if test $ac_count -gt ${ac_path_SED_max-0}; then
5110 # Best one so far, save it but keep looking for a better one
5111 ac_cv_path_SED="$ac_path_SED"
5112 ac_path_SED_max=$ac_count
5114 # 10*(2^10) chars as input seems more than enough
5115 test $ac_count -gt 10 && break
5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 $ac_path_SED_found && break 3
5125 if test -z "$ac_cv_path_SED"; then
5126 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5134 $as_echo "$ac_cv_path_SED" >&6; }
5135 SED="$ac_cv_path_SED"
5138 test -z "$SED" && SED=sed
5139 Xsed="$SED -e 1s/^X//"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5153 if ${ac_cv_path_GREP+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 if test -z "$GREP"; then
5157 ac_path_GREP_found=false
5158 # Loop through the user's path and test for each of PROGNAME-LIST
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5163 test -z "$as_dir" && as_dir=.
5164 for ac_prog in grep ggrep; do
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5167 as_fn_executable_p "$ac_path_GREP" || continue
5168 # Check for GNU ac_path_GREP and select it if it is found.
5169 # Check for GNU $ac_path_GREP
5170 case `"$ac_path_GREP" --version 2>&1` in
5172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5175 $as_echo_n 0123456789 >"conftest.in"
5178 cat "conftest.in" "conftest.in" >"conftest.tmp"
5179 mv "conftest.tmp" "conftest.in"
5180 cp "conftest.in" "conftest.nl"
5181 $as_echo 'GREP' >> "conftest.nl"
5182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5184 as_fn_arith $ac_count + 1 && ac_count=$as_val
5185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5186 # Best one so far, save it but keep looking for a better one
5187 ac_cv_path_GREP="$ac_path_GREP"
5188 ac_path_GREP_max=$ac_count
5190 # 10*(2^10) chars as input seems more than enough
5191 test $ac_count -gt 10 && break
5193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5196 $ac_path_GREP_found && break 3
5201 if test -z "$ac_cv_path_GREP"; then
5202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5205 ac_cv_path_GREP=$GREP
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5210 $as_echo "$ac_cv_path_GREP" >&6; }
5211 GREP="$ac_cv_path_GREP"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5215 $as_echo_n "checking for egrep... " >&6; }
5216 if ${ac_cv_path_EGREP+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5220 then ac_cv_path_EGREP="$GREP -E"
5222 if test -z "$EGREP"; then
5223 ac_path_EGREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in egrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5233 as_fn_executable_p "$ac_path_EGREP" || continue
5234 # Check for GNU ac_path_EGREP and select it if it is found.
5235 # Check for GNU $ac_path_EGREP
5236 case `"$ac_path_EGREP" --version 2>&1` in
5238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5241 $as_echo_n 0123456789 >"conftest.in"
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'EGREP' >> "conftest.nl"
5248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_EGREP="$ac_path_EGREP"
5254 ac_path_EGREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 $ac_path_EGREP_found && break 3
5267 if test -z "$ac_cv_path_EGREP"; then
5268 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271 ac_cv_path_EGREP=$EGREP
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5277 $as_echo "$ac_cv_path_EGREP" >&6; }
5278 EGREP="$ac_cv_path_EGREP"
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5282 $as_echo_n "checking for fgrep... " >&6; }
5283 if ${ac_cv_path_FGREP+:} false; then :
5284 $as_echo_n "(cached) " >&6
5286 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5287 then ac_cv_path_FGREP="$GREP -F"
5289 if test -z "$FGREP"; then
5290 ac_path_FGREP_found=false
5291 # Loop through the user's path and test for each of PROGNAME-LIST
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5296 test -z "$as_dir" && as_dir=.
5297 for ac_prog in fgrep; do
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5300 as_fn_executable_p "$ac_path_FGREP" || continue
5301 # Check for GNU ac_path_FGREP and select it if it is found.
5302 # Check for GNU $ac_path_FGREP
5303 case `"$ac_path_FGREP" --version 2>&1` in
5305 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5308 $as_echo_n 0123456789 >"conftest.in"
5311 cat "conftest.in" "conftest.in" >"conftest.tmp"
5312 mv "conftest.tmp" "conftest.in"
5313 cp "conftest.in" "conftest.nl"
5314 $as_echo 'FGREP' >> "conftest.nl"
5315 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5317 as_fn_arith $ac_count + 1 && ac_count=$as_val
5318 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5319 # Best one so far, save it but keep looking for a better one
5320 ac_cv_path_FGREP="$ac_path_FGREP"
5321 ac_path_FGREP_max=$ac_count
5323 # 10*(2^10) chars as input seems more than enough
5324 test $ac_count -gt 10 && break
5326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5329 $ac_path_FGREP_found && break 3
5334 if test -z "$ac_cv_path_FGREP"; then
5335 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5338 ac_cv_path_FGREP=$FGREP
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5344 $as_echo "$ac_cv_path_FGREP" >&6; }
5345 FGREP="$ac_cv_path_FGREP"
5348 test -z "$GREP" && GREP=grep
5368 # Check whether --with-gnu-ld was given.
5369 if test "${with_gnu_ld+set}" = set; then :
5370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5376 if test "$GCC" = yes; then
5377 # Check if gcc -print-prog-name=ld gives a path.
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5379 $as_echo_n "checking for ld used by $CC... " >&6; }
5382 # gcc leaves a trailing carriage return which upsets mingw
5383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5388 # Accept absolute paths.
5390 re_direlt='/[^/][^/]*/\.\./'
5391 # Canonicalize the pathname of ld
5392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396 test -z "$LD" && LD="$ac_prog"
5399 # If it fails, then pretend we aren't using GCC.
5403 # If it is relative, then search for the first ld in PATH.
5407 elif test "$with_gnu_ld" = yes; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5409 $as_echo_n "checking for GNU ld... " >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5412 $as_echo_n "checking for non-GNU ld... " >&6; }
5414 if ${lt_cv_path_LD+:} false; then :
5415 $as_echo_n "(cached) " >&6
5417 if test -z "$LD"; then
5418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5419 for ac_dir in $PATH; do
5421 test -z "$ac_dir" && ac_dir=.
5422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5423 lt_cv_path_LD="$ac_dir/$ac_prog"
5424 # Check to see if the program is GNU ld. I'd rather use --version,
5425 # but apparently some variants of GNU ld only accept -v.
5426 # Break only if it was the GNU/non-GNU ld that we prefer.
5427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5428 *GNU* | *'with BFD'*)
5429 test "$with_gnu_ld" != no && break
5432 test "$with_gnu_ld" != yes && break
5439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5444 if test -n "$LD"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5446 $as_echo "$LD" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5451 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5453 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5454 if ${lt_cv_prog_gnu_ld+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5458 case `$LD -v 2>&1 </dev/null` in
5459 *GNU* | *'with BFD'*)
5460 lt_cv_prog_gnu_ld=yes
5463 lt_cv_prog_gnu_ld=no
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5468 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5469 with_gnu_ld=$lt_cv_prog_gnu_ld
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5480 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5481 if ${lt_cv_path_NM+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$NM"; then
5485 # Let the user override the test.
5488 lt_nm_to_check="${ac_tool_prefix}nm"
5489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5490 lt_nm_to_check="$lt_nm_to_check nm"
5492 for lt_tmp_nm in $lt_nm_to_check; do
5493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496 test -z "$ac_dir" && ac_dir=.
5497 tmp_nm="$ac_dir/$lt_tmp_nm"
5498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5499 # Check to see if the nm accepts a BSD-compat flag.
5500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5501 # nm: unknown option "B" ignored
5502 # Tru64's nm complains that /dev/null is an invalid object file
5503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5504 */dev/null* | *'Invalid file or object type'*)
5505 lt_cv_path_NM="$tmp_nm -B"
5509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511 lt_cv_path_NM="$tmp_nm -p"
5515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5516 continue # so that we can try to find one that supports BSD flags
5525 : ${lt_cv_path_NM=no}
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5529 $as_echo "$lt_cv_path_NM" >&6; }
5530 if test "$lt_cv_path_NM" != "no"; then
5533 # Didn't find any BSD compatible name lister, look for dumpbin.
5534 if test -n "$DUMPBIN"; then :
5535 # Let the user override the test.
5537 if test -n "$ac_tool_prefix"; then
5538 for ac_prog in dumpbin "link -dump"
5540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_DUMPBIN+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 if test -n "$DUMPBIN"; then
5548 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 DUMPBIN=$ac_cv_prog_DUMPBIN
5568 if test -n "$DUMPBIN"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5570 $as_echo "$DUMPBIN" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5577 test -n "$DUMPBIN" && break
5580 if test -z "$DUMPBIN"; then
5581 ac_ct_DUMPBIN=$DUMPBIN
5582 for ac_prog in dumpbin "link -dump"
5584 # Extract the first word of "$ac_prog", so it can be a program name with args.
5585 set dummy $ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$ac_ct_DUMPBIN"; then
5592 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5612 if test -n "$ac_ct_DUMPBIN"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5614 $as_echo "$ac_ct_DUMPBIN" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5621 test -n "$ac_ct_DUMPBIN" && break
5624 if test "x$ac_ct_DUMPBIN" = x; then
5627 case $cross_compiling:$ac_tool_warned in
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631 ac_tool_warned=yes ;;
5633 DUMPBIN=$ac_ct_DUMPBIN
5637 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5639 DUMPBIN="$DUMPBIN -symbols"
5647 if test "$DUMPBIN" != ":"; then
5651 test -z "$NM" && NM=nm
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5659 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5660 if ${lt_cv_nm_interface+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 lt_cv_nm_interface="BSD nm"
5664 echo "int some_variable = 0;" > conftest.$ac_ext
5665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5666 (eval "$ac_compile" 2>conftest.err)
5667 cat conftest.err >&5
5668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5670 cat conftest.err >&5
5671 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5672 cat conftest.out >&5
5673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5674 lt_cv_nm_interface="MS dumpbin"
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5679 $as_echo "$lt_cv_nm_interface" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5682 $as_echo_n "checking whether ln -s works... " >&6; }
5684 if test "$LN_S" = "ln -s"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5689 $as_echo "no, using $LN_S" >&6; }
5692 # find the maximum length of command line arguments
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5694 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5695 if ${lt_cv_sys_max_cmd_len+:} false; then :
5696 $as_echo_n "(cached) " >&6
5703 # On DJGPP, this test can blow up pretty badly due to problems in libc
5704 # (any single argument exceeding 2000 bytes causes a buffer overrun
5705 # during glob expansion). Even if it were fixed, the result of this
5706 # check would be larger than it should be.
5707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5711 # Under GNU Hurd, this test is not required because there is
5712 # no limit to the length of command line arguments.
5713 # Libtool will interpret -1 as no limit whatsoever
5714 lt_cv_sys_max_cmd_len=-1;
5717 cygwin* | mingw* | cegcc*)
5718 # On Win9x/ME, this test blows up -- it succeeds, but takes
5719 # about 5 minutes as the teststring grows exponentially.
5720 # Worse, since 9x/ME are not pre-emptively multitasking,
5721 # you end up with a "frozen" computer, even though with patience
5722 # the test eventually succeeds (with a max line length of 256k).
5723 # Instead, let's just punt: use the minimum linelength reported by
5724 # all of the supported platforms: 8192 (on NT/2K/XP).
5725 lt_cv_sys_max_cmd_len=8192;
5729 # On MiNT this can take a long time and run out of memory.
5730 lt_cv_sys_max_cmd_len=8192;
5734 # On AmigaOS with pdksh, this test takes hours, literally.
5735 # So we just punt and use a minimum line length of 8192.
5736 lt_cv_sys_max_cmd_len=8192;
5739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5740 # This has been around since 386BSD, at least. Likely further.
5741 if test -x /sbin/sysctl; then
5742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5743 elif test -x /usr/sbin/sysctl; then
5744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5748 # And add a safety zone
5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5754 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5755 lt_cv_sys_max_cmd_len=196608
5759 # The test takes a long time on OS/2.
5760 lt_cv_sys_max_cmd_len=8192
5764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5766 # nice to cause kernel panics so lets avoid the loop below.
5767 # First set a reasonable default.
5768 lt_cv_sys_max_cmd_len=16384
5770 if test -x /sbin/sysconfig; then
5771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5777 lt_cv_sys_max_cmd_len=102400
5779 sysv5* | sco5v6* | sysv4.2uw2*)
5780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5781 if test -n "$kargmax"; then
5782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5784 lt_cv_sys_max_cmd_len=32768
5788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5789 if test -n "$lt_cv_sys_max_cmd_len" && \
5790 test undefined != "$lt_cv_sys_max_cmd_len"; then
5791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5794 # Make teststring a little bigger before we do anything with it.
5795 # a 1K string should be a reasonable start.
5796 for i in 1 2 3 4 5 6 7 8 ; do
5797 teststring=$teststring$teststring
5799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5800 # If test is not a shell built-in, we'll probably end up computing a
5801 # maximum length that is only half of the actual maximum length, but
5803 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5804 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5805 test $i != 17 # 1/2 MB should be enough
5808 teststring=$teststring$teststring
5810 # Only check the string length outside the loop.
5811 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5813 # Add a significant safety factor because C++ compilers can tack on
5814 # massive amounts of additional arguments before passing them to the
5815 # linker. It appears as though 1/2 is a usable value.
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5823 if test -n $lt_cv_sys_max_cmd_len ; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5828 $as_echo "none" >&6; }
5830 max_cmd_len=$lt_cv_sys_max_cmd_len
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5843 # Try some XSI features
5846 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5848 && eval 'test $(( 1 + 1 )) -eq 2 \
5849 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5852 $as_echo "$xsi_shell" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5860 && lt_shell_append=yes
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5862 $as_echo "$lt_shell_append" >&6; }
5865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5875 # test EBCDIC or ASCII
5876 case `echo X|tr X '\101'` in
5877 A) # ASCII based system
5878 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5879 lt_SP2NL='tr \040 \012'
5880 lt_NL2SP='tr \015\012 \040\040'
5882 *) # EBCDIC based system
5883 lt_SP2NL='tr \100 \n'
5884 lt_NL2SP='tr \r\n \100\100'
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5898 if ${lt_cv_to_host_file_cmd+:} false; then :
5899 $as_echo_n "(cached) " >&6
5904 *-*-mingw* ) # actually msys
5905 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5908 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5910 * ) # otherwise, assume *nix
5911 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5917 *-*-mingw* ) # actually msys
5918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5921 lt_cv_to_host_file_cmd=func_convert_file_noop
5923 * ) # otherwise, assume *nix
5924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5928 * ) # unhandled hosts (and "normal" native builds)
5929 lt_cv_to_host_file_cmd=func_convert_file_noop
5935 to_host_file_cmd=$lt_cv_to_host_file_cmd
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5945 if ${lt_cv_to_tool_file_cmd+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 #assume ordinary cross tools, or native build.
5949 lt_cv_to_tool_file_cmd=func_convert_file_noop
5953 *-*-mingw* ) # actually msys
5954 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5972 if ${lt_cv_ld_reload_flag+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 lt_cv_ld_reload_flag='-r'
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5979 reload_flag=$lt_cv_ld_reload_flag
5980 case $reload_flag in
5982 *) reload_flag=" $reload_flag" ;;
5984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986 cygwin* | mingw* | pw32* | cegcc*)
5987 if test "$GCC" != yes; then
5992 if test "$GCC" = yes; then
5993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5995 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_OBJDUMP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$OBJDUMP"; then
6017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 OBJDUMP=$ac_cv_prog_OBJDUMP
6037 if test -n "$OBJDUMP"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6039 $as_echo "$OBJDUMP" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6047 if test -z "$ac_cv_prog_OBJDUMP"; then
6048 ac_ct_OBJDUMP=$OBJDUMP
6049 # Extract the first word of "objdump", so it can be a program name with args.
6050 set dummy objdump; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$ac_ct_OBJDUMP"; then
6057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6077 if test -n "$ac_ct_OBJDUMP"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6079 $as_echo "$ac_ct_OBJDUMP" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_ct_OBJDUMP" = x; then
6088 case $cross_compiling:$ac_tool_warned in
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6094 OBJDUMP=$ac_ct_OBJDUMP
6097 OBJDUMP="$ac_cv_prog_OBJDUMP"
6100 test -z "$OBJDUMP" && OBJDUMP=objdump
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6109 if ${lt_cv_deplibs_check_method+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 lt_cv_file_magic_cmd='$MAGIC_CMD'
6113 lt_cv_file_magic_test_file=
6114 lt_cv_deplibs_check_method='unknown'
6115 # Need to set the preceding variable on all platforms that support
6116 # interlibrary dependencies.
6117 # 'none' -- dependencies not supported.
6118 # `unknown' -- same as none, but documents that we really don't know.
6119 # 'pass_all' -- all dependencies passed with no checks.
6120 # 'test_compile' -- check by making test program.
6121 # 'file_magic [[regex]]' -- check by looking for files in library path
6122 # which responds to the $file_magic_cmd with a given extended regex.
6123 # If you have `file' or equivalent on your system and you're not sure
6124 # whether `pass_all' will *always* work, you probably want this one.
6128 lt_cv_deplibs_check_method=pass_all
6132 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6137 lt_cv_file_magic_cmd='/usr/bin/file -L'
6138 lt_cv_file_magic_test_file=/shlib/libc.so
6142 # func_win32_libid is a shell function defined in ltmain.sh
6143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144 lt_cv_file_magic_cmd='func_win32_libid'
6148 # Base MSYS/MinGW do not provide the 'file' command needed by
6149 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6150 # unless we find 'file', for example because we are cross-compiling.
6151 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6152 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6154 lt_cv_file_magic_cmd='func_win32_libid'
6156 # Keep this pattern in sync with the one in func_win32_libid.
6157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6158 lt_cv_file_magic_cmd='$OBJDUMP -f'
6163 # use the weaker test based on 'objdump'. See mingw*.
6164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6165 lt_cv_file_magic_cmd='$OBJDUMP -f'
6168 darwin* | rhapsody*)
6169 lt_cv_deplibs_check_method=pass_all
6172 freebsd* | dragonfly*)
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6176 # Not sure whether the presence of OpenBSD here was a mistake.
6177 # Let's accept both of them until this is cleared up.
6178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6179 lt_cv_file_magic_cmd=/usr/bin/file
6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6184 lt_cv_deplibs_check_method=pass_all
6189 lt_cv_deplibs_check_method=pass_all
6192 hpux10.20* | hpux11*)
6193 lt_cv_file_magic_cmd=/usr/bin/file
6196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6200 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6215 irix5* | irix6* | nonstopux*)
6217 *-32|*"-32 ") libmagic=32-bit;;
6218 *-n32|*"-n32 ") libmagic=N32;;
6219 *-64|*"-64 ") libmagic=64-bit;;
6220 *) libmagic=never-match;;
6222 lt_cv_deplibs_check_method=pass_all
6225 # This must be glibc/ELF.
6226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6227 lt_cv_deplibs_check_method=pass_all
6230 netbsd* | netbsdelf*-gnu)
6231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6240 lt_cv_file_magic_cmd=/usr/bin/file
6241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6245 lt_cv_deplibs_check_method=pass_all
6249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6256 osf3* | osf4* | osf5*)
6257 lt_cv_deplibs_check_method=pass_all
6261 lt_cv_deplibs_check_method=pass_all
6265 lt_cv_deplibs_check_method=pass_all
6268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6269 lt_cv_deplibs_check_method=pass_all
6273 case $host_vendor in
6275 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]'
6276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6279 lt_cv_deplibs_check_method=pass_all
6282 lt_cv_file_magic_cmd='/bin/file'
6283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6286 lt_cv_file_magic_cmd='/bin/file'
6287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6288 lt_cv_file_magic_test_file=/lib/libc.so
6291 lt_cv_deplibs_check_method=pass_all
6294 lt_cv_deplibs_check_method=pass_all
6300 lt_cv_deplibs_check_method=pass_all
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6306 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6310 if test "$build" = "$host"; then
6313 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6316 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6322 file_magic_cmd=$lt_cv_file_magic_cmd
6323 deplibs_check_method=$lt_cv_deplibs_check_method
6324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_DLLTOOL+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$DLLTOOL"; then
6356 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 DLLTOOL=$ac_cv_prog_DLLTOOL
6376 if test -n "$DLLTOOL"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6378 $as_echo "$DLLTOOL" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6386 if test -z "$ac_cv_prog_DLLTOOL"; then
6387 ac_ct_DLLTOOL=$DLLTOOL
6388 # Extract the first word of "dlltool", so it can be a program name with args.
6389 set dummy dlltool; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$ac_ct_DLLTOOL"; then
6396 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6416 if test -n "$ac_ct_DLLTOOL"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6418 $as_echo "$ac_ct_DLLTOOL" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6424 if test "x$ac_ct_DLLTOOL" = x; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6433 DLLTOOL=$ac_ct_DLLTOOL
6436 DLLTOOL="$ac_cv_prog_DLLTOOL"
6439 test -z "$DLLTOOL" && DLLTOOL=dlltool
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6448 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6449 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6450 $as_echo_n "(cached) " >&6
6452 lt_cv_sharedlib_from_linklib_cmd='unknown'
6455 cygwin* | mingw* | pw32* | cegcc*)
6456 # two different shell functions defined in ltmain.sh
6457 # decide which to use based on capabilities of $DLLTOOL
6458 case `$DLLTOOL --help 2>&1` in
6459 *--identify-strict*)
6460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6463 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6468 # fallback: assume linklib IS sharedlib
6469 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6475 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6476 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6477 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6485 if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_AR+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 if test -n "$AR"; then
6496 ac_cv_prog_AR="$AR" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 if test -n "$AR"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6518 $as_echo "$AR" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6525 test -n "$AR" && break
6528 if test -z "$AR"; then
6532 # Extract the first word of "$ac_prog", so it can be a program name with args.
6533 set dummy $ac_prog; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_AR"; then
6540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_AR="$ac_prog"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6560 if test -n "$ac_ct_AR"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6562 $as_echo "$ac_ct_AR" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6569 test -n "$ac_ct_AR" && break
6572 if test "x$ac_ct_AR" = x; then
6575 case $cross_compiling:$ac_tool_warned in
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6599 $as_echo_n "checking for archiver @FILE support... " >&6; }
6600 if ${lt_cv_ar_at_file+:} false; then :
6601 $as_echo_n "(cached) " >&6
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 echo conftest.$ac_objext > conftest.lst
6617 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6619 (eval $lt_ar_try) 2>&5
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }
6623 if test "$ac_status" -eq 0; then
6624 # Ensure the archiver fails upon bogus file names.
6625 rm -f conftest.$ac_objext libconftest.a
6626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6627 (eval $lt_ar_try) 2>&5
6629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630 test $ac_status = 0; }
6631 if test "$ac_status" -ne 0; then
6635 rm -f conftest.* libconftest.a
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6642 $as_echo "$lt_cv_ar_at_file" >&6; }
6644 if test "x$lt_cv_ar_at_file" = xno; then
6647 archiver_list_spec=$lt_cv_ar_at_file
6656 if test -n "$ac_tool_prefix"; then
6657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6658 set dummy ${ac_tool_prefix}strip; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_STRIP+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 if test -n "$STRIP"; then
6665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 STRIP=$ac_cv_prog_STRIP
6685 if test -n "$STRIP"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6687 $as_echo "$STRIP" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6695 if test -z "$ac_cv_prog_STRIP"; then
6697 # Extract the first word of "strip", so it can be a program name with args.
6698 set dummy strip; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 if test -n "$ac_ct_STRIP"; then
6705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714 ac_cv_prog_ac_ct_STRIP="strip"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6725 if test -n "$ac_ct_STRIP"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6727 $as_echo "$ac_ct_STRIP" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6733 if test "x$ac_ct_STRIP" = x; then
6736 case $cross_compiling:$ac_tool_warned in
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6745 STRIP="$ac_cv_prog_STRIP"
6748 test -z "$STRIP" && STRIP=:
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_RANLIB+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$RANLIB"; then
6764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 RANLIB=$ac_cv_prog_RANLIB
6784 if test -n "$RANLIB"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6786 $as_echo "$RANLIB" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6794 if test -z "$ac_cv_prog_RANLIB"; then
6795 ac_ct_RANLIB=$RANLIB
6796 # Extract the first word of "ranlib", so it can be a program name with args.
6797 set dummy ranlib; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6801 $as_echo_n "(cached) " >&6
6803 if test -n "$ac_ct_RANLIB"; then
6804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_RANLIB="ranlib"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6824 if test -n "$ac_ct_RANLIB"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6826 $as_echo "$ac_ct_RANLIB" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6832 if test "x$ac_ct_RANLIB" = x; then
6835 case $cross_compiling:$ac_tool_warned in
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6841 RANLIB=$ac_ct_RANLIB
6844 RANLIB="$ac_cv_prog_RANLIB"
6847 test -z "$RANLIB" && RANLIB=:
6854 # Determine commands to create old-style static archives.
6855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6856 old_postinstall_cmds='chmod 644 $oldlib'
6857 old_postuninstall_cmds=
6859 if test -n "$RANLIB"; then
6862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6865 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6868 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6873 lock_old_archive_extraction=yes ;;
6875 lock_old_archive_extraction=no ;;
6916 # If no C compiler was specified, use CC.
6919 # If no C compiler flags were specified, use CFLAGS.
6920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6922 # Allow CC to be a program name with arguments.
6926 # Check for command to grab the raw symbol name followed by C symbol from nm.
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6928 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6929 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6930 $as_echo_n "(cached) " >&6
6933 # These are sane defaults that work on at least a few old systems.
6934 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6936 # Character class describing NM global symbol codes.
6937 symcode='[BCDEGRST]'
6939 # Regexp to match symbols that can be accessed directly from C.
6940 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6942 # Define system-specific variables.
6947 cygwin* | mingw* | pw32* | cegcc*)
6948 symcode='[ABCDGISTW]'
6951 if test "$host_cpu" = ia64; then
6952 symcode='[ABCDEGRST]'
6956 symcode='[BCDEGRST]'
6959 symcode='[BCDEGQRST]'
6970 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6978 # If we're using GNU nm, then use its standard symbol codes.
6979 case `$NM -V 2>&1` in
6980 *GNU* | *'with BFD'*)
6981 symcode='[ABCDGIRSTW]' ;;
6984 # Transform an extracted symbol line into a proper C declaration.
6985 # Some systems (esp. on ia64) link data and code symbols differently,
6986 # so use this general approach.
6987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6989 # Transform an extracted symbol line into symbol name and symbol address
6990 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6991 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'"
6993 # Handle CRLF in mingw tool chain
6997 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7001 # Try without a prefix underscore, then with it.
7002 for ac_symprfx in "" "_"; do
7004 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005 symxfrm="\\1 $ac_symprfx\\2 \\2"
7007 # Write the raw and C identifiers.
7008 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009 # Fake it for dumpbin and say T for any non-static function
7010 # and D for any global variable.
7011 # Also find C++ and __fastcall symbols from MSVC++,
7012 # which start with @ or ?.
7013 lt_cv_sys_global_symbol_pipe="$AWK '"\
7014 " {last_section=section; section=\$ 3};"\
7015 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017 " \$ 0!~/External *\|/{next};"\
7018 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7019 " {if(hide[section]) next};"\
7020 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7021 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7022 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7023 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7024 " ' prfx=^$ac_symprfx"
7026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7028 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7030 # Check to see that the pipe works correctly.
7034 cat > conftest.$ac_ext <<_LT_EOF
7039 void nm_test_func(void);
7040 void nm_test_func(void){}
7044 int main(){nm_test_var='a';nm_test_func();return(0);}
7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048 (eval $ac_compile) 2>&5
7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }; then
7052 # Now try to grab the symbols.
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7055 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; } && test -s "$nlist"; then
7059 # Try sorting and uniquifying the output.
7060 if sort "$nlist" | uniq > "$nlist"T; then
7061 mv -f "$nlist"T "$nlist"
7066 # Make sure that we snagged all the symbols we need.
7067 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7068 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7069 cat <<_LT_EOF > conftest.$ac_ext
7070 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7071 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7072 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7073 relocations are performed -- see ld's documentation on pseudo-relocs. */
7074 # define LT_DLSYM_CONST
7075 #elif defined(__osf__)
7076 /* This system does not cope well with relocations in const data. */
7077 # define LT_DLSYM_CONST
7079 # define LT_DLSYM_CONST const
7087 # Now generate the symbol file.
7088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7090 cat <<_LT_EOF >> conftest.$ac_ext
7092 /* The mapping between symbol names and symbols. */
7093 LT_DLSYM_CONST struct {
7097 lt__PROGRAM__LTX_preloaded_symbols[] =
7099 { "@PROGRAM@", (void *) 0 },
7101 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7102 cat <<\_LT_EOF >> conftest.$ac_ext
7106 /* This works around a problem in FreeBSD linker */
7107 #ifdef FREEBSD_WORKAROUND
7108 static const void *lt_preloaded_setup() {
7109 return lt__PROGRAM__LTX_preloaded_symbols;
7117 # Now try linking the two files.
7118 mv conftest.$ac_objext conftstm.$ac_objext
7119 lt_globsym_save_LIBS=$LIBS
7120 lt_globsym_save_CFLAGS=$CFLAGS
7121 LIBS="conftstm.$ac_objext"
7122 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7124 (eval $ac_link) 2>&5
7126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7130 LIBS=$lt_globsym_save_LIBS
7131 CFLAGS=$lt_globsym_save_CFLAGS
7133 echo "cannot find nm_test_func in $nlist" >&5
7136 echo "cannot find nm_test_var in $nlist" >&5
7139 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 echo "$progname: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7145 rm -rf conftest* conftst*
7147 # Do not use the global_symbol_pipe unless it works.
7148 if test "$pipe_works" = yes; then
7151 lt_cv_sys_global_symbol_pipe=
7157 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7158 lt_cv_sys_global_symbol_to_cdecl=
7160 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7162 $as_echo "failed" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7165 $as_echo "ok" >&6; }
7168 # Response file support.
7169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7170 nm_file_list_spec='@'
7171 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7172 nm_file_list_spec='@'
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7202 $as_echo_n "checking for sysroot... " >&6; }
7204 # Check whether --with-sysroot was given.
7205 if test "${with_sysroot+set}" = set; then :
7206 withval=$with_sysroot;
7213 case ${with_sysroot} in #(
7215 if test "$GCC" = yes; then
7216 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7220 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7226 $as_echo "${with_sysroot}" >&6; }
7227 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7232 $as_echo "${lt_sysroot:-no}" >&6; }
7238 # Check whether --enable-libtool-lock was given.
7239 if test "${enable_libtool_lock+set}" = set; then :
7240 enableval=$enable_libtool_lock;
7243 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7245 # Some flags need to be propagated to the compiler or linker for good
7249 # Find out which ABI we are using.
7250 echo 'int i;' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 case `/usr/bin/file conftest.$ac_objext` in
7268 # Find out which ABI we are using.
7269 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7271 (eval $ac_compile) 2>&5
7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; }; then
7275 if test "$lt_cv_prog_gnu_ld" = yes; then
7276 case `/usr/bin/file conftest.$ac_objext` in
7278 LD="${LD-ld} -melf32bsmip"
7281 LD="${LD-ld} -melf32bmipn32"
7284 LD="${LD-ld} -melf64bmip"
7288 case `/usr/bin/file conftest.$ac_objext` in
7304 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7305 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7306 # Find out which ABI we are using.
7307 echo 'int i;' > conftest.$ac_ext
7308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309 (eval $ac_compile) 2>&5
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 case `/usr/bin/file conftest.o` in
7316 x86_64-*kfreebsd*-gnu)
7317 LD="${LD-ld} -m elf_i386_fbsd"
7320 case `/usr/bin/file conftest.o` in
7322 LD="${LD-ld} -m elf32_x86_64"
7325 LD="${LD-ld} -m elf_i386"
7330 LD="${LD-ld} -m elf32lppclinux"
7333 LD="${LD-ld} -m elf32ppclinux"
7336 LD="${LD-ld} -m elf_s390"
7339 LD="${LD-ld} -m elf32_sparc"
7345 x86_64-*kfreebsd*-gnu)
7346 LD="${LD-ld} -m elf_x86_64_fbsd"
7349 LD="${LD-ld} -m elf_x86_64"
7352 LD="${LD-ld} -m elf64lppc"
7355 LD="${LD-ld} -m elf64ppc"
7357 s390*-*linux*|s390*-*tpf*)
7358 LD="${LD-ld} -m elf64_s390"
7361 LD="${LD-ld} -m elf64_sparc"
7371 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7372 SAVE_CFLAGS="$CFLAGS"
7373 CFLAGS="$CFLAGS -belf"
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7375 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7376 if ${lt_cv_cc_needs_belf+:} false; then :
7377 $as_echo_n "(cached) " >&6
7380 ac_cpp='$CPP $CPPFLAGS'
7381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_c_try_link "$LINENO"; then :
7397 lt_cv_cc_needs_belf=yes
7399 lt_cv_cc_needs_belf=no
7401 rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7411 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7412 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7413 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7414 CFLAGS="$SAVE_CFLAGS"
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 case `/usr/bin/file conftest.o` in
7427 case $lt_cv_prog_gnu_ld in
7431 LD="${LD-ld} -m elf_x86_64"
7434 LD="${LD-ld} -m elf64_sparc"
7437 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7438 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7443 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7455 need_locks="$enable_libtool_lock"
7457 if test -n "$ac_tool_prefix"; then
7458 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}mt; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7463 $as_echo_n "(cached) " >&6
7465 if test -n "$MANIFEST_TOOL"; then
7466 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7486 if test -n "$MANIFEST_TOOL"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7488 $as_echo "$MANIFEST_TOOL" >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7496 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7497 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7498 # Extract the first word of "mt", so it can be a program name with args.
7499 set dummy mt; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$ac_ct_MANIFEST_TOOL"; then
7506 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7526 if test -n "$ac_ct_MANIFEST_TOOL"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7528 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7534 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7537 case $cross_compiling:$ac_tool_warned in
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7543 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7546 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7551 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7552 if ${lt_cv_path_mainfest_tool+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 lt_cv_path_mainfest_tool=no
7556 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7557 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7558 cat conftest.err >&5
7559 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7560 lt_cv_path_mainfest_tool=yes
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7565 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7566 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7576 rhapsody* | darwin*)
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7583 $as_echo_n "(cached) " >&6
7585 if test -n "$DSYMUTIL"; then
7586 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7606 if test -n "$DSYMUTIL"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7608 $as_echo "$DSYMUTIL" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7616 if test -z "$ac_cv_prog_DSYMUTIL"; then
7617 ac_ct_DSYMUTIL=$DSYMUTIL
7618 # Extract the first word of "dsymutil", so it can be a program name with args.
7619 set dummy dsymutil; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7623 $as_echo_n "(cached) " >&6
7625 if test -n "$ac_ct_DSYMUTIL"; then
7626 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7646 if test -n "$ac_ct_DSYMUTIL"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7648 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7654 if test "x$ac_ct_DSYMUTIL" = x; then
7657 case $cross_compiling:$ac_tool_warned in
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7663 DSYMUTIL=$ac_ct_DSYMUTIL
7666 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7669 if test -n "$ac_tool_prefix"; then
7670 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_NMEDIT+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$NMEDIT"; then
7678 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 NMEDIT=$ac_cv_prog_NMEDIT
7698 if test -n "$NMEDIT"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7700 $as_echo "$NMEDIT" >&6; }
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7708 if test -z "$ac_cv_prog_NMEDIT"; then
7709 ac_ct_NMEDIT=$NMEDIT
7710 # Extract the first word of "nmedit", so it can be a program name with args.
7711 set dummy nmedit; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$ac_ct_NMEDIT"; then
7718 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7738 if test -n "$ac_ct_NMEDIT"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7740 $as_echo "$ac_ct_NMEDIT" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7746 if test "x$ac_ct_NMEDIT" = x; then
7749 case $cross_compiling:$ac_tool_warned in
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7755 NMEDIT=$ac_ct_NMEDIT
7758 NMEDIT="$ac_cv_prog_NMEDIT"
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_LIPO+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 if test -n "$LIPO"; then
7770 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 LIPO=$ac_cv_prog_LIPO
7790 if test -n "$LIPO"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7792 $as_echo "$LIPO" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7800 if test -z "$ac_cv_prog_LIPO"; then
7802 # Extract the first word of "lipo", so it can be a program name with args.
7803 set dummy lipo; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7807 $as_echo_n "(cached) " >&6
7809 if test -n "$ac_ct_LIPO"; then
7810 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819 ac_cv_prog_ac_ct_LIPO="lipo"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7830 if test -n "$ac_ct_LIPO"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7832 $as_echo "$ac_ct_LIPO" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7838 if test "x$ac_ct_LIPO" = x; then
7841 case $cross_compiling:$ac_tool_warned in
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7850 LIPO="$ac_cv_prog_LIPO"
7853 if test -n "$ac_tool_prefix"; then
7854 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7855 set dummy ${ac_tool_prefix}otool; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_OTOOL+:} false; then :
7859 $as_echo_n "(cached) " >&6
7861 if test -n "$OTOOL"; then
7862 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 OTOOL=$ac_cv_prog_OTOOL
7882 if test -n "$OTOOL"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7884 $as_echo "$OTOOL" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7892 if test -z "$ac_cv_prog_OTOOL"; then
7894 # Extract the first word of "otool", so it can be a program name with args.
7895 set dummy otool; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7899 $as_echo_n "(cached) " >&6
7901 if test -n "$ac_ct_OTOOL"; then
7902 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911 ac_cv_prog_ac_ct_OTOOL="otool"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7922 if test -n "$ac_ct_OTOOL"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7924 $as_echo "$ac_ct_OTOOL" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7930 if test "x$ac_ct_OTOOL" = x; then
7933 case $cross_compiling:$ac_tool_warned in
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7937 ac_tool_warned=yes ;;
7942 OTOOL="$ac_cv_prog_OTOOL"
7945 if test -n "$ac_tool_prefix"; then
7946 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7947 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_OTOOL64+:} false; then :
7951 $as_echo_n "(cached) " >&6
7953 if test -n "$OTOOL64"; then
7954 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 OTOOL64=$ac_cv_prog_OTOOL64
7974 if test -n "$OTOOL64"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7976 $as_echo "$OTOOL64" >&6; }
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7984 if test -z "$ac_cv_prog_OTOOL64"; then
7985 ac_ct_OTOOL64=$OTOOL64
7986 # Extract the first word of "otool64", so it can be a program name with args.
7987 set dummy otool64; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7991 $as_echo_n "(cached) " >&6
7993 if test -n "$ac_ct_OTOOL64"; then
7994 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_ac_ct_OTOOL64="otool64"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8014 if test -n "$ac_ct_OTOOL64"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8016 $as_echo "$ac_ct_OTOOL64" >&6; }
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8022 if test "x$ac_ct_OTOOL64" = x; then
8025 case $cross_compiling:$ac_tool_warned in
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029 ac_tool_warned=yes ;;
8031 OTOOL64=$ac_ct_OTOOL64
8034 OTOOL64="$ac_cv_prog_OTOOL64"
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8064 $as_echo_n "checking for -single_module linker flag... " >&6; }
8065 if ${lt_cv_apple_cc_single_mod+:} false; then :
8066 $as_echo_n "(cached) " >&6
8068 lt_cv_apple_cc_single_mod=no
8069 if test -z "${LT_MULTI_MODULE}"; then
8070 # By default we will add the -single_module flag. You can override
8071 # by either setting the environment variable LT_MULTI_MODULE
8072 # non-empty at configure time, or by adding -multi_module to the
8074 rm -rf libconftest.dylib*
8075 echo "int foo(void){return 1;}" > conftest.c
8076 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8077 -dynamiclib -Wl,-single_module conftest.c" >&5
8078 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8079 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8081 # If there is a non-empty error log, and "single_module"
8082 # appears in it, assume the flag caused a linker warning
8083 if test -s conftest.err && $GREP single_module conftest.err; then
8084 cat conftest.err >&5
8085 # Otherwise, if the output was created with a 0 exit code from
8086 # the compiler, it worked.
8087 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8088 lt_cv_apple_cc_single_mod=yes
8090 cat conftest.err >&5
8092 rm -rf libconftest.dylib*
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8097 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8100 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8101 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8102 $as_echo_n "(cached) " >&6
8104 lt_cv_ld_exported_symbols_list=no
8105 save_LDFLAGS=$LDFLAGS
8106 echo "_main" > conftest.sym
8107 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8119 if ac_fn_c_try_link "$LINENO"; then :
8120 lt_cv_ld_exported_symbols_list=yes
8122 lt_cv_ld_exported_symbols_list=no
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 LDFLAGS="$save_LDFLAGS"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8130 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8133 $as_echo_n "checking for -force_load linker flag... " >&6; }
8134 if ${lt_cv_ld_force_load+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 lt_cv_ld_force_load=no
8138 cat > conftest.c << _LT_EOF
8139 int forced_loaded() { return 2;}
8141 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8142 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8143 echo "$AR cru libconftest.a conftest.o" >&5
8144 $AR cru libconftest.a conftest.o 2>&5
8145 echo "$RANLIB libconftest.a" >&5
8146 $RANLIB libconftest.a 2>&5
8147 cat > conftest.c << _LT_EOF
8148 int main() { return 0;}
8150 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8151 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8153 if test -s conftest.err && $GREP force_load conftest.err; then
8154 cat conftest.err >&5
8155 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8156 lt_cv_ld_force_load=yes
8158 cat conftest.err >&5
8160 rm -f conftest.err libconftest.a conftest conftest.c
8161 rm -rf conftest.dSYM
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8165 $as_echo "$lt_cv_ld_force_load" >&6; }
8167 rhapsody* | darwin1.[012])
8168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8171 darwin*) # darwin 5.x on
8172 # if running on 10.5 or later, the deployment target defaults
8173 # to the OS version, if on x86, and 10.4, the deployment
8174 # target defaults to 10.4. Don't you love it?
8175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8176 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8186 _lt_dar_single_mod='$single_module'
8188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8193 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8194 _lt_dsymutil='~$DSYMUTIL $lib || :'
8202 ac_cpp='$CPP $CPPFLAGS'
8203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8208 # On Suns, sometimes $CPP names a directory.
8209 if test -n "$CPP" && test -d "$CPP"; then
8212 if test -z "$CPP"; then
8213 if ${ac_cv_prog_CPP+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 # Double quotes because CPP needs to be expanded
8217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8220 for ac_c_preproc_warn_flag in '' yes
8222 # Use a header file that comes with gcc, so configuring glibc
8223 # with a fresh cross-compiler works.
8224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8225 # <limits.h> exists even on freestanding compilers.
8226 # On the NeXT, cc -E runs the code through the compiler's parser,
8227 # not just through cpp. "Syntax error" is here to catch this case.
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 # include <limits.h>
8233 # include <assert.h>
8237 if ac_fn_c_try_cpp "$LINENO"; then :
8240 # Broken: fails on valid input.
8243 rm -f conftest.err conftest.i conftest.$ac_ext
8245 # OK, works on sane cases. Now check whether nonexistent headers
8246 # can be detected and how.
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 #include <ac_nonexistent.h>
8251 if ac_fn_c_try_cpp "$LINENO"; then :
8252 # Broken: success on invalid input.
8255 # Passes both tests.
8259 rm -f conftest.err conftest.i conftest.$ac_ext
8262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8263 rm -f conftest.i conftest.err conftest.$ac_ext
8264 if $ac_preproc_ok; then :
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8277 $as_echo "$CPP" >&6; }
8279 for ac_c_preproc_warn_flag in '' yes
8281 # Use a header file that comes with gcc, so configuring glibc
8282 # with a fresh cross-compiler works.
8283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 # <limits.h> exists even on freestanding compilers.
8285 # On the NeXT, cc -E runs the code through the compiler's parser,
8286 # not just through cpp. "Syntax error" is here to catch this case.
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8290 # include <limits.h>
8292 # include <assert.h>
8296 if ac_fn_c_try_cpp "$LINENO"; then :
8299 # Broken: fails on valid input.
8302 rm -f conftest.err conftest.i conftest.$ac_ext
8304 # OK, works on sane cases. Now check whether nonexistent headers
8305 # can be detected and how.
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <ac_nonexistent.h>
8310 if ac_fn_c_try_cpp "$LINENO"; then :
8311 # Broken: success on invalid input.
8314 # Passes both tests.
8318 rm -f conftest.err conftest.i conftest.$ac_ext
8321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8322 rm -f conftest.i conftest.err conftest.$ac_ext
8323 if $ac_preproc_ok; then :
8326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8328 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8329 See \`config.log' for more details" "$LINENO" 5; }
8333 ac_cpp='$CPP $CPPFLAGS'
8334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8340 $as_echo_n "checking for ANSI C header files... " >&6; }
8341 if ${ac_cv_header_stdc+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 ac_cv_header_stdc=yes
8362 ac_cv_header_stdc=no
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 if test $ac_cv_header_stdc = yes; then
8367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374 $EGREP "memchr" >/dev/null 2>&1; then :
8377 ac_cv_header_stdc=no
8383 if test $ac_cv_header_stdc = yes; then
8384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391 $EGREP "free" >/dev/null 2>&1; then :
8394 ac_cv_header_stdc=no
8400 if test $ac_cv_header_stdc = yes; then
8401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8402 if test "$cross_compiling" = yes; then :
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8409 #if ((' ' & 0x0FF) == 0x020)
8410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8413 # define ISLOWER(c) \
8414 (('a' <= (c) && (c) <= 'i') \
8415 || ('j' <= (c) && (c) <= 'r') \
8416 || ('s' <= (c) && (c) <= 'z'))
8417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8425 for (i = 0; i < 256; i++)
8426 if (XOR (islower (i), ISLOWER (i))
8427 || toupper (i) != TOUPPER (i))
8432 if ac_fn_c_try_run "$LINENO"; then :
8435 ac_cv_header_stdc=no
8437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8438 conftest.$ac_objext conftest.beam conftest.$ac_ext
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8444 $as_echo "$ac_cv_header_stdc" >&6; }
8445 if test $ac_cv_header_stdc = yes; then
8447 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8451 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8453 inttypes.h stdint.h unistd.h
8455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8458 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8459 cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8468 for ac_header in dlfcn.h
8470 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8472 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8473 cat >>confdefs.h <<_ACEOF
8474 #define HAVE_DLFCN_H 1
8484 func_stripname_cnf ()
8487 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8488 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8490 } # func_stripname_cnf
8497 enable_win32_dll=yes
8500 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8501 if test -n "$ac_tool_prefix"; then
8502 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8503 set dummy ${ac_tool_prefix}as; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_AS+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 if test -n "$AS"; then
8510 ac_cv_prog_AS="$AS" # Let the user override the test.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_AS="${ac_tool_prefix}as"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 if test -n "$AS"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8532 $as_echo "$AS" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8540 if test -z "$ac_cv_prog_AS"; then
8542 # Extract the first word of "as", so it can be a program name with args.
8543 set dummy as; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8547 $as_echo_n "(cached) " >&6
8549 if test -n "$ac_ct_AS"; then
8550 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_ac_ct_AS="as"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8570 if test -n "$ac_ct_AS"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8572 $as_echo "$ac_ct_AS" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8578 if test "x$ac_ct_AS" = x; then
8581 case $cross_compiling:$ac_tool_warned in
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8593 if test -n "$ac_tool_prefix"; then
8594 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_DLLTOOL+:} false; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -n "$DLLTOOL"; then
8602 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 DLLTOOL=$ac_cv_prog_DLLTOOL
8622 if test -n "$DLLTOOL"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8624 $as_echo "$DLLTOOL" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 if test -z "$ac_cv_prog_DLLTOOL"; then
8633 ac_ct_DLLTOOL=$DLLTOOL
8634 # Extract the first word of "dlltool", so it can be a program name with args.
8635 set dummy dlltool; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 if test -n "$ac_ct_DLLTOOL"; then
8642 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8662 if test -n "$ac_ct_DLLTOOL"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8664 $as_echo "$ac_ct_DLLTOOL" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8670 if test "x$ac_ct_DLLTOOL" = x; then
8673 case $cross_compiling:$ac_tool_warned in
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8679 DLLTOOL=$ac_ct_DLLTOOL
8682 DLLTOOL="$ac_cv_prog_DLLTOOL"
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_OBJDUMP+:} false; then :
8691 $as_echo_n "(cached) " >&6
8693 if test -n "$OBJDUMP"; then
8694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 OBJDUMP=$ac_cv_prog_OBJDUMP
8714 if test -n "$OBJDUMP"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8716 $as_echo "$OBJDUMP" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8724 if test -z "$ac_cv_prog_OBJDUMP"; then
8725 ac_ct_OBJDUMP=$OBJDUMP
8726 # Extract the first word of "objdump", so it can be a program name with args.
8727 set dummy objdump; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8731 $as_echo_n "(cached) " >&6
8733 if test -n "$ac_ct_OBJDUMP"; then
8734 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8754 if test -n "$ac_ct_OBJDUMP"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8756 $as_echo "$ac_ct_OBJDUMP" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8762 if test "x$ac_ct_OBJDUMP" = x; then
8765 case $cross_compiling:$ac_tool_warned in
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8769 ac_tool_warned=yes ;;
8771 OBJDUMP=$ac_ct_OBJDUMP
8774 OBJDUMP="$ac_cv_prog_OBJDUMP"
8780 test -z "$AS" && AS=as
8786 test -z "$DLLTOOL" && DLLTOOL=dlltool
8792 test -z "$OBJDUMP" && OBJDUMP=objdump
8804 # Check whether --enable-shared was given.
8805 if test "${enable_shared+set}" = set; then :
8806 enableval=$enable_shared; p=${PACKAGE-default}
8808 yes) enable_shared=yes ;;
8809 no) enable_shared=no ;;
8812 # Look at the argument we got. We use all the common list separators.
8813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8814 for pkg in $enableval; do
8816 if test "X$pkg" = "X$p"; then
8835 # Check whether --enable-static was given.
8836 if test "${enable_static+set}" = set; then :
8837 enableval=$enable_static; p=${PACKAGE-default}
8839 yes) enable_static=yes ;;
8840 no) enable_static=no ;;
8843 # Look at the argument we got. We use all the common list separators.
8844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8845 for pkg in $enableval; do
8847 if test "X$pkg" = "X$p"; then
8867 # Check whether --with-pic was given.
8868 if test "${with_pic+set}" = set; then :
8869 withval=$with_pic; lt_p=${PACKAGE-default}
8871 yes|no) pic_mode=$withval ;;
8874 # Look at the argument we got. We use all the common list separators.
8875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8876 for lt_pkg in $withval; do
8878 if test "X$lt_pkg" = "X$lt_p"; then
8890 test -z "$pic_mode" && pic_mode=default
8898 # Check whether --enable-fast-install was given.
8899 if test "${enable_fast_install+set}" = set; then :
8900 enableval=$enable_fast_install; p=${PACKAGE-default}
8902 yes) enable_fast_install=yes ;;
8903 no) enable_fast_install=no ;;
8905 enable_fast_install=no
8906 # Look at the argument we got. We use all the common list separators.
8907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8908 for pkg in $enableval; do
8910 if test "X$pkg" = "X$p"; then
8911 enable_fast_install=yes
8918 enable_fast_install=yes
8931 # This can be used to rebuild libtool when needed
8932 LIBTOOL_DEPS="$ltmain"
8934 # Always use our own libtool.
8935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8966 test -z "$LN_S" && LN_S="ln -s"
8981 if test -n "${ZSH_VERSION+set}" ; then
8982 setopt NO_GLOB_SUBST
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8986 $as_echo_n "checking for objdir... " >&6; }
8987 if ${lt_cv_objdir+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 rm -f .libs 2>/dev/null
8991 mkdir .libs 2>/dev/null
8992 if test -d .libs; then
8995 # MS-DOS does not allow filenames that begin with a dot.
8998 rmdir .libs 2>/dev/null
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9001 $as_echo "$lt_cv_objdir" >&6; }
9002 objdir=$lt_cv_objdir
9008 cat >>confdefs.h <<_ACEOF
9009 #define LT_OBJDIR "$lt_cv_objdir/"
9017 # AIX sometimes has problems with the GCC collect2 program. For some
9018 # reason, if we set the COLLECT_NAMES environment variable, the problems
9019 # vanish in a puff of smoke.
9020 if test "X${COLLECT_NAMES+set}" != Xset; then
9022 export COLLECT_NAMES
9029 can_build_shared=yes
9031 # All known linkers require a `.a' archive for static linking (except MSVC,
9032 # which needs '.lib').
9035 with_gnu_ld="$lt_cv_prog_gnu_ld"
9038 old_CFLAGS="$CFLAGS"
9040 # Set sane defaults for various variables
9041 test -z "$CC" && CC=cc
9042 test -z "$LTCC" && LTCC=$CC
9043 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9044 test -z "$LD" && LD=ld
9045 test -z "$ac_objext" && ac_objext=o
9047 for cc_temp in $compiler""; do
9049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9055 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9058 # Only perform the check for file, if the check method requires it
9059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9060 case $deplibs_check_method in
9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9064 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9065 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9066 $as_echo_n "(cached) " >&6
9070 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9073 lt_save_MAGIC_CMD="$MAGIC_CMD"
9074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9076 for ac_dir in $ac_dummy; do
9078 test -z "$ac_dir" && ac_dir=.
9079 if test -f $ac_dir/${ac_tool_prefix}file; then
9080 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9081 if test -n "$file_magic_test_file"; then
9082 case $deplibs_check_method in
9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9087 $EGREP "$file_magic_regex" > /dev/null; then
9092 *** Warning: the command libtool uses to detect shared libraries,
9093 *** $file_magic_cmd, produces output that libtool cannot recognize.
9094 *** The result is that libtool may fail to recognize shared libraries
9095 *** as such. This will affect the creation of libtool libraries that
9096 *** depend on shared libraries, but programs linked with such libtool
9097 *** libraries will work regardless of this problem. Nevertheless, you
9098 *** may want to report the problem to your system manager and/or to
9099 *** bug-libtool@gnu.org
9109 MAGIC_CMD="$lt_save_MAGIC_CMD"
9114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9115 if test -n "$MAGIC_CMD"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9117 $as_echo "$MAGIC_CMD" >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9127 if test -z "$lt_cv_path_MAGIC_CMD"; then
9128 if test -n "$ac_tool_prefix"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9130 $as_echo_n "checking for file... " >&6; }
9131 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9132 $as_echo_n "(cached) " >&6
9136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9139 lt_save_MAGIC_CMD="$MAGIC_CMD"
9140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9142 for ac_dir in $ac_dummy; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f $ac_dir/file; then
9146 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9147 if test -n "$file_magic_test_file"; then
9148 case $deplibs_check_method in
9150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9153 $EGREP "$file_magic_regex" > /dev/null; then
9158 *** Warning: the command libtool uses to detect shared libraries,
9159 *** $file_magic_cmd, produces output that libtool cannot recognize.
9160 *** The result is that libtool may fail to recognize shared libraries
9161 *** as such. This will affect the creation of libtool libraries that
9162 *** depend on shared libraries, but programs linked with such libtool
9163 *** libraries will work regardless of this problem. Nevertheless, you
9164 *** may want to report the problem to your system manager and/or to
9165 *** bug-libtool@gnu.org
9175 MAGIC_CMD="$lt_save_MAGIC_CMD"
9180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9181 if test -n "$MAGIC_CMD"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9183 $as_echo "$MAGIC_CMD" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9199 # Use C for the default configuration in the libtool script
9203 ac_cpp='$CPP $CPPFLAGS'
9204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9209 # Source file extension for C test sources.
9212 # Object file extension for compiled C test sources.
9216 # Code to be used in simple compile tests
9217 lt_simple_compile_test_code="int some_variable = 0;"
9219 # Code to be used in simple link tests
9220 lt_simple_link_test_code='int main(){return(0);}'
9228 # If no C compiler was specified, use CC.
9231 # If no C compiler flags were specified, use CFLAGS.
9232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9234 # Allow CC to be a program name with arguments.
9237 # Save the default compiler, since it gets overwritten when the other
9238 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9239 compiler_DEFAULT=$CC
9241 # save warnings/boilerplate of simple test code
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9245 _lt_compiler_boilerplate=`cat conftest.err`
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9251 _lt_linker_boilerplate=`cat conftest.err`
9256 ## There is no encapsulation within the following macros, do not change
9257 ## the running order or otherwise move them around unless you know exactly
9258 ## what you are doing...
9259 if test -n "$compiler"; then
9261 lt_prog_compiler_no_builtin_flag=
9263 if test "$GCC" = yes; then
9264 case $cc_basename in
9266 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9268 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9272 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9273 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9274 $as_echo_n "(cached) " >&6
9276 lt_cv_prog_compiler_rtti_exceptions=no
9277 ac_outfile=conftest.$ac_objext
9278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279 lt_compiler_flag="-fno-rtti -fno-exceptions"
9280 # Insert the option either (1) after the last *FLAGS variable, or
9281 # (2) before a word containing "conftest.", or (3) at the end.
9282 # Note that $ac_compile itself does not contain backslashes and begins
9283 # with a dollar sign (not a hyphen), so the echo should work correctly.
9284 # The option is referenced via a variable to avoid confusing sed.
9285 lt_compile=`echo "$ac_compile" | $SED \
9286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288 -e 's:$: $lt_compiler_flag:'`
9289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290 (eval "$lt_compile" 2>conftest.err)
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 if (exit $ac_status) && test -s "$ac_outfile"; then
9295 # The compiler can only warn and ignore the option if not recognized
9296 # So say no if there are warnings other than the usual output.
9297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler_rtti_exceptions=yes
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9307 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9309 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9310 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9322 lt_prog_compiler_wl=
9323 lt_prog_compiler_pic=
9324 lt_prog_compiler_static=
9327 if test "$GCC" = yes; then
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_static='-static'
9333 # All AIX code is PIC.
9334 if test "$host_cpu" = ia64; then
9335 # AIX 5 now supports IA64 processor
9336 lt_prog_compiler_static='-Bstatic'
9343 # see comment about AmigaOS4 .so support
9344 lt_prog_compiler_pic='-fPIC'
9347 # FIXME: we need at least 68020 code to build shared libraries, but
9348 # adding the `-m68020' flag to GCC prevents building anything better,
9350 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9355 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9356 # PIC is the default for these OSes.
9359 mingw* | cygwin* | pw32* | os2* | cegcc*)
9360 # This hack is so that the source file can tell whether it is being
9361 # built for inclusion in a dll (and should export symbols for example).
9362 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9363 # (--disable-auto-import) libraries
9364 lt_prog_compiler_pic='-DDLL_EXPORT'
9367 darwin* | rhapsody*)
9368 # PIC is the default on this platform
9369 # Common symbols not allowed in MH_DYLIB files
9370 lt_prog_compiler_pic='-fno-common'
9374 # PIC is the default for Haiku.
9375 # The "-static" flag exists, but is broken.
9376 lt_prog_compiler_static=
9380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9382 # sets the default TLS model and affects inlining.
9388 lt_prog_compiler_pic='-fPIC'
9394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9395 # Instead, we relocate shared libraries at runtime.
9399 # Just because we use GCC doesn't mean we suddenly get shared libraries
9400 # on systems that don't support them.
9401 lt_prog_compiler_can_build_shared=no
9406 # QNX uses GNU C++, but need to define -shared option too, otherwise
9408 lt_prog_compiler_pic='-fPIC -shared'
9412 if test -d /usr/nec; then
9413 lt_prog_compiler_pic=-Kconform_pic
9418 lt_prog_compiler_pic='-fPIC'
9422 case $cc_basename in
9423 nvcc*) # Cuda Compiler Driver 2.2
9424 lt_prog_compiler_wl='-Xlinker '
9425 if test -n "$lt_prog_compiler_pic"; then
9426 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9431 # PORTME Check for flag to pass linker flags through the system compiler.
9434 lt_prog_compiler_wl='-Wl,'
9435 if test "$host_cpu" = ia64; then
9436 # AIX 5 now supports IA64 processor
9437 lt_prog_compiler_static='-Bstatic'
9439 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9443 mingw* | cygwin* | pw32* | os2* | cegcc*)
9444 # This hack is so that the source file can tell whether it is being
9445 # built for inclusion in a dll (and should export symbols for example).
9446 lt_prog_compiler_pic='-DDLL_EXPORT'
9449 hpux9* | hpux10* | hpux11*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9458 lt_prog_compiler_pic='+Z'
9461 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9462 lt_prog_compiler_static='${wl}-a ${wl}archive'
9465 irix5* | irix6* | nonstopux*)
9466 lt_prog_compiler_wl='-Wl,'
9467 # PIC (with -KPIC) is the default.
9468 lt_prog_compiler_static='-non_shared'
9471 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9472 case $cc_basename in
9473 # old Intel for x86_64 which still supported -KPIC.
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-static'
9479 # icc used to be incompatible with GCC.
9480 # ICC 10 doesn't accept -KPIC any more.
9482 lt_prog_compiler_wl='-Wl,'
9483 lt_prog_compiler_pic='-fPIC'
9484 lt_prog_compiler_static='-static'
9486 # Lahey Fortran 8.1.
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='--shared'
9490 lt_prog_compiler_static='--static'
9493 # NAG Fortran compiler
9494 lt_prog_compiler_wl='-Wl,-Wl,,'
9495 lt_prog_compiler_pic='-PIC'
9496 lt_prog_compiler_static='-Bstatic'
9498 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9499 # Portland Group compilers (*not* the Pentium gcc compiler,
9500 # which looks to be a dead project)
9501 lt_prog_compiler_wl='-Wl,'
9502 lt_prog_compiler_pic='-fpic'
9503 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_wl='-Wl,'
9507 # All Alpha code is PIC.
9508 lt_prog_compiler_static='-non_shared'
9510 xl* | bgxl* | bgf* | mpixl*)
9511 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9512 lt_prog_compiler_wl='-Wl,'
9513 lt_prog_compiler_pic='-qpic'
9514 lt_prog_compiler_static='-qstaticlink'
9517 case `$CC -V 2>&1 | sed 5q` in
9518 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9519 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9520 lt_prog_compiler_pic='-KPIC'
9521 lt_prog_compiler_static='-Bstatic'
9522 lt_prog_compiler_wl=''
9524 *Sun\ F* | *Sun*Fortran*)
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-Bstatic'
9527 lt_prog_compiler_wl='-Qoption ld '
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9533 lt_prog_compiler_wl='-Wl,'
9535 *Intel*\ [CF]*Compiler*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-fPIC'
9538 lt_prog_compiler_static='-static'
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_pic='-fpic'
9543 lt_prog_compiler_static='-Bstatic'
9551 lt_prog_compiler_pic='-KPIC'
9552 lt_prog_compiler_static='-Bstatic'
9556 # QNX uses GNU C++, but need to define -shared option too, otherwise
9558 lt_prog_compiler_pic='-fPIC -shared'
9561 osf3* | osf4* | osf5*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # All OSF/1 code is PIC.
9564 lt_prog_compiler_static='-non_shared'
9568 lt_prog_compiler_static='-non_shared'
9572 lt_prog_compiler_pic='-KPIC'
9573 lt_prog_compiler_static='-Bstatic'
9574 case $cc_basename in
9575 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9576 lt_prog_compiler_wl='-Qoption ld ';;
9578 lt_prog_compiler_wl='-Wl,';;
9583 lt_prog_compiler_wl='-Qoption ld '
9584 lt_prog_compiler_pic='-PIC'
9585 lt_prog_compiler_static='-Bstatic'
9588 sysv4 | sysv4.2uw2* | sysv4.3*)
9589 lt_prog_compiler_wl='-Wl,'
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9595 if test -d /usr/nec ;then
9596 lt_prog_compiler_pic='-Kconform_pic'
9597 lt_prog_compiler_static='-Bstatic'
9601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_can_build_shared=no
9613 lt_prog_compiler_pic='-pic'
9614 lt_prog_compiler_static='-Bstatic'
9618 lt_prog_compiler_can_build_shared=no
9624 # For platforms which do not support PIC, -DPIC is meaningless:
9626 lt_prog_compiler_pic=
9629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9634 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9635 if ${lt_cv_prog_compiler_pic+:} false; then :
9636 $as_echo_n "(cached) " >&6
9638 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9641 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9642 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9645 # Check to make sure the PIC flag actually works.
9647 if test -n "$lt_prog_compiler_pic"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9650 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9651 $as_echo_n "(cached) " >&6
9653 lt_cv_prog_compiler_pic_works=no
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 # The option is referenced via a variable to avoid confusing sed.
9662 lt_compile=`echo "$ac_compile" | $SED \
9663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665 -e 's:$: $lt_compiler_flag:'`
9666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667 (eval "$lt_compile" 2>conftest.err)
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 if (exit $ac_status) && test -s "$ac_outfile"; then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings other than the usual output.
9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_pic_works=yes
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9684 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9686 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9687 case $lt_prog_compiler_pic in
9689 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9692 lt_prog_compiler_pic=
9693 lt_prog_compiler_can_build_shared=no
9709 # Check to make sure the static flag actually works.
9711 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9714 if ${lt_cv_prog_compiler_static_works+:} false; then :
9715 $as_echo_n "(cached) " >&6
9717 lt_cv_prog_compiler_static_works=no
9718 save_LDFLAGS="$LDFLAGS"
9719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9722 # The linker can only warn and ignore the option if not recognized
9723 # So say no if there are warnings
9724 if test -s conftest.err; then
9725 # Append any errors to the config.log.
9726 cat conftest.err 1>&5
9727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729 if diff conftest.exp conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_static_works=yes
9733 lt_cv_prog_compiler_static_works=yes
9737 LDFLAGS="$save_LDFLAGS"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9741 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9743 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9746 lt_prog_compiler_static=
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9757 if ${lt_cv_prog_compiler_c_o+:} false; then :
9758 $as_echo_n "(cached) " >&6
9760 lt_cv_prog_compiler_c_o=no
9761 $RM -r conftest 2>/dev/null
9765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9767 lt_compiler_flag="-o out/conftest2.$ac_objext"
9768 # Insert the option either (1) after the last *FLAGS variable, or
9769 # (2) before a word containing "conftest.", or (3) at the end.
9770 # Note that $ac_compile itself does not contain backslashes and begins
9771 # with a dollar sign (not a hyphen), so the echo should work correctly.
9772 lt_compile=`echo "$ac_compile" | $SED \
9773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775 -e 's:$: $lt_compiler_flag:'`
9776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9777 (eval "$lt_compile" 2>out/conftest.err)
9779 cat out/conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9783 # The compiler can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
9785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9788 lt_cv_prog_compiler_c_o=yes
9793 # SGI C++ compiler will create directory out/ii_files/ for
9794 # template instantiation
9795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9796 $RM out/* && rmdir out
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9803 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9812 if ${lt_cv_prog_compiler_c_o+:} false; then :
9813 $as_echo_n "(cached) " >&6
9815 lt_cv_prog_compiler_c_o=no
9816 $RM -r conftest 2>/dev/null
9820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822 lt_compiler_flag="-o out/conftest2.$ac_objext"
9823 # Insert the option either (1) after the last *FLAGS variable, or
9824 # (2) before a word containing "conftest.", or (3) at the end.
9825 # Note that $ac_compile itself does not contain backslashes and begins
9826 # with a dollar sign (not a hyphen), so the echo should work correctly.
9827 lt_compile=`echo "$ac_compile" | $SED \
9828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9830 -e 's:$: $lt_compiler_flag:'`
9831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9832 (eval "$lt_compile" 2>out/conftest.err)
9834 cat out/conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9838 # The compiler can only warn and ignore the option if not recognized
9839 # So say no if there are warnings
9840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9843 lt_cv_prog_compiler_c_o=yes
9848 # SGI C++ compiler will create directory out/ii_files/ for
9849 # template instantiation
9850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9851 $RM out/* && rmdir out
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9858 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9863 hard_links="nottested"
9864 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9865 # do not overwrite the value of need_locks provided by the user
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9867 $as_echo_n "checking if we can lock with hard links... " >&6; }
9870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9872 ln conftest.a conftest.b 2>&5 || hard_links=no
9873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9875 $as_echo "$hard_links" >&6; }
9876 if test "$hard_links" = no; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9878 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9891 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9894 allow_undefined_flag=
9895 always_export_symbols=no
9897 archive_expsym_cmds=
9898 compiler_needs_object=no
9899 enable_shared_with_static_runtimes=no
9900 export_dynamic_flag_spec=
9901 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9902 hardcode_automatic=no
9904 hardcode_direct_absolute=no
9905 hardcode_libdir_flag_spec=
9906 hardcode_libdir_separator=
9908 hardcode_shlibpath_var=unsupported
9910 link_all_deplibs=unknown
9913 old_archive_from_new_cmds=
9914 old_archive_from_expsyms_cmds=
9915 thread_safe_flag_spec=
9916 whole_archive_flag_spec=
9917 # include_expsyms should be a list of space-separated symbols to be *always*
9918 # included in the symbol list
9920 # exclude_expsyms can be an extended regexp of symbols to exclude
9921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9923 # as well as any symbol that contains `d'.
9924 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9926 # platforms (ab)use it in PIC code, but their linkers get confused if
9927 # the symbol is explicitly referenced. Since portable code cannot
9928 # rely on this symbol name, it's probably fine to never include it in
9929 # preloaded symbol tables.
9930 # Exclude shared library initialization/finalization symbols.
9931 extract_expsyms_cmds=
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9936 # When not using gcc, we currently assume that we are using
9937 # Microsoft Visual C++.
9938 if test "$GCC" != yes; then
9943 # we just hope/assume this is gcc and not c89 (= MSVC++)
9949 linux* | k*bsd*-gnu | gnu*)
9956 # On some targets, GNU ld is compatible enough with the native linker
9957 # that we're better off using the native interface for both.
9958 lt_use_gnu_ld_interface=no
9959 if test "$with_gnu_ld" = yes; then
9962 # The AIX port of GNU ld has always aspired to compatibility
9963 # with the native linker. However, as the warning in the GNU ld
9964 # block says, versions before 2.19.5* couldn't really create working
9965 # shared libraries, regardless of the interface used.
9966 case `$LD -v 2>&1` in
9967 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9968 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9969 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9971 lt_use_gnu_ld_interface=yes
9976 lt_use_gnu_ld_interface=yes
9981 if test "$lt_use_gnu_ld_interface" = yes; then
9982 # If archive_cmds runs LD, not CC, wlarc should be empty
9985 # Set some defaults for GNU ld with shared library support. These
9986 # are reset later if shared libraries are not supported. Putting them
9987 # here allows them to be overridden if necessary.
9988 runpath_var=LD_RUN_PATH
9989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990 export_dynamic_flag_spec='${wl}--export-dynamic'
9991 # ancient GNU ld didn't support --whole-archive et. al.
9992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9995 whole_archive_flag_spec=
9997 supports_anon_versioning=no
9998 case `$LD -v 2>&1` in
9999 *GNU\ gold*) supports_anon_versioning=yes ;;
10000 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10001 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10002 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10003 *\ 2.11.*) ;; # other 2.11 versions
10004 *) supports_anon_versioning=yes ;;
10007 # See if GNU ld supports shared libraries.
10010 # On AIX/PPC, the GNU linker is very broken
10011 if test "$host_cpu" != ia64; then
10015 *** Warning: the GNU linker, at least up to release 2.19, is reported
10016 *** to be unable to reliably create shared libraries on AIX.
10017 *** Therefore, libtool is disabling shared libraries support. If you
10018 *** really care for shared libraries, you may want to install binutils
10019 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10020 *** You will then need to restart the configuration process.
10029 # see comment about AmigaOS4 .so support
10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10031 archive_expsym_cmds=''
10034 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)'
10035 hardcode_libdir_flag_spec='-L$libdir'
10036 hardcode_minus_L=yes
10042 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043 allow_undefined_flag=unsupported
10044 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10045 # support --undefined. This deserves some investigation. FIXME
10046 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 cygwin* | mingw* | pw32* | cegcc*)
10053 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10054 # as there is no search path for DLLs.
10055 hardcode_libdir_flag_spec='-L$libdir'
10056 export_dynamic_flag_spec='${wl}--export-all-symbols'
10057 allow_undefined_flag=unsupported
10058 always_export_symbols=no
10059 enable_shared_with_static_runtimes=yes
10060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10061 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10063 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065 # If the export-symbols file already is a .def file (1st line
10066 # is EXPORTS), use it as is; otherwise, prepend...
10067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10068 cp $export_symbols $output_objdir/$soname.def;
10070 echo EXPORTS > $output_objdir/$soname.def;
10071 cat $export_symbols >> $output_objdir/$soname.def;
10073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 link_all_deplibs=yes
10086 hardcode_shlibpath_var=no
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 export_dynamic_flag_spec='${wl}-E'
10089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090 # Instead, shared libraries are loaded at an image base (0x10000000 by
10091 # default) and relocated if they conflict, which is a slow very memory
10092 # consuming and fragmenting process. To avoid this, we pick a random,
10093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096 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'
10099 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10101 if test "$host_os" = linux-dietlibc; then
10102 case $cc_basename in
10103 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10106 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10107 && test "$tmp_diet" = no
10109 tmp_addflag=' $pic_flag'
10110 tmp_sharedflag='-shared'
10111 case $cc_basename,$host_cpu in
10112 pgcc*) # Portland Group C compiler
10113 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10114 tmp_addflag=' $pic_flag'
10116 pgf77* | pgf90* | pgf95* | pgfortran*)
10117 # Portland Group f77 and f90 compilers
10118 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10119 tmp_addflag=' $pic_flag -Mnomain' ;;
10120 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10121 tmp_addflag=' -i_dynamic' ;;
10122 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10123 tmp_addflag=' -i_dynamic -nofor_main' ;;
10124 ifc* | ifort*) # Intel Fortran compiler
10125 tmp_addflag=' -nofor_main' ;;
10126 lf95*) # Lahey Fortran 8.1
10127 whole_archive_flag_spec=
10128 tmp_sharedflag='--shared' ;;
10129 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10130 tmp_sharedflag='-qmkshrobj'
10132 nvcc*) # Cuda Compiler Driver 2.2
10133 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10134 compiler_needs_object=yes
10137 case `$CC -V 2>&1 | sed 5q` in
10138 *Sun\ C*) # Sun C 5.9
10139 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10140 compiler_needs_object=yes
10141 tmp_sharedflag='-G' ;;
10142 *Sun\ F*) # Sun Fortran 8.3
10143 tmp_sharedflag='-G' ;;
10145 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147 if test "x$supports_anon_versioning" = xyes; then
10148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10150 echo "local: *; };" >> $output_objdir/$libname.ver~
10151 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10154 case $cc_basename in
10155 xlf* | bgf* | bgxlf* | mpixlf*)
10156 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10157 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10159 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10160 if test "x$supports_anon_versioning" = xyes; then
10161 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10163 echo "local: *; };" >> $output_objdir/$libname.ver~
10164 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10173 netbsd* | netbsdelf*-gnu)
10174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10175 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10184 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10188 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10189 *** create shared libraries on Solaris systems. Therefore, libtool
10190 *** is disabling shared libraries support. We urge you to upgrade GNU
10191 *** binutils to release 2.9.1 or newer. Another option is to modify
10192 *** your PATH or compiler configuration so that the native linker is
10193 *** used, and then restart.
10196 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10205 case `$LD -v 2>&1` in
10206 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10210 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10211 *** reliably create shared libraries on SCO systems. Therefore, libtool
10212 *** is disabling shared libraries support. We urge you to upgrade GNU
10213 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10214 *** your PATH or compiler configuration so that the native linker is
10215 *** used, and then restart.
10220 # For security reasons, it is highly recommended that you always
10221 # use absolute paths for naming shared libraries, and exclude the
10222 # DT_RUNPATH tag from executables and libraries. But doing so
10223 # requires that you compile everything twice, which is a pain.
10224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10236 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=yes
10239 hardcode_shlibpath_var=no
10243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10252 if test "$ld_shlibs" = no; then
10254 hardcode_libdir_flag_spec=
10255 export_dynamic_flag_spec=
10256 whole_archive_flag_spec=
10259 # PORTME fill in a description of your system's linker (not GNU ld)
10262 allow_undefined_flag=unsupported
10263 always_export_symbols=yes
10264 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'
10265 # Note: this linker hardcodes the directories in LIBPATH if there
10266 # are no directories specified by -L.
10267 hardcode_minus_L=yes
10268 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10269 # Neither direct hardcoding nor static linking is supported with a
10271 hardcode_direct=unsupported
10276 if test "$host_cpu" = ia64; then
10277 # On IA64, the linker does run time linking by default, so we don't
10278 # have to do anything special.
10279 aix_use_runtimelinking=no
10280 exp_sym_flag='-Bexport'
10283 # If we're using GNU nm, then we don't want the "-C" option.
10284 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10285 # Also, AIX nm treats weak defined symbols like other global
10286 # defined symbols, whereas GNU nm marks them as "W".
10287 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10288 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10290 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'
10292 aix_use_runtimelinking=no
10294 # Test if we are trying to use run time linking or normal
10295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10296 # need to do runtime linking.
10297 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10298 for ld_flag in $LDFLAGS; do
10299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10300 aix_use_runtimelinking=yes
10307 exp_sym_flag='-bexport'
10308 no_entry_flag='-bnoentry'
10311 # When large executables or shared objects are built, AIX ld can
10312 # have problems creating the table of contents. If linking a library
10313 # or program results in "error TOC overflow" add -mminimal-toc to
10314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10318 hardcode_direct=yes
10319 hardcode_direct_absolute=yes
10320 hardcode_libdir_separator=':'
10321 link_all_deplibs=yes
10322 file_list_spec='${wl}-f,'
10324 if test "$GCC" = yes; then
10325 case $host_os in aix4.[012]|aix4.[012].*)
10326 # We only want to do this on AIX 4.2 and lower, the check
10327 # below for broken collect2 doesn't work under 4.3+
10328 collect2name=`${CC} -print-prog-name=collect2`
10329 if test -f "$collect2name" &&
10330 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10332 # We have reworked collect2
10335 # We have old collect2
10336 hardcode_direct=unsupported
10337 # It fails to find uninstalled libraries when the uninstalled
10338 # path is not listed in the libpath. Setting hardcode_minus_L
10339 # to unsupported forces relinking
10340 hardcode_minus_L=yes
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_libdir_separator=
10346 shared_flag='-shared'
10347 if test "$aix_use_runtimelinking" = yes; then
10348 shared_flag="$shared_flag "'${wl}-G'
10350 link_all_deplibs=no
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10361 shared_flag='${wl}-bM:SRE'
10366 export_dynamic_flag_spec='${wl}-bexpall'
10367 # It seems that -bexpall does not export symbols beginning with
10368 # underscore (_), so it is better to generate a list of symbols to export.
10369 always_export_symbols=yes
10370 if test "$aix_use_runtimelinking" = yes; then
10371 # Warning - without using the other runtime loading flags (-brtl),
10372 # -berok will link without error, but may produce a broken library.
10373 allow_undefined_flag='-berok'
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 if test "${lt_cv_aix_libpath+set}" = set; then
10377 aix_libpath=$lt_cv_aix_libpath
10379 if ${lt_cv_aix_libpath_+:} false; then :
10380 $as_echo_n "(cached) " >&6
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10393 if ac_fn_c_try_link "$LINENO"; then :
10395 lt_aix_libpath_sed='
10396 /Import File Strings/,/^$/ {
10398 s/^0 *\([^ ]*\) *$/\1/
10402 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10403 # Check for a 64-bit object if we didn't find anything.
10404 if test -z "$lt_cv_aix_libpath_"; then
10405 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 if test -z "$lt_cv_aix_libpath_"; then
10411 lt_cv_aix_libpath_="/usr/lib:/lib"
10416 aix_libpath=$lt_cv_aix_libpath_
10419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10420 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10422 if test "$host_cpu" = ia64; then
10423 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10424 allow_undefined_flag="-z nodefs"
10425 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"
10427 # Determine the default libpath from the value encoded in an
10428 # empty executable.
10429 if test "${lt_cv_aix_libpath+set}" = set; then
10430 aix_libpath=$lt_cv_aix_libpath
10432 if ${lt_cv_aix_libpath_+:} false; then :
10433 $as_echo_n "(cached) " >&6
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10446 if ac_fn_c_try_link "$LINENO"; then :
10448 lt_aix_libpath_sed='
10449 /Import File Strings/,/^$/ {
10451 s/^0 *\([^ ]*\) *$/\1/
10455 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10456 # Check for a 64-bit object if we didn't find anything.
10457 if test -z "$lt_cv_aix_libpath_"; then
10458 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 if test -z "$lt_cv_aix_libpath_"; then
10464 lt_cv_aix_libpath_="/usr/lib:/lib"
10469 aix_libpath=$lt_cv_aix_libpath_
10472 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10473 # Warning - without using the other run time loading flags,
10474 # -berok will link without error, but may produce a broken library.
10475 no_undefined_flag=' ${wl}-bernotok'
10476 allow_undefined_flag=' ${wl}-berok'
10477 if test "$with_gnu_ld" = yes; then
10478 # We only use this code for GNU lds that support --whole-archive.
10479 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10481 # Exported symbols can be pulled into shared objects from archives
10482 whole_archive_flag_spec='$convenience'
10484 archive_cmds_need_lc=yes
10485 # This is similar to how AIX traditionally builds its shared libraries.
10486 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'
10494 # see comment about AmigaOS4 .so support
10495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496 archive_expsym_cmds=''
10499 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)'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_minus_L=yes
10507 export_dynamic_flag_spec=-rdynamic
10510 cygwin* | mingw* | pw32* | cegcc*)
10511 # When not using gcc, we currently assume that we are using
10512 # Microsoft Visual C++.
10513 # hardcode_libdir_flag_spec is actually meaningless, as there is
10514 # no search path for DLLs.
10515 case $cc_basename in
10518 hardcode_libdir_flag_spec=' '
10519 allow_undefined_flag=unsupported
10520 always_export_symbols=yes
10522 # Tell ltmain to make .lib files, not .a files.
10524 # Tell ltmain to make .dll files, not .so files.
10526 # FIXME: Setting linknames here is a bad hack.
10527 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10529 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10531 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10533 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10535 # The linker will not automatically build a static lib if we build a DLL.
10536 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10537 enable_shared_with_static_runtimes=yes
10538 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10541 old_postinstall_cmds='chmod 644 $oldlib'
10542 postlink_cmds='lt_outputfile="@OUTPUT@"~
10543 lt_tool_outputfile="@TOOL_OUTPUT@"~
10544 case $lt_outputfile in
10547 lt_outputfile="$lt_outputfile.exe"
10548 lt_tool_outputfile="$lt_tool_outputfile.exe"
10551 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10552 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10553 $RM "$lt_outputfile.manifest";
10557 # Assume MSVC wrapper
10558 hardcode_libdir_flag_spec=' '
10559 allow_undefined_flag=unsupported
10560 # Tell ltmain to make .lib files, not .a files.
10562 # Tell ltmain to make .dll files, not .so files.
10564 # FIXME: Setting linknames here is a bad hack.
10565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10566 # The linker will automatically build a .lib file if we build a DLL.
10567 old_archive_from_new_cmds='true'
10568 # FIXME: Should let the user specify the lib program.
10569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10570 enable_shared_with_static_runtimes=yes
10575 darwin* | rhapsody*)
10578 archive_cmds_need_lc=no
10580 hardcode_automatic=yes
10581 hardcode_shlibpath_var=unsupported
10582 if test "$lt_cv_ld_force_load" = "yes"; then
10583 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10586 whole_archive_flag_spec=''
10588 link_all_deplibs=yes
10589 allow_undefined_flag="$_lt_dar_allow_undefined"
10590 case $cc_basename in
10591 ifort*) _lt_dar_can_shared=yes ;;
10592 *) _lt_dar_can_shared=$GCC ;;
10594 if test "$_lt_dar_can_shared" = "yes"; then
10595 output_verbose_link_cmd=func_echo_all
10596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10598 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}"
10599 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}"
10608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_libdir_flag_spec='-L$libdir'
10610 hardcode_shlibpath_var=no
10613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10614 # support. Future versions do this automatically, but an explicit c++rt0.o
10615 # does not break anything, and helps significantly (at the cost of a little
10618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10619 hardcode_libdir_flag_spec='-R$libdir'
10620 hardcode_direct=yes
10621 hardcode_shlibpath_var=no
10624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_direct=yes
10628 hardcode_minus_L=yes
10629 hardcode_shlibpath_var=no
10632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10633 freebsd* | dragonfly*)
10634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635 hardcode_libdir_flag_spec='-R$libdir'
10636 hardcode_direct=yes
10637 hardcode_shlibpath_var=no
10641 if test "$GCC" = yes; then
10642 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10644 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'
10646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10647 hardcode_libdir_separator=:
10648 hardcode_direct=yes
10650 # hardcode_minus_L: Not really in the search PATH,
10651 # but as the default location of the library.
10652 hardcode_minus_L=yes
10653 export_dynamic_flag_spec='${wl}-E'
10657 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10658 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10662 if test "$with_gnu_ld" = no; then
10663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10664 hardcode_libdir_separator=:
10665 hardcode_direct=yes
10666 hardcode_direct_absolute=yes
10667 export_dynamic_flag_spec='${wl}-E'
10668 # hardcode_minus_L: Not really in the search PATH,
10669 # but as the default location of the library.
10670 hardcode_minus_L=yes
10675 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10678 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10697 # Older versions of the 11.00 compiler do not understand -b yet
10698 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10700 $as_echo_n "checking if $CC understands -b... " >&6; }
10701 if ${lt_cv_prog_compiler__b+:} false; then :
10702 $as_echo_n "(cached) " >&6
10704 lt_cv_prog_compiler__b=no
10705 save_LDFLAGS="$LDFLAGS"
10706 LDFLAGS="$LDFLAGS -b"
10707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10709 # The linker can only warn and ignore the option if not recognized
10710 # So say no if there are warnings
10711 if test -s conftest.err; then
10712 # Append any errors to the config.log.
10713 cat conftest.err 1>&5
10714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10716 if diff conftest.exp conftest.er2 >/dev/null; then
10717 lt_cv_prog_compiler__b=yes
10720 lt_cv_prog_compiler__b=yes
10724 LDFLAGS="$save_LDFLAGS"
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10728 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10730 if test x"$lt_cv_prog_compiler__b" = xyes; then
10731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10739 if test "$with_gnu_ld" = no; then
10740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741 hardcode_libdir_separator=:
10746 hardcode_shlibpath_var=no
10749 hardcode_direct=yes
10750 hardcode_direct_absolute=yes
10751 export_dynamic_flag_spec='${wl}-E'
10753 # hardcode_minus_L: Not really in the search PATH,
10754 # but as the default location of the library.
10755 hardcode_minus_L=yes
10761 irix5* | irix6* | nonstopux*)
10762 if test "$GCC" = yes; then
10763 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10764 # Try to use the -exported_symbol ld option, if it does not
10765 # work, assume that -exports_file does not work either and
10766 # implicitly export all symbols.
10767 # This should be the same for all languages, so no per-tag cache variable.
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10769 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10770 if ${lt_cv_irix_exported_symbol+:} false; then :
10771 $as_echo_n "(cached) " >&6
10773 save_LDFLAGS="$LDFLAGS"
10774 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 int foo (void) { return 0; }
10779 if ac_fn_c_try_link "$LINENO"; then :
10780 lt_cv_irix_exported_symbol=yes
10782 lt_cv_irix_exported_symbol=no
10784 rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LDFLAGS="$save_LDFLAGS"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10789 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10790 if test "$lt_cv_irix_exported_symbol" = yes; then
10791 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10797 archive_cmds_need_lc='no'
10798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799 hardcode_libdir_separator=:
10801 link_all_deplibs=yes
10804 netbsd* | netbsdelf*-gnu)
10805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10808 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10810 hardcode_libdir_flag_spec='-R$libdir'
10811 hardcode_direct=yes
10812 hardcode_shlibpath_var=no
10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_direct=yes
10818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10819 hardcode_libdir_separator=:
10820 hardcode_shlibpath_var=no
10827 if test -f /usr/libexec/ld.so; then
10828 hardcode_direct=yes
10829 hardcode_shlibpath_var=no
10830 hardcode_direct_absolute=yes
10831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10833 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10834 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10835 export_dynamic_flag_spec='${wl}-E'
10838 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_libdir_flag_spec='-R$libdir'
10843 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10844 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10854 hardcode_libdir_flag_spec='-L$libdir'
10855 hardcode_minus_L=yes
10856 allow_undefined_flag=unsupported
10857 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'
10858 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10862 if test "$GCC" = yes; then
10863 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10866 allow_undefined_flag=' -expect_unresolved \*'
10867 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10869 archive_cmds_need_lc='no'
10870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10871 hardcode_libdir_separator=:
10874 osf4* | osf5*) # as osf3* with the addition of -msym flag
10875 if test "$GCC" = yes; then
10876 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 allow_undefined_flag=' -expect_unresolved \*'
10881 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10882 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~
10883 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10885 # Both c and cxx compiler support -rpath directly
10886 hardcode_libdir_flag_spec='-rpath $libdir'
10888 archive_cmds_need_lc='no'
10889 hardcode_libdir_separator=:
10893 no_undefined_flag=' -z defs'
10894 if test "$GCC" = yes; then
10896 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10900 case `$CC -V 2>&1` in
10903 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10905 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10909 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10915 hardcode_libdir_flag_spec='-R$libdir'
10916 hardcode_shlibpath_var=no
10918 solaris2.[0-5] | solaris2.[0-5].*) ;;
10920 # The compiler driver will combine and reorder linker options,
10921 # but understands `-z linker_flag'. GCC discards it without `$wl',
10922 # but is careful enough not to reorder.
10923 # Supported since Solaris 2.6 (maybe 2.5.1?)
10924 if test "$GCC" = yes; then
10925 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10927 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10931 link_all_deplibs=yes
10935 if test "x$host_vendor" = xsequent; then
10936 # Use $CC to link under sequent, because it throws in some extra .o
10937 # files that make .init and .fini sections work.
10938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_libdir_flag_spec='-L$libdir'
10943 hardcode_direct=yes
10944 hardcode_minus_L=yes
10945 hardcode_shlibpath_var=no
10949 case $host_vendor in
10951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_direct=yes # is this really true???
10955 ## LD is ld it makes a PLAMLIB
10956 ## CC just makes a GrossModule.
10957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10958 reload_cmds='$CC -r -o $output$reload_objs'
10962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10966 runpath_var='LD_RUN_PATH'
10967 hardcode_shlibpath_var=no
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_shlibpath_var=no
10973 export_dynamic_flag_spec='-Bexport'
10977 if test -d /usr/nec; then
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_shlibpath_var=no
10980 runpath_var=LD_RUN_PATH
10981 hardcode_runpath_var=yes
10986 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10987 no_undefined_flag='${wl}-z,text'
10988 archive_cmds_need_lc=no
10989 hardcode_shlibpath_var=no
10990 runpath_var='LD_RUN_PATH'
10992 if test "$GCC" = yes; then
10993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 sysv5* | sco3.2v5* | sco5v6*)
11002 # Note: We can NOT use -z defs as we might desire, because we do not
11003 # link with -lc, and that would cause any symbols used from libc to
11004 # always be unresolved, which means just about no library would
11005 # ever link correctly. If we're not using GNU ld we use -z text
11006 # though, which does catch some bad symbols but isn't as heavy-handed
11008 no_undefined_flag='${wl}-z,text'
11009 allow_undefined_flag='${wl}-z,nodefs'
11010 archive_cmds_need_lc=no
11011 hardcode_shlibpath_var=no
11012 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11013 hardcode_libdir_separator=':'
11014 link_all_deplibs=yes
11015 export_dynamic_flag_spec='${wl}-Bexport'
11016 runpath_var='LD_RUN_PATH'
11018 if test "$GCC" = yes; then
11019 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_libdir_flag_spec='-L$libdir'
11030 hardcode_shlibpath_var=no
11038 if test x$host_vendor = xsni; then
11040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11041 export_dynamic_flag_spec='${wl}-Blargedynsym'
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11048 $as_echo "$ld_shlibs" >&6; }
11049 test "$ld_shlibs" = no && can_build_shared=no
11051 with_gnu_ld=$with_gnu_ld
11068 # Do we need to explicitly link libc?
11070 case "x$archive_cmds_need_lc" in
11072 # Assume -lc should be added
11073 archive_cmds_need_lc=yes
11075 if test "$enable_shared" = yes && test "$GCC" = yes; then
11076 case $archive_cmds in
11078 # FIXME: we may have to deal with multi-command sequences.
11081 # Test whether the compiler implicitly links with -lc since on some
11082 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11083 # to ld, don't add -lc before -lgcc.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11085 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11086 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11087 $as_echo_n "(cached) " >&6
11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11093 (eval $ac_compile) 2>&5
11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096 test $ac_status = 0; } 2>conftest.err; then
11099 libobjs=conftest.$ac_objext
11101 wl=$lt_prog_compiler_wl
11102 pic_flag=$lt_prog_compiler_pic
11108 lt_save_allow_undefined_flag=$allow_undefined_flag
11109 allow_undefined_flag=
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11111 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; }
11116 lt_cv_archive_cmds_need_lc=no
11118 lt_cv_archive_cmds_need_lc=yes
11120 allow_undefined_flag=$lt_save_allow_undefined_flag
11122 cat conftest.err 1>&5
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11128 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11129 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11290 if test "$GCC" = yes; then
11292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11293 *) lt_awk_arg="/^libraries:/" ;;
11296 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11297 *) lt_sed_strip_eq="s,=/,/,g" ;;
11299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11300 case $lt_search_path_spec in
11302 # if the path contains ";" then we assume it to be the separator
11303 # otherwise default to the standard path separator (i.e. ":") - it is
11304 # assumed that no part of a normal pathname contains ";" but that should
11305 # okay in the real world where ";" in dirpaths is itself problematic.
11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11312 # Ok, now we have the path, separated by spaces, we can step through it
11313 # and add multilib dir if necessary.
11314 lt_tmp_lt_search_path_spec=
11315 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11316 for lt_sys_path in $lt_search_path_spec; do
11317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11320 test -d "$lt_sys_path" && \
11321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11325 BEGIN {RS=" "; FS="/|\n";} {
11328 for (lt_i = NF; lt_i > 0; lt_i--) {
11329 if ($lt_i != "" && $lt_i != ".") {
11330 if ($lt_i == "..") {
11333 if (lt_count == 0) {
11334 lt_foo="/" $lt_i lt_foo;
11341 if (lt_foo != "") { lt_freq[lt_foo]++; }
11342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11344 # AWK program above erroneously prepends '/' to C:/dos/paths
11347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11354 library_names_spec=
11355 libname_spec='lib$name'
11359 postuninstall_cmds=
11363 shlibpath_overrides_runpath=unknown
11365 dynamic_linker="$host_os ld.so"
11366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367 need_lib_prefix=unknown
11368 hardcode_into_libs=no
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version=unknown
11376 version_type=linux # correct to gnu/linux during the next big refactor
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11378 shlibpath_var=LIBPATH
11380 # AIX 3 has no versioning support, so we append a major version to the name.
11381 soname_spec='${libname}${release}${shared_ext}$major'
11385 version_type=linux # correct to gnu/linux during the next big refactor
11388 hardcode_into_libs=yes
11389 if test "$host_cpu" = ia64; then
11390 # AIX 5 supports IA64
11391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392 shlibpath_var=LD_LIBRARY_PATH
11394 # With GCC up to 2.95.x, collect2 would create an import file
11395 # for dependence libraries. The import file would start with
11396 # the line `#! .'. This would cause the generated library to
11397 # depend on `.', always an invalid library. This was fixed in
11398 # development snapshots of GCC prior to 3.0.
11400 aix4 | aix4.[01] | aix4.[01].*)
11401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11403 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11406 can_build_shared=no
11410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411 # soname into executable. Probably we can add versioning support to
11412 # collect2, so additional links can be useful in future.
11413 if test "$aix_use_runtimelinking" = yes; then
11414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415 # instead of lib<name>.a to let people know that these are not
11416 # typical AIX shared libraries.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 # We preserve .a as extension for shared libraries through AIX4.2
11420 # and later when we are not doing run time linking.
11421 library_names_spec='${libname}${release}.a $libname.a'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LIBPATH
11431 # Since July 2007 AmigaOS4 officially supports .so libraries.
11432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 library_names_spec='$libname.ixlibrary $libname.a'
11437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11438 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11444 library_names_spec='${libname}${shared_ext}'
11445 dynamic_linker="$host_os ld.so"
11446 shlibpath_var=LIBRARY_PATH
11450 version_type=linux # correct to gnu/linux during the next big refactor
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11458 # the default ld.so.conf also contains /usr/contrib/lib and
11459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11460 # libtool to hard-code these into programs
11463 cygwin* | mingw* | pw32* | cegcc*)
11464 version_type=windows
11469 case $GCC,$cc_basename in
11472 library_names_spec='$libname.dll.a'
11473 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11474 postinstall_cmds='base_file=`basename \${file}`~
11475 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11476 dldir=$destdir/`dirname \$dlpath`~
11477 test -d \$dldir || mkdir -p \$dldir~
11478 $install_prog $dir/$dlname \$dldir/$dlname~
11479 chmod a+x \$dldir/$dlname~
11480 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11481 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11484 dlpath=$dir/\$dldll~
11486 shlibpath_overrides_runpath=yes
11490 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11491 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11496 # MinGW DLLs use traditional 'lib' prefix
11497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500 # pw32 DLLs use 'pw' prefix rather than 'lib'
11501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504 dynamic_linker='Win32 ld.exe'
11509 libname_spec='$name'
11510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511 library_names_spec='${libname}.dll.lib'
11515 sys_lib_search_path_spec=
11518 for lt_path in $LIB
11521 # Let DOS variable expansion print the short 8.3 style file name.
11522 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11523 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11526 # Convert to MSYS style.
11527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11530 # Convert to unix form, then to dos form, then back to unix form
11531 # but this time dos style (no spaces!) so that the unix form looks
11532 # like /cygdrive/c/PROGRA~1:/cygdr...
11533 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11534 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11535 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11538 sys_lib_search_path_spec="$LIB"
11539 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11540 # It is most probably a Windows format PATH.
11541 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11545 # FIXME: find the short name or the path components, as spaces are
11546 # common. (e.g. "Program Files" -> "PROGRA~1")
11550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11551 postinstall_cmds='base_file=`basename \${file}`~
11552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11553 dldir=$destdir/`dirname \$dlpath`~
11554 test -d \$dldir || mkdir -p \$dldir~
11555 $install_prog $dir/$dlname \$dldir/$dlname'
11556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11557 dlpath=$dir/\$dldll~
11559 shlibpath_overrides_runpath=yes
11560 dynamic_linker='Win32 link.exe'
11564 # Assume MSVC wrapper
11565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11566 dynamic_linker='Win32 ld.exe'
11569 # FIXME: first we should search . and the directory the executable is in
11573 darwin* | rhapsody*)
11574 dynamic_linker="$host_os dyld"
11575 version_type=darwin
11578 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11579 soname_spec='${libname}${release}${major}$shared_ext'
11580 shlibpath_overrides_runpath=yes
11581 shlibpath_var=DYLD_LIBRARY_PATH
11582 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11589 version_type=linux # correct to gnu/linux during the next big refactor
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11597 freebsd* | dragonfly*)
11598 # DragonFly does not have aout. When/if they implement a new
11599 # versioning mechanism, adjust this.
11600 if test -x /usr/bin/objformat; then
11601 objformat=`/usr/bin/objformat`
11604 freebsd[23].*) objformat=aout ;;
11605 *) objformat=elf ;;
11608 version_type=freebsd-$objformat
11609 case $version_type in
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11620 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=yes
11625 freebsd3.[01]* | freebsdelf3.[01]*)
11626 shlibpath_overrides_runpath=yes
11627 hardcode_into_libs=yes
11629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11631 shlibpath_overrides_runpath=no
11632 hardcode_into_libs=yes
11634 *) # from 4.6 on, and DragonFly
11635 shlibpath_overrides_runpath=yes
11636 hardcode_into_libs=yes
11642 version_type=linux # correct to gnu/linux during the next big refactor
11645 dynamic_linker="$host_os runtime_loader"
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 shlibpath_var=LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11651 hardcode_into_libs=yes
11654 hpux9* | hpux10* | hpux11*)
11655 # Give a soname corresponding to the major version so that dld.sl refuses to
11656 # link against other versions.
11663 hardcode_into_libs=yes
11664 dynamic_linker="$host_os dld.so"
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668 soname_spec='${libname}${release}${shared_ext}$major'
11669 if test "X$HPUX_IA64_MODE" = X32; then
11670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11678 hardcode_into_libs=yes
11679 dynamic_linker="$host_os dld.sl"
11680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11689 dynamic_linker="$host_os dld.sl"
11690 shlibpath_var=SHLIB_PATH
11691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 soname_spec='${libname}${release}${shared_ext}$major'
11696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11697 postinstall_cmds='chmod 555 $lib'
11698 # or fails outright, so override atomically:
11699 install_override_mode=555
11703 version_type=linux # correct to gnu/linux during the next big refactor
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11709 shlibpath_var=LD_LIBRARY_PATH
11710 shlibpath_overrides_runpath=no
11711 hardcode_into_libs=yes
11714 irix5* | irix6* | nonstopux*)
11716 nonstopux*) version_type=nonstopux ;;
11718 if test "$lt_cv_prog_gnu_ld" = yes; then
11719 version_type=linux # correct to gnu/linux during the next big refactor
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11729 irix5* | nonstopux*)
11730 libsuff= shlibsuff=
11733 case $LD in # libtool.m4 will add one of these switches to LD
11734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11735 libsuff= shlibsuff= libmagic=32-bit;;
11736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11737 libsuff=32 shlibsuff=N32 libmagic=N32;;
11738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11740 *) libsuff= shlibsuff= libmagic=never-match;;
11744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11745 shlibpath_overrides_runpath=no
11746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11748 hardcode_into_libs=yes
11751 # No shared lib support for Linux oldld, aout, or coff.
11752 linux*oldld* | linux*aout* | linux*coff*)
11756 # This must be glibc/ELF.
11757 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11758 version_type=linux # correct to gnu/linux during the next big refactor
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=no
11767 # Some binutils ld are patched to set DT_RUNPATH
11768 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 lt_cv_shlibpath_overrides_runpath=no
11772 save_LDFLAGS=$LDFLAGS
11773 save_libdir=$libdir
11774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11789 lt_cv_shlibpath_overrides_runpath=yes
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LDFLAGS=$save_LDFLAGS
11795 libdir=$save_libdir
11799 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11801 # This implies no fast_install, which is unacceptable.
11802 # Some rework will be needed to allow for fast_install
11803 # before this can be enabled.
11804 hardcode_into_libs=yes
11806 # Append ld.so.conf contents to the search path
11807 if test -f /etc/ld.so.conf; then
11808 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11809 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11812 # We used to test for /lib/ld.so.1 and disable shared libraries on
11813 # powerpc, because MkLinux only supported shared libraries with the
11814 # GNU dynamic linker. Since this was broken with cross compilers,
11815 # most powerpc-linux boxes support dynamic linking these days and
11816 # people can always --disable-shared, the test was removed, and we
11817 # assume the GNU/Linux dynamic linker is in use.
11818 dynamic_linker='GNU/Linux ld.so'
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=no
11829 hardcode_into_libs=yes
11830 dynamic_linker='NetBSD ld.elf_so'
11837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840 dynamic_linker='NetBSD (a.out) ld.so'
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 dynamic_linker='NetBSD ld.elf_so'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11852 version_type=linux # correct to gnu/linux during the next big refactor
11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=no
11866 hardcode_into_libs=yes
11867 dynamic_linker='ldqnx.so'
11872 sys_lib_dlsearch_path_spec="/usr/lib"
11874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11877 *) need_version=no ;;
11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11884 openbsd2.[89] | openbsd2.[89].*)
11885 shlibpath_overrides_runpath=no
11888 shlibpath_overrides_runpath=yes
11892 shlibpath_overrides_runpath=yes
11897 libname_spec='$name'
11900 library_names_spec='$libname${shared_ext} $libname.a'
11901 dynamic_linker='OS/2 ld.exe'
11902 shlibpath_var=LIBPATH
11905 osf3* | osf4* | osf5*)
11909 soname_spec='${libname}${release}${shared_ext}$major'
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11921 version_type=linux # correct to gnu/linux during the next big refactor
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925 soname_spec='${libname}${release}${shared_ext}$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=yes
11928 hardcode_into_libs=yes
11929 # ldd complains unless libraries are executable
11930 postinstall_cmds='chmod +x $lib'
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 if test "$with_gnu_ld" = yes; then
11946 version_type=linux # correct to gnu/linux during the next big refactor
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 case $host_vendor in
11952 shlibpath_overrides_runpath=no
11954 runpath_var=LD_RUN_PATH
11962 shlibpath_overrides_runpath=no
11963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11969 if test -d /usr/nec ;then
11970 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11972 soname_spec='$libname${shared_ext}.$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978 version_type=freebsd-elf
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 if test "$with_gnu_ld" = yes; then
11987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11996 sys_lib_dlsearch_path_spec='/usr/lib'
12000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12001 version_type=linux # correct to gnu/linux during the next big refactor
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12011 version_type=linux # correct to gnu/linux during the next big refactor
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013 soname_spec='${libname}${release}${shared_ext}$major'
12014 shlibpath_var=LD_LIBRARY_PATH
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12022 $as_echo "$dynamic_linker" >&6; }
12023 test "$dynamic_linker" = no && can_build_shared=no
12025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12026 if test "$GCC" = yes; then
12027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12031 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12033 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12129 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12131 if test -n "$hardcode_libdir_flag_spec" ||
12132 test -n "$runpath_var" ||
12133 test "X$hardcode_automatic" = "Xyes" ; then
12135 # We can hardcode non-existent directories.
12136 if test "$hardcode_direct" != no &&
12137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12138 # have to relink, otherwise we might link with an installed library
12139 # when we should be linking with a yet-to-be-installed one
12140 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12141 test "$hardcode_minus_L" != no; then
12142 # Linking always hardcodes the temporary library directory.
12143 hardcode_action=relink
12145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12146 hardcode_action=immediate
12149 # We cannot hardcode anything, or else we can only hardcode existing
12151 hardcode_action=unsupported
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12154 $as_echo "$hardcode_action" >&6; }
12156 if test "$hardcode_action" = relink ||
12157 test "$inherit_rpath" = yes; then
12158 # Fast installation is not supported
12159 enable_fast_install=no
12160 elif test "$shlibpath_overrides_runpath" = yes ||
12161 test "$enable_shared" = no; then
12162 # Fast installation is not necessary
12163 enable_fast_install=needless
12171 if test "x$enable_dlopen" != xyes; then
12172 enable_dlopen=unknown
12173 enable_dlopen_self=unknown
12174 enable_dlopen_self_static=unknown
12181 lt_cv_dlopen="load_add_on"
12183 lt_cv_dlopen_self=yes
12186 mingw* | pw32* | cegcc*)
12187 lt_cv_dlopen="LoadLibrary"
12192 lt_cv_dlopen="dlopen"
12197 # if libdl is installed we need to link against it
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12200 if ${ac_cv_lib_dl_dlopen+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_check_lib_save_LIBS=$LIBS
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12223 if ac_fn_c_try_link "$LINENO"; then :
12224 ac_cv_lib_dl_dlopen=yes
12226 ac_cv_lib_dl_dlopen=no
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12238 lt_cv_dlopen="dyld"
12240 lt_cv_dlopen_self=yes
12247 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12248 if test "x$ac_cv_func_shl_load" = xyes; then :
12249 lt_cv_dlopen="shl_load"
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12252 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12253 if ${ac_cv_lib_dld_shl_load+:} false; then :
12254 $as_echo_n "(cached) " >&6
12256 ac_check_lib_save_LIBS=$LIBS
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12271 return shl_load ();
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_dld_shl_load=yes
12279 ac_cv_lib_dld_shl_load=no
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12286 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12287 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12291 if test "x$ac_cv_func_dlopen" = xyes; then :
12292 lt_cv_dlopen="dlopen"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12295 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12296 if ${ac_cv_lib_dl_dlopen+:} false; then :
12297 $as_echo_n "(cached) " >&6
12299 ac_check_lib_save_LIBS=$LIBS
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h. */
12304 /* Override any GCC internal prototype to avoid an error.
12305 Use char because int might match the return type of a GCC
12306 builtin and then its argument prototype would still apply. */
12319 if ac_fn_c_try_link "$LINENO"; then :
12320 ac_cv_lib_dl_dlopen=yes
12322 ac_cv_lib_dl_dlopen=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12330 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12334 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12335 if ${ac_cv_lib_svld_dlopen+:} false; then :
12336 $as_echo_n "(cached) " >&6
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-lsvld $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12358 if ac_fn_c_try_link "$LINENO"; then :
12359 ac_cv_lib_svld_dlopen=yes
12361 ac_cv_lib_svld_dlopen=no
12363 rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12368 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12369 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12373 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12374 if ${ac_cv_lib_dld_dld_link+:} false; then :
12375 $as_echo_n "(cached) " >&6
12377 ac_check_lib_save_LIBS=$LIBS
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12392 return dld_link ();
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 ac_cv_lib_dld_dld_link=yes
12400 ac_cv_lib_dld_dld_link=no
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12407 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12408 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12430 if test "x$lt_cv_dlopen" != xno; then
12436 case $lt_cv_dlopen in
12438 save_CPPFLAGS="$CPPFLAGS"
12439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12441 save_LDFLAGS="$LDFLAGS"
12442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12445 LIBS="$lt_cv_dlopen_libs $LIBS"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12448 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12449 if ${lt_cv_dlopen_self+:} false; then :
12450 $as_echo_n "(cached) " >&6
12452 if test "$cross_compiling" = yes; then :
12453 lt_cv_dlopen_self=cross
12455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12456 lt_status=$lt_dlunknown
12457 cat > conftest.$ac_ext <<_LT_EOF
12458 #line $LINENO "configure"
12459 #include "confdefs.h"
12468 # define LT_DLGLOBAL RTLD_GLOBAL
12471 # define LT_DLGLOBAL DL_GLOBAL
12473 # define LT_DLGLOBAL 0
12477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12478 find out it does not work in some platform. */
12479 #ifndef LT_DLLAZY_OR_NOW
12481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12484 # define LT_DLLAZY_OR_NOW DL_LAZY
12487 # define LT_DLLAZY_OR_NOW RTLD_NOW
12490 # define LT_DLLAZY_OR_NOW DL_NOW
12492 # define LT_DLLAZY_OR_NOW 0
12499 /* When -fvisbility=hidden is used, assume the code has been annotated
12500 correspondingly for the symbols needed. */
12501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12502 int fnord () __attribute__((visibility("default")));
12505 int fnord () { return 42; }
12508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509 int status = $lt_dlunknown;
12513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12517 else puts (dlerror ());
12519 /* dlclose (self); */
12527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12528 (eval $ac_link) 2>&5
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12532 (./conftest; exit; ) >&5 2>/dev/null
12534 case x$lt_status in
12535 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12536 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12537 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12540 # compilation failed
12541 lt_cv_dlopen_self=no
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12549 $as_echo "$lt_cv_dlopen_self" >&6; }
12551 if test "x$lt_cv_dlopen_self" = xyes; then
12552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12554 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12555 if ${lt_cv_dlopen_self_static+:} false; then :
12556 $as_echo_n "(cached) " >&6
12558 if test "$cross_compiling" = yes; then :
12559 lt_cv_dlopen_self_static=cross
12561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12562 lt_status=$lt_dlunknown
12563 cat > conftest.$ac_ext <<_LT_EOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12574 # define LT_DLGLOBAL RTLD_GLOBAL
12577 # define LT_DLGLOBAL DL_GLOBAL
12579 # define LT_DLGLOBAL 0
12583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12584 find out it does not work in some platform. */
12585 #ifndef LT_DLLAZY_OR_NOW
12587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12590 # define LT_DLLAZY_OR_NOW DL_LAZY
12593 # define LT_DLLAZY_OR_NOW RTLD_NOW
12596 # define LT_DLLAZY_OR_NOW DL_NOW
12598 # define LT_DLLAZY_OR_NOW 0
12605 /* When -fvisbility=hidden is used, assume the code has been annotated
12606 correspondingly for the symbols needed. */
12607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12608 int fnord () __attribute__((visibility("default")));
12611 int fnord () { return 42; }
12614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12615 int status = $lt_dlunknown;
12619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12623 else puts (dlerror ());
12625 /* dlclose (self); */
12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12634 (eval $ac_link) 2>&5
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12638 (./conftest; exit; ) >&5 2>/dev/null
12640 case x$lt_status in
12641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12646 # compilation failed
12647 lt_cv_dlopen_self_static=no
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12655 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12658 CPPFLAGS="$save_CPPFLAGS"
12659 LDFLAGS="$save_LDFLAGS"
12664 case $lt_cv_dlopen_self in
12665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12666 *) enable_dlopen_self=unknown ;;
12669 case $lt_cv_dlopen_self_static in
12670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12671 *) enable_dlopen_self_static=unknown ;;
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12694 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12695 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12699 $as_echo "yes" >&6; }
12701 # FIXME - insert some real tests, host_os isn't really good enough
12704 if test -n "$STRIP" ; then
12705 striplib="$STRIP -x"
12706 old_striplib="$STRIP -S"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12708 $as_echo "yes" >&6; }
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12732 # Report which library types will actually be built
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12734 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12736 $as_echo "$can_build_shared" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12739 $as_echo_n "checking whether to build shared libraries... " >&6; }
12740 test "$can_build_shared" = "no" && enable_shared=no
12742 # On AIX, shared libraries and static libraries use the same namespace, and
12743 # are all built from PIC.
12746 test "$enable_shared" = yes && enable_static=no
12747 if test -n "$RANLIB"; then
12748 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12749 postinstall_cmds='$RANLIB $lib'
12754 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12755 test "$enable_shared" = yes && enable_static=no
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12760 $as_echo "$enable_shared" >&6; }
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12763 $as_echo_n "checking whether to build static libraries... " >&6; }
12764 # Make sure either enable_shared or enable_static is yes.
12765 test "$enable_shared" = yes || enable_static=yes
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12767 $as_echo "$enable_static" >&6; }
12774 ac_cpp='$CPP $CPPFLAGS'
12775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12782 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12783 (test "X$CXX" != "Xg++"))) ; then
12785 ac_cpp='$CXXCPP $CPPFLAGS'
12786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12790 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12791 if test -z "$CXXCPP"; then
12792 if ${ac_cv_prog_CXXCPP+:} false; then :
12793 $as_echo_n "(cached) " >&6
12795 # Double quotes because CXXCPP needs to be expanded
12796 for CXXCPP in "$CXX -E" "/lib/cpp"
12798 ac_preproc_ok=false
12799 for ac_cxx_preproc_warn_flag in '' yes
12801 # Use a header file that comes with gcc, so configuring glibc
12802 # with a fresh cross-compiler works.
12803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12804 # <limits.h> exists even on freestanding compilers.
12805 # On the NeXT, cc -E runs the code through the compiler's parser,
12806 # not just through cpp. "Syntax error" is here to catch this case.
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12810 # include <limits.h>
12812 # include <assert.h>
12816 if ac_fn_cxx_try_cpp "$LINENO"; then :
12819 # Broken: fails on valid input.
12822 rm -f conftest.err conftest.i conftest.$ac_ext
12824 # OK, works on sane cases. Now check whether nonexistent headers
12825 # can be detected and how.
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #include <ac_nonexistent.h>
12830 if ac_fn_cxx_try_cpp "$LINENO"; then :
12831 # Broken: success on invalid input.
12834 # Passes both tests.
12838 rm -f conftest.err conftest.i conftest.$ac_ext
12841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12842 rm -f conftest.i conftest.err conftest.$ac_ext
12843 if $ac_preproc_ok; then :
12848 ac_cv_prog_CXXCPP=$CXXCPP
12851 CXXCPP=$ac_cv_prog_CXXCPP
12853 ac_cv_prog_CXXCPP=$CXXCPP
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12856 $as_echo "$CXXCPP" >&6; }
12857 ac_preproc_ok=false
12858 for ac_cxx_preproc_warn_flag in '' yes
12860 # Use a header file that comes with gcc, so configuring glibc
12861 # with a fresh cross-compiler works.
12862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12863 # <limits.h> exists even on freestanding compilers.
12864 # On the NeXT, cc -E runs the code through the compiler's parser,
12865 # not just through cpp. "Syntax error" is here to catch this case.
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12869 # include <limits.h>
12871 # include <assert.h>
12875 if ac_fn_cxx_try_cpp "$LINENO"; then :
12878 # Broken: fails on valid input.
12881 rm -f conftest.err conftest.i conftest.$ac_ext
12883 # OK, works on sane cases. Now check whether nonexistent headers
12884 # can be detected and how.
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <ac_nonexistent.h>
12889 if ac_fn_cxx_try_cpp "$LINENO"; then :
12890 # Broken: success on invalid input.
12893 # Passes both tests.
12897 rm -f conftest.err conftest.i conftest.$ac_ext
12900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12901 rm -f conftest.i conftest.err conftest.$ac_ext
12902 if $ac_preproc_ok; then :
12905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12907 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12908 See \`config.log' for more details" "$LINENO" 5; }
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12918 _lt_caught_CXX_error=yes
12922 ac_cpp='$CXXCPP $CPPFLAGS'
12923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927 archive_cmds_need_lc_CXX=no
12928 allow_undefined_flag_CXX=
12929 always_export_symbols_CXX=no
12930 archive_expsym_cmds_CXX=
12931 compiler_needs_object_CXX=no
12932 export_dynamic_flag_spec_CXX=
12933 hardcode_direct_CXX=no
12934 hardcode_direct_absolute_CXX=no
12935 hardcode_libdir_flag_spec_CXX=
12936 hardcode_libdir_separator_CXX=
12937 hardcode_minus_L_CXX=no
12938 hardcode_shlibpath_var_CXX=unsupported
12939 hardcode_automatic_CXX=no
12940 inherit_rpath_CXX=no
12942 module_expsym_cmds_CXX=
12943 link_all_deplibs_CXX=unknown
12944 old_archive_cmds_CXX=$old_archive_cmds
12945 reload_flag_CXX=$reload_flag
12946 reload_cmds_CXX=$reload_cmds
12947 no_undefined_flag_CXX=
12948 whole_archive_flag_spec_CXX=
12949 enable_shared_with_static_runtimes_CXX=no
12951 # Source file extension for C++ test sources.
12954 # Object file extension for compiled C++ test sources.
12958 # No sense in running all these tests if we already determined that
12959 # the CXX compiler isn't working. Some variables (like enable_shared)
12960 # are currently assumed to apply to all compilers on this platform,
12961 # and will be corrupted by setting them based on a non-working compiler.
12962 if test "$_lt_caught_CXX_error" != yes; then
12963 # Code to be used in simple compile tests
12964 lt_simple_compile_test_code="int some_variable = 0;"
12966 # Code to be used in simple link tests
12967 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12976 # If no C compiler was specified, use CC.
12979 # If no C compiler flags were specified, use CFLAGS.
12980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12982 # Allow CC to be a program name with arguments.
12986 # save warnings/boilerplate of simple test code
12987 ac_outfile=conftest.$ac_objext
12988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12990 _lt_compiler_boilerplate=`cat conftest.err`
12993 ac_outfile=conftest.$ac_objext
12994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12996 _lt_linker_boilerplate=`cat conftest.err`
13000 # Allow CC to be a program name with arguments.
13002 lt_save_CFLAGS=$CFLAGS
13006 lt_save_with_gnu_ld=$with_gnu_ld
13007 lt_save_path_LD=$lt_cv_path_LD
13008 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13009 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13011 $as_unset lt_cv_prog_gnu_ld
13013 if test -n "${lt_cv_path_LDCXX+set}"; then
13014 lt_cv_path_LD=$lt_cv_path_LDCXX
13016 $as_unset lt_cv_path_LD
13018 test -z "${LDCXX+set}" || LD=$LDCXX
13023 for cc_temp in $compiler""; do
13025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13031 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13034 if test -n "$compiler"; then
13035 # We don't want -fno-exception when compiling C++ code, so set the
13036 # no_builtin_flag separately
13037 if test "$GXX" = yes; then
13038 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13040 lt_prog_compiler_no_builtin_flag_CXX=
13043 if test "$GXX" = yes; then
13044 # Set up default GNU C++ configuration
13048 # Check whether --with-gnu-ld was given.
13049 if test "${with_gnu_ld+set}" = set; then :
13050 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13056 if test "$GCC" = yes; then
13057 # Check if gcc -print-prog-name=ld gives a path.
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13059 $as_echo_n "checking for ld used by $CC... " >&6; }
13062 # gcc leaves a trailing carriage return which upsets mingw
13063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13068 # Accept absolute paths.
13070 re_direlt='/[^/][^/]*/\.\./'
13071 # Canonicalize the pathname of ld
13072 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13073 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13074 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13076 test -z "$LD" && LD="$ac_prog"
13079 # If it fails, then pretend we aren't using GCC.
13083 # If it is relative, then search for the first ld in PATH.
13084 with_gnu_ld=unknown
13087 elif test "$with_gnu_ld" = yes; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13089 $as_echo_n "checking for GNU ld... " >&6; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13092 $as_echo_n "checking for non-GNU ld... " >&6; }
13094 if ${lt_cv_path_LD+:} false; then :
13095 $as_echo_n "(cached) " >&6
13097 if test -z "$LD"; then
13098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13099 for ac_dir in $PATH; do
13101 test -z "$ac_dir" && ac_dir=.
13102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13103 lt_cv_path_LD="$ac_dir/$ac_prog"
13104 # Check to see if the program is GNU ld. I'd rather use --version,
13105 # but apparently some variants of GNU ld only accept -v.
13106 # Break only if it was the GNU/non-GNU ld that we prefer.
13107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13108 *GNU* | *'with BFD'*)
13109 test "$with_gnu_ld" != no && break
13112 test "$with_gnu_ld" != yes && break
13119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13123 LD="$lt_cv_path_LD"
13124 if test -n "$LD"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13126 $as_echo "$LD" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13131 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13133 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13134 if ${lt_cv_prog_gnu_ld+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13138 case `$LD -v 2>&1 </dev/null` in
13139 *GNU* | *'with BFD'*)
13140 lt_cv_prog_gnu_ld=yes
13143 lt_cv_prog_gnu_ld=no
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13148 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13149 with_gnu_ld=$lt_cv_prog_gnu_ld
13157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13158 # archiving commands below assume that GNU ld is being used.
13159 if test "$with_gnu_ld" = yes; then
13160 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13166 # If archive_cmds runs LD, not CC, wlarc should be empty
13167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13168 # investigate it a little bit more. (MM)
13171 # ancient GNU ld didn't support --whole-archive et. al.
13172 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13173 $GREP 'no-whole-archive' > /dev/null; then
13174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13176 whole_archive_flag_spec_CXX=
13182 # A generic and very simple default shared library creation
13183 # command for GNU C++ for the case where it uses the native
13184 # linker, instead of GNU ld. If possible, this setting should
13185 # overridden to take advantage of the native linker features on
13186 # the platform it is being used on.
13187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13190 # Commands to make compiler produce verbose output that lists
13191 # what "hidden" libraries, object files and flags are used when
13192 # linking a shared library.
13193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13201 # PORTME: fill in a description of your system's C++ link characteristics
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13207 # FIXME: insert proper C++ library support
13211 if test "$host_cpu" = ia64; then
13212 # On IA64, the linker does run time linking by default, so we don't
13213 # have to do anything special.
13214 aix_use_runtimelinking=no
13215 exp_sym_flag='-Bexport'
13218 aix_use_runtimelinking=no
13220 # Test if we are trying to use run time linking or normal
13221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13222 # need to do runtime linking.
13223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13224 for ld_flag in $LDFLAGS; do
13227 aix_use_runtimelinking=yes
13235 exp_sym_flag='-bexport'
13236 no_entry_flag='-bnoentry'
13239 # When large executables or shared objects are built, AIX ld can
13240 # have problems creating the table of contents. If linking a library
13241 # or program results in "error TOC overflow" add -mminimal-toc to
13242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13245 archive_cmds_CXX=''
13246 hardcode_direct_CXX=yes
13247 hardcode_direct_absolute_CXX=yes
13248 hardcode_libdir_separator_CXX=':'
13249 link_all_deplibs_CXX=yes
13250 file_list_spec_CXX='${wl}-f,'
13252 if test "$GXX" = yes; then
13253 case $host_os in aix4.[012]|aix4.[012].*)
13254 # We only want to do this on AIX 4.2 and lower, the check
13255 # below for broken collect2 doesn't work under 4.3+
13256 collect2name=`${CC} -print-prog-name=collect2`
13257 if test -f "$collect2name" &&
13258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13260 # We have reworked collect2
13263 # We have old collect2
13264 hardcode_direct_CXX=unsupported
13265 # It fails to find uninstalled libraries when the uninstalled
13266 # path is not listed in the libpath. Setting hardcode_minus_L
13267 # to unsupported forces relinking
13268 hardcode_minus_L_CXX=yes
13269 hardcode_libdir_flag_spec_CXX='-L$libdir'
13270 hardcode_libdir_separator_CXX=
13273 shared_flag='-shared'
13274 if test "$aix_use_runtimelinking" = yes; then
13275 shared_flag="$shared_flag "'${wl}-G'
13279 if test "$host_cpu" = ia64; then
13280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13281 # chokes on -Wl,-G. The following line is correct:
13284 if test "$aix_use_runtimelinking" = yes; then
13285 shared_flag='${wl}-G'
13287 shared_flag='${wl}-bM:SRE'
13292 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13293 # It seems that -bexpall does not export symbols beginning with
13294 # underscore (_), so it is better to generate a list of symbols to
13296 always_export_symbols_CXX=yes
13297 if test "$aix_use_runtimelinking" = yes; then
13298 # Warning - without using the other runtime loading flags (-brtl),
13299 # -berok will link without error, but may produce a broken library.
13300 allow_undefined_flag_CXX='-berok'
13301 # Determine the default libpath from the value encoded in an empty
13303 if test "${lt_cv_aix_libpath+set}" = set; then
13304 aix_libpath=$lt_cv_aix_libpath
13306 if ${lt_cv_aix_libpath__CXX+:} false; then :
13307 $as_echo_n "(cached) " >&6
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13320 if ac_fn_cxx_try_link "$LINENO"; then :
13322 lt_aix_libpath_sed='
13323 /Import File Strings/,/^$/ {
13325 s/^0 *\([^ ]*\) *$/\1/
13329 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13330 # Check for a 64-bit object if we didn't find anything.
13331 if test -z "$lt_cv_aix_libpath__CXX"; then
13332 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 if test -z "$lt_cv_aix_libpath__CXX"; then
13338 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13343 aix_libpath=$lt_cv_aix_libpath__CXX
13346 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13348 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13350 if test "$host_cpu" = ia64; then
13351 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13352 allow_undefined_flag_CXX="-z nodefs"
13353 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"
13355 # Determine the default libpath from the value encoded in an
13356 # empty executable.
13357 if test "${lt_cv_aix_libpath+set}" = set; then
13358 aix_libpath=$lt_cv_aix_libpath
13360 if ${lt_cv_aix_libpath__CXX+:} false; then :
13361 $as_echo_n "(cached) " >&6
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13374 if ac_fn_cxx_try_link "$LINENO"; then :
13376 lt_aix_libpath_sed='
13377 /Import File Strings/,/^$/ {
13379 s/^0 *\([^ ]*\) *$/\1/
13383 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13384 # Check for a 64-bit object if we didn't find anything.
13385 if test -z "$lt_cv_aix_libpath__CXX"; then
13386 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 if test -z "$lt_cv_aix_libpath__CXX"; then
13392 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13397 aix_libpath=$lt_cv_aix_libpath__CXX
13400 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13401 # Warning - without using the other run time loading flags,
13402 # -berok will link without error, but may produce a broken library.
13403 no_undefined_flag_CXX=' ${wl}-bernotok'
13404 allow_undefined_flag_CXX=' ${wl}-berok'
13405 if test "$with_gnu_ld" = yes; then
13406 # We only use this code for GNU lds that support --whole-archive.
13407 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13409 # Exported symbols can be pulled into shared objects from archives
13410 whole_archive_flag_spec_CXX='$convenience'
13412 archive_cmds_need_lc_CXX=yes
13413 # This is similar to how AIX traditionally builds its shared
13415 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'
13421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13422 allow_undefined_flag_CXX=unsupported
13423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13424 # support --undefined. This deserves some investigation. FIXME
13425 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13432 case $cc_basename in
13434 # FIXME: insert proper C++ library support
13440 cygwin* | mingw* | pw32* | cegcc*)
13441 case $GXX,$cc_basename in
13444 # hardcode_libdir_flag_spec is actually meaningless, as there is
13445 # no search path for DLLs.
13446 hardcode_libdir_flag_spec_CXX=' '
13447 allow_undefined_flag_CXX=unsupported
13448 always_export_symbols_CXX=yes
13449 file_list_spec_CXX='@'
13450 # Tell ltmain to make .lib files, not .a files.
13452 # Tell ltmain to make .dll files, not .so files.
13454 # FIXME: Setting linknames here is a bad hack.
13455 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13456 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13457 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13459 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13461 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13463 # The linker will not automatically build a static lib if we build a DLL.
13464 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13465 enable_shared_with_static_runtimes_CXX=yes
13467 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13468 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13469 lt_tool_outputfile="@TOOL_OUTPUT@"~
13470 case $lt_outputfile in
13473 lt_outputfile="$lt_outputfile.exe"
13474 lt_tool_outputfile="$lt_tool_outputfile.exe"
13477 func_to_tool_file "$lt_outputfile"~
13478 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13479 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13480 $RM "$lt_outputfile.manifest";
13485 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13486 # as there is no search path for DLLs.
13487 hardcode_libdir_flag_spec_CXX='-L$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13489 allow_undefined_flag_CXX=unsupported
13490 always_export_symbols_CXX=no
13491 enable_shared_with_static_runtimes_CXX=yes
13493 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13494 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'
13495 # If the export-symbols file already is a .def file (1st line
13496 # is EXPORTS), use it as is; otherwise, prepend...
13497 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13498 cp $export_symbols $output_objdir/$soname.def;
13500 echo EXPORTS > $output_objdir/$soname.def;
13501 cat $export_symbols >> $output_objdir/$soname.def;
13503 $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'
13510 darwin* | rhapsody*)
13513 archive_cmds_need_lc_CXX=no
13514 hardcode_direct_CXX=no
13515 hardcode_automatic_CXX=yes
13516 hardcode_shlibpath_var_CXX=unsupported
13517 if test "$lt_cv_ld_force_load" = "yes"; then
13518 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13521 whole_archive_flag_spec_CXX=''
13523 link_all_deplibs_CXX=yes
13524 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13525 case $cc_basename in
13526 ifort*) _lt_dar_can_shared=yes ;;
13527 *) _lt_dar_can_shared=$GCC ;;
13529 if test "$_lt_dar_can_shared" = "yes"; then
13530 output_verbose_link_cmd=func_echo_all
13531 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}"
13532 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13533 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}"
13534 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}"
13535 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13536 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}"
13537 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}"
13547 case $cc_basename in
13549 # FIXME: insert proper C++ library support
13553 # Green Hills C++ Compiler
13554 # FIXME: insert proper C++ library support
13558 # FIXME: insert proper C++ library support
13565 # C++ shared libraries reported to be fairly broken before
13571 archive_cmds_need_lc_CXX=no
13574 freebsd* | dragonfly*)
13575 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13581 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13582 link_all_deplibs_CXX=yes
13586 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_separator_CXX=:
13588 export_dynamic_flag_spec_CXX='${wl}-E'
13589 hardcode_direct_CXX=yes
13590 hardcode_minus_L_CXX=yes # Not in the search PATH,
13591 # but as the default
13592 # location of the library.
13594 case $cc_basename in
13596 # FIXME: insert proper C++ library support
13600 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'
13601 # Commands to make compiler produce verbose output that lists
13602 # what "hidden" libraries, object files and flags are used when
13603 # linking a shared library.
13605 # There doesn't appear to be a way to prevent this compiler from
13606 # explicitly linking system object files so we need to strip them
13607 # from the output so that they don't get included in the library
13609 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; func_echo_all "$list"'
13612 if test "$GXX" = yes; then
13613 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13615 # FIXME: insert proper C++ library support
13623 if test $with_gnu_ld = no; then
13624 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13625 hardcode_libdir_separator_CXX=:
13631 export_dynamic_flag_spec_CXX='${wl}-E'
13637 hardcode_direct_CXX=no
13638 hardcode_shlibpath_var_CXX=no
13641 hardcode_direct_CXX=yes
13642 hardcode_direct_absolute_CXX=yes
13643 hardcode_minus_L_CXX=yes # Not in the search PATH,
13644 # but as the default
13645 # location of the library.
13649 case $cc_basename in
13651 # FIXME: insert proper C++ library support
13657 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13666 # Commands to make compiler produce verbose output that lists
13667 # what "hidden" libraries, object files and flags are used when
13668 # linking a shared library.
13670 # There doesn't appear to be a way to prevent this compiler from
13671 # explicitly linking system object files so we need to strip them
13672 # from the output so that they don't get included in the library
13674 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; func_echo_all "$list"'
13677 if test "$GXX" = yes; then
13678 if test $with_gnu_ld = no; then
13681 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13684 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13687 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13692 # FIXME: insert proper C++ library support
13700 hardcode_direct_CXX=no
13701 hardcode_shlibpath_var_CXX=no
13702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13703 export_dynamic_flag_spec_CXX='${wl}-E'
13704 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13705 # Instead, shared libraries are loaded at an image base (0x10000000 by
13706 # default) and relocated if they conflict, which is a slow very memory
13707 # consuming and fragmenting process. To avoid this, we pick a random,
13708 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13709 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13710 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'
13711 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'
13714 case $cc_basename in
13717 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13719 # Archives containing C++ object files must be created using
13720 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13721 # necessary to make sure instantiated templates are included
13723 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13726 if test "$GXX" = yes; then
13727 if test "$with_gnu_ld" = no; then
13728 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13730 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13733 link_all_deplibs_CXX=yes
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_CXX=:
13738 inherit_rpath_CXX=yes
13741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13742 case $cc_basename in
13744 # Kuck and Associates, Inc. (KAI) C++ Compiler
13746 # KCC will only create a shared library if the output file
13747 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13748 # to its proper name (with version) after linking.
13749 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'
13750 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'
13751 # Commands to make compiler produce verbose output that lists
13752 # what "hidden" libraries, object files and flags are used when
13753 # linking a shared library.
13755 # There doesn't appear to be a way to prevent this compiler from
13756 # explicitly linking system object files so we need to strip them
13757 # from the output so that they don't get included in the library
13759 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; func_echo_all "$list"'
13761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13764 # Archives containing C++ object files must be created using
13765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13771 # version 8.0 and above of icpc choke on multiply defined symbols
13772 # if we add $predep_objects and $postdep_objects, however 7.1 and
13773 # earlier do not add the objects themselves.
13774 case `$CC -V 2>&1` in
13776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13777 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'
13779 *) # Version 8.0 or newer
13782 ia64*) tmp_idyn=' -i_dynamic';;
13784 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785 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'
13788 archive_cmds_need_lc_CXX=no
13789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13791 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13794 # Portland Group C++ compiler
13796 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13797 prelink_cmds_CXX='tpldir=Template.dir~
13799 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13800 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13801 old_archive_cmds_CXX='tpldir=Template.dir~
13803 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13804 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13806 archive_cmds_CXX='tpldir=Template.dir~
13808 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13809 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13810 archive_expsym_cmds_CXX='tpldir=Template.dir~
13812 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13813 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13815 *) # Version 6 and above use weak symbols
13816 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13817 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'
13821 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13822 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13823 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13827 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828 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'
13830 runpath_var=LD_RUN_PATH
13831 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13832 hardcode_libdir_separator_CXX=:
13834 # Commands to make compiler produce verbose output that lists
13835 # what "hidden" libraries, object files and flags are used when
13836 # linking a shared library.
13838 # There doesn't appear to be a way to prevent this compiler from
13839 # explicitly linking system object files so we need to strip them
13840 # from the output so that they don't get included in the library
13842 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13844 xl* | mpixl* | bgxl*)
13845 # IBM XL 8.0 on PPC, with GNU ld
13846 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13847 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13848 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13849 if test "x$supports_anon_versioning" = xyes; then
13850 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13852 echo "local: *; };" >> $output_objdir/$libname.ver~
13853 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13857 case `$CC -V 2>&1 | sed 5q` in
13860 no_undefined_flag_CXX=' -zdefs'
13861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862 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'
13863 hardcode_libdir_flag_spec_CXX='-R$libdir'
13864 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13865 compiler_needs_object_CXX=yes
13867 # Not sure whether something based on
13868 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13870 output_verbose_link_cmd='func_echo_all'
13872 # Archives containing C++ object files must be created using
13873 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13874 # necessary to make sure instantiated templates are included
13876 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13884 # FIXME: insert proper C++ library support
13889 # FIXME: insert proper C++ library support
13894 case $cc_basename in
13896 # FIXME: insert proper C++ library support
13900 # FIXME: insert proper C++ library support
13907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13908 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13910 hardcode_libdir_flag_spec_CXX='-R$libdir'
13911 hardcode_direct_CXX=yes
13912 hardcode_shlibpath_var_CXX=no
13914 # Workaround some broken pre-1.5 toolchains
13915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13923 # C++ shared libraries are fairly broken
13928 if test -f /usr/libexec/ld.so; then
13929 hardcode_direct_CXX=yes
13930 hardcode_shlibpath_var_CXX=no
13931 hardcode_direct_absolute_CXX=yes
13932 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13935 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13936 export_dynamic_flag_spec_CXX='${wl}-E'
13937 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13939 output_verbose_link_cmd=func_echo_all
13945 osf3* | osf4* | osf5*)
13946 case $cc_basename in
13948 # Kuck and Associates, Inc. (KAI) C++ Compiler
13950 # KCC will only create a shared library if the output file
13951 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13952 # to its proper name (with version) after linking.
13953 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'
13955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13956 hardcode_libdir_separator_CXX=:
13958 # Archives containing C++ object files must be created using
13959 # the KAI C++ compiler.
13961 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13962 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13966 # Rational C++ 2.4.1
13967 # FIXME: insert proper C++ library support
13973 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13974 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13978 allow_undefined_flag_CXX=' -expect_unresolved \*'
13979 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13980 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13981 echo "-hidden">> $lib.exp~
13982 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13984 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13988 hardcode_libdir_separator_CXX=:
13990 # Commands to make compiler produce verbose output that lists
13991 # what "hidden" libraries, object files and flags are used when
13992 # linking a shared library.
13994 # There doesn't appear to be a way to prevent this compiler from
13995 # explicitly linking system object files so we need to strip them
13996 # from the output so that they don't get included in the library
13998 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14001 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14002 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14005 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14008 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14013 hardcode_libdir_separator_CXX=:
14015 # Commands to make compiler produce verbose output that lists
14016 # what "hidden" libraries, object files and flags are used when
14017 # linking a shared library.
14018 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14021 # FIXME: insert proper C++ library support
14029 # FIXME: insert proper C++ library support
14034 case $cc_basename in
14037 # FIXME: insert proper C++ library support
14042 # FIXME: insert proper C++ library support
14046 # FIXME: insert proper C++ library support
14053 case $cc_basename in
14055 # Sun C++ 4.2, 5.x and Centerline C++
14056 archive_cmds_need_lc_CXX=yes
14057 no_undefined_flag_CXX=' -zdefs'
14058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14060 $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'
14062 hardcode_libdir_flag_spec_CXX='-R$libdir'
14063 hardcode_shlibpath_var_CXX=no
14065 solaris2.[0-5] | solaris2.[0-5].*) ;;
14067 # The compiler driver will combine and reorder linker options,
14068 # but understands `-z linker_flag'.
14069 # Supported since Solaris 2.6 (maybe 2.5.1?)
14070 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14073 link_all_deplibs_CXX=yes
14075 output_verbose_link_cmd='func_echo_all'
14077 # Archives containing C++ object files must be created using
14078 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14079 # necessary to make sure instantiated templates are included
14081 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14084 # Green Hills C++ Compiler
14085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14087 # The C++ compiler must be used to create the archive.
14088 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14091 # GNU C++ compiler with Solaris linker
14092 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14093 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14094 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14095 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14097 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14099 # Commands to make compiler produce verbose output that lists
14100 # what "hidden" libraries, object files and flags are used when
14101 # linking a shared library.
14102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14104 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14106 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14107 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14108 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14110 # Commands to make compiler produce verbose output that lists
14111 # what "hidden" libraries, object files and flags are used when
14112 # linking a shared library.
14113 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14116 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14118 solaris2.[0-5] | solaris2.[0-5].*) ;;
14120 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14128 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14129 no_undefined_flag_CXX='${wl}-z,text'
14130 archive_cmds_need_lc_CXX=no
14131 hardcode_shlibpath_var_CXX=no
14132 runpath_var='LD_RUN_PATH'
14134 case $cc_basename in
14136 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14146 sysv5* | sco3.2v5* | sco5v6*)
14147 # Note: We can NOT use -z defs as we might desire, because we do not
14148 # link with -lc, and that would cause any symbols used from libc to
14149 # always be unresolved, which means just about no library would
14150 # ever link correctly. If we're not using GNU ld we use -z text
14151 # though, which does catch some bad symbols but isn't as heavy-handed
14153 no_undefined_flag_CXX='${wl}-z,text'
14154 allow_undefined_flag_CXX='${wl}-z,nodefs'
14155 archive_cmds_need_lc_CXX=no
14156 hardcode_shlibpath_var_CXX=no
14157 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14158 hardcode_libdir_separator_CXX=':'
14159 link_all_deplibs_CXX=yes
14160 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14161 runpath_var='LD_RUN_PATH'
14163 case $cc_basename in
14165 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14168 '"$old_archive_cmds_CXX"
14169 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14170 '"$reload_cmds_CXX"
14173 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 case $cc_basename in
14182 # NonStop-UX NCC 3.20
14183 # FIXME: insert proper C++ library support
14187 # FIXME: insert proper C++ library support
14194 # FIXME: insert proper C++ library support
14199 # FIXME: insert proper C++ library support
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14205 $as_echo "$ld_shlibs_CXX" >&6; }
14206 test "$ld_shlibs_CXX" = no && can_build_shared=no
14212 ## There is no encapsulation within the following macros, do not change
14213 ## the running order or otherwise move them around unless you know exactly
14214 ## what you are doing...
14215 # Dependencies to place before and after the object being linked:
14216 predep_objects_CXX=
14217 postdep_objects_CXX=
14220 compiler_lib_search_path_CXX=
14222 cat > conftest.$ac_ext <<_LT_EOF
14226 Foo (void) { a = 0; }
14233 _lt_libdeps_save_CFLAGS=$CFLAGS
14234 case "$CC $CFLAGS " in #(
14235 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14236 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14237 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14241 (eval $ac_compile) 2>&5
14243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 test $ac_status = 0; }; then
14245 # Parse the compiler output and extract the necessary
14246 # objects, libraries and library flags.
14248 # Sentinel used to keep track of whether or not we are before
14249 # the conftest object file.
14250 pre_test_object_deps_done=no
14252 for p in `eval "$output_verbose_link_cmd"`; do
14253 case ${prev}${p} in
14256 # Some compilers place space between "-{L,R}" and the path.
14257 # Remove the space.
14258 if test $p = "-L" ||
14259 test $p = "-R"; then
14264 # Expand the sysroot to ease extracting the directories later.
14265 if test -z "$prev"; then
14267 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14268 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14269 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14273 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14275 if test "$pre_test_object_deps_done" = no; then
14278 # Internal compiler library paths should come after those
14279 # provided the user. The postdeps already come after the
14280 # user supplied libs so there is no need to process them.
14281 if test -z "$compiler_lib_search_path_CXX"; then
14282 compiler_lib_search_path_CXX="${prev}${p}"
14284 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14287 # The "-l" case would never come before the object being
14288 # linked, so don't bother handling this case.
14291 if test -z "$postdeps_CXX"; then
14292 postdeps_CXX="${prev}${p}"
14294 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14300 *.lto.$objext) ;; # Ignore GCC LTO objects
14302 # This assumes that the test object file only shows up
14303 # once in the compiler output.
14304 if test "$p" = "conftest.$objext"; then
14305 pre_test_object_deps_done=yes
14309 if test "$pre_test_object_deps_done" = no; then
14310 if test -z "$predep_objects_CXX"; then
14311 predep_objects_CXX="$p"
14313 predep_objects_CXX="$predep_objects_CXX $p"
14316 if test -z "$postdep_objects_CXX"; then
14317 postdep_objects_CXX="$p"
14319 postdep_objects_CXX="$postdep_objects_CXX $p"
14324 *) ;; # Ignore the rest.
14332 echo "libtool.m4: error: problem compiling CXX test program"
14335 $RM -f confest.$objext
14336 CFLAGS=$_lt_libdeps_save_CFLAGS
14338 # PORTME: override above test on systems where it is broken
14341 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14342 # hack all around it, let's just trust "g++" to DTRT.
14343 predep_objects_CXX=
14344 postdep_objects_CXX=
14349 case `$CC -V 2>&1 | sed 5q` in
14353 # The more standards-conforming stlport4 library is
14354 # incompatible with the Cstd library. Avoid specifying
14355 # it if it's in CXXFLAGS. Ignore libCrun as
14356 # -library=stlport4 depends on it.
14357 case " $CXX $CXXFLAGS " in
14358 *" -library=stlport4 "*)
14359 solaris_use_stlport4=yes
14363 if test "$solaris_use_stlport4" != yes; then
14364 postdeps_CXX='-library=Cstd -library=Crun'
14371 case $cc_basename in
14373 # The more standards-conforming stlport4 library is
14374 # incompatible with the Cstd library. Avoid specifying
14375 # it if it's in CXXFLAGS. Ignore libCrun as
14376 # -library=stlport4 depends on it.
14377 case " $CXX $CXXFLAGS " in
14378 *" -library=stlport4 "*)
14379 solaris_use_stlport4=yes
14383 # Adding this requires a known-good setup of shared libraries for
14384 # Sun compiler versions before 5.6, else PIC objects from an old
14385 # archive will be linked into the output, leading to subtle bugs.
14386 if test "$solaris_use_stlport4" != yes; then
14387 postdeps_CXX='-library=Cstd -library=Crun'
14395 case " $postdeps_CXX " in
14396 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14398 compiler_lib_search_dirs_CXX=
14399 if test -n "${compiler_lib_search_path_CXX}"; then
14400 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14433 lt_prog_compiler_wl_CXX=
14434 lt_prog_compiler_pic_CXX=
14435 lt_prog_compiler_static_CXX=
14438 # C++ specific cases for pic, static, wl, etc.
14439 if test "$GXX" = yes; then
14440 lt_prog_compiler_wl_CXX='-Wl,'
14441 lt_prog_compiler_static_CXX='-static'
14445 # All AIX code is PIC.
14446 if test "$host_cpu" = ia64; then
14447 # AIX 5 now supports IA64 processor
14448 lt_prog_compiler_static_CXX='-Bstatic'
14455 # see comment about AmigaOS4 .so support
14456 lt_prog_compiler_pic_CXX='-fPIC'
14459 # FIXME: we need at least 68020 code to build shared libraries, but
14460 # adding the `-m68020' flag to GCC prevents building anything better,
14462 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14468 # PIC is the default for these OSes.
14470 mingw* | cygwin* | os2* | pw32* | cegcc*)
14471 # This hack is so that the source file can tell whether it is being
14472 # built for inclusion in a dll (and should export symbols for example).
14473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14474 # (--disable-auto-import) libraries
14475 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14477 darwin* | rhapsody*)
14478 # PIC is the default on this platform
14479 # Common symbols not allowed in MH_DYLIB files
14480 lt_prog_compiler_pic_CXX='-fno-common'
14483 # DJGPP does not support shared libraries at all
14484 lt_prog_compiler_pic_CXX=
14487 # PIC is the default for Haiku.
14488 # The "-static" flag exists, but is broken.
14489 lt_prog_compiler_static_CXX=
14492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14493 # Instead, we relocate shared libraries at runtime.
14496 if test -d /usr/nec; then
14497 lt_prog_compiler_pic_CXX=-Kconform_pic
14501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14503 # sets the default TLS model and affects inlining.
14508 lt_prog_compiler_pic_CXX='-fPIC'
14513 # QNX uses GNU C++, but need to define -shared option too, otherwise
14514 # it will coredump.
14515 lt_prog_compiler_pic_CXX='-fPIC -shared'
14518 lt_prog_compiler_pic_CXX='-fPIC'
14524 # All AIX code is PIC.
14525 if test "$host_cpu" = ia64; then
14526 # AIX 5 now supports IA64 processor
14527 lt_prog_compiler_static_CXX='-Bstatic'
14529 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14533 case $cc_basename in
14535 # Green Hills C++ Compiler
14536 # _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"
14540 mingw* | cygwin* | os2* | pw32* | cegcc*)
14541 # This hack is so that the source file can tell whether it is being
14542 # built for inclusion in a dll (and should export symbols for example).
14543 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14546 case $cc_basename in
14548 lt_prog_compiler_pic_CXX='-KPIC'
14551 # Green Hills C++ Compiler
14552 lt_prog_compiler_pic_CXX='-pic'
14558 freebsd* | dragonfly*)
14559 # FreeBSD uses GNU C++
14561 hpux9* | hpux10* | hpux11*)
14562 case $cc_basename in
14564 lt_prog_compiler_wl_CXX='-Wl,'
14565 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14566 if test "$host_cpu" != ia64; then
14567 lt_prog_compiler_pic_CXX='+Z'
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14578 lt_prog_compiler_pic_CXX='+Z'
14587 # This is c89, which is MS Visual C++ (no shared libs)
14588 # Anyone wants to do a port?
14590 irix5* | irix6* | nonstopux*)
14591 case $cc_basename in
14593 lt_prog_compiler_wl_CXX='-Wl,'
14594 lt_prog_compiler_static_CXX='-non_shared'
14595 # CC pic flag -KPIC is the default.
14601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14602 case $cc_basename in
14605 lt_prog_compiler_wl_CXX='--backend -Wl,'
14606 lt_prog_compiler_pic_CXX='-fPIC'
14609 # old Intel C++ for x86_64 which still supported -KPIC.
14610 lt_prog_compiler_wl_CXX='-Wl,'
14611 lt_prog_compiler_pic_CXX='-KPIC'
14612 lt_prog_compiler_static_CXX='-static'
14615 # Intel C++, used to be incompatible with GCC.
14616 # ICC 10 doesn't accept -KPIC any more.
14617 lt_prog_compiler_wl_CXX='-Wl,'
14618 lt_prog_compiler_pic_CXX='-fPIC'
14619 lt_prog_compiler_static_CXX='-static'
14622 # Portland Group C++ compiler
14623 lt_prog_compiler_wl_CXX='-Wl,'
14624 lt_prog_compiler_pic_CXX='-fpic'
14625 lt_prog_compiler_static_CXX='-Bstatic'
14629 # Make sure the PIC flag is empty. It appears that all Alpha
14630 # Linux and Compaq Tru64 Unix objects are PIC.
14631 lt_prog_compiler_pic_CXX=
14632 lt_prog_compiler_static_CXX='-non_shared'
14634 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14635 # IBM XL 8.0, 9.0 on PPC and BlueGene
14636 lt_prog_compiler_wl_CXX='-Wl,'
14637 lt_prog_compiler_pic_CXX='-qpic'
14638 lt_prog_compiler_static_CXX='-qstaticlink'
14641 case `$CC -V 2>&1 | sed 5q` in
14644 lt_prog_compiler_pic_CXX='-KPIC'
14645 lt_prog_compiler_static_CXX='-Bstatic'
14646 lt_prog_compiler_wl_CXX='-Qoption ld '
14657 case $cc_basename in
14659 lt_prog_compiler_pic_CXX='-W c,exportall'
14665 netbsd* | netbsdelf*-gnu)
14668 # QNX uses GNU C++, but need to define -shared option too, otherwise
14669 # it will coredump.
14670 lt_prog_compiler_pic_CXX='-fPIC -shared'
14672 osf3* | osf4* | osf5*)
14673 case $cc_basename in
14675 lt_prog_compiler_wl_CXX='--backend -Wl,'
14678 # Rational C++ 2.4.1
14679 lt_prog_compiler_pic_CXX='-pic'
14682 # Digital/Compaq C++
14683 lt_prog_compiler_wl_CXX='-Wl,'
14684 # Make sure the PIC flag is empty. It appears that all Alpha
14685 # Linux and Compaq Tru64 Unix objects are PIC.
14686 lt_prog_compiler_pic_CXX=
14687 lt_prog_compiler_static_CXX='-non_shared'
14696 case $cc_basename in
14698 # Sun C++ 4.2, 5.x and Centerline C++
14699 lt_prog_compiler_pic_CXX='-KPIC'
14700 lt_prog_compiler_static_CXX='-Bstatic'
14701 lt_prog_compiler_wl_CXX='-Qoption ld '
14704 # Green Hills C++ Compiler
14705 lt_prog_compiler_pic_CXX='-PIC'
14712 case $cc_basename in
14715 lt_prog_compiler_pic_CXX='-pic'
14716 lt_prog_compiler_static_CXX='-Bstatic'
14720 lt_prog_compiler_pic_CXX='-pic'
14726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14727 case $cc_basename in
14729 lt_prog_compiler_wl_CXX='-Wl,'
14730 lt_prog_compiler_pic_CXX='-KPIC'
14731 lt_prog_compiler_static_CXX='-Bstatic'
14736 case $cc_basename in
14738 # NonStop-UX NCC 3.20
14739 lt_prog_compiler_pic_CXX='-KPIC'
14748 lt_prog_compiler_can_build_shared_CXX=no
14754 # For platforms which do not support PIC, -DPIC is meaningless:
14756 lt_prog_compiler_pic_CXX=
14759 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14765 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14766 $as_echo_n "(cached) " >&6
14768 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14771 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14772 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14775 # Check to make sure the PIC flag actually works.
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14780 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 lt_cv_prog_compiler_pic_works_CXX=no
14784 ac_outfile=conftest.$ac_objext
14785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787 # Insert the option either (1) after the last *FLAGS variable, or
14788 # (2) before a word containing "conftest.", or (3) at the end.
14789 # Note that $ac_compile itself does not contain backslashes and begins
14790 # with a dollar sign (not a hyphen), so the echo should work correctly.
14791 # The option is referenced via a variable to avoid confusing sed.
14792 lt_compile=`echo "$ac_compile" | $SED \
14793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795 -e 's:$: $lt_compiler_flag:'`
14796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797 (eval "$lt_compile" 2>conftest.err)
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 if (exit $ac_status) && test -s "$ac_outfile"; then
14802 # The compiler can only warn and ignore the option if not recognized
14803 # So say no if there are warnings other than the usual output.
14804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807 lt_cv_prog_compiler_pic_works_CXX=yes
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817 case $lt_prog_compiler_pic_CXX in
14819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14822 lt_prog_compiler_pic_CXX=
14823 lt_prog_compiler_can_build_shared_CXX=no
14833 # Check to make sure the static flag actually works.
14835 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14838 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14839 $as_echo_n "(cached) " >&6
14841 lt_cv_prog_compiler_static_works_CXX=no
14842 save_LDFLAGS="$LDFLAGS"
14843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14846 # The linker can only warn and ignore the option if not recognized
14847 # So say no if there are warnings
14848 if test -s conftest.err; then
14849 # Append any errors to the config.log.
14850 cat conftest.err 1>&5
14851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14853 if diff conftest.exp conftest.er2 >/dev/null; then
14854 lt_cv_prog_compiler_static_works_CXX=yes
14857 lt_cv_prog_compiler_static_works_CXX=yes
14861 LDFLAGS="$save_LDFLAGS"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14865 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14867 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14870 lt_prog_compiler_static_CXX=
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14878 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14879 $as_echo_n "(cached) " >&6
14881 lt_cv_prog_compiler_c_o_CXX=no
14882 $RM -r conftest 2>/dev/null
14886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888 lt_compiler_flag="-o out/conftest2.$ac_objext"
14889 # Insert the option either (1) after the last *FLAGS variable, or
14890 # (2) before a word containing "conftest.", or (3) at the end.
14891 # Note that $ac_compile itself does not contain backslashes and begins
14892 # with a dollar sign (not a hyphen), so the echo should work correctly.
14893 lt_compile=`echo "$ac_compile" | $SED \
14894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14896 -e 's:$: $lt_compiler_flag:'`
14897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14898 (eval "$lt_compile" 2>out/conftest.err)
14900 cat out/conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14904 # The compiler can only warn and ignore the option if not recognized
14905 # So say no if there are warnings
14906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14909 lt_cv_prog_compiler_c_o_CXX=yes
14914 # SGI C++ compiler will create directory out/ii_files/ for
14915 # template instantiation
14916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14917 $RM out/* && rmdir out
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14924 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14930 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14931 $as_echo_n "(cached) " >&6
14933 lt_cv_prog_compiler_c_o_CXX=no
14934 $RM -r conftest 2>/dev/null
14938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14940 lt_compiler_flag="-o out/conftest2.$ac_objext"
14941 # Insert the option either (1) after the last *FLAGS variable, or
14942 # (2) before a word containing "conftest.", or (3) at the end.
14943 # Note that $ac_compile itself does not contain backslashes and begins
14944 # with a dollar sign (not a hyphen), so the echo should work correctly.
14945 lt_compile=`echo "$ac_compile" | $SED \
14946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14948 -e 's:$: $lt_compiler_flag:'`
14949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14950 (eval "$lt_compile" 2>out/conftest.err)
14952 cat out/conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14956 # The compiler can only warn and ignore the option if not recognized
14957 # So say no if there are warnings
14958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14961 lt_cv_prog_compiler_c_o_CXX=yes
14966 # SGI C++ compiler will create directory out/ii_files/ for
14967 # template instantiation
14968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14969 $RM out/* && rmdir out
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14976 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14981 hard_links="nottested"
14982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14983 # do not overwrite the value of need_locks provided by the user
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14985 $as_echo_n "checking if we can lock with hard links... " >&6; }
14988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990 ln conftest.a conftest.b 2>&5 || hard_links=no
14991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14993 $as_echo "$hard_links" >&6; }
14994 if test "$hard_links" = no; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14996 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15012 # If we're using GNU nm, then we don't want the "-C" option.
15013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014 # Also, AIX nm treats weak defined symbols like other global defined
15015 # symbols, whereas GNU nm marks them as "W".
15016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15017 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15019 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'
15023 export_symbols_cmds_CXX="$ltdll_cmds"
15025 cygwin* | mingw* | cegcc*)
15026 case $cc_basename in
15028 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15031 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15032 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15036 linux* | k*bsd*-gnu | gnu*)
15037 link_all_deplibs_CXX=no
15040 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15045 $as_echo "$ld_shlibs_CXX" >&6; }
15046 test "$ld_shlibs_CXX" = no && can_build_shared=no
15048 with_gnu_ld_CXX=$with_gnu_ld
15056 # Do we need to explicitly link libc?
15058 case "x$archive_cmds_need_lc_CXX" in
15060 # Assume -lc should be added
15061 archive_cmds_need_lc_CXX=yes
15063 if test "$enable_shared" = yes && test "$GCC" = yes; then
15064 case $archive_cmds_CXX in
15066 # FIXME: we may have to deal with multi-command sequences.
15069 # Test whether the compiler implicitly links with -lc since on some
15070 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15071 # to ld, don't add -lc before -lgcc.
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15073 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15074 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15075 $as_echo_n "(cached) " >&6
15078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15081 (eval $ac_compile) 2>&5
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; } 2>conftest.err; then
15087 libobjs=conftest.$ac_objext
15089 wl=$lt_prog_compiler_wl_CXX
15090 pic_flag=$lt_prog_compiler_pic_CXX
15096 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15097 allow_undefined_flag_CXX=
15098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15099 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15102 test $ac_status = 0; }
15104 lt_cv_archive_cmds_need_lc_CXX=no
15106 lt_cv_archive_cmds_need_lc_CXX=yes
15108 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15110 cat conftest.err 1>&5
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15116 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15117 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15186 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15188 library_names_spec=
15189 libname_spec='lib$name'
15193 postuninstall_cmds=
15197 shlibpath_overrides_runpath=unknown
15199 dynamic_linker="$host_os ld.so"
15200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15201 need_lib_prefix=unknown
15202 hardcode_into_libs=no
15204 # when you set need_version to no, make sure it does not cause -set_version
15205 # flags to be left without arguments
15206 need_version=unknown
15210 version_type=linux # correct to gnu/linux during the next big refactor
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15212 shlibpath_var=LIBPATH
15214 # AIX 3 has no versioning support, so we append a major version to the name.
15215 soname_spec='${libname}${release}${shared_ext}$major'
15219 version_type=linux # correct to gnu/linux during the next big refactor
15222 hardcode_into_libs=yes
15223 if test "$host_cpu" = ia64; then
15224 # AIX 5 supports IA64
15225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15226 shlibpath_var=LD_LIBRARY_PATH
15228 # With GCC up to 2.95.x, collect2 would create an import file
15229 # for dependence libraries. The import file would start with
15230 # the line `#! .'. This would cause the generated library to
15231 # depend on `.', always an invalid library. This was fixed in
15232 # development snapshots of GCC prior to 3.0.
15234 aix4 | aix4.[01] | aix4.[01].*)
15235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15237 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15240 can_build_shared=no
15244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15245 # soname into executable. Probably we can add versioning support to
15246 # collect2, so additional links can be useful in future.
15247 if test "$aix_use_runtimelinking" = yes; then
15248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15249 # instead of lib<name>.a to let people know that these are not
15250 # typical AIX shared libraries.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 # We preserve .a as extension for shared libraries through AIX4.2
15254 # and later when we are not doing run time linking.
15255 library_names_spec='${libname}${release}.a $libname.a'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15258 shlibpath_var=LIBPATH
15265 # Since July 2007 AmigaOS4 officially supports .so libraries.
15266 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 library_names_spec='$libname.ixlibrary $libname.a'
15271 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15272 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15278 library_names_spec='${libname}${shared_ext}'
15279 dynamic_linker="$host_os ld.so"
15280 shlibpath_var=LIBRARY_PATH
15284 version_type=linux # correct to gnu/linux during the next big refactor
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15292 # the default ld.so.conf also contains /usr/contrib/lib and
15293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15294 # libtool to hard-code these into programs
15297 cygwin* | mingw* | pw32* | cegcc*)
15298 version_type=windows
15303 case $GCC,$cc_basename in
15306 library_names_spec='$libname.dll.a'
15307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15308 postinstall_cmds='base_file=`basename \${file}`~
15309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15310 dldir=$destdir/`dirname \$dlpath`~
15311 test -d \$dldir || mkdir -p \$dldir~
15312 $install_prog $dir/$dlname \$dldir/$dlname~
15313 chmod a+x \$dldir/$dlname~
15314 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15315 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15318 dlpath=$dir/\$dldll~
15320 shlibpath_overrides_runpath=yes
15324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329 # MinGW DLLs use traditional 'lib' prefix
15330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15333 # pw32 DLLs use 'pw' prefix rather than 'lib'
15334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337 dynamic_linker='Win32 ld.exe'
15342 libname_spec='$name'
15343 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15344 library_names_spec='${libname}.dll.lib'
15348 sys_lib_search_path_spec=
15351 for lt_path in $LIB
15354 # Let DOS variable expansion print the short 8.3 style file name.
15355 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15356 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15359 # Convert to MSYS style.
15360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15363 # Convert to unix form, then to dos form, then back to unix form
15364 # but this time dos style (no spaces!) so that the unix form looks
15365 # like /cygdrive/c/PROGRA~1:/cygdr...
15366 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15367 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15368 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15371 sys_lib_search_path_spec="$LIB"
15372 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15373 # It is most probably a Windows format PATH.
15374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15378 # FIXME: find the short name or the path components, as spaces are
15379 # common. (e.g. "Program Files" -> "PROGRA~1")
15383 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15384 postinstall_cmds='base_file=`basename \${file}`~
15385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15386 dldir=$destdir/`dirname \$dlpath`~
15387 test -d \$dldir || mkdir -p \$dldir~
15388 $install_prog $dir/$dlname \$dldir/$dlname'
15389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15390 dlpath=$dir/\$dldll~
15392 shlibpath_overrides_runpath=yes
15393 dynamic_linker='Win32 link.exe'
15397 # Assume MSVC wrapper
15398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15399 dynamic_linker='Win32 ld.exe'
15402 # FIXME: first we should search . and the directory the executable is in
15406 darwin* | rhapsody*)
15407 dynamic_linker="$host_os dyld"
15408 version_type=darwin
15411 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15412 soname_spec='${libname}${release}${major}$shared_ext'
15413 shlibpath_overrides_runpath=yes
15414 shlibpath_var=DYLD_LIBRARY_PATH
15415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15421 version_type=linux # correct to gnu/linux during the next big refactor
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 shlibpath_var=LD_LIBRARY_PATH
15429 freebsd* | dragonfly*)
15430 # DragonFly does not have aout. When/if they implement a new
15431 # versioning mechanism, adjust this.
15432 if test -x /usr/bin/objformat; then
15433 objformat=`/usr/bin/objformat`
15436 freebsd[23].*) objformat=aout ;;
15437 *) objformat=elf ;;
15440 version_type=freebsd-$objformat
15441 case $version_type in
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15452 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=yes
15457 freebsd3.[01]* | freebsdelf3.[01]*)
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463 shlibpath_overrides_runpath=no
15464 hardcode_into_libs=yes
15466 *) # from 4.6 on, and DragonFly
15467 shlibpath_overrides_runpath=yes
15468 hardcode_into_libs=yes
15474 version_type=linux # correct to gnu/linux during the next big refactor
15477 dynamic_linker="$host_os runtime_loader"
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LIBRARY_PATH
15481 shlibpath_overrides_runpath=yes
15482 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15483 hardcode_into_libs=yes
15486 hpux9* | hpux10* | hpux11*)
15487 # Give a soname corresponding to the major version so that dld.sl refuses to
15488 # link against other versions.
15495 hardcode_into_libs=yes
15496 dynamic_linker="$host_os dld.so"
15497 shlibpath_var=LD_LIBRARY_PATH
15498 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 if test "X$HPUX_IA64_MODE" = X32; then
15502 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15504 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15510 hardcode_into_libs=yes
15511 dynamic_linker="$host_os dld.sl"
15512 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=SHLIB_PATH
15523 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15528 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15529 postinstall_cmds='chmod 555 $lib'
15530 # or fails outright, so override atomically:
15531 install_override_mode=555
15535 version_type=linux # correct to gnu/linux during the next big refactor
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15541 shlibpath_var=LD_LIBRARY_PATH
15542 shlibpath_overrides_runpath=no
15543 hardcode_into_libs=yes
15546 irix5* | irix6* | nonstopux*)
15548 nonstopux*) version_type=nonstopux ;;
15550 if test "$lt_cv_prog_gnu_ld" = yes; then
15551 version_type=linux # correct to gnu/linux during the next big refactor
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15561 irix5* | nonstopux*)
15562 libsuff= shlibsuff=
15565 case $LD in # libtool.m4 will add one of these switches to LD
15566 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15567 libsuff= shlibsuff= libmagic=32-bit;;
15568 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15569 libsuff=32 shlibsuff=N32 libmagic=N32;;
15570 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15571 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15572 *) libsuff= shlibsuff= libmagic=never-match;;
15576 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15577 shlibpath_overrides_runpath=no
15578 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15579 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15580 hardcode_into_libs=yes
15583 # No shared lib support for Linux oldld, aout, or coff.
15584 linux*oldld* | linux*aout* | linux*coff*)
15588 # This must be glibc/ELF.
15589 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15590 version_type=linux # correct to gnu/linux during the next big refactor
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=no
15599 # Some binutils ld are patched to set DT_RUNPATH
15600 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15601 $as_echo_n "(cached) " >&6
15603 lt_cv_shlibpath_overrides_runpath=no
15604 save_LDFLAGS=$LDFLAGS
15605 save_libdir=$libdir
15606 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15607 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15619 if ac_fn_cxx_try_link "$LINENO"; then :
15620 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15621 lt_cv_shlibpath_overrides_runpath=yes
15624 rm -f core conftest.err conftest.$ac_objext \
15625 conftest$ac_exeext conftest.$ac_ext
15626 LDFLAGS=$save_LDFLAGS
15627 libdir=$save_libdir
15631 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15633 # This implies no fast_install, which is unacceptable.
15634 # Some rework will be needed to allow for fast_install
15635 # before this can be enabled.
15636 hardcode_into_libs=yes
15638 # Append ld.so.conf contents to the search path
15639 if test -f /etc/ld.so.conf; then
15640 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15644 # We used to test for /lib/ld.so.1 and disable shared libraries on
15645 # powerpc, because MkLinux only supported shared libraries with the
15646 # GNU dynamic linker. Since this was broken with cross compilers,
15647 # most powerpc-linux boxes support dynamic linking these days and
15648 # people can always --disable-shared, the test was removed, and we
15649 # assume the GNU/Linux dynamic linker is in use.
15650 dynamic_linker='GNU/Linux ld.so'
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 hardcode_into_libs=yes
15662 dynamic_linker='NetBSD ld.elf_so'
15669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15672 dynamic_linker='NetBSD (a.out) ld.so'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675 soname_spec='${libname}${release}${shared_ext}$major'
15676 dynamic_linker='NetBSD ld.elf_so'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 shlibpath_overrides_runpath=yes
15680 hardcode_into_libs=yes
15684 version_type=linux # correct to gnu/linux during the next big refactor
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=no
15698 hardcode_into_libs=yes
15699 dynamic_linker='ldqnx.so'
15704 sys_lib_dlsearch_path_spec="/usr/lib"
15706 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15708 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15709 *) need_version=no ;;
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15716 openbsd2.[89] | openbsd2.[89].*)
15717 shlibpath_overrides_runpath=no
15720 shlibpath_overrides_runpath=yes
15724 shlibpath_overrides_runpath=yes
15729 libname_spec='$name'
15732 library_names_spec='$libname${shared_ext} $libname.a'
15733 dynamic_linker='OS/2 ld.exe'
15734 shlibpath_var=LIBPATH
15737 osf3* | osf4* | osf5*)
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 shlibpath_var=LD_LIBRARY_PATH
15744 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15745 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15753 version_type=linux # correct to gnu/linux during the next big refactor
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15761 # ldd complains unless libraries are executable
15762 postinstall_cmds='chmod +x $lib'
15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15771 if test "$with_gnu_ld" = yes; then
15778 version_type=linux # correct to gnu/linux during the next big refactor
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 case $host_vendor in
15784 shlibpath_overrides_runpath=no
15786 runpath_var=LD_RUN_PATH
15794 shlibpath_overrides_runpath=no
15795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15801 if test -d /usr/nec ;then
15802 version_type=linux # correct to gnu/linux during the next big refactor
15803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15804 soname_spec='$libname${shared_ext}.$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15810 version_type=freebsd-elf
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes
15817 hardcode_into_libs=yes
15818 if test "$with_gnu_ld" = yes; then
15819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15828 sys_lib_dlsearch_path_spec='/usr/lib'
15832 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15833 version_type=linux # correct to gnu/linux during the next big refactor
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 shlibpath_overrides_runpath=no
15839 hardcode_into_libs=yes
15843 version_type=linux # correct to gnu/linux during the next big refactor
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 shlibpath_var=LD_LIBRARY_PATH
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15854 $as_echo "$dynamic_linker" >&6; }
15855 test "$dynamic_linker" = no && can_build_shared=no
15857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15858 if test "$GCC" = yes; then
15859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15862 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15863 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15865 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15866 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15908 hardcode_action_CXX=
15909 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15910 test -n "$runpath_var_CXX" ||
15911 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15913 # We can hardcode non-existent directories.
15914 if test "$hardcode_direct_CXX" != no &&
15915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15916 # have to relink, otherwise we might link with an installed library
15917 # when we should be linking with a yet-to-be-installed one
15918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15919 test "$hardcode_minus_L_CXX" != no; then
15920 # Linking always hardcodes the temporary library directory.
15921 hardcode_action_CXX=relink
15923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15924 hardcode_action_CXX=immediate
15927 # We cannot hardcode anything, or else we can only hardcode existing
15929 hardcode_action_CXX=unsupported
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15932 $as_echo "$hardcode_action_CXX" >&6; }
15934 if test "$hardcode_action_CXX" = relink ||
15935 test "$inherit_rpath_CXX" = yes; then
15936 # Fast installation is not supported
15937 enable_fast_install=no
15938 elif test "$shlibpath_overrides_runpath" = yes ||
15939 test "$enable_shared" = no; then
15940 # Fast installation is not necessary
15941 enable_fast_install=needless
15950 fi # test -n "$compiler"
15953 CFLAGS=$lt_save_CFLAGS
15957 with_gnu_ld=$lt_save_with_gnu_ld
15958 lt_cv_path_LDCXX=$lt_cv_path_LD
15959 lt_cv_path_LD=$lt_save_path_LD
15960 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15961 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15962 fi # test "$_lt_caught_CXX_error" != yes
15965 ac_cpp='$CPP $CPPFLAGS'
15966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15984 ac_config_commands="$ac_config_commands libtool"
15989 # Only expand once:
15994 # Checks for header files.
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15996 $as_echo_n "checking for ANSI C header files... " >&6; }
15997 if ${ac_cv_header_stdc+:} false; then :
15998 $as_echo_n "(cached) " >&6
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #include <stdlib.h>
16003 #include <stdarg.h>
16004 #include <string.h>
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016 ac_cv_header_stdc=yes
16018 ac_cv_header_stdc=no
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 if test $ac_cv_header_stdc = yes; then
16023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 #include <string.h>
16029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16030 $EGREP "memchr" >/dev/null 2>&1; then :
16033 ac_cv_header_stdc=no
16039 if test $ac_cv_header_stdc = yes; then
16040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <stdlib.h>
16046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16047 $EGREP "free" >/dev/null 2>&1; then :
16050 ac_cv_header_stdc=no
16056 if test $ac_cv_header_stdc = yes; then
16057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16058 if test "$cross_compiling" = yes; then :
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16064 #include <stdlib.h>
16065 #if ((' ' & 0x0FF) == 0x020)
16066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16069 # define ISLOWER(c) \
16070 (('a' <= (c) && (c) <= 'i') \
16071 || ('j' <= (c) && (c) <= 'r') \
16072 || ('s' <= (c) && (c) <= 'z'))
16073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16081 for (i = 0; i < 256; i++)
16082 if (XOR (islower (i), ISLOWER (i))
16083 || toupper (i) != TOUPPER (i))
16088 if ac_fn_c_try_run "$LINENO"; then :
16091 ac_cv_header_stdc=no
16093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16094 conftest.$ac_objext conftest.beam conftest.$ac_ext
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16100 $as_echo "$ac_cv_header_stdc" >&6; }
16101 if test $ac_cv_header_stdc = yes; then
16103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16107 for ac_header in sys/ioctl.h unistd.h
16109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16112 cat >>confdefs.h <<_ACEOF
16113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16121 # Check compiler and use -Wall if gnu
16122 if test x"$GXX" = "xyes"; then
16123 CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16124 # Add -Werror in debug mode
16125 if test x"${enable_debug+set}" = xset; then
16126 CXXFLAGS="${CXXFLAGS} -Werror"
16130 # Checks for functions
16131 for ac_func in gettimeofday
16133 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16134 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16135 cat >>confdefs.h <<_ACEOF
16136 #define HAVE_GETTIMEOFDAY 1
16143 # Checks for doxygen
16144 # Extract the first word of "doxygen", so it can be a program name with args.
16145 set dummy doxygen; ac_word=$2
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16147 $as_echo_n "checking for $ac_word... " >&6; }
16148 if ${ac_cv_prog_DOXYGEN+:} false; then :
16149 $as_echo_n "(cached) " >&6
16151 if test -n "$DOXYGEN"; then
16152 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155 for as_dir in $PATH
16158 test -z "$as_dir" && as_dir=.
16159 for ac_exec_ext in '' $ac_executable_extensions; do
16160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16161 ac_cv_prog_DOXYGEN="doxygen "
16162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16171 DOXYGEN=$ac_cv_prog_DOXYGEN
16172 if test -n "$DOXYGEN"; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16174 $as_echo "$DOXYGEN" >&6; }
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177 $as_echo "no" >&6; }
16181 if test "x${DOXYGEN}" != x ; then
16190 # Copy doc files to build dir if necessary
16191 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16193 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16195 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16197 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16199 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16201 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16203 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16205 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16207 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16209 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16211 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16213 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16215 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16217 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16219 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16221 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16223 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16226 # Checks for package options and external software
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16234 $as_echo_n "checking for audio API... " >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16238 $as_echo "using OSS" >&6; }
16239 api="$api -D__LINUX_OSS__"
16240 LIBS="$LIBS -lossaudio"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16242 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16243 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16244 $as_echo_n "(cached) " >&6
16246 ac_check_lib_save_LIBS=$LIBS
16247 LIBS="-lpthread $LIBS"
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16251 /* Override any GCC internal prototype to avoid an error.
16252 Use char because int might match the return type of a GCC
16253 builtin and then its argument prototype would still apply. */
16257 char pthread_create ();
16261 return pthread_create ();
16266 if ac_fn_c_try_link "$LINENO"; then :
16267 ac_cv_lib_pthread_pthread_create=yes
16269 ac_cv_lib_pthread_pthread_create=no
16271 rm -f core conftest.err conftest.$ac_objext \
16272 conftest$ac_exeext conftest.$ac_ext
16273 LIBS=$ac_check_lib_save_LIBS
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16276 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16277 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16278 cat >>confdefs.h <<_ACEOF
16279 #define HAVE_LIBPTHREAD 1
16282 LIBS="-lpthread $LIBS"
16285 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16292 # Check whether --with-jack was given.
16293 if test "${with_jack+set}" = set; then :
16294 withval=$with_jack;
16295 api="$api -D__UNIX_JACK__"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16297 $as_echo "using JACK" >&6; }
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16299 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16300 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16301 $as_echo_n "(cached) " >&6
16303 ac_check_lib_save_LIBS=$LIBS
16304 LIBS="-ljack $LIBS"
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16308 /* Override any GCC internal prototype to avoid an error.
16309 Use char because int might match the return type of a GCC
16310 builtin and then its argument prototype would still apply. */
16314 char jack_client_open ();
16318 return jack_client_open ();
16323 if ac_fn_c_try_link "$LINENO"; then :
16324 ac_cv_lib_jack_jack_client_open=yes
16326 ac_cv_lib_jack_jack_client_open=no
16328 rm -f core conftest.err conftest.$ac_objext \
16329 conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16333 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16334 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16335 cat >>confdefs.h <<_ACEOF
16336 #define HAVE_LIBJACK 1
16339 LIBS="-ljack $LIBS"
16342 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16346 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16347 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16348 $as_echo_n "(cached) " >&6
16350 ac_check_lib_save_LIBS=$LIBS
16351 LIBS="-lasound $LIBS"
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16355 /* Override any GCC internal prototype to avoid an error.
16356 Use char because int might match the return type of a GCC
16357 builtin and then its argument prototype would still apply. */
16361 char snd_pcm_open ();
16365 return snd_pcm_open ();
16370 if ac_fn_c_try_link "$LINENO"; then :
16371 ac_cv_lib_asound_snd_pcm_open=yes
16373 ac_cv_lib_asound_snd_pcm_open=no
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16380 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16381 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16382 cat >>confdefs.h <<_ACEOF
16383 #define HAVE_LIBASOUND 1
16386 LIBS="-lasound $LIBS"
16389 as_fn_error $? "Jack support also requires the asound library!" "$LINENO" 5
16395 # Look for ALSA flag
16397 # Check whether --with-alsa was given.
16398 if test "${with_alsa+set}" = set; then :
16399 withval=$with_alsa;
16400 api="$api -D__LINUX_ALSA__"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16403 $as_echo "using ALSA" >&6; }
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16405 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16406 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16407 $as_echo_n "(cached) " >&6
16409 ac_check_lib_save_LIBS=$LIBS
16410 LIBS="-lasound $LIBS"
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16420 char snd_pcm_open ();
16424 return snd_pcm_open ();
16429 if ac_fn_c_try_link "$LINENO"; then :
16430 ac_cv_lib_asound_snd_pcm_open=yes
16432 ac_cv_lib_asound_snd_pcm_open=no
16434 rm -f core conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436 LIBS=$ac_check_lib_save_LIBS
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16439 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16440 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_LIBASOUND 1
16445 LIBS="-lasound $LIBS"
16448 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16454 # Look for PULSE flag
16456 # Check whether --with-pulse was given.
16457 if test "${with_pulse+set}" = set; then :
16458 withval=$with_pulse;
16459 api="$api -D__LINUX_PULSE__"
16460 req="$req libpulse-simple"
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
16462 $as_echo "using PulseAudio" >&6; }
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
16464 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
16465 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
16466 $as_echo_n "(cached) " >&6
16468 ac_check_lib_save_LIBS=$LIBS
16469 LIBS="-lpulse-simple $LIBS"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16473 /* Override any GCC internal prototype to avoid an error.
16474 Use char because int might match the return type of a GCC
16475 builtin and then its argument prototype would still apply. */
16479 char pa_simple_flush ();
16483 return pa_simple_flush ();
16488 if ac_fn_c_try_link "$LINENO"; then :
16489 ac_cv_lib_pulse_simple_pa_simple_flush=yes
16491 ac_cv_lib_pulse_simple_pa_simple_flush=no
16493 rm -f core conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
16498 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
16499 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_LIBPULSE_SIMPLE 1
16504 LIBS="-lpulse-simple $LIBS"
16507 as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
16513 # Look for OSS flag
16515 # Check whether --with-oss was given.
16516 if test "${with_oss+set}" = set; then :
16518 api="$api -D__LINUX_OSS__"
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16520 $as_echo "using OSS" >&6; }
16524 # If no audio api flags specified, use ALSA
16525 if test "$api" == ""; then
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16527 $as_echo "using ALSA" >&6; }
16528 api=-D__LINUX_ALSA__
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16532 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16533 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16534 $as_echo_n "(cached) " >&6
16536 ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lasound $LIBS"
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16541 /* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
16547 char snd_pcm_open ();
16551 return snd_pcm_open ();
16556 if ac_fn_c_try_link "$LINENO"; then :
16557 ac_cv_lib_asound_snd_pcm_open=yes
16559 ac_cv_lib_asound_snd_pcm_open=no
16561 rm -f core conftest.err conftest.$ac_objext \
16562 conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16566 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16567 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16568 cat >>confdefs.h <<_ACEOF
16569 #define HAVE_LIBASOUND 1
16572 LIBS="-lasound $LIBS"
16575 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16581 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16582 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16583 $as_echo_n "(cached) " >&6
16585 ac_check_lib_save_LIBS=$LIBS
16586 LIBS="-lpthread $LIBS"
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16590 /* Override any GCC internal prototype to avoid an error.
16591 Use char because int might match the return type of a GCC
16592 builtin and then its argument prototype would still apply. */
16596 char pthread_create ();
16600 return pthread_create ();
16605 if ac_fn_c_try_link "$LINENO"; then :
16606 ac_cv_lib_pthread_pthread_create=yes
16608 ac_cv_lib_pthread_pthread_create=no
16610 rm -f core conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16615 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16616 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16617 cat >>confdefs.h <<_ACEOF
16618 #define HAVE_LIBPTHREAD 1
16621 LIBS="-lpthread $LIBS"
16624 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16631 # Check whether --with-jack was given.
16632 if test "${with_jack+set}" = set; then :
16633 withval=$with_jack;
16634 api="$api -D__UNIX_JACK__"
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16636 $as_echo "using JACK" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16638 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16639 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16640 $as_echo_n "(cached) " >&6
16642 ac_check_lib_save_LIBS=$LIBS
16643 LIBS="-ljack $LIBS"
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16647 /* Override any GCC internal prototype to avoid an error.
16648 Use char because int might match the return type of a GCC
16649 builtin and then its argument prototype would still apply. */
16653 char jack_client_open ();
16657 return jack_client_open ();
16662 if ac_fn_c_try_link "$LINENO"; then :
16663 ac_cv_lib_jack_jack_client_open=yes
16665 ac_cv_lib_jack_jack_client_open=no
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16672 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16673 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_LIBJACK 1
16678 LIBS="-ljack $LIBS"
16681 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16687 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
16688 # LIBS="$LIBS -framework jackmp" ], )
16691 # Look for Core flag
16693 # Check whether --with-core was given.
16694 if test "${with_core+set}" = set; then :
16695 withval=$with_core;
16696 api="$api -D__MACOSX_CORE__"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16698 $as_echo "using CoreAudio" >&6; }
16699 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16700 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16703 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16707 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
16711 # If no audio api flags specified, use CoreAudio
16712 if test "$api" == ""; then
16713 api=-D__MACOSX_CORE__
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16716 $as_echo "using CoreAudio" >&6; }
16717 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16718 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16721 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16725 LIBS="-framework CoreAudio -framework CoreFoundation"
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16730 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16731 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16732 $as_echo_n "(cached) " >&6
16734 ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-lpthread $LIBS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16745 char pthread_create ();
16749 return pthread_create ();
16754 if ac_fn_c_try_link "$LINENO"; then :
16755 ac_cv_lib_pthread_pthread_create=yes
16757 ac_cv_lib_pthread_pthread_create=no
16759 rm -f core conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16764 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16765 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_LIBPTHREAD 1
16770 LIBS="-lpthread $LIBS"
16773 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16780 # Check whether --with-asio was given.
16781 if test "${with_asio+set}" = set; then :
16782 withval=$with_asio;
16783 api="$api -D__WINDOWS_ASIO__"
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
16785 $as_echo "using ASIO" >&6; }
16786 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
16791 # Look for DirectSound flag
16793 # Check whether --with-ds was given.
16794 if test "${with_ds+set}" = set; then :
16796 api="$api -D__WINDOWS_DS__"
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16798 $as_echo "using DirectSound" >&6; }
16799 LIBS="-ldsound -lwinmm $LIBS"
16803 # Look for WASAPI flag
16805 # Check whether --with-wasapi was given.
16806 if test "${with_wasapi+set}" = set; then :
16807 withval=$with_wasapi;
16808 api="$api -D__WINDOWS_WASAPI__"
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
16810 $as_echo "using WASAPI" >&6; }
16811 LIBS="-lwinmm -luuid -lksuser $LIBS"
16815 # If no audio api flags specified, use DS
16816 if test "$api" == ""; then
16817 api=-D__WINDOWS_DS__
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16820 $as_echo "using DirectSound" >&6; }
16821 LIBS="-ldsound -lwinmm $LIBS"
16824 LIBS="-lole32 $LIBS"
16828 # Default case for unknown realtime systems.
16829 as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
16833 CPPFLAGS="$CPPFLAGS $api"
16835 cat >confcache <<\_ACEOF
16836 # This file is a shell script that caches the results of configure
16837 # tests run on this system so they can be shared between configure
16838 # scripts and configure runs, see configure's option --config-cache.
16839 # It is not useful on other systems. If it contains results you don't
16840 # want to keep, you may remove or edit it.
16842 # config.status only pays attention to the cache file if you give it
16843 # the --recheck option to rerun configure.
16845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16847 # following values.
16851 # The following way of writing the cache mishandles newlines in values,
16852 # but we know of no workaround that is simple, portable, and efficient.
16853 # So, we kill variables containing newlines.
16854 # Ultrix sh set writes to stderr and can't be redirected directly,
16855 # and sets the high bit in the cache file unless we assign to the vars.
16857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16858 eval ac_val=\$$ac_var
16862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16866 _ | IFS | as_nl) ;; #(
16867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16868 *) { eval $ac_var=; unset $ac_var;} ;;
16874 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16875 *${as_nl}ac_space=\ *)
16876 # `set' does not quote correctly, so add quotes: double-quote
16877 # substitution turns \\\\ into \\, and sed turns \\ into \.
16880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16883 # `set' quotes correctly as required by POSIX, so do not add quotes.
16884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16895 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16898 if test -w "$cache_file"; then
16899 if test "x$cache_file" != "x/dev/null"; then
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16901 $as_echo "$as_me: updating cache $cache_file" >&6;}
16902 if test ! -f "$cache_file" || test -h "$cache_file"; then
16903 cat confcache >"$cache_file"
16905 case $cache_file in #(
16907 mv -f confcache "$cache_file"$$ &&
16908 mv -f "$cache_file"$$ "$cache_file" ;; #(
16910 mv -f confcache "$cache_file" ;;
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16922 # Let make expand exec_prefix.
16923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16925 # Transform confdefs.h into DEFS.
16926 # Protect against shell expansion while executing Makefile rules.
16927 # Protect against Makefile macro expansion.
16929 # If the first sed substitution is executed (which looks for macros that
16930 # take arguments), then branch to the quote section. Otherwise,
16931 # look for a macro that doesn't take arguments.
16941 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16943 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16947 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16960 DEFS=`sed -n "$ac_script" confdefs.h`
16966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16967 # 1. Remove the extension, and $U if already installed.
16968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16969 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16971 # will be set to the directory where LIBOBJS objects are built.
16972 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16973 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16975 LIBOBJS=$ac_libobjs
16977 LTLIBOBJS=$ac_ltlibobjs
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16981 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16982 if test -n "$am_sleep_pid"; then
16983 # Hide warnings about reused PIDs.
16984 wait $am_sleep_pid 2>/dev/null
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16987 $as_echo "done" >&6; }
16988 if test -n "$EXEEXT"; then
16990 am__EXEEXT_FALSE='#'
16992 am__EXEEXT_TRUE='#'
16996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16997 as_fn_error $? "conditional \"AMDEP\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17001 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17005 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17009 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17013 as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17017 : "${CONFIG_STATUS=./config.status}"
17019 ac_clean_files_save=$ac_clean_files
17020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17026 # Generated by $as_me.
17027 # Run this file to recreate the current configuration.
17028 # Compiler output produced by configure, useful for debugging
17029 # configure, is in config.log if it exists.
17032 ac_cs_recheck=false
17035 SHELL=\${CONFIG_SHELL-$SHELL}
17038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17039 ## -------------------- ##
17040 ## M4sh Initialization. ##
17041 ## -------------------- ##
17043 # Be more Bourne compatible
17044 DUALCASE=1; export DUALCASE # for MKS sh
17045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17049 # is contrary to our usage. Disable this feature.
17050 alias -g '${1+"$@"}'='"$@"'
17051 setopt NO_GLOB_SUBST
17053 case `(set -o) 2>/dev/null` in #(
17065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17069 # Prefer a ksh shell builtin over an external printf program on Solaris,
17070 # but without wasting forks for bash or zsh.
17071 if test -z "$BASH_VERSION$ZSH_VERSION" \
17072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17073 as_echo='print -r --'
17074 as_echo_n='print -rn --'
17075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17076 as_echo='printf %s\n'
17077 as_echo_n='printf %s'
17079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17081 as_echo_n='/usr/ucb/echo -n'
17083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17084 as_echo_n_body='eval
17088 expr "X$arg" : "X\\(.*\\)$as_nl";
17089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17093 export as_echo_n_body
17094 as_echo_n='sh -c $as_echo_n_body as_echo'
17096 export as_echo_body
17097 as_echo='sh -c $as_echo_body as_echo'
17100 # The user is always right.
17101 if test "${PATH_SEPARATOR+set}" != set; then
17103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17111 # We need space, tab and new line, in precisely that order. Quoting is
17112 # there to prevent editors from complaining about space-tab.
17113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17114 # splitting by setting IFS to empty value.)
17117 # Find who we are. Look in the path if we contain no directory separator.
17120 *[\\/]* ) as_myself=$0 ;;
17121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17125 test -z "$as_dir" && as_dir=.
17126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17132 # We did not find ourselves, most probably we were run as `sh COMMAND'
17133 # in which case we are not to be found in the path.
17134 if test "x$as_myself" = x; then
17137 if test ! -f "$as_myself"; then
17138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17142 # Unset variables that we do not need and which cause bugs (e.g. in
17143 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17144 # suppresses any "Segmentation fault" message there. '((' could
17145 # trigger a bug in pdksh 5.2.14.
17146 for as_var in BASH_ENV ENV MAIL MAILPATH
17147 do eval test x\${$as_var+set} = xset \
17148 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17165 # ----------------------------------------
17166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17168 # script with STATUS, using 1 if that was 0.
17171 as_status=$1; test $as_status -eq 0 && as_status=1
17173 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17174 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17176 $as_echo "$as_me: error: $2" >&2
17177 as_fn_exit $as_status
17181 # as_fn_set_status STATUS
17182 # -----------------------
17183 # Set $? to STATUS, without forking.
17184 as_fn_set_status ()
17187 } # as_fn_set_status
17189 # as_fn_exit STATUS
17190 # -----------------
17191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17195 as_fn_set_status $1
17201 # Portably unset VAR.
17204 { eval $1=; unset $1;}
17206 as_unset=as_fn_unset
17207 # as_fn_append VAR VALUE
17208 # ----------------------
17209 # Append the text in VALUE to the end of the definition contained in VAR. Take
17210 # advantage of any shell optimizations that allow amortized linear growth over
17211 # repeated appends, instead of the typical quadratic growth present in naive
17213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17214 eval 'as_fn_append ()
17225 # as_fn_arith ARG...
17226 # ------------------
17227 # Perform arithmetic evaluation on the ARGs, and store the result in the
17228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17229 # must be portable across $(()) and expr.
17230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17231 eval 'as_fn_arith ()
17238 as_val=`expr "$@" || test $? -eq 1`
17243 if expr a : '\(a\)' >/dev/null 2>&1 &&
17244 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17251 as_basename=basename
17256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17262 as_me=`$as_basename -- "$0" ||
17263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17264 X"$0" : 'X\(//\)$' \| \
17265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17267 sed '/^.*\/\([^/][^/]*\)\/*$/{
17281 # Avoid depending upon Character Ranges.
17282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17285 as_cr_digits='0123456789'
17286 as_cr_alnum=$as_cr_Letters$as_cr_digits
17288 ECHO_C= ECHO_N= ECHO_T=
17289 case `echo -n x` in #(((((
17291 case `echo 'xy\c'` in
17292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17294 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17301 rm -f conf$$ conf$$.exe conf$$.file
17302 if test -d conf$$.dir; then
17303 rm -f conf$$.dir/conf$$.file
17306 mkdir conf$$.dir 2>/dev/null
17308 if (echo >conf$$.file) 2>/dev/null; then
17309 if ln -s conf$$.file conf$$ 2>/dev/null; then
17311 # ... but there are two gotchas:
17312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17314 # In both cases, we have to default to `cp -pR'.
17315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17317 elif ln conf$$.file conf$$ 2>/dev/null; then
17325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17326 rmdir conf$$.dir 2>/dev/null
17331 # Create "$as_dir" as a directory, including parents if necessary.
17336 -*) as_dir=./$as_dir;;
17338 test -d "$as_dir" || eval $as_mkdir_p || {
17342 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17343 *) as_qdir=$as_dir;;
17345 as_dirs="'$as_qdir' $as_dirs"
17346 as_dir=`$as_dirname -- "$as_dir" ||
17347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17348 X"$as_dir" : 'X\(//\)[^/]' \| \
17349 X"$as_dir" : 'X\(//\)$' \| \
17350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X"$as_dir" |
17352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17356 /^X\(\/\/\)[^/].*/{
17369 test -d "$as_dir" && break
17371 test -z "$as_dirs" || eval "mkdir $as_dirs"
17372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17376 if mkdir -p . 2>/dev/null; then
17377 as_mkdir_p='mkdir -p "$as_dir"'
17379 test -d ./-p && rmdir ./-p
17384 # as_fn_executable_p FILE
17385 # -----------------------
17386 # Test if FILE is an executable regular file.
17387 as_fn_executable_p ()
17389 test -f "$1" && test -x "$1"
17390 } # as_fn_executable_p
17391 as_test_x='test -x'
17392 as_executable_p=as_fn_executable_p
17394 # Sed expression to map a string onto a valid CPP name.
17395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17397 # Sed expression to map a string onto a valid variable name.
17398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17402 ## ----------------------------------- ##
17403 ## Main body of $CONFIG_STATUS script. ##
17404 ## ----------------------------------- ##
17406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 # Save the log message, to keep $0 and so on meaningful, and to
17410 # report actual input values of CONFIG_FILES etc. instead of their
17411 # values after options handling.
17413 This file was extended by RtAudio $as_me 4.1.2, which was
17414 generated by GNU Autoconf 2.69. Invocation command line was
17416 CONFIG_FILES = $CONFIG_FILES
17417 CONFIG_HEADERS = $CONFIG_HEADERS
17418 CONFIG_LINKS = $CONFIG_LINKS
17419 CONFIG_COMMANDS = $CONFIG_COMMANDS
17422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17427 case $ac_config_files in *"
17428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17434 # Files that config.status was made for.
17435 config_files="$ac_config_files"
17436 config_links="$ac_config_links"
17437 config_commands="$ac_config_commands"
17441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17443 \`$as_me' instantiates files and other configuration actions
17444 from templates according to the current configuration. Unless the files
17445 and actions are specified as TAGs, all are instantiated by default.
17447 Usage: $0 [OPTION]... [TAG]...
17449 -h, --help print this help, then exit
17450 -V, --version print version number and configuration settings, then exit
17451 --config print configuration, then exit
17452 -q, --quiet, --silent
17453 do not print progress messages
17454 -d, --debug don't remove temporary files
17455 --recheck update $as_me by reconfiguring in the same conditions
17456 --file=FILE[:TEMPLATE]
17457 instantiate the configuration file FILE
17459 Configuration files:
17462 Configuration links:
17465 Configuration commands:
17468 Report bugs to <gary@music.mcgill.ca>."
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17474 RtAudio config.status 4.1.2
17475 configured by $0, generated by GNU Autoconf 2.69,
17476 with options \\"\$ac_cs_config\\"
17478 Copyright (C) 2012 Free Software Foundation, Inc.
17479 This config.status script is free software; the Free Software Foundation
17480 gives unlimited permission to copy, distribute and modify it."
17487 test -n "\$AWK" || AWK=awk
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # The default lists apply if the user does not specify any file.
17497 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17498 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17502 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17514 # Handling of the options.
17515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17517 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17518 $as_echo "$ac_cs_version"; exit ;;
17519 --config | --confi | --conf | --con | --co | --c )
17520 $as_echo "$ac_cs_config"; exit ;;
17521 --debug | --debu | --deb | --de | --d | -d )
17523 --file | --fil | --fi | --f )
17526 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17527 '') as_fn_error $? "missing file argument" ;;
17529 as_fn_append CONFIG_FILES " '$ac_optarg'"
17530 ac_need_defaults=false;;
17531 --he | --h | --help | --hel | -h )
17532 $as_echo "$ac_cs_usage"; exit ;;
17533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17537 # This is an error.
17538 -*) as_fn_error $? "unrecognized option: \`$1'
17539 Try \`$0 --help' for more information." ;;
17541 *) as_fn_append ac_config_targets " $1"
17542 ac_need_defaults=false ;;
17548 ac_configure_extra_args=
17550 if $ac_cs_silent; then
17552 ac_configure_extra_args="$ac_configure_extra_args --silent"
17556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17557 if \$ac_cs_recheck; then
17558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17561 CONFIG_SHELL='$SHELL'
17562 export CONFIG_SHELL
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17572 ## Running $as_me. ##
17578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17582 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17585 # The HP-UX ksh and POSIX shell print the target directory to stdout
17586 # if CDPATH is set.
17587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17589 sed_quote_subst='$sed_quote_subst'
17590 double_quote_subst='$double_quote_subst'
17591 delay_variable_subst='$delay_variable_subst'
17592 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17593 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17594 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17595 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17596 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17597 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17598 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17599 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17600 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17601 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17602 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17603 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17604 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17605 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17606 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17607 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17608 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17609 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17610 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17611 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17612 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17613 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17614 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17615 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17616 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17617 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17618 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17619 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17620 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17621 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17622 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17623 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17624 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17625 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17626 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17627 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17628 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17629 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17630 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17631 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17632 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17633 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17634 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17635 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17636 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17637 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17638 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17639 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17640 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17641 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17642 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17643 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17644 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17645 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17646 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17647 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17648 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17649 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17650 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17651 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17716 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17723 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17724 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17725 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17726 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17727 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17728 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17729 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17730 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17731 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17732 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17733 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17734 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17739 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17740 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17741 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17742 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17743 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17744 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17745 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17747 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17748 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17749 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17752 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17753 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17756 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17758 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17759 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17760 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17761 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17762 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17763 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17764 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17765 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17766 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17767 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17768 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17770 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17771 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17772 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17773 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17774 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17775 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17776 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17779 LTCFLAGS='$LTCFLAGS'
17780 compiler='$compiler_DEFAULT'
17782 # A function that is used when there is no print builtin or printf.
17783 func_fallback_echo ()
17785 eval 'cat <<_LTECHO_EOF
17790 # Quote evaled strings.
17807 deplibs_check_method \
17811 sharedlib_from_linklib_cmd \
17814 archiver_list_spec \
17820 lt_cv_sys_global_symbol_pipe \
17821 lt_cv_sys_global_symbol_to_cdecl \
17822 lt_cv_sys_global_symbol_to_c_name_address \
17823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17824 nm_file_list_spec \
17825 lt_prog_compiler_no_builtin_flag \
17826 lt_prog_compiler_pic \
17827 lt_prog_compiler_wl \
17828 lt_prog_compiler_static \
17829 lt_cv_prog_compiler_c_o \
17838 export_dynamic_flag_spec \
17839 whole_archive_flag_spec \
17840 compiler_needs_object \
17842 allow_undefined_flag \
17843 no_undefined_flag \
17844 hardcode_libdir_flag_spec \
17845 hardcode_libdir_separator \
17849 variables_saved_for_relink \
17851 library_names_spec \
17853 install_override_mode \
17857 compiler_lib_search_dirs \
17862 compiler_lib_search_path \
17866 lt_prog_compiler_no_builtin_flag_CXX \
17867 lt_prog_compiler_pic_CXX \
17868 lt_prog_compiler_wl_CXX \
17869 lt_prog_compiler_static_CXX \
17870 lt_cv_prog_compiler_c_o_CXX \
17871 export_dynamic_flag_spec_CXX \
17872 whole_archive_flag_spec_CXX \
17873 compiler_needs_object_CXX \
17875 allow_undefined_flag_CXX \
17876 no_undefined_flag_CXX \
17877 hardcode_libdir_flag_spec_CXX \
17878 hardcode_libdir_separator_CXX \
17879 exclude_expsyms_CXX \
17880 include_expsyms_CXX \
17881 file_list_spec_CXX \
17882 compiler_lib_search_dirs_CXX \
17883 predep_objects_CXX \
17884 postdep_objects_CXX \
17887 compiler_lib_search_path_CXX; do
17888 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17889 *[\\\\\\\`\\"\\\$]*)
17890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17898 # Double-quote double-evaled strings.
17899 for var in reload_cmds \
17900 old_postinstall_cmds \
17901 old_postuninstall_cmds \
17903 extract_expsyms_cmds \
17904 old_archive_from_new_cmds \
17905 old_archive_from_expsyms_cmds \
17907 archive_expsym_cmds \
17909 module_expsym_cmds \
17910 export_symbols_cmds \
17914 postuninstall_cmds \
17916 sys_lib_search_path_spec \
17917 sys_lib_dlsearch_path_spec \
17919 old_archive_cmds_CXX \
17920 old_archive_from_new_cmds_CXX \
17921 old_archive_from_expsyms_cmds_CXX \
17923 archive_expsym_cmds_CXX \
17925 module_expsym_cmds_CXX \
17926 export_symbols_cmds_CXX \
17928 postlink_cmds_CXX; do
17929 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17930 *[\\\\\\\`\\"\\\$]*)
17931 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17934 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17939 ac_aux_dir='$ac_aux_dir'
17940 xsi_shell='$xsi_shell'
17941 lt_shell_append='$lt_shell_append'
17943 # See if we are running on zsh, and set the options which allow our
17944 # commands through without removal of \ escapes INIT.
17945 if test -n "\${ZSH_VERSION+set}" ; then
17946 setopt NO_GLOB_SUBST
17952 TIMESTAMP='$TIMESTAMP'
17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17965 # Handling of arguments.
17966 for ac_config_target in $ac_config_targets
17968 case $ac_config_target in
17969 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
17970 "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
17971 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17972 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17973 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17974 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
17975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17977 "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
17978 "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
17979 "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
17980 "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
17981 "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
17982 "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
17983 "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
17984 "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
17985 "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
17986 "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
17987 "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
17988 "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
17989 "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
17990 "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
17991 "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
17992 "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
17993 "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
17995 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18000 # If the user did not use the arguments to specify the items to instantiate,
18001 # then the envvar interface is used. Set only those that are not.
18002 # We use the long form for the default assignment because of an extremely
18003 # bizarre bug on SunOS 4.1.3.
18004 if $ac_need_defaults; then
18005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18006 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18010 # Have a temporary directory for convenience. Make it in the build tree
18011 # simply because there is no reason against having it here, and in addition,
18012 # creating and moving files from /tmp can sometimes cause problems.
18013 # Hook for its removal unless debugging.
18014 # Note that there is a small window in which the directory will not be cleaned:
18015 # after its creation but before its name has been assigned to `$tmp'.
18019 trap 'exit_status=$?
18020 : "${ac_tmp:=$tmp}"
18021 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18023 trap 'as_fn_exit 1' 1 2 13 15
18025 # Create a (secure) tmp directory for tmp files.
18028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18032 tmp=./conf$$-$RANDOM
18033 (umask 077 && mkdir "$tmp")
18034 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18037 # Set up the scripts for CONFIG_FILES section.
18038 # No need to generate them if there are no CONFIG_FILES.
18039 # This happens for instance with `./config.status config.h'.
18040 if test -n "$CONFIG_FILES"; then
18043 ac_cr=`echo X | tr X '\015'`
18044 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18045 # But we know of no other shell where ac_cr would be empty at this
18046 # point, so we can use a bashism as a fallback.
18047 if test "x$ac_cr" = x; then
18048 eval ac_cr=\$\'\\r\'
18050 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18051 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18054 ac_cs_awk_cr=$ac_cr
18057 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18062 echo "cat >conf$$subs.awk <<_ACEOF" &&
18063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18065 } >conf$$subs.sh ||
18066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18069 for ac_last_try in false false false false false :; do
18070 . ./conf$$subs.sh ||
18071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18074 if test $ac_delim_n = $ac_delim_num; then
18076 elif $ac_last_try; then
18077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18082 rm -f conf$$subs.sh
18084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18085 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18089 s/^/S["/; s/!.*/"]=/
18099 s/\(.\{148\}\)..*/\1/
18101 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18113 s/\(.\{148\}\)..*/\1/
18115 s/["\\]/\\&/g; s/^/"/; s/$/"/
18119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18124 ' <conf$$subs.awk | sed '
18129 ' >>$CONFIG_STATUS || ac_write_fail=1
18130 rm -f conf$$subs.awk
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18134 for (key in S) S_is_set[key] = 1
18140 nfields = split(line, field, "@")
18142 len = length(field[1])
18143 for (i = 2; i < nfields; i++) {
18145 keylen = length(key)
18146 if (S_is_set[key]) {
18148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18149 len += length(value) + length(field[++i])
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18165 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18166 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18169 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18170 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18171 # trailing colons and then remove the whole line if VPATH becomes empty
18172 # (actually we leave an empty line to preserve line numbers).
18173 if test "x$srcdir" = x.; then
18174 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193 fi # test -n "$CONFIG_FILES"
18196 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18201 :[FHLC]) ac_mode=$ac_tag; continue;;
18203 case $ac_mode$ac_tag in
18205 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18206 :[FH]-) ac_tag=-:-;;
18207 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18224 -) ac_f="$ac_tmp/stdin";;
18225 *) # Look for the file first in the build tree, then in the source tree
18226 # (if the path is not absolute). The absolute path cannot be DOS-style,
18227 # because $ac_f cannot contain `:'.
18231 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18233 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18235 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18236 as_fn_append ac_file_inputs " '$ac_f'"
18239 # Let's still pretend it is `configure' which instantiates (i.e., don't
18240 # use $as_me), people would be surprised to read:
18241 # /* config.h. Generated by config.status. */
18242 configure_input='Generated from '`
18243 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18245 if test x"$ac_file" != x-; then
18246 configure_input="$ac_file. $configure_input"
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18248 $as_echo "$as_me: creating $ac_file" >&6;}
18250 # Neutralize special characters interpreted by sed in replacement strings.
18251 case $configure_input in #(
18252 *\&* | *\|* | *\\* )
18253 ac_sed_conf_input=`$as_echo "$configure_input" |
18254 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18255 *) ac_sed_conf_input=$configure_input;;
18259 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18265 ac_dir=`$as_dirname -- "$ac_file" ||
18266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18267 X"$ac_file" : 'X\(//\)[^/]' \| \
18268 X"$ac_file" : 'X\(//\)$' \| \
18269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18270 $as_echo X"$ac_file" |
18271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18275 /^X\(\/\/\)[^/].*/{
18288 as_dir="$ac_dir"; as_fn_mkdir_p
18292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18294 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18295 # A ".." for each directory in $ac_dir_suffix.
18296 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18297 case $ac_top_builddir_sub in
18298 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18299 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18302 ac_abs_top_builddir=$ac_pwd
18303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18304 # for backward compatibility:
18305 ac_top_builddir=$ac_top_build_prefix
18308 .) # We are building in place.
18310 ac_top_srcdir=$ac_top_builddir_sub
18311 ac_abs_top_srcdir=$ac_pwd ;;
18312 [\\/]* | ?:[\\/]* ) # Absolute name.
18313 ac_srcdir=$srcdir$ac_dir_suffix;
18314 ac_top_srcdir=$srcdir
18315 ac_abs_top_srcdir=$srcdir ;;
18316 *) # Relative name.
18317 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18318 ac_top_srcdir=$ac_top_build_prefix$srcdir
18319 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18331 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18332 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18334 ac_MKDIR_P=$MKDIR_P
18336 [\\/$]* | ?:[\\/]* ) ;;
18337 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18342 # If the template does not know about datarootdir, expand it.
18343 # FIXME: This hack should be removed a few years after 2.60.
18344 ac_datarootdir_hack=; ac_datarootdir_seen=
18355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18356 *datarootdir*) ac_datarootdir_seen=yes;;
18357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18362 ac_datarootdir_hack='
18363 s&@datadir@&$datadir&g
18364 s&@docdir@&$docdir&g
18365 s&@infodir@&$infodir&g
18366 s&@localedir@&$localedir&g
18367 s&@mandir@&$mandir&g
18368 s&\\\${datarootdir}&$datarootdir&g' ;;
18372 # Neutralize VPATH when `$srcdir' = `.'.
18373 # Shell code in configure.ac might set extrasub.
18374 # FIXME: do we really want to maintain this feature?
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 ac_sed_extra="$ac_vpsub
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18382 s|@configure_input@|$ac_sed_conf_input|;t t
18383 s&@top_builddir@&$ac_top_builddir_sub&;t t
18384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18385 s&@srcdir@&$ac_srcdir&;t t
18386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18387 s&@top_srcdir@&$ac_top_srcdir&;t t
18388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18389 s&@builddir@&$ac_builddir&;t t
18390 s&@abs_builddir@&$ac_abs_builddir&;t t
18391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18392 s&@INSTALL@&$ac_INSTALL&;t t
18393 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18394 $ac_datarootdir_hack
18396 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18397 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18399 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18400 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18401 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18402 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18404 which seems to be undefined. Please make sure it is defined" >&5
18405 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18406 which seems to be undefined. Please make sure it is defined" >&2;}
18408 rm -f "$ac_tmp/stdin"
18410 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18411 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18421 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18424 # Prefer the file from the source tree if names are identical.
18425 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18426 ac_source=$srcdir/$ac_source
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18430 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18432 if test ! -r "$ac_source"; then
18433 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18437 # Try a relative symlink, then a hard link, then a copy.
18439 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18440 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18442 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18443 ln "$ac_source" "$ac_file" 2>/dev/null ||
18444 cp -p "$ac_source" "$ac_file" ||
18445 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18448 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18449 $as_echo "$as_me: executing $ac_file commands" >&6;}
18454 case $ac_file$ac_mode in
18455 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18456 # Older Autoconf quotes --file arguments for eval, but not when files
18457 # are listed without --file. Let's play safe and only enable the eval
18458 # if we detect the quoting.
18459 case $CONFIG_FILES in
18460 *\'*) eval set x "$CONFIG_FILES" ;;
18461 *) set x $CONFIG_FILES ;;
18466 # Strip MF so we end up with the name of the file.
18467 mf=`echo "$mf" | sed -e 's/:.*$//'`
18468 # Check whether this is an Automake generated Makefile or not.
18469 # We used to match only the files named 'Makefile.in', but
18470 # some people rename them; so instead we look at the file content.
18471 # Grep'ing the first line is not enough: some people post-process
18472 # each Makefile.in and add a new line on top of each file to say so.
18473 # Grep'ing the whole file is not good either: AIX grep has a line
18474 # limit of 2048, but all sed's we know have understand at least 4000.
18475 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18476 dirpart=`$as_dirname -- "$mf" ||
18477 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478 X"$mf" : 'X\(//\)[^/]' \| \
18479 X"$mf" : 'X\(//\)$' \| \
18480 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18486 /^X\(\/\/\)[^/].*/{
18502 # Extract the definition of DEPDIR, am__include, and am__quote
18503 # from the Makefile without running 'make'.
18504 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18505 test -z "$DEPDIR" && continue
18506 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18507 test -z "$am__include" && continue
18508 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18509 # Find all dependency output files, they are included files with
18510 # $(DEPDIR) in their names. We invoke sed twice because it is the
18511 # simplest approach to changing $(DEPDIR) to its actual value in the
18513 for file in `sed -n "
18514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18516 # Make sure the directory exists.
18517 test -f "$dirpart/$file" && continue
18518 fdir=`$as_dirname -- "$file" ||
18519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18520 X"$file" : 'X\(//\)[^/]' \| \
18521 X"$file" : 'X\(//\)$' \| \
18522 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18523 $as_echo X"$file" |
18524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18528 /^X\(\/\/\)[^/].*/{
18541 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18542 # echo "creating $dirpart/$file"
18543 echo '# dummy' > "$dirpart/$file"
18550 # See if we are running on zsh, and set the options which allow our
18551 # commands through without removal of \ escapes.
18552 if test -n "${ZSH_VERSION+set}" ; then
18553 setopt NO_GLOB_SUBST
18556 cfgfile="${ofile}T"
18557 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18560 cat <<_LT_EOF >> "$cfgfile"
18563 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18564 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18566 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18568 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18569 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18571 # Written by Gordon Matzigkeit, 1996
18573 # This file is part of GNU Libtool.
18575 # GNU Libtool is free software; you can redistribute it and/or
18576 # modify it under the terms of the GNU General Public License as
18577 # published by the Free Software Foundation; either version 2 of
18578 # the License, or (at your option) any later version.
18580 # As a special exception to the GNU General Public License,
18581 # if you distribute this file as part of a program or library that
18582 # is built using GNU Libtool, you may include this file under the
18583 # same distribution terms that you use for the rest of that program.
18585 # GNU Libtool is distributed in the hope that it will be useful,
18586 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18588 # GNU General Public License for more details.
18590 # You should have received a copy of the GNU General Public License
18591 # along with GNU Libtool; see the file COPYING. If not, a copy
18592 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18593 # obtained by writing to the Free Software Foundation, Inc.,
18594 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18597 # The names of the tagged configurations supported by this script.
18598 available_tags="CXX "
18600 # ### BEGIN LIBTOOL CONFIG
18602 # Which release of libtool.m4 was used?
18603 macro_version=$macro_version
18604 macro_revision=$macro_revision
18606 # Assembler program.
18609 # DLL creation program.
18610 DLLTOOL=$lt_DLLTOOL
18612 # Object dumper program.
18613 OBJDUMP=$lt_OBJDUMP
18615 # Whether or not to build shared libraries.
18616 build_libtool_libs=$enable_shared
18618 # Whether or not to build static libraries.
18619 build_old_libs=$enable_static
18621 # What type of objects to build.
18624 # Whether or not to optimize for fast installation.
18625 fast_install=$enable_fast_install
18627 # Shell to use when invoking shell scripts.
18630 # An echo program that protects backslashes.
18633 # The PATH separator for the build system.
18634 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18637 host_alias=$host_alias
18641 # The build system.
18642 build_alias=$build_alias
18646 # A sed program that does not truncate output.
18649 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18650 Xsed="\$SED -e 1s/^X//"
18652 # A grep program that handles long lines.
18658 # A literal string matcher.
18661 # A BSD- or MS-compatible name lister.
18664 # Whether we need soft or hard links.
18667 # What is the maximum length of a command?
18668 max_cmd_len=$max_cmd_len
18670 # Object file suffix (normally "o").
18673 # Executable file suffix (normally "").
18676 # whether the shell understands "unset".
18679 # turn spaces into newlines.
18682 # turn newlines into spaces.
18685 # convert \$build file names to \$host format.
18686 to_host_file_cmd=$lt_cv_to_host_file_cmd
18688 # convert \$build files to toolchain format.
18689 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18691 # Method to check whether dependent libraries are shared objects.
18692 deplibs_check_method=$lt_deplibs_check_method
18694 # Command to use when deplibs_check_method = "file_magic".
18695 file_magic_cmd=$lt_file_magic_cmd
18697 # How to find potential files when deplibs_check_method = "file_magic".
18698 file_magic_glob=$lt_file_magic_glob
18700 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18701 want_nocaseglob=$lt_want_nocaseglob
18703 # Command to associate shared and link libraries.
18704 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18709 # Flags to create an archive.
18710 AR_FLAGS=$lt_AR_FLAGS
18712 # How to feed a file listing to the archiver.
18713 archiver_list_spec=$lt_archiver_list_spec
18715 # A symbol stripping program.
18718 # Commands used to install an old-style archive.
18720 old_postinstall_cmds=$lt_old_postinstall_cmds
18721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18723 # Whether to use a lock for old archive extraction.
18724 lock_old_archive_extraction=$lock_old_archive_extraction
18729 # LTCC compiler flags.
18730 LTCFLAGS=$lt_CFLAGS
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18735 # Transform the output of nm in a proper C declaration.
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18738 # Transform the output of nm in a C name address pair.
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18741 # Transform the output of nm in a C name address pair when lib prefix is needed.
18742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18744 # Specify filename containing input files for \$NM.
18745 nm_file_list_spec=$lt_nm_file_list_spec
18747 # The root where to search for dependent libraries,and in which our libraries should be installed.
18748 lt_sysroot=$lt_sysroot
18750 # The name of the directory that contains temporary libtool files.
18753 # Used to examine libraries when file_magic_cmd begins with "file".
18754 MAGIC_CMD=$MAGIC_CMD
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18760 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18762 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18763 DSYMUTIL=$lt_DSYMUTIL
18765 # Tool to change global to local symbols on Mac OS X.
18768 # Tool to manipulate fat objects and archives on Mac OS X.
18771 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18774 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18775 OTOOL64=$lt_OTOOL64
18777 # Old archive suffix (normally "a").
18780 # Shared library suffix (normally ".so").
18781 shrext_cmds=$lt_shrext_cmds
18783 # The commands to extract the exported symbol list from a shared archive.
18784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18786 # Variables whose values should be saved in libtool wrapper scripts and
18787 # restored at link time.
18788 variables_saved_for_relink=$lt_variables_saved_for_relink
18790 # Do we need the "lib" prefix for modules?
18791 need_lib_prefix=$need_lib_prefix
18793 # Do we need a version for libraries?
18794 need_version=$need_version
18796 # Library versioning type.
18797 version_type=$version_type
18799 # Shared library runtime path variable.
18800 runpath_var=$runpath_var
18802 # Shared library path variable.
18803 shlibpath_var=$shlibpath_var
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18808 # Format of library name prefix.
18809 libname_spec=$lt_libname_spec
18811 # List of archive names. First name is the real one, the rest are links.
18812 # The last name is the one that the linker finds with -lNAME
18813 library_names_spec=$lt_library_names_spec
18815 # The coded name of the library, if different from the real name.
18816 soname_spec=$lt_soname_spec
18818 # Permission mode override for installation of shared libraries.
18819 install_override_mode=$lt_install_override_mode
18821 # Command to use after installation of a shared archive.
18822 postinstall_cmds=$lt_postinstall_cmds
18824 # Command to use after uninstallation of a shared archive.
18825 postuninstall_cmds=$lt_postuninstall_cmds
18827 # Commands used to finish a libtool library installation in a directory.
18828 finish_cmds=$lt_finish_cmds
18830 # As "finish_cmds", except a single script fragment to be evaled but
18832 finish_eval=$lt_finish_eval
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18837 # Compile-time system search path for libraries.
18838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18840 # Run-time system search path for libraries.
18841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18843 # Whether dlopen is supported.
18844 dlopen_support=$enable_dlopen
18846 # Whether dlopen of programs is supported.
18847 dlopen_self=$enable_dlopen_self
18849 # Whether dlopen of statically linked programs is supported.
18850 dlopen_self_static=$enable_dlopen_self_static
18852 # Commands to strip libraries.
18853 old_striplib=$lt_old_striplib
18854 striplib=$lt_striplib
18857 # The linker used to build libraries.
18860 # How to create reloadable object files.
18861 reload_flag=$lt_reload_flag
18862 reload_cmds=$lt_reload_cmds
18864 # Commands used to build an old-style archive.
18865 old_archive_cmds=$lt_old_archive_cmds
18867 # A language specific compiler.
18870 # Is the compiler the GNU compiler?
18873 # Compiler flag to turn off builtin functions.
18874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18876 # Additional compiler flags for building library objects.
18877 pic_flag=$lt_lt_prog_compiler_pic
18879 # How to pass a linker flag through the compiler.
18880 wl=$lt_lt_prog_compiler_wl
18882 # Compiler flag to prevent dynamic linking.
18883 link_static_flag=$lt_lt_prog_compiler_static
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18888 # Whether or not to add -lc for building shared libraries.
18889 build_libtool_need_lc=$archive_cmds_need_lc
18891 # Whether or not to disallow shared libs when runtime libs are static.
18892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18894 # Compiler flag to allow reflexive dlopens.
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18897 # Compiler flag to generate shared objects directly from archives.
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18900 # Whether the compiler copes with passing no objects directly.
18901 compiler_needs_object=$lt_compiler_needs_object
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18909 # Commands used to build a shared archive.
18910 archive_cmds=$lt_archive_cmds
18911 archive_expsym_cmds=$lt_archive_expsym_cmds
18913 # Commands used to build a loadable module if different from building
18914 # a shared archive.
18915 module_cmds=$lt_module_cmds
18916 module_expsym_cmds=$lt_module_expsym_cmds
18918 # Whether we are building with GNU ld or not.
18919 with_gnu_ld=$lt_with_gnu_ld
18921 # Flag that allows shared libraries with undefined symbols to be built.
18922 allow_undefined_flag=$lt_allow_undefined_flag
18924 # Flag that enforces no undefined symbols.
18925 no_undefined_flag=$lt_no_undefined_flag
18927 # Flag to hardcode \$libdir into a binary during linking.
18928 # This must work even if \$libdir does not exist
18929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18931 # Whether we need a single "-rpath" flag with a separated argument.
18932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18935 # DIR into the resulting binary.
18936 hardcode_direct=$hardcode_direct
18938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18939 # DIR into the resulting binary and the resulting library dependency is
18940 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18941 # library is relocated.
18942 hardcode_direct_absolute=$hardcode_direct_absolute
18944 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18945 # into the resulting binary.
18946 hardcode_minus_L=$hardcode_minus_L
18948 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18949 # into the resulting binary.
18950 hardcode_shlibpath_var=$hardcode_shlibpath_var
18952 # Set to "yes" if building a shared library automatically hardcodes DIR
18953 # into the library and all subsequent libraries and executables linked
18955 hardcode_automatic=$hardcode_automatic
18957 # Set to yes if linker adds runtime paths of dependent libraries
18958 # to runtime path list.
18959 inherit_rpath=$inherit_rpath
18961 # Whether libtool must link a program against all its dependency libraries.
18962 link_all_deplibs=$link_all_deplibs
18964 # Set to "yes" if exported symbols are required.
18965 always_export_symbols=$always_export_symbols
18967 # The commands to list exported symbols.
18968 export_symbols_cmds=$lt_export_symbols_cmds
18970 # Symbols that should not be listed in the preloaded symbols.
18971 exclude_expsyms=$lt_exclude_expsyms
18973 # Symbols that must always be exported.
18974 include_expsyms=$lt_include_expsyms
18976 # Commands necessary for linking programs (against libraries) with templates.
18977 prelink_cmds=$lt_prelink_cmds
18979 # Commands necessary for finishing linking programs.
18980 postlink_cmds=$lt_postlink_cmds
18982 # Specify filename containing input files.
18983 file_list_spec=$lt_file_list_spec
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action
18988 # The directories searched by this compiler when creating a shared library.
18989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18991 # Dependencies to place before and after the objects being linked to
18992 # create a shared library.
18993 predep_objects=$lt_predep_objects
18994 postdep_objects=$lt_postdep_objects
18995 predeps=$lt_predeps
18996 postdeps=$lt_postdeps
18998 # The library search path used internally by the compiler when linking
18999 # a shared library.
19000 compiler_lib_search_path=$lt_compiler_lib_search_path
19002 # ### END LIBTOOL CONFIG
19008 cat <<\_LT_EOF >> "$cfgfile"
19009 # AIX sometimes has problems with the GCC collect2 program. For some
19010 # reason, if we set the COLLECT_NAMES environment variable, the problems
19011 # vanish in a puff of smoke.
19012 if test "X${COLLECT_NAMES+set}" != Xset; then
19014 export COLLECT_NAMES
19021 ltmain="$ac_aux_dir/ltmain.sh"
19024 # We use sed instead of cat because bash on DJGPP gets confused if
19025 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19026 # text mode, it properly converts lines to CR/LF. This bash problem
19027 # is reportedly fixed, but why not run on old versions too?
19028 sed '$q' "$ltmain" >> "$cfgfile" \
19029 || (rm -f "$cfgfile"; exit 1)
19031 if test x"$xsi_shell" = xyes; then
19032 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19036 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19037 \ * ) func_dirname_result="${3}" ;;\
19039 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19040 && mv -f "$cfgfile.tmp" "$cfgfile" \
19041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19042 test 0 -eq $? || _lt_function_replace_fail=:
19045 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19048 \ func_basename_result="${1##*/}"\
19049 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19050 && mv -f "$cfgfile.tmp" "$cfgfile" \
19051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19052 test 0 -eq $? || _lt_function_replace_fail=:
19055 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19056 func_dirname_and_basename ()\
19059 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19060 \ * ) func_dirname_result="${3}" ;;\
19062 \ func_basename_result="${1##*/}"\
19063 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19064 && mv -f "$cfgfile.tmp" "$cfgfile" \
19065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19066 test 0 -eq $? || _lt_function_replace_fail=:
19069 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19072 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19073 \ # positional parameters, so assign one to ordinary parameter first.\
19074 \ func_stripname_result=${3}\
19075 \ func_stripname_result=${func_stripname_result#"${1}"}\
19076 \ func_stripname_result=${func_stripname_result%"${2}"}\
19077 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19078 && mv -f "$cfgfile.tmp" "$cfgfile" \
19079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19080 test 0 -eq $? || _lt_function_replace_fail=:
19083 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19084 func_split_long_opt ()\
19086 \ func_split_long_opt_name=${1%%=*}\
19087 \ func_split_long_opt_arg=${1#*=}\
19088 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19089 && mv -f "$cfgfile.tmp" "$cfgfile" \
19090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091 test 0 -eq $? || _lt_function_replace_fail=:
19094 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19095 func_split_short_opt ()\
19097 \ func_split_short_opt_arg=${1#??}\
19098 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19099 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19100 && mv -f "$cfgfile.tmp" "$cfgfile" \
19101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19102 test 0 -eq $? || _lt_function_replace_fail=:
19105 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19109 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19110 \ *) func_lo2o_result=${1} ;;\
19112 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19113 && mv -f "$cfgfile.tmp" "$cfgfile" \
19114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19115 test 0 -eq $? || _lt_function_replace_fail=:
19118 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19121 func_xform_result=${1%.*}.lo\
19122 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19123 && mv -f "$cfgfile.tmp" "$cfgfile" \
19124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19125 test 0 -eq $? || _lt_function_replace_fail=:
19128 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19131 func_arith_result=$(( $* ))\
19132 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19133 && mv -f "$cfgfile.tmp" "$cfgfile" \
19134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19135 test 0 -eq $? || _lt_function_replace_fail=:
19138 sed -e '/^func_len ()$/,/^} # func_len /c\
19141 func_len_result=${#1}\
19142 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19143 && mv -f "$cfgfile.tmp" "$cfgfile" \
19144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19145 test 0 -eq $? || _lt_function_replace_fail=:
19149 if test x"$lt_shell_append" = xyes; then
19150 sed -e '/^func_append ()$/,/^} # func_append /c\
19153 eval "${1}+=\\${2}"\
19154 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19155 && mv -f "$cfgfile.tmp" "$cfgfile" \
19156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19157 test 0 -eq $? || _lt_function_replace_fail=:
19160 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19161 func_append_quoted ()\
19163 \ func_quote_for_eval "${2}"\
19164 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19165 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19166 && mv -f "$cfgfile.tmp" "$cfgfile" \
19167 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19168 test 0 -eq $? || _lt_function_replace_fail=:
19171 # Save a `func_append' function call where possible by direct use of '+='
19172 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19173 && mv -f "$cfgfile.tmp" "$cfgfile" \
19174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19175 test 0 -eq $? || _lt_function_replace_fail=:
19177 # Save a `func_append' function call even when '+=' is not available
19178 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19179 && mv -f "$cfgfile.tmp" "$cfgfile" \
19180 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19181 test 0 -eq $? || _lt_function_replace_fail=:
19184 if test x"$_lt_function_replace_fail" = x":"; then
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19186 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19190 mv -f "$cfgfile" "$ofile" ||
19191 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19195 cat <<_LT_EOF >> "$ofile"
19197 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19199 # The linker used to build libraries.
19202 # How to create reloadable object files.
19203 reload_flag=$lt_reload_flag_CXX
19204 reload_cmds=$lt_reload_cmds_CXX
19206 # Commands used to build an old-style archive.
19207 old_archive_cmds=$lt_old_archive_cmds_CXX
19209 # A language specific compiler.
19210 CC=$lt_compiler_CXX
19212 # Is the compiler the GNU compiler?
19215 # Compiler flag to turn off builtin functions.
19216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19218 # Additional compiler flags for building library objects.
19219 pic_flag=$lt_lt_prog_compiler_pic_CXX
19221 # How to pass a linker flag through the compiler.
19222 wl=$lt_lt_prog_compiler_wl_CXX
19224 # Compiler flag to prevent dynamic linking.
19225 link_static_flag=$lt_lt_prog_compiler_static_CXX
19227 # Does compiler simultaneously support -c and -o options?
19228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19230 # Whether or not to add -lc for building shared libraries.
19231 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19233 # Whether or not to disallow shared libs when runtime libs are static.
19234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19236 # Compiler flag to allow reflexive dlopens.
19237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19239 # Compiler flag to generate shared objects directly from archives.
19240 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19242 # Whether the compiler copes with passing no objects directly.
19243 compiler_needs_object=$lt_compiler_needs_object_CXX
19245 # Create an old-style archive from a shared archive.
19246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19248 # Create a temporary old-style archive to link instead of a shared archive.
19249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19251 # Commands used to build a shared archive.
19252 archive_cmds=$lt_archive_cmds_CXX
19253 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19255 # Commands used to build a loadable module if different from building
19256 # a shared archive.
19257 module_cmds=$lt_module_cmds_CXX
19258 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19260 # Whether we are building with GNU ld or not.
19261 with_gnu_ld=$lt_with_gnu_ld_CXX
19263 # Flag that allows shared libraries with undefined symbols to be built.
19264 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19266 # Flag that enforces no undefined symbols.
19267 no_undefined_flag=$lt_no_undefined_flag_CXX
19269 # Flag to hardcode \$libdir into a binary during linking.
19270 # This must work even if \$libdir does not exist
19271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19273 # Whether we need a single "-rpath" flag with a separated argument.
19274 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19277 # DIR into the resulting binary.
19278 hardcode_direct=$hardcode_direct_CXX
19280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19281 # DIR into the resulting binary and the resulting library dependency is
19282 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19283 # library is relocated.
19284 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19286 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19287 # into the resulting binary.
19288 hardcode_minus_L=$hardcode_minus_L_CXX
19290 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19291 # into the resulting binary.
19292 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19294 # Set to "yes" if building a shared library automatically hardcodes DIR
19295 # into the library and all subsequent libraries and executables linked
19297 hardcode_automatic=$hardcode_automatic_CXX
19299 # Set to yes if linker adds runtime paths of dependent libraries
19300 # to runtime path list.
19301 inherit_rpath=$inherit_rpath_CXX
19303 # Whether libtool must link a program against all its dependency libraries.
19304 link_all_deplibs=$link_all_deplibs_CXX
19306 # Set to "yes" if exported symbols are required.
19307 always_export_symbols=$always_export_symbols_CXX
19309 # The commands to list exported symbols.
19310 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19312 # Symbols that should not be listed in the preloaded symbols.
19313 exclude_expsyms=$lt_exclude_expsyms_CXX
19315 # Symbols that must always be exported.
19316 include_expsyms=$lt_include_expsyms_CXX
19318 # Commands necessary for linking programs (against libraries) with templates.
19319 prelink_cmds=$lt_prelink_cmds_CXX
19321 # Commands necessary for finishing linking programs.
19322 postlink_cmds=$lt_postlink_cmds_CXX
19324 # Specify filename containing input files.
19325 file_list_spec=$lt_file_list_spec_CXX
19327 # How to hardcode a shared library path into an executable.
19328 hardcode_action=$hardcode_action_CXX
19330 # The directories searched by this compiler when creating a shared library.
19331 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19333 # Dependencies to place before and after the objects being linked to
19334 # create a shared library.
19335 predep_objects=$lt_predep_objects_CXX
19336 postdep_objects=$lt_postdep_objects_CXX
19337 predeps=$lt_predeps_CXX
19338 postdeps=$lt_postdeps_CXX
19340 # The library search path used internally by the compiler when linking
19341 # a shared library.
19342 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19344 # ### END LIBTOOL TAG CONFIG: CXX
19355 ac_clean_files=$ac_clean_files_save
19357 test $ac_write_fail = 0 ||
19358 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19361 # configure is writing to config.log, and then calls config.status.
19362 # config.status does its own redirection, appending to config.log.
19363 # Unfortunately, on DOS this fails, as config.log is still kept open
19364 # by configure, so config.status won't be able to write to it; its
19365 # output is simply discarded. So we exec the FD to /dev/null,
19366 # effectively closing config.log, so it can be properly (re)opened and
19367 # appended to by config.status. When coming back to configure, we
19368 # need to make the FD available again.
19369 if test "$no_create" != yes; then
19371 ac_config_status_args=
19372 test "$silent" = yes &&
19373 ac_config_status_args="$ac_config_status_args --quiet"
19375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19378 # would make configure fail if this is the last instruction.
19379 $ac_cs_success || as_fn_exit 1
19381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19387 chmod oug+x rtaudio-config